opnsense-src/sys/dev/usb/controller
Andrew Turner a3cea15680 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
2022-01-12 13:53:19 +00:00
..
atmegadci.c Fix undefined behaviour in the USB controllers 2022-01-12 13:53:19 +00:00
atmegadci.h
avr32dci.c Fix undefined behaviour in the USB controllers 2022-01-12 13:53:19 +00:00
avr32dci.h
dwc3.c USB dwc3 controller: add quirk snps,dis_rxdet_inp3_quirk 2021-11-10 09:44:44 +00:00
dwc3.h USB dwc3 controller: add quirk snps,dis_rxdet_inp3_quirk 2021-11-10 09:44:44 +00:00
dwc_otg.c Fix undefined behaviour in the USB controllers 2022-01-12 13:53:19 +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 Factor out repeated code in the USB controller drivers to avoid bugs 2021-07-10 20:59:00 +02: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 arm: Fix duplicate ehci DRIVER_MODULE 2020-04-16 16:59:37 +00:00
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 Add USB host controller PCI ID's for Hygon. 2020-02-10 11:09:56 +00:00
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 Regularize my copyright notice 2019-12-04 16:56:11 +00:00
generic_usb_if.m Remove "all rights reserved" from copyright for the file I own. 2019-12-03 21:00:45 +00:00
generic_xhci.c
generic_xhci.h
generic_xhci_acpi.c USB: adjust the Generic XHCI ACPI probe return value 2021-10-08 10:28:44 +00:00
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-01-12 13:53:19 +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 Factor out repeated code in the USB controller drivers to avoid bugs 2021-07-10 20:59:00 +02: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
uhci.c Fix a common typo in source code comments 2021-08-14 14:17:48 +02:00
uhci.h
uhci_pci.c
uhcireg.h
usb_controller.c Create wrapper for Giant taken for newbus 2021-12-09 17:04:45 -07:00
usb_nop_xceiv.c
uss820dci.c Fix undefined behaviour in the USB controllers 2022-01-12 13:53:19 +00:00
uss820dci.h
xhci.c Fix undefined behaviour in the USB controllers 2022-01-12 13:53:19 +00:00
xhci.h xhci: Rework 64-byte context support to avoid pointer abuse 2021-10-27 18:38:37 +01:00
xhci_pci.c xhci: add PCI IDs for USB controllers found on Supermicro M12SWA-TF 2021-12-02 20:12:33 -08:00
xhcireg.h