Date
July 16, 2025, 3:10 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.826480] ================================================================== [ 18.826583] BUG: KASAN: slab-use-after-free in kasan_strings+0x95c/0xb00 [ 18.826687] Read of size 1 at addr fff00000c595c710 by task kunit_try_catch/259 [ 18.826769] [ 18.826857] CPU: 1 UID: 0 PID: 259 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 18.827259] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.827301] Hardware name: linux,dummy-virt (DT) [ 18.827344] Call trace: [ 18.827465] show_stack+0x20/0x38 (C) [ 18.827561] dump_stack_lvl+0x8c/0xd0 [ 18.827748] print_report+0x118/0x5d0 [ 18.827837] kasan_report+0xdc/0x128 [ 18.828023] __asan_report_load1_noabort+0x20/0x30 [ 18.828078] kasan_strings+0x95c/0xb00 [ 18.828485] kunit_try_run_case+0x170/0x3f0 [ 18.828675] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.828748] kthread+0x328/0x630 [ 18.828932] ret_from_fork+0x10/0x20 [ 18.829244] [ 18.829350] Allocated by task 259: [ 18.829446] kasan_save_stack+0x3c/0x68 [ 18.829612] kasan_save_track+0x20/0x40 [ 18.829659] kasan_save_alloc_info+0x40/0x58 [ 18.829814] __kasan_kmalloc+0xd4/0xd8 [ 18.830043] __kmalloc_cache_noprof+0x16c/0x3c0 [ 18.830136] kasan_strings+0xc8/0xb00 [ 18.830324] kunit_try_run_case+0x170/0x3f0 [ 18.830422] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.830475] kthread+0x328/0x630 [ 18.830558] ret_from_fork+0x10/0x20 [ 18.830599] [ 18.830621] Freed by task 259: [ 18.830650] kasan_save_stack+0x3c/0x68 [ 18.830699] kasan_save_track+0x20/0x40 [ 18.830760] kasan_save_free_info+0x4c/0x78 [ 18.830811] __kasan_slab_free+0x6c/0x98 [ 18.830858] kfree+0x214/0x3c8 [ 18.830898] kasan_strings+0x24c/0xb00 [ 18.830937] kunit_try_run_case+0x170/0x3f0 [ 18.830977] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.831023] kthread+0x328/0x630 [ 18.831066] ret_from_fork+0x10/0x20 [ 18.831123] [ 18.831160] The buggy address belongs to the object at fff00000c595c700 [ 18.831160] which belongs to the cache kmalloc-32 of size 32 [ 18.831224] The buggy address is located 16 bytes inside of [ 18.831224] freed 32-byte region [fff00000c595c700, fff00000c595c720) [ 18.831516] [ 18.831784] The buggy address belongs to the physical page: [ 18.831859] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10595c [ 18.831991] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.832065] page_type: f5(slab) [ 18.832122] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 18.832181] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 18.832361] page dumped because: kasan: bad access detected [ 18.832616] [ 18.832831] Memory state around the buggy address: [ 18.832962] fff00000c595c600: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 18.833055] fff00000c595c680: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 18.833120] >fff00000c595c700: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 18.833463] ^ [ 18.833619] fff00000c595c780: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 18.833764] fff00000c595c800: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 18.833918] ==================================================================
[ 14.555122] ================================================================== [ 14.555429] BUG: KASAN: slab-use-after-free in kasan_strings+0xcbc/0xe80 [ 14.555705] Read of size 1 at addr ffff888103a5c550 by task kunit_try_catch/276 [ 14.556063] [ 14.556171] CPU: 0 UID: 0 PID: 276 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 14.556213] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.556225] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.556247] Call Trace: [ 14.556262] <TASK> [ 14.556275] dump_stack_lvl+0x73/0xb0 [ 14.556303] print_report+0xd1/0x610 [ 14.556327] ? __virt_addr_valid+0x1db/0x2d0 [ 14.556351] ? kasan_strings+0xcbc/0xe80 [ 14.556372] ? kasan_complete_mode_report_info+0x64/0x200 [ 14.556397] ? kasan_strings+0xcbc/0xe80 [ 14.556419] kasan_report+0x141/0x180 [ 14.556459] ? kasan_strings+0xcbc/0xe80 [ 14.556485] __asan_report_load1_noabort+0x18/0x20 [ 14.556511] kasan_strings+0xcbc/0xe80 [ 14.556532] ? trace_hardirqs_on+0x37/0xe0 [ 14.556556] ? __pfx_kasan_strings+0x10/0x10 [ 14.556578] ? finish_task_switch.isra.0+0x153/0x700 [ 14.556602] ? __switch_to+0x47/0xf50 [ 14.556628] ? __schedule+0x10cc/0x2b60 [ 14.556652] ? __pfx_read_tsc+0x10/0x10 [ 14.556674] ? ktime_get_ts64+0x86/0x230 [ 14.556699] kunit_try_run_case+0x1a5/0x480 [ 14.556725] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.556749] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.556787] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.556812] ? __kthread_parkme+0x82/0x180 [ 14.556834] ? preempt_count_sub+0x50/0x80 [ 14.556858] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.556883] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.556909] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.556934] kthread+0x337/0x6f0 [ 14.556954] ? trace_preempt_on+0x20/0xc0 [ 14.556978] ? __pfx_kthread+0x10/0x10 [ 14.557145] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.557168] ? calculate_sigpending+0x7b/0xa0 [ 14.557194] ? __pfx_kthread+0x10/0x10 [ 14.557216] ret_from_fork+0x116/0x1d0 [ 14.557237] ? __pfx_kthread+0x10/0x10 [ 14.557258] ret_from_fork_asm+0x1a/0x30 [ 14.557290] </TASK> [ 14.557300] [ 14.565528] Allocated by task 276: [ 14.565711] kasan_save_stack+0x45/0x70 [ 14.565894] kasan_save_track+0x18/0x40 [ 14.566167] kasan_save_alloc_info+0x3b/0x50 [ 14.566356] __kasan_kmalloc+0xb7/0xc0 [ 14.566554] __kmalloc_cache_noprof+0x189/0x420 [ 14.566715] kasan_strings+0xc0/0xe80 [ 14.566858] kunit_try_run_case+0x1a5/0x480 [ 14.567007] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.567190] kthread+0x337/0x6f0 [ 14.567311] ret_from_fork+0x116/0x1d0 [ 14.567445] ret_from_fork_asm+0x1a/0x30 [ 14.567586] [ 14.567681] Freed by task 276: [ 14.567849] kasan_save_stack+0x45/0x70 [ 14.568059] kasan_save_track+0x18/0x40 [ 14.568252] kasan_save_free_info+0x3f/0x60 [ 14.568520] __kasan_slab_free+0x56/0x70 [ 14.568857] kfree+0x222/0x3f0 [ 14.569207] kasan_strings+0x2aa/0xe80 [ 14.569401] kunit_try_run_case+0x1a5/0x480 [ 14.569589] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.569782] kthread+0x337/0x6f0 [ 14.569904] ret_from_fork+0x116/0x1d0 [ 14.570242] ret_from_fork_asm+0x1a/0x30 [ 14.570459] [ 14.570555] The buggy address belongs to the object at ffff888103a5c540 [ 14.570555] which belongs to the cache kmalloc-32 of size 32 [ 14.571267] The buggy address is located 16 bytes inside of [ 14.571267] freed 32-byte region [ffff888103a5c540, ffff888103a5c560) [ 14.571797] [ 14.571894] The buggy address belongs to the physical page: [ 14.572249] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a5c [ 14.572630] flags: 0x200000000000000(node=0|zone=2) [ 14.572849] page_type: f5(slab) [ 14.573141] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 14.573388] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 14.573917] page dumped because: kasan: bad access detected [ 14.574202] [ 14.574283] Memory state around the buggy address: [ 14.574523] ffff888103a5c400: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.574818] ffff888103a5c480: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 14.575165] >ffff888103a5c500: 00 00 07 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 14.575389] ^ [ 14.575572] ffff888103a5c580: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.575815] ffff888103a5c600: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 14.576134] ==================================================================