Date
July 20, 2025, 8:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.193472] ================================================================== [ 15.193734] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x144/0x2d0 [ 15.193918] Write of size 128 at addr fff00000c6094a00 by task kunit_try_catch/171 [ 15.193980] [ 15.194037] CPU: 1 UID: 0 PID: 171 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.194140] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.194167] Hardware name: linux,dummy-virt (DT) [ 15.194344] Call trace: [ 15.194371] show_stack+0x20/0x38 (C) [ 15.194620] dump_stack_lvl+0x8c/0xd0 [ 15.194688] print_report+0x118/0x5d0 [ 15.194835] kasan_report+0xdc/0x128 [ 15.194892] kasan_check_range+0x100/0x1a8 [ 15.195226] __asan_memset+0x34/0x78 [ 15.195292] kmalloc_oob_in_memset+0x144/0x2d0 [ 15.195366] kunit_try_run_case+0x170/0x3f0 [ 15.195443] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.195497] kthread+0x328/0x630 [ 15.195634] ret_from_fork+0x10/0x20 [ 15.195686] [ 15.195705] Allocated by task 171: [ 15.195733] kasan_save_stack+0x3c/0x68 [ 15.195780] kasan_save_track+0x20/0x40 [ 15.195816] kasan_save_alloc_info+0x40/0x58 [ 15.195915] __kasan_kmalloc+0xd4/0xd8 [ 15.195954] __kmalloc_cache_noprof+0x16c/0x3c0 [ 15.196009] kmalloc_oob_in_memset+0xb0/0x2d0 [ 15.196214] kunit_try_run_case+0x170/0x3f0 [ 15.196419] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.196535] kthread+0x328/0x630 [ 15.196570] ret_from_fork+0x10/0x20 [ 15.196605] [ 15.196653] The buggy address belongs to the object at fff00000c6094a00 [ 15.196653] which belongs to the cache kmalloc-128 of size 128 [ 15.196724] The buggy address is located 0 bytes inside of [ 15.196724] allocated 120-byte region [fff00000c6094a00, fff00000c6094a78) [ 15.196792] [ 15.196813] The buggy address belongs to the physical page: [ 15.196851] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106094 [ 15.197238] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.197408] page_type: f5(slab) [ 15.197457] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 15.197847] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 15.197915] page dumped because: kasan: bad access detected [ 15.198020] [ 15.198109] Memory state around the buggy address: [ 15.198236] fff00000c6094900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 15.198311] fff00000c6094980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.198374] >fff00000c6094a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 15.198463] ^ [ 15.198531] fff00000c6094a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.198583] fff00000c6094b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.198937] ==================================================================
[ 12.994997] ================================================================== [ 12.995626] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x15f/0x320 [ 12.996069] Write of size 128 at addr ffff8881029df400 by task kunit_try_catch/188 [ 12.996332] [ 12.996709] CPU: 1 UID: 0 PID: 188 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 12.996854] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.996869] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.996892] Call Trace: [ 12.996906] <TASK> [ 12.996924] dump_stack_lvl+0x73/0xb0 [ 12.996959] print_report+0xd1/0x610 [ 12.996983] ? __virt_addr_valid+0x1db/0x2d0 [ 12.997008] ? kmalloc_oob_in_memset+0x15f/0x320 [ 12.997030] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.997052] ? kmalloc_oob_in_memset+0x15f/0x320 [ 12.997075] kasan_report+0x141/0x180 [ 12.997097] ? kmalloc_oob_in_memset+0x15f/0x320 [ 12.997125] kasan_check_range+0x10c/0x1c0 [ 12.997149] __asan_memset+0x27/0x50 [ 12.997169] kmalloc_oob_in_memset+0x15f/0x320 [ 12.997192] ? __pfx_kmalloc_oob_in_memset+0x10/0x10 [ 12.997216] ? __schedule+0x2079/0x2b60 [ 12.997239] ? __pfx_read_tsc+0x10/0x10 [ 12.997261] ? ktime_get_ts64+0x86/0x230 [ 12.997287] kunit_try_run_case+0x1a5/0x480 [ 12.997312] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.997335] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.997360] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.997383] ? __kthread_parkme+0x82/0x180 [ 12.997405] ? preempt_count_sub+0x50/0x80 [ 12.997429] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.997453] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.997491] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.997515] kthread+0x337/0x6f0 [ 12.997535] ? trace_preempt_on+0x20/0xc0 [ 12.997558] ? __pfx_kthread+0x10/0x10 [ 12.997579] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.997601] ? calculate_sigpending+0x7b/0xa0 [ 12.997626] ? __pfx_kthread+0x10/0x10 [ 12.997648] ret_from_fork+0x116/0x1d0 [ 12.997667] ? __pfx_kthread+0x10/0x10 [ 12.997688] ret_from_fork_asm+0x1a/0x30 [ 12.997720] </TASK> [ 12.997730] [ 13.008831] Allocated by task 188: [ 13.009029] kasan_save_stack+0x45/0x70 [ 13.009224] kasan_save_track+0x18/0x40 [ 13.009408] kasan_save_alloc_info+0x3b/0x50 [ 13.009621] __kasan_kmalloc+0xb7/0xc0 [ 13.009808] __kmalloc_cache_noprof+0x189/0x420 [ 13.010318] kmalloc_oob_in_memset+0xac/0x320 [ 13.010516] kunit_try_run_case+0x1a5/0x480 [ 13.010889] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.011132] kthread+0x337/0x6f0 [ 13.011512] ret_from_fork+0x116/0x1d0 [ 13.011693] ret_from_fork_asm+0x1a/0x30 [ 13.012075] [ 13.012184] The buggy address belongs to the object at ffff8881029df400 [ 13.012184] which belongs to the cache kmalloc-128 of size 128 [ 13.013026] The buggy address is located 0 bytes inside of [ 13.013026] allocated 120-byte region [ffff8881029df400, ffff8881029df478) [ 13.013663] [ 13.013770] The buggy address belongs to the physical page: [ 13.014003] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029df [ 13.014725] flags: 0x200000000000000(node=0|zone=2) [ 13.015144] page_type: f5(slab) [ 13.015385] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 13.015939] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 13.016398] page dumped because: kasan: bad access detected [ 13.016663] [ 13.016765] Memory state around the buggy address: [ 13.017433] ffff8881029df300: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 13.017940] ffff8881029df380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.018357] >ffff8881029df400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 13.018676] ^ [ 13.019240] ffff8881029df480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.019650] ffff8881029df500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.020142] ==================================================================