opnsense-src/sys/dev/usb
Mark Johnston 5dc4682c32 if_urndis: Organize buffer layouts more naturally
- Group the request header and I/O buffer in one structure, rather than
  assuming that both request structures have the same size.
- Pass a pointer to the whole structure to urndis_ctrl_query() and
  urndis_ctrl_set() rather than just the header.  Otherwise, on CHERI
  platforms, these functions violate subobject bounds since they modify
  the buffer following the header.

While here, there is no apparent reason for the request structure used
in urndis_attach() to be allocated statically.  Change it so that it's
allocated on the stack.

No functional change intended.

Reviewed by:	jhb
MFC after:	2 weeks
Sponsored by:	Innovate UK
Differential Revision:	https://reviews.freebsd.org/D45866
2024-07-09 10:26:16 -04:00
..
controller Add some AMD device IDs. 2024-06-07 13:02:03 -04:00
gadget sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
input ums(4): fix incorrect mouse button reporting via evdev 2024-07-03 02:15:50 +03:00
misc Add support for i2c-tiny-usb: usb to iic bridge 2024-04-19 16:40:23 -06:00
net if_urndis: Organize buffer layouts more naturally 2024-07-09 10:26:16 -04:00
quirk usb: Remove uneeded revision verbosity from quirks list 2024-05-11 13:32:57 -06:00
serial u3g: Add support for SIM7600G 2024-06-06 17:02:15 +02:00
storage sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
template sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
video
wlan uath(4): Fix a typo in a source code comment 2024-02-22 16:55:51 +01:00
ufm_ioctl.h
uftdiio.h
uled_ioctl.h
usb.h
usb_bus.h
usb_busdma.c
usb_busdma.h
usb_cdc.h
usb_controller.h
usb_core.c
usb_core.h
usb_debug.c
usb_debug.h
usb_dev.c
usb_dev.h
usb_device.c usb(4): Remove a double word in a source code comment 2024-04-20 14:10:59 +02:00
usb_device.h
usb_dynamic.c
usb_dynamic.h
usb_endian.h
usb_error.c
usb_fdt_support.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
usb_fdt_support.h
usb_freebsd.h
usb_freebsd_loader.h
usb_generic.c ugen: fix USB_IFACE_DRIVER_ACTIVE after detaching a driver 2024-02-19 12:44:00 +02: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 sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
usb_ioctl.h
usb_lookup.c
usb_mbuf.c
usb_mbuf.h
usb_msctest.c
usb_msctest.h
usb_parse.c
usb_pci.h
usb_pf.c net: Remove unneeded NULL check for the allocated ifnet 2024-06-28 18:16:29 +08:00
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: use only usb_devinfo() in device_set_usb_desc() 2024-01-16 18:49:08 +02:00
usb_util.h
usbdevs u3g: Add support for SIM7600G 2024-06-06 17:02:15 +02:00
usbdi.h
usbdi_util.h
usbhid.h