Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp73613lqt; Mon, 18 Mar 2024 01:30:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX3LVCgxDJH6ld/58edG9ZW0MbfE57iZu3iEAfXeG/AYecuvpp/KWwqgB5wG9luWbxmXXJaU5bl1Od21cORh1gq2LwMuw+3IMZaoykW2A== X-Google-Smtp-Source: AGHT+IEBO6u2d9siC561V+hw/cEUZx2c2ZVUe+pezGRfee/WBazKqCaBk/L9PHGedqAxDbPZhYHf X-Received: by 2002:a17:903:1cc:b0:1df:fa83:2cdf with SMTP id e12-20020a17090301cc00b001dffa832cdfmr7185933plh.18.1710750658014; Mon, 18 Mar 2024 01:30:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710750658; cv=pass; d=google.com; s=arc-20160816; b=RtVdOYKmbCgD6MERi3XKk8/Y+YzrbKWWKxcrGhip7V65QQfN9tPCTKYkD/+ptbEEDx 59n+t79rRzca2WQ4r+VR4RPv6fskTuYdMAgf6Erp2VlkT1tba2ytlAgmL9cWkInqQp5c yyXlFHL47LRwNSoFMULKnGRdO9uKcuI1xadzRe86kU/4v+ShLRL2eRknBUQ6rljNQkCk C+5uk5HzggJc3DFMWyDTOZ0HD2AjSw4RiUUDZhgYN4mXRlNjcMW0RWlZJnPCx5/jPfih pQns2nL3WVODpv8BgKypSzgjtvBdecGIeqefeZDvmtJm09Mr0P4OyYUZmygyR9CGXHdC nwtA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:subject:cc:to:from:date:references :in-reply-to:message-id:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:user-agent:feedback-id:dkim-signature :dkim-signature; bh=K8UFES4KEJzR+9ryXQi7IwVdeZdxrgH5kWPmcyDwpu0=; fh=S2tG4IrrQOSxidmgaVrq4CQm1nmIffso/g7fN7ugb5M=; b=VMw0q7yNM6/8J6JJrkWsqdsUjfXahritLi6ZgUenECGH/EUL3/XX8ts1MnSA3POy8g knlvqr2gi+elMZ4I8WfUm3ou/j9n1Awf19IZzvI+269r3m+alsfh39WecfXB+x/XPVkI q383MS8TqrNa/4nIXM9RezESi777quXZwguSd43B38EJ3Dkwfcd5OQ2FnvWnKFbwZwc+ p5IJGZGe8gMqe/dmIgIhUVUQk6M0bdALRItzCGX1OX8chdmnmN7pgspAK2FaAWBMWRCg 2KzLQP1WQQ5jX9W72na2Cv3iToy+LpsL9xHSZfd1UKeXzViqBGGJOgV0g4+VnPQ9WCvE 2maw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=WbTzVS7Z; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=xDPIXjyO; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-105815-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105815-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id x1-20020a170902ec8100b001e00e30ab04si2929051plg.265.2024.03.18.01.30.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 01:30:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105815-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=WbTzVS7Z; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=xDPIXjyO; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-105815-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105815-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 1A626B215B7 for ; Mon, 18 Mar 2024 08:30:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 462F72869B; Mon, 18 Mar 2024 08:30:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="WbTzVS7Z"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="xDPIXjyO" Received: from fout1-smtp.messagingengine.com (fout1-smtp.messagingengine.com [103.168.172.144]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5C79122086 for ; Mon, 18 Mar 2024 08:30:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.144 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710750644; cv=none; b=l+Lqh2ue3YYhj75RzimsQgvtUZ3gALoYzsSuYHU51Cs+yI+nVTKADdfAWqpEXqAJytY2hma73ZCtNarJDBotXu0jO/6OAqjDbyAG06PUz6KDccSFiWHNenblS8yMC3jpWpVkkKBvBm9Zojsd/9CY0nqgzLQ4W4VaBIlPjndpzVw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710750644; c=relaxed/simple; bh=6e8qgncYW+RnLPrtDD7i0E/LZBdUAlFp72Fl17NKnb8=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=UiYIAKyBLRlQqQbU0pdBjRQ7PxRbnj22EiIcBSwWh/7EFR8w3DrBBJpN2YKlmpgO+SyImf0e5SnkdMmXL7sAIQx4UKwX2J21EDaxSxjthFoA29Re1x0UtG6Pst8bYT5N085qdZatt3w6oLbhqzCSpoMQSctoEAeydcHLpLI+mB4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=WbTzVS7Z; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=xDPIXjyO; arc=none smtp.client-ip=103.168.172.144 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.nyi.internal (Postfix) with ESMTP id 6021513800F9; Mon, 18 Mar 2024 04:30:41 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Mon, 18 Mar 2024 04:30:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1710750641; x=1710837041; bh=K8UFES4KEJzR+9ryXQi7IwVdeZdxrgH5kWPmcyDwpu0=; b= WbTzVS7ZwQp1jY+my92szG6vbXb8dH+9q5TPJYfKeg2MTxp5tjc1S/f64ghYbS5Q ICXIAXX5Ie3uan2w3IFPCkHpM78sNzln+mZKeOQ4J+5PKMQyvbKLj5Y66Ddv9nf3 bny8045MIkJgBOo8OR4vBLJCyN2rqWbrE9zanVJEeRpuRHsstnfGszYL7CSiFk1u x2D835eMoBiHauahAyRsjxj6YcnXcT46WJdZJP3IGcXB72sVvF0dMSzqg43UHDNN IrQl0YScMPg6rPhOChSlPjpIV679GJ7MKuRWmaZeFID6eaDFw8Zy9U+j60LCyIYW ROtOYRV7owtiLDvGUGweeQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1710750641; x= 1710837041; bh=K8UFES4KEJzR+9ryXQi7IwVdeZdxrgH5kWPmcyDwpu0=; b=x DPIXjyONcVYsfWYKpGCoCdy7rJA5BHwmil73mZ8aEZCxtDqUeMDE+lfwEoS3SoeE 24rYswJlX/AiAcrUrowQtw1oXmnmF690lIECmFDjWaxF01ZQzgdW14/AoZkOYTMk vQIaLGZGFxn9bjw31qisvavmNB+Eq1ZB/sd8c+54PjA4dqUvkcqrpCfaAKRkmwVI qAjf29iS212QAXK22VgPT8g4Tu7XpubjStn6+Fa6/Btj2kNni47+SREyFvZmfmEO /HKSrC41zUYsC6nromblCjMFRQQeaT15ovikx5nDpmTkG7weS8hgx4xF+zIICgfI lfjQch7d/sDaFMQFotzfg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrkeeigdduvdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtgfesthhqredtreerjeenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeegfeejhedvledvffeijeeijeeivddvhfeliedvleevheejleetgedukedt gfejveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id A809EB6008D; Mon, 18 Mar 2024 04:30:40 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-300-gdee1775a43-fm-20240315.001-gdee1775a Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <940451c9-cf0b-4be0-9116-80cf7c89a611@app.fastmail.com> In-Reply-To: References: <6dc14151-e71e-4118-826d-3ca5c8ee907f@gmail.com> <6c772d15-d249-4175-93f4-ca523006129b@gmail.com> <5716d138-ace0-4621-ab34-118610255207@app.fastmail.com> Date: Mon, 18 Mar 2024 09:30:19 +0100 From: "Arnd Bergmann" To: "Dan Carpenter" Cc: "Philipp Hortmann" , "Lee Jones" , "Greg Kroah-Hartman" , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, "Larry Finger" , "Johannes Berg" , "Kalle Valo" , "Julia Lawall" Subject: Re: [RFC] staging: wlan-ng: Driver broken since kernel 5.15 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable On Mon, Mar 18, 2024, at 09:01, Dan Carpenter wrote: > On Sun, Mar 17, 2024 at 09:20:34PM +0100, Arnd Bergmann wrote: >> On Sun, Mar 17, 2024, at 21:07, Philipp Hortmann wrote: >> > On 3/11/24 08:04, Dan Carpenter wrote: >> >> On Sat, Mar 09, 2024 at 11:09:24PM +0100, Philipp Hortmann wrote: >> > You are right with the statement that it is this commit. >> > commit ea82ff749587807fa48e3277c977ff3cec266f25 (HEAD) >> > Author: Lee Jones >> > Date: Wed Apr 14 19:10:39 2021 +0100 >> > >> > staging: wlan-ng: cfg80211: Move large struct onto the heap >> > >> > Fixes the following W=3D1 kernel build warning(s): >> > >> > drivers/staging/wlan-ng/cfg80211.c: In function =E2=80=98pris= m2_scan=E2=80=99: >> > drivers/staging/wlan-ng/cfg80211.c:388:1: warning: the frame = size=20 >> > of 1296 bytes is larger than 1024 bytes [-Wframe-larger-than=3D] >> > >> > But It is not depending on the line you pointed to. >>=20 >> Right, the kzalloc() already clears the data, so the memset >> is not needed. >>=20 > > No, it's inside a loop so it needs to be cleared on each iteration. Right, at least the conversion could not remove the memset() without a deeper analysis. It's still likely that each field of the structure still gets initialized properly inside the loop and the repeated memset() wasn't necessary in the first place, but that is a completely separate question. Arnd