Date
Nov. 27, 2024, 3:37 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 50.760680] ================================================================== [ 50.761837] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2e4/0x348 [ 50.762871] Read of size 1 at addr ffff800080a87bea by task kunit_try_catch/242 [ 50.764162] [ 50.764597] CPU: 1 UID: 0 PID: 242 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241127 #1 [ 50.766286] Tainted: [B]=BAD_PAGE, [N]=TEST [ 50.766891] Hardware name: linux,dummy-virt (DT) [ 50.767535] Call trace: [ 50.768042] show_stack+0x20/0x38 (C) [ 50.768679] dump_stack_lvl+0x8c/0xd0 [ 50.769520] print_report+0x2fc/0x5e0 [ 50.770114] kasan_report+0xc8/0x118 [ 50.770710] __asan_report_load1_noabort+0x20/0x30 [ 50.771361] kasan_alloca_oob_right+0x2e4/0x348 [ 50.772059] kunit_try_run_case+0x14c/0x3d0 [ 50.772700] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 50.773546] kthread+0x24c/0x2d0 [ 50.774334] ret_from_fork+0x10/0x20 [ 50.774957] [ 50.775490] The buggy address belongs to stack of task kunit_try_catch/242 [ 50.776509] [ 50.776818] The buggy address belongs to the virtual mapping at [ 50.776818] [ffff800080a80000, ffff800080a89000) created by: [ 50.776818] kernel_clone+0x140/0x788 [ 50.779051] [ 50.779538] The buggy address belongs to the physical page: [ 50.780279] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106149 [ 50.781379] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 50.782163] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 50.783111] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 50.784461] page dumped because: kasan: bad access detected [ 50.785639] [ 50.786078] Memory state around the buggy address: [ 50.786693] ffff800080a87a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 50.787670] ffff800080a87b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 50.788645] >ffff800080a87b80: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb [ 50.789720] ^ [ 50.790747] ffff800080a87c00: cb cb cb cb 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 [ 50.791562] ffff800080a87c80: 04 f2 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 [ 50.792367] ==================================================================
[ 28.136889] ================================================================== [ 28.137951] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x328/0x390 [ 28.138566] Read of size 1 at addr ffff888102d67caa by task kunit_try_catch/261 [ 28.139355] [ 28.139661] CPU: 1 UID: 0 PID: 261 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241127 #1 [ 28.140762] Tainted: [B]=BAD_PAGE, [N]=TEST [ 28.141588] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 28.142829] Call Trace: [ 28.143471] <TASK> [ 28.143679] dump_stack_lvl+0x73/0xb0 [ 28.144585] print_report+0xd1/0x640 [ 28.145117] ? __virt_addr_valid+0x1db/0x2d0 [ 28.145635] ? kasan_addr_to_slab+0x11/0xa0 [ 28.146302] kasan_report+0x102/0x140 [ 28.146711] ? kasan_alloca_oob_right+0x328/0x390 [ 28.147550] ? kasan_alloca_oob_right+0x328/0x390 [ 28.148356] __asan_report_load1_noabort+0x18/0x20 [ 28.149155] kasan_alloca_oob_right+0x328/0x390 [ 28.149595] ? trace_event_raw_event_sched_wake_idle_without_ipi+0x160/0x180 [ 28.150308] ? __schedule+0xc3e/0x2790 [ 28.150905] ? trace_hardirqs_on+0x37/0xe0 [ 28.151879] ? __pfx_kasan_alloca_oob_right+0x10/0x10 [ 28.152344] ? __schedule+0xc3e/0x2790 [ 28.152640] ? __pfx_read_tsc+0x10/0x10 [ 28.153498] ? ktime_get_ts64+0x84/0x230 [ 28.153918] kunit_try_run_case+0x1b3/0x490 [ 28.154463] ? __pfx_kunit_try_run_case+0x10/0x10 [ 28.154951] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 28.155637] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 28.156106] ? __kthread_parkme+0x82/0x160 [ 28.156628] ? preempt_count_sub+0x50/0x80 [ 28.157439] ? __pfx_kunit_try_run_case+0x10/0x10 [ 28.157975] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 28.158791] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 28.159464] kthread+0x257/0x310 [ 28.159748] ? __pfx_kthread+0x10/0x10 [ 28.160286] ret_from_fork+0x41/0x80 [ 28.161017] ? __pfx_kthread+0x10/0x10 [ 28.161303] ret_from_fork_asm+0x1a/0x30 [ 28.162038] </TASK> [ 28.162449] [ 28.162703] The buggy address belongs to stack of task kunit_try_catch/261 [ 28.163589] [ 28.163852] The buggy address belongs to the physical page: [ 28.164300] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102d67 [ 28.165285] flags: 0x200000000000000(node=0|zone=2) [ 28.165768] raw: 0200000000000000 ffffea00040b59c8 ffffea00040b59c8 0000000000000000 [ 28.166547] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 28.167455] page dumped because: kasan: bad access detected [ 28.167847] [ 28.168429] Memory state around the buggy address: [ 28.169181] ffff888102d67b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 28.169797] ffff888102d67c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 28.170671] >ffff888102d67c80: ca ca ca ca 00 02 cb cb cb cb cb cb 00 00 00 00 [ 28.171474] ^ [ 28.172259] ffff888102d67d00: 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00 00 f3 [ 28.173123] ffff888102d67d80: f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 [ 28.173718] ==================================================================