Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp54443img; Wed, 20 Mar 2019 13:57:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqyQY5F6G/vcBvhYgOYulwHCT68m6A8o4f6JU37kuCBcvUYq9WgbP0hMBINMfrZ04152PFk8 X-Received: by 2002:a17:902:2e03:: with SMTP id q3mr9885063plb.166.1553115421297; Wed, 20 Mar 2019 13:57:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553115421; cv=none; d=google.com; s=arc-20160816; b=0sZPvj4cHnDZSRQewqTDf96W9o/JfG68B1t2F1aF1B2ZrOBb00CjQn3Z3MQ4UQvThH Pps7EbmOwlkcvD2bu7jCn80oGdJXewpV8ssMY/xp60z7mJGZssUPLNtaM/bQmO6X6wg5 yPmiETSp2PllkcwKIzWy7Wxo8Q4i5lPHnzw7gDq+7E6KudTRBgc+9scgPitzJLhOvyNm 6rLlAkrJHeDcjWCtCbJXqYpWIo+as5Pe8L3dD+6W7BCmFxnWtzHnpNVO0Xi6X8lB91Mb jwOVwliMSlfB35jN95hJRusNUr3WlKmA+4EPEQqybpZh/lTuk7yz6z0gCx37YxAd6dP3 1cvA== 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:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=nmNX47cZo5NsoZSR0o/fEP6tWKwZHsvTNVNPkN8GvRQ=; b=05KyIT+MZZB6+rM80vjXbgw01XRhCaEHEvyduo/avhaoDIFWR+79D2uM/MjN+GjLkO mpa7gBkyNqVodctXRdS/LXEGTzcyl3grMX52bSayJ4a71pLH1T/6iKtRnwpdp3ZiAsEU /fib4de0rAsXjXWC91JQWr8/ZKlSWQjVofVXzo/rWCsilnogyWG/c8SmgUXRBsNqs5U+ i+JwMlJaJixgG9PFhDLMqt2habgq+ARG7MI8WXqSX0KT7tggi8tgYPLpfaJXbk166gtq bMhdgjeH0fjSivMrFDgK8p49uSPNX7J55tafDkqZ0ts8FVMJ4oVTc+8U9DUWH760UE6q J2jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=QtqtAKOC; 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 o16si2620800pgc.327.2019.03.20.13.56.45; Wed, 20 Mar 2019 13:57:01 -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=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=QtqtAKOC; 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 S1727581AbfCTUyO (ORCPT + 99 others); Wed, 20 Mar 2019 16:54:14 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:34388 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726647AbfCTUyO (ORCPT ); Wed, 20 Mar 2019 16:54:14 -0400 Received: by mail-qk1-f195.google.com with SMTP id n6so15029605qkf.1 for ; Wed, 20 Mar 2019 13:54:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-transfer-encoding; bh=nmNX47cZo5NsoZSR0o/fEP6tWKwZHsvTNVNPkN8GvRQ=; b=QtqtAKOChAatdnuxZ5CFDvsOCxbE7YzukOhiborUrLxxqzg+Wiyzx0ZSZKjL2WJpQ+ 75MN3aA+lW+uUuvvW1Z0GdRnrru7NmLEDvnFU2p4oTICZA299nnWvGwnGRYljPZbq2lP oEKIjFbQYPG5DfDVXiROAG5UbwGU0jUOy2WyqWwt8leJZwdJ0NlmQoDxOxv1rTKgYmiD 364cXuK3riYJlJcyEVD5TCJyealvfLJvl0PDovqr8n7G+HFtu4RI5LkxnHm/XMp1bMsi j//jYVzyeoBpRHOJjgibyJXiVs/4rqpn8QW/OKIPxoPvmmYHwVP/pfFLDeGhlFlaeDwz KbFQ== 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:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=nmNX47cZo5NsoZSR0o/fEP6tWKwZHsvTNVNPkN8GvRQ=; b=q8JN+13N68zsC/Gw41voh55ahlR1UdUVrD66x4Xrq9ag11VJnd0Ykd+yQNthKA1QFT aMIUaDcdFd4PDTuLY5KB4sV0K/6U81EdOz+o4BMFJzi+S0mnUWG/Dcz0zPiJpKge9W6N qsfulWf6KbOw1/V6OcWLfCoSQwSv++a8RRJhVfLCbwrplX5e5IBTxwjjwoGVPGL+ZHyu gSIXrDl0jC9BKeaSa5bi2nJAjAVlUhY1PzlDzdRNGYVNxLF4Wjx//Ftoig3TjKlMdrl/ kgqJgYE8OgmRJudwYPNDOiUdadAsAEt+3Rp2iSWZ1giBb05MUtAYmQcoA0lKCXDn55+U GdnA== X-Gm-Message-State: APjAAAX2szbr2RtIHKTa69gIpKkBGATg4S4WGzoFubuplzRCXtjKZx99 rsTY9+fl0yIXN37lAncbwkciivhYjzQ= X-Received: by 2002:a05:620a:15c4:: with SMTP id o4mr8572933qkm.175.1553115253518; Wed, 20 Mar 2019 13:54:13 -0700 (PDT) Received: from cakuba.netronome.com ([66.60.152.14]) by smtp.gmail.com with ESMTPSA id p46sm2340818qtc.41.2019.03.20.13.54.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Mar 2019 13:54:13 -0700 (PDT) Date: Wed, 20 Mar 2019 13:54:09 -0700 From: Jakub Kicinski To: Alban Crequy Cc: ast@kernel.org, daniel@iogearbox.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, alban@kinvolk.io, iago@kinvolk.io Subject: Re: [PATCH bpf-next v1 1/7] tools: bpftool: fix infinite loop Message-ID: <20190320135409.7b67c208@cakuba.netronome.com> In-Reply-To: <20190320173332.18105-1-alban@kinvolk.io> References: <20190320173332.18105-1-alban@kinvolk.io> Organization: Netronome Systems, Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 20 Mar 2019 18:33:26 +0100, Alban Crequy wrote: > From: Alban Crequy > > Symptoms: when forgetting to type the keyword 'type' in front of 'hash': > $ sudo bpftool map create /sys/fs/bpf/dir/foobar hash key 8 value 8 entries 128 > (infinite loop, taking all the CPU) > ^C > Please add: Fixes: 0b592b5a01be ("tools: bpftool: add map create command") here. And submit this one for the bpf tree. > Signed-off-by: Alban Crequy > diff --git a/tools/bpf/bpftool/map.c b/tools/bpf/bpftool/map.c > index e0c650d91784..994a7e0d16fb 100644 > --- a/tools/bpf/bpftool/map.c > +++ b/tools/bpf/bpftool/map.c > @@ -1151,6 +1151,9 @@ static int do_create(int argc, char **argv) > return -1; > } > NEXT_ARG(); > + } else { > + p_err("unknown arg %s", *argv); > + return -1; > } > } >