Date
July 9, 2025, 12:11 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 21.658297] ================================================================== [ 21.658355] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340 [ 21.658446] Read of size 1 at addr fff00000c77e0000 by task kunit_try_catch/230 [ 21.658499] [ 21.658534] CPU: 1 UID: 0 PID: 230 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 21.658617] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.658646] Hardware name: linux,dummy-virt (DT) [ 21.658680] Call trace: [ 21.658702] show_stack+0x20/0x38 (C) [ 21.658762] dump_stack_lvl+0x8c/0xd0 [ 21.658811] print_report+0x118/0x608 [ 21.658860] kasan_report+0xdc/0x128 [ 21.658906] __asan_report_load1_noabort+0x20/0x30 [ 21.658958] mempool_uaf_helper+0x314/0x340 [ 21.659004] mempool_kmalloc_large_uaf+0xc4/0x120 [ 21.659062] kunit_try_run_case+0x170/0x3f0 [ 21.659111] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.659165] kthread+0x328/0x630 [ 21.659208] ret_from_fork+0x10/0x20 [ 21.659266] [ 21.659288] The buggy address belongs to the physical page: [ 21.659321] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1077e0 [ 21.659376] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 21.659805] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 21.660455] page_type: f8(unknown) [ 21.660542] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 21.660702] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 21.660755] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 21.660804] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 21.660859] head: 0bfffe0000000002 ffffc1ffc31df801 00000000ffffffff 00000000ffffffff [ 21.660912] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 21.661252] page dumped because: kasan: bad access detected [ 21.661332] [ 21.661463] Memory state around the buggy address: [ 21.661549] fff00000c77dff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 21.661625] fff00000c77dff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 21.661778] >fff00000c77e0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 21.661830] ^ [ 21.661857] fff00000c77e0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 21.662279] fff00000c77e0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 21.662367] ================================================================== [ 21.714369] ================================================================== [ 21.714481] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340 [ 21.714545] Read of size 1 at addr fff00000c7848000 by task kunit_try_catch/234 [ 21.714595] [ 21.714630] CPU: 1 UID: 0 PID: 234 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 21.714716] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.714742] Hardware name: linux,dummy-virt (DT) [ 21.714786] Call trace: [ 21.714809] show_stack+0x20/0x38 (C) [ 21.714860] dump_stack_lvl+0x8c/0xd0 [ 21.714906] print_report+0x118/0x608 [ 21.714954] kasan_report+0xdc/0x128 [ 21.715000] __asan_report_load1_noabort+0x20/0x30 [ 21.715050] mempool_uaf_helper+0x314/0x340 [ 21.715097] mempool_page_alloc_uaf+0xc0/0x118 [ 21.715153] kunit_try_run_case+0x170/0x3f0 [ 21.715209] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.715263] kthread+0x328/0x630 [ 21.715306] ret_from_fork+0x10/0x20 [ 21.715353] [ 21.715375] The buggy address belongs to the physical page: [ 21.716237] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107848 [ 21.716308] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 21.716638] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 21.716900] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 21.717033] page dumped because: kasan: bad access detected [ 21.717085] [ 21.717103] Memory state around the buggy address: [ 21.717156] fff00000c7847f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 21.717524] fff00000c7847f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 21.717599] >fff00000c7848000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 21.717676] ^ [ 21.717984] fff00000c7848080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 21.718092] fff00000c7848100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 21.718158] ==================================================================
[ 14.280617] ================================================================== [ 14.281073] BUG: KASAN: use-after-free in mempool_uaf_helper+0x392/0x400 [ 14.281392] Read of size 1 at addr ffff88810a62c000 by task kunit_try_catch/250 [ 14.282213] [ 14.283080] CPU: 0 UID: 0 PID: 250 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 14.283134] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.283147] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.283170] Call Trace: [ 14.283183] <TASK> [ 14.283203] dump_stack_lvl+0x73/0xb0 [ 14.283240] print_report+0xd1/0x650 [ 14.283278] ? __virt_addr_valid+0x1db/0x2d0 [ 14.283304] ? mempool_uaf_helper+0x392/0x400 [ 14.283327] ? kasan_addr_to_slab+0x11/0xa0 [ 14.283349] ? mempool_uaf_helper+0x392/0x400 [ 14.283371] kasan_report+0x141/0x180 [ 14.283393] ? mempool_uaf_helper+0x392/0x400 [ 14.283420] __asan_report_load1_noabort+0x18/0x20 [ 14.283446] mempool_uaf_helper+0x392/0x400 [ 14.283469] ? __pfx_mempool_uaf_helper+0x10/0x10 [ 14.283493] ? __kasan_check_write+0x18/0x20 [ 14.283513] ? __pfx_sched_clock_cpu+0x10/0x10 [ 14.283538] ? finish_task_switch.isra.0+0x153/0x700 [ 14.283566] mempool_page_alloc_uaf+0xed/0x140 [ 14.283590] ? __pfx_mempool_page_alloc_uaf+0x10/0x10 [ 14.283617] ? __pfx_mempool_alloc_pages+0x10/0x10 [ 14.283644] ? __pfx_mempool_free_pages+0x10/0x10 [ 14.283671] ? __pfx_read_tsc+0x10/0x10 [ 14.283693] ? ktime_get_ts64+0x86/0x230 [ 14.283719] kunit_try_run_case+0x1a5/0x480 [ 14.283746] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.283769] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.283795] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.283819] ? __kthread_parkme+0x82/0x180 [ 14.283841] ? preempt_count_sub+0x50/0x80 [ 14.283864] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.283889] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.283915] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.283954] kthread+0x337/0x6f0 [ 14.283974] ? trace_preempt_on+0x20/0xc0 [ 14.283999] ? __pfx_kthread+0x10/0x10 [ 14.284021] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.284042] ? calculate_sigpending+0x7b/0xa0 [ 14.284067] ? __pfx_kthread+0x10/0x10 [ 14.284089] ret_from_fork+0x116/0x1d0 [ 14.284107] ? __pfx_kthread+0x10/0x10 [ 14.284127] ret_from_fork_asm+0x1a/0x30 [ 14.284159] </TASK> [ 14.284171] [ 14.292795] The buggy address belongs to the physical page: [ 14.293083] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10a62c [ 14.293598] flags: 0x200000000000000(node=0|zone=2) [ 14.293839] raw: 0200000000000000 0000000000000000 dead000000000122 0000000000000000 [ 14.294150] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 14.294429] page dumped because: kasan: bad access detected [ 14.294600] [ 14.294667] Memory state around the buggy address: [ 14.294826] ffff88810a62bf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.295129] ffff88810a62bf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.295818] >ffff88810a62c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.296500] ^ [ 14.296633] ffff88810a62c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.296989] ffff88810a62c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.297276] ================================================================== [ 14.217484] ================================================================== [ 14.218314] BUG: KASAN: use-after-free in mempool_uaf_helper+0x392/0x400 [ 14.218562] Read of size 1 at addr ffff88810a5ec000 by task kunit_try_catch/246 [ 14.218796] [ 14.218888] CPU: 1 UID: 0 PID: 246 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 14.218949] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.218961] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.218984] Call Trace: [ 14.218997] <TASK> [ 14.219016] dump_stack_lvl+0x73/0xb0 [ 14.219048] print_report+0xd1/0x650 [ 14.219071] ? __virt_addr_valid+0x1db/0x2d0 [ 14.219095] ? mempool_uaf_helper+0x392/0x400 [ 14.219118] ? kasan_addr_to_slab+0x11/0xa0 [ 14.219139] ? mempool_uaf_helper+0x392/0x400 [ 14.219162] kasan_report+0x141/0x180 [ 14.219183] ? mempool_uaf_helper+0x392/0x400 [ 14.219211] __asan_report_load1_noabort+0x18/0x20 [ 14.219237] mempool_uaf_helper+0x392/0x400 [ 14.219261] ? __pfx_mempool_uaf_helper+0x10/0x10 [ 14.219287] ? __pfx_sched_clock_cpu+0x10/0x10 [ 14.219310] ? finish_task_switch.isra.0+0x153/0x700 [ 14.219337] mempool_kmalloc_large_uaf+0xef/0x140 [ 14.219362] ? __pfx_mempool_kmalloc_large_uaf+0x10/0x10 [ 14.219388] ? __pfx_mempool_kmalloc+0x10/0x10 [ 14.219413] ? __pfx_mempool_kfree+0x10/0x10 [ 14.219438] ? __pfx_read_tsc+0x10/0x10 [ 14.219459] ? ktime_get_ts64+0x86/0x230 [ 14.219483] kunit_try_run_case+0x1a5/0x480 [ 14.219509] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.219532] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.219557] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.219581] ? __kthread_parkme+0x82/0x180 [ 14.219624] ? preempt_count_sub+0x50/0x80 [ 14.219647] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.219672] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.219696] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.219722] kthread+0x337/0x6f0 [ 14.219741] ? trace_preempt_on+0x20/0xc0 [ 14.219766] ? __pfx_kthread+0x10/0x10 [ 14.219787] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.219809] ? calculate_sigpending+0x7b/0xa0 [ 14.219835] ? __pfx_kthread+0x10/0x10 [ 14.219857] ret_from_fork+0x116/0x1d0 [ 14.219876] ? __pfx_kthread+0x10/0x10 [ 14.219896] ret_from_fork_asm+0x1a/0x30 [ 14.219937] </TASK> [ 14.219949] [ 14.229684] The buggy address belongs to the physical page: [ 14.229981] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10a5ec [ 14.230259] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 14.230477] flags: 0x200000000000040(head|node=0|zone=2) [ 14.230654] page_type: f8(unknown) [ 14.230787] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 14.231066] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 14.231293] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 14.232573] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 14.233088] head: 0200000000000002 ffffea0004297b01 00000000ffffffff 00000000ffffffff [ 14.233344] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 14.233921] page dumped because: kasan: bad access detected [ 14.234421] [ 14.234511] Memory state around the buggy address: [ 14.234678] ffff88810a5ebf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.234903] ffff88810a5ebf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.235313] >ffff88810a5ec000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.235639] ^ [ 14.236011] ffff88810a5ec080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.236283] ffff88810a5ec100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.236683] ==================================================================