Date
July 23, 2025, 2:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.452137] ================================================================== [ 15.452209] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x150/0x2f8 [ 15.452405] Write of size 8 at addr fff00000c3f39771 by task kunit_try_catch/176 [ 15.452522] [ 15.452660] CPU: 1 UID: 0 PID: 176 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7 #1 PREEMPT [ 15.452952] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.453092] Hardware name: linux,dummy-virt (DT) [ 15.453152] Call trace: [ 15.453281] show_stack+0x20/0x38 (C) [ 15.453345] dump_stack_lvl+0x8c/0xd0 [ 15.453529] print_report+0x118/0x5d0 [ 15.453591] kasan_report+0xdc/0x128 [ 15.453994] kasan_check_range+0x100/0x1a8 [ 15.454104] __asan_memset+0x34/0x78 [ 15.454158] kmalloc_oob_memset_8+0x150/0x2f8 [ 15.454350] kunit_try_run_case+0x170/0x3f0 [ 15.454515] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.454697] kthread+0x328/0x630 [ 15.454821] ret_from_fork+0x10/0x20 [ 15.454882] [ 15.454901] Allocated by task 176: [ 15.455130] kasan_save_stack+0x3c/0x68 [ 15.455317] kasan_save_track+0x20/0x40 [ 15.455451] kasan_save_alloc_info+0x40/0x58 [ 15.455530] __kasan_kmalloc+0xd4/0xd8 [ 15.455660] __kmalloc_cache_noprof+0x16c/0x3c0 [ 15.455735] kmalloc_oob_memset_8+0xb0/0x2f8 [ 15.456124] kunit_try_run_case+0x170/0x3f0 [ 15.456231] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.456338] kthread+0x328/0x630 [ 15.456469] ret_from_fork+0x10/0x20 [ 15.456518] [ 15.456550] The buggy address belongs to the object at fff00000c3f39700 [ 15.456550] which belongs to the cache kmalloc-128 of size 128 [ 15.456667] The buggy address is located 113 bytes inside of [ 15.456667] allocated 120-byte region [fff00000c3f39700, fff00000c3f39778) [ 15.456736] [ 15.456758] The buggy address belongs to the physical page: [ 15.456798] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103f39 [ 15.456880] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.456929] page_type: f5(slab) [ 15.456974] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 15.457042] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 15.457088] page dumped because: kasan: bad access detected [ 15.457120] [ 15.457138] Memory state around the buggy address: [ 15.457194] fff00000c3f39600: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 15.457247] fff00000c3f39680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.457290] >fff00000c3f39700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 15.457337] ^ [ 15.457378] fff00000c3f39780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.457421] fff00000c3f39800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.457468] ==================================================================
[ 12.735602] ================================================================== [ 12.736599] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x166/0x330 [ 12.736864] Write of size 8 at addr ffff8881025cc171 by task kunit_try_catch/193 [ 12.737105] [ 12.737199] CPU: 1 UID: 0 PID: 193 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7 #1 PREEMPT(voluntary) [ 12.737244] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.737257] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.737279] Call Trace: [ 12.737292] <TASK> [ 12.737308] dump_stack_lvl+0x73/0xb0 [ 12.737337] print_report+0xd1/0x610 [ 12.737358] ? __virt_addr_valid+0x1db/0x2d0 [ 12.737381] ? kmalloc_oob_memset_8+0x166/0x330 [ 12.737401] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.737422] ? kmalloc_oob_memset_8+0x166/0x330 [ 12.737443] kasan_report+0x141/0x180 [ 12.737464] ? kmalloc_oob_memset_8+0x166/0x330 [ 12.737489] kasan_check_range+0x10c/0x1c0 [ 12.737511] __asan_memset+0x27/0x50 [ 12.737529] kmalloc_oob_memset_8+0x166/0x330 [ 12.737551] ? __pfx_kmalloc_oob_memset_8+0x10/0x10 [ 12.737572] ? __schedule+0x10c6/0x2b60 [ 12.737594] ? __pfx_read_tsc+0x10/0x10 [ 12.737614] ? ktime_get_ts64+0x86/0x230 [ 12.737638] kunit_try_run_case+0x1a5/0x480 [ 12.737661] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.737682] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.737705] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.737727] ? __kthread_parkme+0x82/0x180 [ 12.737747] ? preempt_count_sub+0x50/0x80 [ 12.737769] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.737792] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.737826] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.737849] kthread+0x337/0x6f0 [ 12.737868] ? trace_preempt_on+0x20/0xc0 [ 12.737891] ? __pfx_kthread+0x10/0x10 [ 12.737912] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.738359] ? calculate_sigpending+0x7b/0xa0 [ 12.738401] ? __pfx_kthread+0x10/0x10 [ 12.738425] ret_from_fork+0x116/0x1d0 [ 12.738444] ? __pfx_kthread+0x10/0x10 [ 12.738652] ret_from_fork_asm+0x1a/0x30 [ 12.738682] </TASK> [ 12.738693] [ 12.752850] Allocated by task 193: [ 12.753032] kasan_save_stack+0x45/0x70 [ 12.753423] kasan_save_track+0x18/0x40 [ 12.753631] kasan_save_alloc_info+0x3b/0x50 [ 12.754099] __kasan_kmalloc+0xb7/0xc0 [ 12.754440] __kmalloc_cache_noprof+0x189/0x420 [ 12.754772] kmalloc_oob_memset_8+0xac/0x330 [ 12.755137] kunit_try_run_case+0x1a5/0x480 [ 12.755508] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.755878] kthread+0x337/0x6f0 [ 12.756028] ret_from_fork+0x116/0x1d0 [ 12.756405] ret_from_fork_asm+0x1a/0x30 [ 12.756954] [ 12.757258] The buggy address belongs to the object at ffff8881025cc100 [ 12.757258] which belongs to the cache kmalloc-128 of size 128 [ 12.758506] The buggy address is located 113 bytes inside of [ 12.758506] allocated 120-byte region [ffff8881025cc100, ffff8881025cc178) [ 12.758896] [ 12.758973] The buggy address belongs to the physical page: [ 12.759189] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1025cc [ 12.759508] flags: 0x200000000000000(node=0|zone=2) [ 12.759674] page_type: f5(slab) [ 12.760104] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 12.760597] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 12.760901] page dumped because: kasan: bad access detected [ 12.761163] [ 12.761308] Memory state around the buggy address: [ 12.761535] ffff8881025cc000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 12.761764] ffff8881025cc080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.762052] >ffff8881025cc100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 12.762366] ^ [ 12.762775] ffff8881025cc180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.763055] ffff8881025cc200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.763465] ==================================================================