Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1435422yba; Thu, 9 May 2019 17:01:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqxDsLdpyG1NdoSl1l7mNqV30qgIsT7Sr/QPgCVMx+SeZ9LW+48ffIE+zzx4zPxz1Yz3BzsE X-Received: by 2002:a62:5991:: with SMTP id k17mr6063807pfj.179.1557446514991; Thu, 09 May 2019 17:01:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557446514; cv=none; d=google.com; s=arc-20160816; b=Q7RuqhtHblxPA5/r3neUCEgHedguVIW+EOg39kPnzvBb+QNMbS15h7VdhDYauYcwgR bVem5wS+rjDJawpOQomcSN/smoYby9FaabHldUjmWokGurmMx6lj7ffWhCT4d4Y4LHDx u2qmW78i4GutEJfngHFEJK97u+1onLuMe4I4bjy2/caf6DW9bb9/WyA4MUjG0472aAVC XlJsKVCRDpH+BLL1uaBcAhBHRisABdWjTpis5kz8QOox3iTFuBlUfYl8R3A7Hwlduwvl VRG6dTTfm+IEPAwzGCA7aukO/BVPZo9kbtT2AqWA14eYlhQcjGemKwnOZF8FgXNJpQqJ 5TEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dChVqTviUJZkhAEyGEloPZUsbHeVi+nAadOc17lt/xI=; b=FivJaLbIBSdLt/pHvYFhaxfljs+diS5fDUlAAdGfTt8L4vyKrXXaRQhmzwLMuX7ab2 gulIqI/nML117VSFoC/d0/UPGDszgQftFCDYXANjPO+fUq+qGkduQrBoWT9CR18uvIXG TFumLZWdNIzOjyr/FQDyYWQFLbm253PqiWHFeGAg1Crx9waPwRXZup48U4XgUGTNIfLH ijJNClcHgR4aNi1P/4Pbmpg2v27IDiB7DhCzU9gTf46EyBZ35rcysqVr0YoWB90vHmH6 aPyQlTiO2meS58QL19ab0B0917LK8CMTI3tS7qt+Cn2pcmBlkR8a5cbLd4eLAswx3TVp 4eDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=F8YiX69w; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a10si5072012pgw.90.2019.05.09.17.01.35; Thu, 09 May 2019 17:01:54 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=F8YiX69w; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726823AbfEJAAf (ORCPT + 99 others); Thu, 9 May 2019 20:00:35 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:40147 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726694AbfEJAAe (ORCPT ); Thu, 9 May 2019 20:00:34 -0400 Received: by mail-pg1-f194.google.com with SMTP id d31so2027984pgl.7; Thu, 09 May 2019 17:00:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=dChVqTviUJZkhAEyGEloPZUsbHeVi+nAadOc17lt/xI=; b=F8YiX69wMj6uWvqG2gj8rKD+5JmXiGDvRhtfdWy7mtV4/+PV9t2Gswew4nGi+VrSMw VP+qiGJpDxrx17QBJQYFkLDpPg6Fdd0PceCoPIXyh1/7Rkk9G65Nc3Fmd6a6/2WrtLja N53kTp0zZWxOEAw0sTOGCrvxsng/iIjvQ521OoNTKoVdjLz8zsTHW/q0IkJZTZygapzj govaj2K6lqprTecx4biOocaOEUBt/DaMXbNZ0R7UKsrVf4sr8UDCkjRTv7f+ZF6hly2M atatsJ0iDQ4SSC06pbmOTDDFMtU1puaTBZp84W/FVFpOiKM6NgaTl6STaSR+5FULa9I5 XQyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=dChVqTviUJZkhAEyGEloPZUsbHeVi+nAadOc17lt/xI=; b=LaHPBeqcmNAyt6DeRGaaH3IBkPJsH/22xbnrVNCllQ/nMUCO4UkgluGUDBVaYcITHL A+bwZb1NzRUMs+4M7k/PlkpOCuA8aeBS0xKSdj6kXk95PGf79qTUOJ1NKyFNWUqF3H2v MYPJXC08jRl7btl52+2tWA7rjVu7PzKHnyA1Vy8203X+JVp49tE5Pi7HdGAKcecd1lRp 19qzs3MEhpuKu/1GGYI4bXk827/YkWxfDxiCn4sgSQgn6nAGznz3T5p5kvq7fSRV8edJ usnnjcNw++2Hx58JCq68+pIrKPnZfhbpIIA5zTGcbvBQT70gPKaGEO2bgCv5iCW7xmYC M1Gg== X-Gm-Message-State: APjAAAVJs7qZFfdD1jjfhns1usXrySv8f1PQc3XXb7+aRyVcbWc1LSnN GHJIXFF9MeI3kEokVT3xeIA= X-Received: by 2002:a63:1d05:: with SMTP id d5mr9280001pgd.157.1557446433356; Thu, 09 May 2019 17:00:33 -0700 (PDT) Received: from ip-172-31-29-54.us-west-2.compute.internal (ec2-34-219-153-187.us-west-2.compute.amazonaws.com. [34.219.153.187]) by smtp.gmail.com with ESMTPSA id u7sm4342389pfu.157.2019.05.09.17.00.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 May 2019 17:00:32 -0700 (PDT) Date: Fri, 10 May 2019 00:00:30 +0000 From: Alakesh Haloi To: Alexei Starovoitov Cc: Shuah Khan , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , "open list:KERNEL SELFTEST FRAMEWORK" , Network Development , bpf , LKML Subject: Re: [PATCH] selftests/bpf: Fix compile warning in bpf selftest Message-ID: <20190510000030.GA81841@ip-172-31-29-54.us-west-2.compute.internal> References: <20190507231224.GA3787@ip-172-31-29-54.us-west-2.compute.internal> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 09, 2019 at 01:51:54PM -0700, Alexei Starovoitov wrote: > On Tue, May 7, 2019 at 4:12 PM Alakesh Haloi wrote: > > > > This fixes the following compile time warning > > > > flow_dissector_load.c: In function ‘detach_program’: > > flow_dissector_load.c:55:19: warning: format not a string literal and no format arguments [-Wformat-security] > > error(1, errno, command); > > ^~~~~~~ > > Signed-off-by: Alakesh Haloi > > --- > > tools/testing/selftests/bpf/flow_dissector_load.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/tools/testing/selftests/bpf/flow_dissector_load.c b/tools/testing/selftests/bpf/flow_dissector_load.c > > index 77cafa66d048..7136ab9ffa73 100644 > > --- a/tools/testing/selftests/bpf/flow_dissector_load.c > > +++ b/tools/testing/selftests/bpf/flow_dissector_load.c > > @@ -52,7 +52,7 @@ static void detach_program(void) > > sprintf(command, "rm -r %s", cfg_pin_path); > > ret = system(command); > > if (ret) > > - error(1, errno, command); > > + error(1, errno, "%s", command); > > } > > it was fixed month ago. The warning is seen in mainline. I did not try bpf tree. Looks like it is fixed there. Thanks -Alakesh