Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1162012pxb; Thu, 9 Sep 2021 22:49:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynZqAJ34kLIp6lacG9dYg6ZFdpkzEMuo7L4Jhcdj8gH67QXaLaa/RSSY2Ox214dE2QQlkN X-Received: by 2002:a92:6e05:: with SMTP id j5mr4983148ilc.252.1631252948822; Thu, 09 Sep 2021 22:49:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631252948; cv=none; d=google.com; s=arc-20160816; b=M1IpxX0061waCOqauF60E8HMRd0SC0rPoPni1cT8pWctoSgwewg1LhRSSq9y41PgT4 jFogJknHBNExy930gQebUrIQSRwoFmguSdxWwQS84f6yiGH4mFgczELP7DcqtAizIbSv hDVYh/H1uQKRGe3w6m4DsS3UIsXCrfyKAkaa264vPUU9ekitZugEqch06c/S2d/NOtQK k+1kFeMJN0t1nRYs+2uKwjxdjEZ+LHvYQoJVA1t7G4tnPM6qumuoDu0ZpHJ9+dF6QY5t mMe64WZgQR4uj5/spjmy8SAGZOTg1uNDSLeXtZaLQmip/zac6MGFfkc0F/9/ToS12DDC Aqrw== 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=mH1UQ3rz27cPwgA40Z4f7qN0UYmNZM3oblG/DPf4g4c=; b=I00nXMYznB/XRqLL8UXxfvEZWDHwJC3o0MiwMpw8IOZ9QAJx39PcefOqe0I0BRswQk RmAp6rdPFYfgqwaq4cNZDrBtTyXZ49h+xCh50AYAwcKKo30chCrfvKaICPZhV1nBTKrB KsMHBTLSV2AD93hworuUUzHhaULP5MVGZyeGNQpKVDnHsjopUhL7hbWRBZhb2Oh4hALj od1dNYqTO/JexHnwpeClJsR063afaNqgs4eCVxseLP6zaMWhBbFOakjCR3okHktRNEWK G2AEe2jP3yIx4QD/wiHqF7/PrnqESbyhx0KSfQcy6jxuRUoU82Jm3P6Ila2f2Xd3OVib mKbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=HI1Y6wbk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w18si3952835ilc.63.2021.09.09.22.48.56; Thu, 09 Sep 2021 22:49:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=HI1Y6wbk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230446AbhIJFt1 (ORCPT + 99 others); Fri, 10 Sep 2021 01:49:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:39310 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230324AbhIJFtZ (ORCPT ); Fri, 10 Sep 2021 01:49:25 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1B26E6113E; Fri, 10 Sep 2021 05:48:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1631252895; bh=y+g5+vYmyUBT33D8ySZgMhBpgV0mbcZV0/vKNAb2F1Q=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=HI1Y6wbkyVgz/bIiw+e47tBIHqeKoFOh5luupaOggukfgTNbnUkN68U86p4s4M+tK fpFbaSqX6Q4aLODt1Er2DLwUct/DXsdN8jF/GJrGsEgjWlGNe1IbQE4TZi4CMJuj/1 1Qy/IiNClojXHoFlWmYSIGS6MStf1/ST+gHqsSxY= Date: Thu, 9 Sep 2021 22:48:14 -0700 From: Andrew Morton To: Dan Carpenter Cc: Kees Cook , kernel test robot , Matt Porter , Alexandre Bounine , Jing Xiangfeng , Ira Weiny , John Hubbard , Souptick Joarder , "Gustavo A . R . Silva" , linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH] rapidio: Avoid bogus __alloc_size warning Message-Id: <20210909224814.7460f8dfa3134742b90b34eb@linux-foundation.org> In-Reply-To: <20210910045010.GO1935@kadam> References: <20210909161409.2250920-1-keescook@chromium.org> <20210909132752.4bde36ccf50720e56160f00c@linux-foundation.org> <202109091549.FF8E0C61E2@keescook> <20210909161109.14b147628de07ed7c20d84ae@linux-foundation.org> <202109091849.53C9A8AD@keescook> <20210910045010.GO1935@kadam> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 10 Sep 2021 07:50:10 +0300 Dan Carpenter wrote: > On Thu, Sep 09, 2021 at 06:52:27PM -0700, Kees Cook wrote: > > On Thu, Sep 09, 2021 at 04:11:09PM -0700, Andrew Morton wrote: > > > On Thu, 9 Sep 2021 15:51:23 -0700 Kees Cook wrote: > > > > > > > > That's an "error", not a warning. Or is this thanks to the new -Werror? > > > > > > > > This is a "regular" error (__bad_copy_to() uses __compiletime_error()). > > > > > > > > > Either way, I'm inclined to cc:stable on this, because use of gcc-9 on > > > > > older kernels will be a common thing down the ages. > > > > > > > > > > If it's really an "error" on non-Werror kernels then definitely cc:stable. > > > > > > > > I would expect that as only being needed if __alloc_size was backported > > > > to -stable, which seems unlikely. > > > > > > Ah. Changelog didn't tell me that it's an __alloc_size thing. > > > > Er, it's in the Subject, but I guess I could repeat it? > > > > This is how the email looks like to Andrew. > > https://sylpheed.sraoss.jp/images/sylpheed2-mainwindow.png > > Try to find the subject in that nonsense. Same for everyone else on > email as well. > > https://marc.info/?l=linux-kernel&m=163120404328790&w=2 > > I only either read the subject or the body of the commit message and > never both. :P I read the body if the subject looks relevant ;) But that subject reads to me as "rapidio: Avoid bogus *blah* warning". We have soooooo many alloc_foo functions that one's eyes glaze over something like "alloc_size" Why? Because the identifier "__alloc_size" is of great significance to Kees because he wrote the thing. Everyone else just sees "*blah*".