Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1897677lqo; Mon, 13 May 2024 01:27:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWOAZv3aPL9w+e/XFlkOK0KnacSXrvQJwEK6KU1Ufh5iip4DJZjzRGsLBlGkpF+YdR8EdCCaJquBH5rIOFgwI3uVI7bG+RdTyz+bNg+ag== X-Google-Smtp-Source: AGHT+IG4bz1QZi/3WBOzilf1dk6G5KRJmnk/YiGjsLnWAgPWpego151KdOBoyJN+63KgE2yaEeoZ X-Received: by 2002:a05:6a00:98b:b0:6f3:854c:d2d with SMTP id d2e1a72fcca58-6f4e02ab564mr10030008b3a.9.1715588874131; Mon, 13 May 2024 01:27:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715588874; cv=pass; d=google.com; s=arc-20160816; b=dc8l2kQ5ytvYV+Gt7+QA+24ICWdI+qlT/JC+sD7FYnfSJt25eCoXQUplmH7SV5nHZ7 xDB3KZNnrZ7MB6frIndKoihMKfTewu6F4QqXUc6LCR1QUIRIU6s68lqIK4PbhVthDgRQ bS96RI8gEUV25FBrnUjC+iAuUOr3FNCqHiA5Z1Bij6Ik6I8ysa0W0tXxcLTg+4tXNqR+ V5tZOQni0R0wpuL6bzHxysM+G5q+VQvt4GHHcX+WQaYgzoggKZWf4izp8CWEPU6W3947 nKH8XnwLsRVRQM9L90ubs4BNmrkpqOgecQtMWrNTUTh400pCaGYYofO6HRSAwZRGmE/L WwZg== 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; bh=X944fYgAt3VxLTnS8bkL9vLkbTg1H/Z6eMPQKFmiAK8=; fh=44B0schIjBEgFADDZX+rQlLNc7aiyYQriNxweIV0fp0=; b=FRbe4QIinItH9EJUERgELLIYIJ6sUIxIWpzUCbPxfoK+5CBsKwTIoazJhiOideA/Zu 3sxjLUHH3Nsd7H+REhmbPl6sox4vS7/E+VUlVKUkxFaY62HCll2e1u8djXuYPq6MoEbr omke7puJq2wP753JQKkiX0Yk9V/bXfHRVERpIDrBkGDsjcvpX9Z729Kb8litjAMTb+h+ 7Sd64aWBSxD8OiQrT2gmrBAtWrVZj+R2tmA1Ryxweu4fPLTyKcjp6R2Zp8iWCv0A5j0M J87XiwrvrrbHEU4NfI7MR+KZ/WZkzYDojioDNQXwHvg1C1pwwJBNCO26QnBnTHD4URwd C86A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-177342-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177342-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=denx.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4d2a72776si8584416b3a.33.2024.05.13.01.27.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 01:27:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177342-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-177342-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177342-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=denx.de 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 0B349B21CFF for ; Mon, 13 May 2024 08:23:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E6F041474B9; Mon, 13 May 2024 08:22:55 +0000 (UTC) Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) (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 906CB1EA8F; Mon, 13 May 2024 08:22:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.255.230.98 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715588575; cv=none; b=XHenWgjLkvlJoj6pvyapQb41IOmBdrd8+uphTlpgwAnMRlPT5vfwfdJ5MHjfNzJgLndEnRTGHuoOzY9m7F3YHbPmFOChYckdMHfZa4vO9B2NJGdnW/r1wEwShv8SvNVS3MWBDuPB/W66TaHU7h5pg4I6EC3bhR756Ez06JZGcmI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715588575; c=relaxed/simple; bh=VdT02T+KafGvezTn4Q1x+u/4j/Y6V8DADyO6zaYJDI4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QykCY8HNSS7aozQTQEiNqcGLIUOrgEoFtAdrDQLdvkCFZWvZRn+YFiA0UhpSBt4TuZnZZVZ1XiZpY/0uDh4o0iumYgJIXvr6dJeHYhby5hnnv5HPGOjZaucywVp7vFM3NaEciT8jNfGTTSY65FxROVjUbBQjKyMn9i6UCQcKmhU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=denx.de; spf=fail smtp.mailfrom=denx.de; arc=none smtp.client-ip=46.255.230.98 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=denx.de Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=denx.de Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id B41411C008E; Mon, 13 May 2024 10:22:51 +0200 (CEST) Date: Mon, 13 May 2024 10:22:51 +0200 From: Pavel Machek To: Sasha Levin Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Linus Torvalds , syzbot+83e7f982ca045ab4405c@syzkaller.appspotmail.com, Ingo Molnar , Jiri Olsa , Andy Lutomirski , tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, peterz@infradead.org, xin3.li@intel.com, ubizjak@gmail.com, rick.p.edgecombe@intel.com, arnd@arndb.de, mjguzik@gmail.com, bpf@vger.kernel.org Subject: Re: [PATCH AUTOSEL 6.1 19/25] x86/mm: Remove broken vsyscall emulation code from the page fault code Message-ID: References: <20240507231231.394219-1-sashal@kernel.org> <20240507231231.394219-19-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WWCtX4pqoop62PeZ" Content-Disposition: inline In-Reply-To: <20240507231231.394219-19-sashal@kernel.org> --WWCtX4pqoop62PeZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > From: Linus Torvalds >=20 > [ Upstream commit 02b670c1f88e78f42a6c5aee155c7b26960ca054 ] =2E.. > IOW, I think the only right thing is to remove that horrendously broken > code. >=20 > The attached patch looks like the ObviouslyCorrect(tm) thing to do. >=20 > NOTE! This broken code goes back to this commit in 2011: >=20 > 4fc3490114bb ("x86-64: Set siginfo and context on vsyscall emulation fa= ults") >=20 > .. and back then the reason was to get all the siginfo details right. > Honestly, I do not for a moment believe that it's worth getting the sigin= fo > details right here, but part of the commit says: >=20 > This fixes issues with UML when vsyscall=3Demulate. >=20 > .. and so my patch to remove this garbage will probably break UML in this > situation. >=20 > I do not believe that anybody should be running with vsyscall=3Demulate in > 2024 in the first place, much less if you are doing things like UML. But > let's see if somebody screams. Surely this should not go to stable with just 14days in mainline? We don't want stable users to scream. Best regards, Pavel --=20 DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany --WWCtX4pqoop62PeZ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCZkHN2wAKCRAw5/Bqldv6 8v7TAKCYmhtelhRRukx/Uu3Lrg8bHYnsIQCgi4ELc23Gr4P2w85lRLVFAGxcYbg= =mLrd -----END PGP SIGNATURE----- --WWCtX4pqoop62PeZ--