Date
May 15, 2025, 10:38 a.m.
Environment | |
---|---|
e850-96 |
[ 36.901109] ================================================================== [ 36.910338] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340 [ 36.917014] Read of size 1 at addr ffff0008026a0000 by task kunit_try_catch/274 [ 36.924305] [ 36.925791] CPU: 0 UID: 0 PID: 274 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250515 #1 PREEMPT [ 36.925854] Tainted: [B]=BAD_PAGE, [N]=TEST [ 36.925872] Hardware name: WinLink E850-96 board (DT) [ 36.925893] Call trace: [ 36.925905] show_stack+0x20/0x38 (C) [ 36.925942] dump_stack_lvl+0x8c/0xd0 [ 36.925974] print_report+0x118/0x608 [ 36.926006] kasan_report+0xdc/0x128 [ 36.926040] __asan_report_load1_noabort+0x20/0x30 [ 36.926077] mempool_uaf_helper+0x314/0x340 [ 36.926105] mempool_kmalloc_large_uaf+0xc4/0x120 [ 36.926135] kunit_try_run_case+0x170/0x3f0 [ 36.926167] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 36.926203] kthread+0x328/0x630 [ 36.926237] ret_from_fork+0x10/0x20 [ 36.926273] [ 36.994531] The buggy address belongs to the physical page: [ 37.000087] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x8826a0 [ 37.008071] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 37.015710] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 37.022654] page_type: f8(unknown) [ 37.026052] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 37.033770] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 37.041496] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 37.049307] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 37.057121] head: 0bfffe0000000002 fffffdffe009a801 00000000ffffffff 00000000ffffffff [ 37.064933] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 37.072739] page dumped because: kasan: bad access detected [ 37.078294] [ 37.079769] Memory state around the buggy address: [ 37.084550] ffff00080269ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 37.091753] ffff00080269ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 37.098959] >ffff0008026a0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 37.106158] ^ [ 37.109374] ffff0008026a0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 37.116578] ffff0008026a0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 37.123781] ================================================================== [ 37.462727] ================================================================== [ 37.466748] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340 [ 37.473428] Read of size 1 at addr ffff0008067b4000 by task kunit_try_catch/278 [ 37.480720] [ 37.482206] CPU: 7 UID: 0 PID: 278 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250515 #1 PREEMPT [ 37.482270] Tainted: [B]=BAD_PAGE, [N]=TEST [ 37.482287] Hardware name: WinLink E850-96 board (DT) [ 37.482309] Call trace: [ 37.482323] show_stack+0x20/0x38 (C) [ 37.482363] dump_stack_lvl+0x8c/0xd0 [ 37.482396] print_report+0x118/0x608 [ 37.482431] kasan_report+0xdc/0x128 [ 37.482462] __asan_report_load1_noabort+0x20/0x30 [ 37.482503] mempool_uaf_helper+0x314/0x340 [ 37.482530] mempool_page_alloc_uaf+0xc0/0x118 [ 37.482561] kunit_try_run_case+0x170/0x3f0 [ 37.482595] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 37.482632] kthread+0x328/0x630 [ 37.482666] ret_from_fork+0x10/0x20 [ 37.482700] [ 37.550686] The buggy address belongs to the physical page: [ 37.556242] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x8867b4 [ 37.564227] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 37.570748] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 37.578466] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 37.586187] page dumped because: kasan: bad access detected [ 37.591741] [ 37.593216] Memory state around the buggy address: [ 37.598001] ffff0008067b3f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 37.605200] ffff0008067b3f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 37.612406] >ffff0008067b4000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 37.619605] ^ [ 37.622821] ffff0008067b4080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 37.630025] ffff0008067b4100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 37.637228] ==================================================================