Date
July 3, 2025, 10:10 a.m.
Environment | |
---|---|
dragonboard-845c | |
qemu-arm64 | |
qemu-x86_64 |
[ 53.151711] ================================================================== [ 53.159042] BUG: KASAN: slab-use-after-free in kasan_strings+0x95c/0xb00 [ 53.165837] Read of size 1 at addr ffff000085584210 by task kunit_try_catch/368 [ 53.173239] [ 53.174768] CPU: 6 UID: 0 PID: 368 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4-next-20250703 #1 PREEMPT [ 53.174799] Tainted: [B]=BAD_PAGE, [N]=TEST [ 53.174809] Hardware name: Thundercomm Dragonboard 845c (DT) [ 53.174821] Call trace: [ 53.174829] show_stack+0x20/0x38 (C) [ 53.174849] dump_stack_lvl+0x8c/0xd0 [ 53.174871] print_report+0x118/0x608 [ 53.174891] kasan_report+0xdc/0x128 [ 53.174909] __asan_report_load1_noabort+0x20/0x30 [ 53.174926] kasan_strings+0x95c/0xb00 [ 53.174943] kunit_try_run_case+0x170/0x3f0 [ 53.174960] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 53.174981] kthread+0x328/0x630 [ 53.174994] ret_from_fork+0x10/0x20 [ 53.175010] [ 53.240235] Allocated by task 368: [ 53.243692] kasan_save_stack+0x3c/0x68 [ 53.247600] kasan_save_track+0x20/0x40 [ 53.251506] kasan_save_alloc_info+0x40/0x58 [ 53.255843] __kasan_kmalloc+0xd4/0xd8 [ 53.259658] __kmalloc_cache_noprof+0x16c/0x3c0 [ 53.264263] kasan_strings+0xc8/0xb00 [ 53.267981] kunit_try_run_case+0x170/0x3f0 [ 53.272234] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 53.277802] kthread+0x328/0x630 [ 53.281085] ret_from_fork+0x10/0x20 [ 53.284729] [ 53.286253] Freed by task 368: [ 53.289360] kasan_save_stack+0x3c/0x68 [ 53.293268] kasan_save_track+0x20/0x40 [ 53.297172] kasan_save_free_info+0x4c/0x78 [ 53.301422] __kasan_slab_free+0x6c/0x98 [ 53.305417] kfree+0x214/0x3c8 [ 53.308526] kasan_strings+0x24c/0xb00 [ 53.312342] kunit_try_run_case+0x170/0x3f0 [ 53.316592] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 53.322159] kthread+0x328/0x630 [ 53.325442] ret_from_fork+0x10/0x20 [ 53.329076] [ 53.330602] The buggy address belongs to the object at ffff000085584200 [ 53.330602] which belongs to the cache kmalloc-32 of size 32 [ 53.343085] The buggy address is located 16 bytes inside of [ 53.343085] freed 32-byte region [ffff000085584200, ffff000085584220) [ 53.355306] [ 53.356830] The buggy address belongs to the physical page: [ 53.362474] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105584 [ 53.370577] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 53.377191] page_type: f5(slab) [ 53.380388] raw: 0bfffe0000000000 ffff000080002780 dead000000000122 0000000000000000 [ 53.388233] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 53.396073] page dumped because: kasan: bad access detected [ 53.401719] [ 53.403253] Memory state around the buggy address: [ 53.408105] ffff000085584100: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 53.415414] ffff000085584180: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 53.422723] >ffff000085584200: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 53.430040] ^ [ 53.433853] ffff000085584280: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 53.441168] ffff000085584300: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 53.448475] ==================================================================
[ 33.305721] ================================================================== [ 33.306005] BUG: KASAN: slab-use-after-free in kasan_strings+0x95c/0xb00 [ 33.306287] Read of size 1 at addr fff00000c5a8ac90 by task kunit_try_catch/291 [ 33.306426] [ 33.306458] CPU: 0 UID: 0 PID: 291 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4-next-20250703 #1 PREEMPT [ 33.306545] Tainted: [B]=BAD_PAGE, [N]=TEST [ 33.306572] Hardware name: linux,dummy-virt (DT) [ 33.306865] Call trace: [ 33.306959] show_stack+0x20/0x38 (C) [ 33.307023] dump_stack_lvl+0x8c/0xd0 [ 33.307131] print_report+0x118/0x608 [ 33.307277] kasan_report+0xdc/0x128 [ 33.307575] __asan_report_load1_noabort+0x20/0x30 [ 33.307630] kasan_strings+0x95c/0xb00 [ 33.307676] kunit_try_run_case+0x170/0x3f0 [ 33.307729] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 33.307785] kthread+0x328/0x630 [ 33.307829] ret_from_fork+0x10/0x20 [ 33.307888] [ 33.307910] Allocated by task 291: [ 33.307940] kasan_save_stack+0x3c/0x68 [ 33.307986] kasan_save_track+0x20/0x40 [ 33.308026] kasan_save_alloc_info+0x40/0x58 [ 33.308069] __kasan_kmalloc+0xd4/0xd8 [ 33.308109] __kmalloc_cache_noprof+0x16c/0x3c0 [ 33.308164] kasan_strings+0xc8/0xb00 [ 33.308204] kunit_try_run_case+0x170/0x3f0 [ 33.308282] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 33.308593] kthread+0x328/0x630 [ 33.308780] ret_from_fork+0x10/0x20 [ 33.309002] [ 33.309211] Freed by task 291: [ 33.309254] kasan_save_stack+0x3c/0x68 [ 33.309473] kasan_save_track+0x20/0x40 [ 33.309515] kasan_save_free_info+0x4c/0x78 [ 33.309556] __kasan_slab_free+0x6c/0x98 [ 33.309598] kfree+0x214/0x3c8 [ 33.309634] kasan_strings+0x24c/0xb00 [ 33.309674] kunit_try_run_case+0x170/0x3f0 [ 33.309715] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 33.309776] kthread+0x328/0x630 [ 33.309811] ret_from_fork+0x10/0x20 [ 33.310170] [ 33.310323] The buggy address belongs to the object at fff00000c5a8ac80 [ 33.310323] which belongs to the cache kmalloc-32 of size 32 [ 33.310638] The buggy address is located 16 bytes inside of [ 33.310638] freed 32-byte region [fff00000c5a8ac80, fff00000c5a8aca0) [ 33.310707] [ 33.310730] The buggy address belongs to the physical page: [ 33.310765] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105a8a [ 33.310820] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 33.311163] page_type: f5(slab) [ 33.311372] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 33.311498] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 33.311787] page dumped because: kasan: bad access detected [ 33.311826] [ 33.311989] Memory state around the buggy address: [ 33.312064] fff00000c5a8ab80: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 33.312252] fff00000c5a8ac00: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 33.312360] >fff00000c5a8ac80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 33.312402] ^ [ 33.312453] fff00000c5a8ad00: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 33.312502] fff00000c5a8ad80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 33.312559] ==================================================================
[ 25.088601] ================================================================== [ 25.089075] BUG: KASAN: slab-use-after-free in kasan_strings+0xcbc/0xe80 [ 25.090130] Read of size 1 at addr ffff888105ec6450 by task kunit_try_catch/308 [ 25.091080] [ 25.091278] CPU: 1 UID: 0 PID: 308 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4-next-20250703 #1 PREEMPT(voluntary) [ 25.091329] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.091342] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.091525] Call Trace: [ 25.091546] <TASK> [ 25.091561] dump_stack_lvl+0x73/0xb0 [ 25.091590] print_report+0xd1/0x650 [ 25.091613] ? __virt_addr_valid+0x1db/0x2d0 [ 25.091636] ? kasan_strings+0xcbc/0xe80 [ 25.091657] ? kasan_complete_mode_report_info+0x64/0x200 [ 25.091683] ? kasan_strings+0xcbc/0xe80 [ 25.091703] kasan_report+0x141/0x180 [ 25.091725] ? kasan_strings+0xcbc/0xe80 [ 25.091749] __asan_report_load1_noabort+0x18/0x20 [ 25.091774] kasan_strings+0xcbc/0xe80 [ 25.091792] ? trace_hardirqs_on+0x37/0xe0 [ 25.091814] ? __pfx_kasan_strings+0x10/0x10 [ 25.091834] ? finish_task_switch.isra.0+0x153/0x700 [ 25.091857] ? __switch_to+0x47/0xf50 [ 25.091881] ? __schedule+0x10cc/0x2b60 [ 25.091907] ? __pfx_read_tsc+0x10/0x10 [ 25.091928] ? ktime_get_ts64+0x86/0x230 [ 25.091952] kunit_try_run_case+0x1a5/0x480 [ 25.091976] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.091999] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 25.092020] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.092045] ? __kthread_parkme+0x82/0x180 [ 25.092065] ? preempt_count_sub+0x50/0x80 [ 25.092088] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.092112] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.092136] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.092216] kthread+0x337/0x6f0 [ 25.092236] ? trace_preempt_on+0x20/0xc0 [ 25.092259] ? __pfx_kthread+0x10/0x10 [ 25.092279] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.092303] ? calculate_sigpending+0x7b/0xa0 [ 25.092327] ? __pfx_kthread+0x10/0x10 [ 25.092349] ret_from_fork+0x116/0x1d0 [ 25.092368] ? __pfx_kthread+0x10/0x10 [ 25.092388] ret_from_fork_asm+0x1a/0x30 [ 25.092420] </TASK> [ 25.092431] [ 25.103612] Allocated by task 308: [ 25.103781] kasan_save_stack+0x45/0x70 [ 25.104103] kasan_save_track+0x18/0x40 [ 25.104293] kasan_save_alloc_info+0x3b/0x50 [ 25.104585] __kasan_kmalloc+0xb7/0xc0 [ 25.105075] __kmalloc_cache_noprof+0x189/0x420 [ 25.105257] kasan_strings+0xc0/0xe80 [ 25.105658] kunit_try_run_case+0x1a5/0x480 [ 25.105871] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.106100] kthread+0x337/0x6f0 [ 25.106435] ret_from_fork+0x116/0x1d0 [ 25.107052] ret_from_fork_asm+0x1a/0x30 [ 25.107226] [ 25.107935] Freed by task 308: [ 25.108317] kasan_save_stack+0x45/0x70 [ 25.108706] kasan_save_track+0x18/0x40 [ 25.108851] kasan_save_free_info+0x3f/0x60 [ 25.108993] __kasan_slab_free+0x56/0x70 [ 25.109125] kfree+0x222/0x3f0 [ 25.109246] kasan_strings+0x2aa/0xe80 [ 25.109374] kunit_try_run_case+0x1a5/0x480 [ 25.109524] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.109695] kthread+0x337/0x6f0 [ 25.109809] ret_from_fork+0x116/0x1d0 [ 25.109940] ret_from_fork_asm+0x1a/0x30 [ 25.110072] [ 25.110138] The buggy address belongs to the object at ffff888105ec6440 [ 25.110138] which belongs to the cache kmalloc-32 of size 32 [ 25.112035] The buggy address is located 16 bytes inside of [ 25.112035] freed 32-byte region [ffff888105ec6440, ffff888105ec6460) [ 25.113002] [ 25.113388] The buggy address belongs to the physical page: [ 25.113863] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105ec6 [ 25.114250] flags: 0x200000000000000(node=0|zone=2) [ 25.114605] page_type: f5(slab) [ 25.114891] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 25.115327] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 25.115828] page dumped because: kasan: bad access detected [ 25.116365] [ 25.116449] Memory state around the buggy address: [ 25.116842] ffff888105ec6300: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 25.117184] ffff888105ec6380: 00 00 00 fc fc fc fc fc 00 00 00 04 fc fc fc fc [ 25.117575] >ffff888105ec6400: 00 00 07 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 25.118087] ^ [ 25.118510] ffff888105ec6480: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 25.118971] ffff888105ec6500: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 25.119408] ==================================================================