Date
May 12, 2025, 6:12 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.009329] ================================================================== [ 18.010131] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2cc/0x2f8 [ 18.010873] Read of size 1 at addr fff00000c6094000 by task kunit_try_catch/137 [ 18.012115] [ 18.012399] CPU: 1 UID: 0 PID: 137 Comm: kunit_try_catch Tainted: G B N 6.14.7-rc1 #1 [ 18.012527] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.012560] Hardware name: linux,dummy-virt (DT) [ 18.012623] Call trace: [ 18.012652] show_stack+0x20/0x38 (C) [ 18.012721] dump_stack_lvl+0x8c/0xd0 [ 18.012865] print_report+0x118/0x608 [ 18.012972] kasan_report+0xdc/0x128 [ 18.013089] __asan_report_load1_noabort+0x20/0x30 [ 18.013214] kmalloc_large_uaf+0x2cc/0x2f8 [ 18.013316] kunit_try_run_case+0x170/0x3f0 [ 18.013375] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.013432] kthread+0x318/0x620 [ 18.013483] ret_from_fork+0x10/0x20 [ 18.013537] [ 18.017603] The buggy address belongs to the physical page: [ 18.018356] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106094 [ 18.019358] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.019921] raw: 0bfffe0000000000 ffffc1ffc3182608 fff00000da4d1040 0000000000000000 [ 18.020172] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 18.020397] page dumped because: kasan: bad access detected [ 18.020575] [ 18.020675] Memory state around the buggy address: [ 18.021168] fff00000c6093f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.021982] fff00000c6093f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.022932] >fff00000c6094000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.023661] ^ [ 18.024140] fff00000c6094080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.024538] fff00000c6094100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.024781] ==================================================================
[ 11.885747] ================================================================== [ 11.886710] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2f3/0x340 [ 11.887267] Read of size 1 at addr ffff888102938000 by task kunit_try_catch/156 [ 11.887597] [ 11.887711] CPU: 1 UID: 0 PID: 156 Comm: kunit_try_catch Tainted: G B N 6.14.7-rc1 #1 [ 11.887758] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.887770] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.887791] Call Trace: [ 11.887807] <TASK> [ 11.887827] dump_stack_lvl+0x73/0xb0 [ 11.887869] print_report+0xd1/0x650 [ 11.887892] ? __virt_addr_valid+0x1db/0x2d0 [ 11.887914] ? kmalloc_large_uaf+0x2f3/0x340 [ 11.887943] ? kasan_addr_to_slab+0x11/0xa0 [ 11.887962] ? kmalloc_large_uaf+0x2f3/0x340 [ 11.887982] kasan_report+0x140/0x180 [ 11.888158] ? kmalloc_large_uaf+0x2f3/0x340 [ 11.888185] __asan_report_load1_noabort+0x18/0x20 [ 11.888209] kmalloc_large_uaf+0x2f3/0x340 [ 11.888229] ? __pfx_kmalloc_large_uaf+0x10/0x10 [ 11.888250] ? __schedule+0xce8/0x2840 [ 11.888275] ? __pfx_read_tsc+0x10/0x10 [ 11.888297] ? ktime_get_ts64+0x86/0x230 [ 11.888323] kunit_try_run_case+0x1a6/0x480 [ 11.888347] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.888367] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 11.888387] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.888411] ? __kthread_parkme+0x82/0x160 [ 11.888433] ? preempt_count_sub+0x50/0x80 [ 11.888457] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.888478] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.888503] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.888528] kthread+0x324/0x6e0 [ 11.888550] ? trace_preempt_on+0x20/0xc0 [ 11.888573] ? __pfx_kthread+0x10/0x10 [ 11.888595] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.888617] ? calculate_sigpending+0x7b/0xa0 [ 11.888638] ? __pfx_kthread+0x10/0x10 [ 11.888660] ret_from_fork+0x41/0x80 [ 11.888678] ? __pfx_kthread+0x10/0x10 [ 11.888699] ret_from_fork_asm+0x1a/0x30 [ 11.888730] </TASK> [ 11.888741] [ 11.896642] The buggy address belongs to the physical page: [ 11.896930] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102938 [ 11.897321] flags: 0x200000000000000(node=0|zone=2) [ 11.897606] raw: 0200000000000000 ffffea00040a4f08 ffff888154b3ef40 0000000000000000 [ 11.897928] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 11.898279] page dumped because: kasan: bad access detected [ 11.898534] [ 11.898645] Memory state around the buggy address: [ 11.898894] ffff888102937f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.899544] ffff888102937f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.899884] >ffff888102938000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.900328] ^ [ 11.900506] ffff888102938080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.900798] ffff888102938100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.901162] ==================================================================