Date
June 18, 2025, 6:43 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 20.356906] ================================================================== [ 20.357064] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x150/0x2f8 [ 20.357192] Write of size 2 at addr fff00000c6423777 by task kunit_try_catch/182 [ 20.357303] [ 20.357383] CPU: 0 UID: 0 PID: 182 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250618 #1 PREEMPT [ 20.357568] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.357624] Hardware name: linux,dummy-virt (DT) [ 20.357694] Call trace: [ 20.357746] show_stack+0x20/0x38 (C) [ 20.357855] dump_stack_lvl+0x8c/0xd0 [ 20.357966] print_report+0x118/0x608 [ 20.358751] kasan_report+0xdc/0x128 [ 20.358971] kasan_check_range+0x100/0x1a8 [ 20.359083] __asan_memset+0x34/0x78 [ 20.359498] kmalloc_oob_memset_2+0x150/0x2f8 [ 20.359584] kunit_try_run_case+0x170/0x3f0 [ 20.359680] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.359878] kthread+0x328/0x630 [ 20.360112] ret_from_fork+0x10/0x20 [ 20.360458] [ 20.360507] Allocated by task 182: [ 20.360682] kasan_save_stack+0x3c/0x68 [ 20.360801] kasan_save_track+0x20/0x40 [ 20.361428] kasan_save_alloc_info+0x40/0x58 [ 20.361615] __kasan_kmalloc+0xd4/0xd8 [ 20.361791] __kmalloc_cache_noprof+0x16c/0x3c0 [ 20.361901] kmalloc_oob_memset_2+0xb0/0x2f8 [ 20.362246] kunit_try_run_case+0x170/0x3f0 [ 20.362431] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.362522] kthread+0x328/0x630 [ 20.362592] ret_from_fork+0x10/0x20 [ 20.362723] [ 20.362800] The buggy address belongs to the object at fff00000c6423700 [ 20.362800] which belongs to the cache kmalloc-128 of size 128 [ 20.363063] The buggy address is located 119 bytes inside of [ 20.363063] allocated 120-byte region [fff00000c6423700, fff00000c6423778) [ 20.363453] [ 20.363503] The buggy address belongs to the physical page: [ 20.363765] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106423 [ 20.364229] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 20.364541] page_type: f5(slab) [ 20.364900] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 20.365054] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 20.365151] page dumped because: kasan: bad access detected [ 20.365220] [ 20.365261] Memory state around the buggy address: [ 20.365332] fff00000c6423600: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 20.365425] fff00000c6423680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.365523] >fff00000c6423700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 20.365607] ^ [ 20.365695] fff00000c6423780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.365787] fff00000c6423800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.365870] ==================================================================
[ 11.208260] ================================================================== [ 11.208743] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x166/0x330 [ 11.209082] Write of size 2 at addr ffff888102c54777 by task kunit_try_catch/198 [ 11.209400] [ 11.209508] CPU: 1 UID: 0 PID: 198 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250618 #1 PREEMPT(voluntary) [ 11.209554] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.209566] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.209587] Call Trace: [ 11.209599] <TASK> [ 11.209615] dump_stack_lvl+0x73/0xb0 [ 11.209642] print_report+0xd1/0x650 [ 11.209663] ? __virt_addr_valid+0x1db/0x2d0 [ 11.209686] ? kmalloc_oob_memset_2+0x166/0x330 [ 11.209706] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.209738] ? kmalloc_oob_memset_2+0x166/0x330 [ 11.209758] kasan_report+0x141/0x180 [ 11.209778] ? kmalloc_oob_memset_2+0x166/0x330 [ 11.209803] kasan_check_range+0x10c/0x1c0 [ 11.209825] __asan_memset+0x27/0x50 [ 11.209846] kmalloc_oob_memset_2+0x166/0x330 [ 11.209867] ? __pfx_kmalloc_oob_memset_2+0x10/0x10 [ 11.209888] ? __schedule+0x10cc/0x2b60 [ 11.209909] ? __pfx_read_tsc+0x10/0x10 [ 11.209930] ? ktime_get_ts64+0x86/0x230 [ 11.209955] kunit_try_run_case+0x1a5/0x480 [ 11.209979] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.210000] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.210022] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.210043] ? __kthread_parkme+0x82/0x180 [ 11.210062] ? preempt_count_sub+0x50/0x80 [ 11.210085] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.210106] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.210128] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.210149] kthread+0x337/0x6f0 [ 11.210167] ? trace_preempt_on+0x20/0xc0 [ 11.210190] ? __pfx_kthread+0x10/0x10 [ 11.210219] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.210239] ? calculate_sigpending+0x7b/0xa0 [ 11.210263] ? __pfx_kthread+0x10/0x10 [ 11.210283] ret_from_fork+0x116/0x1d0 [ 11.210300] ? __pfx_kthread+0x10/0x10 [ 11.210320] ret_from_fork_asm+0x1a/0x30 [ 11.210349] </TASK> [ 11.210360] [ 11.219250] Allocated by task 198: [ 11.219430] kasan_save_stack+0x45/0x70 [ 11.219623] kasan_save_track+0x18/0x40 [ 11.219866] kasan_save_alloc_info+0x3b/0x50 [ 11.220010] __kasan_kmalloc+0xb7/0xc0 [ 11.220181] __kmalloc_cache_noprof+0x189/0x420 [ 11.220426] kmalloc_oob_memset_2+0xac/0x330 [ 11.220701] kunit_try_run_case+0x1a5/0x480 [ 11.220986] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.221266] kthread+0x337/0x6f0 [ 11.221431] ret_from_fork+0x116/0x1d0 [ 11.221640] ret_from_fork_asm+0x1a/0x30 [ 11.221770] [ 11.221833] The buggy address belongs to the object at ffff888102c54700 [ 11.221833] which belongs to the cache kmalloc-128 of size 128 [ 11.222743] The buggy address is located 119 bytes inside of [ 11.222743] allocated 120-byte region [ffff888102c54700, ffff888102c54778) [ 11.223151] [ 11.223326] The buggy address belongs to the physical page: [ 11.223592] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102c54 [ 11.224075] flags: 0x200000000000000(node=0|zone=2) [ 11.224800] page_type: f5(slab) [ 11.224948] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 11.225299] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 11.225706] page dumped because: kasan: bad access detected [ 11.225949] [ 11.226018] Memory state around the buggy address: [ 11.226252] ffff888102c54600: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 11.227146] ffff888102c54680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.227458] >ffff888102c54700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 11.228031] ^ [ 11.228351] ffff888102c54780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.229052] ffff888102c54800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.229398] ==================================================================