Date
July 19, 2025, 11:11 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.547548] ================================================================== [ 17.547655] BUG: KASAN: slab-use-after-free in kasan_strings+0x95c/0xb00 [ 17.548076] Read of size 1 at addr fff00000c77dfad0 by task kunit_try_catch/260 [ 17.548193] [ 17.548230] CPU: 1 UID: 0 PID: 260 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 17.548398] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.548432] Hardware name: linux,dummy-virt (DT) [ 17.548482] Call trace: [ 17.548508] show_stack+0x20/0x38 (C) [ 17.548572] dump_stack_lvl+0x8c/0xd0 [ 17.548796] print_report+0x118/0x5d0 [ 17.549111] kasan_report+0xdc/0x128 [ 17.549176] __asan_report_load1_noabort+0x20/0x30 [ 17.549232] kasan_strings+0x95c/0xb00 [ 17.549480] kunit_try_run_case+0x170/0x3f0 [ 17.549704] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.549998] kthread+0x328/0x630 [ 17.550083] ret_from_fork+0x10/0x20 [ 17.550286] [ 17.550311] Allocated by task 260: [ 17.550341] kasan_save_stack+0x3c/0x68 [ 17.550569] kasan_save_track+0x20/0x40 [ 17.550744] kasan_save_alloc_info+0x40/0x58 [ 17.550853] __kasan_kmalloc+0xd4/0xd8 [ 17.550971] __kmalloc_cache_noprof+0x16c/0x3c0 [ 17.551096] kasan_strings+0xc8/0xb00 [ 17.551218] kunit_try_run_case+0x170/0x3f0 [ 17.551259] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.551328] kthread+0x328/0x630 [ 17.551563] ret_from_fork+0x10/0x20 [ 17.551727] [ 17.551772] Freed by task 260: [ 17.551959] kasan_save_stack+0x3c/0x68 [ 17.552078] kasan_save_track+0x20/0x40 [ 17.552139] kasan_save_free_info+0x4c/0x78 [ 17.552323] __kasan_slab_free+0x6c/0x98 [ 17.552803] kfree+0x214/0x3c8 [ 17.552884] kasan_strings+0x24c/0xb00 [ 17.553033] kunit_try_run_case+0x170/0x3f0 [ 17.553141] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.553238] kthread+0x328/0x630 [ 17.553430] ret_from_fork+0x10/0x20 [ 17.553494] [ 17.553518] The buggy address belongs to the object at fff00000c77dfac0 [ 17.553518] which belongs to the cache kmalloc-32 of size 32 [ 17.553784] The buggy address is located 16 bytes inside of [ 17.553784] freed 32-byte region [fff00000c77dfac0, fff00000c77dfae0) [ 17.554049] [ 17.554132] The buggy address belongs to the physical page: [ 17.554247] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1077df [ 17.554359] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.554421] page_type: f5(slab) [ 17.554461] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 17.554800] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 17.554979] page dumped because: kasan: bad access detected [ 17.555100] [ 17.555218] Memory state around the buggy address: [ 17.555286] fff00000c77df980: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 17.555433] fff00000c77dfa00: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 17.555645] >fff00000c77dfa80: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 17.555892] ^ [ 17.556012] fff00000c77dfb00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 17.556464] fff00000c77dfb80: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 17.556574] ==================================================================
[ 13.979826] ================================================================== [ 13.980075] BUG: KASAN: slab-use-after-free in kasan_strings+0xcbc/0xe80 [ 13.980454] Read of size 1 at addr ffff8881039fe2d0 by task kunit_try_catch/277 [ 13.980716] [ 13.980831] CPU: 1 UID: 0 PID: 277 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 13.980878] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.980889] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.980911] Call Trace: [ 13.980930] <TASK> [ 13.980947] dump_stack_lvl+0x73/0xb0 [ 13.980976] print_report+0xd1/0x610 [ 13.980999] ? __virt_addr_valid+0x1db/0x2d0 [ 13.981024] ? kasan_strings+0xcbc/0xe80 [ 13.981045] ? kasan_complete_mode_report_info+0x64/0x200 [ 13.981068] ? kasan_strings+0xcbc/0xe80 [ 13.981088] kasan_report+0x141/0x180 [ 13.981110] ? kasan_strings+0xcbc/0xe80 [ 13.981135] __asan_report_load1_noabort+0x18/0x20 [ 13.981158] kasan_strings+0xcbc/0xe80 [ 13.981178] ? trace_hardirqs_on+0x37/0xe0 [ 13.981201] ? __pfx_kasan_strings+0x10/0x10 [ 13.981293] ? finish_task_switch.isra.0+0x153/0x700 [ 13.981317] ? __switch_to+0x47/0xf50 [ 13.981345] ? __schedule+0x10cc/0x2b60 [ 13.981368] ? __pfx_read_tsc+0x10/0x10 [ 13.981389] ? ktime_get_ts64+0x86/0x230 [ 13.981413] kunit_try_run_case+0x1a5/0x480 [ 13.981438] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.981460] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.981484] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.981520] ? __kthread_parkme+0x82/0x180 [ 13.981541] ? preempt_count_sub+0x50/0x80 [ 13.981563] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.981587] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.981610] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.981634] kthread+0x337/0x6f0 [ 13.981653] ? trace_preempt_on+0x20/0xc0 [ 13.981674] ? __pfx_kthread+0x10/0x10 [ 13.981694] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.981715] ? calculate_sigpending+0x7b/0xa0 [ 13.981739] ? __pfx_kthread+0x10/0x10 [ 13.981759] ret_from_fork+0x116/0x1d0 [ 13.981778] ? __pfx_kthread+0x10/0x10 [ 13.981797] ret_from_fork_asm+0x1a/0x30 [ 13.981827] </TASK> [ 13.981836] [ 13.990313] Allocated by task 277: [ 13.990504] kasan_save_stack+0x45/0x70 [ 13.990668] kasan_save_track+0x18/0x40 [ 13.990860] kasan_save_alloc_info+0x3b/0x50 [ 13.991037] __kasan_kmalloc+0xb7/0xc0 [ 13.991393] __kmalloc_cache_noprof+0x189/0x420 [ 13.991616] kasan_strings+0xc0/0xe80 [ 13.991804] kunit_try_run_case+0x1a5/0x480 [ 13.991981] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.992271] kthread+0x337/0x6f0 [ 13.992446] ret_from_fork+0x116/0x1d0 [ 13.992615] ret_from_fork_asm+0x1a/0x30 [ 13.992782] [ 13.992874] Freed by task 277: [ 13.993033] kasan_save_stack+0x45/0x70 [ 13.993345] kasan_save_track+0x18/0x40 [ 13.993493] kasan_save_free_info+0x3f/0x60 [ 13.993654] __kasan_slab_free+0x56/0x70 [ 13.993792] kfree+0x222/0x3f0 [ 13.993915] kasan_strings+0x2aa/0xe80 [ 13.994047] kunit_try_run_case+0x1a5/0x480 [ 13.994190] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.994434] kthread+0x337/0x6f0 [ 13.994613] ret_from_fork+0x116/0x1d0 [ 13.995198] ret_from_fork_asm+0x1a/0x30 [ 13.995644] [ 13.995739] The buggy address belongs to the object at ffff8881039fe2c0 [ 13.995739] which belongs to the cache kmalloc-32 of size 32 [ 13.996096] The buggy address is located 16 bytes inside of [ 13.996096] freed 32-byte region [ffff8881039fe2c0, ffff8881039fe2e0) [ 13.996762] [ 13.996861] The buggy address belongs to the physical page: [ 13.997118] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039fe [ 13.997477] flags: 0x200000000000000(node=0|zone=2) [ 13.997822] page_type: f5(slab) [ 13.997942] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 13.998175] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 13.998404] page dumped because: kasan: bad access detected [ 13.998885] [ 13.998981] Memory state around the buggy address: [ 13.999285] ffff8881039fe180: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 13.999791] ffff8881039fe200: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 14.000226] >ffff8881039fe280: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 14.000445] ^ [ 14.000677] ffff8881039fe300: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.001000] ffff8881039fe380: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 14.001606] ==================================================================