Date
July 23, 2025, 3:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 32.818393] ================================================================== [ 32.818466] BUG: KASAN: slab-use-after-free in kasan_strings+0x95c/0xb00 [ 32.818520] Read of size 1 at addr fff00000c9c2cc50 by task kunit_try_catch/292 [ 32.818572] [ 32.818605] CPU: 1 UID: 0 PID: 292 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc7-next-20250723 #1 PREEMPT [ 32.818929] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 32.818978] Hardware name: linux,dummy-virt (DT) [ 32.819051] Call trace: [ 32.819106] show_stack+0x20/0x38 (C) [ 32.819183] dump_stack_lvl+0x8c/0xd0 [ 32.819252] print_report+0x118/0x5e8 [ 32.819350] kasan_report+0xdc/0x128 [ 32.819394] __asan_report_load1_noabort+0x20/0x30 [ 32.819463] kasan_strings+0x95c/0xb00 [ 32.819528] kunit_try_run_case+0x170/0x3f0 [ 32.819595] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.819651] kthread+0x328/0x630 [ 32.819709] ret_from_fork+0x10/0x20 [ 32.819758] [ 32.819778] Allocated by task 292: [ 32.819956] kasan_save_stack+0x3c/0x68 [ 32.820178] kasan_save_track+0x20/0x40 [ 32.820257] kasan_save_alloc_info+0x40/0x58 [ 32.820319] __kasan_kmalloc+0xd4/0xd8 [ 32.820355] __kmalloc_cache_noprof+0x16c/0x3c0 [ 32.820428] kasan_strings+0xc8/0xb00 [ 32.820486] kunit_try_run_case+0x170/0x3f0 [ 32.820600] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.820676] kthread+0x328/0x630 [ 32.820711] ret_from_fork+0x10/0x20 [ 32.820750] [ 32.820770] Freed by task 292: [ 32.820990] kasan_save_stack+0x3c/0x68 [ 32.821030] kasan_save_track+0x20/0x40 [ 32.821068] kasan_save_free_info+0x4c/0x78 [ 32.821107] __kasan_slab_free+0x6c/0x98 [ 32.821143] kfree+0x214/0x3c8 [ 32.821181] kasan_strings+0x24c/0xb00 [ 32.821221] kunit_try_run_case+0x170/0x3f0 [ 32.821261] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.821352] kthread+0x328/0x630 [ 32.821498] ret_from_fork+0x10/0x20 [ 32.821580] [ 32.821693] The buggy address belongs to the object at fff00000c9c2cc40 [ 32.821693] which belongs to the cache kmalloc-32 of size 32 [ 32.821799] The buggy address is located 16 bytes inside of [ 32.821799] freed 32-byte region [fff00000c9c2cc40, fff00000c9c2cc60) [ 32.821874] [ 32.822447] The buggy address belongs to the physical page: [ 32.822490] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109c2c [ 32.822561] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 32.822611] page_type: f5(slab) [ 32.822649] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 32.822915] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 32.823002] page dumped because: kasan: bad access detected [ 32.823122] [ 32.823190] Memory state around the buggy address: [ 32.823306] fff00000c9c2cb00: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 32.823397] fff00000c9c2cb80: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 32.823469] >fff00000c9c2cc00: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 32.823560] ^ [ 32.823660] fff00000c9c2cc80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 32.823750] fff00000c9c2cd00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 32.823848] ==================================================================
[ 27.245570] ================================================================== [ 27.246175] BUG: KASAN: slab-use-after-free in kasan_strings+0xcbc/0xe80 [ 27.246778] Read of size 1 at addr ffff8881060ae110 by task kunit_try_catch/308 [ 27.247417] [ 27.247674] CPU: 1 UID: 0 PID: 308 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7-next-20250723 #1 PREEMPT(voluntary) [ 27.247744] Tainted: [B]=BAD_PAGE, [N]=TEST [ 27.247758] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 27.247781] Call Trace: [ 27.247802] <TASK> [ 27.247823] dump_stack_lvl+0x73/0xb0 [ 27.247856] print_report+0xd1/0x640 [ 27.247879] ? __virt_addr_valid+0x1db/0x2d0 [ 27.247904] ? kasan_strings+0xcbc/0xe80 [ 27.247925] ? kasan_complete_mode_report_info+0x64/0x200 [ 27.247952] ? kasan_strings+0xcbc/0xe80 [ 27.247973] kasan_report+0x141/0x180 [ 27.247997] ? kasan_strings+0xcbc/0xe80 [ 27.248024] __asan_report_load1_noabort+0x18/0x20 [ 27.248048] kasan_strings+0xcbc/0xe80 [ 27.248068] ? trace_hardirqs_on+0x37/0xe0 [ 27.248092] ? __pfx_kasan_strings+0x10/0x10 [ 27.248114] ? finish_task_switch.isra.0+0x153/0x700 [ 27.248137] ? __switch_to+0x47/0xf80 [ 27.248175] ? __schedule+0x10da/0x2b60 [ 27.248200] ? __pfx_read_tsc+0x10/0x10 [ 27.248222] ? ktime_get_ts64+0x86/0x230 [ 27.248246] kunit_try_run_case+0x1a5/0x480 [ 27.248272] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.248296] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 27.248322] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 27.248346] ? __kthread_parkme+0x82/0x180 [ 27.248367] ? preempt_count_sub+0x50/0x80 [ 27.248448] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.248471] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.248496] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 27.248519] kthread+0x337/0x6f0 [ 27.248540] ? trace_preempt_on+0x20/0xc0 [ 27.248563] ? __pfx_kthread+0x10/0x10 [ 27.248583] ? _raw_spin_unlock_irq+0x47/0x80 [ 27.248609] ? calculate_sigpending+0x7b/0xa0 [ 27.248632] ? __pfx_kthread+0x10/0x10 [ 27.248655] ret_from_fork+0x116/0x1d0 [ 27.248675] ? __pfx_kthread+0x10/0x10 [ 27.248695] ret_from_fork_asm+0x1a/0x30 [ 27.248728] </TASK> [ 27.248739] [ 27.260907] Allocated by task 308: [ 27.261286] kasan_save_stack+0x45/0x70 [ 27.261666] kasan_save_track+0x18/0x40 [ 27.262159] kasan_save_alloc_info+0x3b/0x50 [ 27.262353] __kasan_kmalloc+0xb7/0xc0 [ 27.262736] __kmalloc_cache_noprof+0x189/0x420 [ 27.263094] kasan_strings+0xc0/0xe80 [ 27.263233] kunit_try_run_case+0x1a5/0x480 [ 27.263381] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.263891] kthread+0x337/0x6f0 [ 27.264241] ret_from_fork+0x116/0x1d0 [ 27.264619] ret_from_fork_asm+0x1a/0x30 [ 27.265084] [ 27.265274] Freed by task 308: [ 27.265608] kasan_save_stack+0x45/0x70 [ 27.265750] kasan_save_track+0x18/0x40 [ 27.265875] kasan_save_free_info+0x3f/0x60 [ 27.266047] __kasan_slab_free+0x56/0x70 [ 27.266395] kfree+0x222/0x3f0 [ 27.266737] kasan_strings+0x2aa/0xe80 [ 27.267154] kunit_try_run_case+0x1a5/0x480 [ 27.267587] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.268156] kthread+0x337/0x6f0 [ 27.268509] ret_from_fork+0x116/0x1d0 [ 27.268898] ret_from_fork_asm+0x1a/0x30 [ 27.269156] [ 27.269224] The buggy address belongs to the object at ffff8881060ae100 [ 27.269224] which belongs to the cache kmalloc-32 of size 32 [ 27.270102] The buggy address is located 16 bytes inside of [ 27.270102] freed 32-byte region [ffff8881060ae100, ffff8881060ae120) [ 27.271228] [ 27.271416] The buggy address belongs to the physical page: [ 27.271713] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1060ae [ 27.271985] flags: 0x200000000000000(node=0|zone=2) [ 27.272527] page_type: f5(slab) [ 27.272874] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 27.273644] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 27.274236] page dumped because: kasan: bad access detected [ 27.274420] [ 27.274485] Memory state around the buggy address: [ 27.274631] ffff8881060ae000: 00 00 00 04 fc fc fc fc 00 00 07 fc fc fc fc fc [ 27.274836] ffff8881060ae080: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 27.275053] >ffff8881060ae100: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 27.275272] ^ [ 27.275452] ffff8881060ae180: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 27.275723] ffff8881060ae200: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 27.275987] ==================================================================