Date
July 8, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 21.506583] ================================================================== [ 21.506732] BUG: KASAN: slab-use-after-free in kasan_strings+0x95c/0xb00 [ 21.506815] Read of size 1 at addr fff00000c63c9810 by task kunit_try_catch/259 [ 21.506867] [ 21.507037] CPU: 0 UID: 0 PID: 259 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 21.507126] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.507169] Hardware name: linux,dummy-virt (DT) [ 21.507395] Call trace: [ 21.507438] show_stack+0x20/0x38 (C) [ 21.507556] dump_stack_lvl+0x8c/0xd0 [ 21.507661] print_report+0x118/0x608 [ 21.507787] kasan_report+0xdc/0x128 [ 21.507893] __asan_report_load1_noabort+0x20/0x30 [ 21.507955] kasan_strings+0x95c/0xb00 [ 21.508001] kunit_try_run_case+0x170/0x3f0 [ 21.508455] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.508567] kthread+0x328/0x630 [ 21.508717] ret_from_fork+0x10/0x20 [ 21.508883] [ 21.508969] Allocated by task 259: [ 21.509015] kasan_save_stack+0x3c/0x68 [ 21.509104] kasan_save_track+0x20/0x40 [ 21.509176] kasan_save_alloc_info+0x40/0x58 [ 21.509221] __kasan_kmalloc+0xd4/0xd8 [ 21.509270] __kmalloc_cache_noprof+0x16c/0x3c0 [ 21.509312] kasan_strings+0xc8/0xb00 [ 21.509350] kunit_try_run_case+0x170/0x3f0 [ 21.509391] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.509453] kthread+0x328/0x630 [ 21.509488] ret_from_fork+0x10/0x20 [ 21.509527] [ 21.509557] Freed by task 259: [ 21.509585] kasan_save_stack+0x3c/0x68 [ 21.509626] kasan_save_track+0x20/0x40 [ 21.509674] kasan_save_free_info+0x4c/0x78 [ 21.509716] __kasan_slab_free+0x6c/0x98 [ 21.509755] kfree+0x214/0x3c8 [ 21.509794] kasan_strings+0x24c/0xb00 [ 21.509842] kunit_try_run_case+0x170/0x3f0 [ 21.509890] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.509936] kthread+0x328/0x630 [ 21.509979] ret_from_fork+0x10/0x20 [ 21.510017] [ 21.510047] The buggy address belongs to the object at fff00000c63c9800 [ 21.510047] which belongs to the cache kmalloc-32 of size 32 [ 21.510119] The buggy address is located 16 bytes inside of [ 21.510119] freed 32-byte region [fff00000c63c9800, fff00000c63c9820) [ 21.510422] [ 21.510601] The buggy address belongs to the physical page: [ 21.510968] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1063c9 [ 21.511240] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 21.511306] page_type: f5(slab) [ 21.511518] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 21.511859] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 21.511975] page dumped because: kasan: bad access detected [ 21.512072] [ 21.512236] Memory state around the buggy address: [ 21.512319] fff00000c63c9700: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 21.512366] fff00000c63c9780: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 21.512412] >fff00000c63c9800: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 21.512871] ^ [ 21.513024] fff00000c63c9880: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 21.514922] [ 21.515430] print_report+0x118/0x608 [ 21.516968] Allocated by task 259: [ 21.517981] kunit_try_run_case+0x170/0x3f0 [ 21.521563] kasan_strings+0x24c/0xb00 [ 21.522459] Memory state around the buggy address: [ 21.522703] fff00000c63c9900: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 21.524201] Call trace: [ 21.524704] ret_from_fork+0x10/0x20 [ 21.526375] kthread+0x328/0x630 [ 21.529984] The buggy address is located 16 bytes inside of [ 21.529984] freed 32-byte region [fff00000c63c9800, fff00000c63c9820) [ 21.532144] fff00000c63c9900: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 21.543855] kasan_check_range+0x100/0x1a8 [ 21.546439] __kasan_kmalloc+0xd4/0xd8 [ 21.548437] [ 21.549752] page dumped because: kasan: bad access detected [ 21.550778] fff00000c6096900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.553575] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.555168] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 21.557848] ==================================================================
[ 14.455749] ================================================================== [ 14.456310] BUG: KASAN: slab-use-after-free in kasan_strings+0xcbc/0xe80 [ 14.456633] Read of size 1 at addr ffff88810267d890 by task kunit_try_catch/277 [ 14.456852] [ 14.457088] CPU: 1 UID: 0 PID: 277 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 14.457136] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.457147] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.457187] Call Trace: [ 14.457203] <TASK> [ 14.457220] dump_stack_lvl+0x73/0xb0 [ 14.457249] print_report+0xd1/0x650 [ 14.457272] ? __virt_addr_valid+0x1db/0x2d0 [ 14.457295] ? kasan_strings+0xcbc/0xe80 [ 14.457316] ? kasan_complete_mode_report_info+0x64/0x200 [ 14.457339] ? kasan_strings+0xcbc/0xe80 [ 14.457379] kasan_report+0x141/0x180 [ 14.457400] ? kasan_strings+0xcbc/0xe80 [ 14.457426] __asan_report_load1_noabort+0x18/0x20 [ 14.457451] kasan_strings+0xcbc/0xe80 [ 14.457470] ? trace_hardirqs_on+0x37/0xe0 [ 14.457494] ? __pfx_kasan_strings+0x10/0x10 [ 14.457514] ? finish_task_switch.isra.0+0x153/0x700 [ 14.457537] ? __switch_to+0x47/0xf50 [ 14.457563] ? __schedule+0x10cc/0x2b60 [ 14.457612] ? __pfx_read_tsc+0x10/0x10 [ 14.457633] ? ktime_get_ts64+0x86/0x230 [ 14.457659] kunit_try_run_case+0x1a5/0x480 [ 14.457684] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.457711] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.457736] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.457760] ? __kthread_parkme+0x82/0x180 [ 14.457780] ? preempt_count_sub+0x50/0x80 [ 14.457803] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.457828] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.457853] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.457878] kthread+0x337/0x6f0 [ 14.457897] ? trace_preempt_on+0x20/0xc0 [ 14.457920] ? __pfx_kthread+0x10/0x10 [ 14.457941] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.457962] ? calculate_sigpending+0x7b/0xa0 [ 14.457986] ? __pfx_kthread+0x10/0x10 [ 14.458007] ret_from_fork+0x116/0x1d0 [ 14.458025] ? __pfx_kthread+0x10/0x10 [ 14.458045] ret_from_fork_asm+0x1a/0x30 [ 14.458076] </TASK> [ 14.458087] [ 14.466244] Allocated by task 277: [ 14.466396] kasan_save_stack+0x45/0x70 [ 14.466660] kasan_save_track+0x18/0x40 [ 14.466856] kasan_save_alloc_info+0x3b/0x50 [ 14.467056] __kasan_kmalloc+0xb7/0xc0 [ 14.467321] __kmalloc_cache_noprof+0x189/0x420 [ 14.467565] kasan_strings+0xc0/0xe80 [ 14.467768] kunit_try_run_case+0x1a5/0x480 [ 14.467995] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.468252] kthread+0x337/0x6f0 [ 14.468410] ret_from_fork+0x116/0x1d0 [ 14.468595] ret_from_fork_asm+0x1a/0x30 [ 14.468780] [ 14.468914] Freed by task 277: [ 14.469133] kasan_save_stack+0x45/0x70 [ 14.469277] kasan_save_track+0x18/0x40 [ 14.469443] kasan_save_free_info+0x3f/0x60 [ 14.469842] __kasan_slab_free+0x56/0x70 [ 14.470096] kfree+0x222/0x3f0 [ 14.470217] kasan_strings+0x2aa/0xe80 [ 14.470348] kunit_try_run_case+0x1a5/0x480 [ 14.470499] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.470785] kthread+0x337/0x6f0 [ 14.470953] ret_from_fork+0x116/0x1d0 [ 14.471136] ret_from_fork_asm+0x1a/0x30 [ 14.471681] [ 14.471773] The buggy address belongs to the object at ffff88810267d880 [ 14.471773] which belongs to the cache kmalloc-32 of size 32 [ 14.472310] The buggy address is located 16 bytes inside of [ 14.472310] freed 32-byte region [ffff88810267d880, ffff88810267d8a0) [ 14.473214] [ 14.473324] The buggy address belongs to the physical page: [ 14.473547] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10267d [ 14.473914] flags: 0x200000000000000(node=0|zone=2) [ 14.474196] page_type: f5(slab) [ 14.474363] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 14.474721] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 14.475126] page dumped because: kasan: bad access detected [ 14.475352] [ 14.475422] Memory state around the buggy address: [ 14.475711] ffff88810267d780: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 14.476017] ffff88810267d800: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 14.476304] >ffff88810267d880: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.476660] ^ [ 14.476791] ffff88810267d900: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 14.477004] ffff88810267d980: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.477288] ==================================================================