opnsense-src/sys/dev/usb
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
..
controller Fix undefined behaviour in the USB controllers 2022-01-12 13:53:19 +00:00
gadget
input usb: real freebsd32 support for most ioctls 2021-12-17 21:28:13 +00:00
misc Fix typo on "Celsius" 2021-11-18 23:05:32 -07:00
net Create wrapper for Giant taken for newbus 2021-12-09 17:04:45 -07:00
quirk
serial uchcom(4): Add new USB ID. 2022-01-07 14:02:30 +01:00
storage
template
video
wlan net80211/drivers: improve ieee80211_rx_stats for band 2021-10-22 09:55:54 +00:00
ufm_ioctl.h
uftdiio.h
uled_ioctl.h
usb.h
usb_bus.h
usb_busdma.c Fix busdma resource leak on usb device detach. 2021-09-28 13:29:10 -06:00
usb_busdma.h Fix busdma resource leak on usb device detach. 2021-09-28 13:29:10 -06:00
usb_cdc.h
usb_controller.h
usb_core.c
usb_core.h
usb_debug.c
usb_debug.h
usb_dev.c usb: real freebsd32 support for most ioctls 2021-12-17 21:28:13 +00:00
usb_dev.h usb: add 32-bit compat for FIFOs 2021-12-17 21:28:14 +00:00
usb_device.c Create wrapper for Giant taken for newbus 2021-12-09 17:04:45 -07:00
usb_device.h
usb_dynamic.c
usb_dynamic.h
usb_endian.h
usb_error.c
usb_fdt_support.c
usb_fdt_support.h
usb_freebsd.h
usb_freebsd_loader.h
usb_generic.c usb(4): Fix build on 32-bit platforms after 0ec590d24e. 2021-12-18 21:31:58 +01:00
usb_generic.h
usb_handle_request.c
usb_hid.c
usb_hub.c
usb_hub.h
usb_hub_acpi.c
usb_hub_private.h
usb_if.m
usb_ioctl.h usb: remove COMPAT_32BIT ifdefs 2021-12-17 21:28:39 +00:00
usb_lookup.c
usb_mbuf.c
usb_mbuf.h
usb_msctest.c
usb_msctest.h
usb_parse.c
usb_pci.h
usb_pf.c
usb_pf.h
usb_process.c
usb_process.h
usb_request.c
usb_request.h
usb_transfer.c
usb_transfer.h
usb_util.c
usb_util.h
usbdevs rtwn(4): Add new USB ID. 2022-01-11 21:19:53 +01:00
usbdi.h
usbdi_util.h
usbhid.h