Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp1543693lqt; Sat, 20 Apr 2024 22:25:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWsfDKoKYC6FJ8qbbYEPDVYrwk0J6G4zWedzMdVWA0plicmY5OkJgwilEj84b6W7yT0ad1TJinrO6XFTIhhq4NbKFYiGhvR1saI/cM/SQ== X-Google-Smtp-Source: AGHT+IFzCP+Nsbc7Uqa7q9sP0cvk2DS1pInCXtAd8CdWqnxPYTmAUNhkXC84lXsswFK2sc2oJqyR X-Received: by 2002:a17:90b:3445:b0:2a5:6b7e:8e06 with SMTP id lj5-20020a17090b344500b002a56b7e8e06mr13649279pjb.2.1713677158787; Sat, 20 Apr 2024 22:25:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713677158; cv=pass; d=google.com; s=arc-20160816; b=B3CybkhjfmZvCqm+24WS/IoKd/IYwda2ZjB8vSFwXgIB3WyN5y0VlEo7Pw3BQazyoA rtD255UFsPA6ErQD2BS5EdLwvbNyqkioY04gibzxAE0t2LShrJJJo8fpjxRw2dL6fxJl R6+Q6q5gBUV7RwJlYKGcHb1bZM0nIKT4bu5M0MLlVfaWNyG1ukBABHe+BTkZnHpm4nnm +AU7i/z1aHUEcOFDJe9x8RaSi75Dqda3loymTTaz2bK65Mya6slx3OdRkc9ZriTuPSnm f03PMFuQId9SOd7SuOkjDAAjX8rnhgHBTIaCWIFfJFVx1ddzb2XuUgupsU4kuVsfuwlA fd+Q== 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=nk15Zy01dQS87qus13WWiLxzUNPV8YvHJy7ilbxeylE=; fh=o4k4LdkjYcAMnfd471N3YPHkBtG+CzbMXbOD9bT5vkM=; b=ZQhyu9QCE3CdnqyvT9EPTk4mNTgy7FUPrZcH1Pz0EIEDklNHQXnHhwfqGqNQA6l5+5 eUZK+eIhygiMBXO2JSAo6Mx69yjyucV+oCpF8QQCuqpRk2+hmkgAHZ15ty1s0AMb82KL rIfblHGX/7ZNFIG3roYormJALKhYtVmGsV+pzMINGRdSPRAqkgK0N7qz5IfezjUNbZ7A OteAsKyFXvh/3vGGcP2SzJm95NyX8Qw0pXjjCTrX4Z9GrizK008AaAqvNPeOJwcjmdkg orJHobNIgx51rvK80ahsfkMCg9p/FqI2pd3Xei3xCZWF4MrITiBWdzdhOofuWriMjrOi FebA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fdsS0b1W; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-152447-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152447-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 h9-20020a17090adb8900b002a297239055si5838395pjv.71.2024.04.20.22.25.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Apr 2024 22:25:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-152447-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=@kernel.org header.s=k20201202 header.b=fdsS0b1W; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-152447-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152447-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 9026BB20D88 for ; Sun, 21 Apr 2024 05:25:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8BACE8C13; Sun, 21 Apr 2024 05:25:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fdsS0b1W" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A84064437 for ; Sun, 21 Apr 2024 05:25:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713677144; cv=none; b=OMi5pJJGOUsZcpq5aCgwYakCokUWGix2rUzDWrfZuUbSNOGng3p51jUHHzquBvzEux6h1wWtGTmCJy1b8NhcoEb8Esl6bfKEjwCpcAhuM15uwLh0tFrO2OosqzMd5FW6MdvkfwscwZHtJJGElSIBZBHEcDffYyJoCp+ZZ9RFEBY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713677144; c=relaxed/simple; bh=8897UkikHcygbe4N3ix+irQK9I4HgjF9WNURVeDcTNs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TEEAioUryZWh8i3QltOgfaV2GFfXR3BHmqZ4JFE4emzLdmkYmoQtANSvLFty4lR12PXlcYm4eBXJ3sfpj9kckxgAPnK4uyUB8KROo89cdNDgoU1GDuSKJIed1+y40HPGoBn/PH+RNKtz9gIcqlmE+IIQNsjSBiZfOJrO7wxRFQE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fdsS0b1W; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA8FFC2BD10; Sun, 21 Apr 2024 05:25:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713677144; bh=8897UkikHcygbe4N3ix+irQK9I4HgjF9WNURVeDcTNs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fdsS0b1WJV6G/qdyQzYD9Pl8zYlOKJxpZ1Ayb/UU/a5MRpjpBgufPbw+Kt5rO+E7f tcyOGMQaTecPjubm7xtHmXAxRp6G4cj5/or209HBQ7qzrLg6oqboqSYZXsPncT9Wod FEG2cw1WFafbBJsGpc4v0n4MMxWOkqIiGGFv8Dp9Spz1IkJIOHnAKNd8fPmTJI/46j iSjJ8VgoodV2dZAYGY4NtGyudxs+8sIaYEn9QhgPefgYr8f25gbe9R5xxsAP+VdDhz 7Gp+kDNQIj9qzC8jcWBl6T8bxcRu/GzlU+5WEQE/VFajSy1eSyMmcjQ9APrUQFS/uZ ZGF2IgORgQqsw== Date: Sat, 20 Apr 2024 22:25:40 -0700 From: Josh Poimboeuf To: "Paul E. McKenney" Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Linus Torvalds , Daniel Sneddon , Pawan Gupta , Thomas Gleixner , Alexandre Chartre , Konrad Rzeszutek Wilk , Peter Zijlstra , Greg Kroah-Hartman , Sean Christopherson , Andrew Cooper , Dave Hansen , Nikolay Borisov , KP Singh , Waiman Long , Borislav Petkov , Ingo Molnar Subject: Re: [PATCH v4 3/5] x86/syscall: Mark exit[_group] syscall handlers __noreturn Message-ID: <20240421052540.w7gtahoko2qerhqq@treble> References: <3b99cb2919c88ab3d353337423b2f0f1b9173f0a.1713559768.git.jpoimboe@kernel.org> <0c410ba5-0e42-43b6-80b8-a69c5419a97d@paulmck-laptop> 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=utf-8 Content-Disposition: inline In-Reply-To: <0c410ba5-0e42-43b6-80b8-a69c5419a97d@paulmck-laptop> On Sat, Apr 20, 2024 at 06:58:58AM -0700, Paul E. McKenney wrote: > On Fri, Apr 19, 2024 at 02:09:49PM -0700, Josh Poimboeuf wrote: > > The direct-call syscall dispatch functions don't know that the exit() > > and exit_group() syscall handlers don't return. As a result the call > > sites aren't optimized accordingly. > > > > Fix that by marking those exit syscall declarations as __noreturn. > > > > Fixes the following warnings: > > > > vmlinux.o: warning: objtool: x64_sys_call+0x2804: __x64_sys_exit() is missing a __noreturn annotation > > vmlinux.o: warning: objtool: ia32_sys_call+0x29b6: __ia32_sys_exit_group() is missing a __noreturn annotation > > > > Fixes: 7390db8aea0d ("x86/bhi: Add support for clearing branch history at syscall entry") > > Reported-by: "Paul E. McKenney" > > Closes: https://lkml.kernel.org/lkml/6dba9b32-db2c-4e6d-9500-7a08852f17a3@paulmck-laptop > > Signed-off-by: Josh Poimboeuf > > Looks good, but it does not apply on top of current -next and I don't > trust myself to hand-apply it (something about having just got off of > a flight across the big pond). > > Could you please let me know what else do I need to pull in to be able > to cleanly apply this one? This patch has a dependency on an earlier patch in the set: https://lkml.kernel.org/lkml/982d05a2f669140f26500bee643011896d661094.1713559768.git.jpoimboe@kernel.org Though I think it's not a hard dependency and I could reverse the order of the patches if needed. -- Josh