Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp585041lqo; Thu, 16 May 2024 15:30:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUrgrBb54qNWLLNRw2xZFxLozbYB5oAINE3hS48ToJmWQKnffYIxLWiTDfjtM/oCIuClSmMn++7atTGgkHRl1US75cXb8yAQsQaD13oHA== X-Google-Smtp-Source: AGHT+IG/OUZfYxkPNFcvo9P/T/Wx/SfTAmyjzsXTSoARIxyAmCt29GC3aDcEkGJMNtSeXiCsdnk+ X-Received: by 2002:a50:8757:0:b0:568:9d96:b2d1 with SMTP id 4fb4d7f45d1cf-5734d67e8b9mr13155591a12.32.1715898612917; Thu, 16 May 2024 15:30:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715898612; cv=pass; d=google.com; s=arc-20160816; b=JJxev93Ba39xoPZFsmcRgswK+86fVppAS3imyW/pD+pBOuuYQeegjvep385Rz2Uk+H yAG1WfeMbvdHmRVKeWkbXUvyhSoj/uCuxZ9hGQcKw3YM7ge+RiIIiNpa0iuyuO0ofpq0 TQh3d8SRdgEMd/egVuYmaNgAdRXN4MRsU2vl8il6jfB3odEMRHwsCT/Rukpe3uQ7updY wml+YetE3hiHrBGJ/XgnslF5YKTnqcQV2sKd4WyIj2g6olLsecxebYxJmmHL5Uh/gK/B 59vAnNshdlf8rYSr3dWjh8cfupsa5SeU77+E+pKnEfXxhIzlp6ePGZDpydagbzi/gzLG jZxg== ARC-Message-Signature: i=2; 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=hxv5sqy4ckTc1L4pK/+kikfrwo0o601loVWwBqZZcRA=; fh=GBzV8ov+MVdNUau4cDn+dj1HWVGKS8j1kNCnaS/C0pQ=; b=WAMMNqoVWSSSEAsXfU92lQO5frpGUWwA6AdiekCYjRh8KGTiMP1YEp4VCqd8cQV/oo YfLqMB4UF8P3CqQYJQ51jorTSKwoNpkr95ukAiK/WNWHOEm5jkWyzKZkHsNUIBO98sUZ SNJ84YPX6fJHXTdg1ANcjPm6N4wiLMpIzk+uh7XlWznpYkurncLD7Dd3ijd2HmiS9DoL dJTDmDbYb+Ed2IW3WSEM91u/KCLSy8oxlzP4q75Fyaa+p8GpBfYMgMCflKNe5rsEllDb hSIsWFsZ0P4DvV71XGlTq0bPJkLkA7Y54r8q6xRQEaQz8zmMhGWCmM+Xl//23F3FxJhP MyUQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=oKOTPOm0; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-181609-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181609-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c3271d4si9067951a12.350.2024.05.16.15.30.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 15:30:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-181609-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=oKOTPOm0; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-181609-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181609-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 am.mirrors.kernel.org (Postfix) with ESMTPS id A1C4B1F2251C for ; Thu, 16 May 2024 22:30:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4CF823A1C7; Thu, 16 May 2024 22:30:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="oKOTPOm0" Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2B8CF19E for ; Thu, 16 May 2024 22:30:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715898606; cv=none; b=OCMccY0jW8mdfu3m4qAXVfB3jPHeZE/hk+fi5E1PLSdHkpLOG9xZNuiDEO1zWlqLD+HGCT2yI5P1QiAfWlF3Oy69lD8NMVkwZCbRn6kqci6FcW//rcClAR0nl3y0tBdUG7TekD+EBwjQ3XbQfrq+GDCTdGmHhB943ymUa4cmEhI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715898606; c=relaxed/simple; bh=bxJEArpiEg25RQVYJ7nQ2XjgM8pmuWp4LpMZBqOClSg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DEmBAW/G3iH1XuAaDt1N1DqvGeyDmxrpHoLUTdkHPM1lSK9rp2NZuvtQLZO+kXchTcyLCynsvEDZZgfBNe99KUZ/Qf99RnHmSAneFLi2iGVz4BzngYMUyKjCSLTLQyPQJ0nR0iAqMjjO+btTeOytSoJFGH+qeASBc7a+ju4XvEw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=oKOTPOm0; arc=none smtp.client-ip=209.85.214.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1e651a9f3ffso218055ad.1 for ; Thu, 16 May 2024 15:30:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1715898604; x=1716503404; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=hxv5sqy4ckTc1L4pK/+kikfrwo0o601loVWwBqZZcRA=; b=oKOTPOm0cF6YZHXG39HygnpLjkLYCHKVRctrkfe0HOzqj6cq1poZt+Y2szOiA/TOfd p9JgjJyVXHGh8r/+ySsSlaFLaIhgHw0cNdtmDItEF1LfTqvXm1/s0poxHG22CRNwXNym fjFcRjZGAMSFh09qIxwPkI8VwCRbKLo9BJTH8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715898604; x=1716503404; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=hxv5sqy4ckTc1L4pK/+kikfrwo0o601loVWwBqZZcRA=; b=qgsdYSXWRPl2+UWwFwwr1YKvvJ88pC77YYXw1cIo3+1IIFJ5RmgwE1+OJpKB0DJL9R ZQ7S44m87o8F0S3DJhUrQxT4c/ZDwLE/pRJPsvA0n89kkpNAeniX/Z2gCi3R4OJ0s75R M0MghiQyS7Cab2IVTEUT64Y5Tel+Uy86t/5BJkFQ7dViS5jYTQVTrxS6PUT8V9CCkCTF S7C4zKM6DS2X4A3wOLWB2RN83gLsn3OnkLn2LNeuMwadKoj1pbWL4/Qzh14JEE7VoZAl 8l7FpR7tdWs37anOj67IXX8cLRavN/XxJzBV/1OiqewZ7Df1mGDJb93a/XotUSlYAtel jQaA== X-Forwarded-Encrypted: i=1; AJvYcCVLegmsgdrtQPBwKnDJ5RS3Ave25sAFGR3NtjfG4fYHLhfIVRV1ObfGNQp6w9yN/LZT+efsh6JFzfxsjXI/9tfvogL1ftmhpH879ELI X-Gm-Message-State: AOJu0YxbC2GFQ48+lqOUsCyHAxIrshaL1JSRpqsLYM1i44gcslpoezd/ p1nsmFW7tCceF6JE4jKNFNwGhJTapQQ2DsvkTBE8e5tbSn9fdLEgEhbGkp8Y1w== X-Received: by 2002:a17:902:dacf:b0:1ec:c9e0:c749 with SMTP id d9443c01a7336-1ef440505a0mr240359545ad.48.1715898604590; Thu, 16 May 2024 15:30:04 -0700 (PDT) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1ef0c1394b8sm144923735ad.271.2024.05.16.15.30.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 15:30:01 -0700 (PDT) Date: Thu, 16 May 2024 15:29:55 -0700 From: Kees Cook To: Mark Brown Cc: Andy Lutomirski , Will Drewry , Shuah Khan , Edward Liaw , John Hubbard , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] kselftest: Desecalate reporting of missing _GNU_SOURCE Message-ID: <202405161529.1D2B5F3CCF@keescook> References: <20240516-kselftest-mitigate-gnu-source-v1-1-a0e814ff2874@kernel.org> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240516-kselftest-mitigate-gnu-source-v1-1-a0e814ff2874@kernel.org> On Thu, May 16, 2024 at 04:28:48PM +0100, Mark Brown wrote: > Commit daef47b89efd0b7 ("selftests: Compile kselftest headers with > -D_GNU_SOURCE") adds a static_assert() which means that things which > would be warnings about undeclared functions get escalated into build > failures. While we do actually want _GNU_SOURCE to be defined for users > of kselftest_harness we haven't actually done that yet and this is > causing widespread build breaks which were previously warnings about > uses of asprintf() without prototypes, including causing other test > programs in the same directory to fail to build. > > Since the build failures that are introduced cause additional issues due > to make stopping builds early replace the static_assert() with a > missing without making the error more severe than it already was. This > will be moot once the issue is fixed properly but reduces the disruption > while that happens. > > Signed-off-by: Mark Brown Reviewed-by: Kees Cook -- Kees Cook