mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-05 10:06:48 +07:00
9d793b0bcb
The I2O ioctls assume 32bits. In itself that is fine as they are old cards and nobody uses 64bit. However on LKML it was noted this assumption is also made for allocated memory and is unsafe on 64bit systems. Fixing this is a mess. It turns out there is tons of crap buried in a header file that does racy 32/64bit filtering on the masks. So we: - Verify all callers of the racy code can sleep (i2o_dma_[re]alloc) - Move the code into a new i2o/memory.c file - Remove the gfp_mask argument so nobody can try and misuse the function - Wrap a mutex around the problem area (a single mutex is easy to do and none of this is performance relevant) - Switch the remaining problem kmalloc holdout to use i2o_dma_alloc Cc: Markus Lidel <Markus.Lidel@shadowconnect.com> Cc: Vasily Averin <vvs@sw.ru> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 lines
516 B
Makefile
17 lines
516 B
Makefile
#
|
|
# Makefile for the kernel I2O OSM.
|
|
#
|
|
# Note : at this point, these files are compiled on all systems.
|
|
# In the future, some of these should be built conditionally.
|
|
#
|
|
|
|
i2o_core-y += iop.o driver.o device.o debug.o pci.o exec-osm.o memory.o
|
|
i2o_bus-y += bus-osm.o
|
|
i2o_config-y += config-osm.o
|
|
obj-$(CONFIG_I2O) += i2o_core.o
|
|
obj-$(CONFIG_I2O_CONFIG)+= i2o_config.o
|
|
obj-$(CONFIG_I2O_BUS) += i2o_bus.o
|
|
obj-$(CONFIG_I2O_BLOCK) += i2o_block.o
|
|
obj-$(CONFIG_I2O_SCSI) += i2o_scsi.o
|
|
obj-$(CONFIG_I2O_PROC) += i2o_proc.o
|