Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp968019yba; Thu, 9 May 2019 08:39:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqx0vkKihBoHva+bkVJ2FQmjmsJvBkuZK/82mpPJNq7KlpAHW1y8a01SzFDs5PF1U1N/xwxf X-Received: by 2002:a62:fb0f:: with SMTP id x15mr6290642pfm.30.1557416342021; Thu, 09 May 2019 08:39:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557416342; cv=none; d=google.com; s=arc-20160816; b=WR1yqY/dIzxoyCiWLEMMDovyLtbWAlmUW+semklILBFOzWON/s+iQ8Typl0g+gVNbX Jcdp4hfRRtei8ZM/MGrki3sh+biD445vXRdwyVFClDWq5694yiWIsCzEzTvYcRAHIVjc cciG9AecUAxOaI28vx12C3gTVHfvrbIv0vI+5ctaQ70aIKBLpmHCEmT/b9VJrIiSTNTk +TqD1J+xnsuWI/aF+ku9fQ9SCQNnmHtdE0DiaIEVdSd79s5BTQrN7qwhjahQdXMzWk1e /jmqw/SnqqbsOdRayUBgmJtyLFTxceOXkav6WyPAs+m9Ms043VZWPIZGi8txWtOhZYHf O5nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=5YwQ7pSduzStb02SylGKVrjZm5E2uXA+GvWIb5JRr7I=; b=LEzLKay6xjBnmsK4du9QghW8nSeMu/dLPU4yzf+kHtyGpYF+JfKTMfn/9l7EZJYeTh u6BRz2y29M5wE3xq+xDmt10X7MADsVl601aj3nZOeYiroEklJ6fda0H75P+93orIq6Im ff4R9yqUsaQ/jE9KZTI3oiUjxj4Mo5CgMKcwGQPMll2Ft1Y92alXSsIAT4f6z7sNUVDq zp5s851L1iP3P3tr1pYu4a7fI8CHn7Se2ubeyFqa260/5reXF+WZXTaF36aIZ9g+Qf1L S0ouQRemL8jP4z0QTrOlPX+D+HE7uKzp22RdG3tkntiqfK401a5o2lVU745nMeAcSh24 SlIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=H5YrD2LA; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n16si3211693plp.130.2019.05.09.08.38.40; Thu, 09 May 2019 08:39:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=H5YrD2LA; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726558AbfEIPig (ORCPT + 99 others); Thu, 9 May 2019 11:38:36 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:34619 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726187AbfEIPig (ORCPT ); Thu, 9 May 2019 11:38:36 -0400 Received: by mail-pg1-f193.google.com with SMTP id c13so1424069pgt.1 for ; Thu, 09 May 2019 08:38:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=5YwQ7pSduzStb02SylGKVrjZm5E2uXA+GvWIb5JRr7I=; b=H5YrD2LANg0XDBX7Y8dX3WkFbyNGuKqmc5AwTCh3L8XKM1fCfygAH6ZZiCtp9tqqlD RxH8VecF/mXAPPFyCplZvNSO/9v006AbuWT/n6pPPRhI4nrP96doRX6Xq1znHbO4VVQ/ G3kcSqpeEXJBkxBuWZHB/O1+9AApxfAZUUs9ezP38DJDepTh3xANJ/OLFaHQBMLj9Wm5 MuJG8j7w2G1sbeBewcHXyCRfwk4iMjYXN1tb8k0QAz9IxchlTla8nJbb1BQ7G/YzDMOO Y/KBoLfQw/G64pRnlHf18UE8WP4NpZegiPor/cUFu6kDqVkX1EEz1g1AITn6aA211vqv Dzpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=5YwQ7pSduzStb02SylGKVrjZm5E2uXA+GvWIb5JRr7I=; b=UlS9IQQJKx+ACZlNETbqnNh+r2oFJ7dg3jt5UO7Bn02D8YrNlUAHNlyctA5EogWM/i 1GNMJwFGOTyIWgkpEDS1EvLPw+UzK9sbCNVbxFoi35FgeHAUcVU7ndTUIKh8gca8s0Y/ HiKrOeH0SrfC7UyqsA46tbllcmHwWCPM6SEehg3OtajH/dqKKNBEej+3r6YgU0+UmpT1 zE2IkTVN3Rr3jsjM/RQXS83b6i41n7PulyFvV04D+SVDj/RSZoyzOb6o9/ssjFt59yRW xZS+JZrKGfg7hLnFCcbSo8zRiLglEbMH5focHYENH6OAQgXAIKpJHZtp2BQCqojDNLC6 JKGA== X-Gm-Message-State: APjAAAWUl4lROeFWlufSvZR9N2NDJC1gCETfP5n6sOtFp4YMyAA1EJE8 Dofo19x44F9G7CrIjJXRgNdVEQ== X-Received: by 2002:a62:2b43:: with SMTP id r64mr6112838pfr.210.1557416314921; Thu, 09 May 2019 08:38:34 -0700 (PDT) Received: from google.com ([2620:15c:201:2:ce90:ab18:83b0:619]) by smtp.gmail.com with ESMTPSA id i15sm5711248pfj.167.2019.05.09.08.38.33 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 09 May 2019 08:38:33 -0700 (PDT) Date: Thu, 9 May 2019 08:38:28 -0700 From: Sami Tolvanen To: Eric Biggers Cc: Kees Cook , Herbert Xu , Joao Moreira , Ingo Molnar , Thomas Gleixner , Borislav Petkov , X86 ML , linux-crypto , LKML , Kernel Hardening Subject: Re: [PATCH v3 0/7] crypto: x86: Fix indirect function call casts Message-ID: <20190509153828.GA261205@google.com> References: <20190507161321.34611-1-keescook@chromium.org> <20190507170039.GB1399@sol.localdomain> <20190507215045.GA7528@sol.localdomain> <20190508133606.nsrzthbad5kynavp@gondor.apana.org.au> <20190509020439.GB693@sol.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190509020439.GB693@sol.localdomain> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Wed, May 08, 2019 at 07:04:40PM -0700, Eric Biggers wrote: > And I also asked whether indirect calls to asm code are even allowed > with CFI. IIRC, the AOSP kernels have been patched to remove them from > arm64 At least with clang, indirect calls to stand-alone assembly functions trip CFI checks, which is why Android kernels use static inline stubs to convert these to direct calls instead. Sami