Date
May 13, 2025, 12:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.005515] ================================================================== [ 19.005987] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8 [ 19.006168] Write of size 1 at addr fff00000c655e00a by task kunit_try_catch/146 [ 19.006229] [ 19.006456] CPU: 1 UID: 0 PID: 146 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250513 #1 PREEMPT [ 19.006846] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.006891] Hardware name: linux,dummy-virt (DT) [ 19.006953] Call trace: [ 19.007042] show_stack+0x20/0x38 (C) [ 19.007111] dump_stack_lvl+0x8c/0xd0 [ 19.007196] print_report+0x118/0x608 [ 19.007255] kasan_report+0xdc/0x128 [ 19.007592] __asan_report_store1_noabort+0x20/0x30 [ 19.007762] kmalloc_large_oob_right+0x278/0x2b8 [ 19.008010] kunit_try_run_case+0x170/0x3f0 [ 19.008082] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.008551] kthread+0x328/0x630 [ 19.008886] ret_from_fork+0x10/0x20 [ 19.009086] [ 19.009153] The buggy address belongs to the physical page: [ 19.009360] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10655c [ 19.009661] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 19.009725] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 19.010233] page_type: f8(unknown) [ 19.010329] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 19.010435] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 19.010545] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 19.010985] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 19.011067] head: 0bfffe0000000002 ffffc1ffc3195701 00000000ffffffff 00000000ffffffff [ 19.011189] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 19.011296] page dumped because: kasan: bad access detected [ 19.011712] [ 19.011761] Memory state around the buggy address: [ 19.011912] fff00000c655df00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 19.012075] fff00000c655df80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 19.012124] >fff00000c655e000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 19.012163] ^ [ 19.012197] fff00000c655e080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 19.012239] fff00000c655e100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 19.012284] ==================================================================
[ 10.570673] ================================================================== [ 10.571279] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330 [ 10.571992] Write of size 1 at addr ffff88810201600a by task kunit_try_catch/163 [ 10.572603] [ 10.572738] CPU: 0 UID: 0 PID: 163 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250513 #1 PREEMPT(voluntary) [ 10.572816] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.572829] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.572848] Call Trace: [ 10.572860] <TASK> [ 10.572886] dump_stack_lvl+0x73/0xb0 [ 10.572914] print_report+0xd1/0x650 [ 10.572937] ? __virt_addr_valid+0x1db/0x2d0 [ 10.572999] ? kmalloc_large_oob_right+0x2e9/0x330 [ 10.573021] ? kasan_addr_to_slab+0x11/0xa0 [ 10.573042] ? kmalloc_large_oob_right+0x2e9/0x330 [ 10.573074] kasan_report+0x141/0x180 [ 10.573096] ? kmalloc_large_oob_right+0x2e9/0x330 [ 10.573124] __asan_report_store1_noabort+0x1b/0x30 [ 10.573145] kmalloc_large_oob_right+0x2e9/0x330 [ 10.573167] ? __pfx_kmalloc_large_oob_right+0x10/0x10 [ 10.573199] ? __schedule+0x10cc/0x2b60 [ 10.573221] ? __pfx_read_tsc+0x10/0x10 [ 10.573241] ? ktime_get_ts64+0x86/0x230 [ 10.573265] kunit_try_run_case+0x1a5/0x480 [ 10.573288] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.573309] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.573331] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.573353] ? __kthread_parkme+0x82/0x180 [ 10.573373] ? preempt_count_sub+0x50/0x80 [ 10.573397] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.573419] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.573441] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.573464] kthread+0x337/0x6f0 [ 10.573482] ? trace_preempt_on+0x20/0xc0 [ 10.573505] ? __pfx_kthread+0x10/0x10 [ 10.573540] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.573561] ? calculate_sigpending+0x7b/0xa0 [ 10.573584] ? __pfx_kthread+0x10/0x10 [ 10.573605] ret_from_fork+0x116/0x1d0 [ 10.573632] ? __pfx_kthread+0x10/0x10 [ 10.573652] ret_from_fork_asm+0x1a/0x30 [ 10.573683] </TASK> [ 10.573694] [ 10.583792] The buggy address belongs to the physical page: [ 10.584055] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102014 [ 10.584544] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 10.584866] flags: 0x200000000000040(head|node=0|zone=2) [ 10.585215] page_type: f8(unknown) [ 10.585340] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 10.585892] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 10.586450] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 10.586734] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 10.587322] head: 0200000000000002 ffffea0004080501 00000000ffffffff 00000000ffffffff [ 10.587764] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 10.588077] page dumped because: kasan: bad access detected [ 10.588297] [ 10.588488] Memory state around the buggy address: [ 10.588765] ffff888102015f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.589094] ffff888102015f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.589365] >ffff888102016000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 10.589791] ^ [ 10.590006] ffff888102016080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 10.590417] ffff888102016100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 10.590746] ==================================================================