Date
July 10, 2025, 11:10 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.269311] ================================================================== [ 18.269638] BUG: KASAN: slab-use-after-free in kasan_strings+0x95c/0xb00 [ 18.269775] Read of size 1 at addr fff00000c63569d0 by task kunit_try_catch/259 [ 18.269892] [ 18.270019] CPU: 0 UID: 0 PID: 259 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 18.270121] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.270151] Hardware name: linux,dummy-virt (DT) [ 18.270186] Call trace: [ 18.270212] show_stack+0x20/0x38 (C) [ 18.270599] dump_stack_lvl+0x8c/0xd0 [ 18.270665] print_report+0x118/0x608 [ 18.270717] kasan_report+0xdc/0x128 [ 18.270768] __asan_report_load1_noabort+0x20/0x30 [ 18.270863] kasan_strings+0x95c/0xb00 [ 18.270914] kunit_try_run_case+0x170/0x3f0 [ 18.270965] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.271022] kthread+0x328/0x630 [ 18.271071] ret_from_fork+0x10/0x20 [ 18.271158] [ 18.271180] Allocated by task 259: [ 18.271221] kasan_save_stack+0x3c/0x68 [ 18.271271] kasan_save_track+0x20/0x40 [ 18.271317] kasan_save_alloc_info+0x40/0x58 [ 18.271360] __kasan_kmalloc+0xd4/0xd8 [ 18.271415] __kmalloc_cache_noprof+0x16c/0x3c0 [ 18.271461] kasan_strings+0xc8/0xb00 [ 18.271499] kunit_try_run_case+0x170/0x3f0 [ 18.271549] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.271596] kthread+0x328/0x630 [ 18.271630] ret_from_fork+0x10/0x20 [ 18.271680] [ 18.271709] Freed by task 259: [ 18.271738] kasan_save_stack+0x3c/0x68 [ 18.271778] kasan_save_track+0x20/0x40 [ 18.271828] kasan_save_free_info+0x4c/0x78 [ 18.271869] __kasan_slab_free+0x6c/0x98 [ 18.271919] kfree+0x214/0x3c8 [ 18.271964] kasan_strings+0x24c/0xb00 [ 18.272019] kunit_try_run_case+0x170/0x3f0 [ 18.272065] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.272807] kthread+0x328/0x630 [ 18.272878] ret_from_fork+0x10/0x20 [ 18.272986] [ 18.273047] The buggy address belongs to the object at fff00000c63569c0 [ 18.273047] which belongs to the cache kmalloc-32 of size 32 [ 18.273155] The buggy address is located 16 bytes inside of [ 18.273155] freed 32-byte region [fff00000c63569c0, fff00000c63569e0) [ 18.273231] [ 18.273371] The buggy address belongs to the physical page: [ 18.273657] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106356 [ 18.273725] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.274155] page_type: f5(slab) [ 18.274250] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 18.274383] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 18.274458] page dumped because: kasan: bad access detected [ 18.274592] [ 18.274652] Memory state around the buggy address: [ 18.274691] fff00000c6356880: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 18.274738] fff00000c6356900: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 18.274790] >fff00000c6356980: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 18.274950] ^ [ 18.275191] fff00000c6356a00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 18.275244] fff00000c6356a80: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 18.275408] ==================================================================
[ 14.628160] ================================================================== [ 14.628540] BUG: KASAN: slab-use-after-free in kasan_strings+0xcbc/0xe80 [ 14.628857] Read of size 1 at addr ffff8881039ba750 by task kunit_try_catch/277 [ 14.629184] [ 14.629291] CPU: 1 UID: 0 PID: 277 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 14.629331] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.629342] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.629370] Call Trace: [ 14.629384] <TASK> [ 14.629398] dump_stack_lvl+0x73/0xb0 [ 14.629553] print_report+0xd1/0x650 [ 14.629580] ? __virt_addr_valid+0x1db/0x2d0 [ 14.629602] ? kasan_strings+0xcbc/0xe80 [ 14.629623] ? kasan_complete_mode_report_info+0x64/0x200 [ 14.629646] ? kasan_strings+0xcbc/0xe80 [ 14.629667] kasan_report+0x141/0x180 [ 14.629689] ? kasan_strings+0xcbc/0xe80 [ 14.629714] __asan_report_load1_noabort+0x18/0x20 [ 14.629739] kasan_strings+0xcbc/0xe80 [ 14.629761] ? __pfx_kasan_strings+0x10/0x10 [ 14.629781] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 14.629813] ? __pfx_kasan_strings+0x10/0x10 [ 14.629838] kunit_try_run_case+0x1a5/0x480 [ 14.629862] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.629886] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.629910] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.629934] ? __kthread_parkme+0x82/0x180 [ 14.629954] ? preempt_count_sub+0x50/0x80 [ 14.629977] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.630002] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.630027] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.630053] kthread+0x337/0x6f0 [ 14.630072] ? trace_preempt_on+0x20/0xc0 [ 14.630097] ? __pfx_kthread+0x10/0x10 [ 14.630118] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.630140] ? calculate_sigpending+0x7b/0xa0 [ 14.630164] ? __pfx_kthread+0x10/0x10 [ 14.630185] ret_from_fork+0x116/0x1d0 [ 14.630204] ? __pfx_kthread+0x10/0x10 [ 14.630225] ret_from_fork_asm+0x1a/0x30 [ 14.630256] </TASK> [ 14.630266] [ 14.637411] Allocated by task 277: [ 14.637724] kasan_save_stack+0x45/0x70 [ 14.637896] kasan_save_track+0x18/0x40 [ 14.638081] kasan_save_alloc_info+0x3b/0x50 [ 14.638272] __kasan_kmalloc+0xb7/0xc0 [ 14.638611] __kmalloc_cache_noprof+0x189/0x420 [ 14.638829] kasan_strings+0xc0/0xe80 [ 14.638990] kunit_try_run_case+0x1a5/0x480 [ 14.639179] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.639499] kthread+0x337/0x6f0 [ 14.639627] ret_from_fork+0x116/0x1d0 [ 14.639762] ret_from_fork_asm+0x1a/0x30 [ 14.639902] [ 14.639998] Freed by task 277: [ 14.640153] kasan_save_stack+0x45/0x70 [ 14.640361] kasan_save_track+0x18/0x40 [ 14.640563] kasan_save_free_info+0x3f/0x60 [ 14.640773] __kasan_slab_free+0x56/0x70 [ 14.640939] kfree+0x222/0x3f0 [ 14.641058] kasan_strings+0x2aa/0xe80 [ 14.641259] kunit_try_run_case+0x1a5/0x480 [ 14.641671] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.641900] kthread+0x337/0x6f0 [ 14.642050] ret_from_fork+0x116/0x1d0 [ 14.642183] ret_from_fork_asm+0x1a/0x30 [ 14.642321] [ 14.642404] The buggy address belongs to the object at ffff8881039ba740 [ 14.642404] which belongs to the cache kmalloc-32 of size 32 [ 14.642781] The buggy address is located 16 bytes inside of [ 14.642781] freed 32-byte region [ffff8881039ba740, ffff8881039ba760) [ 14.643693] [ 14.643776] The buggy address belongs to the physical page: [ 14.643952] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039ba [ 14.644198] flags: 0x200000000000000(node=0|zone=2) [ 14.644375] page_type: f5(slab) [ 14.644744] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 14.645089] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 14.645659] page dumped because: kasan: bad access detected [ 14.645926] [ 14.646019] Memory state around the buggy address: [ 14.646208] ffff8881039ba600: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 14.646482] ffff8881039ba680: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 14.646842] >ffff8881039ba700: 00 00 07 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 14.647206] ^ [ 14.647577] ffff8881039ba780: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.647854] ffff8881039ba800: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 14.648091] ==================================================================