Date
Dec. 6, 2024, 3:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 33.491768] ================================================================== [ 33.492924] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340 [ 33.493675] Read of size 1 at addr fff00000c6b30000 by task kunit_try_catch/218 [ 33.494836] [ 33.495724] CPU: 1 UID: 0 PID: 218 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241206 #1 [ 33.496870] Tainted: [B]=BAD_PAGE, [N]=TEST [ 33.497436] Hardware name: linux,dummy-virt (DT) [ 33.498002] Call trace: [ 33.498416] show_stack+0x20/0x38 (C) [ 33.499476] dump_stack_lvl+0x8c/0xd0 [ 33.500097] print_report+0x118/0x5e0 [ 33.500635] kasan_report+0xc8/0x118 [ 33.501268] __asan_report_load1_noabort+0x20/0x30 [ 33.502038] mempool_uaf_helper+0x314/0x340 [ 33.503008] mempool_kmalloc_large_uaf+0xbc/0x118 [ 33.503597] kunit_try_run_case+0x14c/0x3d0 [ 33.504483] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 33.505356] kthread+0x24c/0x2d0 [ 33.505974] ret_from_fork+0x10/0x20 [ 33.506950] [ 33.507325] The buggy address belongs to the physical page: [ 33.508261] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106b30 [ 33.509298] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 33.510359] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 33.511251] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 33.512983] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 33.513944] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 33.515262] head: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 33.515884] head: 0bfffe0000000002 ffffc1ffc31acc01 ffffffffffffffff 0000000000000000 [ 33.516817] head: 0000000000000004 0000000000000000 00000000ffffffff 0000000000000000 [ 33.517715] page dumped because: kasan: bad access detected [ 33.518842] [ 33.519621] Memory state around the buggy address: [ 33.520249] fff00000c6b2ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 33.521154] fff00000c6b2ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 33.522128] >fff00000c6b30000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 33.523309] ^ [ 33.524058] fff00000c6b30080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 33.525035] fff00000c6b30100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 33.525951] ================================================================== [ 33.612016] ================================================================== [ 33.613276] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340 [ 33.614718] Read of size 1 at addr fff00000c6b20000 by task kunit_try_catch/222 [ 33.615947] [ 33.616276] CPU: 0 UID: 0 PID: 222 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241206 #1 [ 33.617437] Tainted: [B]=BAD_PAGE, [N]=TEST [ 33.617912] Hardware name: linux,dummy-virt (DT) [ 33.618680] Call trace: [ 33.619147] show_stack+0x20/0x38 (C) [ 33.619808] dump_stack_lvl+0x8c/0xd0 [ 33.620322] print_report+0x118/0x5e0 [ 33.620975] kasan_report+0xc8/0x118 [ 33.621528] __asan_report_load1_noabort+0x20/0x30 [ 33.622214] mempool_uaf_helper+0x314/0x340 [ 33.622851] mempool_page_alloc_uaf+0xb8/0x118 [ 33.623545] kunit_try_run_case+0x14c/0x3d0 [ 33.624228] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 33.624979] kthread+0x24c/0x2d0 [ 33.625585] ret_from_fork+0x10/0x20 [ 33.626248] [ 33.626592] The buggy address belongs to the physical page: [ 33.627323] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106b20 [ 33.628171] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 33.629036] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 33.629911] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 33.630728] page dumped because: kasan: bad access detected [ 33.631460] [ 33.631849] Memory state around the buggy address: [ 33.632496] fff00000c6b1ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.633321] fff00000c6b1ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.634169] >fff00000c6b20000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 33.634976] ^ [ 33.635457] fff00000c6b20080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 33.636397] fff00000c6b20100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 33.637098] ==================================================================
[ 26.228138] ================================================================== [ 26.229147] BUG: KASAN: use-after-free in mempool_uaf_helper+0x394/0x400 [ 26.230228] Read of size 1 at addr ffff888102acc000 by task kunit_try_catch/237 [ 26.231512] [ 26.232003] CPU: 1 UID: 0 PID: 237 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241206 #1 [ 26.234478] Tainted: [B]=BAD_PAGE, [N]=TEST [ 26.234885] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 26.236119] Call Trace: [ 26.236407] <TASK> [ 26.236702] dump_stack_lvl+0x73/0xb0 [ 26.237155] print_report+0xd1/0x640 [ 26.238136] ? __virt_addr_valid+0x1db/0x2d0 [ 26.238557] ? kasan_addr_to_slab+0x11/0xa0 [ 26.239703] kasan_report+0x102/0x140 [ 26.240005] ? mempool_uaf_helper+0x394/0x400 [ 26.240894] ? mempool_uaf_helper+0x394/0x400 [ 26.241960] __asan_report_load1_noabort+0x18/0x20 [ 26.242439] mempool_uaf_helper+0x394/0x400 [ 26.243711] ? __pfx_mempool_uaf_helper+0x10/0x10 [ 26.244684] ? irqentry_exit+0x2a/0x60 [ 26.245008] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 26.246609] mempool_kmalloc_large_uaf+0xb3/0x100 [ 26.247139] ? __pfx_mempool_kmalloc_large_uaf+0x10/0x10 [ 26.248031] ? __pfx_mempool_kmalloc+0x10/0x10 [ 26.249094] ? __pfx_mempool_kfree+0x10/0x10 [ 26.249586] ? __pfx_mempool_kmalloc_large_uaf+0x10/0x10 [ 26.250067] kunit_try_run_case+0x1b3/0x490 [ 26.251083] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.251872] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 26.252408] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 26.253735] ? __kthread_parkme+0x82/0x160 [ 26.254501] ? preempt_count_sub+0x50/0x80 [ 26.255665] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.256107] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 26.258067] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 26.258726] kthread+0x257/0x310 [ 26.259095] ? __pfx_kthread+0x10/0x10 [ 26.259495] ret_from_fork+0x41/0x80 [ 26.259849] ? __pfx_kthread+0x10/0x10 [ 26.260839] ret_from_fork_asm+0x1a/0x30 [ 26.261458] </TASK> [ 26.262018] [ 26.262263] The buggy address belongs to the physical page: [ 26.263371] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102acc [ 26.265691] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 26.266318] flags: 0x200000000000040(head|node=0|zone=2) [ 26.267194] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 26.267788] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 26.268739] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 26.269261] head: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 26.271365] head: 0200000000000002 ffffea00040ab301 ffffffffffffffff 0000000000000000 [ 26.272793] head: 0000000000000004 0000000000000000 00000000ffffffff 0000000000000000 [ 26.273302] page dumped because: kasan: bad access detected [ 26.274878] [ 26.275376] Memory state around the buggy address: [ 26.275995] ffff888102acbf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 26.276359] ffff888102acbf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 26.277266] >ffff888102acc000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 26.279378] ^ [ 26.279652] ffff888102acc080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 26.281047] ffff888102acc100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 26.281636] ================================================================== [ 26.352474] ================================================================== [ 26.353457] BUG: KASAN: use-after-free in mempool_uaf_helper+0x394/0x400 [ 26.354404] Read of size 1 at addr ffff888102994000 by task kunit_try_catch/241 [ 26.355947] [ 26.356212] CPU: 0 UID: 0 PID: 241 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241206 #1 [ 26.356921] Tainted: [B]=BAD_PAGE, [N]=TEST [ 26.357864] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 26.359222] Call Trace: [ 26.359527] <TASK> [ 26.359796] dump_stack_lvl+0x73/0xb0 [ 26.360262] print_report+0xd1/0x640 [ 26.360664] ? __virt_addr_valid+0x1db/0x2d0 [ 26.363145] ? kasan_addr_to_slab+0x11/0xa0 [ 26.363768] kasan_report+0x102/0x140 [ 26.364128] ? mempool_uaf_helper+0x394/0x400 [ 26.364638] ? mempool_uaf_helper+0x394/0x400 [ 26.365426] __asan_report_load1_noabort+0x18/0x20 [ 26.366855] mempool_uaf_helper+0x394/0x400 [ 26.367204] ? __pfx_mempool_uaf_helper+0x10/0x10 [ 26.367801] ? update_load_avg+0x1c3/0x2110 [ 26.369121] ? update_curr+0x7d/0x5a0 [ 26.369909] ? update_curr+0x7d/0x5a0 [ 26.371360] ? finish_task_switch.isra.0+0x153/0x700 [ 26.372376] mempool_page_alloc_uaf+0xb1/0x100 [ 26.372979] ? __pfx_mempool_page_alloc_uaf+0x10/0x10 [ 26.373881] ? __switch_to+0x5d9/0xf60 [ 26.374412] ? __pfx_mempool_alloc_pages+0x10/0x10 [ 26.375690] ? __pfx_mempool_free_pages+0x10/0x10 [ 26.376666] ? __pfx_read_tsc+0x10/0x10 [ 26.377088] ? ktime_get_ts64+0x86/0x230 [ 26.377633] kunit_try_run_case+0x1b3/0x490 [ 26.378636] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.379521] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 26.380774] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 26.381430] ? __kthread_parkme+0x82/0x160 [ 26.382422] ? preempt_count_sub+0x50/0x80 [ 26.382733] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.384176] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 26.385090] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 26.385852] kthread+0x257/0x310 [ 26.386339] ? __pfx_kthread+0x10/0x10 [ 26.386855] ret_from_fork+0x41/0x80 [ 26.387638] ? __pfx_kthread+0x10/0x10 [ 26.388879] ret_from_fork_asm+0x1a/0x30 [ 26.389541] </TASK> [ 26.389755] [ 26.390374] The buggy address belongs to the physical page: [ 26.391536] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102994 [ 26.393996] flags: 0x200000000000000(node=0|zone=2) [ 26.394636] raw: 0200000000000000 0000000000000000 dead000000000122 0000000000000000 [ 26.395278] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 26.396718] page dumped because: kasan: bad access detected [ 26.397337] [ 26.397507] Memory state around the buggy address: [ 26.397890] ffff888102993f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 26.399596] ffff888102993f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 26.401184] >ffff888102994000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 26.403089] ^ [ 26.403528] ffff888102994080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 26.404235] ffff888102994100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 26.404715] ==================================================================