Date
Nov. 28, 2024, 2:36 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 29.606831] ================================================================== [ 29.607954] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8 [ 29.608803] Write of size 1 at addr fff00000c64e200a by task kunit_try_catch/134 [ 29.609526] [ 29.609877] CPU: 1 UID: 0 PID: 134 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241128 #1 [ 29.610872] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.611439] Hardware name: linux,dummy-virt (DT) [ 29.611936] Call trace: [ 29.612855] show_stack+0x20/0x38 (C) [ 29.613730] dump_stack_lvl+0x8c/0xd0 [ 29.614276] print_report+0x118/0x5e0 [ 29.614867] kasan_report+0xc8/0x118 [ 29.615435] __asan_report_store1_noabort+0x20/0x30 [ 29.616052] kmalloc_large_oob_right+0x278/0x2b8 [ 29.616703] kunit_try_run_case+0x14c/0x3d0 [ 29.617561] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.618242] kthread+0x24c/0x2d0 [ 29.618709] ret_from_fork+0x10/0x20 [ 29.619300] [ 29.619682] The buggy address belongs to the physical page: [ 29.620318] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1064e0 [ 29.621476] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 29.622391] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 29.623103] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 29.624024] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 29.624888] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 29.625740] head: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 29.626644] head: 0bfffe0000000002 ffffc1ffc3193801 ffffffffffffffff 0000000000000000 [ 29.627732] head: 0000000000000004 0000000000000000 00000000ffffffff 0000000000000000 [ 29.628583] page dumped because: kasan: bad access detected [ 29.630250] [ 29.630580] Memory state around the buggy address: [ 29.631265] fff00000c64e1f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 29.632061] fff00000c64e1f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 29.632914] >fff00000c64e2000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 29.633959] ^ [ 29.634408] fff00000c64e2080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 29.635291] fff00000c64e2100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 29.636037] ==================================================================
[ 20.348877] ================================================================== [ 20.350029] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2eb/0x340 [ 20.350965] Write of size 1 at addr ffff888102bba00a by task kunit_try_catch/154 [ 20.351688] [ 20.352249] CPU: 0 UID: 0 PID: 154 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241128 #1 [ 20.353457] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.354017] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 20.354961] Call Trace: [ 20.355499] <TASK> [ 20.355692] dump_stack_lvl+0x73/0xb0 [ 20.356173] print_report+0xd1/0x640 [ 20.356659] ? __virt_addr_valid+0x1db/0x2d0 [ 20.357140] ? kasan_addr_to_slab+0x11/0xa0 [ 20.357645] kasan_report+0x102/0x140 [ 20.357923] ? kmalloc_large_oob_right+0x2eb/0x340 [ 20.358670] ? kmalloc_large_oob_right+0x2eb/0x340 [ 20.359383] __asan_report_store1_noabort+0x1b/0x30 [ 20.359897] kmalloc_large_oob_right+0x2eb/0x340 [ 20.360507] ? __pfx_kmalloc_large_oob_right+0x10/0x10 [ 20.361059] ? __schedule+0xc3e/0x2790 [ 20.361636] ? __pfx_read_tsc+0x10/0x10 [ 20.362031] ? ktime_get_ts64+0x84/0x230 [ 20.362677] kunit_try_run_case+0x1b3/0x490 [ 20.363386] ? __pfx_kunit_try_run_case+0x10/0x10 [ 20.364145] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 20.364574] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 20.365399] ? __kthread_parkme+0x82/0x160 [ 20.366102] ? preempt_count_sub+0x50/0x80 [ 20.366713] ? __pfx_kunit_try_run_case+0x10/0x10 [ 20.367204] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 20.367778] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 20.368920] kthread+0x257/0x310 [ 20.369324] ? __pfx_kthread+0x10/0x10 [ 20.369789] ret_from_fork+0x41/0x80 [ 20.370193] ? __pfx_kthread+0x10/0x10 [ 20.370585] ret_from_fork_asm+0x1a/0x30 [ 20.371133] </TASK> [ 20.371581] [ 20.371828] The buggy address belongs to the physical page: [ 20.372615] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102bb8 [ 20.373257] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 20.373976] flags: 0x200000000000040(head|node=0|zone=2) [ 20.374658] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 20.375077] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 20.376064] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 20.376873] head: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 20.377661] head: 0200000000000002 ffffea00040aee01 ffffffffffffffff 0000000000000000 [ 20.378309] head: 0000000000000004 0000000000000000 00000000ffffffff 0000000000000000 [ 20.378967] page dumped because: kasan: bad access detected [ 20.379724] [ 20.380063] Memory state around the buggy address: [ 20.380803] ffff888102bb9f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.381959] ffff888102bb9f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.382724] >ffff888102bba000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 20.383567] ^ [ 20.384023] ffff888102bba080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 20.385291] ffff888102bba100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 20.385782] ==================================================================