Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2614089imm; Sun, 24 Jun 2018 00:14:03 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIpE946uhZPnzAi5AViy/H5qQlYTj8LT3V7EmS3iImml2MZ2bsajzG3mIlOnlbINggyQvnG X-Received: by 2002:a17:902:7009:: with SMTP id y9-v6mr7694916plk.217.1529824443848; Sun, 24 Jun 2018 00:14:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529824443; cv=none; d=google.com; s=arc-20160816; b=kUFkg/Yug3YOhJO4stHSucTPR/fMWR5zYS5wkrJ/2xEMSdek6AJeukCK4cK3UoZEMh Cl0jFnqFhhI/P5znQwvwlAkIR3H0B/6HUwoe4StugD/f1pm9j+ZhEftvK/X8Wwo51r45 /lwR49297a3JpusVlRVjeGlvahWMe2Ghc6PTMrLhBohGOejpTwnFNO0M397UOnFEsmKu 9TRm4TPUz7vw4J67e1SI4mWOi2umds7MCPvS31dHN7BCrFyAO+dGYKKEovHa9hfiNK2L a6P9CkbXgvCvxeZGEqTP2EEIeK0d87T/Crq4XSnlwz2gPHRTTvNjW8HMEiOQ1yyCIpqK XHLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=lW2l4/ECKrya0vE/slkNOlQNsEjpFL+mlWoEtoKw8DU=; b=VFKXOXlnAUFhfGkyKD0Dmh3mT7EHOhCHr5bWW/fxR7zhW57x+CObzal4UXMTvry1ob wTbwpOnZNVPbjZzEM8BxWzyl12g7bK8O04unZganDad54m3Gexvmd0LwE3fqmj/65nV6 vRMHZcahP1P+P9AJWH540zFqSiIk1p2bnrVfqM1W6LPVUdodaaCFEUy+cqLc3XZpqTxY GzXA1WfH1cfkc86RtQPXdNtemKZ6s/F5szdBjzLxhd+/wIUgq4Rg8eLxWaRtTHxImzvS 6R/BpdtHTqz3OHE+EMlFb36nInoYJrijlMnLlIcVUdSe+htPdSqlQo31WvNFH8t0/lvg uNAw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b12-v6si9165903pgn.308.2018.06.24.00.13.49; Sun, 24 Jun 2018 00:14:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751859AbeFXHNJ (ORCPT + 99 others); Sun, 24 Jun 2018 03:13:09 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:44722 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750737AbeFXHNH (ORCPT ); Sun, 24 Jun 2018 03:13:07 -0400 Received: from p4fea482e.dip0.t-ipconnect.de ([79.234.72.46] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fWzCO-0002f1-9O; Sun, 24 Jun 2018 09:12:36 +0200 Date: Sun, 24 Jun 2018 09:12:35 +0200 (CEST) From: Thomas Gleixner To: Ingo Molnar cc: Borislav Petkov , linux-crypto@vger.kernel.org, Mike Galbraith , Alexey Dobriyan , torvalds@linux-foundation.org, jpoimboe@redhat.com, luto@kernel.org, peterz@infradead.org, brgerst@gmail.com, hpa@zytor.com, linux-kernel@vger.kernel.org, dvlasenk@redhat.com, h.peter.anvin@intel.com, linux-tip-commits , Herbert Xu Subject: Re: [PATCH] x86/crypto: Add missing RETs In-Reply-To: <20180624071105.GA29407@gmail.com> Message-ID: References: <20180507213755.GA32406@avx2> <1529235613.4572.7.camel@gmx.de> <20180617120012.GB16877@zn.tnic> <1529242717.4472.3.camel@gmx.de> <1529244178.4674.1.camel@gmx.de> <20180617194747.GA21160@zn.tnic> <1529289279.31745.3.camel@gmx.de> <20180623103622.GA2760@zn.tnic> <20180624071105.GA29407@gmail.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 24 Jun 2018, Ingo Molnar wrote: > * Borislav Petkov wrote: > > > Lemme send a proper patch now... > > > > --- > > From: Borislav Petkov > > Date: Sun, 17 Jun 2018 13:57:42 +0200 > > Subject: [PATCH] x86/crypto: Add missing RETs > > > > Add explicit RETs to the tail calls of AEGIS and MORUS crypto algorithms > > otherwise they run into INT3 padding due to > > > > 51bad67ffbce ("x86/asm: Pad assembly functions with INT3 instructions") > > > > leading to spurious debug exceptions. > > > > Mike Galbraith took care of all the remaining callsites. > > Note that 51bad67ffbce has been zapped because it caused too many problems like > this, but the explicit RETs make sense nevertheless. When applying the patch > please don't include the SHA1 of the non-upstream (and probably never-upstream) > commit. We should really have something like that exactly to catch cases like this. Thanks, tglx