mirror of
https://github.com/torvalds/linux.git
synced 2024-11-19 10:31:48 +00:00
8d1759329d
This patch fixes a possible kernel crash when a user provides a too small input structure to the Debug IOCTL. The fix sets a default input structure and copies to it the user data. In case the user provided as input a too small structure, the code will use the default values taken from the default structure. Note that in contrary to the input structure, the user can provide an output structure with changing size or no size at all. Therefore the user output structure validation is already done in the Debug logic later on. Signed-off-by: Omer Shpigelman <oshpigelman@habana.ai> Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com> |
||
---|---|---|
.. | ||
goya | ||
include | ||
asid.c | ||
command_buffer.c | ||
command_submission.c | ||
context.c | ||
debugfs.c | ||
device.c | ||
firmware_if.c | ||
habanalabs_drv.c | ||
habanalabs_ioctl.c | ||
habanalabs.h | ||
hw_queue.c | ||
hwmon.c | ||
irq.c | ||
Kconfig | ||
Makefile | ||
memory.c | ||
mmu.c | ||
pci.c | ||
sysfs.c |