Date
July 16, 2025, 3:10 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.528176] ================================================================== [ 18.528235] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340 [ 18.528289] Read of size 1 at addr fff00000c7968000 by task kunit_try_catch/229 [ 18.528340] [ 18.528371] CPU: 1 UID: 0 PID: 229 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 18.528453] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.528479] Hardware name: linux,dummy-virt (DT) [ 18.528510] Call trace: [ 18.528533] show_stack+0x20/0x38 (C) [ 18.528581] dump_stack_lvl+0x8c/0xd0 [ 18.528629] print_report+0x118/0x5d0 [ 18.528675] kasan_report+0xdc/0x128 [ 18.528735] __asan_report_load1_noabort+0x20/0x30 [ 18.528786] mempool_uaf_helper+0x314/0x340 [ 18.528832] mempool_kmalloc_large_uaf+0xc4/0x120 [ 18.528879] kunit_try_run_case+0x170/0x3f0 [ 18.528931] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.528984] kthread+0x328/0x630 [ 18.529025] ret_from_fork+0x10/0x20 [ 18.529073] [ 18.529092] The buggy address belongs to the physical page: [ 18.529126] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107968 [ 18.529181] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 18.529229] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 18.529284] page_type: f8(unknown) [ 18.529323] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 18.529374] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 18.529426] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 18.529474] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 18.529524] head: 0bfffe0000000002 ffffc1ffc31e5a01 00000000ffffffff 00000000ffffffff [ 18.529574] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 18.529614] page dumped because: kasan: bad access detected [ 18.529645] [ 18.529662] Memory state around the buggy address: [ 18.529693] fff00000c7967f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.529749] fff00000c7967f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.529794] >fff00000c7968000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.529832] ^ [ 18.529859] fff00000c7968080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.529901] fff00000c7968100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.529941] ================================================================== [ 18.597721] ================================================================== [ 18.597793] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340 [ 18.598344] Read of size 1 at addr fff00000c7968000 by task kunit_try_catch/233 [ 18.598415] [ 18.598458] CPU: 1 UID: 0 PID: 233 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 18.598635] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.598682] Hardware name: linux,dummy-virt (DT) [ 18.598807] Call trace: [ 18.598833] show_stack+0x20/0x38 (C) [ 18.598886] dump_stack_lvl+0x8c/0xd0 [ 18.599192] print_report+0x118/0x5d0 [ 18.599305] kasan_report+0xdc/0x128 [ 18.599453] __asan_report_load1_noabort+0x20/0x30 [ 18.599612] mempool_uaf_helper+0x314/0x340 [ 18.599697] mempool_page_alloc_uaf+0xc0/0x118 [ 18.599761] kunit_try_run_case+0x170/0x3f0 [ 18.599812] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.599863] kthread+0x328/0x630 [ 18.599908] ret_from_fork+0x10/0x20 [ 18.600293] [ 18.600340] The buggy address belongs to the physical page: [ 18.600690] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107968 [ 18.600932] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.601035] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 18.601197] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 18.601261] page dumped because: kasan: bad access detected [ 18.601336] [ 18.601632] Memory state around the buggy address: [ 18.601861] fff00000c7967f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.602029] fff00000c7967f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.602133] >fff00000c7968000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.602173] ^ [ 18.602657] fff00000c7968080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.602870] fff00000c7968100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.602979] ==================================================================
[ 14.208835] ================================================================== [ 14.209473] BUG: KASAN: use-after-free in mempool_uaf_helper+0x392/0x400 [ 14.209813] Read of size 1 at addr ffff888102a50000 by task kunit_try_catch/250 [ 14.210229] [ 14.210339] CPU: 0 UID: 0 PID: 250 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 14.210387] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.210399] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.210422] Call Trace: [ 14.210434] <TASK> [ 14.210451] dump_stack_lvl+0x73/0xb0 [ 14.210484] print_report+0xd1/0x610 [ 14.210518] ? __virt_addr_valid+0x1db/0x2d0 [ 14.210544] ? mempool_uaf_helper+0x392/0x400 [ 14.210568] ? kasan_addr_to_slab+0x11/0xa0 [ 14.210589] ? mempool_uaf_helper+0x392/0x400 [ 14.210613] kasan_report+0x141/0x180 [ 14.210636] ? mempool_uaf_helper+0x392/0x400 [ 14.210663] __asan_report_load1_noabort+0x18/0x20 [ 14.210689] mempool_uaf_helper+0x392/0x400 [ 14.210712] ? __pfx_mempool_uaf_helper+0x10/0x10 [ 14.210738] ? __kasan_check_write+0x18/0x20 [ 14.210772] ? __pfx_sched_clock_cpu+0x10/0x10 [ 14.210798] ? finish_task_switch.isra.0+0x153/0x700 [ 14.210827] mempool_page_alloc_uaf+0xed/0x140 [ 14.210853] ? __pfx_mempool_page_alloc_uaf+0x10/0x10 [ 14.210881] ? __pfx_mempool_alloc_pages+0x10/0x10 [ 14.210908] ? __pfx_mempool_free_pages+0x10/0x10 [ 14.210936] ? __pfx_read_tsc+0x10/0x10 [ 14.210958] ? ktime_get_ts64+0x86/0x230 [ 14.211129] kunit_try_run_case+0x1a5/0x480 [ 14.211161] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.211192] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.211219] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.211244] ? __kthread_parkme+0x82/0x180 [ 14.211267] ? preempt_count_sub+0x50/0x80 [ 14.211292] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.211318] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.211343] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.211370] kthread+0x337/0x6f0 [ 14.211390] ? trace_preempt_on+0x20/0xc0 [ 14.211415] ? __pfx_kthread+0x10/0x10 [ 14.211449] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.211472] ? calculate_sigpending+0x7b/0xa0 [ 14.211498] ? __pfx_kthread+0x10/0x10 [ 14.211520] ret_from_fork+0x116/0x1d0 [ 14.211540] ? __pfx_kthread+0x10/0x10 [ 14.211561] ret_from_fork_asm+0x1a/0x30 [ 14.211594] </TASK> [ 14.211605] [ 14.224339] The buggy address belongs to the physical page: [ 14.224745] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a50 [ 14.225405] flags: 0x200000000000000(node=0|zone=2) [ 14.225662] raw: 0200000000000000 0000000000000000 dead000000000122 0000000000000000 [ 14.226274] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 14.226842] page dumped because: kasan: bad access detected [ 14.227301] [ 14.227429] Memory state around the buggy address: [ 14.227935] ffff888102a4ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.228272] ffff888102a4ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.228823] >ffff888102a50000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.229352] ^ [ 14.229563] ffff888102a50080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.229972] ffff888102a50100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.230382] ================================================================== [ 14.134828] ================================================================== [ 14.135305] BUG: KASAN: use-after-free in mempool_uaf_helper+0x392/0x400 [ 14.135583] Read of size 1 at addr ffff8881039b0000 by task kunit_try_catch/246 [ 14.135857] [ 14.135958] CPU: 1 UID: 0 PID: 246 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 14.136004] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.136016] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.136037] Call Trace: [ 14.136049] <TASK> [ 14.136067] dump_stack_lvl+0x73/0xb0 [ 14.136095] print_report+0xd1/0x610 [ 14.136118] ? __virt_addr_valid+0x1db/0x2d0 [ 14.136140] ? mempool_uaf_helper+0x392/0x400 [ 14.136161] ? kasan_addr_to_slab+0x11/0xa0 [ 14.136181] ? mempool_uaf_helper+0x392/0x400 [ 14.136204] kasan_report+0x141/0x180 [ 14.136225] ? mempool_uaf_helper+0x392/0x400 [ 14.136251] __asan_report_load1_noabort+0x18/0x20 [ 14.136275] mempool_uaf_helper+0x392/0x400 [ 14.136296] ? __pfx_mempool_uaf_helper+0x10/0x10 [ 14.136320] ? __pfx_sched_clock_cpu+0x10/0x10 [ 14.136343] ? finish_task_switch.isra.0+0x153/0x700 [ 14.136368] mempool_kmalloc_large_uaf+0xef/0x140 [ 14.136390] ? __pfx_mempool_kmalloc_large_uaf+0x10/0x10 [ 14.136416] ? __pfx_mempool_kmalloc+0x10/0x10 [ 14.136439] ? __pfx_mempool_kfree+0x10/0x10 [ 14.136463] ? __pfx_read_tsc+0x10/0x10 [ 14.136484] ? ktime_get_ts64+0x86/0x230 [ 14.136506] kunit_try_run_case+0x1a5/0x480 [ 14.136531] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.136555] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.136579] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.136602] ? __kthread_parkme+0x82/0x180 [ 14.136622] ? preempt_count_sub+0x50/0x80 [ 14.136644] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.136668] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.136691] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.136714] kthread+0x337/0x6f0 [ 14.136733] ? trace_preempt_on+0x20/0xc0 [ 14.137110] ? __pfx_kthread+0x10/0x10 [ 14.137163] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.137188] ? calculate_sigpending+0x7b/0xa0 [ 14.137464] ? __pfx_kthread+0x10/0x10 [ 14.137490] ret_from_fork+0x116/0x1d0 [ 14.137551] ? __pfx_kthread+0x10/0x10 [ 14.137573] ret_from_fork_asm+0x1a/0x30 [ 14.137604] </TASK> [ 14.137614] [ 14.154711] The buggy address belongs to the physical page: [ 14.155220] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039b0 [ 14.155920] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 14.156890] flags: 0x200000000000040(head|node=0|zone=2) [ 14.157295] page_type: f8(unknown) [ 14.157621] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 14.157950] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 14.158605] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 14.158939] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 14.159724] head: 0200000000000002 ffffea00040e6c01 00000000ffffffff 00000000ffffffff [ 14.160252] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 14.160892] page dumped because: kasan: bad access detected [ 14.161557] [ 14.161684] Memory state around the buggy address: [ 14.161911] ffff8881039aff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.162429] ffff8881039aff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.162737] >ffff8881039b0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.162987] ^ [ 14.163215] ffff8881039b0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.163487] ffff8881039b0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.163828] ==================================================================