From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754664AbdJSOEn (ORCPT ); Thu, 19 Oct 2017 10:04:43 -0400 Received: from www62.your-server.de ([213.133.104.62]:38007 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753973AbdJSOEl (ORCPT ); Thu, 19 Oct 2017 10:04:41 -0400 Message-ID: <59E8B0F1.40509@iogearbox.net> Date: Thu, 19 Oct 2017 16:04:33 +0200 From: Daniel Borkmann User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Mark Brown , David Miller , Networking , Jakub Kicinski , Alexei Starovoitov , Edward Cree CC: Linux-Next Mailing List , Linux Kernel Mailing List Subject: Re: linux-next: /home/broonie/tmpfs/next/kernel/bpf/verifier.c: References: <20171019135523.w7ljx34hyx7422nb@sirena.co.uk> In-Reply-To: <20171019135523.w7ljx34hyx7422nb@sirena.co.uk> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/19/2017 03:55 PM, Mark Brown wrote: > Hi all, > > After merging the net-next tree, today's linux-next build (x86allmodconfig) > failed like this: > > /home/broonie/tmpfs/next/kernel/bpf/verifier.c: In function 'check_mem_access': > /home/broonie/tmpfs/next/kernel/bpf/verifier.c:1010:12: error: passing argument 1 of 'verbose' from incompatible pointer type [-Werror=incompatible-pointer-types] > verbose("dereference of modified ctx ptr R%d off=%d+%d, ctx+const is allowed, ctx+const+const is not\n", > ^ Yeah, the verbose calls need to have env passed into them: verbose(env, [...]) See also the note below '---': http://patchwork.ozlabs.org/patch/826449/ > /home/broonie/tmpfs/next/kernel/bpf/verifier.c:173:28: note: expected 'struct bpf_verifier_env *' but argument is of type 'char *' > static __printf(2, 3) void verbose(struct bpf_verifier_env *env, > ^ > /home/broonie/tmpfs/next/kernel/bpf/verifier.c:1011:5: warning: passing argument 2 of 'verbose' makes pointer from integer without a cast [-Wint-conversion] > regno, reg->off, off - reg->off); > ^ > /home/broonie/tmpfs/next/kernel/bpf/verifier.c:173:28: note: expected 'const char *' but argument is of type 'u32 {aka unsigned int}' > static __printf(2, 3) void verbose(struct bpf_verifier_env *env, > ^ > cc1: some warnings being treated as errors > /home/broonie/tmpfs/next/scripts/Makefile.build:313: recipe for target 'kernel/bpf/verifier.o' failed > > Caused by commit > > 28e33f9d78eef ("bpf: disallow arithmetic operations on context pointer") > > interacting with > > 61bd5218eef34 ("bpf: move global verifier log into verifier environment") >