Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp21621rwi; Tue, 18 Oct 2022 13:32:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5yS4O5Tm5+ocmlu+0ZY8nsI3wFpGGw7gwcLFtPJ1GCNOZmI2e6U6DKiezTpFBuD3Omo/Ws X-Received: by 2002:a17:907:1c9b:b0:78d:af10:1a80 with SMTP id nb27-20020a1709071c9b00b0078daf101a80mr3868930ejc.582.1666125161717; Tue, 18 Oct 2022 13:32:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666125161; cv=none; d=google.com; s=arc-20160816; b=SRddUmL/E+IDpudw14K/Gz2UI28VVaIwTlojbsREAQs4v+RSEKBIIqBvuXPJWxm33N 67C5HjM/rCAUwEHoNXoTObvW2sCWkVjUXabmOQ64toRRS6vCKPPR63gSf+pZXAqWyGcY zexCRPB5xacwTX1EGLUNqHbRX5jK2BHZfMT0waPX6SvtrqUuddCEHfAAmnjJNEYFsVYJ Ss9oZPX5wwsCg9gfh4G7RaiSesvcgmE+yB379DVZvma4foDjz6baiBGRZhFFO96Z2jH2 j9BfFXzJJ2jP97rCoF62cFzbvGmDVY4DkLgADCXVpnyNZtlUoeB9Zb4LOkceHqnWEmkB vjog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:references :in-reply-to:subject:cc:to:from:date:mime-version; bh=trWBruIP8YFvUJUvIS7BtktrsOY8YUh82zpk7E2MpXQ=; b=IxbgVl5TVffg1cAWHG1UWifpxtfp/nKCIHbqRYFGk4FPzIqsTzTiwGiy08Wd3AkD21 epxKwZLreOLxqsxV30cJLfOz3ytYEcO7zBQnlPReffdnwKqRDLum8Wokqa6o4ZT78CbX t1dmZILxKIm0LfU3b/+0FOduAgqFJeaR3XNfOj89TrYRMKmnmhikMrRZdv7jQZXpsF+r 92HKLqiLD7brGWzg/w6v5dxHWv1osymL91S/44Ub4vKgjuoTYJkyQRAXyRPGoMQ+XWug 1Hi5cnBuGavGz6I7ML11z9NCJ3HBL0zoD4ej8CKMkua0/dD/HLC3Wzu9HCFfHLZvwjei 1wfQ== ARC-Authentication-Results: i=1; mx.google.com; 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 b6-20020a056402278600b004593671898esi14039721ede.611.2022.10.18.13.32.16; Tue, 18 Oct 2022 13:32:41 -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; 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 S229787AbiJRURh (ORCPT + 99 others); Tue, 18 Oct 2022 16:17:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229543AbiJRURe (ORCPT ); Tue, 18 Oct 2022 16:17:34 -0400 Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 028FD6687B for ; Tue, 18 Oct 2022 13:17:32 -0700 (PDT) Received: (Authenticated sender: joao@overdrivepizza.com) by mail.gandi.net (Postfix) with ESMTPA id 78B4060007; Tue, 18 Oct 2022 20:17:28 +0000 (UTC) MIME-Version: 1.0 Date: Tue, 18 Oct 2022 13:17:28 -0700 From: Joao Moreira To: Peter Zijlstra Cc: Kees Cook , x86@kernel.org, Sami Tolvanen , linux-kernel@vger.kernel.org, Mark Rutland , Josh Poimboeuf Subject: Re: [PATCH] x86/ibt: Implement FineIBT In-Reply-To: References: <202210181020.79AF7F7@keescook> Message-ID: X-Sender: joao@overdrivepizza.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS 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 > >> Tangent: why are these nop instead of 0xcc? These bytes aren't >> executed >> ever are they? > > Because that's what the compiler gets us through > -fpatchable-function-entry. Is it useful to get the compiler to emit 0xcc with -fpatchable-function-entry under any circumstance? I can probably change that quickly if needed/useful.