Date
June 26, 2025, 9:10 a.m.
Environment | |
---|---|
dragonboard-845c | |
qemu-arm64 | |
qemu-x86_64 |
[ 49.119934] ================================================================== [ 49.131113] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340 [ 49.137928] Read of size 1 at addr ffff000096708000 by task kunit_try_catch/319 [ 49.145339] [ 49.146880] CPU: 1 UID: 0 PID: 319 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250626 #1 PREEMPT [ 49.146921] Tainted: [B]=BAD_PAGE, [N]=TEST [ 49.146932] Hardware name: Thundercomm Dragonboard 845c (DT) [ 49.146949] Call trace: [ 49.146959] show_stack+0x20/0x38 (C) [ 49.146983] dump_stack_lvl+0x8c/0xd0 [ 49.147006] print_report+0x118/0x608 [ 49.147030] kasan_report+0xdc/0x128 [ 49.147051] __asan_report_load1_noabort+0x20/0x30 [ 49.147072] mempool_uaf_helper+0x314/0x340 [ 49.147093] mempool_page_alloc_uaf+0xc0/0x118 [ 49.147115] kunit_try_run_case+0x170/0x3f0 [ 49.147139] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 49.147163] kthread+0x328/0x630 [ 49.147181] ret_from_fork+0x10/0x20 [ 49.147203] [ 49.217423] The buggy address belongs to the physical page: [ 49.223074] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x116708 [ 49.231189] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 49.237824] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 49.245669] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 49.253508] page dumped because: kasan: bad access detected [ 49.259159] [ 49.260693] Memory state around the buggy address: [ 49.265557] ffff000096707f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 49.272877] ffff000096707f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 49.280202] >ffff000096708000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 49.287516] ^ [ 49.290803] ffff000096708080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 49.298124] ffff000096708100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 49.305443] ================================================================== [ 48.534537] ================================================================== [ 48.545941] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340 [ 48.552738] Read of size 1 at addr ffff000095078000 by task kunit_try_catch/315 [ 48.560145] [ 48.561678] CPU: 7 UID: 0 PID: 315 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250626 #1 PREEMPT [ 48.561715] Tainted: [B]=BAD_PAGE, [N]=TEST [ 48.561723] Hardware name: Thundercomm Dragonboard 845c (DT) [ 48.561739] Call trace: [ 48.561746] show_stack+0x20/0x38 (C) [ 48.561766] dump_stack_lvl+0x8c/0xd0 [ 48.561787] print_report+0x118/0x608 [ 48.561806] kasan_report+0xdc/0x128 [ 48.561824] __asan_report_load1_noabort+0x20/0x30 [ 48.561841] mempool_uaf_helper+0x314/0x340 [ 48.561859] mempool_kmalloc_large_uaf+0xc4/0x120 [ 48.561876] kunit_try_run_case+0x170/0x3f0 [ 48.561895] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 48.561915] kthread+0x328/0x630 [ 48.561930] ret_from_fork+0x10/0x20 [ 48.561949] [ 48.632374] The buggy address belongs to the physical page: [ 48.638018] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x115078 [ 48.646121] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 48.653872] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 48.660931] page_type: f8(unknown) [ 48.664390] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 48.672228] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 48.680068] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 48.687992] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 48.695914] head: 0bfffe0000000002 fffffdffc2541e01 00000000ffffffff 00000000ffffffff [ 48.703837] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 48.711756] page dumped because: kasan: bad access detected [ 48.717398] [ 48.718919] Memory state around the buggy address: [ 48.723779] ffff000095077f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 48.731085] ffff000095077f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 48.738398] >ffff000095078000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 48.745709] ^ [ 48.748987] ffff000095078080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 48.756299] ffff000095078100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 48.763612] ==================================================================
[ 28.865813] ================================================================== [ 28.865884] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340 [ 28.865936] Read of size 1 at addr fff00000c654c000 by task kunit_try_catch/241 [ 28.866173] [ 28.866313] CPU: 0 UID: 0 PID: 241 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250626 #1 PREEMPT [ 28.866406] Tainted: [B]=BAD_PAGE, [N]=TEST [ 28.866433] Hardware name: linux,dummy-virt (DT) [ 28.866462] Call trace: [ 28.866645] show_stack+0x20/0x38 (C) [ 28.866704] dump_stack_lvl+0x8c/0xd0 [ 28.866840] print_report+0x118/0x608 [ 28.866947] kasan_report+0xdc/0x128 [ 28.866993] __asan_report_load1_noabort+0x20/0x30 [ 28.867050] mempool_uaf_helper+0x314/0x340 [ 28.867106] mempool_kmalloc_large_uaf+0xc4/0x120 [ 28.867175] kunit_try_run_case+0x170/0x3f0 [ 28.867221] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 28.867331] kthread+0x328/0x630 [ 28.867535] ret_from_fork+0x10/0x20 [ 28.867580] [ 28.867647] The buggy address belongs to the physical page: [ 28.867817] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10654c [ 28.868048] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 28.868123] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 28.868179] page_type: f8(unknown) [ 28.868218] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 28.868270] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 28.868872] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 28.869172] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 28.869367] head: 0bfffe0000000002 ffffc1ffc3195301 00000000ffffffff 00000000ffffffff [ 28.869618] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 28.869894] page dumped because: kasan: bad access detected [ 28.869941] [ 28.870187] Memory state around the buggy address: [ 28.870234] fff00000c654bf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 28.870550] fff00000c654bf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 28.870596] >fff00000c654c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 28.870634] ^ [ 28.871063] fff00000c654c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 28.871436] fff00000c654c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 28.871740] ================================================================== [ 28.946959] ================================================================== [ 28.947023] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340 [ 28.947101] Read of size 1 at addr fff00000c654c000 by task kunit_try_catch/245 [ 28.947150] [ 28.948859] CPU: 0 UID: 0 PID: 245 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250626 #1 PREEMPT [ 28.948976] Tainted: [B]=BAD_PAGE, [N]=TEST [ 28.949004] Hardware name: linux,dummy-virt (DT) [ 28.949035] Call trace: [ 28.949068] show_stack+0x20/0x38 (C) [ 28.949123] dump_stack_lvl+0x8c/0xd0 [ 28.949171] print_report+0x118/0x608 [ 28.949220] kasan_report+0xdc/0x128 [ 28.949263] __asan_report_load1_noabort+0x20/0x30 [ 28.949311] mempool_uaf_helper+0x314/0x340 [ 28.949355] mempool_page_alloc_uaf+0xc0/0x118 [ 28.949403] kunit_try_run_case+0x170/0x3f0 [ 28.949453] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 28.949590] kthread+0x328/0x630 [ 28.949644] ret_from_fork+0x10/0x20 [ 28.949693] [ 28.949714] The buggy address belongs to the physical page: [ 28.949847] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10654c [ 28.949988] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 28.950092] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 28.950174] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 28.950226] page dumped because: kasan: bad access detected [ 28.950259] [ 28.950276] Memory state around the buggy address: [ 28.950308] fff00000c654bf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 28.950637] fff00000c654bf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 28.950685] >fff00000c654c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 28.950723] ^ [ 28.950780] fff00000c654c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 28.950879] fff00000c654c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 28.951040] ==================================================================
[ 23.671550] ================================================================== [ 23.672087] BUG: KASAN: use-after-free in mempool_uaf_helper+0x392/0x400 [ 23.672594] Read of size 1 at addr ffff888102bd4000 by task kunit_try_catch/258 [ 23.673078] [ 23.673186] CPU: 0 UID: 0 PID: 258 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250626 #1 PREEMPT(voluntary) [ 23.673250] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.673264] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.673289] Call Trace: [ 23.673303] <TASK> [ 23.673323] dump_stack_lvl+0x73/0xb0 [ 23.673355] print_report+0xd1/0x650 [ 23.673376] ? __virt_addr_valid+0x1db/0x2d0 [ 23.673400] ? mempool_uaf_helper+0x392/0x400 [ 23.673422] ? kasan_addr_to_slab+0x11/0xa0 [ 23.673441] ? mempool_uaf_helper+0x392/0x400 [ 23.673463] kasan_report+0x141/0x180 [ 23.673484] ? mempool_uaf_helper+0x392/0x400 [ 23.673510] __asan_report_load1_noabort+0x18/0x20 [ 23.673535] mempool_uaf_helper+0x392/0x400 [ 23.673557] ? __pfx_mempool_uaf_helper+0x10/0x10 [ 23.673580] ? __kasan_check_write+0x18/0x20 [ 23.673603] ? __pfx_sched_clock_cpu+0x10/0x10 [ 23.673624] ? irqentry_exit+0x2a/0x60 [ 23.673645] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 23.673669] mempool_kmalloc_large_uaf+0xef/0x140 [ 23.673693] ? __pfx_mempool_kmalloc_large_uaf+0x10/0x10 [ 23.673717] ? __pfx_mempool_kmalloc+0x10/0x10 [ 23.673740] ? __pfx_mempool_kfree+0x10/0x10 [ 23.673765] ? __pfx_mempool_kmalloc_large_uaf+0x10/0x10 [ 23.673790] ? __pfx_mempool_kmalloc_large_uaf+0x10/0x10 [ 23.673814] kunit_try_run_case+0x1a5/0x480 [ 23.673839] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.673861] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 23.673886] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.673923] ? __kthread_parkme+0x82/0x180 [ 23.673944] ? preempt_count_sub+0x50/0x80 [ 23.673967] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.673992] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.674015] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.674079] kthread+0x337/0x6f0 [ 23.674099] ? trace_preempt_on+0x20/0xc0 [ 23.674123] ? __pfx_kthread+0x10/0x10 [ 23.674143] ? _raw_spin_unlock_irq+0x47/0x80 [ 23.674167] ? calculate_sigpending+0x7b/0xa0 [ 23.674191] ? __pfx_kthread+0x10/0x10 [ 23.674212] ret_from_fork+0x116/0x1d0 [ 23.674243] ? __pfx_kthread+0x10/0x10 [ 23.674264] ret_from_fork_asm+0x1a/0x30 [ 23.674295] </TASK> [ 23.674308] [ 23.684325] The buggy address belongs to the physical page: [ 23.684584] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102bd4 [ 23.684964] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 23.686070] flags: 0x200000000000040(head|node=0|zone=2) [ 23.686906] page_type: f8(unknown) [ 23.687112] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 23.687355] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 23.687582] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 23.687807] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 23.688032] head: 0200000000000002 ffffea00040af501 00000000ffffffff 00000000ffffffff [ 23.688620] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 23.689707] page dumped because: kasan: bad access detected [ 23.690554] [ 23.690858] Memory state around the buggy address: [ 23.691602] ffff888102bd3f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 23.692512] ffff888102bd3f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 23.693422] >ffff888102bd4000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 23.694383] ^ [ 23.694855] ffff888102bd4080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 23.695575] ffff888102bd4100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 23.695946] ================================================================== [ 23.739502] ================================================================== [ 23.740260] BUG: KASAN: use-after-free in mempool_uaf_helper+0x392/0x400 [ 23.741022] Read of size 1 at addr ffff888102ca4000 by task kunit_try_catch/262 [ 23.741353] [ 23.741449] CPU: 1 UID: 0 PID: 262 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250626 #1 PREEMPT(voluntary) [ 23.741504] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.741517] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.741541] Call Trace: [ 23.741557] <TASK> [ 23.741578] dump_stack_lvl+0x73/0xb0 [ 23.741611] print_report+0xd1/0x650 [ 23.741635] ? __virt_addr_valid+0x1db/0x2d0 [ 23.741661] ? mempool_uaf_helper+0x392/0x400 [ 23.741683] ? kasan_addr_to_slab+0x11/0xa0 [ 23.741703] ? mempool_uaf_helper+0x392/0x400 [ 23.741725] kasan_report+0x141/0x180 [ 23.741746] ? mempool_uaf_helper+0x392/0x400 [ 23.741771] __asan_report_load1_noabort+0x18/0x20 [ 23.741848] mempool_uaf_helper+0x392/0x400 [ 23.741873] ? __pfx_mempool_uaf_helper+0x10/0x10 [ 23.741896] ? __kasan_check_write+0x18/0x20 [ 23.741932] ? __pfx_sched_clock_cpu+0x10/0x10 [ 23.741957] ? finish_task_switch.isra.0+0x153/0x700 [ 23.741984] mempool_page_alloc_uaf+0xed/0x140 [ 23.742007] ? __pfx_mempool_page_alloc_uaf+0x10/0x10 [ 23.742032] ? __pfx_mempool_alloc_pages+0x10/0x10 [ 23.742116] ? __pfx_mempool_free_pages+0x10/0x10 [ 23.742152] ? __pfx_read_tsc+0x10/0x10 [ 23.742176] ? ktime_get_ts64+0x86/0x230 [ 23.742200] kunit_try_run_case+0x1a5/0x480 [ 23.742236] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.742259] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 23.742285] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.742310] ? __kthread_parkme+0x82/0x180 [ 23.742340] ? preempt_count_sub+0x50/0x80 [ 23.742362] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.742386] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.742411] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.742434] kthread+0x337/0x6f0 [ 23.742454] ? trace_preempt_on+0x20/0xc0 [ 23.742478] ? __pfx_kthread+0x10/0x10 [ 23.742498] ? _raw_spin_unlock_irq+0x47/0x80 [ 23.742521] ? calculate_sigpending+0x7b/0xa0 [ 23.742545] ? __pfx_kthread+0x10/0x10 [ 23.742566] ret_from_fork+0x116/0x1d0 [ 23.742585] ? __pfx_kthread+0x10/0x10 [ 23.742605] ret_from_fork_asm+0x1a/0x30 [ 23.742637] </TASK> [ 23.742649] [ 23.758949] The buggy address belongs to the physical page: [ 23.759336] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102ca4 [ 23.759585] flags: 0x200000000000000(node=0|zone=2) [ 23.759762] raw: 0200000000000000 0000000000000000 dead000000000122 0000000000000000 [ 23.760628] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 23.761414] page dumped because: kasan: bad access detected [ 23.762084] [ 23.762343] Memory state around the buggy address: [ 23.762857] ffff888102ca3f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 23.763216] ffff888102ca3f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 23.763832] >ffff888102ca4000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 23.764318] ^ [ 23.764435] ffff888102ca4080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 23.764644] ffff888102ca4100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 23.764850] ==================================================================