Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp9377486rwb; Thu, 24 Nov 2022 11:53:32 -0800 (PST) X-Google-Smtp-Source: AA0mqf6ipt5EZz5iit5gSSo++7sDil0kTzcm5h9Dg+13qUA3a+HEJeMlQxb+12S7nYPz3XHlRz+1 X-Received: by 2002:a17:906:f896:b0:7bb:cdd8:94e7 with SMTP id lg22-20020a170906f89600b007bbcdd894e7mr2255252ejb.369.1669319611946; Thu, 24 Nov 2022 11:53:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669319611; cv=none; d=google.com; s=arc-20160816; b=NoN+UVGJQktkoy6QUxSxyY2BwaB8y8wu/8JhTnD4M8k/xYyNxq07zbUxvRGq+XAcTs AzoVFdEymX30iNkgJPXiTOfmXIKYvT0WLrIbpCwNko4nZBKsz8OKHfVJB0zFn7u3ZvaL a+/GA+OB1UBCxgoRukSqHIsJPSHRSjybddazOY9hB2EPBnHgrpkH1B/N7wW92Agvdmf8 vhLFum97RxlicfLBtna+kUlE3pZtjv0Y1bRxzOmhh479y7TC80Rykl7/NNaB8SVYwcc+ kKyDjtefVbN0fSwqZzimzdSmS5l5+THy+FLSf9h933y3khe3fVx+XH1qHt1MlEG8dVER HpxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=Po3GEkNpow0o42mQIkQqNbvmpl2BoFlqLitRABpfmB4=; b=khU3/+8ncsMk29f7cJZWUpjRz0VC1wwSUcCMkVfXR+f1IqhTta2+uX1HZEw1JROPnq VuDzsootU7r0v5XPFNxRrnz5s2M6VF0YwDOTPYEKbvfos5yGj0fuCmgKTNeg4PTapuJb AbdeQ+IdSitkRUsX4TMiztv2im7oDJXO59FBGfMOxbjm2TD15RPY95MJMORQ/xaTxJJo sijy1GRLrBY2qlFEi9t9xFgx+Hk+1cSzBxUr9ymMCib83F7eth4XvMRWQw3Z3Cl5rCZs BD69PBXV3VnVl4kJxNpsx9cOmj0cDV1dfjWPmyBsWC/EvuQed+pBCpHQgWJv3/Gq30Rv V00w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=SU39a5DB; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hg3-20020a1709072cc300b0078fcfc5d24esi1281313ejc.618.2022.11.24.11.53.08; Thu, 24 Nov 2022 11:53:31 -0800 (PST) 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=@linux-foundation.org header.s=korg header.b=SU39a5DB; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229597AbiKXTdX (ORCPT + 87 others); Thu, 24 Nov 2022 14:33:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbiKXTdW (ORCPT ); Thu, 24 Nov 2022 14:33:22 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C5C282212; Thu, 24 Nov 2022 11:33:21 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B397DB821DD; Thu, 24 Nov 2022 19:33:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D94DC433D7; Thu, 24 Nov 2022 19:33:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1669318398; bh=G56naonxExe7awqWZ+LhcMgkDZMstSLkFYMHI57lu1g=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=SU39a5DBzMXR3TEnheVgcYN0443XrbpK2XZtZmfh8dhOCXZv7H18uGN8Gw1E5LbGG epCdVT9C/k2lKHeqsrKeuGUbhFegzpALqmpA+JpAdW/HI4aPlKaxNYcR6JnYI59I36 WqHDawhZv9UwCUt5ZAR4nrlJPcW4T6jstzu+ane0= Date: Thu, 24 Nov 2022 11:33:17 -0800 From: Andrew Morton To: Naresh Kamboju Cc: Linux-Next Mailing List , open list , llvm@lists.linux.dev, regressions@lists.linux.dev, lkft-triage@lists.linaro.org, vishal.moola@gmail.com, Matthew Wilcox , Jann Horn Subject: Re: next: x86: clang: mm/khugepaged.c:1428:45: error: variable 'pmd' is uninitialized when used here Message-Id: <20221124113317.37ca142d58b5e7efecd1facf@linux-foundation.org> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Thu, 24 Nov 2022 21:07:48 +0530 Naresh Kamboju wrote: > LKFT CI system noticed clang-15 build failures on x86_64 and i386. > > Reported-by: Linux Kernel Functional Testing > > make --silent --keep-going --jobs=8 > O=/home/tuxbuild/.cache/tuxmake/builds/1/build LLVM=1 LLVM_IAS=1 > ARCH=x86_64 SRCARCH=x86 CROSS_COMPILE=x86_64-linux-gnu- > 'HOSTCC=sccache clang' 'CC=sccache clang' > mm/khugepaged.c:1428:45: error: variable 'pmd' is uninitialized when > used here [-Werror,-Wuninitialized] > page_table_check_pte_clear_range(mm, addr, pmd); > ^~~ > mm/khugepaged.c:1415:2: note: variable 'pmd' is declared here > pmd_t pmd; > ^ Thanks. Due to "mm/khugepaged: fix GUP-fast interaction by freeing ptes via mmu_gather". Jann, I'll just do this for now: --- a/mm/khugepaged.c~mm-khugepaged-fix-gup-fast-interaction-by-freeing-ptes-via-mmu_gather-fix +++ a/mm/khugepaged.c @@ -1431,7 +1431,6 @@ static void collapse_and_free_pmd(struct */ if (vma->anon_vma) lockdep_assert_held_write(&vma->anon_vma->root->rwsem); - page_table_check_pte_clear_range(mm, addr, pmd); tlb_gather_mmu(&tlb, mm); pmd = READ_ONCE(*pmdp); _ please check.