Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp562897rdd; Tue, 9 Jan 2024 12:21:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IG3/W3mi6UmZkF/92UQa484sl+h0N5QPHEMf75E7F7uifSjOC4/Dv6A+otr9df+UfnnfxnM X-Received: by 2002:a05:6214:29ed:b0:681:1d6:b17a with SMTP id jv13-20020a05621429ed00b0068101d6b17amr57795qvb.42.1704831672786; Tue, 09 Jan 2024 12:21:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704831672; cv=none; d=google.com; s=arc-20160816; b=Fp9l4vkRnBDk8Xqq34zGfwsnpGlEAH7drn+VpPLOeVgn/BUD/kW74LZ0u7K6znT2f7 WBAaK68yKEWOXoiKtaV2mxVsRVp7CUlJaya9N6CwLl7DpLBNpXEqCICvYh1HDZoMiFmT pWgGtetGd++6rcwJsGx1xOzPLE84vfSqQu5o0Y3qttjP85yegGUcr4+7Hbwh6GYnawZf AVhn9QQU4BZrsXLP9QiMVB5Gl4+RU4nead1vmigx5jwaO9Q7139Y9vXV3TSU4tU/cbfe yOFe/5VHikNTNbuY36RnVl7RCk4kzp9ACqFcKJtMJfavpFHl7ElQwgRHbROv3OuRtvLv ymJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=QsIoSKglu4ryrH+jRp289bT8nGdMILaGliKRCQE7CUM=; fh=L4o+tm5iYR2ipNpMb8+n5R36S3zt1IPaIZB5G4Udj0I=; b=dyftW6jI6cHWXbB2KZEPobuImL4DdVbf/8RrWM8GK3M/VoNcvJKQaEhVpFGk8bm9fR 5/6D3N6Zzi5/bIkWLwaZQ2kOtn/7zwXLmNm2ItLBQg+cpZ9KQEasos6G2k2m2BDbKVSu tlvyoMrFeoYsoEiisNG7MP4Gs1mIFkupLxyiJ3aSLIGMlPuTpq155O+gvHhKAmOolKAs MjfubbQftifNMAkbteLFZ5oDdQueTjSaMHhhI8c7bxO9pcefThaMX7jqxp6aJSBp2S+K /YzXWY/x1bTUwck/f0nbCGwyq78Imv6WN0wzEeXY5UdQD04+ZDZjdX6OzBQXUkdyRNqz Ko4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PkZxrLZg; spf=pass (google.com: domain of linux-kernel+bounces-21387-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21387-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id o10-20020ac85a4a000000b0042979fd72edsi2876197qta.321.2024.01.09.12.21.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 12:21:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-21387-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PkZxrLZg; spf=pass (google.com: domain of linux-kernel+bounces-21387-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21387-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 776591C213E5 for ; Tue, 9 Jan 2024 20:21:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ACC3D3D972; Tue, 9 Jan 2024 20:20:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PkZxrLZg" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C60C03D57E for ; Tue, 9 Jan 2024 20:20:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1CC59C433F1; Tue, 9 Jan 2024 20:20:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704831655; bh=zNLo/Y/idoJX6WUQvS4qPeFbgVPUY8X1rT89iLSFhHw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PkZxrLZgnzdnsSNTzd4/bzsLG8aiSqaESKbZ6hAAnpUxnuv6q9+InSxGodrA4Ff/C 5h027+nOJ12dFxz62qJvvoyD4kjaILl/8EFjgkjVqJMJMhAGseY199ucn/MliBlXUf DGluldcamMNIxaAxGgxLkcM5LAuXOyHiuV/QjumOd7GPfkJzPHZHnEQF0xYwv+tMbm jOvq7J/lBmJaBSfqJO8XdCKye0bGYPsCEnCUcRLZYJ8RF97XGSieU+4+bx2tFjle9X L1FfiSvOtTpJYnzLkqbleSZomShGQcRTtHkLGAqP1lKr5lAk1b78AXE27ntRgJa502 odgkfWbZBMM3g== Date: Tue, 9 Jan 2024 12:20:53 -0800 From: Josh Poimboeuf To: Dimitri John Ledkov Cc: Ingo Molnar , peterz@infradead.org, x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/3] objtool: Make objtool check actually fatal upon fatal errors Message-ID: <20240109202053.ee26nc5kk5u5edrc@treble> References: <20231213134303.2302285-1-dimitri.ledkov@canonical.com> <20231213134303.2302285-2-dimitri.ledkov@canonical.com> <20240109192447.yhl37mwaw5jdkxjs@treble> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On Tue, Jan 09, 2024 at 07:48:30PM +0000, Dimitri John Ledkov wrote: > > Note the latter may be problematic at the moment due to some outstanding > > warnings reported by Arnd and randconfig build bots. I try to fix those > > when I can, but any help would be appreciated. > > I guess we can override CONFIG_WERROR during dkms compilations, but > then i still want to ensofrce OBJTOOL errors. > > How abou introducing CONFIG_WERROR_OBJTOOL and make CONFIG_WERROR > select CONFIG_WERROR_OBJTOOL? such that distributions can start to opt > into CONFIG_WERROR_OBJTOOL for production builds, even if they cannot > yet make the jump to CONFIG_WERROR? Seems reasonable. Though, keep in mind that even compiler warnings can cause boot failures and security bugs. So I wouldn't recommend sleeping at night unless your distro also has CONFIG_WERROR=y. -- Josh