Date
Dec. 3, 2024, 11:38 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 33.383761] ================================================================== [ 33.385051] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310 [ 33.385982] Read of size 1 at addr ffff800080a57bdf by task kunit_try_catch/240 [ 33.387515] [ 33.387807] CPU: 1 UID: 0 PID: 240 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241203 #1 [ 33.389297] Tainted: [B]=BAD_PAGE, [N]=TEST [ 33.389961] Hardware name: linux,dummy-virt (DT) [ 33.390753] Call trace: [ 33.391635] show_stack+0x20/0x38 (C) [ 33.392111] dump_stack_lvl+0x8c/0xd0 [ 33.393009] print_report+0x2fc/0x5e0 [ 33.393998] kasan_report+0xc8/0x118 [ 33.394821] __asan_report_load1_noabort+0x20/0x30 [ 33.395933] kasan_alloca_oob_left+0x2b8/0x310 [ 33.396662] kunit_try_run_case+0x14c/0x3d0 [ 33.397374] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 33.398174] kthread+0x24c/0x2d0 [ 33.398759] ret_from_fork+0x10/0x20 [ 33.399492] [ 33.399824] The buggy address belongs to stack of task kunit_try_catch/240 [ 33.400791] [ 33.401266] The buggy address belongs to the virtual mapping at [ 33.401266] [ffff800080a50000, ffff800080a59000) created by: [ 33.401266] kernel_clone+0x140/0x788 [ 33.402927] [ 33.403643] The buggy address belongs to the physical page: [ 33.404505] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105935 [ 33.405574] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 33.406803] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 33.407909] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 33.408574] page dumped because: kasan: bad access detected [ 33.409538] [ 33.410043] Memory state around the buggy address: [ 33.410824] ffff800080a57a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 33.412105] ffff800080a57b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 33.413005] >ffff800080a57b80: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb [ 33.413819] ^ [ 33.414582] ffff800080a57c00: cb cb cb cb 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 [ 33.416171] ffff800080a57c80: 04 f2 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 [ 33.416996] ==================================================================
[ 28.691529] ================================================================== [ 28.692371] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x31f/0x380 [ 28.693360] Read of size 1 at addr ffff888102b3fc9f by task kunit_try_catch/260 [ 28.693876] [ 28.694554] CPU: 1 UID: 0 PID: 260 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241203 #1 [ 28.695293] Tainted: [B]=BAD_PAGE, [N]=TEST [ 28.696130] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 28.697177] Call Trace: [ 28.697386] <TASK> [ 28.697552] dump_stack_lvl+0x73/0xb0 [ 28.698147] print_report+0xd1/0x640 [ 28.698480] ? __virt_addr_valid+0x1db/0x2d0 [ 28.698904] ? kasan_addr_to_slab+0x11/0xa0 [ 28.699271] kasan_report+0x102/0x140 [ 28.699878] ? kasan_alloca_oob_left+0x31f/0x380 [ 28.700248] ? kasan_alloca_oob_left+0x31f/0x380 [ 28.701197] __asan_report_load1_noabort+0x18/0x20 [ 28.701788] kasan_alloca_oob_left+0x31f/0x380 [ 28.702335] ? uclamp_rq_dec_id+0x340/0x460 [ 28.702962] ? __schedule+0xc3e/0x2790 [ 28.703353] ? trace_hardirqs_on+0x37/0xe0 [ 28.704015] ? __pfx_kasan_alloca_oob_left+0x10/0x10 [ 28.704462] ? __schedule+0xc3e/0x2790 [ 28.705140] ? __pfx_read_tsc+0x10/0x10 [ 28.705649] ? ktime_get_ts64+0x86/0x230 [ 28.706089] kunit_try_run_case+0x1b3/0x490 [ 28.706760] ? __pfx_kunit_try_run_case+0x10/0x10 [ 28.707363] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 28.707812] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 28.708898] ? __kthread_parkme+0x82/0x160 [ 28.709261] ? preempt_count_sub+0x50/0x80 [ 28.709673] ? __pfx_kunit_try_run_case+0x10/0x10 [ 28.710319] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 28.710849] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 28.711292] kthread+0x257/0x310 [ 28.711630] ? __pfx_kthread+0x10/0x10 [ 28.712484] ret_from_fork+0x41/0x80 [ 28.713146] ? __pfx_kthread+0x10/0x10 [ 28.713862] ret_from_fork_asm+0x1a/0x30 [ 28.714235] </TASK> [ 28.714649] [ 28.715022] The buggy address belongs to stack of task kunit_try_catch/260 [ 28.715627] [ 28.715848] The buggy address belongs to the physical page: [ 28.716295] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b3f [ 28.716879] flags: 0x200000000000000(node=0|zone=2) [ 28.717786] raw: 0200000000000000 ffffea00040acfc8 ffffea00040acfc8 0000000000000000 [ 28.718306] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 28.718895] page dumped because: kasan: bad access detected [ 28.719337] [ 28.719521] Memory state around the buggy address: [ 28.719843] ffff888102b3fb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 28.721075] ffff888102b3fc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 28.721855] >ffff888102b3fc80: ca ca ca ca 00 02 cb cb cb cb cb cb 00 00 00 00 [ 28.722355] ^ [ 28.722610] ffff888102b3fd00: 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00 00 f3 [ 28.723498] ffff888102b3fd80: f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 [ 28.723964] ==================================================================