From nobody Fri Jul 24 05:21:38 2026 Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5B7113515C4 for ; Thu, 23 Jul 2026 13:45:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784814360; cv=none; b=S+0eqbpyR8Lhxb2MzG35447gpm30Y6IMqNRMefpo7AB1ZxFDGMEkWnUjPz1VEf8em/ZyGL4v5Bpe0q9RLj1K2RGCxur2+WyP48tdQAO8bMLBIrO6zvm1/1Vu7S5T6W5HfO2qVIyX7mJRmW5gAnozNbWmAv33R6v/Aioj8H0QaUE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784814360; c=relaxed/simple; bh=VVw7LapAM+gzWBsN0jJ+xIAeOmWJ4KAeGeFG921LMSk=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=QWMPPa1FXA7/411nmDvHbO/m6JPtJG0XLpHJYmAGRDTgimqM4cJM/k1kE7WVk5XthmgMSia6lUKrBqQmIjtOWGSwotUjgH1DoItaMoeJ8tnVg3rTH6WZm52TrqPEcQUuug4TNOONo8lp5IxmSN/w3L/O+oMdculMyr5kEuISiXA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=aerlync.com; spf=pass smtp.mailfrom=aerlync.com; dkim=fail (0-bit key) header.d=aerlync.com header.i=@aerlync.com header.b=WbdmfjGc reason="key not found in DNS"; arc=none smtp.client-ip=209.85.214.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=aerlync.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aerlync.com Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=aerlync.com header.i=@aerlync.com header.b="WbdmfjGc" Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-2cecdc24b1cso1238815ad.1 for ; Thu, 23 Jul 2026 06:45:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aerlync.com; s=google; t=1784814358; x=1785419158; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=3XKXt3Dv8GeRudVWcQjcGXD8VK7YC1stger/woZ8rGQ=; b=WbdmfjGcptY++0aOwrx2bv2nOLeREXL6Hvfad11IQvuaETZx5mURVYfEM95hViZSmS 0kJwb3WnIck0h4ftf3l1NrmNZIldXu2720q/g+w+dCUJNtxSJY0v9zhrXlazZXTk7rx0 r9bOTbhYpDkYpApBsNW+RLpJPWNa9qM9VGVkUOGzQVgYgRDh5WpP5MS10CDr/fN24uBW MEDMoBo3Bj8VPkJB94RH2AzOcFyFRGBXvD3qsmU1C0BV8smtaG3fvz6KmjzEokJ6g50S GST8+4yl3mtvtT2kh2RQv9smsTpoINa7eLtu8h+vC14j/iZl7UHvMzczRz+btV4cIups SYKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784814358; x=1785419158; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=3XKXt3Dv8GeRudVWcQjcGXD8VK7YC1stger/woZ8rGQ=; b=Bz2zYhaudZhSf3Ma/dDMrufiwTG0zzE6izu5+/2thso1ngHdzGTkK4AJlRupeX7S9x qhBsPjHHz2ATbzXkqe0oZVuX46KAAEAPDOtsyBYbDRFzZliY7Rd6Mvhfrni/2/F/7NML sVOPeY3cx2bkWDngDXmRRqXAlv9ihfJ9tfgwPGtJNaKdp8w5Fgm9g8pHXpio6O7WZIVR 7h5s4z70BHVvbe6FaQPp6mVEMq9N2FmziZlELq3OfCgw8+La9HMBOGBhIKfsSJX5GLod WdYYtXj5CyFXJeVcB0XcUHT4ZZDfHS/P9jScmI4kClTMOQIKkdEkUr5PVJTOWk4QVfGI uHMg== X-Forwarded-Encrypted: i=1; AHgh+Rp09BlHYbETKkBK3hx/Emwht4OofJZd69IP/tOrv0p0BM7HbTFxrg629JXdDIIxo9NCfflgzowH+wbRbe4=@vger.kernel.org X-Gm-Message-State: AOJu0Yy7LecPz+esYpkFepT9CnUze5rZ7jgJj68WfLRFHlKt+YLA/Ags g1qHrL4gOLZgTQBX/NcHlA3ADSRcFUMhLxOHvA4SvTsf3TyAnsm2GonFma6QhA2Nh+s= X-Gm-Gg: AR+sD12S6fF0N/HtE8YbZWJDfONlhA3ZGt0XkcOEkKhEFzF0X+Zu/4u1QT9Bu/a25I0 tgnfqkEP2rGTwyd6KJPL1Ykm4vnsmO1cjyRwg6+I8CfKPk04/qia66/Obb+z/wiFumSdRY5JZTp rRFNJQzzfb/CZLttBB5IM6Nqm9hP6AEdwDE0NmlmwdshwT3JJtIpj8swTrmycn0dL+80YQUeYVL zJI6nR4huUWhmDXo+zPXjS1QVD2pUt/JhfXamewbJgTfakMYOS874gEDVpzz5tTlTfT3jwKipSA z10AMHh1g72MxNDtq3CGhY4wOnJW++45qqfO1qp+Waum2xySZsZgoeXjLtOqfijt51gQn3BAuhi 0JcjSkYofVh5Ww0VanbEvrBKxMf1iuaV433yz0IFvRswMTU75CmmvXaBD1HwfDxGXScz/E4la5w 17SRGdE9Snk+wqmP2TcFMcoCpF7A== X-Received: by 2002:a17:903:186:b0:2c9:e846:a582 with SMTP id d9443c01a7336-2cfb679d9cfmr6656635ad.0.1784814357493; Thu, 23 Jul 2026 06:45:57 -0700 (PDT) Received: from localhost.localdomain ([60.243.50.177]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3149198adb8sm11030981eec.4.2026.07.23.06.45.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jul 2026 06:45:57 -0700 (PDT) From: Srinivas Achary To: Johannes Berg Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, ramakrishnan@aerlync.com, Srinivas Achary Subject: [PATCH v2] wifi: cfg80211: change mesh_setup::ie_len to size_t Date: Thu, 23 Jul 2026 19:15:50 +0530 Message-Id: <20260723134550.35167-1-srinivas@aerlync.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The ie_len field in struct mesh_setup stores the length of the information elements (IEs) buffer. It is currently defined as u8, which limits the maximum supported length to 255 bytes. The IE length is derived from memory buffers whose size is naturally represented by size_t. Using u8 may truncate larger values and can result in incorrect length handling. Change ie_len to size_t so it can represent the full buffer length and match the type commonly used for memory sizes throughout the kernel. Signed-off-by: Ramakrishnan Rathinasamy Signed-off-by: Srinivas Achary --- Changes in v2: - Add the "wifi: cfg80211:" subsystem prefix. - Replace the non-standard Co-authored-by trailer with Signed-off-by. include/net/cfg80211.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index f5abf1db7558..c9af5abdec1f 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -2803,7 +2803,7 @@ struct mesh_setup { u8 path_metric; u8 auth_id; const u8 *ie; - u8 ie_len; + size_t ie_len; bool is_authenticated; bool is_secure; bool user_mpm; --=20 2.34.1