Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp1882817lqt; Sun, 21 Apr 2024 13:41:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWXX9gAJCf93Y5SqDo4SVyFeKMx3qpSUhkwFYdFs6N6NNMzNOPO5Z+KUgUE9Gf6UCVaxbV4aemZjdRv34r+jONIH0DLl0FE8l1odVUytA== X-Google-Smtp-Source: AGHT+IEfcIvcitaCEP/E4XiDcNtcULN4iIx+hyOWYfhP//6j/qasPnLDaDRUSN2yxd8HE4V3XFsL X-Received: by 2002:a05:620a:850a:b0:790:6241:ce3f with SMTP id pe10-20020a05620a850a00b007906241ce3fmr4967677qkn.59.1713732064164; Sun, 21 Apr 2024 13:41:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713732064; cv=pass; d=google.com; s=arc-20160816; b=dKatuER/TUPsu3S3ZzgWPilBQDOb9Do2ELI4qtNKUaQiL8j7QiKXXM5eCpgUFz5im0 7bMlATNLHq7G37B4HbElqS3uAEu2JFs+axYDsZG1kKTaRgxacKMyObzabBRFdfkcAqtW KyueYPqCxr2CUIcNp67r50MscPOik3bSTiWHderapVnLIAPMrdkz9PWLwN1cTdKR4A7Q U1gh7Fw7m/9ixNkloBO44cyebYmSmcdkLVql2cu9SVjGsr3uWA7gKo9Zv0Q7TJzQulq+ pyw1XE66i85DM/os80ddR05EJwvBRi2kGBSQjXTcxKrP42apjEQWbA6hXI/zMO4SAE5J PczQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=1F2AYoUrX3xb+yJo1emG/8LdWHKOcDQ2imrc4GccdNA=; fh=gruH5PXJXXjffoEUfntEXzd4YFJlVV/wVL7BFFznGRg=; b=Yy2GbzwaOyByN72Eum8gKc0r8rRZ11VFcL7xD4uPIpovDOG5wh8nU0nBWsxpjxjzuR 4jClb+r0wHaVZw++QvhpViupqUvRHYYoTw6Gm8RaroX/azhClPBlPHSPrEhpFr94Cxre BUlRPlw7Eh9tnLWn4tTsQm1iasNwTpMZw1gh9mCz8npYVGsYFonVqQJPmXbNv0KLfSdC mBoX98XetbYJMa6hpOKFRCd1e08qMLBl54a+V/u3qE0pLOaUlq9Z2I6ml8/wAo5sVxce kevhnTfWXHZdyp3DB+mg4GNbNY6UVchEKu1FA7UI2mYZmZn/B5XdcNeD7/o6jPqXKX3e U2kA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PZOanAhF; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-152617-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152617-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h16-20020a05620a21d000b0078ec5578fb3si8890065qka.122.2024.04.21.13.41.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Apr 2024 13:41:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-152617-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PZOanAhF; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-152617-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152617-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id DCB291C203A6 for ; Sun, 21 Apr 2024 20:41:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 688563D3A4; Sun, 21 Apr 2024 20:40:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="PZOanAhF" Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (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 0E4E953A9 for ; Sun, 21 Apr 2024 20:40:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713732058; cv=none; b=b0yRHxSh3Pl4hIQP+3gCSiKtBheaZHzPX7U+Yt4wgIMxk09927zqUO3hHqMcsKao3HXCBGMmgS0cEVybrMIJlnCCOTF5PzORMNsWYJxyeAuGZ+VtDcq6mCL77khSkzpc132y61AToQJLWhVF/JlDc/FAuxWFd65MUhzOjDScMyU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713732058; c=relaxed/simple; bh=ILe+0JFrPZ1Gcf62zBLDYj/3a/V4IcaEUhE3Jb6hVBQ=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=aDPDlSoEwe4lPTafCqaMtH8YUUfIS6RHnHqYeD7uBtS3LxItSFZZSMQKBZBFlC3b0Ul9YZrcS0IKvvVfQDYi+LbJsPfmrRL2Nqb1qKHIsgUWECdvSJ9oRoy/psyQ4kA3uKHp1n1Z2PZX1x/17GoSsF60XwsnwdKGBusOpisoZso= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=PZOanAhF; arc=none smtp.client-ip=209.85.218.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-a53f131d9deso453757666b.3 for ; Sun, 21 Apr 2024 13:40:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713732055; x=1714336855; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=1F2AYoUrX3xb+yJo1emG/8LdWHKOcDQ2imrc4GccdNA=; b=PZOanAhFKCuA6I1/ciQy/taZCkNiLbFMNQPfnmLOR/JLFl3oZWzwM+OttF1xQpxHBQ BZ8sX6HGZQMaACDUGukVnTQGqyU0uOkem3lte1ViTlhTHzKNMclKJadywkKT20Qy1jci 62ddfNBdFvu6tTCNvFLLXbwV45N3PdVADI+pglNbCcGUSsUIAsy6dI1ElVgISUrT4XZC iqWrd4MurksP1WvtKpovQ1S2JrK9xYGP8A7NkBd+CgpFgVXQlrj8l9AW5apBpWngL6FI QKEN6Om9HO8pOwCyK2UZfS7aA3K53/OdagVjlC5lyVTsV/1O7kz2/307yz61cNn51/xT HhSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713732055; x=1714336855; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1F2AYoUrX3xb+yJo1emG/8LdWHKOcDQ2imrc4GccdNA=; b=iJii060+LUjB/qbmx06N9ARz9uEe5NqQFe2mnDDIyLJv5naRacvNm7mqKUv9Y+Osws qTOWY1iHe+sRq0atZQ4lIYWptQXKRRfyKmCYxRq4eQ9YRSnEyPkLsk0mtk+kkkygQiMy nrZNh5GlkO6ROqj6TUCqHM8XT7zSZRHFVUUlv4GcJBgSSLGErv7MD16pqJOaNucDeuB5 chDWgnoqYmV3ix4Vd8pFNEdLqDFoiGO4yPQkQvgEnblygnmcdKqF+DQXNwaHfWBnId7+ UHu6WkydHU4KawDYEyyh5+XTNyf70SWXpJBH6b5FVGgP8YAb+2bSXDHfKJqBnFrk3opf h8TA== X-Forwarded-Encrypted: i=1; AJvYcCWMjR/ANRU830HYCx14tPNiOE254sXRVhIMLKKRx0mAE5uTm6Diy9gGAz1KlhI58FGucukdzaGEQj/LyqW0dsUsc8XmyhVEP0MwD6Fb X-Gm-Message-State: AOJu0YxS77sEo6pBraTctaH/UG9ySa7qM6otA4NtAD031YsijlkdIKYF c59+UlrdZJLZoGjcI+Fh8BnArwqYFeoN59MrwVQOeoG6jq6hHm5YRqvUDa2UGQ/oFjZYa2tQJ78 GUEHwsuecJRXJW9Di6CWavlCt72o= X-Received: by 2002:a17:906:eb44:b0:a51:a288:5af9 with SMTP id mc4-20020a170906eb4400b00a51a2885af9mr4749385ejb.51.1713732055105; Sun, 21 Apr 2024 13:40:55 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <3b99cb2919c88ab3d353337423b2f0f1b9173f0a.1713559768.git.jpoimboe@kernel.org> <0c410ba5-0e42-43b6-80b8-a69c5419a97d@paulmck-laptop> <20240421052540.w7gtahoko2qerhqq@treble> In-Reply-To: <20240421052540.w7gtahoko2qerhqq@treble> From: Paul McKenney Date: Sun, 21 Apr 2024 13:40:43 -0700 Message-ID: Subject: Re: [PATCH v4 3/5] x86/syscall: Mark exit[_group] syscall handlers __noreturn To: Josh Poimboeuf Cc: "Paul E. McKenney" , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable They apply fine as is, so I have started tests with that pair of patches. Thanx, Paul On Sat, Apr 20, 2024 at 10:25=E2=80=AFPM Josh Poimboeuf wrote: > > 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 histor= y at syscall entry") > > > Reported-by: "Paul E. McKenney" > > > Closes: https://lkml.kernel.org/lkml/6dba9b32-db2c-4e6d-9500-7a08852f= 17a3@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.1= 713559768.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