Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1907726imu; Wed, 28 Nov 2018 17:53:35 -0800 (PST) X-Google-Smtp-Source: AFSGD/UiN/njLvTZE44ABqf/n1qtYL1Ul+/dUXzLsahYD4jpDAaxYdIoBtpLhNRUeEXUTUxjKlK4 X-Received: by 2002:a17:902:9f89:: with SMTP id g9mr39584125plq.214.1543456415655; Wed, 28 Nov 2018 17:53:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543456415; cv=none; d=google.com; s=arc-20160816; b=07LYgcWoxHuQjlbI7d5wsN8Aa1t/tFvw2mCx8AGFr9+w4uYVjHVpGbyzQQJ9ObLhcG 6GLlOIqlE51WeRQwAuQ+H0KNFRilBVuPkWTuWIlfB6mGKzzQicL3iB3q68Gp3vQbx71p fIf+gjrxHiTAu0x4iKKrOMVOmfFivkSv1GJOI5lpFB+rKIcw10vpyddPJbMaKDx/ovx/ 8pE3V/EGNwoyXJPdc49Rui6B1fXCJNi+wngEjKG5jDCVbIGBlATvkusXbeXpOFzamlF8 R5nkeYSgPc0yjZ7/nzy4OSaXb78NH75/i5VYM8/JSwiGIkAvtc9+PlJz3fvWYTioscue 1OIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to:date :cc:to:from:subject:message-id; bh=RBrhfNNKdLjgQD0GX8sEnjrNahbgH0DxX1yorvTs77c=; b=RKHZVRM/OahTwnGRNVBbVzpWuQ48YyBdB3PK9TccrB0gQGX0nLKKNmmLe4wPHzDsvc XhVsz4nppMj6okhWSp6JNhkjNNXMltDWXKu5sAxSxT/haiWf6odp0JGgUeC6gErHwZWC J/vK1pE/tF5au7hEuuW+DbA36lhwhFWVQrHy+7D2C+R9AR3bXWPm5kj//8G0JJtgmvDz NDj06tXpG1s+DgkqJ3bjlz23jGCFN0BUq9S4YNnOPAKxA9TrMzF58UyN+ceJHJIcBX4o 4FudbmpWTzU5AUjxcw6H2DisRuoc/zJ8rsxjY/pCFmYjXYWK1sI+0iJsZa4GfF8R3wvV rfkQ== ARC-Authentication-Results: i=1; mx.google.com; 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 j66si486839pfb.182.2018.11.28.17.53.20; Wed, 28 Nov 2018 17:53:35 -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; 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 S1727288AbeK2M4D (ORCPT + 99 others); Thu, 29 Nov 2018 07:56:03 -0500 Received: from shelob.surriel.com ([96.67.55.147]:49596 "EHLO shelob.surriel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726954AbeK2M4D (ORCPT ); Thu, 29 Nov 2018 07:56:03 -0500 Received: from imladris.surriel.com ([96.67.55.152]) by shelob.surriel.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1gSBV8-0008SE-8F; Wed, 28 Nov 2018 20:52:22 -0500 Message-ID: Subject: Re: [PATCH 01/29] x86/fpu: Use ULL for shift in xfeature_uncompacted_offset() From: Rik van Riel To: Sebastian Andrzej Siewior , linux-kernel@vger.kernel.org Cc: x86@kernel.org, Andy Lutomirski , Paolo Bonzini , Radim =?UTF-8?Q?Kr=C4=8Dm=C3=A1=C5=99?= , kvm@vger.kernel.org, "Jason A. Donenfeld" , Dave Hansen Date: Wed, 28 Nov 2018 20:52:21 -0500 In-Reply-To: <20181128222035.2996-2-bigeasy@linutronix.de> References: <20181128222035.2996-1-bigeasy@linutronix.de> <20181128222035.2996-2-bigeasy@linutronix.de> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-9h1MYVYAhemxwlPCV9gs" X-Mailer: Evolution 3.28.5 (3.28.5-1.fc28) Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-9h1MYVYAhemxwlPCV9gs Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2018-11-28 at 23:20 +0100, Sebastian Andrzej Siewior wrote: > The xfeature mask is 64bit so a shift from a number to its mask > should > have LL prefix or else nr > 31 will be lost. This is not a problem > now > but should XFEATURE_MASK_SUPERVISOR gain a bit >31 then this check > won't > catch it. >=20 > Use BIT_ULL() to compute a mask from a number. >=20 > Signed-off-by: Sebastian Andrzej Siewior Reviewed-by: Rik van Riel --=20 All Rights Reversed. --=-9h1MYVYAhemxwlPCV9gs Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEKR73pCCtJ5Xj3yADznnekoTE3oMFAlv/RlUACgkQznnekoTE 3oNvoAgArE1oDhD00rBCq+l5WcAoWgNdFAm0dCZyvKRMGxQQ1wR/Cju1lhD24U0j KtY/p8q+fYSIH5AsTFTpFlJxLJxPv8Zf2xGU+Ktn2vVusED8bHBykDpJZ3Jc2JPB QCwiPNOBr8hxGBxQoqcAcoVobk5YV+K6D5kFgjpAvNnNu+udKAS4pdxnZeAXuqDE 90MiT3ThqGzyCVvRRnqJTYe9sKGABH5R/U+ricbiDYHKkaFXz5Fd7/KfM/jqKBTP b1IMS9QJ0s/xwD2nYATE0LOtmoQXfeMJcdRTxKkAQB0jkkCVYr8gfgITFAoTtUHB DnwfQj9UpEPwhwIStB/oowVLc770zw== =tgUH -----END PGP SIGNATURE----- --=-9h1MYVYAhemxwlPCV9gs--