Date
June 18, 2025, 6:43 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.861614] ================================================================== [ 19.862080] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8 [ 19.862520] Write of size 1 at addr fff00000c76ce00a by task kunit_try_catch/156 [ 19.862692] [ 19.862776] CPU: 0 UID: 0 PID: 156 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250618 #1 PREEMPT [ 19.863144] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.863208] Hardware name: linux,dummy-virt (DT) [ 19.863290] Call trace: [ 19.863351] show_stack+0x20/0x38 (C) [ 19.863469] dump_stack_lvl+0x8c/0xd0 [ 19.863580] print_report+0x118/0x608 [ 19.863740] kasan_report+0xdc/0x128 [ 19.863958] __asan_report_store1_noabort+0x20/0x30 [ 19.864353] kmalloc_large_oob_right+0x278/0x2b8 [ 19.864515] kunit_try_run_case+0x170/0x3f0 [ 19.864714] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.864992] kthread+0x328/0x630 [ 19.865115] ret_from_fork+0x10/0x20 [ 19.865500] [ 19.865598] The buggy address belongs to the physical page: [ 19.865783] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1076cc [ 19.865939] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 19.866049] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 19.866196] page_type: f8(unknown) [ 19.866296] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 19.866412] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 19.866511] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 19.866985] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 19.867168] head: 0bfffe0000000002 ffffc1ffc31db301 00000000ffffffff 00000000ffffffff [ 19.867380] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 19.867565] page dumped because: kasan: bad access detected [ 19.867790] [ 19.867860] Memory state around the buggy address: [ 19.867953] fff00000c76cdf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 19.868172] fff00000c76cdf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 19.868562] >fff00000c76ce000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 19.868718] ^ [ 19.868798] fff00000c76ce080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 19.868892] fff00000c76ce100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 19.868978] ==================================================================
[ 10.638220] ================================================================== [ 10.639298] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330 [ 10.639982] Write of size 1 at addr ffff888103ab200a by task kunit_try_catch/172 [ 10.640837] [ 10.641148] CPU: 1 UID: 0 PID: 172 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250618 #1 PREEMPT(voluntary) [ 10.641223] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.641236] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.641258] Call Trace: [ 10.641270] <TASK> [ 10.641287] dump_stack_lvl+0x73/0xb0 [ 10.641319] print_report+0xd1/0x650 [ 10.641340] ? __virt_addr_valid+0x1db/0x2d0 [ 10.641363] ? kmalloc_large_oob_right+0x2e9/0x330 [ 10.641383] ? kasan_addr_to_slab+0x11/0xa0 [ 10.641402] ? kmalloc_large_oob_right+0x2e9/0x330 [ 10.641422] kasan_report+0x141/0x180 [ 10.641442] ? kmalloc_large_oob_right+0x2e9/0x330 [ 10.641467] __asan_report_store1_noabort+0x1b/0x30 [ 10.641490] kmalloc_large_oob_right+0x2e9/0x330 [ 10.641510] ? __pfx_kmalloc_large_oob_right+0x10/0x10 [ 10.641531] ? __schedule+0x10cc/0x2b60 [ 10.641552] ? __pfx_read_tsc+0x10/0x10 [ 10.641573] ? ktime_get_ts64+0x86/0x230 [ 10.641598] kunit_try_run_case+0x1a5/0x480 [ 10.641622] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.641642] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.641664] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.641685] ? __kthread_parkme+0x82/0x180 [ 10.641705] ? preempt_count_sub+0x50/0x80 [ 10.641728] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.641750] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.641772] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.641793] kthread+0x337/0x6f0 [ 10.641811] ? trace_preempt_on+0x20/0xc0 [ 10.641835] ? __pfx_kthread+0x10/0x10 [ 10.641855] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.641884] ? calculate_sigpending+0x7b/0xa0 [ 10.641908] ? __pfx_kthread+0x10/0x10 [ 10.641928] ret_from_fork+0x116/0x1d0 [ 10.641956] ? __pfx_kthread+0x10/0x10 [ 10.641975] ret_from_fork_asm+0x1a/0x30 [ 10.642005] </TASK> [ 10.642015] [ 10.655728] The buggy address belongs to the physical page: [ 10.656295] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103ab0 [ 10.656710] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 10.657368] flags: 0x200000000000040(head|node=0|zone=2) [ 10.657942] page_type: f8(unknown) [ 10.658172] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 10.658743] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 10.658996] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 10.659264] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 10.659556] head: 0200000000000002 ffffea00040eac01 00000000ffffffff 00000000ffffffff [ 10.660264] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 10.661066] page dumped because: kasan: bad access detected [ 10.661630] [ 10.661789] Memory state around the buggy address: [ 10.662121] ffff888103ab1f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.662689] ffff888103ab1f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.663330] >ffff888103ab2000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 10.663747] ^ [ 10.663869] ffff888103ab2080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 10.664078] ffff888103ab2100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 10.664340] ==================================================================