public inbox for linux-pci@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/4] Miscellaneous fixes for pci subsystem
@ 2026-01-16  8:17 Ziming Du
  2026-01-16  8:17 ` [PATCH v4 1/4] PCI/sysfs: Prohibit unaligned access to I/O port Ziming Du
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Ziming Du @ 2026-01-16  8:17 UTC (permalink / raw)
  To: bhelgaas, alex, chrisw, jbarnes; +Cc: linux-pci, linux-kernel, liuyongqiang13

Miscellaneous fixes for pci subsystem

Changes in v4:
- Remove the architecture-specific #ifdef to apply the alignment
  check for all platforms (including x86), as device registers are
  naturally aligned anyway.
- Fix a potential issue in proc_bus_pci_read() to make it consistent
  with proc_bus_pci_write(), as suggested by Ilpo Järvinen.
- Link to v3: https://lore.kernel.org/linux-pci/20260108015944.3520719-1-duziming2@huawei.com/

Changes in v3:
- Check *ppos before assign it to pos.
- Link to v2: https://lore.kernel.org/linux-pci/20251224092721.2034529-1-duziming2@huawei.com/

Changes in v2:
- Correct grammer and indentation.
- Remove unrelated stack traces from the commit message.
- Modify the handling of pos by adding a non-negative check to ensure
  that the input value is valid.
- Use the existing IS_ALIGNED macro and ensure that after modification,
  other cases still retuen -EINVAL as before.
- Link to v1: https://lore.kernel.org/linux-pci/20251216083912.758219-1-duziming2@huawei.com/

Yongqiang Liu (2):
  PCI: Prevent overflow in proc_bus_pci_write()
  PCI/sysfs: Prohibit unaligned access to I/O port
Ziming Du (2):
  PCI/sysfs: Fix null pointer dereference during hotplug
  PCI: Prevent overflow in proc_bus_pci_read()

 drivers/pci/pci-sysfs.c |  7 +++++++
 drivers/pci/proc.c      | 11 +++++++++--
 2 files changed, 16 insertions(+), 2 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2026-04-02  7:23 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-16  8:17 [PATCH v4 0/4] Miscellaneous fixes for pci subsystem Ziming Du
2026-01-16  8:17 ` [PATCH v4 1/4] PCI/sysfs: Prohibit unaligned access to I/O port Ziming Du
2026-02-26 17:00   ` Bjorn Helgaas
2026-01-16  8:17 ` [PATCH v4 2/4] PCI/sysfs: Fix null pointer dereference during hotplug Ziming Du
2026-02-26 17:14   ` Bjorn Helgaas
2026-02-27  2:30     ` duziming
2026-04-02  7:23     ` duziming
2026-01-16  8:17 ` [PATCH v4 3/4] PCI: Prevent overflow in proc_bus_pci_write() Ziming Du
2026-03-03 19:32   ` Bjorn Helgaas
2026-01-16  8:17 ` [PATCH v4 4/4] PCI: Prevent overflow in proc_bus_pci_read() Ziming Du
2026-01-30  7:53 ` [PATCH v4 0/4] Miscellaneous fixes for pci subsystem duziming
2026-02-06 22:29   ` Bjorn Helgaas
2026-02-26  9:07     ` duziming

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox