Date
July 23, 2025, 2:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.120290] ================================================================== [ 15.120423] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8 [ 15.120477] Write of size 1 at addr fff00000c650200a by task kunit_try_catch/146 [ 15.120578] [ 15.120625] CPU: 1 UID: 0 PID: 146 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7 #1 PREEMPT [ 15.120708] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.120734] Hardware name: linux,dummy-virt (DT) [ 15.120763] Call trace: [ 15.120802] show_stack+0x20/0x38 (C) [ 15.120943] dump_stack_lvl+0x8c/0xd0 [ 15.121090] print_report+0x118/0x5d0 [ 15.121195] kasan_report+0xdc/0x128 [ 15.121249] __asan_report_store1_noabort+0x20/0x30 [ 15.121300] kmalloc_large_oob_right+0x278/0x2b8 [ 15.121346] kunit_try_run_case+0x170/0x3f0 [ 15.121392] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.121443] kthread+0x328/0x630 [ 15.121484] ret_from_fork+0x10/0x20 [ 15.121530] [ 15.121566] The buggy address belongs to the physical page: [ 15.121598] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106500 [ 15.121664] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 15.121767] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 15.121836] page_type: f8(unknown) [ 15.121890] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 15.121948] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 15.121999] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 15.122079] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 15.122401] head: 0bfffe0000000002 ffffc1ffc3194001 00000000ffffffff 00000000ffffffff [ 15.123093] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 15.123638] page dumped because: kasan: bad access detected [ 15.123989] [ 15.124068] Memory state around the buggy address: [ 15.124421] fff00000c6501f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.124799] fff00000c6501f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.125264] >fff00000c6502000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 15.125820] ^ [ 15.126057] fff00000c6502080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 15.126586] fff00000c6502100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 15.127012] ==================================================================
[ 12.182690] ================================================================== [ 12.183157] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330 [ 12.183404] Write of size 1 at addr ffff88810294e00a by task kunit_try_catch/163 [ 12.183637] [ 12.183725] CPU: 0 UID: 0 PID: 163 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7 #1 PREEMPT(voluntary) [ 12.183768] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.183779] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.183800] Call Trace: [ 12.183825] <TASK> [ 12.183840] dump_stack_lvl+0x73/0xb0 [ 12.183867] print_report+0xd1/0x610 [ 12.183887] ? __virt_addr_valid+0x1db/0x2d0 [ 12.183908] ? kmalloc_large_oob_right+0x2e9/0x330 [ 12.183929] ? kasan_addr_to_slab+0x11/0xa0 [ 12.183948] ? kmalloc_large_oob_right+0x2e9/0x330 [ 12.183969] kasan_report+0x141/0x180 [ 12.183989] ? kmalloc_large_oob_right+0x2e9/0x330 [ 12.184014] __asan_report_store1_noabort+0x1b/0x30 [ 12.184037] kmalloc_large_oob_right+0x2e9/0x330 [ 12.184058] ? __pfx_kmalloc_large_oob_right+0x10/0x10 [ 12.184080] ? __schedule+0x10c6/0x2b60 [ 12.184102] ? __pfx_read_tsc+0x10/0x10 [ 12.184121] ? ktime_get_ts64+0x86/0x230 [ 12.184143] kunit_try_run_case+0x1a5/0x480 [ 12.184167] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.184188] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.184210] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.184232] ? __kthread_parkme+0x82/0x180 [ 12.184251] ? preempt_count_sub+0x50/0x80 [ 12.184273] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.184296] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.184318] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.184340] kthread+0x337/0x6f0 [ 12.184358] ? trace_preempt_on+0x20/0xc0 [ 12.184379] ? __pfx_kthread+0x10/0x10 [ 12.184398] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.184418] ? calculate_sigpending+0x7b/0xa0 [ 12.184440] ? __pfx_kthread+0x10/0x10 [ 12.184460] ret_from_fork+0x116/0x1d0 [ 12.184477] ? __pfx_kthread+0x10/0x10 [ 12.184497] ret_from_fork_asm+0x1a/0x30 [ 12.184526] </TASK> [ 12.184536] [ 12.203201] The buggy address belongs to the physical page: [ 12.203914] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10294c [ 12.204953] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 12.205680] flags: 0x200000000000040(head|node=0|zone=2) [ 12.206331] page_type: f8(unknown) [ 12.206704] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 12.206957] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 12.207227] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 12.208078] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 12.208867] head: 0200000000000002 ffffea00040a5301 00000000ffffffff 00000000ffffffff [ 12.209109] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 12.210030] page dumped because: kasan: bad access detected [ 12.210744] [ 12.210926] Memory state around the buggy address: [ 12.211601] ffff88810294df00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.211909] ffff88810294df80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.212176] >ffff88810294e000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 12.212951] ^ [ 12.213363] ffff88810294e080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 12.214096] ffff88810294e100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 12.214763] ==================================================================