Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4050518rdh; Tue, 28 Nov 2023 10:23:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IGk6tb9GhIB9FmPkG2CDtd9W6MV9nf0SCiqvqT9INQnWkMHBPNdhrgwNZrcIWx3Nkrc7Cm1 X-Received: by 2002:a05:6358:98a8:b0:16d:e1d8:22c7 with SMTP id q40-20020a05635898a800b0016de1d822c7mr18224423rwa.29.1701195810678; Tue, 28 Nov 2023 10:23:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701195810; cv=none; d=google.com; s=arc-20160816; b=HCj4XllprrAGwugyKyLHJodrUkC4+iayqqV+bud34JiXTzVPz2hCmn8bPbQYRenVmW CV3XVCdZiNwTCtziaQ4tBhUiWuKi2Vu8PP/vGMRLsIkwbaeAf+NXpreVLnDR30KC2Exl Uez4IU50B2iUMiozmc/CMbK+FcBq/+qsA1OEMwmtok4clj048au1u9ZczbbN1jlMLOFy PPbAWtxXXoY3rZj8mRGvm+V4Y+pA+ttGsSB+fpba07+XEwjgdO71drL7H/w2zu03QJMZ m/MPsw61WSY13DdxRB+4G/1oNoxTopeWx3t4ImVEoCgHjb8JjXwxwrxEOy1EBcAkR//X 9l3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=BCXc20s1plcFTytV/cegq28ifk8bqegXX0VUq1tziks=; fh=bpKNGjZXNDJbyMPN8AFbC/pmqP9ZjUpLlYN/Nq+K3fk=; b=l1wYRKBAyPvQWWuswOwChPID8Rs3TGovpuprOzaz6nO32cJH6IYSkq7wTxdQwaxL8+ MUv/t9m93EjTBG5q66KVN/1J1aD2JLGEw+Dw0t7FKuj87XoXAvrdnFBpqxD9XuguLKQl C1ZnTCKlD9KYtvxMqW5VojQ/yRgCFeX8tYQfh3tqWRCIc4OqNx5AlITNO6feIxLIYkAg S0oYDa2MaE1FTfFUhMn+4mFpurN6ZLXL/uoKjBW8FsODIEzqQqezKsbX3Zt2MCtX3dm2 +W0RPSuPfjb2vYAwL3BW9Z2JXZx8lCXdAEHjeSme3s+0juOg0J8J3+8N0jieO96tjrq/ tQvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=IKl5a6XW; spf=pass (google.com: domain of linux-wireless+bounces-172-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-172-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id l7-20020ab02547000000b007c3e911f991si3953254uan.204.2023.11.28.10.23.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 10:23:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-172-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=IKl5a6XW; spf=pass (google.com: domain of linux-wireless+bounces-172-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-172-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 17BCB1C2098A for ; Tue, 28 Nov 2023 18:23:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BBFC741C67; Tue, 28 Nov 2023 18:23:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="IKl5a6XW" X-Original-To: linux-wireless@vger.kernel.org Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:242:246e::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F9CF137 for ; Tue, 28 Nov 2023 10:23:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=BCXc20s1plcFTytV/cegq28ifk8bqegXX0VUq1tziks=; t=1701195802; x=1702405402; b=IKl5a6XWBjUA3EP3sy41LBrLNFIHz8UVRZjflJzTHqL3wSO GdVaMEKRGHEHlCyUlpaiPrH/6cmrSLpDrRq9KLQYkZohYSzlgCSLo8niLRrcJbvj5PH4kqcdQoHPY mpmyQNZ+s1AUdeS0pmUeEI4/3NTZkZwq3dgpZScggv10alpPhDWmo+seyi8z5GKP/IkwVWmsIVa4o U4sfpt0qoULnfUvTLK+cfze7vFaL9/TsDiyFfSifjYiXlNAUbxx8rn48rMCAqUDmYeRAb16O2Gr3N pygYlXp0txoWtoZeS9I5WwVLK76mXh8XT3mgpP3B20X/V84HXu9jbYcsbp9G9BXQ==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1r82jv-00000007bYl-2JEZ; Tue, 28 Nov 2023 19:23:19 +0100 Message-ID: <1c37d99f722f891a50c540853e54d4e36bdf0157.camel@sipsolutions.net> Subject: Re: [RFC PATCH] wifi: cfg80211: fix CQM for non-range use From: Johannes Berg To: Michael Walle Cc: lkp@intel.com, oe-kbuild-all@lists.linux.dev, linux-wireless@vger.kernel.org, Max Schulze Date: Tue, 28 Nov 2023 19:23:18 +0100 In-Reply-To: <202311090752.hWcJWAHL-lkp@intel.com> References: <202311090752.hWcJWAHL-lkp@intel.com> <202311090752.hWcJWAHL-lkp@intel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-malware-bazaar: not-scanned On Tue, 2023-11-28 at 15:44 +0100, Michael Walle wrote: > Hi, >=20 > > net/wireless/nl80211.c: In function 'nl80211_set_cqm_rssi.isra': > > net/wireless/nl80211.c:12892:17: warning: 'memcpy' specified bound > > 18446744073709551615 exceeds maximum object size 9223372036854775807 > > [-Wstringop-overflow=3D] >=20 > FWIW, I'm getting the same error with the current next (next-20231128). >=20 I actually forgot about that, but does anyone actually know what this is trying to tell me? The code seems to be if (n_thresholds) { cqm_config =3D kzalloc(struct_size(cqm_config, rssi_thresho= lds, n_thresholds), GFP_KERNEL); if (!cqm_config) return -ENOMEM; cqm_config->rssi_hyst =3D hysteresis; cqm_config->n_rssi_thresholds =3D n_thresholds; memcpy(cqm_config->rssi_thresholds, thresholds, flex_array_size(cqm_config, rssi_thresholds, n_thresholds)); Or does it just want to say n_thresholds shouldn't be a signed variable? johannes