Date
July 17, 2025, 11:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.577322] ================================================================== [ 16.577548] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 16.577619] Write of size 16 at addr fff00000c3e550e0 by task kunit_try_catch/166 [ 16.578000] [ 16.578074] CPU: 1 UID: 0 PID: 166 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 16.578156] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.578181] Hardware name: linux,dummy-virt (DT) [ 16.578468] Call trace: [ 16.578556] show_stack+0x20/0x38 (C) [ 16.578673] dump_stack_lvl+0x8c/0xd0 [ 16.578727] print_report+0x118/0x5d0 [ 16.578773] kasan_report+0xdc/0x128 [ 16.578817] __asan_report_store16_noabort+0x20/0x30 [ 16.578879] kmalloc_oob_16+0x3a0/0x3f8 [ 16.578943] kunit_try_run_case+0x170/0x3f0 [ 16.578991] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.579043] kthread+0x328/0x630 [ 16.579084] ret_from_fork+0x10/0x20 [ 16.579137] [ 16.579155] Allocated by task 166: [ 16.579183] kasan_save_stack+0x3c/0x68 [ 16.579226] kasan_save_track+0x20/0x40 [ 16.579271] kasan_save_alloc_info+0x40/0x58 [ 16.579309] __kasan_kmalloc+0xd4/0xd8 [ 16.579353] __kmalloc_cache_noprof+0x16c/0x3c0 [ 16.579391] kmalloc_oob_16+0xb4/0x3f8 [ 16.579424] kunit_try_run_case+0x170/0x3f0 [ 16.579460] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.579502] kthread+0x328/0x630 [ 16.579542] ret_from_fork+0x10/0x20 [ 16.579586] [ 16.579605] The buggy address belongs to the object at fff00000c3e550e0 [ 16.579605] which belongs to the cache kmalloc-16 of size 16 [ 16.579659] The buggy address is located 0 bytes inside of [ 16.579659] allocated 13-byte region [fff00000c3e550e0, fff00000c3e550ed) [ 16.579717] [ 16.579882] The buggy address belongs to the physical page: [ 16.580200] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103e55 [ 16.580730] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.580839] page_type: f5(slab) [ 16.580909] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 16.581229] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 16.581472] page dumped because: kasan: bad access detected [ 16.581640] [ 16.582317] Memory state around the buggy address: [ 16.582805] fff00000c3e54f80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 16.582855] fff00000c3e55000: 00 06 fc fc 00 06 fc fc 00 02 fc fc 00 06 fc fc [ 16.583233] >fff00000c3e55080: 00 05 fc fc fa fb fc fc fa fb fc fc 00 05 fc fc [ 16.583514] ^ [ 16.583990] fff00000c3e55100: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.584066] fff00000c3e55180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.584183] ==================================================================
[ 12.241585] ================================================================== [ 12.242616] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0 [ 12.243079] Write of size 16 at addr ffff8881022efc60 by task kunit_try_catch/183 [ 12.243314] [ 12.243423] CPU: 0 UID: 0 PID: 183 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 12.243473] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.243484] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.243507] Call Trace: [ 12.243520] <TASK> [ 12.243540] dump_stack_lvl+0x73/0xb0 [ 12.243572] print_report+0xd1/0x610 [ 12.243596] ? __virt_addr_valid+0x1db/0x2d0 [ 12.243620] ? kmalloc_oob_16+0x452/0x4a0 [ 12.243640] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.243662] ? kmalloc_oob_16+0x452/0x4a0 [ 12.243682] kasan_report+0x141/0x180 [ 12.243703] ? kmalloc_oob_16+0x452/0x4a0 [ 12.243729] __asan_report_store16_noabort+0x1b/0x30 [ 12.243753] kmalloc_oob_16+0x452/0x4a0 [ 12.243773] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 12.243795] ? __schedule+0x10cc/0x2b60 [ 12.243817] ? __pfx_read_tsc+0x10/0x10 [ 12.243838] ? ktime_get_ts64+0x86/0x230 [ 12.243864] kunit_try_run_case+0x1a5/0x480 [ 12.243889] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.243911] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.243935] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.243958] ? __kthread_parkme+0x82/0x180 [ 12.243978] ? preempt_count_sub+0x50/0x80 [ 12.244004] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.244027] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.244060] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.244083] kthread+0x337/0x6f0 [ 12.244102] ? trace_preempt_on+0x20/0xc0 [ 12.244125] ? __pfx_kthread+0x10/0x10 [ 12.244145] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.244165] ? calculate_sigpending+0x7b/0xa0 [ 12.244189] ? __pfx_kthread+0x10/0x10 [ 12.244210] ret_from_fork+0x116/0x1d0 [ 12.244228] ? __pfx_kthread+0x10/0x10 [ 12.244247] ret_from_fork_asm+0x1a/0x30 [ 12.244309] </TASK> [ 12.244321] [ 12.257440] Allocated by task 183: [ 12.257856] kasan_save_stack+0x45/0x70 [ 12.258020] kasan_save_track+0x18/0x40 [ 12.258434] kasan_save_alloc_info+0x3b/0x50 [ 12.258857] __kasan_kmalloc+0xb7/0xc0 [ 12.259101] __kmalloc_cache_noprof+0x189/0x420 [ 12.259263] kmalloc_oob_16+0xa8/0x4a0 [ 12.259399] kunit_try_run_case+0x1a5/0x480 [ 12.259545] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.259785] kthread+0x337/0x6f0 [ 12.260039] ret_from_fork+0x116/0x1d0 [ 12.260427] ret_from_fork_asm+0x1a/0x30 [ 12.260637] [ 12.260710] The buggy address belongs to the object at ffff8881022efc60 [ 12.260710] which belongs to the cache kmalloc-16 of size 16 [ 12.261716] The buggy address is located 0 bytes inside of [ 12.261716] allocated 13-byte region [ffff8881022efc60, ffff8881022efc6d) [ 12.262410] [ 12.262490] The buggy address belongs to the physical page: [ 12.262705] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1022ef [ 12.263553] flags: 0x200000000000000(node=0|zone=2) [ 12.264153] page_type: f5(slab) [ 12.264484] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 12.265311] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 12.266091] page dumped because: kasan: bad access detected [ 12.266346] [ 12.266417] Memory state around the buggy address: [ 12.266569] ffff8881022efb00: 00 02 fc fc 00 02 fc fc 00 06 fc fc 00 06 fc fc [ 12.267304] ffff8881022efb80: 00 04 fc fc 00 04 fc fc 00 01 fc fc 00 01 fc fc [ 12.268112] >ffff8881022efc00: 00 04 fc fc 00 04 fc fc 00 05 fc fc 00 05 fc fc [ 12.268897] ^ [ 12.269223] ffff8881022efc80: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.269443] ffff8881022efd00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.269698] ==================================================================