Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp69712lqh; Fri, 3 May 2024 13:44:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWpc2v2QXeo2YCkXrQ0phAjeTO1Jy3FBuKCgdBZyTfYa3oEXIHPd3ff5d/ggZ7monMz0K1ebJavfw5k5omN1JHMCNgV+4uQzOH6KDu/4A== X-Google-Smtp-Source: AGHT+IFbrXx13jkwfNh6sJjXrj5wEJR4joRitcrvpN1JEZmpbL5Oe5027oCh7QHbBIgiDfIbWJuX X-Received: by 2002:ac8:5805:0:b0:43a:dc13:ae79 with SMTP id g5-20020ac85805000000b0043adc13ae79mr4354230qtg.34.1714769067524; Fri, 03 May 2024 13:44:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714769067; cv=pass; d=google.com; s=arc-20160816; b=N/usGvS1q8/AKeBhAJX659pF0wDq7oqKQz8gETW6FpjOoPnXa1tVKODj3eXFZJd0pl oP/wJqwON4TWSZG6dc6NlRHwQ/mADPDricV3QQA46eH/mb+TYDSf2dwC9XemUDmf6i2d ftp9BRZ9QyF2jjiLRXg7f+u8dNWnLWGoZI8wPZw2BouwvdS8JStOzTg1ax+rFIh7uRp+ G94Y+sGbK918EJQKCONxT5wQPbbiq5O2oNXLpqO85cacWCYk4sCSjKzxyO4QO5B453F0 /kdFU438VUAT0Vx1LpS1r5WPQFoU9rx98v6vsRlpzID7AvgL4HOnufc/eP/7yaZH4tJ4 GOUw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=5yJ/3iZPkJ8gibc6NIhtBCLwPwrRhJFCbSbITFhNZk4=; fh=wgqjKJIUfudoWo3TO9Jy9H+Moph2OEMxYcyU5VruK4w=; b=qChIgCo2nbXj5fHZPwBQLmnJy0oYUxwtzXAvIswWrhRHS7GIwywGnds9QDHXkcamgO d7N1UhIThJZqQ3Bu4ZL+gLcXyP1r5cwofImDVz8k04PPglBqNh4SDQUb3qLDenMI3oxN ldaeehg76tvIgpw8ll4vcbRLn3AY3ENLzNwP5zCAZRju9CzS2Io8Yls4ZHE5zOcG7dk/ i7L/6KanSQpuurceGA9WUW69SlXAxj4fo6QyuY4aZ/e20VRJAvDRH25Xe+e6lU1i07d4 CkuudGXXlT8uhHyiVF2lylF5fs2R4cKnM7FaCVmCeCkXZPBkaKqZKExRvu2hdZOuqR2z hTJw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tp6osNYl; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-168199-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168199-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id o18-20020a05622a139200b00434f050ef08si4347591qtk.539.2024.05.03.13.44.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 13:44:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168199-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tp6osNYl; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-168199-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168199-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 436181C2313B for ; Fri, 3 May 2024 20:44:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4DCE02E62D; Fri, 3 May 2024 20:44:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tp6osNYl" 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 7424A23775 for ; Fri, 3 May 2024 20:44:21 +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=1714769061; cv=none; b=XR785hLUtSMxKktTZpcExwHK9KWRnE8bEOx7pvWv7RGc0ppNUVo3ll2sHYiNfL6mVpb2dLKF6RsyJpH4SdL6QVheLiOYuYk879ilXmCOfThFfnaQsoKuIkd9vgucHaP/QSo/FcA5MWl9Ga42f+du1NERC2Q3dS1IgJVCVHZKR+E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714769061; c=relaxed/simple; bh=VE7V4SIUfe1zCt37EDtWVzjhKzO2WS4pVTTO1nQaaxI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ds06DHknaZwrkRM8mX7HhVNA2DdJ9tztGVrekmiu7juR0VTXL+kw9xuJjie0AGUbbvSuPXy0irMs8KNN9prd8+cCJNgJhi8nGyIm/e6GYue0ISqggrXlsuCnd7Ym4nmb0cbxUepXGZ8PNJtH8Y97JcqLnmEnP5vYAxUab6nB9jY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tp6osNYl; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B85AEC116B1; Fri, 3 May 2024 20:44:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714769061; bh=VE7V4SIUfe1zCt37EDtWVzjhKzO2WS4pVTTO1nQaaxI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tp6osNYl3Gi1Cvl045VauvM3F++OaR6ATK2YMWZitYSxx/FsGwZtHbWCNV6Ausev6 DhAKWYklQPhf44g40HyLjarrbueNbIN9vvbZBiZ+367JeFfsxtqBQAwkj7sMDjyPL0 O9XAiGIG3Zq452RaOost7vskNHGPPS80uQeoez8LcMqb0iV0Mrwt/Ly2x6xWWz2De/ EXUu0OIdHXbrYUJzCKwKkB3GmJaCZSZeR1uq7Ad0hC61O5IptjaOZEM56uxynnu8ox HiH2Bj2sMfzRpaZKw5HqlWbs/reKPR8N3Dc2a3y3NnvpZgPJDDiwRFumHcBUAYxdo5 XnE7frtkdMiGA== Date: Fri, 3 May 2024 13:44:17 -0700 From: Josh Poimboeuf To: Paul McKenney 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 Subject: Re: [PATCH v4 3/5] x86/syscall: Mark exit[_group] syscall handlers __noreturn Message-ID: <20240503204417.2kxp2i3xjdmtapxq@treble> References: <3b99cb2919c88ab3d353337423b2f0f1b9173f0a.1713559768.git.jpoimboe@kernel.org> <0c410ba5-0e42-43b6-80b8-a69c5419a97d@paulmck-laptop> <20240421052540.w7gtahoko2qerhqq@treble> <20240503195653.5wkdfwno7nybepqc@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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240503195653.5wkdfwno7nybepqc@treble> On Fri, May 03, 2024 at 12:57:00PM -0700, Josh Poimboeuf wrote: > On Thu, May 02, 2024 at 04:48:13PM -0700, Paul McKenney wrote: > > On Sun, Apr 21, 2024 at 2:47 PM Paul McKenney wrote: > > > > > > And this definitely helped, thank you! > > > > > > However, this one still remains: > > > > > > vmlinux.o: warning: objtool: ia32_sys_call+0x29b6: > > > __ia32_sys_exit_group() is missing a __noreturn annotation > > > > And looking at the patched code, this function looks to me to be > > correctly marked. > > > > No idea... :-/ > > Ah, I think I missed fixing syscall_32.tbl. Lemme see how to do that... Can you try adding this on top? diff --git a/arch/x86/entry/syscalls/syscall_32.tbl b/arch/x86/entry/syscalls/syscall_32.tbl index 5f8591ce7f25..f30b608d14dc 100644 --- a/arch/x86/entry/syscalls/syscall_32.tbl +++ b/arch/x86/entry/syscalls/syscall_32.tbl @@ -12,7 +12,7 @@ # The abi is always "i386" for this file. # 0 i386 restart_syscall sys_restart_syscall -1 i386 exit sys_exit +1 i386 exit sys_exit 0 noreturn 2 i386 fork sys_fork 3 i386 read sys_read 4 i386 write sys_write @@ -263,7 +263,7 @@ 249 i386 io_cancel sys_io_cancel 250 i386 fadvise64 sys_ia32_fadvise64 # 251 is available for reuse (was briefly sys_set_zone_reclaim) -252 i386 exit_group sys_exit_group +252 i386 exit_group sys_exit_group 0 noreturn 253 i386 lookup_dcookie 254 i386 epoll_create sys_epoll_create 255 i386 epoll_ctl sys_epoll_ctl