From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) (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 696A180C0B for ; Mon, 15 Apr 2024 16:14:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713197681; cv=none; b=mlRCbqmV57W+72OPm/kDfMQToy59H26vNPJrPytMWK4RZfUYMBTc4dWw2wO21lNlPRrUuhoTWXFdJ3h+10B1WSPtWMqJvxw/BFs//NQuvQwplM4JlfJ9mDzYFx6aBKAoGzkOUtUueksgfN/e6KSkdK5JAGm4OuDqSSJSPqbCg0E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713197681; c=relaxed/simple; bh=rquWVadfj6Yy0WoSxsb5IHBjslGBtA7x3EuuyCTZdjk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=cLTBCmti0VizaDDarWKrndSfVECyb/Ue6AqYfDmCrIkCdQsnMENd13PDy4TmudeCOwhwwx4RNGln47wGpslXXJneyMyXxcQt06rGg/5Q/HpiZHMvSjFMYxyIybZ3r/aZgDe2AIj3/JAcJ8l7NZcm5vBuHZTggiVfiCDjM3JzTvk= 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=GiUzGe5z; arc=none smtp.client-ip=209.85.210.172 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="GiUzGe5z" Received: by mail-pf1-f172.google.com with SMTP id d2e1a72fcca58-6ed054f282aso2353299b3a.0 for ; Mon, 15 Apr 2024 09:14:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1713197680; x=1713802480; 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=ESjTQEjB6T8D9BX5RBjgYE4FpXh9kObuptxS+F5zuE8=; b=GiUzGe5z34BY6zeJdhN3wvu0a7PYCIf7nq+L6SMWCrkLKL0xwDlp74JrEysCkeKn4y /lOGr1I0d8rPqTFMlHRq2gPfVbMt0DUwV/jvOmJb/itGJNRXPk9v+yOWaNw6/xHHxrxx qwvVsfU04DHg9KedMTBM6pFBfUhBb/DYlCyHs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713197680; x=1713802480; 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=ESjTQEjB6T8D9BX5RBjgYE4FpXh9kObuptxS+F5zuE8=; b=JJnBUySrYT0ysoYzyzhfC/D0tOYJhvizL/FyBKXuB4D5ooAYRxsXrvDIQFybn/8FhX agi0yQjWcWtFR3fLLlYnv7CaNIgQFduylJwi/IYnXG4hLjB3+DjTxnMYNfMdrBuB48Cp kqWKiHq/cd3/oJKR6V17kWGkPgNkmdXrmu4ZZiVePWBkYvT0nm7xyuGi+IMaJyUv0lh7 D/vhhBOSrLHmpI5TMFfFIIGTV0CxcSAbCGy5wXpNp/dE/TljmzM8SWMkA3fpQ1q7shmS eKg1zT4xdBX0rvQSv+zOGIXg6fjJmEayYkbOe1rmTRWl1k/TxVNi4h8n1zYXLbiaL/3x 8C6A== X-Forwarded-Encrypted: i=1; AJvYcCUhuNMvwG6i7Kl4IwBBndm7zG0/4jU8rv9NP3pTX7i1CdBtiyVzEpsSSl6hFb2DGzYeea//1SuqayTpfoFU+NKB4Uzm54QOpYQC3G9G X-Gm-Message-State: AOJu0YxXuERiskMjd7T158HRH5jYPbYnQdaWqtts3UmqapImhpIa/qf+ BLwWTppqoPRYhRxvKMSveJm5mqcAaw5lQw9VgbOVSexqvQR3YBmfHhTP3CjTTQ== X-Google-Smtp-Source: AGHT+IEe1jv52+Td77XuCCAwHJ71uxuy0azFMdvGaqzkxeNt/5dBr0b2bIK8CztJl0u2nID5zkc5Kw== X-Received: by 2002:a17:902:cf05:b0:1e5:a3b2:3da2 with SMTP id i5-20020a170902cf0500b001e5a3b23da2mr9918860plg.53.1713197679742; Mon, 15 Apr 2024 09:14:39 -0700 (PDT) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id g9-20020a170902934900b001e45c0d6be6sm8070099plp.246.2024.04.15.09.14.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 09:14:38 -0700 (PDT) Date: Mon, 15 Apr 2024 09:14:38 -0700 From: Kees Cook To: Arnd Bergmann , Gatlin Newhouse Cc: Andrew Morton , Arnd Bergmann , Masahiro Yamada , Nathan Chancellor , Nicolas Schier , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/6] [v3] kbuild: turn on -Wrestrict by default Message-ID: <202404150909.E703A96D0@keescook> References: <20240415122037.1983124-1-arnd@kernel.org> <20240415122037.1983124-4-arnd@kernel.org> Precedence: bulk X-Mailing-List: linux-kbuild@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: <20240415122037.1983124-4-arnd@kernel.org> On Mon, Apr 15, 2024 at 02:20:34PM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann > > All known -Wrestrict warnings are addressed now, so don't disable the warning > any more. Ah, great! Yes, I know Gatlin was also looking at this and doing a bunch of builds across compiler versions to verify this was ready to do too. Gatlin, are you able to provide a "Tested-by:" tag for this patch? -Kees > > Signed-off-by: Arnd Bergmann > --- > scripts/Makefile.extrawarn | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn > index 8b3f5b62b837..95466a04d51b 100644 > --- a/scripts/Makefile.extrawarn > +++ b/scripts/Makefile.extrawarn > @@ -98,7 +98,6 @@ else > # Suppress them by using -Wno... except for W=1. > KBUILD_CFLAGS += $(call cc-disable-warning, unused-but-set-variable) > KBUILD_CFLAGS += $(call cc-disable-warning, unused-const-variable) > -KBUILD_CFLAGS += $(call cc-disable-warning, restrict) > KBUILD_CFLAGS += $(call cc-disable-warning, packed-not-aligned) > KBUILD_CFLAGS += $(call cc-disable-warning, format-overflow) > KBUILD_CFLAGS += $(call cc-disable-warning, format-truncation) > -- > 2.39.2 > -- Kees Cook