Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1155140lqo; Sat, 11 May 2024 09:34:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXzP70OS8fOY9Q1gRHX/aoDb5KdQ9ZDND8PqBEeleT1Ke6kKC2s0P20FPMNJpXFstcKg2q688FMobWhXEFMTrCVTO+miUtfgMk1Wago9Q== X-Google-Smtp-Source: AGHT+IF07+jSOjL1Skr8MQO2KidfGOvbh6unZ9uIJ5b6+vxpYt5noXav7muPp2amfk1GSmPFCq+J X-Received: by 2002:a05:620a:2591:b0:790:e932:d640 with SMTP id af79cd13be357-792c75af7d6mr700214585a.42.1715445252336; Sat, 11 May 2024 09:34:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715445252; cv=pass; d=google.com; s=arc-20160816; b=FlRziKyLX9DYDkzIBSCMVN7rFKhnXjgMhz5ThdMB4VM6HvnQX2yI2DDvjt0BjRajGI H2lZatQqnY5QVm/wnyxBRlTht9L7qxt6dSTrv3Mnqfu8zmuZsQj2WGHh2dWEQmmkmlOS myt8Y2ofYAsKbrFKur+a9APu3ONUCjhCw53qYiJOvhqvL+5CXaujsPI0URYUjLBVWkg1 WUSJ2o/Rh9WJCJzwbX/k8GYt8iybZxOXOOc2Wbhw9D9laGIit1LP4x6g9tKNNVT0b+96 fXasiiFHREzER1rzW9SztqlhLk7wLf1Zjtgp8JiITQgdO2vuD4ljDK3iFM748tZsRKkm SDYg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=3b7/z6XLiDoS2qLZLRUO85qwKU6ZlvHpSybGTWjg1HM=; fh=EbS6p43Jot8+ulc7e79LqjKV1Zplo76gGzuy9+r7MUg=; b=iX7Fv1VWr9zgmwFa4q+HL5kTnmWMncJ9bTbAFbz07tM4R+lOHnYsowc+zG4LGaQ/Lv qB3YFVzw7lXD41N987DZBp5BpW3i7J4nUPOk/iFW1rxHH/QrQgTDunZdLx3A+ALxU8+e qQWmIJiFdLrXBfyyT8DrCaaLgcXU+FtHMvB0CMyh/940FbwwZH9N2Wutni1Bdooe+8ii OMkkrWxSC98uXhM4E3I280CFVaht5+l7SF4UxMxuafeLS/Q4y0MYZAf3d/h2CKXb39lI CI8LQzckHGYv+BGJGFAAJeuQs3RfsNt5xUZPoBtVcG1k4qlODqjOhKCqbtDfPjG6PXDn RYwg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=XDymT0I1; arc=pass (i=1 spf=pass spfdomain=wanadoo.fr dkim=pass dkdomain=wanadoo.fr dmarc=pass fromdomain=wanadoo.fr); spf=pass (google.com: domain of linux-wireless+bounces-7505-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7505-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=wanadoo.fr Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-792d2f65856si107517185a.307.2024.05.11.09.34.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 May 2024 09:34:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7505-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=@wanadoo.fr header.s=t20230301 header.b=XDymT0I1; arc=pass (i=1 spf=pass spfdomain=wanadoo.fr dkim=pass dkdomain=wanadoo.fr dmarc=pass fromdomain=wanadoo.fr); spf=pass (google.com: domain of linux-wireless+bounces-7505-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7505-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=wanadoo.fr 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 84B8F1C20A1D for ; Sat, 11 May 2024 16:34:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 369A114285; Sat, 11 May 2024 16:34:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b="XDymT0I1" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.smtpout.orange.fr (smtp-18.smtpout.orange.fr [80.12.242.18]) (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 990E34A39; Sat, 11 May 2024 16:34:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.12.242.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715445247; cv=none; b=WjUmFx+McFxd9g2Lzp19JyYnmsvLj04Oi0wuaQJTFe5TB7qE8exocMlFYvrr2rmJeRBnXuMbosrqkH3uVrovgc9U2z7d4GAgjZzjv3JmuRPqKncsZSHr+fFWXww90hpdBDdkjztQgHvvhza8r1NGLZwkRVfkbubCu7a2IQqXX8o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715445247; c=relaxed/simple; bh=Iv617nSHxfFn8mG/1prVYlXPiE/zW6Z5PPRt+mc8e50=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MCLhdkpJkAPbISmn9Md/VhNn6XN8P21H1kENEDH5TO5iZtDN6qi18NOok8iQeuvF96yy4Z2iiYaMop0McTtoCarePdXO9mNdgxcjVjK7inqCB/yjpQLcyccKdmsHxlVtG5ejl4Z/6ySfhyghQb0wg4Bb2G06AyquhtI5KiKGzIo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wanadoo.fr; spf=pass smtp.mailfrom=wanadoo.fr; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b=XDymT0I1; arc=none smtp.client-ip=80.12.242.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wanadoo.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wanadoo.fr Received: from localhost.localdomain ([86.243.17.157]) by smtp.orange.fr with ESMTPA id 5peUsjqa5MXQT5peUssoYd; Sat, 11 May 2024 18:32:52 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1715445172; bh=3b7/z6XLiDoS2qLZLRUO85qwKU6ZlvHpSybGTWjg1HM=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=XDymT0I1WGs+i/KIj4lSkhEw4cQqjWvpGW9hwM0sU/4HQVUtZ8ItkzlIL1ZrWgkjJ lhvhAkO9YYd5ePvexnNS6fXCj2zizb8fYaRjDAA+0yKspCvmN3ai/iEjwV+Fplkx+G WbNO2QJscGsxngGerrwMOw1CGMSFQF5wJOz8SO/2Qsx+6eyg8RBu3l3CQJFe3NM433 xF63Kz9FLvPb+r4uF6enBEeTDPbdvVYezwFokJB+Ha8bPwjOrDM9shq82gSuYaIKmT nroEYTQwu1JnuRibM1h+6A2k1IN75qM9UzLY1A6ChP+c5NrxpjXdvWb9/V8xxdl7NO 71QXGnhnKRv4A== X-ME-Helo: localhost.localdomain X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sat, 11 May 2024 18:32:52 +0200 X-ME-IP: 86.243.17.157 From: Christophe JAILLET To: gregkh@linuxfoundation.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, johannes@sipsolutions.net, philipp.g.hortmann@gmail.com, tdavies@darkphysics.net, garyrookard@fastmail.org, straube.linux@gmail.com Cc: linux-staging@lists.linux.dev, netdev@vger.kernel.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH 0/3] lib80211: Constify struct lib80211_crypto_ops Date: Sat, 11 May 2024 18:32:37 +0200 Message-ID: X-Mailer: git-send-email 2.45.0 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This serie constify struct lib80211_crypto_ops. This sutructure is mostly some function pointers, so having it in a read-only section when possible is safer. The 1st patch, update some function prototypes and data structures in lib80211. The 2nd patch constifies some struct lib80211_crypto_ops in lib80211. This moves some data to a read-only section, so increase overall security. The 3rd patch does the same for staging/rtl8192e. Note that the functions have looked in staging/rtl8192e look really similar to the ones in lib80211. Maybe it could be removed in favor of the latter. Each patch in the serie has been compile tested ony. Christophe JAILLET (3): lib80211: Handle const struct lib80211_crypto_ops in lib80211 lib80211: Constify struct lib80211_crypto_ops staging: rtl8192e: Constify struct lib80211_crypto_ops drivers/staging/rtl8192e/rtllib_crypt_ccmp.c | 2 +- drivers/staging/rtl8192e/rtllib_crypt_tkip.c | 2 +- drivers/staging/rtl8192e/rtllib_crypt_wep.c | 2 +- drivers/staging/rtl8192e/rtllib_wx.c | 2 +- include/net/lib80211.h | 8 ++++---- net/wireless/lib80211.c | 10 +++++----- net/wireless/lib80211_crypt_ccmp.c | 2 +- net/wireless/lib80211_crypt_tkip.c | 2 +- net/wireless/lib80211_crypt_wep.c | 2 +- 9 files changed, 16 insertions(+), 16 deletions(-) -- 2.45.0