Re: [PATCH 1/3] s390/kernel: add system calls for access PCI memory

2014-10-13 Thread Martin Schwidefsky
On Sun, 12 Oct 2014 11:52:55 + Shachar Raindel rain...@mellanox.com wrote: + switch (length) { + case 1: + ret = get_user(value.buf8, ((u8 *)user_buffer)); This cast (and similar casts across the code) kills the __user annotation of the user buffer pointer. First -

RE: [PATCH 1/3] s390/kernel: add system calls for access PCI memory

2014-10-12 Thread Shachar Raindel
; utz.bac...@de.ibm.com; rol...@kernel.org; Yishai Hadas; Alexey Ishchuk; Alexey Ishchuk Subject: [PATCH 1/3] s390/kernel: add system calls for access PCI memory Add the new __NR_s390_pci_mmio_write and __NR_s390_pci_mmio_read system calls to allow user space applications to access device PCI I/O