Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp855760imn; Tue, 26 Jul 2022 11:09:04 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vQcIvV+SPpUcSafZNYBcsO5RKfSJ52iM2ufP5M4J36TFVH6sx1TMK0Tt1cSdgfcNPk+3e9 X-Received: by 2002:a17:907:7ba9:b0:72f:2994:74aa with SMTP id ne41-20020a1709077ba900b0072f299474aamr14999069ejc.85.1658858944140; Tue, 26 Jul 2022 11:09:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658858944; cv=none; d=google.com; s=arc-20160816; b=l7IkiGvVKWPmJ0aE+P6Cu1fAKDSiNDmr9grC1hlv0+WdklD94mL4djZ8ckcYqqduo2 6ADSNiyJXXrPjNMGlhfj8V9Os2+/S0AqrRxtFibwJ98BEXgt12qUP15FQnbt7etg4dfG 2oeqLOA5OBbW+pV1ScpaPhl3aIaymQNX7lO05HmLE3yDouNJHeVuXTegusvT11lLweRm iTkQKy7Eg0s3lJoMlPWQAgt/89+X6FcK6knoIaiEPysnC0xRjm5WKoG1CJG92S/KOZwR LruSAUJxkNVUu91DCx+j3lIjcokb1K3k1JBvnw3+XJQEv1jUafIeuDj2fTmdVTTLXKJ8 xOdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=UO72TIay3a3a3D1s3pXCqDP/uDf6SlzddYKh1qo77/Y=; b=S+kikZH2zKjxHscfR1GoveLRxrLdaM0Usaa5qp3fi75kBCvIQ/hhvXrB22EQK5TI9+ DQwVN/fmoYZut63Ga/atZV14An1QhG20SkkjEu8r5NLDNvQr5U4ESdUpUTvkk5U3+VQA 6XbCS5KAvmbAK9s46ivxEJvq2iwK/q1T1xM2qxuU36d320L1VbzcZ/RsLzZ7E5t58Cg6 wMCH505M7xnF7E8dGkegN8EK0fwvWeKEHrFmj4yWeQ7zQbt+CGtjEX0FpGJ3Uitcsw7p jkK80VZMUi3XPNiXMA4G4J8cF91mafSxrOgUmRgXhBChUxzazUn6LXkbuOtIIJoPFACg wQGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iDQrEtiP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a11-20020aa7d74b000000b0043bbd29255bsi14169361eds.339.2022.07.26.11.08.39; Tue, 26 Jul 2022 11:09:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iDQrEtiP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239569AbiGZRqe (ORCPT + 99 others); Tue, 26 Jul 2022 13:46:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230473AbiGZRqc (ORCPT ); Tue, 26 Jul 2022 13:46:32 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2034ABF67; Tue, 26 Jul 2022 10:46:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658857590; x=1690393590; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=Jfn73eb1NtC5hyzz5MoImvxl+iN6nGyp06TBHbGvRKk=; b=iDQrEtiPrg3Ky0tVG0M1+dPYnE2P7AglgEhrnGNqyztHqw7F9P8GW+Xw /qDH/B/D4sOBj1KoAB/e6Ep8Lv1ZU7ZHSUuiPpI41P7oLCXb/ty2oTHLq 9YOI91RtV6Hze206NsSKTyyJlC8WKknqFdYqVg1v9kMYMxWw+k5c9mgp9 Z1/qZ/RG47gayRcY4BZDgxENTcmOMHERpG5zVRrevw9bWgyEJlsaM9YnQ c8z8oYHgvsS1/n7eNmTg5VmfXbCZMZ6D8ZwaLz9NWNn1eMUAsMa/cSHqR eWGvHRSr85y8BNUvxM5CHSQ2jBBNhlksKeA5bFs3CEWTx60kDkji6H3UQ Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10420"; a="285565496" X-IronPort-AV: E=Sophos;i="5.93,194,1654585200"; d="scan'208";a="285565496" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jul 2022 10:46:29 -0700 X-IronPort-AV: E=Sophos;i="5.93,194,1654585200"; d="scan'208";a="658790289" Received: from mcrowelx-mobl.amr.corp.intel.com (HELO [10.255.229.9]) ([10.255.229.9]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jul 2022 10:46:28 -0700 Message-ID: <62f37ed4-eac5-250e-3056-dea2d0039b02@intel.com> Date: Tue, 26 Jul 2022 10:46:27 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCHv7 10/14] x86/mm: Avoid load_unaligned_zeropad() stepping into unaccepted memory Content-Language: en-US To: Borislav Petkov , "Kirill A. Shutemov" Cc: Andy Lutomirski , Sean Christopherson , Andrew Morton , Joerg Roedel , Ard Biesheuvel , Andi Kleen , Kuppuswamy Sathyanarayanan , David Rientjes , Vlastimil Babka , Tom Lendacky , Thomas Gleixner , Peter Zijlstra , Paolo Bonzini , Ingo Molnar , Varad Gautam , Dario Faggioli , Mike Rapoport , David Hildenbrand , marcelo.cerri@canonical.com, tim.gardner@canonical.com, khalid.elmously@canonical.com, philip.cox@canonical.com, x86@kernel.org, linux-mm@kvack.org, linux-coco@lists.linux.dev, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220614120231.48165-1-kirill.shutemov@linux.intel.com> <20220614120231.48165-11-kirill.shutemov@linux.intel.com> From: Dave Hansen In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/26/22 10:25, Borislav Petkov wrote: > Why do we need those unicode quotes and backticks in there? > > verify_diff: Warning: Unicode char [“] (0x8220 in line: + * “guard” page is accepted in addition to the memory that needs to be > verify_diff: Warning: Unicode char [‘] (0x8216 in line: + * checks up to end+2M if ‘end’ is aligned on a 2M boundary. > verify_diff: Warning: Unicode char [‘] (0x8216 in line: + * 2. Implicitly extend accept_memory(start, end) to end+2M if ‘end’ is > verify_diff: Warning: Unicode char [‘] (0x8216 in line: + * needs to be done to make ‘page’ usable. That work might include > verify_diff: Warning: Unicode char [‘] (0x8216 in line: + * accepting pages in addition to ‘page’ itself. I've been encouraging folks to stick their changelogs in a Google Doc (or even Word) when they're writing them. This gives them better spelling and grammar checking than is available in most editors and also makes it easier for folks to improve it collaboratively. I find it a lot more efficient than sending 10 copies back and forth in email. The downside is that those fancy programs insert unicode willy nilly for stuff like this. You usually need to catch it with scripts because it's hard to spot visually. It might make a good checkpatch addition, if it's not already there.