Date
Nov. 20, 2024, 6:35 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 39.002076] ================================================================== [ 39.003137] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340 [ 39.004299] Read of size 1 at addr fff00000c674c000 by task kunit_try_catch/218 [ 39.005008] [ 39.005318] CPU: 1 UID: 0 PID: 218 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241120 #1 [ 39.007754] Tainted: [B]=BAD_PAGE, [N]=TEST [ 39.008300] Hardware name: linux,dummy-virt (DT) [ 39.008857] Call trace: [ 39.009536] show_stack+0x20/0x38 (C) [ 39.010358] dump_stack_lvl+0x8c/0xd0 [ 39.010971] print_report+0x118/0x5e0 [ 39.011541] kasan_report+0xc8/0x118 [ 39.012714] __asan_report_load1_noabort+0x20/0x30 [ 39.013633] mempool_uaf_helper+0x314/0x340 [ 39.014517] mempool_kmalloc_large_uaf+0xbc/0x118 [ 39.015142] kunit_try_run_case+0x14c/0x3d0 [ 39.015744] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 39.016433] kthread+0x24c/0x2d0 [ 39.017007] ret_from_fork+0x10/0x20 [ 39.017965] [ 39.018228] The buggy address belongs to the physical page: [ 39.018695] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10674c [ 39.019378] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 39.020279] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 39.021094] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 39.022484] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 39.023253] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 39.024248] head: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 39.025261] head: 0bfffe0000000002 ffffc1ffc319d301 ffffffffffffffff 0000000000000000 [ 39.026350] head: 0000000000000004 0000000000000000 00000000ffffffff 0000000000000000 [ 39.027590] page dumped because: kasan: bad access detected [ 39.028501] [ 39.028822] Memory state around the buggy address: [ 39.029619] fff00000c674bf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 39.030815] fff00000c674bf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 39.031706] >fff00000c674c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 39.032706] ^ [ 39.033357] fff00000c674c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 39.034511] fff00000c674c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 39.035771] ================================================================== [ 39.119681] ================================================================== [ 39.120734] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340 [ 39.121521] Read of size 1 at addr fff00000c67f8000 by task kunit_try_catch/222 [ 39.122323] [ 39.122744] CPU: 1 UID: 0 PID: 222 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241120 #1 [ 39.124185] Tainted: [B]=BAD_PAGE, [N]=TEST [ 39.124777] Hardware name: linux,dummy-virt (DT) [ 39.126404] Call trace: [ 39.126818] show_stack+0x20/0x38 (C) [ 39.127420] dump_stack_lvl+0x8c/0xd0 [ 39.128034] print_report+0x118/0x5e0 [ 39.128660] kasan_report+0xc8/0x118 [ 39.129158] __asan_report_load1_noabort+0x20/0x30 [ 39.129850] mempool_uaf_helper+0x314/0x340 [ 39.130355] mempool_page_alloc_uaf+0xb8/0x118 [ 39.131014] kunit_try_run_case+0x14c/0x3d0 [ 39.131665] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 39.132348] kthread+0x24c/0x2d0 [ 39.132856] ret_from_fork+0x10/0x20 [ 39.133324] [ 39.133689] The buggy address belongs to the physical page: [ 39.134368] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1067f8 [ 39.135187] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 39.136047] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 39.136896] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 39.137703] page dumped because: kasan: bad access detected [ 39.138237] [ 39.138586] Memory state around the buggy address: [ 39.139173] fff00000c67f7f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 39.139954] fff00000c67f7f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 39.140686] >fff00000c67f8000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 39.141473] ^ [ 39.141952] fff00000c67f8080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 39.142735] fff00000c67f8100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 39.143553] ==================================================================
[ 30.557499] ================================================================== [ 30.558665] BUG: KASAN: use-after-free in mempool_uaf_helper+0x394/0x400 [ 30.559684] Read of size 1 at addr ffff888102ce4000 by task kunit_try_catch/236 [ 30.560549] [ 30.560825] CPU: 1 UID: 0 PID: 236 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241120 #1 [ 30.562389] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.562849] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 30.563626] Call Trace: [ 30.564062] <TASK> [ 30.564491] dump_stack_lvl+0x73/0xb0 [ 30.564990] print_report+0xd1/0x640 [ 30.565412] ? __virt_addr_valid+0x1db/0x2d0 [ 30.565985] ? kasan_addr_to_slab+0x11/0xa0 [ 30.566570] kasan_report+0x102/0x140 [ 30.567098] ? mempool_uaf_helper+0x394/0x400 [ 30.567527] ? mempool_uaf_helper+0x394/0x400 [ 30.568579] __asan_report_load1_noabort+0x18/0x20 [ 30.569046] mempool_uaf_helper+0x394/0x400 [ 30.569611] ? __pfx_mempool_uaf_helper+0x10/0x10 [ 30.570668] ? irqentry_exit+0x2a/0x60 [ 30.571013] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 30.571953] mempool_kmalloc_large_uaf+0xb3/0x100 [ 30.572331] ? __pfx_mempool_kmalloc_large_uaf+0x10/0x10 [ 30.573144] ? __pfx_mempool_kmalloc+0x10/0x10 [ 30.573956] ? __pfx_mempool_kfree+0x10/0x10 [ 30.574326] ? __pfx_mempool_kmalloc_large_uaf+0x10/0x10 [ 30.575116] kunit_try_run_case+0x1b3/0x490 [ 30.575984] ? __pfx_kunit_try_run_case+0x10/0x10 [ 30.576630] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 30.577179] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 30.577649] ? __kthread_parkme+0x82/0x160 [ 30.578364] ? preempt_count_sub+0x50/0x80 [ 30.578717] ? __pfx_kunit_try_run_case+0x10/0x10 [ 30.579595] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 30.580234] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 30.580914] kthread+0x257/0x310 [ 30.581241] ? __pfx_kthread+0x10/0x10 [ 30.581928] ret_from_fork+0x41/0x80 [ 30.582253] ? __pfx_kthread+0x10/0x10 [ 30.582893] ret_from_fork_asm+0x1a/0x30 [ 30.583431] </TASK> [ 30.583795] [ 30.584112] The buggy address belongs to the physical page: [ 30.584714] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102ce4 [ 30.585626] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 30.586592] flags: 0x200000000000040(head|node=0|zone=2) [ 30.587206] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 30.587965] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 30.588569] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 30.589729] head: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 30.590595] head: 0200000000000002 ffffea00040b3901 ffffffffffffffff 0000000000000000 [ 30.591336] head: 0000000000000004 0000000000000000 00000000ffffffff 0000000000000000 [ 30.592340] page dumped because: kasan: bad access detected [ 30.593158] [ 30.593458] Memory state around the buggy address: [ 30.594387] ffff888102ce3f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 30.595043] ffff888102ce3f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 30.595829] >ffff888102ce4000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 30.596426] ^ [ 30.596878] ffff888102ce4080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 30.597418] ffff888102ce4100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 30.598238] ================================================================== [ 30.680052] ================================================================== [ 30.681236] BUG: KASAN: use-after-free in mempool_uaf_helper+0x394/0x400 [ 30.681832] Read of size 1 at addr ffff888102ce8000 by task kunit_try_catch/240 [ 30.682915] [ 30.683240] CPU: 1 UID: 0 PID: 240 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241120 #1 [ 30.684516] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.684910] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 30.686533] Call Trace: [ 30.687256] <TASK> [ 30.687709] dump_stack_lvl+0x73/0xb0 [ 30.688069] print_report+0xd1/0x640 [ 30.688586] ? __virt_addr_valid+0x1db/0x2d0 [ 30.689503] ? kasan_addr_to_slab+0x11/0xa0 [ 30.690321] kasan_report+0x102/0x140 [ 30.690765] ? mempool_uaf_helper+0x394/0x400 [ 30.691221] ? mempool_uaf_helper+0x394/0x400 [ 30.691682] __asan_report_load1_noabort+0x18/0x20 [ 30.692479] mempool_uaf_helper+0x394/0x400 [ 30.693109] ? __pfx_mempool_uaf_helper+0x10/0x10 [ 30.693441] ? finish_task_switch.isra.0+0x153/0x700 [ 30.694143] mempool_page_alloc_uaf+0xb1/0x100 [ 30.695057] ? __pfx_mempool_page_alloc_uaf+0x10/0x10 [ 30.695816] ? __switch_to+0x5d9/0xf60 [ 30.696484] ? __pfx_mempool_alloc_pages+0x10/0x10 [ 30.696996] ? __pfx_mempool_free_pages+0x10/0x10 [ 30.697704] ? __pfx_read_tsc+0x10/0x10 [ 30.698173] ? ktime_get_ts64+0x84/0x230 [ 30.698577] kunit_try_run_case+0x1b3/0x490 [ 30.699294] ? __pfx_kunit_try_run_case+0x10/0x10 [ 30.699903] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 30.700439] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 30.701086] ? __kthread_parkme+0x82/0x160 [ 30.701615] ? preempt_count_sub+0x50/0x80 [ 30.702228] ? __pfx_kunit_try_run_case+0x10/0x10 [ 30.702560] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 30.703270] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 30.704290] kthread+0x257/0x310 [ 30.704667] ? __pfx_kthread+0x10/0x10 [ 30.705205] ret_from_fork+0x41/0x80 [ 30.705727] ? __pfx_kthread+0x10/0x10 [ 30.706295] ret_from_fork_asm+0x1a/0x30 [ 30.706782] </TASK> [ 30.707372] [ 30.707604] The buggy address belongs to the physical page: [ 30.708514] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102ce8 [ 30.709148] flags: 0x200000000000000(node=0|zone=2) [ 30.709919] raw: 0200000000000000 0000000000000000 dead000000000122 0000000000000000 [ 30.710541] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 30.711905] page dumped because: kasan: bad access detected [ 30.712473] [ 30.712907] Memory state around the buggy address: [ 30.713457] ffff888102ce7f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 30.714211] ffff888102ce7f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 30.714975] >ffff888102ce8000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 30.715961] ^ [ 30.716421] ffff888102ce8080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 30.717552] ffff888102ce8100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 30.718521] ==================================================================