Received: by 2002:a19:771d:0:0:0:0:0 with SMTP id s29csp1268260lfc; Wed, 1 Jun 2022 13:39:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyC7MObYIkZ4waJwb0WeIGBLoo5HlM6TQxCup+fd5pDhhbpWLVWksLpg15baNHxDFxOhizE X-Received: by 2002:a05:6a00:2403:b0:4fd:e84a:4563 with SMTP id z3-20020a056a00240300b004fde84a4563mr1364872pfh.60.1654115947945; Wed, 01 Jun 2022 13:39:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654115947; cv=none; d=google.com; s=arc-20160816; b=d0KUNPe+RMredXTdREvD840cqiqBYaOHK4+0TXT+jXeql2p45Mzm8q/ewFWPHq2Wvj z6J+3vn/aS936VX9pDqm585XHsEhSjH6NwngGDv3BhI4+qAe+i6WEmp0gWF8exAu3hiI C20CFS3Nu5zV7zKvnTT3PUAUHWGqCBTV4RDjV9Ydm7jlbmFRnUqIFCYmhXgL1MpVyyDO ZufaZq1oTafb/STvBfIpiHgzYnyb4X9DHvrc6Q+mUKyzubamyeHR5nvPh6vgWtpWZXfu xL2ah+neJf/Xpf1DozzdbV/tnpbC+obf+l1K5z12LHbgydBUcnpKL3KT3uNI2KP94xpa F7rA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=k1wgkZaBMZb6Gf3fmTqCK4yLMn/aMEzARqKqZHQ7u9Q=; b=DCk9dH91yB1nsdWFBwldYYtGWHQgfHQAPQJJM91EV39uTpdaSZQp+ip6qoPERdEfbx VSQnAPMwk4t+v3zsiPl1MzhiU/OPZl2XbyHbeL2USNtOK6ZGcl4awkMqDKKVn1rZqVXB jDgf0KCBpnKNf0/dEmAgMPaLTuKJDyKfiMUDStcb7DlxB286LTJCGKZXj9HVblVUGQ1x OP09hU6a8d1DklWtzFp6qa3jaYqcTQFghdoedhyBW+O/uRMgwLQZd5/zvdAMsJVEsa1F UH3HY7Vv6zRVU70IDwLph7KT42m6N/RjjZN8R+rtt5ordYHd78nWMEAVD+mi7OMykVnJ LrRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HnAjj9VX; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id cv1-20020a17090afd0100b001e66a5bf063si2009658pjb.64.2022.06.01.13.39.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 13:39:07 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HnAjj9VX; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B964D28B5D3; Wed, 1 Jun 2022 12:47:35 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354935AbiFAQkO (ORCPT + 99 others); Wed, 1 Jun 2022 12:40:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242316AbiFAQkN (ORCPT ); Wed, 1 Jun 2022 12:40:13 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A43E86FD03; Wed, 1 Jun 2022 09:40:12 -0700 (PDT) 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 61273B81747; Wed, 1 Jun 2022 16:40:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C2E35C385A5; Wed, 1 Jun 2022 16:40:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654101610; bh=ngWabIAgFRbmBczx0Ejy4RsHzpCNzNviJplGolvHT0c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HnAjj9VXETvo30txPzcJ4+0j/fYt5VhwG+7ZqNtCyTOYs96QDdelxNJfI0hEljfEv R2hFfUZnSF/qTCxuK8IAH1R4Y2ou8npXxQFY5GAsHBiSmy0YfPsXql4WiShxYczI+a kAC7BDnKZorjSdiOQBTMPFTJpe5FFTabQ9uezl3fLHa09bbVSD7VQcPyektYArxfde gdd4rbP9IjHRaKdMSa2/xnpndYIIuwBLbVK6dhei9pL+F71VBEkihqEe4b376deyvC nK6lb4m4/2MuCob1V2JbpNvaSkMEmx3kZrKmp41zj54c8GhlwnEs9rQdEgrH+/H/aK K68jEw3Q9QJ7g== Date: Wed, 1 Jun 2022 09:40:06 -0700 From: Josh Poimboeuf To: Lukas Bulwahn Cc: Josh Poimboeuf , Borislav Petkov , Peter Zijlstra , kernel-janitors , Linux Kernel Mailing List Subject: Re: Reference to non-existing config X86_SMAP in config UBSAN_UNREACHABLE Message-ID: <20220601164006.2f34nr6a7wgx25ja@treble> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Wed, Jun 01, 2022 at 12:50:47PM +0200, Lukas Bulwahn wrote: > Dear Josh, > > Commit dbae0a934f09 ("x86/cpu: Remove CONFIG_X86_SMAP and "nosmap"") > from Borislav removes the config X86_SMAP and makes smap on x86 > default. > > Josh, your commit 03f16cd020eb ("objtool: Add CONFIG_OBJTOOL") makes > config UBSAN_UNREACHABLE in lib/Kconfig.ubsan refer to this > non-existing config X86_SMAP. > > See this hunk in lib/Kconfig.ubsan: > > diff --git a/lib/Kconfig.ubsan b/lib/Kconfig.ubsan > index f3c57ed51838..c4fe15d38b60 100644 > --- a/lib/Kconfig.ubsan > +++ b/lib/Kconfig.ubsan > @@ -94,7 +94,7 @@ config UBSAN_UNREACHABLE > bool "Perform checking for unreachable code" > # objtool already handles unreachable checking and gets angry about > # seeing UBSan instrumentation located in unreachable places. > - depends on !STACK_VALIDATION > + depends on !(OBJTOOL && (STACK_VALIDATION || UNWINDER_ORC || X86_SMAP)) > depends on $(cc-option,-fsanitize=unreachable) > help > This option enables -fsanitize=unreachable which checks for control > > I think X86_SMAP can just be dropped in this line, but I leave it up > to you to change, as I am not completely certain on the needed change > and if that just breaks the config dependencies for stack validation. > > By the way, this issue was identified with the script > ./scripts/checkkconfigsymbols.py Hi Lukas, Thanks for reporting this. I'll post a fix shortly. -- Josh