From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin KaFai Lau Subject: Re: [PATCH bpf-next] selftests/bpf: fix a typo in map in map test Date: Thu, 2 Aug 2018 16:23:20 -0700 Message-ID: <20180802232320.ad2az4baxindv3bv@kafai-mbp> References: <20180802224710.29662-1-guro@fb.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: , , , Arthur Fabre , Daniel Borkmann , Alexei Starovoitov To: Roman Gushchin Return-path: Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:34868 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726929AbeHCBRS (ORCPT ); Thu, 2 Aug 2018 21:17:18 -0400 Content-Disposition: inline In-Reply-To: <20180802224710.29662-1-guro@fb.com> Sender: netdev-owner@vger.kernel.org List-ID: On Thu, Aug 02, 2018 at 03:47:10PM -0700, Roman Gushchin wrote: > Commit fbeb1603bf4e ("bpf: verifier: MOV64 don't mark dst reg unbounded") > revealed a typo in commit fb30d4b71214 ("bpf: Add tests for map-in-map"): > BPF_MOV64_REG(BPF_REG_0, 0) was used instead of > BPF_MOV64_IMM(BPF_REG_0, 0). > > I've noticed the problem by running bpf kselftests. Thanks for the fix! FWIW, here is the verifier log: 11: (85) call bpf_map_lookup_elem#1 12: (bf) r0 = r0 13: (95) exit R0 leaks addr as return value Acked-by: Martin KaFai Lau