Linus Torvalds
96d4f267e4
Remove 'type' argument from access_ok() function
...
Nobody has actually used the type (VERIFY_READ vs VERIFY_WRITE) argument
of the user address range verification function since we got rid of the
old racy i386-only code to walk page tables by hand.
It existed because the original 80386 would not honor the write protect
bit when in kernel mode, so you had to do COW by hand before doing any
user access. But we haven't supported that in a long time, and these
days the 'type' argument is a purely historical artifact.
A discussion about extending 'user_access_begin()' to do the range
checking resulted this patch, because there is no way we're going to
move the old VERIFY_xyz interface to that model. And it's best done at
the end of the merge window when I've done most of my merges, so let's
just get this done once and for all.
This patch was mostly done with a sed-script, with manual fix-ups for
the cases that weren't of the trivial 'access_ok(VERIFY_xyz' form.
There were a couple of notable cases:
- csky still had the old "verify_area()" name as an alias.
- the iter_iov code had magical hardcoded knowledge of the actual
values of VERIFY_{READ,WRITE} (not that they mattered, since nothing
really used it)
- microblaze used the type argument for a debug printout
but other than those oddities this should be a total no-op patch.
I tried to fix up all architectures, did fairly extensive grepping for
access_ok() uses, and the changes are trivial, but I may have missed
something. Any missed conversion should be trivially fixable, though.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2019-01-03 18:57:57 -08:00
..
accessibility
acpi
Remove 'type' argument from access_ok() function
2019-01-03 18:57:57 -08:00
amba
android
ata
for-4.21/libata-20190102
2019-01-02 18:47:56 -08:00
atm
auxdisplay
auxdisplay: charlcd: fix x/y command parsing
2018-12-21 21:27:21 +01:00
base
Device properties framework fixes for 4.21-rc1
2019-01-02 18:43:57 -08:00
bcma
block
virtio, vhost: features, fixes, cleanups
2019-01-02 18:54:45 -08:00
bluetooth
bus
ARM: SoC driver updates
2018-12-31 17:32:35 -08:00
cdrom
gdrom: fix a memory leak bug
2018-12-29 08:20:44 -07:00
char
Remove 'type' argument from access_ok() function
2019-01-03 18:57:57 -08:00
clk
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
2019-01-02 18:56:59 -08:00
clocksource
Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
2018-12-25 15:44:08 -08:00
connector
cpufreq
powerpc updates for 4.21
2018-12-27 10:43:24 -08:00
cpuidle
powerpc updates for 4.21
2018-12-27 10:43:24 -08:00
crypto
Remove 'type' argument from access_ok() function
2019-01-03 18:57:57 -08:00
dax
mm, devm_memremap_pages: fix shutdown handling
2018-12-28 12:11:47 -08:00
dca
devfreq
dio
dma
IOMMU Updates for Linux v4.21
2019-01-01 15:55:29 -08:00
dma-buf
edac
eisa
extcon
firewire
Remove 'type' argument from access_ok() function
2019-01-03 18:57:57 -08:00
firmware
Remove 'type' argument from access_ok() function
2019-01-03 18:57:57 -08:00
fmc
fpga
Remove 'type' argument from access_ok() function
2019-01-03 18:57:57 -08:00
fsi
gnss
gpio
This is the bulk of GPIO changes for the v4.21 kernel series:
2018-12-28 20:00:21 -08:00
gpu
Remove 'type' argument from access_ok() function
2019-01-03 18:57:57 -08:00
hid
This is the bulk of GPIO changes for the v4.21 kernel series:
2018-12-28 20:00:21 -08:00
hsi
hv
Char/Misc driver patches for 4.21-rc1
2018-12-28 20:54:57 -08:00
hwmon
Kconfig updates for v4.21
2018-12-29 13:03:29 -08:00
hwspinlock
hwtracing
i2c
Kconfig updates for v4.21
2018-12-29 13:03:29 -08:00
i3c
ide
for-4.21/block-20181221
2018-12-28 13:19:59 -08:00
idle
iio
Staging/IIO driver patches for 4.21-rc1
2018-12-28 20:39:58 -08:00
infiniband
Remove 'type' argument from access_ok() function
2019-01-03 18:57:57 -08:00
input
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
2019-01-02 18:56:59 -08:00
iommu
IOMMU Updates for Linux v4.21
2019-01-01 15:55:29 -08:00
ipack
irqchip
Xtensa updates for v4.21:
2018-12-29 09:40:40 -08:00
isdn
isdn: fix kernel-infoleak in capi_unlocked_ioctl
2019-01-02 10:31:39 -08:00
leds
LEDs for 4.21-rc1
2018-12-25 14:52:50 -08:00
lightnvm
lightnvm: pblk: fix use-after-free bug
2018-12-22 14:45:35 -07:00
macintosh
Remove 'type' argument from access_ok() function
2019-01-03 18:57:57 -08:00
mailbox
mailbox: tegra-hsp: Use device-managed registration API
2018-12-21 22:31:26 -06:00
mcb
md
Merge branch 'akpm' (patches from Andrew)
2018-12-28 16:55:46 -08:00
media
Remove 'type' argument from access_ok() function
2019-01-03 18:57:57 -08:00
memory
ARM: SoC driver updates
2018-12-31 17:32:35 -08:00
memstick
MMC core:
2018-12-28 16:52:18 -08:00
message
mfd
misc
Remove 'type' argument from access_ok() function
2019-01-03 18:57:57 -08:00
mmc
MMC core:
2018-12-28 16:52:18 -08:00
mtd
Kbuild updates for v4.21
2018-12-29 12:03:17 -08:00
mux
net
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2019-01-03 12:53:47 -08:00
nfc
ntb
nubus
nvdimm
Merge branch 'akpm' (patches from Andrew)
2018-12-28 16:55:46 -08:00
nvme
nvmem
of
Merge tag 'devicetree-for-4.21' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux
2018-12-28 20:08:34 -08:00
opp
oprofile
parisc
Kconfig file consolidation for v4.21
2018-12-29 13:40:29 -08:00
parport
pci
Remove 'type' argument from access_ok() function
2019-01-03 18:57:57 -08:00
pcmcia
perf
phy
pinctrl
Pin control bulk changes for the v4.21 kernel cycle:
2019-01-01 13:19:16 -08:00
platform
Remove 'type' argument from access_ok() function
2019-01-03 18:57:57 -08:00
pnp
Remove 'type' argument from access_ok() function
2019-01-03 18:57:57 -08:00
power
power supply and reset changes for the v4.21 series
2018-12-28 20:22:45 -08:00
powercap
pps
Kconfig updates for v4.21
2018-12-29 13:03:29 -08:00
ps3
ptp
Char/Misc driver patches for 4.21-rc1
2018-12-28 20:54:57 -08:00
pwm
pwm: imx: Add ipg clock operation
2018-12-24 12:06:56 +01:00
rapidio
ras
treewide: surround Kconfig file paths with double quotes
2018-12-22 00:25:54 +09:00
regulator
Merge remote-tracking branch 'regulator/topic/coupled' into regulator-next
2018-12-21 13:43:35 +00:00
remoteproc
reset
rpmsg
rtc
RTC for 4.21
2019-01-01 13:24:31 -08:00
s390
s390 updates for the 4.21 merge window
2019-01-02 18:37:01 -08:00
sbus
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-next
2018-12-26 10:32:18 -08:00
scsi
Remove 'type' argument from access_ok() function
2019-01-03 18:57:57 -08:00
sfi
sh
siox
slimbus
sn
soc
ARM: SoC driver updates
2018-12-31 17:32:35 -08:00
soundwire
spi
spi: Updates for v4.21
2018-12-25 14:43:54 -08:00
spmi
ssb
staging
Remove 'type' argument from access_ok() function
2019-01-03 18:57:57 -08:00
target
SCSI misc on 20181224
2018-12-28 14:48:06 -08:00
tc
tee
thermal
Kconfig updates for v4.21
2018-12-29 13:03:29 -08:00
thunderbolt
tty
Remove 'type' argument from access_ok() function
2019-01-03 18:57:57 -08:00
uio
Char/Misc driver patches for 4.21-rc1
2018-12-28 20:54:57 -08:00
usb
Remove 'type' argument from access_ok() function
2019-01-03 18:57:57 -08:00
uwb
vfio
IOMMU Updates for Linux v4.21
2019-01-01 15:55:29 -08:00
vhost
Remove 'type' argument from access_ok() function
2019-01-03 18:57:57 -08:00
video
Remove 'type' argument from access_ok() function
2019-01-03 18:57:57 -08:00
virt
virtio
virtio, vhost: features, fixes, cleanups
2019-01-02 18:54:45 -08:00
visorbus
vlynq
vme
w1
treewide: surround Kconfig file paths with double quotes
2018-12-22 00:25:54 +09:00
watchdog
linux-watchdog 4.21-rc1 tag
2019-01-01 13:16:45 -08:00
xen
Remove 'type' argument from access_ok() function
2019-01-03 18:57:57 -08:00
zorro
Kconfig
Kconfig file consolidation for v4.21
2018-12-29 13:40:29 -08:00
Makefile