Date
March 19, 2025, 10:35 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 33.531222] ================================================================== [ 33.532656] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8 [ 33.532821] Write of size 1 at addr fff00000c76e600a by task kunit_try_catch/148 [ 33.532975] [ 33.533154] CPU: 1 UID: 0 PID: 148 Comm: kunit_try_catch Tainted: G B N 6.14.0-rc7-next-20250319 #1 PREEMPT [ 33.534038] Tainted: [B]=BAD_PAGE, [N]=TEST [ 33.534230] Hardware name: linux,dummy-virt (DT) [ 33.534433] Call trace: [ 33.534550] show_stack+0x20/0x38 (C) [ 33.534804] dump_stack_lvl+0x8c/0xd0 [ 33.535046] print_report+0x118/0x5f0 [ 33.535295] kasan_report+0xc8/0x118 [ 33.535432] __asan_report_store1_noabort+0x20/0x30 [ 33.535603] kmalloc_large_oob_right+0x278/0x2b8 [ 33.535858] kunit_try_run_case+0x14c/0x3d0 [ 33.536018] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 33.536809] kthread+0x318/0x618 [ 33.536981] ret_from_fork+0x10/0x20 [ 33.537397] [ 33.537577] The buggy address belongs to the physical page: [ 33.537689] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1076e4 [ 33.537855] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 33.538001] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 33.538212] page_type: f8(unknown) [ 33.538320] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 33.538504] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 33.538763] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 33.538933] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 33.539128] head: 0bfffe0000000002 ffffc1ffc31db901 00000000ffffffff 00000000ffffffff [ 33.539274] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 33.539850] page dumped because: kasan: bad access detected [ 33.540018] [ 33.540100] Memory state around the buggy address: [ 33.540206] fff00000c76e5f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 33.540340] fff00000c76e5f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 33.540524] >fff00000c76e6000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 33.540967] ^ [ 33.541220] fff00000c76e6080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 33.541443] fff00000c76e6100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 33.541646] ==================================================================
[ 20.672663] ================================================================== [ 20.673642] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330 [ 20.674508] Write of size 1 at addr ffff88810218a00a by task kunit_try_catch/167 [ 20.676077] [ 20.676742] CPU: 0 UID: 0 PID: 167 Comm: kunit_try_catch Tainted: G B N 6.14.0-rc7-next-20250319 #1 PREEMPT(voluntary) [ 20.676880] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.676915] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 20.676997] Call Trace: [ 20.677035] <TASK> [ 20.677069] dump_stack_lvl+0x73/0xb0 [ 20.677188] print_report+0xd1/0x660 [ 20.677225] ? __virt_addr_valid+0x1db/0x2d0 [ 20.677290] ? kasan_addr_to_slab+0x11/0xa0 [ 20.677325] kasan_report+0x104/0x140 [ 20.677353] ? kmalloc_large_oob_right+0x2e9/0x330 [ 20.677389] ? kmalloc_large_oob_right+0x2e9/0x330 [ 20.677430] __asan_report_store1_noabort+0x1b/0x30 [ 20.677461] kmalloc_large_oob_right+0x2e9/0x330 [ 20.677494] ? __pfx_kmalloc_large_oob_right+0x10/0x10 [ 20.677527] ? __schedule+0xd46/0x29c0 [ 20.677558] ? __pfx_read_tsc+0x10/0x10 [ 20.677588] ? ktime_get_ts64+0x86/0x240 [ 20.677625] kunit_try_run_case+0x1b2/0x490 [ 20.677660] ? __pfx_kunit_try_run_case+0x10/0x10 [ 20.677741] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 20.677804] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 20.677858] ? __kthread_parkme+0x82/0x160 [ 20.677892] ? preempt_count_sub+0x50/0x80 [ 20.677928] ? __pfx_kunit_try_run_case+0x10/0x10 [ 20.677961] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 20.677996] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 20.678029] kthread+0x323/0x710 [ 20.678057] ? trace_preempt_on+0x20/0xc0 [ 20.678091] ? __pfx_kthread+0x10/0x10 [ 20.678145] ? _raw_spin_unlock_irq+0x47/0x80 [ 20.678175] ? calculate_sigpending+0x7b/0xa0 [ 20.678206] ? __pfx_kthread+0x10/0x10 [ 20.678237] ret_from_fork+0x41/0x80 [ 20.678267] ? __pfx_kthread+0x10/0x10 [ 20.678298] ret_from_fork_asm+0x1a/0x30 [ 20.678345] </TASK> [ 20.678361] [ 20.697905] The buggy address belongs to the physical page: [ 20.698679] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102188 [ 20.700040] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 20.700537] flags: 0x200000000000040(head|node=0|zone=2) [ 20.701433] page_type: f8(unknown) [ 20.702269] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 20.703191] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 20.704015] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 20.704684] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 20.705537] head: 0200000000000002 ffffea0004086201 00000000ffffffff 00000000ffffffff [ 20.706685] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 20.707565] page dumped because: kasan: bad access detected [ 20.708379] [ 20.708557] Memory state around the buggy address: [ 20.709214] ffff888102189f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.710376] ffff888102189f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.711131] >ffff88810218a000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 20.711642] ^ [ 20.711872] ffff88810218a080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 20.712684] ffff88810218a100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 20.713405] ==================================================================