Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp8538923rwl; Tue, 10 Jan 2023 15:13:09 -0800 (PST) X-Google-Smtp-Source: AMrXdXvxBr64D+ItgYfC3A0MoenILDjwuyZTL6rPRIGknAd0bURzGjysCIYlQu/f4bzpRIM8f9w1 X-Received: by 2002:a17:903:2448:b0:192:7845:e0cc with SMTP id l8-20020a170903244800b001927845e0ccmr733416pls.68.1673392388958; Tue, 10 Jan 2023 15:13:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673392388; cv=none; d=google.com; s=arc-20160816; b=DqYMH8nvN+wRPP/yGyQrh9kIJ8tMM9NnZA+T0OD4AnTK5FsTRMdN/A5Hl02sbyVkGs iA1ngHidBTpK3J3HGJhnGVJqGvq4OLneyuvN0y3qxj2FvT7Ixbj3ymN88xLE9xjC3I0i oKWQJ6++RtoqvshAV9ooT56W5XtYodimQbtx5MerMvDz9Nw4qsgZCzry9GkGmxXweoq0 cOXjTPgL120cfTG55h/zaUDgcBNJ8iwULU8WPIKuN/5s8twKnggTHSxsjPRqXASdoKCc jY9uHeqT7kGTzzLCU7UzFaWL1k17jz2Qz4dCbsbhYOYWqTST3SwnxSJOId+xzVPFJWCC dChg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=gbMcii81CHfSqE+9v9X/Di86+X0OJlAt5oo072pX6xA=; b=dqVFNe5Q5KblRpgRlazHpiCKKTIQjb7TjbHcIht2RXzizvM6yhcFdQ+zjHnLwioYaM +3v2nkvAMDyK20um349oCnI0AhftFtZL+OrPjlb0G0AM4KNsMKY4O7Bm/uW8uvXwKFvb iY8hCP72xA2FkoiLAGYPkT2G9fgIUEg/YOsIXcBtnE54Hc/A7EPhXSeGjR0iNFEJi71N twByRAeCGH3O20v44l2+nQiGDKLXwKvbYrmO4oVUHO05zUm7xz49XrwU9piwroqGuBHB mzOw2BtxvqiALOVXlr4ZjxBPG+alSlJt5L+IkdU0k4C1h2BCIIa4pZG82ACjJ6oQ18eo +img== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uRZ3G+h1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b2-20020a170902d50200b00192721d6a97si14119223plg.499.2023.01.10.15.13.01; Tue, 10 Jan 2023 15:13:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uRZ3G+h1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235763AbjAJWw3 (ORCPT + 55 others); Tue, 10 Jan 2023 17:52:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236083AbjAJWwB (ORCPT ); Tue, 10 Jan 2023 17:52:01 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2F08671A2; Tue, 10 Jan 2023 14:50:25 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 84108B81A00; Tue, 10 Jan 2023 22:50:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 1B247C433F0; Tue, 10 Jan 2023 22:50:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673391016; bh=DmMuyWhMTg0J1NdZwCFfQoKhQYQFxAiKWqSxSoll1x0=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=uRZ3G+h1AaNdw4ODj6yv86kUWrOC2ujxKksv3KEByAwCzpy6GpXW3znPp07VTUDXi iSnG53XmoTe2XiDdw7WxbfGcpMxrrLZVFRDaIlGL6fjnf72Ek+e/IaIJaGqAZAsWKW 0HAvc+jf/MwK9gLd+lb2ehPiV6E3/FRNB0M1g8wefCnq7WoRJ+sXMklD8EiZLef8zx 8KslucT4696OXef7lrC2DIA81MWpPq5nzBGQMJfg4P+I2RofPr/M2xhiBa664GXpCo HbXdjhsHdZpZmBx6v2Qsh+6WubYVga2Q/wQNzQbLIEHEiKaOhyt/pX9AlKcQ4uVSvt fldXHbtt/zsVQ== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 00533E21EE8; Tue, 10 Jan 2023 22:50:16 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] bpf: Replace 0-length arrays with flexible arrays From: patchwork-bot+netdevbpf@kernel.org Message-Id: <167339101599.28902.5327791124067545987.git-patchwork-notify@kernel.org> Date: Tue, 10 Jan 2023 22:50:15 +0000 References: <20230105192646.never.154-kees@kernel.org> In-Reply-To: <20230105192646.never.154-kees@kernel.org> To: Kees Cook Cc: ast@kernel.org, daniel@iogearbox.net, john.fastabend@gmail.com, andrii@kernel.org, martin.lau@linux.dev, song@kernel.org, yhs@fb.com, kpsingh@kernel.org, sdf@google.com, haoluo@google.com, jolsa@kernel.org, gustavoars@kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello: This patch was applied to bpf/bpf-next.git (master) by Daniel Borkmann : On Thu, 5 Jan 2023 11:26:47 -0800 you wrote: > Zero-length arrays are deprecated[1]. Replace struct bpf_array's > union of 0-length arrays with flexible arrays. (How are the > sizes of these arrays verified?) Detected with GCC 13, using > -fstrict-flex-arrays=3: > > arch/x86/net/bpf_jit_comp.c: In function 'bpf_tail_call_direct_fixup': > arch/x86/net/bpf_jit_comp.c:606:37: warning: array subscript is outside array bounds of 'void *[0]' [-Warray-bounds=] > 606 | target = array->ptrs[poke->tail_call.key]; > | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ > In file included from include/linux/filter.h:9, > from arch/x86/net/bpf_jit_comp.c:9: > include/linux/bpf.h:1527:23: note: while referencing 'ptrs' > 1527 | void *ptrs[0] __aligned(8); > | ^~~~ > > [...] Here is the summary with links: - bpf: Replace 0-length arrays with flexible arrays https://git.kernel.org/bpf/bpf-next/c/129d868ede1e You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html