Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp107418pxb; Sat, 9 Oct 2021 15:03:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCljdWOdSMaaGid1y+Q+CWxHc28BxNzzwlgRnI1OT7OrxG+PcHE9mXXP51bYXVTcwwhgdA X-Received: by 2002:a17:90a:353:: with SMTP id 19mr20454019pjf.83.1633816982634; Sat, 09 Oct 2021 15:03:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633816982; cv=none; d=google.com; s=arc-20160816; b=J5sD+gBih0a5e7nQ0Ypy0lAk/4LwAGe5/sZJTJKPFHS4zr2gGxO2S5c+TLBcZZxZfB wdv74GR2l90f7Rz5yKUNkp4/pqbm0pYIrHktindkepxsOCRuhhrAMg+bAYfYJd9JE69s iNslMnz+OhiaI6CpIjickrzAaeB/XcZWAmd+T5r62fGtvG4V+Ea7d1el/YPkgLIWDAL3 2eARQUuzv1Lz+6rgi57ic+w4rYglQ3l4etCKj89XjNyBqMuUh7wR0a7+FitXNl3AVA9P wsNAI7B48eeIUxwmVoiE03+pFsXzlAhV6gAIJ+dgFcpauKzP4fF/Ee6PusCcP9a34sb7 ns9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:subject:from :references:cc:to:dkim-signature; bh=b1gDeoyFFjueGeDbhYnLXfPNZfGzGvVZcO07w2TBsnc=; b=z1qyBcEIG+TF5wKW9k3rgtL7wtuiKIAI9kPRwmPK9H0ITXH6ggFMqFSTA6OPTTk6gD LZKPKaZSJqPMhDla2jsHJf5UpdTzef9a4kWX4JxNokSeiRJi01eQeSXXS4+vCYnod+uu dNbeLG85sAAs2EX26fGV9XgsAOjSNwI5LEoXh50jokIseQ46EkHNcWVLwHP3kV5+UoaJ NhpAHhap/TtjViR0yKygtLP9Z9OBRg7aKXMx8uH7Ru9XwOYPJLn/sWg6f9Khpk6InXiu ruTWJuxymlyrJq7TIictVTHr8HRliF5bsTHk6+1Rmm61uNbIv2xyn7cPsAex8MufXOjT pmcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=HR5LFyop; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q23si4181412pgv.338.2021.10.09.15.02.49; Sat, 09 Oct 2021 15:03:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=HR5LFyop; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231152AbhJIV6V (ORCPT + 99 others); Sat, 9 Oct 2021 17:58:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230116AbhJIV6U (ORCPT ); Sat, 9 Oct 2021 17:58:20 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23E39C061570 for ; Sat, 9 Oct 2021 14:56:23 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id u18so41698250wrg.5 for ; Sat, 09 Oct 2021 14:56:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:cc:references:from:subject:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=b1gDeoyFFjueGeDbhYnLXfPNZfGzGvVZcO07w2TBsnc=; b=HR5LFyopfMLQTtwI2W9ceSrNwVNW9uTQlSPvJ6JVrkjPx683/wORGtwgmBa9W05ZXN RfN6saYAwOjDmArTyiNUDNnumuQIBktxQHV3TmWxSQnID0vOiRusWFB0ggLoi+o/VnPF QY3K86MF4CFJELyr+8zGa2y2axxLVA7qx4sDtxvpaVnVqHgGWNDowmRcS/Syrz0kLW4+ E5E2PH2WvMI4SjtCRDg74WE9FDuscG29Ie7qn7rbPjdoMQzpFV8vFuxydXpnbuQ6ajqX Ua3Oe4tDtL1Sh+gHn5bsBseNUvdhXEopEnYs+kCQfshzbqyYbsD57Wqo3G6y8MylpBWR pdlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:to:cc:references:from:subject:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=b1gDeoyFFjueGeDbhYnLXfPNZfGzGvVZcO07w2TBsnc=; b=ZwjQ/sChONKaKocvksG0yrC833H6Q+KDxKHimc6AIJ42rgH/99KCRrL0sMgFWuxWBe 2LToGnMbbg7DzGzvMn44juincvrmddQzfd/KDjYgFWK7Yxy5Up7m9pWPMvv4UkhAiMhF +XERpRiTjMPM+i1EJTLpkJvE2nVQIqULHkJSoYupJgjQX+76Lc+O4P+WDTk11B0rTyof 7nboNhFG/zRh3nl3C0SMRRM72egZ48ecw58pT8x1d4KG/xUi1OCCgEtjihRz1rFaq1V9 043P2G+3HgmuxyXBtpJRGTak9u9RNrZhqrV7VZ/yiRwcRIrvfxUBkr6jZQuI1IW19qQN ynNw== X-Gm-Message-State: AOAM531ASMmF1wy7PFkd9P/pwcjmUHjMBtTsYMD7znBZHz9ScV5eBNWu YaUkJVUmZtdN+BijbaEOH6M= X-Received: by 2002:adf:ab58:: with SMTP id r24mr13478159wrc.200.1633816581659; Sat, 09 Oct 2021 14:56:21 -0700 (PDT) Received: from [192.168.0.130] (p4fed022d.dip0.t-ipconnect.de. [79.237.2.45]) by smtp.gmail.com with ESMTPSA id q10sm3165629wmq.12.2021.10.09.14.56.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 09 Oct 2021 14:56:21 -0700 (PDT) To: oliver.sang@intel.com Cc: andriy.shevchenko@linux.intel.com, linux-kernel@vger.kernel.org, lkp@intel.com, lkp@lists.01.org, vkoul@kernel.org References: <20210918150130.GA30982@xsang-OptiPlex-9020> From: Oliver Urbann Subject: Re: [dmaengine] fe364a7d95: UBSAN:array-index-out-of-bounds_in_drivers/acpi/acpica/dswexec.c Message-ID: <246a5a73-6b85-98b3-3830-cfc46030c044@gmail.com> Date: Sat, 9 Oct 2021 23:56:20 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20210918150130.GA30982@xsang-OptiPlex-9020> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, this actually crashes s2idle e.g. on Surface Book 1 and Surface Pro 4: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D [=C2=A0 294.673738] UBSAN: array-index-out-of-bounds in=20 drivers/acpi/acpica/dswexec.c:401:12 [=C2=A0 294.673748] index -1 is out of range for type 'acpi_operand_objec= t *[9]' [=C2=A0 294.673755] CPU: 3 PID: 6477 Comm: systemd-sleep Tainted: G=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=20 C=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 5.14.9-surface-ubsan-test #1 [=C2=A0 294.673762] Hardware name: Microsoft Corporation Surface Book/Sur= face=20 Book, BIOS 92.3748.768 05.04.2021 [=C2=A0 294.673765] Call Trace: [=C2=A0 294.673771]=C2=A0 dump_stack_lvl+0x4a/0x5f [=C2=A0 294.673784]=C2=A0 dump_stack+0x10/0x12 [=C2=A0 294.673792]=C2=A0 ubsan_epilogue+0x9/0x50 [=C2=A0 294.673798]=C2=A0 __ubsan_handle_out_of_bounds+0x6f/0x80 [=C2=A0 294.673805]=C2=A0 acpi_ds_exec_end_op+0x1a0/0x79a [=C2=A0 294.673812]=C2=A0 acpi_ps_parse_loop+0x7f5/0x8cc [=C2=A0 294.673820]=C2=A0 acpi_ps_parse_aml+0x1bb/0x55d [=C2=A0 294.673828]=C2=A0 acpi_ps_execute_method+0x20f/0x2d1 [=C2=A0 294.673836]=C2=A0 acpi_ns_evaluate+0x34d/0x4ef [=C2=A0 294.673841]=C2=A0 acpi_evaluate_object+0x210/0x3da [=C2=A0 294.673848]=C2=A0 acpi_evaluate_dsm+0xaa/0x120 [=C2=A0 294.673857]=C2=A0 ? flush_workqueue+0x19b/0x3e0 [=C2=A0 294.673864]=C2=A0 acpi_sleep_run_lps0_dsm+0x5a/0xc0 [=C2=A0 294.673873]=C2=A0 acpi_s2idle_restore_early+0x62/0x110 [=C2=A0 294.673881]=C2=A0 ? acpi_s2idle_restore_early+0x62/0x110 [=C2=A0 294.673887]=C2=A0 suspend_devices_and_enter+0x2a1/0x800 [=C2=A0 294.673895]=C2=A0 pm_suspend+0x2e5/0x420 [=C2=A0 294.673900]=C2=A0 state_store+0x85/0xf0 [=C2=A0 294.673905]=C2=A0 kobj_attr_store+0x12/0x20 [=C2=A0 294.673913]=C2=A0 sysfs_kf_write+0x3c/0x50 [=C2=A0 294.673921]=C2=A0 kernfs_fop_write_iter+0x13c/0x1b0 [=C2=A0 294.673927]=C2=A0 new_sync_write+0x117/0x1b0 [=C2=A0 294.673937]=C2=A0 vfs_write+0x1ea/0x250 [=C2=A0 294.673945]=C2=A0 ksys_write+0xa7/0xe0 [=C2=A0 294.673953]=C2=A0 __x64_sys_write+0x1a/0x20 [=C2=A0 294.673961]=C2=A0 do_syscall_64+0x5b/0xb0 [=C2=A0 294.673967]=C2=A0 ? syscall_exit_to_user_mode+0x2a/0x40 [=C2=A0 294.673974]=C2=A0 ? do_syscall_64+0x67/0xb0 [=C2=A0 294.673979]=C2=A0 ? do_syscall_64+0x67/0xb0 [=C2=A0 294.673983]=C2=A0 ? asm_exc_page_fault+0x8/0x30 [=C2=A0 294.673992]=C2=A0 entry_SYSCALL_64_after_hwframe+0x44/0xae [=C2=A0 294.674000] RIP: 0033:0x7fdd5072c1e7 [=C2=A0 294.674007] Code: 64 89 02 48 c7 c0 ff ff ff ff eb bb 0f 1f 80 00= 00=20 00 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 01 00 00 00 0f=20 05 <48> 3d 00 f0 ff ff 77 51 c3 48 83 ec 28 48 89 54 24 18 48 89 74 24 [=C2=A0 294.674012] RSP: 002b:00007fffdcfda2b8 EFLAGS: 00000246 ORIG_RAX:= =20 0000000000000001 [=C2=A0 294.674019] RAX: ffffffffffffffda RBX: 0000000000000004 RCX:=20 00007fdd5072c1e7 [=C2=A0 294.674023] RDX: 0000000000000004 RSI: 00007fffdcfda370 RDI:=20 0000000000000004 [=C2=A0 294.674026] RBP: 00007fffdcfda370 R08: 0000000000000004 R09:=20 000000000000000d [=C2=A0 294.674029] R10: 0000560dbe6e1128 R11: 0000000000000246 R12:=20 0000000000000004 [=C2=A0 294.674032] R13: 0000560dc03a72d0 R14: 0000000000000004 R15:=20 00007fdd508078a0 [=C2=A0 294.674038]=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D Best regards, Oliver