freebsd-dev/sys/dev/mpr
Alan Somers 72aad3f902 Fix kernel memory disclosures in mpr and mps
In every mpr and mps ioctl that copies kernel data to userland, validate
that the requested length does not exceed the size of the kernel's
buffer.

Note that all of these ioctls already required root access.

MFC after:	2 weeks
Sponsored by:	Axcient
Reviewed by:	imp
Differential Revision: https://reviews.freebsd.org/D38842
2023-03-02 13:31:06 -07:00
..
mpi
mpr_config.c mps/mpr: Add missing newlines in error messages. 2022-02-22 15:08:22 -05:00
mpr_ioctl.h
mpr_mapping.c mpr(4): Remove a double word in a source code comment 2022-09-04 13:46:44 +02:00
mpr_mapping.h
mpr_pci.c mpr/mps/mpt: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-06 15:39:32 -07:00
mpr_sas_lsi.c mps/mpr: Add missing newlines in error messages. 2022-02-22 15:08:22 -05:00
mpr_sas.c mpr/mps: when sending reset on removal, include target in message 2022-04-28 16:30:00 -06:00
mpr_sas.h mpr/mps: Remove write-only flag and callout 2022-01-24 13:21:09 -07:00
mpr_table.c Fix "set but not used" warnings in the mpr driver. This fixes a minor 2021-11-25 03:28:29 +00:00
mpr_table.h
mpr_user.c Fix kernel memory disclosures in mpr and mps 2023-03-02 13:31:06 -07:00
mpr.c Fix mpr(4) panic during a firmware update. 2022-10-17 12:48:34 -04:00
mprvar.h mpr(4): Handle mprsas_alloc_tm() errors on device removal. 2021-08-20 10:03:32 -04:00