Date
July 11, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.618869] ================================================================== [ 16.619169] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 16.619334] Write of size 16 at addr fff00000c3f2f5a0 by task kunit_try_catch/167 [ 16.619399] [ 16.619437] CPU: 0 UID: 0 PID: 167 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 16.619850] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.620043] Hardware name: linux,dummy-virt (DT) [ 16.620102] Call trace: [ 16.620126] show_stack+0x20/0x38 (C) [ 16.620348] dump_stack_lvl+0x8c/0xd0 [ 16.620555] print_report+0x118/0x608 [ 16.620694] kasan_report+0xdc/0x128 [ 16.620749] __asan_report_store16_noabort+0x20/0x30 [ 16.620947] kmalloc_oob_16+0x3a0/0x3f8 [ 16.621125] kunit_try_run_case+0x170/0x3f0 [ 16.621306] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.621573] kthread+0x328/0x630 [ 16.621705] ret_from_fork+0x10/0x20 [ 16.621970] [ 16.622095] Allocated by task 167: [ 16.622564] kasan_save_stack+0x3c/0x68 [ 16.622757] kasan_save_track+0x20/0x40 [ 16.622801] kasan_save_alloc_info+0x40/0x58 [ 16.622910] __kasan_kmalloc+0xd4/0xd8 [ 16.623044] __kmalloc_cache_noprof+0x16c/0x3c0 [ 16.623125] kmalloc_oob_16+0xb4/0x3f8 [ 16.623167] kunit_try_run_case+0x170/0x3f0 [ 16.623423] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.623494] kthread+0x328/0x630 [ 16.623572] ret_from_fork+0x10/0x20 [ 16.623715] [ 16.623794] The buggy address belongs to the object at fff00000c3f2f5a0 [ 16.623794] which belongs to the cache kmalloc-16 of size 16 [ 16.623996] The buggy address is located 0 bytes inside of [ 16.623996] allocated 13-byte region [fff00000c3f2f5a0, fff00000c3f2f5ad) [ 16.624058] [ 16.624079] The buggy address belongs to the physical page: [ 16.624153] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103f2f [ 16.625959] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.626047] page_type: f5(slab) [ 16.626096] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 16.626401] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 16.626570] page dumped because: kasan: bad access detected [ 16.626601] [ 16.626618] Memory state around the buggy address: [ 16.626650] fff00000c3f2f480: fa fb fc fc 00 02 fc fc fa fb fc fc fa fb fc fc [ 16.626691] fff00000c3f2f500: fa fb fc fc fa fb fc fc fa fb fc fc 00 04 fc fc [ 16.626732] >fff00000c3f2f580: fa fb fc fc 00 05 fc fc 00 00 fc fc fc fc fc fc [ 16.626768] ^ [ 16.626798] fff00000c3f2f600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.626838] fff00000c3f2f680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.626886] ==================================================================
[ 12.394286] ================================================================== [ 12.394764] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0 [ 12.395267] Write of size 16 at addr ffff888100a6e140 by task kunit_try_catch/183 [ 12.395550] [ 12.395658] CPU: 0 UID: 0 PID: 183 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.395699] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.395964] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.395987] Call Trace: [ 12.395998] <TASK> [ 12.396013] dump_stack_lvl+0x73/0xb0 [ 12.396098] print_report+0xd1/0x650 [ 12.396120] ? __virt_addr_valid+0x1db/0x2d0 [ 12.396144] ? kmalloc_oob_16+0x452/0x4a0 [ 12.396164] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.396187] ? kmalloc_oob_16+0x452/0x4a0 [ 12.396208] kasan_report+0x141/0x180 [ 12.396229] ? kmalloc_oob_16+0x452/0x4a0 [ 12.396255] __asan_report_store16_noabort+0x1b/0x30 [ 12.396280] kmalloc_oob_16+0x452/0x4a0 [ 12.396300] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 12.396322] ? irqentry_exit+0x2a/0x60 [ 12.396345] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 12.396370] ? __pfx_read_tsc+0x10/0x10 [ 12.396391] ? ktime_get_ts64+0x86/0x230 [ 12.396416] kunit_try_run_case+0x1a5/0x480 [ 12.396441] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.396467] ? __kthread_parkme+0x8f/0x180 [ 12.396535] ? __kthread_parkme+0xfa/0x180 [ 12.396556] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.396583] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.396608] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.396633] kthread+0x337/0x6f0 [ 12.396651] ? trace_preempt_on+0x20/0xc0 [ 12.396674] ? __pfx_kthread+0x10/0x10 [ 12.396694] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.396717] ? calculate_sigpending+0x7b/0xa0 [ 12.396741] ? __pfx_kthread+0x10/0x10 [ 12.396781] ret_from_fork+0x116/0x1d0 [ 12.396798] ? __pfx_kthread+0x10/0x10 [ 12.396819] ret_from_fork_asm+0x1a/0x30 [ 12.396850] </TASK> [ 12.396860] [ 12.403579] Allocated by task 183: [ 12.403710] kasan_save_stack+0x45/0x70 [ 12.403903] kasan_save_track+0x18/0x40 [ 12.404102] kasan_save_alloc_info+0x3b/0x50 [ 12.404312] __kasan_kmalloc+0xb7/0xc0 [ 12.404516] __kmalloc_cache_noprof+0x189/0x420 [ 12.404737] kmalloc_oob_16+0xa8/0x4a0 [ 12.405222] kunit_try_run_case+0x1a5/0x480 [ 12.405417] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.405621] kthread+0x337/0x6f0 [ 12.405741] ret_from_fork+0x116/0x1d0 [ 12.405872] ret_from_fork_asm+0x1a/0x30 [ 12.406230] [ 12.406332] The buggy address belongs to the object at ffff888100a6e140 [ 12.406332] which belongs to the cache kmalloc-16 of size 16 [ 12.406848] The buggy address is located 0 bytes inside of [ 12.406848] allocated 13-byte region [ffff888100a6e140, ffff888100a6e14d) [ 12.407513] [ 12.407588] The buggy address belongs to the physical page: [ 12.407758] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x100a6e [ 12.408262] flags: 0x200000000000000(node=0|zone=2) [ 12.408507] page_type: f5(slab) [ 12.408685] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 12.409157] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 12.409446] page dumped because: kasan: bad access detected [ 12.409662] [ 12.409757] Memory state around the buggy address: [ 12.409958] ffff888100a6e000: 00 02 fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 12.410444] ffff888100a6e080: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 12.410722] >ffff888100a6e100: 00 05 fc fc fa fb fc fc 00 05 fc fc 00 00 fc fc [ 12.411119] ^ [ 12.411317] ffff888100a6e180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.411616] ffff888100a6e200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.411887] ==================================================================