Re: [PATCH 6/9] PCI: hotplug: Constify hotplug_slot_ops

2018-08-20 Thread Tyrel Datwyler
On 08/19/2018 07:29 AM, Lukas Wunner wrote: > Hotplug drivers cannot declare their hotplug_slot_ops const, making them > attractive targets for attackers, because upon registration of a hotplug > slot, __pci_hp_initialize() writes to the "owner" and "mod_name" members > in that struct. > > Fix by

Re: [PATCH 6/9] PCI: hotplug: Constify hotplug_slot_ops

2018-08-20 Thread Rafael J. Wysocki
On Sun, Aug 19, 2018 at 4:36 PM Lukas Wunner wrote: > > Hotplug drivers cannot declare their hotplug_slot_ops const, making them > attractive targets for attackers, because upon registration of a hotplug > slot, __pci_hp_initialize() writes to the "owner" and "mod_name" members > in that struct. >

[PATCH 6/9] PCI: hotplug: Constify hotplug_slot_ops

2018-08-19 Thread Lukas Wunner
Hotplug drivers cannot declare their hotplug_slot_ops const, making them attractive targets for attackers, because upon registration of a hotplug slot, __pci_hp_initialize() writes to the "owner" and "mod_name" members in that struct. Fix by moving these members to struct hotplug_slot and constify