Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3473599rwi; Sun, 16 Oct 2022 11:32:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5zb1LK13HUCgeOT7RYQUe/d5eLIADK1RTH9k2qdVWxDdCszx1YRUoqCllLzKIQmn9Ii2bT X-Received: by 2002:a17:906:58d6:b0:783:a081:7a20 with SMTP id e22-20020a17090658d600b00783a0817a20mr5973753ejs.357.1665945149189; Sun, 16 Oct 2022 11:32:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665945149; cv=none; d=google.com; s=arc-20160816; b=hgjy4mom/G13+Yl4hlV9cNjLGn7ZShpXR1D0hdqozU+NlOnYdAZAiARrwVIDGXKalA XN/NrF5CT5MI9VxiLdKZC2l86k7FBJ1bNTYaY3EhEpIuAHLOraQZkVhcCjbvRpTbECNR AyCcjRJU6QOSwCl4Dfh84aOyg79RrwmxaNlz3UgdkbcgU2rE/A0InvJ2kvjIIbHpRvGE dNNScb1MV2MbPY8rGoHytkR09VO97bvay9ypWNqaZUGApkFYpCLMtvcDbIPk55NCSi5U FSDZevSXaDlEcEPg0gJ3VLfijMdl39E0V/s3Svi1lW1zIKrRMBKc8TtRlxUkUx9Vo5I8 aPRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=kyZPi0CODjKqP7GvMuJrvfFf6QaLGZyTpf56scjnF7c=; b=DUvXTDKe6D1IDutSqFIIwWcdJkiOEOMtkYu+5+oAGNSTvzc2TbQ0gr3ZwCctXf1dcG m50V0YMIQUGDhSZ/bfgBNUf9flCcpQ2T/iVepbTCmvKpOfhSYcN7C13ryEyVObr9nxYV DyR011TqRn1/gXWi8roFKJjJICEaGymVMvd3QsESK4RHxE7TsdanWMHnR3rFVkzi6fip Qm+zo862yFfB5nZh7Jcj6+K/iaWvCDWtHGlJ/utlFP4o03nZNG2fM9KssUOjaXX4NBOq PsEe7zcTmQQvfAwVPcDL/3qhmV1EyA1DkMo6XHtKqpIMNZuzKnNAsmqjf96b8DcttEtN ZhtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=qyETHlW6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y17-20020a50ce11000000b0045cda8e8383si6860694edi.542.2022.10.16.11.32.02; Sun, 16 Oct 2022 11:32:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=qyETHlW6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229763AbiJPSIK (ORCPT + 99 others); Sun, 16 Oct 2022 14:08:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229579AbiJPSII (ORCPT ); Sun, 16 Oct 2022 14:08:08 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48D9115FF5 for ; Sun, 16 Oct 2022 11:08:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=kyZPi0CODjKqP7GvMuJrvfFf6QaLGZyTpf56scjnF7c=; b=qyETHlW6Of9r6Tdyvc70SL19r9 d1/f3ez8xtxe2o4+9eg1kONRNpxEb6rfJaa8PpoJ58Yh0SWDoTsS8Im7nvUs110tu583SwfyLUg4d aD9ZmKTgiNuBeU+r1jQzmCsrEEjaMi4iM20uJXQUbmTerXMnLOwwNlk/v7+1OfdNsyyh8o1M/NQ3O nDvYhMoZ3kk7pLsD5g4348mVrrQbMJFY6jL609Wk1bheFEVhBMiSxbcMlh1CerkX0EFnxqjoZ7XOy +ygWwXf8eORaup/w6zE3/Fw5mhjt6dRthlk4CgCv6oK2Gi5dK6nKGqTPexgf30USGIDby1824/U4i A+4j1BUg==; Received: from [2601:1c2:d80:3110::a2e7] by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1ok83P-0030U1-5c; Sun, 16 Oct 2022 18:08:03 +0000 Message-ID: Date: Sun, 16 Oct 2022 11:08:02 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [6.0.0] RIP: 0010:clmul_polyval_update+0x3e9/0x5d0 [polyval_clmulni] Content-Language: en-US To: Bruno Goncalves , LKML Cc: CKI Project , Nathan Huckleberry , Herbert Xu References: From: Randy Dunlap In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [adding maintainers] Bruno- is this still an issue? On 10/3/22 00:16, Bruno Goncalves wrote: > Hello, > > recently we are hitting the following issue when booting using kernel > with debug options enabled: > > [ 126.821761] CPU: 1 PID: 296 Comm: cryptomgr_test Not tainted 6.0.0 #1 > [ 126.824021] Hardware name: Red Hat KVM, BIOS 1.15.0-1.el9 04/01/2014 > [ 126.825721] RIP: 0010:clmul_polyval_update+0x3e9/0x5d0 [polyval_clmulni] > [ 126.827045] Code: df 11 c4 41 31 ef fb 48 83 c2 08 0f 84 eb 01 00 > 00 48 89 d0 48 c1 e0 04 48 81 c7 80 00 00 00 48 29 c7 0f 10 06 66 41 > 0f ef c7 <0f> 28 0f c4 63 71 44 f0 01 c4 e3 71 44 d0 10 c4 63 71 44 e0 > 00 c4 This is in 'partial_stride' handling at the 'movaps' instruction: 11: 48 89 d0 mov %rdx,%rax 14: 48 c1 e0 04 shl $0x4,%rax 18: 48 81 c7 80 00 00 00 add $0x80,%rdi 1f: 48 29 c7 sub %rax,%rdi 22: 0f 10 06 movups (%rsi),%xmm0 25: 66 41 0f ef c7 pxor %xmm15,%xmm0 2a:* 0f 28 0f movaps (%rdi),%xmm1 <-- trapping instruction > [ 126.831535] RSP: 0018:ffff88810ed779d8 EFLAGS: 00010282 > [ 126.832957] RAX: 0000000000000030 RBX: 0000000000000030 RCX: ffff88810ede19e8 > [ 126.834907] RDX: 0000000000000003 RSI: ffff8881094b8000 RDI: ffff88811483c408 > [ 126.836554] RBP: ffff8881094b8000 R08: ffffffffc0300835 R09: ffff88810ede19e8 > [ 126.838529] R10: ffffed1021dbc33f R11: 0000000000000000 R12: 0000000000000030 > [ 126.840526] R13: 0000000000000003 R14: ffff88810ede19e8 R15: ffff88810ede19e0 > [ 126.842702] FS: 0000000000000000(0000) GS:ffff888193d00000(0000) > knlGS:0000000000000000 > [ 126.844574] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > [ 126.846796] CR2: 0000564f48e04178 CR3: 000000010be88002 CR4: 0000000000370ee0 > [ 126.848934] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > [ 126.850913] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > [ 126.852879] Call Trace: > [ 126.853703] > [ 126.854436] polyval_x86_update+0x102/0x1e0 [polyval_clmulni] > [ 126.856092] test_shash_vec_cfg+0x523/0x9d0 > [ 126.857360] ? alg_test_aead+0x170/0x170 > [ 126.858682] ? pointer+0x6a0/0x6a0 > [ 126.859752] ? ___slab_alloc+0x910/0xf70 > [ 126.860950] ? __alg_test_hash.constprop.0+0x200/0x430 > [ 126.862140] ? __kmalloc+0x64/0x380 > [ 126.863233] ? sprintf+0xb3/0xe0 > [ 126.864159] ? rcu_read_lock_sched_held+0x3f/0x80 > [ 126.865560] ? trace_kmalloc+0x33/0xf0 > [ 126.866716] __alg_test_hash.constprop.0+0x2e7/0x430 > [ 126.867995] ? test_ahash_vec_cfg+0xca0/0xca0 > [ 126.869389] ? lockdep_hardirqs_on_prepare+0x230/0x230 > [ 126.870906] ? lockdep_hardirqs_on+0x7d/0x100 > [ 126.872221] ? alg_test_hash+0x8e/0x130 > [ 126.873398] alg_test+0x60d/0x7d0 > [ 126.874463] ? alloc_cipher_test_sglists+0xb0/0xb0 > [ 126.875867] ? lock_release+0x233/0x470 > [ 126.876726] ? __kthread_parkme+0x65/0xf0 > [ 126.877654] ? reacquire_held_locks+0x270/0x270 > [ 126.878984] ? mark_held_locks+0x24/0x90 > [ 126.879985] ? preempt_count_sub+0xb7/0x100 > [ 126.881260] ? crypto_acomp_scomp_free_ctx+0x70/0x70 > [ 126.882649] cryptomgr_test+0x36/0x60 > [ 126.883786] kthread+0x17e/0x1b0 > [ 126.884564] ? kthread_complete_and_exit+0x20/0x20 > [ 126.885975] ret_from_fork+0x22/0x30 > [ 126.887086] > [ 126.887858] Modules linked in: polyval_clmulni(+) polyval_generic > virtio_blk(+) ghash_clmulni_intel floppy virtio_console serio_raw > ata_generic pata_acpi qemu_fw_cfg > > > full console log: > https://s3.us-east-1.amazonaws.com/arr-cki-prod-datawarehouse-public/datawarehouse-public/2022/10/02/redhat:656405029/build_x86_64_redhat:656405029_x86_64_debug/tests/4/results_0001/console.log/console.log > > test logs: https://datawarehouse.cki-project.org/kcidb/tests/5344697 > cki issue tracker: https://datawarehouse.cki-project.org/issue/1626 > > kernel config: https://s3.amazonaws.com/arr-cki-prod-trusted-artifacts/trusted-artifacts/656405029/build%20x86_64%20debug/3116060967/artifacts/kernel-mainline.kernel.org-redhat_656405029_x86_64_debug.config > kernel tarball: > https://s3.amazonaws.com/arr-cki-prod-trusted-artifacts/trusted-artifacts/656405029/publish%20x86_64%20debug/3116060972/artifacts/kernel-mainline.kernel.org-redhat_656405029_x86_64_debug.tar.gz > > We didn't bisect, but the first commit we tested that we hit the > problem is https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=46452d3786a82bd732ba73fb308ae5cbe4e1e591 > > The last commit we tested and didn't hit the problem is > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a1375562c0a87f0fa2eaf3e8ce15824696d4170a > > Thanks, > Bruno Goncalves > -- ~Randy