Date
July 20, 2025, 8:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.470292] ================================================================== [ 17.470390] BUG: KASAN: slab-use-after-free in kasan_strings+0x95c/0xb00 [ 17.470740] Read of size 1 at addr fff00000c767da50 by task kunit_try_catch/260 [ 17.470870] [ 17.470999] CPU: 0 UID: 0 PID: 260 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 17.471129] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.471166] Hardware name: linux,dummy-virt (DT) [ 17.471229] Call trace: [ 17.471497] show_stack+0x20/0x38 (C) [ 17.471571] dump_stack_lvl+0x8c/0xd0 [ 17.471631] print_report+0x118/0x5d0 [ 17.471891] kasan_report+0xdc/0x128 [ 17.472083] __asan_report_load1_noabort+0x20/0x30 [ 17.472154] kasan_strings+0x95c/0xb00 [ 17.472218] kunit_try_run_case+0x170/0x3f0 [ 17.472403] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.472575] kthread+0x328/0x630 [ 17.472628] ret_from_fork+0x10/0x20 [ 17.472742] [ 17.472768] Allocated by task 260: [ 17.472865] kasan_save_stack+0x3c/0x68 [ 17.472960] kasan_save_track+0x20/0x40 [ 17.473104] kasan_save_alloc_info+0x40/0x58 [ 17.473434] __kasan_kmalloc+0xd4/0xd8 [ 17.473606] __kmalloc_cache_noprof+0x16c/0x3c0 [ 17.473705] kasan_strings+0xc8/0xb00 [ 17.473871] kunit_try_run_case+0x170/0x3f0 [ 17.473956] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.474073] kthread+0x328/0x630 [ 17.474108] ret_from_fork+0x10/0x20 [ 17.474304] [ 17.474423] Freed by task 260: [ 17.474488] kasan_save_stack+0x3c/0x68 [ 17.474572] kasan_save_track+0x20/0x40 [ 17.474670] kasan_save_free_info+0x4c/0x78 [ 17.474760] __kasan_slab_free+0x6c/0x98 [ 17.474882] kfree+0x214/0x3c8 [ 17.475004] kasan_strings+0x24c/0xb00 [ 17.475067] kunit_try_run_case+0x170/0x3f0 [ 17.475494] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.475559] kthread+0x328/0x630 [ 17.475895] ret_from_fork+0x10/0x20 [ 17.475981] [ 17.476076] The buggy address belongs to the object at fff00000c767da40 [ 17.476076] which belongs to the cache kmalloc-32 of size 32 [ 17.476161] The buggy address is located 16 bytes inside of [ 17.476161] freed 32-byte region [fff00000c767da40, fff00000c767da60) [ 17.476284] [ 17.476355] The buggy address belongs to the physical page: [ 17.476669] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10767d [ 17.476750] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.476829] page_type: f5(slab) [ 17.476926] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 17.477042] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 17.477117] page dumped because: kasan: bad access detected [ 17.477261] [ 17.477332] Memory state around the buggy address: [ 17.477569] fff00000c767d900: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 17.477631] fff00000c767d980: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 17.477817] >fff00000c767da00: 00 00 07 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 17.477918] ^ [ 17.477981] fff00000c767da80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 17.478109] fff00000c767db00: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 17.478256] ==================================================================
[ 14.909232] ================================================================== [ 14.909510] BUG: KASAN: slab-use-after-free in kasan_strings+0xcbc/0xe80 [ 14.909883] Read of size 1 at addr ffff8881038b6250 by task kunit_try_catch/277 [ 14.910407] [ 14.910523] CPU: 1 UID: 0 PID: 277 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 14.910571] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.910584] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.910607] Call Trace: [ 14.910626] <TASK> [ 14.910643] dump_stack_lvl+0x73/0xb0 [ 14.910676] print_report+0xd1/0x610 [ 14.910700] ? __virt_addr_valid+0x1db/0x2d0 [ 14.910724] ? kasan_strings+0xcbc/0xe80 [ 14.910746] ? kasan_complete_mode_report_info+0x64/0x200 [ 14.910768] ? kasan_strings+0xcbc/0xe80 [ 14.910806] kasan_report+0x141/0x180 [ 14.910830] ? kasan_strings+0xcbc/0xe80 [ 14.910859] __asan_report_load1_noabort+0x18/0x20 [ 14.910885] kasan_strings+0xcbc/0xe80 [ 14.910905] ? trace_hardirqs_on+0x37/0xe0 [ 14.910930] ? __pfx_kasan_strings+0x10/0x10 [ 14.910950] ? finish_task_switch.isra.0+0x153/0x700 [ 14.910974] ? __switch_to+0x47/0xf50 [ 14.911003] ? __schedule+0x10c6/0x2b60 [ 14.911028] ? __pfx_read_tsc+0x10/0x10 [ 14.911061] ? ktime_get_ts64+0x86/0x230 [ 14.911088] kunit_try_run_case+0x1a5/0x480 [ 14.911113] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.911136] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.911162] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.911187] ? __kthread_parkme+0x82/0x180 [ 14.911209] ? preempt_count_sub+0x50/0x80 [ 14.911234] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.911259] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.911283] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.911307] kthread+0x337/0x6f0 [ 14.911330] ? trace_preempt_on+0x20/0xc0 [ 14.911353] ? __pfx_kthread+0x10/0x10 [ 14.911375] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.911397] ? calculate_sigpending+0x7b/0xa0 [ 14.911422] ? __pfx_kthread+0x10/0x10 [ 14.911445] ret_from_fork+0x116/0x1d0 [ 14.911463] ? __pfx_kthread+0x10/0x10 [ 14.911496] ret_from_fork_asm+0x1a/0x30 [ 14.911532] </TASK> [ 14.911543] [ 14.919671] Allocated by task 277: [ 14.919972] kasan_save_stack+0x45/0x70 [ 14.920236] kasan_save_track+0x18/0x40 [ 14.920414] kasan_save_alloc_info+0x3b/0x50 [ 14.920621] __kasan_kmalloc+0xb7/0xc0 [ 14.920798] __kmalloc_cache_noprof+0x189/0x420 [ 14.920994] kasan_strings+0xc0/0xe80 [ 14.921358] kunit_try_run_case+0x1a5/0x480 [ 14.921564] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.921806] kthread+0x337/0x6f0 [ 14.921970] ret_from_fork+0x116/0x1d0 [ 14.922388] ret_from_fork_asm+0x1a/0x30 [ 14.922563] [ 14.922639] Freed by task 277: [ 14.922773] kasan_save_stack+0x45/0x70 [ 14.922969] kasan_save_track+0x18/0x40 [ 14.923322] kasan_save_free_info+0x3f/0x60 [ 14.923554] __kasan_slab_free+0x56/0x70 [ 14.923716] kfree+0x222/0x3f0 [ 14.923999] kasan_strings+0x2aa/0xe80 [ 14.924147] kunit_try_run_case+0x1a5/0x480 [ 14.924349] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.924542] kthread+0x337/0x6f0 [ 14.924667] ret_from_fork+0x116/0x1d0 [ 14.924805] ret_from_fork_asm+0x1a/0x30 [ 14.924947] [ 14.925022] The buggy address belongs to the object at ffff8881038b6240 [ 14.925022] which belongs to the cache kmalloc-32 of size 32 [ 14.925431] The buggy address is located 16 bytes inside of [ 14.925431] freed 32-byte region [ffff8881038b6240, ffff8881038b6260) [ 14.926502] [ 14.926616] The buggy address belongs to the physical page: [ 14.926980] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1038b6 [ 14.927569] flags: 0x200000000000000(node=0|zone=2) [ 14.928033] page_type: f5(slab) [ 14.928185] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 14.928424] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 14.928670] page dumped because: kasan: bad access detected [ 14.929151] [ 14.929255] Memory state around the buggy address: [ 14.929496] ffff8881038b6100: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 14.929857] ffff8881038b6180: 00 00 00 04 fc fc fc fc fa fb fb fb fc fc fc fc [ 14.930425] >ffff8881038b6200: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.930719] ^ [ 14.931105] ffff8881038b6280: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.931395] ffff8881038b6300: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 14.931628] ==================================================================