Date
July 20, 2025, 11:12 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.162525] ================================================================== [ 15.162594] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x40c/0x488 [ 15.162675] Write of size 1 at addr fff00000c3fc2878 by task kunit_try_catch/142 [ 15.162726] [ 15.162756] CPU: 0 UID: 0 PID: 142 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.162833] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.163029] Hardware name: linux,dummy-virt (DT) [ 15.163130] Call trace: [ 15.163321] show_stack+0x20/0x38 (C) [ 15.163401] dump_stack_lvl+0x8c/0xd0 [ 15.163509] print_report+0x118/0x5d0 [ 15.163554] kasan_report+0xdc/0x128 [ 15.163597] __asan_report_store1_noabort+0x20/0x30 [ 15.163646] kmalloc_track_caller_oob_right+0x40c/0x488 [ 15.163706] kunit_try_run_case+0x170/0x3f0 [ 15.163751] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.163801] kthread+0x328/0x630 [ 15.163842] ret_from_fork+0x10/0x20 [ 15.163887] [ 15.163905] Allocated by task 142: [ 15.163932] kasan_save_stack+0x3c/0x68 [ 15.163971] kasan_save_track+0x20/0x40 [ 15.164006] kasan_save_alloc_info+0x40/0x58 [ 15.164044] __kasan_kmalloc+0xd4/0xd8 [ 15.164222] __kmalloc_node_track_caller_noprof+0x194/0x4b8 [ 15.164360] kmalloc_track_caller_oob_right+0xa8/0x488 [ 15.164538] kunit_try_run_case+0x170/0x3f0 [ 15.164643] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.164695] kthread+0x328/0x630 [ 15.164997] ret_from_fork+0x10/0x20 [ 15.165087] [ 15.165157] The buggy address belongs to the object at fff00000c3fc2800 [ 15.165157] which belongs to the cache kmalloc-128 of size 128 [ 15.165271] The buggy address is located 0 bytes to the right of [ 15.165271] allocated 120-byte region [fff00000c3fc2800, fff00000c3fc2878) [ 15.165351] [ 15.165390] The buggy address belongs to the physical page: [ 15.165439] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103fc2 [ 15.165772] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.165849] page_type: f5(slab) [ 15.165927] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 15.166001] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 15.166080] page dumped because: kasan: bad access detected [ 15.166143] [ 15.166162] Memory state around the buggy address: [ 15.166192] fff00000c3fc2700: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 15.166476] fff00000c3fc2780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.166539] >fff00000c3fc2800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 15.166631] ^ [ 15.166716] fff00000c3fc2880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.166762] fff00000c3fc2900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.166856] ==================================================================
[ 11.692043] ================================================================== [ 11.692277] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x4b1/0x520 [ 11.692532] Write of size 1 at addr ffff888102ad4278 by task kunit_try_catch/159 [ 11.693027] [ 11.693122] CPU: 0 UID: 0 PID: 159 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 11.693163] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.693174] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.693193] Call Trace: [ 11.693203] <TASK> [ 11.693216] dump_stack_lvl+0x73/0xb0 [ 11.693242] print_report+0xd1/0x610 [ 11.693262] ? __virt_addr_valid+0x1db/0x2d0 [ 11.693283] ? kmalloc_track_caller_oob_right+0x4b1/0x520 [ 11.693305] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.693326] ? kmalloc_track_caller_oob_right+0x4b1/0x520 [ 11.693349] kasan_report+0x141/0x180 [ 11.693379] ? kmalloc_track_caller_oob_right+0x4b1/0x520 [ 11.693407] __asan_report_store1_noabort+0x1b/0x30 [ 11.693429] kmalloc_track_caller_oob_right+0x4b1/0x520 [ 11.693452] ? __pfx_kmalloc_track_caller_oob_right+0x10/0x10 [ 11.693476] ? __schedule+0x10cc/0x2b60 [ 11.693497] ? __pfx_read_tsc+0x10/0x10 [ 11.693517] ? ktime_get_ts64+0x86/0x230 [ 11.693540] kunit_try_run_case+0x1a5/0x480 [ 11.693563] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.693583] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.693604] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.693626] ? __kthread_parkme+0x82/0x180 [ 11.693645] ? preempt_count_sub+0x50/0x80 [ 11.693666] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.693689] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.693711] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.693733] kthread+0x337/0x6f0 [ 11.693752] ? trace_preempt_on+0x20/0xc0 [ 11.693773] ? __pfx_kthread+0x10/0x10 [ 11.693792] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.693812] ? calculate_sigpending+0x7b/0xa0 [ 11.693834] ? __pfx_kthread+0x10/0x10 [ 11.693854] ret_from_fork+0x116/0x1d0 [ 11.693871] ? __pfx_kthread+0x10/0x10 [ 11.693919] ret_from_fork_asm+0x1a/0x30 [ 11.694406] </TASK> [ 11.694415] [ 11.705425] Allocated by task 159: [ 11.705791] kasan_save_stack+0x45/0x70 [ 11.706087] kasan_save_track+0x18/0x40 [ 11.706291] kasan_save_alloc_info+0x3b/0x50 [ 11.706676] __kasan_kmalloc+0xb7/0xc0 [ 11.706838] __kmalloc_node_track_caller_noprof+0x1cb/0x500 [ 11.707099] kmalloc_track_caller_oob_right+0x19a/0x520 [ 11.707324] kunit_try_run_case+0x1a5/0x480 [ 11.707782] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.708041] kthread+0x337/0x6f0 [ 11.708312] ret_from_fork+0x116/0x1d0 [ 11.708466] ret_from_fork_asm+0x1a/0x30 [ 11.708727] [ 11.708946] The buggy address belongs to the object at ffff888102ad4200 [ 11.708946] which belongs to the cache kmalloc-128 of size 128 [ 11.709434] The buggy address is located 0 bytes to the right of [ 11.709434] allocated 120-byte region [ffff888102ad4200, ffff888102ad4278) [ 11.710543] [ 11.710654] The buggy address belongs to the physical page: [ 11.710851] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102ad4 [ 11.711192] flags: 0x200000000000000(node=0|zone=2) [ 11.711381] page_type: f5(slab) [ 11.711607] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 11.711859] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 11.712392] page dumped because: kasan: bad access detected [ 11.712678] [ 11.712806] Memory state around the buggy address: [ 11.713001] ffff888102ad4100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 11.713294] ffff888102ad4180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.713657] >ffff888102ad4200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 11.714027] ^ [ 11.714311] ffff888102ad4280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.714647] ffff888102ad4300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.715084] ================================================================== [ 11.663378] ================================================================== [ 11.664458] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x4c8/0x520 [ 11.665149] Write of size 1 at addr ffff888102ad4178 by task kunit_try_catch/159 [ 11.665384] [ 11.665478] CPU: 0 UID: 0 PID: 159 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 11.665521] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.665532] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.665552] Call Trace: [ 11.665564] <TASK> [ 11.665579] dump_stack_lvl+0x73/0xb0 [ 11.665607] print_report+0xd1/0x610 [ 11.665629] ? __virt_addr_valid+0x1db/0x2d0 [ 11.665650] ? kmalloc_track_caller_oob_right+0x4c8/0x520 [ 11.665673] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.665693] ? kmalloc_track_caller_oob_right+0x4c8/0x520 [ 11.665716] kasan_report+0x141/0x180 [ 11.665736] ? kmalloc_track_caller_oob_right+0x4c8/0x520 [ 11.665764] __asan_report_store1_noabort+0x1b/0x30 [ 11.665786] kmalloc_track_caller_oob_right+0x4c8/0x520 [ 11.665809] ? __pfx_kmalloc_track_caller_oob_right+0x10/0x10 [ 11.665833] ? __schedule+0x10cc/0x2b60 [ 11.665854] ? __pfx_read_tsc+0x10/0x10 [ 11.665874] ? ktime_get_ts64+0x86/0x230 [ 11.665897] kunit_try_run_case+0x1a5/0x480 [ 11.665930] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.665951] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.665972] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.665993] ? __kthread_parkme+0x82/0x180 [ 11.666011] ? preempt_count_sub+0x50/0x80 [ 11.666033] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.666055] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.666077] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.666098] kthread+0x337/0x6f0 [ 11.666116] ? trace_preempt_on+0x20/0xc0 [ 11.666138] ? __pfx_kthread+0x10/0x10 [ 11.666157] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.666176] ? calculate_sigpending+0x7b/0xa0 [ 11.666199] ? __pfx_kthread+0x10/0x10 [ 11.666219] ret_from_fork+0x116/0x1d0 [ 11.666665] ? __pfx_kthread+0x10/0x10 [ 11.666688] ret_from_fork_asm+0x1a/0x30 [ 11.666718] </TASK> [ 11.666728] [ 11.677616] Allocated by task 159: [ 11.677848] kasan_save_stack+0x45/0x70 [ 11.678245] kasan_save_track+0x18/0x40 [ 11.678653] kasan_save_alloc_info+0x3b/0x50 [ 11.678887] __kasan_kmalloc+0xb7/0xc0 [ 11.679307] __kmalloc_node_track_caller_noprof+0x1cb/0x500 [ 11.679749] kmalloc_track_caller_oob_right+0x99/0x520 [ 11.680001] kunit_try_run_case+0x1a5/0x480 [ 11.680313] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.680713] kthread+0x337/0x6f0 [ 11.681196] ret_from_fork+0x116/0x1d0 [ 11.681332] ret_from_fork_asm+0x1a/0x30 [ 11.681790] [ 11.681985] The buggy address belongs to the object at ffff888102ad4100 [ 11.681985] which belongs to the cache kmalloc-128 of size 128 [ 11.682988] The buggy address is located 0 bytes to the right of [ 11.682988] allocated 120-byte region [ffff888102ad4100, ffff888102ad4178) [ 11.684145] [ 11.684319] The buggy address belongs to the physical page: [ 11.684703] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102ad4 [ 11.685533] flags: 0x200000000000000(node=0|zone=2) [ 11.685731] page_type: f5(slab) [ 11.686104] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 11.686875] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 11.687842] page dumped because: kasan: bad access detected [ 11.688019] [ 11.688085] Memory state around the buggy address: [ 11.688235] ffff888102ad4000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 11.688459] ffff888102ad4080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.688676] >ffff888102ad4100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 11.689079] ^ [ 11.689523] ffff888102ad4180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.690189] ffff888102ad4200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.691211] ==================================================================