Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp205353rdg; Thu, 12 Oct 2023 03:23:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE38juXHwp1nxLD9v1hj5XqOnbqP+R2oZ85NNMO0Ko8U2Ni+mtYZkn4EthJXa2wn9v5Wi8j X-Received: by 2002:a17:90b:f84:b0:27c:f4a9:7e20 with SMTP id ft4-20020a17090b0f8400b0027cf4a97e20mr10193101pjb.15.1697106180200; Thu, 12 Oct 2023 03:23:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697106180; cv=none; d=google.com; s=arc-20160816; b=LJtmACPqsDxwm1hy5GE61A9vzVAFTvDwUkSfXjUT6TOqyQEi44v4nixqvd9uqTjLUI pZ8BfKauyauN4mXtddAQfmcIdsYbnierGku1gRIHH6j7Mr8J03zMWCyOlv2rdaIM80Nn dpQyERSkowtxt39Agq0CZRsoYdzY1MfFMUBN3+vTk9B+uegENsQ8/I90WZ1tpq35tMqK 8N/mnYHuCPairW0KPrlO1SPuD4C2cBq0u+2+5Ge3UcPw2lBT4xVbnvgCfpdPsIt0rYt4 KT8GoujdBn/PKmN9oJmfZGoYzZnjI6rt6pDlj+wXxJn8EJSG+qkGL7VMPCRexzw+p9b9 FpLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :message-id:subject:references:in-reply-to:cc:to:from:dkim-signature; bh=nuOnffhxz5ON4ccdlC8LnIOA4xVEBY9MgknsD3NMu/s=; fh=tYXa9Ss1+Y1tcHP0z1S1nKNs0Zmyvo2WMTvNEDXE5U8=; b=nIA6b1YLOce/HpvZv3ZuQXrUWr9a865dMHpPqBDvQ4GOYYkig16dw/5dpUzsP+7zu0 f+mEnB2ZD45x+JIKjvVAukugXhgaPgLOm/nm2n5tLY9kUJbLg9AMev0pdylkkz2L71K3 eKe0jgkNBN1MB3SP9SBTHBn/7jquDxo28lowc56ldJhSVo6p/ik4EeB0Oy+lzWFmi2ay Ou+s6BjvIeTFenVB/kXXpJm2E+9XnWbUzQBRd2wo6WBaDYiq/AXHIGDHFfbbjJLjveGC r6XxinzY1xVIbdce3YLlOe79ZmLzYWIf0Vla94HadYselSh/pqh+k5w+JSLG6RITwm11 I8Ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PK339P2K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id q2-20020a17090a304200b00275cffed966si1935617pjl.57.2023.10.12.03.22.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 03:23:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PK339P2K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id EFD86807C752; Thu, 12 Oct 2023 03:22:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343776AbjJLKWx (ORCPT + 99 others); Thu, 12 Oct 2023 06:22:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234185AbjJLKWv (ORCPT ); Thu, 12 Oct 2023 06:22:51 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9136BA; Thu, 12 Oct 2023 03:22:48 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C3F0C433C7; Thu, 12 Oct 2023 10:22:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697106168; bh=jkOf6zlY3dtr1U4Md02h/jP/g3KZE/yyKcHPQfjlK0s=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=PK339P2K3E9NTHi9ntN7LB8zDL2x6BFpQ1YBKfS8tf3ZHOXhUbhgIZGcM2oH4BUIc /WdG8pTlVKjRSppRGO4qtheNOjjUxHW5zfagcn6GZfqZIi+RCjyEmO/Kq6ilca7Y8E AaFRljZJsQ3GTN9T1AG8lpSvOh6QNKb0qpZJGqzxy7o/O6dSx5uqGCkneqopWt26J5 idsRi3Zj+kD1MgoVDVZ7ya3CcnkOxUzbV9a8DzuYKMvBoBQXozZaUG3a5db/errAv6 AKj9HxBJkmGwU4L5MBh4xq01NvQuoHygWU2nkEeTLMXPU+3A6m1AON6/dfEBQbQqqW TiCmpkyaNcfdw== From: Lee Jones To: Pavel Machek , Lee Jones , Andrew Lunn , "David S. Miller" , Jakub Kicinski , Li Zetao , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, Christian Marangi Cc: stable@vger.kernel.org, kernel test robot In-Reply-To: <20231007131042.15032-1-ansuelsmth@gmail.com> References: <20231007131042.15032-1-ansuelsmth@gmail.com> Subject: Re: (subset) [net PATCH] leds: trigger: netdev: move size check in set_device_name Message-Id: <169710616600.1174986.4498192566234857598.b4-ty@kernel.org> Date: Thu, 12 Oct 2023 11:22:46 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailer: b4 0.12.2 X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 12 Oct 2023 03:22:58 -0700 (PDT) On Sat, 07 Oct 2023 15:10:42 +0200, Christian Marangi wrote: > GCC 13.2 complains about array subscript 17 is above array bounds of > 'char[16]' with IFNAMSIZ set to 16. > > The warning is correct but this scenario is impossible. > set_device_name is called by device_name_store (store sysfs entry) and > netdev_trig_activate. > > [...] Applied, thanks! [1/1] leds: trigger: netdev: move size check in set_device_name commit: e0e29e434cdca9705eb420b3f26928444fa559f6 -- Lee Jones [李琼斯]