Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp765677ybt; Fri, 10 Jul 2020 11:47:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMu1K52oROQJqej2/lj8foCKbQFGWo4CirNpWV/HUoiI4awF7LZExDyDmzs6zsv6G+X82r X-Received: by 2002:aa7:c816:: with SMTP id a22mr61840479edt.28.1594406855037; Fri, 10 Jul 2020 11:47:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594406855; cv=none; d=google.com; s=arc-20160816; b=G7X5GiMQ5Qdn3v9AxmFAatIeW/1rOFrJ92RYhmUmAbQ76e4bIStnZNlft9w9lPd2gz BM/FdcjSHqyMtU+VCt5+864c8tU8P7NuLSXhqiu+zzZaQf6VYnnX6Isci6MEOvEitXL7 f8PmKtf//frICA4UeDNXy/df/vHMjxNqUY4icY/NCvoDsJwjKa93p7U4xzpJ8mPPbGuQ mQilZAH9wc9p0wR8HomvTvuLkEUx/raWYKjTE/HHOW7ntNRkE09OaBSHRPRLAZ7KY171 JfEZy1cUq4o+XdVgrfYdtTAU5iVAR1uVj72AgaHSrP1cCtSWI6zGjlEnuLGfr1tU05KY suCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=DWR/kYX/X9VuxY7GMojpR4V7v0VHZ65RP2JxAjwnR38=; b=cO2CFX00VY31IbHSgWZAvm9qz2SeUkdhS201u2LVxrxmjnSRZYgplZuIJXsuwaielf 62zd8nYWEUcWqBRuGmSvQ7aUOq6f6piAtNC6uRlbYm9Oq7OOIhASAO8Qh71uEK1eQbrg YVUAmaLFF/Tc332XhC584cL6aN20xLdzuv3idk2gJVp+7cCbMmZBpxkCgHxq8q9T+7jD zbeJrYr60jvoZXxcN1R8ha0qegxeFn7sLG+8gVv4Taf4hB1SRBHERSLgcHU0musxnPnU ORiqM7NBve2NJv0vLsRFCrlW2PCQFxMoFPSYrYoIg9AHy/I224Maz0xAuwMOoytwF/SZ j1Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=l5gl0TkB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id dp17si5942868ejc.285.2020.07.10.11.47.11; Fri, 10 Jul 2020 11:47:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=l5gl0TkB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1728013AbgGJSq4 (ORCPT + 99 others); Fri, 10 Jul 2020 14:46:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727082AbgGJSq4 (ORCPT ); Fri, 10 Jul 2020 14:46:56 -0400 Received: from mail-qk1-x743.google.com (mail-qk1-x743.google.com [IPv6:2607:f8b0:4864:20::743]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB7BDC08C5DC; Fri, 10 Jul 2020 11:46:55 -0700 (PDT) Received: by mail-qk1-x743.google.com with SMTP id l6so6266715qkc.6; Fri, 10 Jul 2020 11:46:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DWR/kYX/X9VuxY7GMojpR4V7v0VHZ65RP2JxAjwnR38=; b=l5gl0TkBFcz4FatWZbM2MVdQlypsD/dhoBl/fAqtJjpbPBsd1erfgc7RSlVR1HZHzd DJu/vszKVL/lOK3EkS6AHGldMu24KAHoYTRsl8xb5X7nIRRmxGgJOsNC7OLTMwmM6tBP tWfabSKhUtmB+CuC03O5xRR+ya9ysnUMwv+NZDw2zH/yFl3KxazAvpnN0L50Js2fShno IK81IUdeT3YiNR0kxlX3jaWSgGqS0q/20TEfwVLrW6SLyLYT+FKgwY4YxmBfb6UL3W5L PTInLPQT0nLLmGfvtOSmIJBHZeHo23aXTVzicgz1vMPhK5A/SQNpos4/OU9CDQJ2etTE nThw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DWR/kYX/X9VuxY7GMojpR4V7v0VHZ65RP2JxAjwnR38=; b=mR8WdOQqk4BIMhjelJ5GToepecMfSGetGfoRkl1tRHHlrTJo0Sr/Wyo67b3cBCkJl1 236PCOlC3deILbVo9FN/SWBr1Vpay+0W+Pmx/IPQnXirVL8OopJdPZmX9GylgkVvQ2b9 sBcAEeClz8uTWnmAj+L266w1b20U2Gl5mmOR8AGR4r2jmhpuFZSs2rpjuZMRPUynqZ4V 6oJUK5OnbtACrYiMyhCXXq3DQ1FUO+EkcZv9UG0lYFmlyRSU9qDuVfi8ADQf1CVB58hZ VGs2yr/aYIDKLh7/HzOj9weFxGs58Tt6puIpvyzMWrM16h2EldPjiVs2LPnrdoXv1O5W JQQg== X-Gm-Message-State: AOAM532ySL7hqnH8OlTV88cSL9JshMzUdZLFd6f/8hWXvmHxX+vwIff6 /ttHEqY4x/WVS6hWN2+VAlodAw0EuLo0+XSkg+cBoAAD X-Received: by 2002:a05:620a:2409:: with SMTP id d9mr72382500qkn.36.1594406814958; Fri, 10 Jul 2020 11:46:54 -0700 (PDT) MIME-Version: 1.0 References: <20200710092035.28919-1-ethercflow@gmail.com> In-Reply-To: <20200710092035.28919-1-ethercflow@gmail.com> From: Andrii Nakryiko Date: Fri, 10 Jul 2020 11:46:43 -0700 Message-ID: Subject: Re: [PATCH] bpf: fix fds_example SIGSEGV error To: Wenbo Zhang Cc: Alexei Starovoitov , Daniel Borkmann , Networking , bpf , open list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 10, 2020 at 2:21 AM Wenbo Zhang wrote: > > The `BPF_LOG_BUF_SIZE`'s value is `UINT32_MAX >> 8`, so define an array > with it on stack caused an overflow. > > Signed-off-by: Wenbo Zhang > --- Acked-by: Andrii Nakryiko > samples/bpf/fds_example.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > [...]