Date
June 24, 2025, 11:37 a.m.
Environment | |
---|---|
dragonboard-845c | |
qemu-x86_64 |
[ 50.950266] ================================================================== [ 50.957585] BUG: KASAN: slab-use-after-free in kasan_strings+0x95c/0xb00 [ 50.964370] Read of size 1 at addr ffff000093781910 by task kunit_try_catch/357 [ 50.971776] [ 50.973302] CPU: 6 UID: 0 PID: 357 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250624 #1 PREEMPT [ 50.973333] Tainted: [B]=BAD_PAGE, [N]=TEST [ 50.973342] Hardware name: Thundercomm Dragonboard 845c (DT) [ 50.973352] Call trace: [ 50.973360] show_stack+0x20/0x38 (C) [ 50.973378] dump_stack_lvl+0x8c/0xd0 [ 50.973396] print_report+0x118/0x608 [ 50.973415] kasan_report+0xdc/0x128 [ 50.973434] __asan_report_load1_noabort+0x20/0x30 [ 50.973450] kasan_strings+0x95c/0xb00 [ 50.973466] kunit_try_run_case+0x170/0x3f0 [ 50.973485] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 50.973506] kthread+0x328/0x630 [ 50.973520] ret_from_fork+0x10/0x20 [ 50.973536] [ 51.038768] Allocated by task 357: [ 51.042222] kasan_save_stack+0x3c/0x68 [ 51.046127] kasan_save_track+0x20/0x40 [ 51.050032] kasan_save_alloc_info+0x40/0x58 [ 51.054365] __kasan_kmalloc+0xd4/0xd8 [ 51.058180] __kmalloc_cache_noprof+0x16c/0x3c0 [ 51.062778] kasan_strings+0xc8/0xb00 [ 51.066505] kunit_try_run_case+0x170/0x3f0 [ 51.070753] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 51.076321] kthread+0x328/0x630 [ 51.079603] ret_from_fork+0x10/0x20 [ 51.083234] [ 51.084766] Freed by task 357: [ 51.087869] kasan_save_stack+0x3c/0x68 [ 51.091772] kasan_save_track+0x20/0x40 [ 51.095675] kasan_save_free_info+0x4c/0x78 [ 51.099920] __kasan_slab_free+0x6c/0x98 [ 51.103912] kfree+0x214/0x3c8 [ 51.107024] kasan_strings+0x24c/0xb00 [ 51.110838] kunit_try_run_case+0x170/0x3f0 [ 51.115085] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 51.120646] kthread+0x328/0x630 [ 51.123927] ret_from_fork+0x10/0x20 [ 51.127558] [ 51.129081] The buggy address belongs to the object at ffff000093781900 [ 51.129081] which belongs to the cache kmalloc-32 of size 32 [ 51.141558] The buggy address is located 16 bytes inside of [ 51.141558] freed 32-byte region [ffff000093781900, ffff000093781920) [ 51.153779] [ 51.155309] The buggy address belongs to the physical page: [ 51.160949] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x113781 [ 51.169048] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 51.175659] page_type: f5(slab) [ 51.178859] raw: 0bfffe0000000000 ffff000080002780 dead000000000122 0000000000000000 [ 51.186696] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 51.194532] page dumped because: kasan: bad access detected [ 51.200179] [ 51.201713] Memory state around the buggy address: [ 51.206564] ffff000093781800: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 51.213878] ffff000093781880: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 51.221193] >ffff000093781900: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 51.228507] ^ [ 51.232317] ffff000093781980: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 51.239631] ffff000093781a00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 51.246937] ==================================================================
[ 31.673458] ================================================================== [ 31.674237] BUG: KASAN: slab-use-after-free in kasan_strings+0xcbc/0xe80 [ 31.674692] Read of size 1 at addr ffff888103b4da50 by task kunit_try_catch/289 [ 31.675497] [ 31.675798] CPU: 1 UID: 0 PID: 289 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250624 #1 PREEMPT(voluntary) [ 31.675947] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.675983] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 31.676032] Call Trace: [ 31.676207] <TASK> [ 31.676261] dump_stack_lvl+0x73/0xb0 [ 31.676341] print_report+0xd1/0x650 [ 31.676404] ? __virt_addr_valid+0x1db/0x2d0 [ 31.676457] ? kasan_strings+0xcbc/0xe80 [ 31.676511] ? kasan_complete_mode_report_info+0x64/0x200 [ 31.676619] ? kasan_strings+0xcbc/0xe80 [ 31.676714] kasan_report+0x141/0x180 [ 31.676774] ? kasan_strings+0xcbc/0xe80 [ 31.676842] __asan_report_load1_noabort+0x18/0x20 [ 31.676932] kasan_strings+0xcbc/0xe80 [ 31.676986] ? trace_hardirqs_on+0x37/0xe0 [ 31.677045] ? __pfx_kasan_strings+0x10/0x10 [ 31.677132] ? finish_task_switch.isra.0+0x153/0x700 [ 31.677189] ? __switch_to+0x47/0xf50 [ 31.677247] ? __schedule+0x10cc/0x2b60 [ 31.677290] ? __pfx_read_tsc+0x10/0x10 [ 31.677322] ? ktime_get_ts64+0x86/0x230 [ 31.677354] kunit_try_run_case+0x1a5/0x480 [ 31.677389] ? __pfx_kunit_try_run_case+0x10/0x10 [ 31.677418] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 31.677449] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 31.677481] ? __kthread_parkme+0x82/0x180 [ 31.677508] ? preempt_count_sub+0x50/0x80 [ 31.677559] ? __pfx_kunit_try_run_case+0x10/0x10 [ 31.677594] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 31.677639] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 31.677693] kthread+0x337/0x6f0 [ 31.677721] ? trace_preempt_on+0x20/0xc0 [ 31.677750] ? __pfx_kthread+0x10/0x10 [ 31.677780] ? _raw_spin_unlock_irq+0x47/0x80 [ 31.677809] ? calculate_sigpending+0x7b/0xa0 [ 31.677840] ? __pfx_kthread+0x10/0x10 [ 31.677869] ret_from_fork+0x116/0x1d0 [ 31.677894] ? __pfx_kthread+0x10/0x10 [ 31.677921] ret_from_fork_asm+0x1a/0x30 [ 31.677962] </TASK> [ 31.677976] [ 31.695202] Allocated by task 289: [ 31.695610] kasan_save_stack+0x45/0x70 [ 31.696567] kasan_save_track+0x18/0x40 [ 31.697040] kasan_save_alloc_info+0x3b/0x50 [ 31.697534] __kasan_kmalloc+0xb7/0xc0 [ 31.697952] __kmalloc_cache_noprof+0x189/0x420 [ 31.698556] kasan_strings+0xc0/0xe80 [ 31.698995] kunit_try_run_case+0x1a5/0x480 [ 31.699478] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 31.699890] kthread+0x337/0x6f0 [ 31.700384] ret_from_fork+0x116/0x1d0 [ 31.700954] ret_from_fork_asm+0x1a/0x30 [ 31.701227] [ 31.701848] Freed by task 289: [ 31.702458] kasan_save_stack+0x45/0x70 [ 31.702918] kasan_save_track+0x18/0x40 [ 31.703172] kasan_save_free_info+0x3f/0x60 [ 31.703883] __kasan_slab_free+0x56/0x70 [ 31.704346] kfree+0x222/0x3f0 [ 31.704718] kasan_strings+0x2aa/0xe80 [ 31.705001] kunit_try_run_case+0x1a5/0x480 [ 31.705425] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 31.705968] kthread+0x337/0x6f0 [ 31.706486] ret_from_fork+0x116/0x1d0 [ 31.706865] ret_from_fork_asm+0x1a/0x30 [ 31.707766] [ 31.707895] The buggy address belongs to the object at ffff888103b4da40 [ 31.707895] which belongs to the cache kmalloc-32 of size 32 [ 31.708969] The buggy address is located 16 bytes inside of [ 31.708969] freed 32-byte region [ffff888103b4da40, ffff888103b4da60) [ 31.709964] [ 31.710327] The buggy address belongs to the physical page: [ 31.710813] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103b4d [ 31.711521] flags: 0x200000000000000(node=0|zone=2) [ 31.712478] page_type: f5(slab) [ 31.712826] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 31.713511] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 31.714291] page dumped because: kasan: bad access detected [ 31.714744] [ 31.714932] Memory state around the buggy address: [ 31.715462] ffff888103b4d900: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 31.715834] ffff888103b4d980: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 31.716599] >ffff888103b4da00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 31.717364] ^ [ 31.717669] ffff888103b4da80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 31.718719] ffff888103b4db00: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 31.719469] ==================================================================