Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp3305723rwl; Fri, 6 Jan 2023 20:10:17 -0800 (PST) X-Google-Smtp-Source: AMrXdXsoIFqpbM4ZOJDbVJlvAw69j0OfCj72Da3AN4kfY8fY4P3ZM7Z9aIBm8/mNtSe5Xsn9mJYH X-Received: by 2002:a17:906:99c7:b0:7ae:b637:633f with SMTP id s7-20020a17090699c700b007aeb637633fmr66748320ejn.4.1673064617206; Fri, 06 Jan 2023 20:10:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673064617; cv=none; d=google.com; s=arc-20160816; b=D++0FJof+DWB1g3gTWy4yS7daDx/7WpJF089iOMRr8sfY/Ls8REyh2t9IjO7GINUup Ny4jTgzGpTsBh88JebWIBgfsz78h3U3hgjk4eLSaLKW3X1bcnUIpCVDpX6ixTz2uAIoA OLeo2nbfwcZ211XWQRPUOnIzg1V0q4K6Bci9l87inGRprFsKkIboTOBepmJ2NO388+f0 7epTdTnO9aTTmoRgjX68Vcrh7/YdGXATpSrosLUPuVg02DP44B1FleaRVHp9I9PJufr7 txSToSl2Z/qwjwnP2JblBxAErLziPmosEyxQbD9OXWobRHNymOoB107evWARGq1cmbhi 3BpA== 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=kI+Dp19CGa6U4ex5tHth+/UfGfs61Yxj3cdXT16l3wk=; b=txJc3pOtQpmKg6Z/153vjQKPA/gwRcj1Rp2zSCdDgxbTkl1FFl9cE174x8rMx7fpe7 4DGuIQe/df1KEWvfWqOhheVk7U1WxAbyUyPS53/3cwfIEoVF72c5DQiudhR2vgDcYgXg GH3leNZrvTr48MNy2ZwnHZ3DuQ5bklK7MZA+rdivGe1YEC0CdQSRJov13TcIrJJQH+uq +/ykd2i4t1cRvqWPt27NiDljcxDyTa+VvpBMBbcEvgMre8gtBGLhadhbqG/3BeiHfrll I1aNdOGMDSGp42vINC4FMhY7AoXVgan3Ai87zTAgURF4YsmXdUtKmnToS79WUfFXik/n Z+ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SWo1F1QR; 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 xb13-20020a170907070d00b007dd1da8cd85si3333911ejb.126.2023.01.06.20.10.02; Fri, 06 Jan 2023 20:10:17 -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=SWo1F1QR; 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 S236838AbjAGDkf (ORCPT + 55 others); Fri, 6 Jan 2023 22:40:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236596AbjAGDkU (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 3CEBF392CF; 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 DFA55B81F67; Sat, 7 Jan 2023 03:40:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 94473C43392; 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=thCvlrZlqYnb3OcMTSgDe+HD0TYa2VCQSo8wYGdOx+k=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=SWo1F1QRf87ubl4G+5lNxhy7yP3ESba33DNXRRPqdREH0HRaRy4DUuXbAZ6Y6Ytz9 p90x5lH4o2JcCCfGEzTCgWHR/oQyfGmF9od5217tXgqPcYHxK7oMN4qwKjl1fvGYsv F38ZVwEokM20M6hRaYAJogZi8cbuEG96gD/4Vrskm49icSvykz3l3ICG10r28rFTgI yp/RHvScyK777ZqRwihvodkJW9t5CF0VA3/204kwhw7OafyZpbxOTKTJCnB0CnbD9C /aV4QUDYpjuQCU05vtV8xsoPR0p4nkGe2qgqaWuyzaA5bZMnQFJ0P/lJOhBzDr+wBg 4IZVivf29zvng== 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 7F80BC395DF; 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] ipv6: ioam: Replace 0-length array with flexible array From: patchwork-bot+netdevbpf@kernel.org Message-Id: <167306281651.4583.5175258501631877655.git-patchwork-notify@kernel.org> Date: Sat, 07 Jan 2023 03:40:16 +0000 References: <20230105222115.never.661-kees@kernel.org> In-Reply-To: <20230105222115.never.661-kees@kernel.org> To: Kees Cook Cc: davem@davemloft.net, kuba@kernel.org, justin.iurman@uliege.be, edumazet@google.com, 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:21:16 -0800 you wrote: > Zero-length arrays are deprecated[1]. Replace struct ioam6_trace_hdr's > "data" 0-length array with a flexible array. Detected with GCC 13, > using -fstrict-flex-arrays=3: > > net/ipv6/ioam6_iptunnel.c: In function 'ioam6_build_state': > net/ipv6/ioam6_iptunnel.c:194:37: warning: array subscript is outside array bounds of '__u8[0]' {aka 'unsigned char[]'} [-Warray-bounds=] > 194 | tuninfo->traceh.data[trace->remlen * 4] = IPV6_TLV_PADN; > | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ > In file included from include/linux/ioam6.h:11, > from net/ipv6/ioam6_iptunnel.c:13: > include/uapi/linux/ioam6.h:130:17: note: while referencing 'data' > 130 | __u8 data[0]; > | ^~~~ > > [...] Here is the summary with links: - ipv6: ioam: Replace 0-length array with flexible array https://git.kernel.org/netdev/net-next/c/0b5dfa35da03 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html