Re: [PATCH net-next] netconsole: Constify struct configfs_item_operations and configfs_group_operations
Breno Leitao <[email protected]>
| Newsgroups | org.kernel.vger.kernel-janitors,org.kernel.vger.linux-kernel,org.kernel.vger.netdev |
|---|---|
| Message-ID | <[email protected]> |
On Mon, May 25, 2026 at 02:23:00PM +0000, Christophe JAILLET wrote: > 'struct configfs_item_operations' and 'configfs_group_operations' are not > modified in this driver. > > Constifying these structures moves some data to a read-only section, so > increases overall security, especially when the structure holds some > function pointers. > > On a x86_64, with allmodconfig, as an example: > Before: > ====== > text data bss dec hex filename > 64259 24272 608 89139 15c33 drivers/net/netconsole.o > > After: > ===== > text data bss dec hex filename > 64579 23952 608 89139 15c33 drivers/net/netconsole.o > > Signed-off-by: Christophe JAILLET <[email protected]> Reviewed-by: Breno Leitao <[email protected]>