Date
July 17, 2025, 11:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.843624] ================================================================== [ 17.843678] BUG: KASAN: slab-use-after-free in kasan_strings+0x95c/0xb00 [ 17.843833] Read of size 1 at addr fff00000c7940d90 by task kunit_try_catch/260 [ 17.843923] [ 17.843958] CPU: 0 UID: 0 PID: 260 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 17.844056] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.844090] Hardware name: linux,dummy-virt (DT) [ 17.844148] Call trace: [ 17.844172] show_stack+0x20/0x38 (C) [ 17.844223] dump_stack_lvl+0x8c/0xd0 [ 17.844271] print_report+0x118/0x5d0 [ 17.844317] kasan_report+0xdc/0x128 [ 17.844388] __asan_report_load1_noabort+0x20/0x30 [ 17.844527] kasan_strings+0x95c/0xb00 [ 17.844573] kunit_try_run_case+0x170/0x3f0 [ 17.844649] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.844731] kthread+0x328/0x630 [ 17.844808] ret_from_fork+0x10/0x20 [ 17.844934] [ 17.844955] Allocated by task 260: [ 17.844998] kasan_save_stack+0x3c/0x68 [ 17.845043] kasan_save_track+0x20/0x40 [ 17.845083] kasan_save_alloc_info+0x40/0x58 [ 17.845124] __kasan_kmalloc+0xd4/0xd8 [ 17.845303] __kmalloc_cache_noprof+0x16c/0x3c0 [ 17.845352] kasan_strings+0xc8/0xb00 [ 17.845433] kunit_try_run_case+0x170/0x3f0 [ 17.845507] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.845564] kthread+0x328/0x630 [ 17.845632] ret_from_fork+0x10/0x20 [ 17.845792] [ 17.845813] Freed by task 260: [ 17.845842] kasan_save_stack+0x3c/0x68 [ 17.845965] kasan_save_track+0x20/0x40 [ 17.846074] kasan_save_free_info+0x4c/0x78 [ 17.846127] __kasan_slab_free+0x6c/0x98 [ 17.846218] kfree+0x214/0x3c8 [ 17.846281] kasan_strings+0x24c/0xb00 [ 17.846359] kunit_try_run_case+0x170/0x3f0 [ 17.846410] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.846454] kthread+0x328/0x630 [ 17.846490] ret_from_fork+0x10/0x20 [ 17.846526] [ 17.846546] The buggy address belongs to the object at fff00000c7940d80 [ 17.846546] which belongs to the cache kmalloc-32 of size 32 [ 17.846758] The buggy address is located 16 bytes inside of [ 17.846758] freed 32-byte region [fff00000c7940d80, fff00000c7940da0) [ 17.846898] [ 17.846976] The buggy address belongs to the physical page: [ 17.847079] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107940 [ 17.847187] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.847260] page_type: f5(slab) [ 17.847300] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 17.847387] raw: 0000000000000000 0000000000400040 00000000f5000000 0000000000000000 [ 17.847436] page dumped because: kasan: bad access detected [ 17.847472] [ 17.847515] Memory state around the buggy address: [ 17.847600] fff00000c7940c80: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 17.847740] fff00000c7940d00: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 17.847868] >fff00000c7940d80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 17.847970] ^ [ 17.848046] fff00000c7940e00: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 17.848212] fff00000c7940e80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 17.848255] ==================================================================
[ 15.007620] ================================================================== [ 15.008280] BUG: KASAN: slab-use-after-free in kasan_strings+0xcbc/0xe80 [ 15.009034] Read of size 1 at addr ffff888102a5ed10 by task kunit_try_catch/276 [ 15.011923] [ 15.012027] CPU: 1 UID: 0 PID: 276 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 15.012079] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.012091] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 15.012113] Call Trace: [ 15.012124] <TASK> [ 15.012139] dump_stack_lvl+0x73/0xb0 [ 15.012170] print_report+0xd1/0x610 [ 15.012193] ? __virt_addr_valid+0x1db/0x2d0 [ 15.012216] ? kasan_strings+0xcbc/0xe80 [ 15.012714] ? kasan_complete_mode_report_info+0x64/0x200 [ 15.012761] ? kasan_strings+0xcbc/0xe80 [ 15.012784] kasan_report+0x141/0x180 [ 15.012807] ? kasan_strings+0xcbc/0xe80 [ 15.012833] __asan_report_load1_noabort+0x18/0x20 [ 15.012858] kasan_strings+0xcbc/0xe80 [ 15.012879] ? trace_hardirqs_on+0x37/0xe0 [ 15.012904] ? __pfx_kasan_strings+0x10/0x10 [ 15.012926] ? finish_task_switch.isra.0+0x153/0x700 [ 15.012949] ? __switch_to+0x47/0xf50 [ 15.012975] ? __schedule+0x10cc/0x2b60 [ 15.012997] ? __pfx_read_tsc+0x10/0x10 [ 15.013017] ? ktime_get_ts64+0x86/0x230 [ 15.013041] kunit_try_run_case+0x1a5/0x480 [ 15.013066] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.013089] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 15.013113] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 15.013138] ? __kthread_parkme+0x82/0x180 [ 15.013158] ? preempt_count_sub+0x50/0x80 [ 15.013181] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.013205] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.013231] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 15.013300] kthread+0x337/0x6f0 [ 15.013320] ? trace_preempt_on+0x20/0xc0 [ 15.013343] ? __pfx_kthread+0x10/0x10 [ 15.013364] ? _raw_spin_unlock_irq+0x47/0x80 [ 15.013387] ? calculate_sigpending+0x7b/0xa0 [ 15.013420] ? __pfx_kthread+0x10/0x10 [ 15.013441] ret_from_fork+0x116/0x1d0 [ 15.013461] ? __pfx_kthread+0x10/0x10 [ 15.013482] ret_from_fork_asm+0x1a/0x30 [ 15.013513] </TASK> [ 15.013523] [ 15.024990] Allocated by task 276: [ 15.025214] kasan_save_stack+0x45/0x70 [ 15.025373] kasan_save_track+0x18/0x40 [ 15.025511] kasan_save_alloc_info+0x3b/0x50 [ 15.025671] __kasan_kmalloc+0xb7/0xc0 [ 15.025889] __kmalloc_cache_noprof+0x189/0x420 [ 15.026147] kasan_strings+0xc0/0xe80 [ 15.026467] kunit_try_run_case+0x1a5/0x480 [ 15.026696] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.026935] kthread+0x337/0x6f0 [ 15.027058] ret_from_fork+0x116/0x1d0 [ 15.027193] ret_from_fork_asm+0x1a/0x30 [ 15.027381] [ 15.027565] Freed by task 276: [ 15.027966] kasan_save_stack+0x45/0x70 [ 15.028173] kasan_save_track+0x18/0x40 [ 15.028598] kasan_save_free_info+0x3f/0x60 [ 15.028831] __kasan_slab_free+0x56/0x70 [ 15.029025] kfree+0x222/0x3f0 [ 15.029212] kasan_strings+0x2aa/0xe80 [ 15.029473] kunit_try_run_case+0x1a5/0x480 [ 15.029688] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.029933] kthread+0x337/0x6f0 [ 15.030109] ret_from_fork+0x116/0x1d0 [ 15.030362] ret_from_fork_asm+0x1a/0x30 [ 15.030638] [ 15.030718] The buggy address belongs to the object at ffff888102a5ed00 [ 15.030718] which belongs to the cache kmalloc-32 of size 32 [ 15.031229] The buggy address is located 16 bytes inside of [ 15.031229] freed 32-byte region [ffff888102a5ed00, ffff888102a5ed20) [ 15.031893] [ 15.031997] The buggy address belongs to the physical page: [ 15.032207] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a5e [ 15.032449] flags: 0x200000000000000(node=0|zone=2) [ 15.032695] page_type: f5(slab) [ 15.032873] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 15.033209] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 15.033712] page dumped because: kasan: bad access detected [ 15.033883] [ 15.033951] Memory state around the buggy address: [ 15.034101] ffff888102a5ec00: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 15.034518] ffff888102a5ec80: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 15.034878] >ffff888102a5ed00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 15.035188] ^ [ 15.035635] ffff888102a5ed80: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 15.036012] ffff888102a5ee00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 15.036294] ==================================================================