linux-stable/drivers
Jason Wang 429711aec2 vhost: switch to use new message format
We use to have message like:

struct vhost_msg {
	int type;
	union {
		struct vhost_iotlb_msg iotlb;
		__u8 padding[64];
	};
};

Unfortunately, there will be a hole of 32bit in 64bit machine because
of the alignment. This leads a different formats between 32bit API and
64bit API. What's more it will break 32bit program running on 64bit
machine.

So fixing this by introducing a new message type with an explicit
32bit reserved field after type like:

struct vhost_msg_v2 {
	__u32 type;
	__u32 reserved;
	union {
		struct vhost_iotlb_msg iotlb;
		__u8 padding[64];
	};
};

We will have a consistent ABI after switching to use this. To enable
this capability, introduce a new ioctl (VHOST_SET_BAKCEND_FEATURE) for
userspace to enable this feature (VHOST_BACKEND_F_IOTLB_V2).

Fixes: 6b1e6cc785 ("vhost: new device IOTLB API")
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-08-06 10:41:04 -07:00
..
accessibility
acpi Merge branch 'acpi-soc' 2018-07-31 10:35:47 +02:00
amba
android
ata
atm
auxdisplay
base Merge ra.kernel.org:/pub/scm/linux/kernel/git/davem/net 2018-08-02 10:55:32 -07:00
bcma
block Merge ra.kernel.org:/pub/scm/linux/kernel/git/davem/net 2018-08-02 10:55:32 -07:00
bluetooth Bluetooth: h5: Fix missing dependency on BT_HCIUART_SERDEV 2018-08-04 23:23:32 +02:00
bus
cdrom
char In reaction to the fixes to address CVE-2018-1108, some Linux 2018-07-28 19:40:06 -07:00
clk clk: aspeed: Support HPLL strapping on ast2400 2018-07-11 09:34:25 -07:00
clocksource clocksource: arm_arch_timer: Set arch_mem_timer cpumask to cpu_possible_mask 2018-07-10 22:12:47 +02:00
connector connector: fix defined but not used warning 2018-07-08 11:00:50 +09:00
cpufreq cpufreq: intel_pstate: Limit the scope of HWP dynamic boost platforms 2018-07-31 10:39:58 +02:00
cpuidle
crypto Merge ra.kernel.org:/pub/scm/linux/kernel/git/davem/net 2018-08-05 13:04:31 -07:00
dax * fix one ensures that a variable passed in by reference to 2018-07-13 10:54:01 -07:00
dca
devfreq
dio
dma
dma-buf
edac
eisa
extcon
firewire
firmware
fmc
fpga fpga: altera-cvp: Fix an error handling path in 'altera_cvp_probe()' 2018-07-07 16:55:22 +02:00
fsi
gpio gpio: uniphier: set legitimate irq trigger type in .to_irq hook 2018-07-23 23:13:31 +02:00
gpu drm-misc-fixes pull request for v4.18-rc7: 2018-08-01 08:54:35 +10:00
hid Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid 2018-07-09 17:16:11 -07:00
hsi
hv
hwmon hwmon: Add support for power min, lcrit, min_alarm and lcrit_alarm 2018-07-18 10:01:46 +09:00
hwspinlock
hwtracing
i2c Merge branch 'locking-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2018-07-30 11:37:16 -07:00
ide
idle
iio
infiniband Merge ra.kernel.org:/pub/scm/linux/kernel/git/davem/net 2018-08-05 13:04:31 -07:00
input Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input 2018-07-27 09:53:45 -07:00
iommu Revert "iommu/vt-d: Clean up pasid quirk for pre-production devices" 2018-07-20 13:55:56 +02:00
ipack
irqchip
isdn isdn: hisax: config: Replace GFP_ATOMIC with GFP_KERNEL 2018-07-26 21:23:47 -07:00
leds
lightnvm
macintosh
mailbox
mcb
md - Fix DM writecache target to allow an optional offset to the start of 2018-07-20 14:24:17 -07:00
media media fixes for v4.18-rc8 2018-08-02 16:55:42 -07:00
memory
memstick
message
mfd
misc Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2018-07-22 12:04:51 -07:00
mmc mmc: mxcmmc: Fix missing parentheses and brace 2018-07-16 11:45:44 +02:00
mtd
mux
net mellanox: fix the dport endianness in call of __inet6_lookup_established() 2018-08-06 10:30:50 -07:00
nfc
ntb
nubus
nvdimm * fix one ensures that a variable passed in by reference to 2018-07-13 10:54:01 -07:00
nvme for-linus-20180727 2018-07-27 12:51:00 -07:00
nvmem nvmem: Don't let a NULL cell_id for nvmem_cell_get() crash us 2018-07-07 17:30:25 +02:00
of Merge ra.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux 2018-07-20 21:17:12 -07:00
opp
oprofile
parisc
parport
pci pci-v4.18-fixes-5 2018-08-02 10:59:19 -07:00
pcmcia
perf
phy
pinctrl pinctrl: nsp: Fix potential NULL dereference 2018-07-14 12:47:04 +02:00
platform platform/x86: dell-laptop: Fix backlight detection 2018-07-20 15:29:59 +03:00
pnp
power
powercap
pps
ps3
ptp ptp_qoriq: support automatic configuration for ptp timer 2018-08-05 17:11:49 -07:00
pwm
rapidio
ras
regulator
remoteproc
reset
rpmsg
rtc rtc: fix alarm read and set offset 2018-07-13 10:37:54 +02:00
s390 s390/qeth: speed up L2 IQD xmit 2018-07-21 10:12:30 -07:00
sbus
scsi SCSI fixes on 20180731 2018-07-31 09:46:36 -07:00
sfi
sh
siox
slimbus
sn
soc i.MX fixes for 4.18, round 3: 2018-07-19 15:09:59 -07:00
soundwire
spi
spmi
ssb
staging Merge ra.kernel.org:/pub/scm/linux/kernel/git/davem/net 2018-08-02 10:55:32 -07:00
target scsi: target: iscsi: cxgbit: fix max iso npdu calculation 2018-07-12 23:04:06 -04:00
tc
tee
thermal
thunderbolt thunderbolt: Notify userspace when boot_acl is changed 2018-07-07 17:29:17 +02:00
tty
uio uio: fix crash after the device is unregistered 2018-07-07 16:57:35 +02:00
usb usb: core: handle hub C_PORT_OVER_CURRENT condition 2018-07-21 08:38:29 +02:00
uwb
vfio powerpc fixes for 4.18 #4 2018-07-21 16:46:53 -07:00
vhost vhost: switch to use new message format 2018-08-06 10:41:04 -07:00
video
virt
virtio virtio_balloon: fix another race between migration and ballooning 2018-07-30 16:45:33 +03:00
visorbus
vlynq
vme
w1
watchdog
xen
zorro
Kconfig
Makefile