Date
Nov. 27, 2024, 3:37 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 50.720637] ================================================================== [ 50.722105] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310 [ 50.723176] Read of size 1 at addr ffff800080a97bdf by task kunit_try_catch/240 [ 50.724542] [ 50.725222] CPU: 1 UID: 0 PID: 240 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241127 #1 [ 50.726383] Tainted: [B]=BAD_PAGE, [N]=TEST [ 50.726913] Hardware name: linux,dummy-virt (DT) [ 50.727477] Call trace: [ 50.728022] show_stack+0x20/0x38 (C) [ 50.728760] dump_stack_lvl+0x8c/0xd0 [ 50.729578] print_report+0x2fc/0x5e0 [ 50.730014] kasan_report+0xc8/0x118 [ 50.730636] __asan_report_load1_noabort+0x20/0x30 [ 50.731334] kasan_alloca_oob_left+0x2b8/0x310 [ 50.731839] kunit_try_run_case+0x14c/0x3d0 [ 50.732557] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 50.733129] kthread+0x24c/0x2d0 [ 50.733767] ret_from_fork+0x10/0x20 [ 50.734369] [ 50.734795] The buggy address belongs to stack of task kunit_try_catch/240 [ 50.735998] [ 50.736338] The buggy address belongs to the virtual mapping at [ 50.736338] [ffff800080a90000, ffff800080a99000) created by: [ 50.736338] kernel_clone+0x140/0x788 [ 50.738806] [ 50.739091] The buggy address belongs to the physical page: [ 50.740037] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10613c [ 50.741010] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 50.742125] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 50.742980] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 50.743916] page dumped because: kasan: bad access detected [ 50.744612] [ 50.744931] Memory state around the buggy address: [ 50.745851] ffff800080a97a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 50.747287] ffff800080a97b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 50.748402] >ffff800080a97b80: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb [ 50.749241] ^ [ 50.749999] ffff800080a97c00: cb cb cb cb 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 [ 50.751161] ffff800080a97c80: 04 f2 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 [ 50.751989] ==================================================================
[ 28.094455] ================================================================== [ 28.095405] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x31f/0x380 [ 28.096272] Read of size 1 at addr ffff888102d87c9f by task kunit_try_catch/259 [ 28.096819] [ 28.097095] CPU: 0 UID: 0 PID: 259 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241127 #1 [ 28.098207] Tainted: [B]=BAD_PAGE, [N]=TEST [ 28.098576] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 28.099239] Call Trace: [ 28.099535] <TASK> [ 28.099781] dump_stack_lvl+0x73/0xb0 [ 28.100560] print_report+0xd1/0x640 [ 28.100939] ? __virt_addr_valid+0x1db/0x2d0 [ 28.101274] ? kasan_addr_to_slab+0x11/0xa0 [ 28.101858] kasan_report+0x102/0x140 [ 28.102852] ? kasan_alloca_oob_left+0x31f/0x380 [ 28.103443] ? kasan_alloca_oob_left+0x31f/0x380 [ 28.103809] __asan_report_load1_noabort+0x18/0x20 [ 28.104623] kasan_alloca_oob_left+0x31f/0x380 [ 28.105164] ? __schedule+0xc3e/0x2790 [ 28.105470] ? finish_task_switch.isra.0+0x153/0x700 [ 28.106034] ? finish_task_switch.isra.0+0x156/0x700 [ 28.106480] ? __pfx_kasan_alloca_oob_left+0x10/0x10 [ 28.107125] ? __schedule+0xc3e/0x2790 [ 28.107648] ? __pfx_read_tsc+0x10/0x10 [ 28.107943] ? ktime_get_ts64+0x84/0x230 [ 28.108352] kunit_try_run_case+0x1b3/0x490 [ 28.109077] ? __pfx_kunit_try_run_case+0x10/0x10 [ 28.109746] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 28.110307] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 28.110814] ? __kthread_parkme+0x82/0x160 [ 28.111154] ? preempt_count_sub+0x50/0x80 [ 28.111600] ? __pfx_kunit_try_run_case+0x10/0x10 [ 28.112542] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 28.113286] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 28.113709] kthread+0x257/0x310 [ 28.114044] ? __pfx_kthread+0x10/0x10 [ 28.114840] ret_from_fork+0x41/0x80 [ 28.115417] ? __pfx_kthread+0x10/0x10 [ 28.115698] ret_from_fork_asm+0x1a/0x30 [ 28.116253] </TASK> [ 28.116699] [ 28.116892] The buggy address belongs to stack of task kunit_try_catch/259 [ 28.117741] [ 28.117892] The buggy address belongs to the physical page: [ 28.118762] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102d87 [ 28.119685] flags: 0x200000000000000(node=0|zone=2) [ 28.120610] raw: 0200000000000000 ffffea00040b61c8 ffffea00040b61c8 0000000000000000 [ 28.121515] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 28.122626] page dumped because: kasan: bad access detected [ 28.123317] [ 28.123514] Memory state around the buggy address: [ 28.124229] ffff888102d87b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 28.124700] ffff888102d87c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 28.126198] >ffff888102d87c80: ca ca ca ca 00 02 cb cb cb cb cb cb 00 00 00 00 [ 28.126934] ^ [ 28.127849] ffff888102d87d00: 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00 00 f3 [ 28.129289] ffff888102d87d80: f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 [ 28.130052] ==================================================================