Date
June 26, 2025, 9:10 a.m.
Environment | |
---|---|
dragonboard-845c | |
qemu-arm64 | |
qemu-x86_64 |
[ 44.374217] ================================================================== [ 44.384564] BUG: KASAN: slab-use-after-free in workqueue_uaf+0x480/0x4a8 [ 44.391358] Read of size 8 at addr ffff000081a47540 by task kunit_try_catch/286 [ 44.398762] [ 44.400303] CPU: 1 UID: 0 PID: 286 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250626 #1 PREEMPT [ 44.400332] Tainted: [B]=BAD_PAGE, [N]=TEST [ 44.400341] Hardware name: Thundercomm Dragonboard 845c (DT) [ 44.400354] Call trace: [ 44.400364] show_stack+0x20/0x38 (C) [ 44.400382] dump_stack_lvl+0x8c/0xd0 [ 44.400404] print_report+0x118/0x608 [ 44.400422] kasan_report+0xdc/0x128 [ 44.400442] __asan_report_load8_noabort+0x20/0x30 [ 44.400460] workqueue_uaf+0x480/0x4a8 [ 44.400477] kunit_try_run_case+0x170/0x3f0 [ 44.400497] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 44.400519] kthread+0x328/0x630 [ 44.400533] ret_from_fork+0x10/0x20 [ 44.400552] [ 44.465808] Allocated by task 286: [ 44.469269] kasan_save_stack+0x3c/0x68 [ 44.473180] kasan_save_track+0x20/0x40 [ 44.477087] kasan_save_alloc_info+0x40/0x58 [ 44.481428] __kasan_kmalloc+0xd4/0xd8 [ 44.485251] __kmalloc_cache_noprof+0x16c/0x3c0 [ 44.489862] workqueue_uaf+0x13c/0x4a8 [ 44.493683] kunit_try_run_case+0x170/0x3f0 [ 44.497938] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 44.503510] kthread+0x328/0x630 [ 44.506804] ret_from_fork+0x10/0x20 [ 44.510443] [ 44.511979] Freed by task 63: [ 44.514999] kasan_save_stack+0x3c/0x68 [ 44.518909] kasan_save_track+0x20/0x40 [ 44.522819] kasan_save_free_info+0x4c/0x78 [ 44.527070] __kasan_slab_free+0x6c/0x98 [ 44.531066] kfree+0x214/0x3c8 [ 44.534186] workqueue_uaf_work+0x18/0x30 [ 44.538265] process_one_work+0x530/0xf98 [ 44.542352] worker_thread+0x618/0xf38 [ 44.546175] kthread+0x328/0x630 [ 44.549465] ret_from_fork+0x10/0x20 [ 44.553105] [ 44.554634] Last potentially related work creation: [ 44.559583] kasan_save_stack+0x3c/0x68 [ 44.563491] kasan_record_aux_stack+0xb4/0xc8 [ 44.567916] __queue_work+0x65c/0xfe0 [ 44.571644] queue_work_on+0xbc/0xf8 [ 44.575282] workqueue_uaf+0x210/0x4a8 [ 44.579094] kunit_try_run_case+0x170/0x3f0 [ 44.583346] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 44.588915] kthread+0x328/0x630 [ 44.592209] ret_from_fork+0x10/0x20 [ 44.595848] [ 44.597375] The buggy address belongs to the object at ffff000081a47540 [ 44.597375] which belongs to the cache kmalloc-32 of size 32 [ 44.609858] The buggy address is located 0 bytes inside of [ 44.609858] freed 32-byte region [ffff000081a47540, ffff000081a47560) [ 44.621999] [ 44.623527] The buggy address belongs to the physical page: [ 44.629176] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101a47 [ 44.637289] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 44.643906] page_type: f5(slab) [ 44.647114] raw: 0bfffe0000000000 ffff000080002780 dead000000000100 dead000000000122 [ 44.654961] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 44.662803] page dumped because: kasan: bad access detected [ 44.668448] [ 44.669978] Memory state around the buggy address: [ 44.674843] ffff000081a47400: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 44.682158] ffff000081a47480: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 44.689475] >ffff000081a47500: 00 00 00 07 fc fc fc fc fa fb fb fb fc fc fc fc [ 44.696796] ^ [ 44.702180] ffff000081a47580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 44.709508] ffff000081a47600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 44.716821] ==================================================================
[ 27.411456] ================================================================== [ 27.411530] BUG: KASAN: slab-use-after-free in workqueue_uaf+0x480/0x4a8 [ 27.411878] Read of size 8 at addr fff00000c575f080 by task kunit_try_catch/212 [ 27.412265] [ 27.412314] CPU: 0 UID: 0 PID: 212 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250626 #1 PREEMPT [ 27.412408] Tainted: [B]=BAD_PAGE, [N]=TEST [ 27.412442] Hardware name: linux,dummy-virt (DT) [ 27.412552] Call trace: [ 27.412864] show_stack+0x20/0x38 (C) [ 27.413172] dump_stack_lvl+0x8c/0xd0 [ 27.413466] print_report+0x118/0x608 [ 27.413824] kasan_report+0xdc/0x128 [ 27.413878] __asan_report_load8_noabort+0x20/0x30 [ 27.414035] workqueue_uaf+0x480/0x4a8 [ 27.414092] kunit_try_run_case+0x170/0x3f0 [ 27.414269] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 27.414540] kthread+0x328/0x630 [ 27.414591] ret_from_fork+0x10/0x20 [ 27.414856] [ 27.414879] Allocated by task 212: [ 27.414907] kasan_save_stack+0x3c/0x68 [ 27.415087] kasan_save_track+0x20/0x40 [ 27.415279] kasan_save_alloc_info+0x40/0x58 [ 27.415327] __kasan_kmalloc+0xd4/0xd8 [ 27.415363] __kmalloc_cache_noprof+0x16c/0x3c0 [ 27.415717] workqueue_uaf+0x13c/0x4a8 [ 27.415762] kunit_try_run_case+0x170/0x3f0 [ 27.415801] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 27.416201] kthread+0x328/0x630 [ 27.416248] ret_from_fork+0x10/0x20 [ 27.416285] [ 27.416303] Freed by task 9: [ 27.416353] kasan_save_stack+0x3c/0x68 [ 27.416397] kasan_save_track+0x20/0x40 [ 27.416576] kasan_save_free_info+0x4c/0x78 [ 27.416641] __kasan_slab_free+0x6c/0x98 [ 27.416987] kfree+0x214/0x3c8 [ 27.417021] workqueue_uaf_work+0x18/0x30 [ 27.417472] process_one_work+0x530/0xf98 [ 27.417547] worker_thread+0x618/0xf38 [ 27.417743] kthread+0x328/0x630 [ 27.417784] ret_from_fork+0x10/0x20 [ 27.417821] [ 27.417946] Last potentially related work creation: [ 27.418229] kasan_save_stack+0x3c/0x68 [ 27.418360] kasan_record_aux_stack+0xb4/0xc8 [ 27.418406] __queue_work+0x65c/0xfe0 [ 27.418442] queue_work_on+0xbc/0xf8 [ 27.418556] workqueue_uaf+0x210/0x4a8 [ 27.418613] kunit_try_run_case+0x170/0x3f0 [ 27.418652] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 27.419177] kthread+0x328/0x630 [ 27.419222] ret_from_fork+0x10/0x20 [ 27.419260] [ 27.419636] The buggy address belongs to the object at fff00000c575f080 [ 27.419636] which belongs to the cache kmalloc-32 of size 32 [ 27.419844] The buggy address is located 0 bytes inside of [ 27.419844] freed 32-byte region [fff00000c575f080, fff00000c575f0a0) [ 27.419917] [ 27.420127] The buggy address belongs to the physical page: [ 27.420387] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10575f [ 27.420718] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 27.420791] page_type: f5(slab) [ 27.420831] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 27.421129] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 27.421176] page dumped because: kasan: bad access detected [ 27.421207] [ 27.421224] Memory state around the buggy address: [ 27.421357] fff00000c575ef80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.422001] fff00000c575f000: 00 00 07 fc fc fc fc fc 00 00 00 07 fc fc fc fc [ 27.422109] >fff00000c575f080: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 27.422629] ^ [ 27.422671] fff00000c575f100: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.422713] fff00000c575f180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.422751] ==================================================================
[ 22.718938] ================================================================== [ 22.719448] BUG: KASAN: slab-use-after-free in workqueue_uaf+0x4d6/0x560 [ 22.719682] Read of size 8 at addr ffff888103ad0380 by task kunit_try_catch/229 [ 22.719915] [ 22.720004] CPU: 1 UID: 0 PID: 229 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250626 #1 PREEMPT(voluntary) [ 22.720055] Tainted: [B]=BAD_PAGE, [N]=TEST [ 22.720161] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 22.720230] Call Trace: [ 22.720618] <TASK> [ 22.720647] dump_stack_lvl+0x73/0xb0 [ 22.720683] print_report+0xd1/0x650 [ 22.720705] ? __virt_addr_valid+0x1db/0x2d0 [ 22.720731] ? workqueue_uaf+0x4d6/0x560 [ 22.720751] ? kasan_complete_mode_report_info+0x64/0x200 [ 22.720776] ? workqueue_uaf+0x4d6/0x560 [ 22.720848] kasan_report+0x141/0x180 [ 22.720869] ? workqueue_uaf+0x4d6/0x560 [ 22.720893] __asan_report_load8_noabort+0x18/0x20 [ 22.720930] workqueue_uaf+0x4d6/0x560 [ 22.720950] ? __pfx_workqueue_uaf+0x10/0x10 [ 22.720972] ? __pfx_workqueue_uaf+0x10/0x10 [ 22.720996] kunit_try_run_case+0x1a5/0x480 [ 22.721022] ? __pfx_kunit_try_run_case+0x10/0x10 [ 22.721044] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 22.721069] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 22.721094] ? __kthread_parkme+0x82/0x180 [ 22.721115] ? preempt_count_sub+0x50/0x80 [ 22.721138] ? __pfx_kunit_try_run_case+0x10/0x10 [ 22.721161] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 22.721183] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 22.721206] kthread+0x337/0x6f0 [ 22.721237] ? trace_preempt_on+0x20/0xc0 [ 22.721261] ? __pfx_kthread+0x10/0x10 [ 22.721281] ? _raw_spin_unlock_irq+0x47/0x80 [ 22.721304] ? calculate_sigpending+0x7b/0xa0 [ 22.721328] ? __pfx_kthread+0x10/0x10 [ 22.721348] ret_from_fork+0x116/0x1d0 [ 22.721367] ? __pfx_kthread+0x10/0x10 [ 22.721387] ret_from_fork_asm+0x1a/0x30 [ 22.721419] </TASK> [ 22.721431] [ 22.734598] Allocated by task 229: [ 22.734750] kasan_save_stack+0x45/0x70 [ 22.734901] kasan_save_track+0x18/0x40 [ 22.735077] kasan_save_alloc_info+0x3b/0x50 [ 22.735681] __kasan_kmalloc+0xb7/0xc0 [ 22.736240] __kmalloc_cache_noprof+0x189/0x420 [ 22.736706] workqueue_uaf+0x152/0x560 [ 22.737231] kunit_try_run_case+0x1a5/0x480 [ 22.737754] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 22.738502] kthread+0x337/0x6f0 [ 22.738903] ret_from_fork+0x116/0x1d0 [ 22.739236] ret_from_fork_asm+0x1a/0x30 [ 22.739371] [ 22.739434] Freed by task 44: [ 22.739535] kasan_save_stack+0x45/0x70 [ 22.739658] kasan_save_track+0x18/0x40 [ 22.739780] kasan_save_free_info+0x3f/0x60 [ 22.740211] __kasan_slab_free+0x56/0x70 [ 22.740605] kfree+0x222/0x3f0 [ 22.740990] workqueue_uaf_work+0x12/0x20 [ 22.741431] process_one_work+0x5ee/0xf60 [ 22.741804] worker_thread+0x758/0x1220 [ 22.742368] kthread+0x337/0x6f0 [ 22.742686] ret_from_fork+0x116/0x1d0 [ 22.743133] ret_from_fork_asm+0x1a/0x30 [ 22.743389] [ 22.743457] Last potentially related work creation: [ 22.743600] kasan_save_stack+0x45/0x70 [ 22.743724] kasan_record_aux_stack+0xb2/0xc0 [ 22.743937] __queue_work+0x61a/0xe70 [ 22.744065] queue_work_on+0xb6/0xc0 [ 22.744383] workqueue_uaf+0x26d/0x560 [ 22.744566] kunit_try_run_case+0x1a5/0x480 [ 22.744699] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 22.745062] kthread+0x337/0x6f0 [ 22.745333] ret_from_fork+0x116/0x1d0 [ 22.745509] ret_from_fork_asm+0x1a/0x30 [ 22.745703] [ 22.745804] The buggy address belongs to the object at ffff888103ad0380 [ 22.745804] which belongs to the cache kmalloc-32 of size 32 [ 22.746352] The buggy address is located 0 bytes inside of [ 22.746352] freed 32-byte region [ffff888103ad0380, ffff888103ad03a0) [ 22.746795] [ 22.746891] The buggy address belongs to the physical page: [ 22.747244] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103ad0 [ 22.747481] flags: 0x200000000000000(node=0|zone=2) [ 22.747712] page_type: f5(slab) [ 22.748190] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 22.748547] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 22.748874] page dumped because: kasan: bad access detected [ 22.749274] [ 22.749385] Memory state around the buggy address: [ 22.749593] ffff888103ad0280: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 22.749979] ffff888103ad0300: 00 00 05 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 22.750329] >ffff888103ad0380: fa fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc [ 22.750614] ^ [ 22.750773] ffff888103ad0400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.751256] ffff888103ad0480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.751529] ==================================================================