Date
July 4, 2025, 11:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 29.351150] ================================================================== [ 29.351245] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8 [ 29.351307] Write of size 1 at addr fff00000c9a5200a by task kunit_try_catch/179 [ 29.351373] [ 29.351430] CPU: 0 UID: 0 PID: 179 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4-next-20250704 #1 PREEMPT [ 29.351541] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.351567] Hardware name: linux,dummy-virt (DT) [ 29.351597] Call trace: [ 29.351618] show_stack+0x20/0x38 (C) [ 29.351763] dump_stack_lvl+0x8c/0xd0 [ 29.351930] print_report+0x118/0x608 [ 29.352011] kasan_report+0xdc/0x128 [ 29.352063] __asan_report_store1_noabort+0x20/0x30 [ 29.352150] kmalloc_large_oob_right+0x278/0x2b8 [ 29.352217] kunit_try_run_case+0x170/0x3f0 [ 29.352292] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.352391] kthread+0x328/0x630 [ 29.352433] ret_from_fork+0x10/0x20 [ 29.352478] [ 29.352566] The buggy address belongs to the physical page: [ 29.352735] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109a50 [ 29.352807] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 29.352880] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 29.352964] page_type: f8(unknown) [ 29.353003] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 29.353159] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 29.353237] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 29.353330] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 29.353419] head: 0bfffe0000000002 ffffc1ffc3269401 00000000ffffffff 00000000ffffffff [ 29.353466] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 29.353554] page dumped because: kasan: bad access detected [ 29.353631] [ 29.353670] Memory state around the buggy address: [ 29.353701] fff00000c9a51f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 29.353784] fff00000c9a51f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 29.353878] >fff00000c9a52000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 29.353981] ^ [ 29.354040] fff00000c9a52080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 29.354141] fff00000c9a52100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 29.354266] ==================================================================
[ 24.336645] ================================================================== [ 24.337103] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330 [ 24.337375] Write of size 1 at addr ffff88810606e00a by task kunit_try_catch/195 [ 24.337746] [ 24.337872] CPU: 1 UID: 0 PID: 195 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4-next-20250704 #1 PREEMPT(voluntary) [ 24.337988] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.338004] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.338181] Call Trace: [ 24.338203] <TASK> [ 24.338226] dump_stack_lvl+0x73/0xb0 [ 24.338261] print_report+0xd1/0x650 [ 24.338287] ? __virt_addr_valid+0x1db/0x2d0 [ 24.338315] ? kmalloc_large_oob_right+0x2e9/0x330 [ 24.338338] ? kasan_addr_to_slab+0x11/0xa0 [ 24.338365] ? kmalloc_large_oob_right+0x2e9/0x330 [ 24.338401] kasan_report+0x141/0x180 [ 24.338906] ? kmalloc_large_oob_right+0x2e9/0x330 [ 24.338941] __asan_report_store1_noabort+0x1b/0x30 [ 24.338969] kmalloc_large_oob_right+0x2e9/0x330 [ 24.338993] ? __pfx_kmalloc_large_oob_right+0x10/0x10 [ 24.339018] ? __schedule+0x10cc/0x2b60 [ 24.339047] ? __pfx_read_tsc+0x10/0x10 [ 24.339072] ? ktime_get_ts64+0x86/0x230 [ 24.339102] kunit_try_run_case+0x1a5/0x480 [ 24.339132] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.339180] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 24.339206] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.339233] ? __kthread_parkme+0x82/0x180 [ 24.339257] ? preempt_count_sub+0x50/0x80 [ 24.339284] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.339311] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.339338] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.339365] kthread+0x337/0x6f0 [ 24.339386] ? trace_preempt_on+0x20/0xc0 [ 24.339425] ? __pfx_kthread+0x10/0x10 [ 24.339448] ? _raw_spin_unlock_irq+0x47/0x80 [ 24.339473] ? calculate_sigpending+0x7b/0xa0 [ 24.339500] ? __pfx_kthread+0x10/0x10 [ 24.339523] ret_from_fork+0x116/0x1d0 [ 24.339544] ? __pfx_kthread+0x10/0x10 [ 24.339567] ret_from_fork_asm+0x1a/0x30 [ 24.339602] </TASK> [ 24.339617] [ 24.354049] The buggy address belongs to the physical page: [ 24.354531] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10606c [ 24.355449] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 24.355940] flags: 0x200000000000040(head|node=0|zone=2) [ 24.356373] page_type: f8(unknown) [ 24.356760] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 24.357685] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 24.358523] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 24.359302] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 24.359969] head: 0200000000000002 ffffea0004181b01 00000000ffffffff 00000000ffffffff [ 24.360250] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 24.361245] page dumped because: kasan: bad access detected [ 24.361785] [ 24.361951] Memory state around the buggy address: [ 24.362323] ffff88810606df00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.362783] ffff88810606df80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.363168] >ffff88810606e000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 24.363991] ^ [ 24.364482] ffff88810606e080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 24.364889] ffff88810606e100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 24.365111] ==================================================================