lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <172054754133.374919.11899102978335897724.b4-ty@kernel.dk>
Date: Tue, 09 Jul 2024 11:52:21 -0600
From: Jens Axboe <axboe@...nel.dk>
To: "Md. Haris Iqbal" <haris.iqbal@...os.com>, 
 Jack Wang <jinpu.wang@...os.com>, 
 Christophe JAILLET <christophe.jaillet@...adoo.fr>
Cc: linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org, 
 linux-block@...r.kernel.org
Subject: Re: [PATCH] block/rnbd: Constify struct kobj_type


On Mon, 08 Jul 2024 20:11:30 +0200, Christophe JAILLET wrote:
> 'struct kobj_type' is not modified in this driver. It is only used with
> kobject_init_and_add() which takes a "const struct kobj_type *" parameter.
> 
> Constifying this structure moves some data to a read-only section, so
> increase overall security.
> 
> On a x86_64, with allmodconfig, as an example:
> Before:
> ======
>    text	   data	    bss	    dec	    hex	filename
>    4082	    792	      8	   4882	   1312	drivers/block/rnbd/rnbd-srv-sysfs.o
> 
> [...]

Applied, thanks!

[1/1] block/rnbd: Constify struct kobj_type
      commit: e4eaca5e30c55c83c547974188afc2b2d02d4f0c

Best regards,
-- 
Jens Axboe




Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ