Date
July 19, 2025, 11:11 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.035111] ================================================================== [ 15.035187] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8 [ 15.035302] Write of size 1 at addr fff00000c640e00a by task kunit_try_catch/147 [ 15.035355] [ 15.035401] CPU: 1 UID: 0 PID: 147 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.035481] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.035506] Hardware name: linux,dummy-virt (DT) [ 15.035549] Call trace: [ 15.035580] show_stack+0x20/0x38 (C) [ 15.035630] dump_stack_lvl+0x8c/0xd0 [ 15.035691] print_report+0x118/0x5d0 [ 15.035736] kasan_report+0xdc/0x128 [ 15.035780] __asan_report_store1_noabort+0x20/0x30 [ 15.035829] kmalloc_large_oob_right+0x278/0x2b8 [ 15.035874] kunit_try_run_case+0x170/0x3f0 [ 15.035920] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.035972] kthread+0x328/0x630 [ 15.036013] ret_from_fork+0x10/0x20 [ 15.036059] [ 15.036095] The buggy address belongs to the physical page: [ 15.036135] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10640c [ 15.036193] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 15.036239] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 15.036295] page_type: f8(unknown) [ 15.036333] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 15.036380] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 15.036430] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 15.036477] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 15.036525] head: 0bfffe0000000002 ffffc1ffc3190301 00000000ffffffff 00000000ffffffff [ 15.037101] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 15.037903] page dumped because: kasan: bad access detected [ 15.038257] [ 15.038306] Memory state around the buggy address: [ 15.038359] fff00000c640df00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.038550] fff00000c640df80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.038769] >fff00000c640e000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 15.038863] ^ [ 15.039002] fff00000c640e080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 15.039073] fff00000c640e100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 15.039250] ==================================================================
[ 11.566861] ================================================================== [ 11.567939] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330 [ 11.568379] Write of size 1 at addr ffff88810391600a by task kunit_try_catch/164 [ 11.568926] [ 11.569022] CPU: 1 UID: 0 PID: 164 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 11.569070] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.569080] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.569102] Call Trace: [ 11.569115] <TASK> [ 11.569133] dump_stack_lvl+0x73/0xb0 [ 11.569190] print_report+0xd1/0x610 [ 11.569212] ? __virt_addr_valid+0x1db/0x2d0 [ 11.569236] ? kmalloc_large_oob_right+0x2e9/0x330 [ 11.569286] ? kasan_addr_to_slab+0x11/0xa0 [ 11.569307] ? kmalloc_large_oob_right+0x2e9/0x330 [ 11.569329] kasan_report+0x141/0x180 [ 11.569350] ? kmalloc_large_oob_right+0x2e9/0x330 [ 11.569376] __asan_report_store1_noabort+0x1b/0x30 [ 11.569400] kmalloc_large_oob_right+0x2e9/0x330 [ 11.569422] ? __pfx_kmalloc_large_oob_right+0x10/0x10 [ 11.569445] ? __schedule+0x10cc/0x2b60 [ 11.569467] ? __pfx_read_tsc+0x10/0x10 [ 11.569520] ? ktime_get_ts64+0x86/0x230 [ 11.569546] kunit_try_run_case+0x1a5/0x480 [ 11.569571] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.569593] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.569617] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.569640] ? __kthread_parkme+0x82/0x180 [ 11.569660] ? preempt_count_sub+0x50/0x80 [ 11.569685] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.569707] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.569730] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.569753] kthread+0x337/0x6f0 [ 11.569771] ? trace_preempt_on+0x20/0xc0 [ 11.569795] ? __pfx_kthread+0x10/0x10 [ 11.569814] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.569834] ? calculate_sigpending+0x7b/0xa0 [ 11.569858] ? __pfx_kthread+0x10/0x10 [ 11.569878] ret_from_fork+0x116/0x1d0 [ 11.569899] ? __pfx_kthread+0x10/0x10 [ 11.569918] ret_from_fork_asm+0x1a/0x30 [ 11.569949] </TASK> [ 11.569959] [ 11.581217] The buggy address belongs to the physical page: [ 11.581709] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103914 [ 11.582406] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 11.583048] flags: 0x200000000000040(head|node=0|zone=2) [ 11.583563] page_type: f8(unknown) [ 11.583888] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 11.584381] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 11.584776] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 11.585012] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 11.585473] head: 0200000000000002 ffffea00040e4501 00000000ffffffff 00000000ffffffff [ 11.586133] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 11.586803] page dumped because: kasan: bad access detected [ 11.587291] [ 11.587444] Memory state around the buggy address: [ 11.587872] ffff888103915f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.588339] ffff888103915f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.588670] >ffff888103916000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 11.589288] ^ [ 11.589604] ffff888103916080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 11.590062] ffff888103916100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 11.590606] ==================================================================