Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4445336ioa; Wed, 27 Apr 2022 04:09:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVQgS2ySxSpNoOnNT9yolQNisTnC2ZJ6JGNxktTfQp5KsqCJ7dH0p/GzCPeGG09HAGWC4h X-Received: by 2002:a63:69c7:0:b0:380:afc8:33be with SMTP id e190-20020a6369c7000000b00380afc833bemr23152044pgc.304.1651057769203; Wed, 27 Apr 2022 04:09:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651057769; cv=none; d=google.com; s=arc-20160816; b=bNQMWL/yfF2q8vJqKuFtjHaYiqo1AUXIRSJvjF2/TyMNU8VGcbHUbHEnmmGkA8G0OF 1VFJJrnMs0945F06r0tONAXElxs/q0t37NvTGRL9Y2VpaAPd4JKMCdcJiDXhi0SMzoWh ytbiA2D3oiFMpuuMTRy8eWMMyxUoP+f9PlkbjhyWTlA75paDe8OgjJspAJlZ/q5ohNA9 +7Z3gBPDYA+ezo7qy9zEn1TbZCh4VxJDwhSqvfQNp1dPqi24l/HxM1isidirmoAZ5E32 qLJnAI0164xtR8+At7iuT4+n49wI0aUzIeo03UAdl1Zwz2B/7K9DsUKE071Is5IgpScA +B0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=yRoS0e78MQ3Aw94WaIb6fXl1gKLeuGuUg52q3sQRmzY=; b=f/lhYke3y6ZQ+w/KWhO4SCbuHdX76v1EoGU34HfhO+1aqEtsdupEB5teQeQVYaWm5/ 7/8szN9wavqjmsQ4ctfU5E5DliF4mbVpZ+8iL/qdHeXjBmGCy7zN/73hYA3LZ2ieQy5r 4z6gHpxhnlUiTtEAluBQIX0BnPyS6b7g1YuUVYDDd62SngAx1WPCL3fMrAMJx/UKgyib jCCCIt/EmnWc/Jy8FES8RNjePsprwXXVuovhMgmEBPUDtlh/tswQ20xOWl2wkxkddJk6 oEtNTdpsfnW/gzRNA/ddUG7255jzwbm2odd0gIiWEzImP5Crsv/MHPk85jEXtQWoc2rr 3ykQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t3-20020a170902bc4300b00155f0855954si1161182plz.524.2022.04.27.04.09.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 04:09:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 51F2684A3A; Wed, 27 Apr 2022 03:02:56 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352966AbiDZQ1Y (ORCPT + 99 others); Tue, 26 Apr 2022 12:27:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345560AbiDZQ1X (ORCPT ); Tue, 26 Apr 2022 12:27:23 -0400 Received: from mail-yb1-f174.google.com (mail-yb1-f174.google.com [209.85.219.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3E54170344; Tue, 26 Apr 2022 09:24:15 -0700 (PDT) Received: by mail-yb1-f174.google.com with SMTP id v59so20995072ybi.12; Tue, 26 Apr 2022 09:24:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yRoS0e78MQ3Aw94WaIb6fXl1gKLeuGuUg52q3sQRmzY=; b=5eWtFbfJHZ8B/YJsY/hQi40pNOdAvkl45eDJTGHQSEW5CDLKdJcf0dWyySuFPhBa2e 5GyLcZCBv78OHa8No3GT412AhWT9WS07XDInbOZJ5SFITX88w7h11GeG04LwBgeDdvTu yy88roMGmEH9pb/tFRrJxClTYa+KAcW4B7cfgc3Q4EgdbUoHIS7qHYNVaDEEcQsXzS8n c/eOoDvbO2AwSJjlU9uOVjsDJlHkroJpT77RaKQq2pNxIF6IwYTbyS2qjO9ADePZ4YYf SyFXUGfmQlUIhXwLpurvb1s0s7FRI42XRar5Vvpo0QE2ENjN70UKX6CFoXkFqnY0Zocg 8Bbw== X-Gm-Message-State: AOAM533PGa4dWwo+baV7OO3+FZBuXkWqIoJX2OaPlgpcufSzJ24A6MpD LsZKvvweuWKYd/m8i6OmyjwUhD18Q8jdymVA4bF8tcbR X-Received: by 2002:a05:6902:352:b0:63e:94c:883c with SMTP id e18-20020a056902035200b0063e094c883cmr20762254ybs.365.1650990255156; Tue, 26 Apr 2022 09:24:15 -0700 (PDT) MIME-Version: 1.0 References: <20220423182410.1841114-1-matthieu.baerts@tessares.net> In-Reply-To: From: "Rafael J. Wysocki" Date: Tue, 26 Apr 2022 18:24:04 +0200 Message-ID: Subject: Re: [PATCH v2] x86/pm: fix false positive kmemleak report in msr_build_context() To: Borislav Petkov Cc: Matthieu Baerts , "Rafael J. Wysocki" , Pavel Machek , Thomas Gleixner , Ingo Molnar , Dave Hansen , "the arch/x86 maintainers" , "H. Peter Anvin" , Chen Yu , Pawan Gupta , Catalin Marinas , Linux Memory Management List , Mat Martineau , Ingo Molnar , "Rafael J. Wysocki" , Linux PM , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE autolearn=no 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 Tue, Apr 26, 2022 at 5:22 PM Borislav Petkov wrote: > > On Sat, Apr 23, 2022 at 08:24:10PM +0200, Matthieu Baerts wrote: > > diff --git a/arch/x86/include/asm/suspend_64.h b/arch/x86/include/asm/suspend_64.h > > index 35bb35d28733..bb7023dbf524 100644 > > --- a/arch/x86/include/asm/suspend_64.h > > +++ b/arch/x86/include/asm/suspend_64.h > > @@ -14,9 +14,13 @@ > > * Image of the saved processor state, used by the low level ACPI suspend to > > * RAM code and by the low level hibernation code. > > * > > - * If you modify it, fix arch/x86/kernel/acpi/wakeup_64.S and make sure that > > - * __save/__restore_processor_state(), defined in arch/x86/kernel/suspend_64.c, > > - * still work as required. > > + * If you modify it before 'misc_enable', fix arch/x86/kernel/acpi/wakeup_64.S > > Why does before misc_enable matter? > > arch/x86/kernel/asm-offsets_64.c computes the offsets and there is a > member like saved_context_gdt_desc which will get moved after your > change but that's not a problem because the offset will get recomputed > at build time. > > Hm? So can the comment be dropped entirely?