Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp107089lqg; Thu, 29 Feb 2024 22:34:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVK2lNwMa0tlv4nHWV1o985sID4Tgi/4gPnuDrdJyKeMIqZHj+b3nGaf4mifVbvIU+KeBt3BYSLo2e9/VhCkhv19fCW58LGlFbAx+PNQg== X-Google-Smtp-Source: AGHT+IElfT3Z97AG4sKdfD8/fizrOYMl6sMWgD/hdRSmduOUbGr5O+pL/wRIhCFzR+ymww8VeiKK X-Received: by 2002:a05:6a00:1898:b0:6e5:5872:2aa2 with SMTP id x24-20020a056a00189800b006e558722aa2mr1129676pfh.14.1709274840046; Thu, 29 Feb 2024 22:34:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709274840; cv=pass; d=google.com; s=arc-20160816; b=YAjLf3lYZpZuI74iX6ytShu7YTDop6fEAOEra5q9dBSDqbrbVr5CDOfa8frTW4kYWm BiCIIEj3FXXEGgdhO8zzxCF6n4rDmM1G9CnZiO05dX2LeBqtOF3UYWfZsOnuhzgD9QDz thoDTHl/h32PJDxr3KBCdGZgtuGYZnXYD0kanbKyQG3BhyHMGSn3/kjI2klorIz2diB0 qGHw1C9wUzIx9trbitJPmV/ZC5GDJCvGT1IG61p4cBoZiIeAQrMY4DpQ8y0PJXDVrrmQ vKrzDVh9HicNGQhE1B5HNNMOhpiuN1f1HDk8SxIJbaanto+lFYLXAbeLYEbi2Osn9YyM kN0Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=gQwQz/QJ5mWY5tSctsi2zwWFgf7B4XFbDdy0fTpAkBg=; fh=GUkubiGldzHLqb6xfEt+9p8/IhyHW8wl5xhsvH0tEZw=; b=BNeJAMIgw7kRknIbmqT7HEMZrgxyoM+8Y6C/g/gvEHiJlOKkfKWlQ5UGMnJF70+8sI ddg9QzHMGZXnjxb2t7or2bc/b/NaLgcHbFc2/6FIyWHxwA/PbJlFvzEvxT+G6z0wBOMR l4YlH21LhVbVV/Lqr7vXv0dlX7XY0nsvR1vNZFiXd09hGok7fMA9yDe+9yV7mfvDa4KX EJdiFmnnrL2jvQcV8TMq/BCbHwyrhAavfM40i2wbb1ZEveYYtkDN4dDNNVpq0RZJOghz PRopgymV3Qc6hWVXpDI9KuuT0JcRcWtYHtVeXnm8PVg2bu72o39M45LNrk0fHFwxeIVA WEgA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ZNA2R66r; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-87959-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87959-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id s11-20020a62e70b000000b006e535a40f7dsi2846100pfh.91.2024.02.29.22.33.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 22:34:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87959-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ZNA2R66r; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-87959-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87959-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 0DB54B24970 for ; Fri, 1 Mar 2024 06:33:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8C8CA67C77; Fri, 1 Mar 2024 06:33:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="ZNA2R66r" Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5E62C433DA for ; Fri, 1 Mar 2024 06:33:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709274796; cv=none; b=Nqor3heiw24wi9DOMFC3wKt2WbQJFlJBOkxAk0gaaWjjNlb7maRGsHgw4PfftjT8BQuW3xmEYdHSoYeiljS4Dip0beHbwE7TKZMOLUs7SS1pz8BNU8ETZ8+ThNXg8niZ2Czw9IVNVVH02FnoRNekyJYUqcjqr1l7QWqJD/OOQy0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709274796; c=relaxed/simple; bh=1A49pWCrKxjDV0YLcbE2h1uhtFbcqlO7mDjyc4a8aDM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qyr71FXH51Jh6LFrOdQql6uR9vQ3Cb4SRz4M40hlICdKGEaUfG6IvJgYCCEB5jnCObLFYyK0feCdii+XpbmkpSWoe82/fz9u4GBpFPVit1U9x6BPpkFp02OrD+PLC9a2jD0J2DbygVTbJJBKHbxyv9Qcgr0ux7VXEZ8UHUPROPM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=ZNA2R66r; arc=none smtp.client-ip=209.85.214.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-1dcd6a3da83so12980405ad.3 for ; Thu, 29 Feb 2024 22:33:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1709274795; x=1709879595; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=gQwQz/QJ5mWY5tSctsi2zwWFgf7B4XFbDdy0fTpAkBg=; b=ZNA2R66rg1PSPPyatqHeNgwengHmb1SNAUSvJ2T6tssnC5dVkx4cqmrkyGFaImbMIz YeUB3sVjtiZuvVWakl/UAzLV7ElgAAj1naxrgG+UPMMvC08FJVbMokDA4I2J/0VPxl+X bUsTfXjedbdJxxUbcH0XSFbjJSlsMWKJrY49E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709274795; x=1709879595; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=gQwQz/QJ5mWY5tSctsi2zwWFgf7B4XFbDdy0fTpAkBg=; b=uL3RbIY4lhmqMXL2nLhzCTm6kkCGOvNtU2D+zppDCIZ365yUbZs5SRDZ+p4eplnxIV hx7B4BMPUriBc1lwIK6Wu0RK/YaiMgG110rmVEQTbx1rUiqhTIcRZIwYq1mHT7P/wBiU lRqrA8ZZCv4XInSuxcdvL6tUr6TXgVQI2kU8s/IU5DHPNP3PIJrAhfn7OO33WkXaCLbK qg6YMvBFLTyYo/4WG9nBLdmnN2v3RCWAkbCvq/cvYzXQGunjqRHQzwcPFZalaaQjK0P6 Gup9aS0DCeTqblnn7hZ25483HHY1koZdkLfL5erEpU9L5SrPbewQnKtJ8r7mdM0Evc46 Hxhg== X-Forwarded-Encrypted: i=1; AJvYcCVSCKoa9RpAKkADhvjd1RozLMChYNrWvhVLN79CqLOnuqjPg+SUe7u0K68BaALD5EavQ/+rx3lGFBXcQF211v9Llmc7psBMDzGezyGU X-Gm-Message-State: AOJu0YxNTPYTMStD5R+9zFWoODQyA7Op5O2vUEYgr+BSPOS1FXPllSCU DYhnvS1r5V+b+BzXBHTh+jLfinw/UBBXpZ7vHLd1wmIZ0qSJQhTCED25X1fytA== X-Received: by 2002:a17:902:c412:b0:1dc:3c3f:c64b with SMTP id k18-20020a170902c41200b001dc3c3fc64bmr1019191plk.24.1709274794801; Thu, 29 Feb 2024 22:33:14 -0800 (PST) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id p1-20020a170902e74100b001d9ef7f4bfdsm2586276plf.164.2024.02.29.22.33.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 22:33:14 -0800 (PST) Date: Thu, 29 Feb 2024 22:33:13 -0800 From: Kees Cook To: Josh Poimboeuf Cc: Peter Zijlstra , oe-kbuild-all@lists.linux.dev, kernel test robot , Alexander Lobakin , linux-kernel@vger.kernel.org Subject: Re: [PATCH] objtool: Fix UNWIND_HINT_{SAVE,RESTORE} across basic blocks Message-ID: <202402292232.2D9E913F@keescook> References: <202402240702.zJFNmahW-lkp@intel.com> <202402231632.D90831AE51@keescook> <20240227073527.avcm5naavbv3cj5s@treble> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240227073527.avcm5naavbv3cj5s@treble> On Mon, Feb 26, 2024 at 11:35:27PM -0800, Josh Poimboeuf wrote: > On Fri, Feb 23, 2024 at 04:45:22PM -0800, Kees Cook wrote: > > Josh, Peter, can you give a clue about what's happened here? For > > added context, the referenced commit is changing a noreturn function > > prototype[1], which I know gets some special objtool handling, but it's > > converting a pointer arg to a u8... I can't imagine what has gone weird > > here. :P > > I think this convinced GCC to reshuffle some basic blocks, which > uncovered an objtool bug. Or, objtool just wasn't smart enough, as the > warning says ;-) > > This should fix it, absent any more warnings. Kees, feel free to take > it in your branch if that helps. Thanks very much! I'll carry it in my tree. -Kees -- Kees Cook