Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2601287imm; Wed, 16 May 2018 16:01:37 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq/PF6tdyZT7M4lnvTj0qenuLxJkMwU3hd1ivZlAIxu3ZWWPZva4BsvMLZa2G37La9BgePj X-Received: by 2002:a63:7113:: with SMTP id m19-v6mr2265792pgc.154.1526511697839; Wed, 16 May 2018 16:01:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526511697; cv=none; d=google.com; s=arc-20160816; b=CcOCf1aNyn97V5r+JjwtRXd+/ycxlZhg8pc8utf2jRbjmmIvP7LaDoNxnzMSu2yyPx lfMmAsm+Y7zi0jVbZG2OL1GjLuZKZTF0kfTNSWAfKKFjYYEfC3p2gnKR2iWzpjie1Oyn Cu6RK8pMA6qzxaU9CLDYXdmR3UNIW5GMd6vPV6Y+VEZgn2XLJAqPe2cCf14/e/gfmWQG AhTgoW3cCW07YX94Jv8/+9IrkJbMcWMEa0435ylexDYFgKqyH4QcUkHLb4+LlC3YPgwE PzFms2Qu1Svf8I983WtsNoUmvF5pTjMqgcR43eQsQPK4ATAwAvKFeRWJGfYG/MhJ0lJV f/pA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=a8IpI7tPaut8zbFigEqNVGaIBeC+uY+uVetMDISZdHo=; b=FTKzdjxQ3wTFIfGTm3XtYPKxA2mzbfR9cUUYjHStY/CpK+C3J9M2rBsTm2HBOGHA1p SiMrloIrnCtUD2D2M1E2iTPvwFeLMpDLdeSsdp9vDHbDFSBc8XLbpS1tckuElnt8UF+J hBUTuAHLwUyQ9Dp1JbqJRBO1c+kiSkn0WF2msOKiD0Pc3eRn0j3Ex2Tr1WsOejRHqp0c p0u/q6iyFeqS8EKYZ0ZKdGr1PrpaaBkfmJNYxELKgO2DSP1ejsRHSn3ZQUFLimG49v/f mohEZvjiUoBIibBqqnRKJqnoJgwcxmIaNlMjKuTsFKBLRNiVCpZsCdWXXikizGa4FbYU Afsw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k7-v6si2898780pgo.98.2018.05.16.16.01.23; Wed, 16 May 2018 16:01:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752378AbeEPW7y (ORCPT + 99 others); Wed, 16 May 2018 18:59:54 -0400 Received: from www62.your-server.de ([213.133.104.62]:48296 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752348AbeEPW7t (ORCPT ); Wed, 16 May 2018 18:59:49 -0400 Received: from [62.202.221.10] (helo=linux.home) by www62.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-SHA:256) (Exim 4.85_2) (envelope-from ) id 1fJ5Oa-0007X2-Uq; Thu, 17 May 2018 00:59:44 +0200 Subject: Re: [PATCH] bpf: add __printf verification to bpf_verifier_vlog To: Mathieu Malaterre , Alexei Starovoitov Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180516202741.20861-1-malat@debian.org> From: Daniel Borkmann Message-ID: <9d240de3-7997-1899-fb91-d9fad24f4af6@iogearbox.net> Date: Thu, 17 May 2018 00:59:44 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20180516202741.20861-1-malat@debian.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.99.3/24576/Wed May 16 22:33:39 2018) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/16/2018 10:27 PM, Mathieu Malaterre wrote: > __printf is useful to verify format and arguments. ‘bpf_verifier_vlog’ > function is used twice in verifier.c in both cases the caller function > already uses the __printf gcc attribute. > > Remove the following warning, triggered with W=1: > > kernel/bpf/verifier.c:176:2: warning: function might be possible candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] > > Signed-off-by: Mathieu Malaterre Looks good, applied to bpf-next, thanks Mathieu!