Date
July 15, 2025, 11:09 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.753747] ================================================================== [ 17.754223] BUG: KASAN: slab-use-after-free in kasan_strings+0x95c/0xb00 [ 17.754337] Read of size 1 at addr fff00000c5977b10 by task kunit_try_catch/260 [ 17.754395] [ 17.754427] CPU: 1 UID: 0 PID: 260 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 17.754541] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.754570] Hardware name: linux,dummy-virt (DT) [ 17.754603] Call trace: [ 17.754626] show_stack+0x20/0x38 (C) [ 17.754676] dump_stack_lvl+0x8c/0xd0 [ 17.754797] print_report+0x118/0x5d0 [ 17.754852] kasan_report+0xdc/0x128 [ 17.754899] __asan_report_load1_noabort+0x20/0x30 [ 17.754951] kasan_strings+0x95c/0xb00 [ 17.754998] kunit_try_run_case+0x170/0x3f0 [ 17.755046] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.755109] kthread+0x328/0x630 [ 17.755154] ret_from_fork+0x10/0x20 [ 17.755463] [ 17.755553] Allocated by task 260: [ 17.756640] kasan_save_stack+0x3c/0x68 [ 17.756713] kasan_save_track+0x20/0x40 [ 17.756754] kasan_save_alloc_info+0x40/0x58 [ 17.756797] __kasan_kmalloc+0xd4/0xd8 [ 17.756835] __kmalloc_cache_noprof+0x16c/0x3c0 [ 17.756877] kasan_strings+0xc8/0xb00 [ 17.756913] kunit_try_run_case+0x170/0x3f0 [ 17.757018] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.757066] kthread+0x328/0x630 [ 17.757100] ret_from_fork+0x10/0x20 [ 17.758068] [ 17.758107] Freed by task 260: [ 17.758142] kasan_save_stack+0x3c/0x68 [ 17.758193] kasan_save_track+0x20/0x40 [ 17.758233] kasan_save_free_info+0x4c/0x78 [ 17.758275] __kasan_slab_free+0x6c/0x98 [ 17.758411] kfree+0x214/0x3c8 [ 17.758447] kasan_strings+0x24c/0xb00 [ 17.758496] kunit_try_run_case+0x170/0x3f0 [ 17.758536] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.758681] kthread+0x328/0x630 [ 17.758897] ret_from_fork+0x10/0x20 [ 17.758936] [ 17.758973] The buggy address belongs to the object at fff00000c5977b00 [ 17.758973] which belongs to the cache kmalloc-32 of size 32 [ 17.759061] The buggy address is located 16 bytes inside of [ 17.759061] freed 32-byte region [fff00000c5977b00, fff00000c5977b20) [ 17.759176] [ 17.759260] The buggy address belongs to the physical page: [ 17.759300] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105977 [ 17.759431] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.760142] page_type: f5(slab) [ 17.760276] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 17.761255] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 17.761380] page dumped because: kasan: bad access detected [ 17.761647] [ 17.761673] Memory state around the buggy address: [ 17.761711] fff00000c5977a00: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 17.761761] fff00000c5977a80: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 17.761815] >fff00000c5977b00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 17.761857] ^ [ 17.761926] fff00000c5977b80: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 17.762006] fff00000c5977c00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 17.762533] ==================================================================
[ 14.461498] ================================================================== [ 14.462000] BUG: KASAN: slab-use-after-free in kasan_strings+0xcbc/0xe80 [ 14.462277] Read of size 1 at addr ffff8881038e8050 by task kunit_try_catch/276 [ 14.462577] [ 14.462886] CPU: 1 UID: 0 PID: 276 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 14.462932] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.462944] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.462963] Call Trace: [ 14.462976] <TASK> [ 14.462989] dump_stack_lvl+0x73/0xb0 [ 14.463018] print_report+0xd1/0x610 [ 14.463040] ? __virt_addr_valid+0x1db/0x2d0 [ 14.463063] ? kasan_strings+0xcbc/0xe80 [ 14.463083] ? kasan_complete_mode_report_info+0x64/0x200 [ 14.463107] ? kasan_strings+0xcbc/0xe80 [ 14.463128] kasan_report+0x141/0x180 [ 14.463150] ? kasan_strings+0xcbc/0xe80 [ 14.463176] __asan_report_load1_noabort+0x18/0x20 [ 14.463204] kasan_strings+0xcbc/0xe80 [ 14.463224] ? trace_hardirqs_on+0x37/0xe0 [ 14.463247] ? __pfx_kasan_strings+0x10/0x10 [ 14.463268] ? finish_task_switch.isra.0+0x153/0x700 [ 14.463291] ? __switch_to+0x47/0xf50 [ 14.463316] ? __schedule+0x10cc/0x2b60 [ 14.463338] ? __pfx_read_tsc+0x10/0x10 [ 14.463359] ? ktime_get_ts64+0x86/0x230 [ 14.463383] kunit_try_run_case+0x1a5/0x480 [ 14.463409] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.463433] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.463457] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.463482] ? __kthread_parkme+0x82/0x180 [ 14.463503] ? preempt_count_sub+0x50/0x80 [ 14.463526] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.463552] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.463577] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.463603] kthread+0x337/0x6f0 [ 14.463622] ? trace_preempt_on+0x20/0xc0 [ 14.463645] ? __pfx_kthread+0x10/0x10 [ 14.463666] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.463688] ? calculate_sigpending+0x7b/0xa0 [ 14.463712] ? __pfx_kthread+0x10/0x10 [ 14.463734] ret_from_fork+0x116/0x1d0 [ 14.463752] ? __pfx_kthread+0x10/0x10 [ 14.463785] ret_from_fork_asm+0x1a/0x30 [ 14.463816] </TASK> [ 14.463825] [ 14.474252] Allocated by task 276: [ 14.474815] kasan_save_stack+0x45/0x70 [ 14.475023] kasan_save_track+0x18/0x40 [ 14.475397] kasan_save_alloc_info+0x3b/0x50 [ 14.475650] __kasan_kmalloc+0xb7/0xc0 [ 14.475943] __kmalloc_cache_noprof+0x189/0x420 [ 14.476259] kasan_strings+0xc0/0xe80 [ 14.476561] kunit_try_run_case+0x1a5/0x480 [ 14.476736] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.477021] kthread+0x337/0x6f0 [ 14.477185] ret_from_fork+0x116/0x1d0 [ 14.477371] ret_from_fork_asm+0x1a/0x30 [ 14.477907] [ 14.478007] Freed by task 276: [ 14.478391] kasan_save_stack+0x45/0x70 [ 14.478631] kasan_save_track+0x18/0x40 [ 14.478947] kasan_save_free_info+0x3f/0x60 [ 14.479256] __kasan_slab_free+0x56/0x70 [ 14.479826] kfree+0x222/0x3f0 [ 14.480007] kasan_strings+0x2aa/0xe80 [ 14.480155] kunit_try_run_case+0x1a5/0x480 [ 14.480376] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.480937] kthread+0x337/0x6f0 [ 14.481108] ret_from_fork+0x116/0x1d0 [ 14.481250] ret_from_fork_asm+0x1a/0x30 [ 14.481782] [ 14.481890] The buggy address belongs to the object at ffff8881038e8040 [ 14.481890] which belongs to the cache kmalloc-32 of size 32 [ 14.482692] The buggy address is located 16 bytes inside of [ 14.482692] freed 32-byte region [ffff8881038e8040, ffff8881038e8060) [ 14.483185] [ 14.483273] The buggy address belongs to the physical page: [ 14.483829] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1038e8 [ 14.484157] flags: 0x200000000000000(node=0|zone=2) [ 14.484612] page_type: f5(slab) [ 14.484804] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 14.485096] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 14.485787] page dumped because: kasan: bad access detected [ 14.486026] [ 14.486107] Memory state around the buggy address: [ 14.486333] ffff8881038e7f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.486766] ffff8881038e7f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.487082] >ffff8881038e8000: 00 00 07 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 14.487369] ^ [ 14.488013] ffff8881038e8080: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.488277] ffff8881038e8100: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.488770] ==================================================================