Date
July 25, 2025, 3:13 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 32.392500] ================================================================== [ 32.392726] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x150/0x2f8 [ 32.392788] Write of size 2 at addr fff00000c9726577 by task kunit_try_catch/204 [ 32.392861] [ 32.392908] CPU: 1 UID: 0 PID: 204 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc7-next-20250725 #1 PREEMPT [ 32.392994] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 32.393023] Hardware name: linux,dummy-virt (DT) [ 32.393080] Call trace: [ 32.393126] show_stack+0x20/0x38 (C) [ 32.393213] dump_stack_lvl+0x8c/0xd0 [ 32.393278] print_report+0x118/0x5e8 [ 32.393321] kasan_report+0xdc/0x128 [ 32.393362] kasan_check_range+0x100/0x1a8 [ 32.393411] __asan_memset+0x34/0x78 [ 32.393471] kmalloc_oob_memset_2+0x150/0x2f8 [ 32.393518] kunit_try_run_case+0x170/0x3f0 [ 32.393581] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.393632] kthread+0x328/0x630 [ 32.393831] ret_from_fork+0x10/0x20 [ 32.393950] [ 32.394127] Allocated by task 204: [ 32.394182] kasan_save_stack+0x3c/0x68 [ 32.394260] kasan_save_track+0x20/0x40 [ 32.394297] kasan_save_alloc_info+0x40/0x58 [ 32.394360] __kasan_kmalloc+0xd4/0xd8 [ 32.394431] __kmalloc_cache_noprof+0x16c/0x3c0 [ 32.394488] kmalloc_oob_memset_2+0xb0/0x2f8 [ 32.394544] kunit_try_run_case+0x170/0x3f0 [ 32.394596] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.394649] kthread+0x328/0x630 [ 32.394842] ret_from_fork+0x10/0x20 [ 32.395003] [ 32.395047] The buggy address belongs to the object at fff00000c9726500 [ 32.395047] which belongs to the cache kmalloc-128 of size 128 [ 32.395185] The buggy address is located 119 bytes inside of [ 32.395185] allocated 120-byte region [fff00000c9726500, fff00000c9726578) [ 32.395338] [ 32.395359] The buggy address belongs to the physical page: [ 32.395430] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109726 [ 32.395607] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 32.395771] page_type: f5(slab) [ 32.395873] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 32.395941] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 32.395979] page dumped because: kasan: bad access detected [ 32.396008] [ 32.396026] Memory state around the buggy address: [ 32.396093] fff00000c9726400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.396234] fff00000c9726480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.396279] >fff00000c9726500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 32.396419] ^ [ 32.396526] fff00000c9726580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.396742] fff00000c9726600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.396845] ==================================================================
[ 25.810458] ================================================================== [ 25.811644] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x166/0x330 [ 25.812410] Write of size 2 at addr ffff888105800377 by task kunit_try_catch/221 [ 25.813266] [ 25.813446] CPU: 0 UID: 0 PID: 221 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7-next-20250725 #1 PREEMPT(voluntary) [ 25.813496] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.813508] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.813528] Call Trace: [ 25.813541] <TASK> [ 25.813557] dump_stack_lvl+0x73/0xb0 [ 25.813585] print_report+0xd1/0x640 [ 25.813608] ? __virt_addr_valid+0x1db/0x2d0 [ 25.813631] ? kmalloc_oob_memset_2+0x166/0x330 [ 25.813653] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.813680] ? kmalloc_oob_memset_2+0x166/0x330 [ 25.813703] kasan_report+0x141/0x180 [ 25.813726] ? kmalloc_oob_memset_2+0x166/0x330 [ 25.813753] kasan_check_range+0x10c/0x1c0 [ 25.813777] __asan_memset+0x27/0x50 [ 25.813886] kmalloc_oob_memset_2+0x166/0x330 [ 25.813910] ? __pfx_kmalloc_oob_memset_2+0x10/0x10 [ 25.813958] ? __schedule+0x10da/0x2b60 [ 25.813980] ? __pfx_read_tsc+0x10/0x10 [ 25.814003] ? ktime_get_ts64+0x86/0x230 [ 25.814027] kunit_try_run_case+0x1a5/0x480 [ 25.814062] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.814085] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 25.814107] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.814134] ? __kthread_parkme+0x82/0x180 [ 25.814155] ? preempt_count_sub+0x50/0x80 [ 25.814179] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.814204] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.814228] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.814253] kthread+0x337/0x6f0 [ 25.814274] ? trace_preempt_on+0x20/0xc0 [ 25.814298] ? __pfx_kthread+0x10/0x10 [ 25.814319] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.814344] ? calculate_sigpending+0x7b/0xa0 [ 25.814369] ? __pfx_kthread+0x10/0x10 [ 25.814391] ret_from_fork+0x116/0x1d0 [ 25.814411] ? __pfx_kthread+0x10/0x10 [ 25.814432] ret_from_fork_asm+0x1a/0x30 [ 25.814464] </TASK> [ 25.814476] [ 25.827856] Allocated by task 221: [ 25.828386] kasan_save_stack+0x45/0x70 [ 25.828848] kasan_save_track+0x18/0x40 [ 25.829291] kasan_save_alloc_info+0x3b/0x50 [ 25.829723] __kasan_kmalloc+0xb7/0xc0 [ 25.829961] __kmalloc_cache_noprof+0x189/0x420 [ 25.830203] kmalloc_oob_memset_2+0xac/0x330 [ 25.830633] kunit_try_run_case+0x1a5/0x480 [ 25.831101] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.831636] kthread+0x337/0x6f0 [ 25.831767] ret_from_fork+0x116/0x1d0 [ 25.832330] ret_from_fork_asm+0x1a/0x30 [ 25.832727] [ 25.832923] The buggy address belongs to the object at ffff888105800300 [ 25.832923] which belongs to the cache kmalloc-128 of size 128 [ 25.833718] The buggy address is located 119 bytes inside of [ 25.833718] allocated 120-byte region [ffff888105800300, ffff888105800378) [ 25.834564] [ 25.834639] The buggy address belongs to the physical page: [ 25.835085] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105800 [ 25.835844] flags: 0x200000000000000(node=0|zone=2) [ 25.836477] page_type: f5(slab) [ 25.836874] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 25.837379] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 25.837619] page dumped because: kasan: bad access detected [ 25.837795] [ 25.838005] Memory state around the buggy address: [ 25.838508] ffff888105800200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.839215] ffff888105800280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.839887] >ffff888105800300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 25.840615] ^ [ 25.841196] ffff888105800380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.841423] ffff888105800400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.841641] ==================================================================