Re: [PATCH] i2c: virtio: Constify struct i2c_algorithm and struct virtio_device_id

2024-09-09 Thread Christophe JAILLET
Le 09/09/2024 à 20:54, Andi Shyti a écrit : Hi Christophe, On Sun, Sep 08, 2024 at 08:52:07AM GMT, Christophe JAILLET wrote: 'struct i2c_algorithm' and 'struct virtio_device_id' are not modified in this driver. Constifying this structure moves some data to a read-only section, so increase over

Re: [PATCH] i2c: virtio: Constify struct i2c_algorithm and struct virtio_device_id

2024-09-09 Thread Andi Shyti
Hi Christophe, On Sun, Sep 08, 2024 at 08:52:07AM GMT, Christophe JAILLET wrote: > 'struct i2c_algorithm' and 'struct virtio_device_id' are not modified in > this driver. > > Constifying this structure moves some data to a read-only section, so > increase overall security, especially when the str

[PATCH] i2c: virtio: Constify struct i2c_algorithm and struct virtio_device_id

2024-09-07 Thread Christophe JAILLET
'struct i2c_algorithm' and 'struct virtio_device_id' are not modified in this driver. Constifying this structure moves some data to a read-only section, so increase overall security, especially when the structure holds some function pointers, which is the case for struct i2c_algorithm. On a x86_6