Date
April 20, 2025, 11:09 p.m.
Environment | |
---|---|
x15 | |
x86 |
[ 48.189483] ================================================================== [ 48.201049] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x358/0x388 [ 48.207702] Read of size 1 at addr ccb38000 by task kunit_try_catch/204 [ 48.214355] [ 48.215881] CPU: 1 UID: 0 PID: 204 Comm: kunit_try_catch Tainted: G B W N 6.15.0-rc3 #1 NONE [ 48.215911] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 48.215911] Hardware name: Generic DRA74X (Flattened Device Tree) [ 48.215911] Call trace: [ 48.215942] unwind_backtrace from show_stack+0x18/0x1c [ 48.215942] show_stack from dump_stack_lvl+0x70/0x90 [ 48.215972] dump_stack_lvl from print_report+0x158/0x528 [ 48.216003] print_report from kasan_report+0xdc/0x118 [ 48.216033] kasan_report from kmalloc_large_uaf+0x358/0x388 [ 48.216033] kmalloc_large_uaf from kunit_try_run_case+0x22c/0x5a8 [ 48.216064] kunit_try_run_case from kunit_generic_run_threadfn_adapter+0xc4/0x128 [ 48.216094] kunit_generic_run_threadfn_adapter from kthread+0x464/0x810 [ 48.216125] kthread from ret_from_fork+0x14/0x20 [ 48.216125] Exception stack(0xf238bfb0 to 0xf238bff8) [ 48.216156] bfa0: 00000000 00000000 00000000 00000000 [ 48.216186] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 48.216186] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 48.216186] [ 48.321075] The buggy address belongs to the physical page: [ 48.326690] page: refcount:0 mapcount:0 mapping:00000000 index:0x0 pfn:0x8cb38 [ 48.333953] flags: 0x0(zone=0) [ 48.337036] raw: 00000000 eebc8474 e8a4cbcc 00000000 00000000 00000000 ffffffff 00000000 [ 48.345184] raw: 00000000 [ 48.347808] page dumped because: kasan: bad access detected [ 48.353424] [ 48.354919] Memory state around the buggy address: [ 48.359741] ccb37f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 48.366333] ccb37f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 48.372894] >ccb38000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 48.379455] ^ [ 48.382019] ccb38080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 48.388580] ccb38100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 48.395141] ==================================================================
[ 16.465000] ================================================================== [ 16.476521] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2f1/0x340 [ 16.483144] Read of size 1 at addr ffff888105eb8000 by task kunit_try_catch/191 [ 16.490455] [ 16.491958] CPU: 2 UID: 0 PID: 191 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc3 #1 PREEMPT(voluntary) [ 16.491966] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.491969] Hardware name: Supermicro SYS-5019S-ML/X11SSH-F, BIOS 2.7 12/07/2021 [ 16.491972] Call Trace: [ 16.491973] <TASK> [ 16.491975] dump_stack_lvl+0x73/0xb0 [ 16.491979] print_report+0xd1/0x650 [ 16.491984] ? __virt_addr_valid+0x1db/0x2d0 [ 16.491987] ? kmalloc_large_uaf+0x2f1/0x340 [ 16.491991] ? kasan_addr_to_slab+0x11/0xa0 [ 16.491995] ? kmalloc_large_uaf+0x2f1/0x340 [ 16.491999] kasan_report+0x141/0x180 [ 16.492003] ? kmalloc_large_uaf+0x2f1/0x340 [ 16.492008] __asan_report_load1_noabort+0x18/0x20 [ 16.492012] kmalloc_large_uaf+0x2f1/0x340 [ 16.492016] ? __pfx_kmalloc_large_uaf+0x10/0x10 [ 16.492020] ? __schedule+0x10cc/0x2b30 [ 16.492025] ? ktime_get_ts64+0x83/0x230 [ 16.492029] kunit_try_run_case+0x1a2/0x480 [ 16.492034] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.492038] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.492042] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.492047] ? __kthread_parkme+0x82/0x180 [ 16.492051] ? preempt_count_sub+0x50/0x80 [ 16.492056] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.492060] kunit_generic_run_threadfn_adapter+0x82/0xf0 [ 16.492064] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.492068] kthread+0x334/0x6f0 [ 16.492072] ? trace_preempt_on+0x20/0xc0 [ 16.492076] ? __pfx_kthread+0x10/0x10 [ 16.492081] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.492085] ? calculate_sigpending+0x7b/0xa0 [ 16.492089] ? __pfx_kthread+0x10/0x10 [ 16.492093] ret_from_fork+0x3e/0x80 [ 16.492097] ? __pfx_kthread+0x10/0x10 [ 16.492101] ret_from_fork_asm+0x1a/0x30 [ 16.492107] </TASK> [ 16.492109] [ 16.653736] The buggy address belongs to the physical page: [ 16.659311] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105eb8 [ 16.667317] flags: 0x200000000000000(node=0|zone=2) [ 16.672196] raw: 0200000000000000 ffffea000417af08 ffff88841f739a80 0000000000000000 [ 16.679937] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 16.687703] page dumped because: kasan: bad access detected [ 16.693298] [ 16.694796] Memory state around the buggy address: [ 16.699592] ffff888105eb7f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.706820] ffff888105eb7f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.714046] >ffff888105eb8000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.721265] ^ [ 16.724497] ffff888105eb8080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.731740] ffff888105eb8100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.738961] ==================================================================