Date
Dec. 3, 2024, 11:38 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 29.407777] ================================================================== [ 29.409154] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2cc/0x2f8 [ 29.409863] Read of size 1 at addr fff00000c6428000 by task kunit_try_catch/137 [ 29.410949] [ 29.411620] CPU: 1 UID: 0 PID: 137 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241203 #1 [ 29.412848] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.413902] Hardware name: linux,dummy-virt (DT) [ 29.414526] Call trace: [ 29.415271] show_stack+0x20/0x38 (C) [ 29.415901] dump_stack_lvl+0x8c/0xd0 [ 29.416543] print_report+0x118/0x5e0 [ 29.417078] kasan_report+0xc8/0x118 [ 29.417690] __asan_report_load1_noabort+0x20/0x30 [ 29.418418] kmalloc_large_uaf+0x2cc/0x2f8 [ 29.419253] kunit_try_run_case+0x14c/0x3d0 [ 29.419888] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.420748] kthread+0x24c/0x2d0 [ 29.421247] ret_from_fork+0x10/0x20 [ 29.421928] [ 29.422202] The buggy address belongs to the physical page: [ 29.422994] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106428 [ 29.424049] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 29.424899] raw: 0bfffe0000000000 fff00000da50bf80 fff00000da50bf80 0000000000000000 [ 29.425931] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 29.426807] page dumped because: kasan: bad access detected [ 29.427629] [ 29.428087] Memory state around the buggy address: [ 29.428698] fff00000c6427f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.429543] fff00000c6427f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.430414] >fff00000c6428000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 29.431530] ^ [ 29.432124] fff00000c6428080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 29.433060] fff00000c6428100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 29.434278] ==================================================================
[ 25.017119] ================================================================== [ 25.018271] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2f3/0x340 [ 25.019266] Read of size 1 at addr ffff888102250000 by task kunit_try_catch/157 [ 25.020145] [ 25.020383] CPU: 0 UID: 0 PID: 157 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241203 #1 [ 25.021232] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.022280] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.022845] Call Trace: [ 25.023072] <TASK> [ 25.023527] dump_stack_lvl+0x73/0xb0 [ 25.024238] print_report+0xd1/0x640 [ 25.024795] ? __virt_addr_valid+0x1db/0x2d0 [ 25.025267] ? kasan_addr_to_slab+0x11/0xa0 [ 25.025896] kasan_report+0x102/0x140 [ 25.026185] ? kmalloc_large_uaf+0x2f3/0x340 [ 25.026735] ? kmalloc_large_uaf+0x2f3/0x340 [ 25.027168] __asan_report_load1_noabort+0x18/0x20 [ 25.027834] kmalloc_large_uaf+0x2f3/0x340 [ 25.028223] ? __pfx_kmalloc_large_uaf+0x10/0x10 [ 25.029133] ? __pfx_kmalloc_large_uaf+0x10/0x10 [ 25.029726] kunit_try_run_case+0x1b3/0x490 [ 25.030697] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.031089] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 25.031757] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.032597] ? __kthread_parkme+0x82/0x160 [ 25.033163] ? preempt_count_sub+0x50/0x80 [ 25.033883] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.034256] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.035101] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.035581] kthread+0x257/0x310 [ 25.035909] ? __pfx_kthread+0x10/0x10 [ 25.036753] ret_from_fork+0x41/0x80 [ 25.037261] ? __pfx_kthread+0x10/0x10 [ 25.038303] ret_from_fork_asm+0x1a/0x30 [ 25.038566] </TASK> [ 25.039279] [ 25.039438] The buggy address belongs to the physical page: [ 25.040512] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102250 [ 25.041424] flags: 0x200000000000000(node=0|zone=2) [ 25.042307] raw: 0200000000000000 ffffea0004089508 ffff88815b03f040 0000000000000000 [ 25.042663] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 25.043297] page dumped because: kasan: bad access detected [ 25.043779] [ 25.043987] Memory state around the buggy address: [ 25.044845] ffff88810224ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.045422] ffff88810224ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.046734] >ffff888102250000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 25.047004] ^ [ 25.047873] ffff888102250080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 25.048323] ffff888102250100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 25.049174] ==================================================================