Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp3290719rwl; Fri, 6 Jan 2023 19:48:03 -0800 (PST) X-Google-Smtp-Source: AMrXdXtP/FbtB6zo0SHtDE0eOsTS0O/i+6mQpe6phXyqB9t16SHZs1yqCKpJGrWZMrdH8EhVYejB X-Received: by 2002:a17:90a:30c:b0:226:42ea:28cd with SMTP id 12-20020a17090a030c00b0022642ea28cdmr27902086pje.16.1673063283216; Fri, 06 Jan 2023 19:48:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673063283; cv=none; d=google.com; s=arc-20160816; b=HuvAmL5ZxF8fbUUeNQZII03fbsW/7Z6CYTw8D8/XWmpT2bvu9KavO/JnM8MQ8tInE9 XgWgx+435zR9L37S0qxLQS06tsopehE14Ed/u+sh2+YlS9OTe4DT60/iDJqmMQLbMMQj kVscoAGqMtWH2dZfwU/CjSiM6Sfgx7iXNGhY8CTOg7LOY2KMvS26ZAx0f27G4iV32C8R 0Kl5f5jVw2o35IKQt4LnrbZPz29/Fl9uHbyNcJGiF2BReQErhppo1a5pU/BvK8NyKttf WBxE0vJy7oj10OIFmqFZP/E8TlRDiLoqiH/CN2GtB+yPE7EdePNxbdcp4uU8scS1OIf+ f3vQ== 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=VMfQ3uq1odA82eivq7VcVQuvgFttX9dWjFIyoHkP5tw=; b=FGoV4Vq2G8d0udhAgw1iiKAJODbJcGfqDJqtnuap1xlRRQPET2R0pOHxhapUUYUoAb w1b8OKrJREQnU7M4qxXSIYc4L9Bm083hVd06bzkOVRFHOE5oggHnGpA7kjpvDJmF2KE2 HJ5on5ZupzoVUVtPtFejrvopp7nt3zl6HpS8Lg6LJISssTq75B0QFfZyNiXABC9Mk6Z1 DgEwgyGWCpdyfusnlojyWGED7vmMtjMYtHDJGMdt/xOWkiysLOWls8KoDSd5XxE8bCWE 61InSYJkrxVzx4EHr5YICpsKiWZ8vuvcNMPeMmz2hz3uhcZfksg47+rDwPpXmJ+bIrjW vyPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DT7+qx0h; 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 lw16-20020a17090b181000b00225f9fff787si7597612pjb.146.2023.01.06.19.47.55; Fri, 06 Jan 2023 19:48:03 -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=DT7+qx0h; 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 S236803AbjAGDka (ORCPT + 57 others); Fri, 6 Jan 2023 22:40:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236595AbjAGDkU (ORCPT ); Fri, 6 Jan 2023 22:40:20 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 456D6392FA; Fri, 6 Jan 2023 19:40:19 -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 F2574B81F69; Sat, 7 Jan 2023 03:40:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id A130AC43398; Sat, 7 Jan 2023 03:40:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673062816; bh=UpPvmBZ/3uKf6H9B1YivTCuwPZPhCdDuPzTR9p3eAh0=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=DT7+qx0hVXR2+wbBiTIeGD4lF0LROCBh/jtgLJ2u3MfC7ExL3diexmaWMLiD6pM9+ mJ1sHsgiZdqBy5ypq/V4zhsf4u0w6UzNmO9X+uNgNv2sbRIVLLLSJ4LNJy+VLRTsDR aMOtAEL1GFqkUdwYVCrogyycJAuShdJ7qy7zyP7FfAbDTUgtAO7Iro8MOGPEnXd4Oo q9ig6D4QwhtM0hDaElfZI9+32ScU7KSv7wu8Rn7bGVMQ35LLmQ3MyohGLoUAf3FHRh CtcrfH/OWwfymOHDkJhjkE78XNdeVH5grCyPDq8zapU+6fPEnq6XNBSpgfPZ8UDv1h WujaBK6uEtVTg== 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 878AEE270ED; Sat, 7 Jan 2023 03:40:16 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] net: ipv6: rpl_iptunnel: Replace 0-length arrays with flexible arrays From: patchwork-bot+netdevbpf@kernel.org Message-Id: <167306281655.4583.686951198014366097.git-patchwork-notify@kernel.org> Date: Sat, 07 Jan 2023 03:40:16 +0000 References: <20230105221533.never.711-kees@kernel.org> In-Reply-To: <20230105221533.never.711-kees@kernel.org> To: Kees Cook Cc: davem@davemloft.net, yoshfuji@linux-ipv6.org, dsahern@kernel.org, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, gustavoars@kernel.org, netdev@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 netdev/net-next.git (master) by Jakub Kicinski : On Thu, 5 Jan 2023 14:15:37 -0800 you wrote: > Zero-length arrays are deprecated[1]. Replace struct ipv6_rpl_sr_hdr's > "segments" union of 0-length arrays with flexible arrays. Detected with > GCC 13, using -fstrict-flex-arrays=3: > > In function 'rpl_validate_srh', > inlined from 'rpl_build_state' at ../net/ipv6/rpl_iptunnel.c:96:7: > ../net/ipv6/rpl_iptunnel.c:60:28: warning: array subscript is outside array bounds of 'struct in6_addr[0]' [-Warray-bounds=] > 60 | if (ipv6_addr_type(&srh->rpl_segaddr[srh->segments_left - 1]) & > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > In file included from ../include/net/rpl.h:12, > from ../net/ipv6/rpl_iptunnel.c:13: > ../include/uapi/linux/rpl.h: In function 'rpl_build_state': > ../include/uapi/linux/rpl.h:40:33: note: while referencing 'addr' > 40 | struct in6_addr addr[0]; > | ^~~~ > > [...] Here is the summary with links: - net: ipv6: rpl_iptunnel: Replace 0-length arrays with flexible arrays https://git.kernel.org/netdev/net-next/c/e8d283b6cf0e You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html