Date
June 19, 2025, 12:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 33.350506] ================================================================== [ 33.350641] BUG: KASAN: slab-use-after-free in kasan_strings+0x95c/0xb00 [ 33.350769] Read of size 1 at addr fff00000c76d03d0 by task kunit_try_catch/270 [ 33.350914] [ 33.351025] CPU: 0 UID: 0 PID: 270 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250619 #1 PREEMPT [ 33.351260] Tainted: [B]=BAD_PAGE, [N]=TEST [ 33.351330] Hardware name: linux,dummy-virt (DT) [ 33.351414] Call trace: [ 33.351475] show_stack+0x20/0x38 (C) [ 33.351601] dump_stack_lvl+0x8c/0xd0 [ 33.351724] print_report+0x118/0x608 [ 33.351842] kasan_report+0xdc/0x128 [ 33.352013] __asan_report_load1_noabort+0x20/0x30 [ 33.352193] kasan_strings+0x95c/0xb00 [ 33.352357] kunit_try_run_case+0x170/0x3f0 [ 33.352524] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 33.352707] kthread+0x328/0x630 [ 33.352856] ret_from_fork+0x10/0x20 [ 33.353035] [ 33.353103] Allocated by task 270: [ 33.353174] kasan_save_stack+0x3c/0x68 [ 33.353323] kasan_save_track+0x20/0x40 [ 33.353418] kasan_save_alloc_info+0x40/0x58 [ 33.353506] __kasan_kmalloc+0xd4/0xd8 [ 33.353593] __kmalloc_cache_noprof+0x16c/0x3c0 [ 33.353742] kasan_strings+0xc8/0xb00 [ 33.353856] kunit_try_run_case+0x170/0x3f0 [ 33.353975] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 33.354074] kthread+0x328/0x630 [ 33.354151] ret_from_fork+0x10/0x20 [ 33.354244] [ 33.354294] Freed by task 270: [ 33.354373] kasan_save_stack+0x3c/0x68 [ 33.354480] kasan_save_track+0x20/0x40 [ 33.354597] kasan_save_free_info+0x4c/0x78 [ 33.354736] __kasan_slab_free+0x6c/0x98 [ 33.354829] kfree+0x214/0x3c8 [ 33.354977] kasan_strings+0x24c/0xb00 [ 33.355075] kunit_try_run_case+0x170/0x3f0 [ 33.355202] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 33.355334] kthread+0x328/0x630 [ 33.355551] ret_from_fork+0x10/0x20 [ 33.355663] [ 33.355724] The buggy address belongs to the object at fff00000c76d03c0 [ 33.355724] which belongs to the cache kmalloc-32 of size 32 [ 33.355890] The buggy address is located 16 bytes inside of [ 33.355890] freed 32-byte region [fff00000c76d03c0, fff00000c76d03e0) [ 33.356035] [ 33.356084] The buggy address belongs to the physical page: [ 33.356162] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1076d0 [ 33.356304] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 33.356427] page_type: f5(slab) [ 33.356552] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 33.356679] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 33.356774] page dumped because: kasan: bad access detected [ 33.356905] [ 33.356964] Memory state around the buggy address: [ 33.357053] fff00000c76d0280: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 33.357168] fff00000c76d0300: 00 00 00 04 fc fc fc fc 00 00 07 fc fc fc fc fc [ 33.357283] >fff00000c76d0380: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 33.357387] ^ [ 33.357469] fff00000c76d0400: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 33.357561] fff00000c76d0480: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 33.357642] ==================================================================
[ 29.371707] ================================================================== [ 29.372374] BUG: KASAN: slab-use-after-free in kasan_strings+0xcbc/0xe80 [ 29.372783] Read of size 1 at addr ffff8881024dbb10 by task kunit_try_catch/288 [ 29.373254] [ 29.373455] CPU: 1 UID: 0 PID: 288 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250619 #1 PREEMPT(voluntary) [ 29.373562] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.373589] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 29.373640] Call Trace: [ 29.373686] <TASK> [ 29.373732] dump_stack_lvl+0x73/0xb0 [ 29.373804] print_report+0xd1/0x650 [ 29.373857] ? __virt_addr_valid+0x1db/0x2d0 [ 29.373902] ? kasan_strings+0xcbc/0xe80 [ 29.373940] ? kasan_complete_mode_report_info+0x64/0x200 [ 29.373983] ? kasan_strings+0xcbc/0xe80 [ 29.374023] kasan_report+0x141/0x180 [ 29.374070] ? kasan_strings+0xcbc/0xe80 [ 29.374283] __asan_report_load1_noabort+0x18/0x20 [ 29.374345] kasan_strings+0xcbc/0xe80 [ 29.374392] ? trace_hardirqs_on+0x37/0xe0 [ 29.374445] ? __pfx_kasan_strings+0x10/0x10 [ 29.374493] ? finish_task_switch.isra.0+0x153/0x700 [ 29.374540] ? __switch_to+0x47/0xf50 [ 29.374584] ? __schedule+0x10cc/0x2b60 [ 29.374628] ? __pfx_read_tsc+0x10/0x10 [ 29.374668] ? ktime_get_ts64+0x86/0x230 [ 29.374716] kunit_try_run_case+0x1a5/0x480 [ 29.374773] ? __pfx_kunit_try_run_case+0x10/0x10 [ 29.374819] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 29.374861] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 29.374935] ? __kthread_parkme+0x82/0x180 [ 29.375109] ? preempt_count_sub+0x50/0x80 [ 29.375168] ? __pfx_kunit_try_run_case+0x10/0x10 [ 29.375207] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 29.375235] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 29.375261] kthread+0x337/0x6f0 [ 29.375283] ? trace_preempt_on+0x20/0xc0 [ 29.375307] ? __pfx_kthread+0x10/0x10 [ 29.375329] ? _raw_spin_unlock_irq+0x47/0x80 [ 29.375353] ? calculate_sigpending+0x7b/0xa0 [ 29.375378] ? __pfx_kthread+0x10/0x10 [ 29.375401] ret_from_fork+0x116/0x1d0 [ 29.375422] ? __pfx_kthread+0x10/0x10 [ 29.375444] ret_from_fork_asm+0x1a/0x30 [ 29.375477] </TASK> [ 29.375491] [ 29.385318] Allocated by task 288: [ 29.385707] kasan_save_stack+0x45/0x70 [ 29.386327] kasan_save_track+0x18/0x40 [ 29.386515] kasan_save_alloc_info+0x3b/0x50 [ 29.386814] __kasan_kmalloc+0xb7/0xc0 [ 29.387311] __kmalloc_cache_noprof+0x189/0x420 [ 29.387569] kasan_strings+0xc0/0xe80 [ 29.387775] kunit_try_run_case+0x1a5/0x480 [ 29.388036] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 29.388275] kthread+0x337/0x6f0 [ 29.388438] ret_from_fork+0x116/0x1d0 [ 29.388608] ret_from_fork_asm+0x1a/0x30 [ 29.388788] [ 29.388894] Freed by task 288: [ 29.389042] kasan_save_stack+0x45/0x70 [ 29.389377] kasan_save_track+0x18/0x40 [ 29.389708] kasan_save_free_info+0x3f/0x60 [ 29.390199] __kasan_slab_free+0x56/0x70 [ 29.390537] kfree+0x222/0x3f0 [ 29.390823] kasan_strings+0x2aa/0xe80 [ 29.391319] kunit_try_run_case+0x1a5/0x480 [ 29.391747] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 29.392269] kthread+0x337/0x6f0 [ 29.392561] ret_from_fork+0x116/0x1d0 [ 29.392841] ret_from_fork_asm+0x1a/0x30 [ 29.393232] [ 29.393336] The buggy address belongs to the object at ffff8881024dbb00 [ 29.393336] which belongs to the cache kmalloc-32 of size 32 [ 29.393746] The buggy address is located 16 bytes inside of [ 29.393746] freed 32-byte region [ffff8881024dbb00, ffff8881024dbb20) [ 29.395578] [ 29.395790] The buggy address belongs to the physical page: [ 29.396423] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1024db [ 29.396939] flags: 0x200000000000000(node=0|zone=2) [ 29.397363] page_type: f5(slab) [ 29.397661] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 29.398128] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 29.398541] page dumped because: kasan: bad access detected [ 29.398752] [ 29.398849] Memory state around the buggy address: [ 29.400016] ffff8881024dba00: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 29.400628] ffff8881024dba80: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 29.401224] >ffff8881024dbb00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 29.401619] ^ [ 29.401852] ffff8881024dbb80: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 29.402387] ffff8881024dbc00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 29.402747] ==================================================================