Date
July 3, 2025, 6:13 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.774015] ================================================================== [ 16.774131] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 16.774572] Write of size 16 at addr fff00000c3fbdd00 by task kunit_try_catch/166 [ 16.774626] [ 16.774685] CPU: 0 UID: 0 PID: 166 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 16.774804] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.774832] Hardware name: linux,dummy-virt (DT) [ 16.774891] Call trace: [ 16.774940] show_stack+0x20/0x38 (C) [ 16.775023] dump_stack_lvl+0x8c/0xd0 [ 16.775128] print_report+0x118/0x608 [ 16.775183] kasan_report+0xdc/0x128 [ 16.775229] __asan_report_store16_noabort+0x20/0x30 [ 16.775565] kmalloc_oob_16+0x3a0/0x3f8 [ 16.775619] kunit_try_run_case+0x170/0x3f0 [ 16.775665] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.775820] kthread+0x328/0x630 [ 16.775896] ret_from_fork+0x10/0x20 [ 16.776108] [ 16.776147] Allocated by task 166: [ 16.776195] kasan_save_stack+0x3c/0x68 [ 16.776341] kasan_save_track+0x20/0x40 [ 16.776387] kasan_save_alloc_info+0x40/0x58 [ 16.776703] __kasan_kmalloc+0xd4/0xd8 [ 16.776872] __kmalloc_cache_noprof+0x16c/0x3c0 [ 16.776970] kmalloc_oob_16+0xb4/0x3f8 [ 16.777079] kunit_try_run_case+0x170/0x3f0 [ 16.777198] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.777352] kthread+0x328/0x630 [ 16.777462] ret_from_fork+0x10/0x20 [ 16.777695] [ 16.777869] The buggy address belongs to the object at fff00000c3fbdd00 [ 16.777869] which belongs to the cache kmalloc-16 of size 16 [ 16.778012] The buggy address is located 0 bytes inside of [ 16.778012] allocated 13-byte region [fff00000c3fbdd00, fff00000c3fbdd0d) [ 16.778129] [ 16.778237] The buggy address belongs to the physical page: [ 16.778305] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103fbd [ 16.778461] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.778695] page_type: f5(slab) [ 16.778931] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 16.779085] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 16.779220] page dumped because: kasan: bad access detected [ 16.779378] [ 16.779458] Memory state around the buggy address: [ 16.779543] fff00000c3fbdc00: fa fb fc fc 00 02 fc fc fa fb fc fc fa fb fc fc [ 16.779911] fff00000c3fbdc80: fa fb fc fc fa fb fc fc fa fb fc fc 00 04 fc fc [ 16.780119] >fff00000c3fbdd00: 00 05 fc fc 00 00 fc fc fc fc fc fc fc fc fc fc [ 16.780217] ^ [ 16.780392] fff00000c3fbdd80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.780583] fff00000c3fbde00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.780676] ==================================================================
[ 11.465080] ================================================================== [ 11.465700] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0 [ 11.466044] Write of size 16 at addr ffff888101745e20 by task kunit_try_catch/184 [ 11.466392] [ 11.466649] CPU: 1 UID: 0 PID: 184 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 11.466700] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.466711] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.466732] Call Trace: [ 11.466745] <TASK> [ 11.466762] dump_stack_lvl+0x73/0xb0 [ 11.466790] print_report+0xd1/0x650 [ 11.466813] ? __virt_addr_valid+0x1db/0x2d0 [ 11.466875] ? kmalloc_oob_16+0x452/0x4a0 [ 11.466920] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.466942] ? kmalloc_oob_16+0x452/0x4a0 [ 11.466962] kasan_report+0x141/0x180 [ 11.466983] ? kmalloc_oob_16+0x452/0x4a0 [ 11.467008] __asan_report_store16_noabort+0x1b/0x30 [ 11.467028] kmalloc_oob_16+0x452/0x4a0 [ 11.467048] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 11.467069] ? __schedule+0x10cc/0x2b60 [ 11.467090] ? __pfx_read_tsc+0x10/0x10 [ 11.467123] ? ktime_get_ts64+0x86/0x230 [ 11.467148] kunit_try_run_case+0x1a5/0x480 [ 11.467227] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.467248] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.467271] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.467293] ? __kthread_parkme+0x82/0x180 [ 11.467312] ? preempt_count_sub+0x50/0x80 [ 11.467335] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.467358] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.467379] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.467401] kthread+0x337/0x6f0 [ 11.467419] ? trace_preempt_on+0x20/0xc0 [ 11.467442] ? __pfx_kthread+0x10/0x10 [ 11.467461] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.467481] ? calculate_sigpending+0x7b/0xa0 [ 11.467503] ? __pfx_kthread+0x10/0x10 [ 11.467523] ret_from_fork+0x116/0x1d0 [ 11.467541] ? __pfx_kthread+0x10/0x10 [ 11.467560] ret_from_fork_asm+0x1a/0x30 [ 11.467590] </TASK> [ 11.467601] [ 11.475665] Allocated by task 184: [ 11.475906] kasan_save_stack+0x45/0x70 [ 11.476202] kasan_save_track+0x18/0x40 [ 11.476549] kasan_save_alloc_info+0x3b/0x50 [ 11.476777] __kasan_kmalloc+0xb7/0xc0 [ 11.476907] __kmalloc_cache_noprof+0x189/0x420 [ 11.477265] kmalloc_oob_16+0xa8/0x4a0 [ 11.477512] kunit_try_run_case+0x1a5/0x480 [ 11.477755] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.478007] kthread+0x337/0x6f0 [ 11.478217] ret_from_fork+0x116/0x1d0 [ 11.478545] ret_from_fork_asm+0x1a/0x30 [ 11.478741] [ 11.478813] The buggy address belongs to the object at ffff888101745e20 [ 11.478813] which belongs to the cache kmalloc-16 of size 16 [ 11.479501] The buggy address is located 0 bytes inside of [ 11.479501] allocated 13-byte region [ffff888101745e20, ffff888101745e2d) [ 11.480005] [ 11.480116] The buggy address belongs to the physical page: [ 11.480446] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101745 [ 11.480891] flags: 0x200000000000000(node=0|zone=2) [ 11.481205] page_type: f5(slab) [ 11.481463] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 11.481814] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 11.482205] page dumped because: kasan: bad access detected [ 11.482477] [ 11.482576] Memory state around the buggy address: [ 11.482749] ffff888101745d00: fa fb fc fc 00 04 fc fc 00 04 fc fc 00 01 fc fc [ 11.483003] ffff888101745d80: 00 01 fc fc 00 04 fc fc 00 04 fc fc 00 05 fc fc [ 11.483671] >ffff888101745e00: fa fb fc fc 00 05 fc fc 00 00 fc fc fc fc fc fc [ 11.483911] ^ [ 11.484169] ffff888101745e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.484599] ffff888101745f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.484923] ==================================================================