Date
Dec. 5, 2024, 2:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 29.134709] ================================================================== [ 29.136170] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2cc/0x2f8 [ 29.137313] Read of size 1 at addr fff00000c6490000 by task kunit_try_catch/137 [ 29.138901] [ 29.139205] CPU: 0 UID: 0 PID: 137 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241205 #1 [ 29.141131] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.142107] Hardware name: linux,dummy-virt (DT) [ 29.142767] Call trace: [ 29.143482] show_stack+0x20/0x38 (C) [ 29.144373] dump_stack_lvl+0x8c/0xd0 [ 29.145038] print_report+0x118/0x5e0 [ 29.145638] kasan_report+0xc8/0x118 [ 29.146252] __asan_report_load1_noabort+0x20/0x30 [ 29.146861] kmalloc_large_uaf+0x2cc/0x2f8 [ 29.147542] kunit_try_run_case+0x14c/0x3d0 [ 29.148134] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.149081] kthread+0x24c/0x2d0 [ 29.149553] ret_from_fork+0x10/0x20 [ 29.150089] [ 29.150515] The buggy address belongs to the physical page: [ 29.151157] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106490 [ 29.153003] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 29.154000] raw: 0bfffe0000000000 ffffc1ffc3192508 fff00000da4e3040 0000000000000000 [ 29.154981] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 29.156458] page dumped because: kasan: bad access detected [ 29.157099] [ 29.157433] Memory state around the buggy address: [ 29.158287] fff00000c648ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.159237] fff00000c648ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.160086] >fff00000c6490000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 29.161412] ^ [ 29.162004] fff00000c6490080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 29.162910] fff00000c6490100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 29.163968] ==================================================================
[ 26.699850] ================================================================== [ 26.700947] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2f3/0x340 [ 26.701594] Read of size 1 at addr ffff8881027a4000 by task kunit_try_catch/155 [ 26.703485] [ 26.703837] CPU: 1 UID: 0 PID: 155 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241205 #1 [ 26.704744] Tainted: [B]=BAD_PAGE, [N]=TEST [ 26.705136] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 26.705922] Call Trace: [ 26.706349] <TASK> [ 26.706635] dump_stack_lvl+0x73/0xb0 [ 26.707229] print_report+0xd1/0x640 [ 26.707846] ? __virt_addr_valid+0x1db/0x2d0 [ 26.708493] ? kasan_addr_to_slab+0x11/0xa0 [ 26.709207] kasan_report+0x102/0x140 [ 26.709546] ? kmalloc_large_uaf+0x2f3/0x340 [ 26.709997] ? kmalloc_large_uaf+0x2f3/0x340 [ 26.710395] __asan_report_load1_noabort+0x18/0x20 [ 26.711010] kmalloc_large_uaf+0x2f3/0x340 [ 26.711321] ? __pfx_kmalloc_large_uaf+0x10/0x10 [ 26.712153] ? __schedule+0xc70/0x27e0 [ 26.712597] ? __pfx_read_tsc+0x10/0x10 [ 26.713224] ? ktime_get_ts64+0x86/0x230 [ 26.713549] kunit_try_run_case+0x1b3/0x490 [ 26.714119] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.714830] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 26.715431] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 26.716411] ? __kthread_parkme+0x82/0x160 [ 26.716764] ? preempt_count_sub+0x50/0x80 [ 26.717914] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.718398] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 26.719268] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 26.720311] kthread+0x257/0x310 [ 26.720694] ? __pfx_kthread+0x10/0x10 [ 26.721622] ret_from_fork+0x41/0x80 [ 26.723189] ? __pfx_kthread+0x10/0x10 [ 26.723541] ret_from_fork_asm+0x1a/0x30 [ 26.724219] </TASK> [ 26.724464] [ 26.724739] The buggy address belongs to the physical page: [ 26.725744] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1027a4 [ 26.726871] flags: 0x200000000000000(node=0|zone=2) [ 26.727422] raw: 0200000000000000 ffffea000409ea08 ffff88815b13f0c0 0000000000000000 [ 26.728121] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 26.728960] page dumped because: kasan: bad access detected [ 26.730129] [ 26.730449] Memory state around the buggy address: [ 26.731101] ffff8881027a3f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.731895] ffff8881027a3f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.732843] >ffff8881027a4000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 26.733652] ^ [ 26.734387] ffff8881027a4080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 26.735202] ffff8881027a4100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 26.736196] ==================================================================