Date
July 17, 2025, 11:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.510615] ================================================================== [ 17.510675] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340 [ 17.510728] Read of size 1 at addr fff00000c7970000 by task kunit_try_catch/230 [ 17.510785] [ 17.510946] CPU: 0 UID: 0 PID: 230 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 17.511143] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.511217] Hardware name: linux,dummy-virt (DT) [ 17.511247] Call trace: [ 17.511596] show_stack+0x20/0x38 (C) [ 17.511660] dump_stack_lvl+0x8c/0xd0 [ 17.511715] print_report+0x118/0x5d0 [ 17.511919] kasan_report+0xdc/0x128 [ 17.511963] __asan_report_load1_noabort+0x20/0x30 [ 17.512025] mempool_uaf_helper+0x314/0x340 [ 17.512077] mempool_kmalloc_large_uaf+0xc4/0x120 [ 17.512313] kunit_try_run_case+0x170/0x3f0 [ 17.512451] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.512662] kthread+0x328/0x630 [ 17.512728] ret_from_fork+0x10/0x20 [ 17.513086] [ 17.513122] The buggy address belongs to the physical page: [ 17.513157] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107970 [ 17.513214] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 17.513260] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 17.513314] page_type: f8(unknown) [ 17.513354] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 17.513405] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 17.513858] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 17.514035] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 17.514263] head: 0bfffe0000000002 ffffc1ffc31e5c01 00000000ffffffff 00000000ffffffff [ 17.514315] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 17.514356] page dumped because: kasan: bad access detected [ 17.514460] [ 17.514479] Memory state around the buggy address: [ 17.514559] fff00000c796ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.514666] fff00000c796ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.514759] >fff00000c7970000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.514797] ^ [ 17.514824] fff00000c7970080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.514930] fff00000c7970100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.515019] ================================================================== [ 17.562822] ================================================================== [ 17.562888] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340 [ 17.562961] Read of size 1 at addr fff00000c7970000 by task kunit_try_catch/234 [ 17.563216] [ 17.563529] CPU: 0 UID: 0 PID: 234 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 17.564071] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.564130] Hardware name: linux,dummy-virt (DT) [ 17.564244] Call trace: [ 17.564269] show_stack+0x20/0x38 (C) [ 17.564328] dump_stack_lvl+0x8c/0xd0 [ 17.564378] print_report+0x118/0x5d0 [ 17.564808] kasan_report+0xdc/0x128 [ 17.565027] __asan_report_load1_noabort+0x20/0x30 [ 17.565082] mempool_uaf_helper+0x314/0x340 [ 17.565126] mempool_page_alloc_uaf+0xc0/0x118 [ 17.565191] kunit_try_run_case+0x170/0x3f0 [ 17.565241] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.565295] kthread+0x328/0x630 [ 17.565457] ret_from_fork+0x10/0x20 [ 17.565514] [ 17.565535] The buggy address belongs to the physical page: [ 17.565568] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107970 [ 17.565765] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.565867] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 17.565918] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 17.565960] page dumped because: kasan: bad access detected [ 17.566002] [ 17.566021] Memory state around the buggy address: [ 17.566076] fff00000c796ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.566184] fff00000c796ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.566228] >fff00000c7970000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.566294] ^ [ 17.566326] fff00000c7970080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.566472] fff00000c7970100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.566546] ==================================================================
[ 14.597009] ================================================================== [ 14.598625] BUG: KASAN: use-after-free in mempool_uaf_helper+0x392/0x400 [ 14.599830] Read of size 1 at addr ffff8881039f4000 by task kunit_try_catch/246 [ 14.600805] [ 14.600902] CPU: 1 UID: 0 PID: 246 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 14.600950] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.600962] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.600982] Call Trace: [ 14.600995] <TASK> [ 14.601011] dump_stack_lvl+0x73/0xb0 [ 14.601042] print_report+0xd1/0x610 [ 14.601064] ? __virt_addr_valid+0x1db/0x2d0 [ 14.601089] ? mempool_uaf_helper+0x392/0x400 [ 14.601111] ? kasan_addr_to_slab+0x11/0xa0 [ 14.601133] ? mempool_uaf_helper+0x392/0x400 [ 14.601157] kasan_report+0x141/0x180 [ 14.601179] ? mempool_uaf_helper+0x392/0x400 [ 14.601206] __asan_report_load1_noabort+0x18/0x20 [ 14.601232] mempool_uaf_helper+0x392/0x400 [ 14.601255] ? __pfx_mempool_uaf_helper+0x10/0x10 [ 14.601278] ? update_load_avg+0x1be/0x21b0 [ 14.601302] ? update_load_avg+0x1be/0x21b0 [ 14.601324] ? update_curr+0x80/0x810 [ 14.601347] ? finish_task_switch.isra.0+0x153/0x700 [ 14.601373] mempool_kmalloc_large_uaf+0xef/0x140 [ 14.601408] ? __pfx_mempool_kmalloc_large_uaf+0x10/0x10 [ 14.601436] ? __pfx_mempool_kmalloc+0x10/0x10 [ 14.601461] ? __pfx_mempool_kfree+0x10/0x10 [ 14.601486] ? __pfx_read_tsc+0x10/0x10 [ 14.601508] ? ktime_get_ts64+0x86/0x230 [ 14.601532] kunit_try_run_case+0x1a5/0x480 [ 14.601576] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.601600] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.601625] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.601649] ? __kthread_parkme+0x82/0x180 [ 14.601670] ? preempt_count_sub+0x50/0x80 [ 14.601718] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.601921] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.601951] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.601978] kthread+0x337/0x6f0 [ 14.601998] ? trace_preempt_on+0x20/0xc0 [ 14.602024] ? __pfx_kthread+0x10/0x10 [ 14.602046] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.602068] ? calculate_sigpending+0x7b/0xa0 [ 14.602092] ? __pfx_kthread+0x10/0x10 [ 14.602114] ret_from_fork+0x116/0x1d0 [ 14.602134] ? __pfx_kthread+0x10/0x10 [ 14.602155] ret_from_fork_asm+0x1a/0x30 [ 14.602186] </TASK> [ 14.602197] [ 14.620593] The buggy address belongs to the physical page: [ 14.620874] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039f4 [ 14.621231] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 14.621571] flags: 0x200000000000040(head|node=0|zone=2) [ 14.622149] page_type: f8(unknown) [ 14.622620] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 14.623257] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 14.623755] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 14.624214] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 14.624842] head: 0200000000000002 ffffea00040e7d01 00000000ffffffff 00000000ffffffff [ 14.625141] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 14.626040] page dumped because: kasan: bad access detected [ 14.626497] [ 14.626747] Memory state around the buggy address: [ 14.627213] ffff8881039f3f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.627639] ffff8881039f3f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.627933] >ffff8881039f4000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.628229] ^ [ 14.628893] ffff8881039f4080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.629448] ffff8881039f4100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.629752] ================================================================== [ 14.682722] ================================================================== [ 14.684157] BUG: KASAN: use-after-free in mempool_uaf_helper+0x392/0x400 [ 14.684920] Read of size 1 at addr ffff8881039f4000 by task kunit_try_catch/250 [ 14.685727] [ 14.685955] CPU: 1 UID: 0 PID: 250 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 14.686003] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.686015] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.686037] Call Trace: [ 14.686050] <TASK> [ 14.686066] dump_stack_lvl+0x73/0xb0 [ 14.686099] print_report+0xd1/0x610 [ 14.686121] ? __virt_addr_valid+0x1db/0x2d0 [ 14.686177] ? mempool_uaf_helper+0x392/0x400 [ 14.686199] ? kasan_addr_to_slab+0x11/0xa0 [ 14.686221] ? mempool_uaf_helper+0x392/0x400 [ 14.686256] kasan_report+0x141/0x180 [ 14.686500] ? mempool_uaf_helper+0x392/0x400 [ 14.686535] __asan_report_load1_noabort+0x18/0x20 [ 14.686578] mempool_uaf_helper+0x392/0x400 [ 14.686601] ? __pfx_mempool_uaf_helper+0x10/0x10 [ 14.686630] ? finish_task_switch.isra.0+0x153/0x700 [ 14.686659] mempool_page_alloc_uaf+0xed/0x140 [ 14.686684] ? __pfx_mempool_page_alloc_uaf+0x10/0x10 [ 14.686712] ? __pfx_mempool_alloc_pages+0x10/0x10 [ 14.686738] ? __pfx_mempool_free_pages+0x10/0x10 [ 14.686765] ? __pfx_read_tsc+0x10/0x10 [ 14.686788] ? ktime_get_ts64+0x86/0x230 [ 14.686813] kunit_try_run_case+0x1a5/0x480 [ 14.686840] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.686864] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.686890] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.686914] ? __kthread_parkme+0x82/0x180 [ 14.686937] ? preempt_count_sub+0x50/0x80 [ 14.686960] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.686985] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.687011] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.687037] kthread+0x337/0x6f0 [ 14.687056] ? trace_preempt_on+0x20/0xc0 [ 14.687081] ? __pfx_kthread+0x10/0x10 [ 14.687101] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.687123] ? calculate_sigpending+0x7b/0xa0 [ 14.687148] ? __pfx_kthread+0x10/0x10 [ 14.687169] ret_from_fork+0x116/0x1d0 [ 14.687188] ? __pfx_kthread+0x10/0x10 [ 14.687209] ret_from_fork_asm+0x1a/0x30 [ 14.687240] </TASK> [ 14.687260] [ 14.698206] The buggy address belongs to the physical page: [ 14.698750] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039f4 [ 14.699099] flags: 0x200000000000000(node=0|zone=2) [ 14.699426] raw: 0200000000000000 0000000000000000 dead000000000122 0000000000000000 [ 14.699770] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 14.700080] page dumped because: kasan: bad access detected [ 14.700394] [ 14.700519] Memory state around the buggy address: [ 14.700726] ffff8881039f3f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.701016] ffff8881039f3f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.701380] >ffff8881039f4000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.701648] ^ [ 14.701777] ffff8881039f4080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.702098] ffff8881039f4100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.702578] ==================================================================