Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp175892imm; Thu, 2 Aug 2018 16:24:59 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd9vDcaz+7qvdNgHl3yGKDrtS8xRM1bLg6XYE9VKffW8oZ3TAII6XFvXm+cO3DK5EVuqEIe X-Received: by 2002:a63:d54e:: with SMTP id v14-v6mr1359758pgi.264.1533252299546; Thu, 02 Aug 2018 16:24:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533252299; cv=none; d=google.com; s=arc-20160816; b=sxolxSgUKOOHdRr7lSyvRa8l2uIhgLrqYfeBeH+NXpVwCJizYzpStjxsy7Ry/IB11F lBzY/yejNVKOIheqpsOWwber/uVOj+qCz/8+EzcPnwoO5g5aBAtiFNFfUD7uhe0NQUF8 djZSvW6hQ7akorZwUQl2ByUVDzEpRADspfd7WxX52IjBWZtDbA3tmCQL4VdpHUik9cWf 167zbhdE1qBfPx/JKAFodnWjhXHd6x2tL7FS+ibGxEXYQLWmkhgtCl55IuxZb1b1VdKa x473ffAV4HAEb2hU0KDnKfCGqDqCCNOa7MGOWahncxfeekGqNknRsFgi1+aa6u91ig5F 2IiA== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=RCtuSGlL/kSaQHW9BkCAZs3qniNHM5SlHpEw/Zdp01Q=; b=v5f2DwRAiFSYqoqzKJZqHq5nYxKFFIB1KwS/lQekAybP2IFW+IlUy723b52ev11uwq K/Ym5b6XuefrZLgM+4xfMWktra8AFqWb4t3uAXKVA1auzf7/lwrWhhxd732H0/sABnX3 i14th9R1wL+ose0j1QdsNQ+uGdnNCGMzSSDq88azVuirisv5wxMfF9EONzY0rqtdqKkK X0ToAbXhIRK84nwFR8dZFktSXEgt9jvjbXaLPn53ygnL0SmfNIlAhfGBzaVGzFwWWICg RU1CD20eop1V90rXxXj5ypW+rw61m5XRMitFo0aw75FU1T5+S42eGzWszYHhnkXCe0Cb ZWlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b="nI8788E/"; 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=NONE dis=NONE) header.from=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j30-v6si3434133pgm.26.2018.08.02.16.24.45; Thu, 02 Aug 2018 16:24:59 -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=@fb.com header.s=facebook header.b="nI8788E/"; 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=NONE dis=NONE) header.from=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731500AbeHCBRS (ORCPT + 99 others); Thu, 2 Aug 2018 21:17:18 -0400 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 Received: from pps.filterd (m0109334.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w72NNXtc030515; Thu, 2 Aug 2018 16:23:33 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=facebook; bh=RCtuSGlL/kSaQHW9BkCAZs3qniNHM5SlHpEw/Zdp01Q=; b=nI8788E/kJLqULKJM7Dthg290cmbA41gMgWKRq6O91WOwiQTw3vWT07FQz84pl7VkbpN GRLrWWBmlmyyK9HEWsZzyKp4ukXndVd+r0BegqbedTnv93uNoi/uw8YSjKj4ZrhH2Xku nWw/8yn3tkdlC2cozFUM64zhPDjErEOlVV4= Received: from mail.thefacebook.com ([199.201.64.23]) by mx0a-00082601.pphosted.com with ESMTP id 2kma09r8d5-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 02 Aug 2018 16:23:32 -0700 Received: from kafai-mbp (192.168.52.123) by mail.thefacebook.com (192.168.16.20) with Microsoft SMTP Server (TLS) id 14.3.361.1; Thu, 2 Aug 2018 16:23:24 -0700 Date: Thu, 2 Aug 2018 16:23:20 -0700 From: Martin KaFai Lau To: Roman Gushchin CC: , , , Arthur Fabre , Daniel Borkmann , Alexei Starovoitov Subject: Re: [PATCH bpf-next] selftests/bpf: fix a typo in map in map test Message-ID: <20180802232320.ad2az4baxindv3bv@kafai-mbp> References: <20180802224710.29662-1-guro@fb.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20180802224710.29662-1-guro@fb.com> User-Agent: NeoMutt/20180512 X-Originating-IP: [192.168.52.123] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-08-02_07:,, signatures=0 X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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