Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5530311ybl; Tue, 10 Dec 2019 07:30:46 -0800 (PST) X-Google-Smtp-Source: APXvYqwxuXxTGeSCTwPQrMYxHdh/tDzMGrK1jNutN+JY3AnWmDyrpilK0jZgxT4GBHhDN8ac0zWZ X-Received: by 2002:aca:190b:: with SMTP id l11mr4519177oii.65.1575991846523; Tue, 10 Dec 2019 07:30:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575991846; cv=none; d=google.com; s=arc-20160816; b=M906EBJ+jHmYQfBAEUxbLyBLdSSPmct1JdJo+B5wxEBCtqzvTky3tzqYDbSH/2PTNQ 7XuWHaROcUcCf1qTD1WI0gb69/L1OV2ljanj/WvtQu8rvr0grl6P5jinZXosHoFhliU+ kKsRtX80XRyPhBPEdQeqjKBn80hEPFyBT9P4X9unTm/TZA+WRI/WXKqDBBTXwczcs4qp +J1YE9iwX2d6NA4MzmWRzw/qqI+vI3iiaGsFYp9ie+Aju8MT1Ax8ReeDnQf5sN8jjTtA AJTjl26CzreqvO2OswpdNrY6GmZKZpFF9aVrk1aLvUzCdVr3M7Q1JoVJmR62iYzB/Osj k8YA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:in-reply-to:cc:references:message-id :date:subject:mime-version:from:content-transfer-encoding :dkim-signature; bh=2m22tRgRbycGVEq+HVbXDKyMLb2WG5FY05Buaglo9kM=; b=gOL0EJjqQcoICvFefjfUsCjjywL0E6R1pOkFuLPyacGIzdrLY65ZtP6wtzeIxVRgBQ GDwHkDOZm9YRO+m8RfZLUGFjqRMiYhyZrVUgAfo59sdHfA+ivp1fND1OgGXrPFkqyv/u r1uIZIeweVx5PcnCTFyYILaD7UMTIQyag1rpAec+8oo2KunxJu/of8nVL/N3T88MW0rf +8kHyEfdNItSUkcfSISTDIbYaXta4R3TFCXIR2TwczCrnMLme6oQKNyi+vV5XTGJkK0g ZeB/2cyaskR5HJd5q9pEINim8HFxMSdoV4gnPKCowUbI+qihyIDe6NqUbo8ha4RCbFAS 3D2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=r0JdLzmk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n11si2044114otq.112.2019.12.10.07.30.32; Tue, 10 Dec 2019 07:30:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=r0JdLzmk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727558AbfLJP3z (ORCPT + 99 others); Tue, 10 Dec 2019 10:29:55 -0500 Received: from mail-pj1-f68.google.com ([209.85.216.68]:38452 "EHLO mail-pj1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727380AbfLJP3y (ORCPT ); Tue, 10 Dec 2019 10:29:54 -0500 Received: by mail-pj1-f68.google.com with SMTP id l4so7546385pjt.5 for ; Tue, 10 Dec 2019 07:29:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=2m22tRgRbycGVEq+HVbXDKyMLb2WG5FY05Buaglo9kM=; b=r0JdLzmkZyMw5U1N8SSKuKPpSPZBRu+iwEoZMlFIyi3yWca1kiu95uT/H40Ku4JEJs UAQhPgiiUxurKjHE7cRJ9UtwxYVm3UUHbNseBlL3mGf0snPT5C8543snsENdosoncC/G cRb7kVJEhBZQWIsstysaGrcbiHO1lWsE4PzmbdtaVrdq1JR4uFle9Q1ohNcc6tN1Bivv FdB7q3gH8oCkmrjwjh7A+kAhy3zWozUQccExZiS5xkxcoE/5SW53nLIhOz77LJ2aCuNc BSNM8roab+j3D6+RVyFZAzuNMpFJiaL7D/HjXi/jBHsShi8WmUvuWzgYxehLtFFIVevf FL+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=2m22tRgRbycGVEq+HVbXDKyMLb2WG5FY05Buaglo9kM=; b=BZ0oHql41PvKXdsP1LpdN/tOdSxA3xT91eIb7f0R+H7Q++MOVIQ0WxLU28KBaupbMC fJMnPImDgQK6kgeD7UsaYn0wpp0yY+GJkY6PBEHO06IFMkfLBpfPPaqNc2fIdh8YQSKU fG1tE92h65ON32DMRBnZoGPN+j0BU8aqqBNT/5Inyz9jbBcw6gopzt7TR6SqGPKVVqaz SrjeWfowyrsA7V5IqN4PtYsvh/kJBjAKYjFnIfM/46ufgu8Bqw0WhBWJ2cEYCoikdtkJ bsSSKRxOfDz39/lGyHT3keUr9JXz+sBlEXcqMVCWc8zSOU1eIyB8e7ikXCkQMt8Y5Kdw QFdw== X-Gm-Message-State: APjAAAWcdSEkSiGfgJP/mCNr4UcTOGpyo1ddBBTI3z6pTn3O4414M9M3 Jd4pKn3G6GSdhfkedUULmEJb7A== X-Received: by 2002:a17:902:b68c:: with SMTP id c12mr35217696pls.126.1575991793962; Tue, 10 Dec 2019 07:29:53 -0800 (PST) Received: from ?IPv6:2601:646:c200:1ef2:1854:f81f:5bdb:c33c? ([2601:646:c200:1ef2:1854:f81f:5bdb:c33c]) by smtp.gmail.com with ESMTPSA id j18sm3743530pfn.112.2019.12.10.07.29.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 Dec 2019 07:29:53 -0800 (PST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Andy Lutomirski Mime-Version: 1.0 (1.0) Subject: Re: [PATCH] x86-64/entry: add instruction suffix to SYSRET Date: Tue, 10 Dec 2019 07:29:52 -0800 Message-Id: <08B92B44-CCA9-4B83-B9CC-F1601D44B73F@amacapital.net> References: Cc: Andy Lutomirski , the arch/x86 maintainers , lkml In-Reply-To: To: Jan Beulich X-Mailer: iPhone Mail (17A878) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Dec 10, 2019, at 2:48 AM, Jan Beulich wrote: >=20 > =EF=BB=BFOmitting suffixes from instructions in AT&T mode is bad practice w= hen > operand size cannot be determined by the assembler from register > operands, and is likely going to be warned about by upstream gas in the > future. Add the missing suffix here. >=20 > Signed-off-by: Jan Beulich >=20 > --- a/arch/x86/entry/entry_64.S > +++ b/arch/x86/entry/entry_64.S > @@ -1728,7 +1728,7 @@ END(nmi) > SYM_CODE_START(ignore_sysret) > UNWIND_HINT_EMPTY > mov $-ENOSYS, %eax > - sysret > + sysretl Isn=E2=80=99t the default sysretq? sysretl looks more correct, but that sug= gests that your changelog is wrong. Is this code even reachable? > SYM_CODE_END(ignore_sysret) > #endif >=20