Date
July 8, 2025, 7:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 21.344583] ================================================================== [ 21.344651] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340 [ 21.344769] Read of size 1 at addr fff00000c78d8000 by task kunit_try_catch/229 [ 21.344824] [ 21.344906] CPU: 0 UID: 0 PID: 229 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 21.345114] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.345142] Hardware name: linux,dummy-virt (DT) [ 21.345172] Call trace: [ 21.345194] show_stack+0x20/0x38 (C) [ 21.345241] dump_stack_lvl+0x8c/0xd0 [ 21.345287] print_report+0x118/0x608 [ 21.345337] kasan_report+0xdc/0x128 [ 21.345569] __asan_report_load1_noabort+0x20/0x30 [ 21.345727] mempool_uaf_helper+0x314/0x340 [ 21.345905] mempool_kmalloc_large_uaf+0xc4/0x120 [ 21.346060] kunit_try_run_case+0x170/0x3f0 [ 21.346116] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.346181] kthread+0x328/0x630 [ 21.346226] ret_from_fork+0x10/0x20 [ 21.346451] [ 21.346471] The buggy address belongs to the physical page: [ 21.346508] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1078d8 [ 21.346568] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 21.347151] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 21.347222] page_type: f8(unknown) [ 21.347263] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 21.347762] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 21.347819] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 21.347867] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 21.347916] head: 0bfffe0000000002 ffffc1ffc31e3601 00000000ffffffff 00000000ffffffff [ 21.348377] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 21.348734] page dumped because: kasan: bad access detected [ 21.348954] [ 21.349047] Memory state around the buggy address: [ 21.349090] fff00000c78d7f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.349141] fff00000c78d7f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.349556] >fff00000c78d8000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 21.349616] ^ [ 21.349646] fff00000c78d8080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 21.349688] fff00000c78d8100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 21.349748] ================================================================== [ 21.393145] ================================================================== [ 21.393208] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340 [ 21.393279] Read of size 1 at addr fff00000c78d8000 by task kunit_try_catch/233 [ 21.393498] [ 21.393557] CPU: 0 UID: 0 PID: 233 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 21.393648] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.393822] Hardware name: linux,dummy-virt (DT) [ 21.393976] Call trace: [ 21.393999] show_stack+0x20/0x38 (C) [ 21.394054] dump_stack_lvl+0x8c/0xd0 [ 21.394142] print_report+0x118/0x608 [ 21.394341] kasan_report+0xdc/0x128 [ 21.394385] __asan_report_load1_noabort+0x20/0x30 [ 21.394436] mempool_uaf_helper+0x314/0x340 [ 21.394481] mempool_page_alloc_uaf+0xc0/0x118 [ 21.394526] kunit_try_run_case+0x170/0x3f0 [ 21.394573] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.394623] kthread+0x328/0x630 [ 21.394672] ret_from_fork+0x10/0x20 [ 21.394755] [ 21.394776] The buggy address belongs to the physical page: [ 21.394809] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1078d8 [ 21.394862] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 21.394925] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 21.394974] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 21.395014] page dumped because: kasan: bad access detected [ 21.395043] [ 21.395117] Memory state around the buggy address: [ 21.395226] fff00000c78d7f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.395630] fff00000c78d7f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.395752] >fff00000c78d8000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 21.395944] ^ [ 21.395976] fff00000c78d8080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 21.396017] fff00000c78d8100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 21.396055] ==================================================================
[ 14.533949] ================================================================== [ 14.534516] BUG: KASAN: use-after-free in mempool_uaf_helper+0x392/0x400 [ 14.534743] Read of size 1 at addr ffff888102b80000 by task kunit_try_catch/246 [ 14.534968] [ 14.535074] CPU: 0 UID: 0 PID: 246 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 14.535125] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.535138] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.535164] Call Trace: [ 14.535175] <TASK> [ 14.535192] dump_stack_lvl+0x73/0xb0 [ 14.535221] print_report+0xd1/0x650 [ 14.535244] ? __virt_addr_valid+0x1db/0x2d0 [ 14.535266] ? mempool_uaf_helper+0x392/0x400 [ 14.535288] ? kasan_addr_to_slab+0x11/0xa0 [ 14.535308] ? mempool_uaf_helper+0x392/0x400 [ 14.535330] kasan_report+0x141/0x180 [ 14.535352] ? mempool_uaf_helper+0x392/0x400 [ 14.535378] __asan_report_load1_noabort+0x18/0x20 [ 14.535403] mempool_uaf_helper+0x392/0x400 [ 14.535424] ? __pfx_mempool_uaf_helper+0x10/0x10 [ 14.535448] ? __kasan_check_write+0x18/0x20 [ 14.535468] ? __pfx_sched_clock_cpu+0x10/0x10 [ 14.535490] ? finish_task_switch.isra.0+0x153/0x700 [ 14.535517] mempool_kmalloc_large_uaf+0xef/0x140 [ 14.535540] ? __pfx_mempool_kmalloc_large_uaf+0x10/0x10 [ 14.535567] ? __pfx_mempool_kmalloc+0x10/0x10 [ 14.535590] ? __pfx_mempool_kfree+0x10/0x10 [ 14.535615] ? __pfx_read_tsc+0x10/0x10 [ 14.535637] ? ktime_get_ts64+0x86/0x230 [ 14.535660] kunit_try_run_case+0x1a5/0x480 [ 14.535686] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.535708] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.535734] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.535758] ? __kthread_parkme+0x82/0x180 [ 14.535779] ? preempt_count_sub+0x50/0x80 [ 14.535803] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.535828] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.535853] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.535878] kthread+0x337/0x6f0 [ 14.535897] ? trace_preempt_on+0x20/0xc0 [ 14.535920] ? __pfx_kthread+0x10/0x10 [ 14.535941] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.535962] ? calculate_sigpending+0x7b/0xa0 [ 14.535987] ? __pfx_kthread+0x10/0x10 [ 14.536009] ret_from_fork+0x116/0x1d0 [ 14.536028] ? __pfx_kthread+0x10/0x10 [ 14.536072] ret_from_fork_asm+0x1a/0x30 [ 14.536326] </TASK> [ 14.536355] [ 14.554322] The buggy address belongs to the physical page: [ 14.554523] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b80 [ 14.554779] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 14.555014] flags: 0x200000000000040(head|node=0|zone=2) [ 14.555789] page_type: f8(unknown) [ 14.555982] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 14.556320] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 14.556576] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 14.556807] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 14.557048] head: 0200000000000002 ffffea00040ae001 00000000ffffffff 00000000ffffffff [ 14.558613] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 14.558973] page dumped because: kasan: bad access detected [ 14.559729] [ 14.559812] Memory state around the buggy address: [ 14.559980] ffff888102b7ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.560243] ffff888102b7ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.560467] >ffff888102b80000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.560688] ^ [ 14.560806] ffff888102b80080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.561436] ffff888102b80100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.561777] ================================================================== [ 14.613379] ================================================================== [ 14.614375] BUG: KASAN: use-after-free in mempool_uaf_helper+0x392/0x400 [ 14.614613] Read of size 1 at addr ffff888103a4c000 by task kunit_try_catch/250 [ 14.614837] [ 14.614933] CPU: 1 UID: 0 PID: 250 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 14.614981] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.614992] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.615015] Call Trace: [ 14.615027] <TASK> [ 14.615055] dump_stack_lvl+0x73/0xb0 [ 14.615085] print_report+0xd1/0x650 [ 14.615107] ? __virt_addr_valid+0x1db/0x2d0 [ 14.615130] ? mempool_uaf_helper+0x392/0x400 [ 14.615152] ? kasan_addr_to_slab+0x11/0xa0 [ 14.615171] ? mempool_uaf_helper+0x392/0x400 [ 14.615192] kasan_report+0x141/0x180 [ 14.615215] ? mempool_uaf_helper+0x392/0x400 [ 14.615241] __asan_report_load1_noabort+0x18/0x20 [ 14.615263] mempool_uaf_helper+0x392/0x400 [ 14.615286] ? __pfx_mempool_uaf_helper+0x10/0x10 [ 14.615310] ? __kasan_check_write+0x18/0x20 [ 14.615329] ? __pfx_sched_clock_cpu+0x10/0x10 [ 14.615352] ? finish_task_switch.isra.0+0x153/0x700 [ 14.615378] mempool_page_alloc_uaf+0xed/0x140 [ 14.615400] ? __pfx_mempool_page_alloc_uaf+0x10/0x10 [ 14.615425] ? __pfx_mempool_alloc_pages+0x10/0x10 [ 14.615450] ? __pfx_mempool_free_pages+0x10/0x10 [ 14.615475] ? __pfx_read_tsc+0x10/0x10 [ 14.615495] ? ktime_get_ts64+0x86/0x230 [ 14.615520] kunit_try_run_case+0x1a5/0x480 [ 14.615545] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.615567] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.615591] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.615613] ? __kthread_parkme+0x82/0x180 [ 14.615633] ? preempt_count_sub+0x50/0x80 [ 14.615656] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.615678] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.615700] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.615723] kthread+0x337/0x6f0 [ 14.615741] ? trace_preempt_on+0x20/0xc0 [ 14.615764] ? __pfx_kthread+0x10/0x10 [ 14.615784] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.615803] ? calculate_sigpending+0x7b/0xa0 [ 14.615828] ? __pfx_kthread+0x10/0x10 [ 14.615848] ret_from_fork+0x116/0x1d0 [ 14.615866] ? __pfx_kthread+0x10/0x10 [ 14.615886] ret_from_fork_asm+0x1a/0x30 [ 14.615919] </TASK> [ 14.615931] [ 14.624426] The buggy address belongs to the physical page: [ 14.624690] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a4c [ 14.625007] flags: 0x200000000000000(node=0|zone=2) [ 14.625340] raw: 0200000000000000 0000000000000000 dead000000000122 0000000000000000 [ 14.625681] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 14.625981] page dumped because: kasan: bad access detected [ 14.626264] [ 14.626366] Memory state around the buggy address: [ 14.626612] ffff888103a4bf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.626902] ffff888103a4bf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.627224] >ffff888103a4c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.627441] ^ [ 14.627577] ffff888103a4c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.627896] ffff888103a4c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.628283] ==================================================================