opnsense-src/sys/dev/usb/controller
Andrew Turner 24a205e328 Fix undefined behaviour in the USB controllers
The USB controller drivers assume they can cast a NULL pointer to a
struct and find the address of a member. KUBSan complains about this so
replace with the __offsetof and __containerof macros that use either a
builtin function where available, or the same NULL pointer on older
compilers without the builtin.

Reviewers: hselasky

Subscribers: imp

Reviewed by:	hselasky
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D33865

(cherry picked from commit a3cea15680)
2022-02-22 16:23:07 +00:00
..
atmegadci.c Fix undefined behaviour in the USB controllers 2022-02-22 16:23:07 +00:00
atmegadci.h
avr32dci.c Fix undefined behaviour in the USB controllers 2022-02-22 16:23:07 +00:00
avr32dci.h
dwc3.c USB dwc3 controller: add quirk snps,dis_rxdet_inp3_quirk 2021-12-29 16:02:51 +00:00
dwc3.h USB dwc3 controller: add quirk snps,dis_rxdet_inp3_quirk 2021-12-29 16:02:51 +00:00
dwc_otg.c Fix undefined behaviour in the USB controllers 2022-02-22 16:23:07 +00:00
dwc_otg.h
dwc_otg_acpi.c Add dwc_otg_acpi 2020-06-30 15:58:29 +00:00
dwc_otg_fdt.c usb: clean up empty lines in .c and .h files 2020-09-01 21:26:44 +00:00
dwc_otg_fdt.h
dwc_otg_hisi.c
dwc_otgreg.h
ehci.c Use __containerof() instead of home-rolled versions. 2020-12-17 20:45:10 +00:00
ehci.h usb: clean up empty lines in .c and .h files 2020-09-01 21:26:44 +00:00
ehci_fsl.c usb: clean up empty lines in .c and .h files 2020-09-01 21:26:44 +00:00
ehci_imx.c
ehci_msm.c usb: clean up empty lines in .c and .h files 2020-09-01 21:26:44 +00:00
ehci_mv.c
ehci_pci.c
ehcireg.h
generic_ehci.c
generic_ehci.h
generic_ehci_acpi.c
generic_ehci_fdt.c usb: clean up empty lines in .c and .h files 2020-09-01 21:26:44 +00:00
generic_ohci.c
generic_usb_if.m
generic_xhci.c
generic_xhci.h
generic_xhci_acpi.c
generic_xhci_fdt.c usb: clean up empty lines in .c and .h files 2020-09-01 21:26:44 +00:00
musb_otg.c Fix undefined behaviour in the USB controllers 2022-02-22 16:23:07 +00:00
musb_otg.h
musb_otg_allwinner.c musb/allwinner: add support for configuring phy as well as device mode 2020-09-07 06:53:29 +00:00
ohci.c Use __containerof() instead of home-rolled versions. 2020-12-17 20:45:10 +00:00
ohci.h
ohci_pci.c ohci(4): remove support for Sun PCIO-2 USB controllers 2020-12-25 19:47:46 +01:00
ohcireg.h
saf1761_otg.c usb: clean up empty lines in .c and .h files 2020-09-01 21:26:44 +00:00
saf1761_otg.h
saf1761_otg_boot.c
saf1761_otg_fdt.c
saf1761_otg_reg.h
uhci.c Fix a common typo in source code comments 2021-08-19 09:18:35 +02:00
uhci.h
uhci_pci.c
uhcireg.h
usb_controller.c usb: clean up empty lines in .c and .h files 2020-09-01 21:26:44 +00:00
usb_nop_xceiv.c
uss820dci.c Fix undefined behaviour in the USB controllers 2022-02-22 16:23:07 +00:00
uss820dci.h
xhci.c Fix undefined behaviour in the USB controllers 2022-02-22 16:23:07 +00:00
xhci.h Fully revert r364379. 2020-09-01 08:14:46 +00:00
xhci_pci.c xhci: Add PCI IDs for Thunderbolt 3/4 USB controllers. 2021-12-12 22:16:28 -05:00
xhcireg.h