[PATCH 04/10] pinctrl: actions: Add Actions S900 pinctrl driver

2018-02-28 Thread Manivannan Sadhasivam
Add pinctrl driver for Actions Semi S900 SoC. The driver supports pinctrl, pinmux and pinconf functionalities through a range of registers common to both gpio driver and pinctrl driver. Pinmux functionality is available only for the pin groups while the pinconf functionality is available for both

[PATCH 06/10] arm64: dts: actions: Add S900 gpio nodes

2018-02-28 Thread Manivannan Sadhasivam
Add gpio nodes for Actions Semi S900 SoC. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/actions/s900-bubblegum-96.dts | 6 +++ arch/arm64/boot/dts/actions/s900.dtsi | 48 +++ 2 files changed, 54 insertions(+) diff --git a/arch/arm64/boot/dts/actio

[PATCH 08/10] gpio: Add gpio driver for Actions OWL S900 SoC

2018-02-28 Thread Manivannan Sadhasivam
Add gpio driver for Actions Semi OWL family S900 SoC. Set of registers controlling the gpio shares the same register range with pinctrl block. GPIO registers are organized as 6 banks and each bank controls the maximum of 32 gpios. Signed-off-by: Manivannan Sadhasivam --- drivers/gpio/Kconfig

[PATCH 07/10] arm64: dts: actions: Add gpio line names to Bubblegum-96 board

2018-02-28 Thread Manivannan Sadhasivam
Add gpio line names to Actions Semi S900 based Bubblegum-96 board. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/actions/s900-bubblegum-96.dts | 195 ++ 1 file changed, 195 insertions(+) diff --git a/arch/arm64/boot/dts/actions/s900-bubblegum-96.dts b/arch/ar

Re: [PATCH v5 0/4] vm: add a syscall to map a process memory into a pipe

2018-02-28 Thread Andrei Vagin
On Wed, Feb 28, 2018 at 10:12:55AM +0300, Pavel Emelyanov wrote: > On 02/27/2018 05:18 AM, Dmitry V. Levin wrote: > > On Mon, Feb 26, 2018 at 12:02:25PM +0300, Pavel Emelyanov wrote: > >> On 02/21/2018 03:44 AM, Andrew Morton wrote: > >>> On Tue, 9 Jan 2018 08:30:49 +0200 Mike Rapoport > >>> wro

[PATCH 02/10] arm64: dts: actions: Add pinctrl node for S900

2018-02-28 Thread Manivannan Sadhasivam
Add pinctrl nodes for Actions Semi S900 SoC Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/actions/s900.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/actions/s900.dtsi b/arch/arm64/boot/dts/actions/s900.dtsi index fee0c9557656..0156483f0f4d 100

[PATCH 03/10] arm64: actions: Enable PINCTRL in platforms Kconfig

2018-02-28 Thread Manivannan Sadhasivam
Select PINCTRL for Actions Semi SoCs Signed-off-by: Manivannan Sadhasivam --- arch/arm64/Kconfig.platforms | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index fbedbd8f619a..bae1289bdc3f 100644 --- a/arch/arm64/Kconfig.platforms ++

[PATCH 00/10] Add Actions Semi S900 pinctrl and gpio support

2018-02-28 Thread Manivannan Sadhasivam
This patchset adds pinctrl and gpio support for Actions Semi S900 SoC. Pinctrl and gpio subsystems share the common set of register range but implemented as individual drivers for making it less complex. Pinmux functions are only accessible for pin groups while pinconf parameters are available for

Re: [PATCH] pci-iov: Add support for unmanaged SR-IOV

2018-02-28 Thread Alexander Duyck
On Tue, Feb 27, 2018 at 2:25 PM, Alexander Duyck wrote: > On Tue, Feb 27, 2018 at 1:40 PM, Alex Williamson > wrote: >> On Tue, 27 Feb 2018 11:06:54 -0800 >> Alexander Duyck wrote: >> >>> From: Alexander Duyck >>> >>> This patch is meant to add support for SR-IOV on devices when the VFs are >>>

Re: [PATCH v5] arm64: Add support for new control bits CTR_EL0.DIC and CTR_EL0.IDC

2018-02-28 Thread Mark Rutland
Hi, On Sat, Feb 24, 2018 at 06:09:53AM -0600, Shanker Donthineni wrote: > +config ARM64_SKIP_CACHE_POU > + bool "Enable support to skip cache POU operations" Nit: s/POU/PoU/ in text > + default y > + help > + Explicit point of unification cache operations can be eliminated > +

Re: [PATCH 7/7] x86/microcode: Synchronize late microcode loading

2018-02-28 Thread Henrique de Moraes Holschuh
On Wed, 28 Feb 2018, Borislav Petkov wrote: > On Wed, Feb 28, 2018 at 10:59:31AM -0300, Henrique de Moraes Holschuh wrote: > > Eek! If I read that right, this effectively halts the entire box until > > every core is updated, with one core entering deep-coma at a time (the > > rest are left either s

[PATCH 3.2 001/140] ALSA: seq: Fix regression by incorrect ioctl_mutex usages

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai This is the revised backport of the upstream commit b3defb791b26ea0683a93a4f49c77ec45ec96f10 We had another backport (e.g. 623e5c8ae32b in 4.4.115), but it applies the new mutex a

[PATCH 3.2 014/140] USB: usbfs: Filter flags passed in from user space

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Oliver Neukum commit 446f666da9f019ce2ffd03800995487e79a91462 upstream. USBDEVFS_URB_ISO_ASAP must be accepted only for ISO endpoints. Improve sanity checking. Reported-by: Andrey Konovalov

[PATCH 3.2 012/140] KVM: apic: fix LDR calculation in x2apic mode

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Gleb Natapov commit 7f46ddbd487e0d0528d89534fdfb31d885977804 upstream. Signed-off-by: Gleb Natapov Reviewed-by: Chegu Vinod Tested-by: Chegu Vinod Signed-off-by: Avi Kivity [bwh: Backport

Re: [PATCH 3.16 083/254] dmaengine: dmatest: move callback wait queue to thread context

2018-02-28 Thread Adam Wallis
Ben On 2/28/2018 10:20 AM, Ben Hutchings wrote: > 3.16.55-rc1 review patch. If anyone has any objections, please let me know. > > -- > > From: Adam Wallis > > commit 6f6a23a213be51728502b88741ba6a10cda2441d upstream. > > Commit adfa543e7314 ("dmatest: don't use set_freezable_

[PATCH 3.2 017/140] serial: 8250_pci: Add Amazon PCI serial device ID

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Matt Wilson commit 3bfd1300abfe3adb18e84a89d97a0e82a22124bb upstream. This device will be used in future Amazon EC2 instances as the primary serial port (i.e., data sent to this port will be a

[PATCH 3.2 018/140] isa: Prevent NULL dereference in isa_bus driver callbacks

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: William Breathitt Gray commit 5a244727f428a06634f22bb890e78024ab0c89f3 upstream. The isa_driver structure for an isa_bus device is stored in the device platform_data member of the respective d

[PATCH 3.2 004/140] iommu/vt-d: Fix scatterlist offset handling

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Robin Murphy commit 29a90b70893817e2f2bb3cea40a29f5308e21b21 upstream. The intel-iommu DMA ops fail to correctly handle scatterlists where sg->offset is greater than PAGE_SIZE - the IOVA alloc

[PATCH 3.2 005/140] btrfs: clear space cache inode generation always

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Josef Bacik commit 8e138e0d92c6c9d3d481674fb14e3439b495be37 upstream. We discovered a box that had double allocations, and suspected the space cache may be to blame. While auditing the write

[PATCH 3.2 000/140] 3.2.100-rc1 review

2018-02-28 Thread Ben Hutchings
This is the start of the stable review cycle for the 3.2.100 release. There are 140 patches in this series, which will be posted as responses to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Fri Mar 02 18:00:00 UTC 2018. Anything rece

[PATCH 3.2 016/140] USB: core: Add type-specific length check of BOS descriptors

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Masakazu Mokuno commit 81cf4a45360f70528f1f64ba018d61cb5767249a upstream. As most of BOS descriptors are longer in length than their header 'struct usb_dev_cap_header', comparing solely with i

[PATCH 3.2 013/140] hwmon: (pmbus) Use 64bit math for DIRECT format values

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Robert Lippert commit bd467e4eababe4c04272c1e646f066db02734c79 upstream. Power values in the 100s of watt range can easily blow past 32bit math limits when processing everything in microwatts.

[PATCH 3.2 010/140] Input: elantech - add new icbody type 15

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Aaron Ma commit 10d900303f1c3a821eb0bef4e7b7ece16768fba4 upstream. The touchpad of Lenovo Thinkpad L480 reports it's version as 15. Signed-off-by: Aaron Ma Signed-off-by: Dmitry Torokhov Si

Re: [PATCH] arm64: kdump: fix interrupt handling done during machine_crash_shutdown

2018-02-28 Thread Marc Zyngier
On 28/02/18 17:16, Mark Rutland wrote: > [Adding MarcZ] > > On Wed, Feb 28, 2018 at 06:01:00PM +0100, Grzegorz Jaszczyk wrote: >> Hitherto during machine_kexec_mask_interrupts there was an attempt to >> remove active state using irq_set_irqchip_state() routine and only if it >> failed, the attempt

[PATCH 3.2 135/140] media: v4l2-compat-ioctl32.c: copy clip list in put_v4l2_window32

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Hans Verkuil commit a751be5b142ef6bcbbb96d9899516f4d9c8d0ef4 upstream. put_v4l2_window32() didn't copy back the clip list to userspace. Drivers can update the clip rectangles, so this should b

[RFC] power/hibernate: Make passing hibernate offsets more friendly

2018-02-28 Thread Mario Limonciello
Currently the only way to specify a hibernate offset for a swap file is on the kernel command line. This makes some changes to improve: 1) Add a new /sys/power/disk_offset that lets userspace specify the offset and disk to use when initiating a hibernate cycle. 2) Adjust /sys/power/resume interpr

[PATCH 3.2 015/140] usb: host: fix incorrect updating of offset

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Colin Ian King commit 1d5a31582ef046d3b233f0da1a68ae26519b2f0a upstream. The variable temp is incorrectly being updated, instead it should be offset otherwise the loop just reads the same capa

[PATCH 3.2 127/140] media: v4l2-ioctl.c: don't copy back the result for -ENOTTY

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Hans Verkuil From: Hans Verkuil commit 181a4a2d5a0a7b43cab08a70710d727e7764ccdd upstream. If the ioctl returned -ENOTTY, then don't bother copying back the result as there is no point. Sign

[PATCH 3.2 137/140] media: v4l2-compat-ioctl32.c: don't copy back the result for certain errors

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Hans Verkuil commit d83a8243aaefe62ace433e4384a4f077bed86acb upstream. Some ioctls need to copy back the result even if the ioctl returned an error. However, don't do this for the error code -

[PATCH 3.2 134/140] media: v4l2-compat-ioctl32: Copy v4l2_window->global_alpha

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Daniel Mentz commit 025a26fa14f8fd55d50ab284a30c016a5be953d0 upstream. Commit b2787845fb91 ("V4L/DVB (5289): Add support for video output overlays.") added the field global_alpha to struct v4l

[PATCH 3.2 136/140] media: v4l2-compat-ioctl32.c: drop pr_info for unknown buffer type

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Hans Verkuil commit 169f24ca68bf0f247d111aef07af00dd3a02ae88 upstream. There is nothing wrong with using an unknown buffer type. So stop spamming the kernel log whenever this happens. The kern

[PATCH 3.2 128/140] media: v4l2-compat-ioctl32.c: add missing VIDIOC_PREPARE_BUF

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Hans Verkuil commit 3ee6d040719ae09110e5cdf24d5386abe5d1b776 upstream. The result of the VIDIOC_PREPARE_BUF ioctl was never copied back to userspace since it was missing in the switch. Signed

[PATCH 3.2 130/140] media: v4l2-compat-ioctl32.c: move 'helper' functions to __get/put_v4l2_format32

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Hans Verkuil commit 486c521510c44a04cd756a9267e7d1e271c8a4ba upstream. These helper functions do not really help. Move the code to the __get/put_v4l2_format32 functions. Signed-off-by: Hans V

Re: [PATCH 1/3] x86/kvm/hyper-v: add reenlightenment MSRs support

2018-02-28 Thread Vitaly Kuznetsov
Roman Kagan writes: > On Wed, Feb 28, 2018 at 02:43:59PM +0100, Vitaly Kuznetsov wrote: >> Nested Hyper-V/Windows guest running on top of KVM will use TSC page >> clocksource in two cases: >> - L0 exposes invariant TSC (CPUID.8007H:EDX[8]). >> - L0 provides Hyper-V Reenlightenment support (CP

[PATCH 3.2 129/140] media: v4l2-compat-ioctl32.c: fix the indentation

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Hans Verkuil commit b7b957d429f601d6d1942122b339474f31191d75 upstream. The indentation of this source is all over the place. Fix this. This patch only changes whitespace. Signed-off-by: Hans

[PATCH 3.2 139/140] ACPI: sbshc: remove raw pointer from printk() message

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Greg Kroah-Hartman commit 43cdd1b716b26f6af16da4e145b6578f98798bf6 upstream. There's no need to be printing a raw kernel pointer to the kernel log at every boot. So just remove it, and change

Re: [PATCH v2 03/15] s390: zcrypt: externalize AP instructions available function

2018-02-28 Thread Cornelia Huck
On Tue, 27 Feb 2018 09:28:01 -0500 Tony Krowiak wrote: > If the AP instructions are not available on the linux host, then > AP devices can not be interpreted by the SIE. The AP bus has a > function it uses to determine if the AP instructions are > available. This patch provides a new function tha

[PATCH 3.2 121/140] of: fdt: Fix return with value in void function

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Ben Hutchings Commit 49e67dd17649 "of: fdt: add missing allocation-failure check" added a "return NULL" statement in __unflatten_device_tree(). When applied to the 3.2-stable branch, this intr

[PATCH 3.2 116/140] Input: trackpoint - force 3 buttons if 0 button is reported

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Aaron Ma commit f5d07b9e98022d50720e38aa936fc11c67868ece upstream. Lenovo introduced trackpoint compatible sticks with minimum PS/2 commands. They supposed to reply with 0x02, 0x03, or 0x04 in

[PATCH 3.2 131/140] media: v4l2-compat-ioctl32.c: avoid sizeof(type)

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Hans Verkuil commit 333b1e9f96ce05f7498b581509bb30cde03018bf upstream. Instead of doing sizeof(struct foo) use sizeof(*up). There even were cases where 4 * sizeof(__u32) was used instead of si

[PATCH 3.2 133/140] media: v4l2-compat-ioctl32.c: fix ctrl_is_pointer

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Hans Verkuil commit b8c601e8af2d08f733d74defa8465303391bb930 upstream. ctrl_is_pointer just hardcoded two known string controls, but that caused problems when using e.g. custom controls that u

[PATCH 3.2 132/140] media: v4l2-compat-ioctl32.c: copy m.userptr in put_v4l2_plane32

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Hans Verkuil commit 8ed5a59dcb47a6f76034ee760b36e089f3e82529 upstream. The struct v4l2_plane32 should set m.userptr as well. The same happens in v4l2_buffer32 and v4l2-compliance tests for thi

[PATCH 3.2 126/140] media: v4l2-compat-ioctl32.c: add capabilities field to, v4l2_input32

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Hans Verkuil commit 037e0865c2ecbaa4558feba239ece08d7e457ec0 upstream. The v4l2_input32 struct wasn't updated when this field was added. It didn't cause a failure in the compat code, but it is

[PATCH 3.2 112/140] x86/mce: Make machine check speculation protected

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner commit 6f41c34d69eb005e7848716bbcafc979b35037d5 upstream. The machine check idtentry uses an indirect branch directly from the low level code. This evades the speculation prote

[PATCH 3.2 119/140] hrtimer: Reset hrtimer cpu base proper on CPU hotplug

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner commit d5421ea43d30701e03cadc56a38854c36a8b4433 upstream. The hrtimer interrupt code contains a hang detection and mitigation mechanism, which prevents that a long delayed hrti

[PATCH 3.2 138/140] media: v4l2-compat-ioctl32.c: refactor compat ioctl32 logic

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Daniel Mentz commit a1dfb4c48cc1e64eeb7800a27c66a6f7e88d075a upstream. The 32-bit compat v4l2 ioctl handling is implemented based on its 64-bit equivalent. It converts 32-bit data structures i

[PATCH 3.2 120/140] m32r: fix 'fix breakage from "m32r: use generic ptrace_resume code"' fallout

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Geert Uytterhoeven commit a6b202979661eb32646048aeaad7be7b70c2cd22 upstream. Commit acdc0d5ef9dd ('m32r: fix breakage from "m32r: use generic ptrace_resume code"') tried to fix a problem in co

[PATCH 3.2 110/140] can: af_can: can_rcv(): replace WARN_ONCE by pr_warn_once

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Marc Kleine-Budde commit 8cb68751c115d176ec851ca56ecfbb411568c9e8 upstream. If an invalid CAN frame is received, from a driver or from a tun interface, a Kernel warning is generated. This pat

[PATCH 3.2 125/140] [media] media: v4l2-compat-ioctl32: fix missing reserved field copy in put_v4l2_create32

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Tiffany Lin commit baf43c6eace43868e490f18560287fa3481b2159 upstream. In v4l2-compliance utility, test VIDIOC_CREATE_BUFS will check whether reserved filed of v4l2_create_buffers filled with z

[PATCH] ARM: iop13xx: Remove duplicated bit-wise or of PCI_STATUS_REC_TARGET_ABORT

2018-02-28 Thread Colin King
From: Colin Ian King Bit pattern PCI_STATUS_REC_TARGET_ABORT is being bit-wise or'd twice; remove the redundant 2nd PCI_STATUS_REC_TARGET_ABORT Signed-off-by: Colin Ian King --- arch/arm/mach-iop13xx/pci.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mach-iop13xx/pci.h b/arch/ar

[PATCH 3.2 115/140] Input: trackpoint - assume 3 buttons when buttons detection fails

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Oscar Campos commit 293b915fd9bebf33cdc906516fb28d54649a25ac upstream. Trackpoint buttons detection fails on ThinkPad 570 and 470 series, this makes the middle button of the trackpoint to not

Re: [PATCH v2 01/15] KVM: s390: refactor crypto initialization

2018-02-28 Thread Cornelia Huck
On Tue, 27 Feb 2018 09:27:59 -0500 Tony Krowiak wrote: > The crypto control block designation (CRYCBD) is a 32-bit > field in the KVM guest's SIE state description. The > contents of bits 1-28 of this field, with three zero bits > appended on the right, designate the host real 31-bit > address of

[PATCH 3.2 008/140] [SCSI] libsas: remove unused ata_task_resp fields

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Dan Williams commit 95ac7fd189b7e81a200b4d00b2bb6669b31acf3a upstream. Commit 1e34c838 "[SCSI] libsas: remove spurious sata control register read/write" removed the routines to fake the presen

[PATCH 3.2 124/140] [media] v4l2-compat-ioctl32: fix alignment for ARM64

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Andrzej Hajda commit 655e9780ab913a3a06d4a164d55e3b755524186d upstream. Alignment/padding rules on AMD64 and ARM64 differs. To allow properly match compatible ioctls on ARM64 kernels without b

[PATCH 3.2 122/140] [media] v4l2-compat-ioctl32: fix sparse warnings

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Hans Verkuil commit 8ae632b11775254c5e555ee8c42b7d19baeb1473 upstream. A lot of these warnings are caused by the fact that we don't generally use __user in videodev2.h. Normally the video_user

[PATCH 3.2 123/140] [media] V4L2: fix VIDIOC_CREATE_BUFS 32-bit compatibility mode data copy-back

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Guennadi Liakhovetski commit 6ed9b28504326f8cf542e6b68245b2f7ce009216 upstream. Similar to an earlier patch, fixing reading user-space data for the VIDIOC_CREATE_BUFS ioctl() in 32-bit compati

Re: [PATCH bpf-next v8 06/11] bpf,landlock: Add a new map type: inode

2018-02-28 Thread kbuild test robot
Hi Mickaël, I love your patch! Perhaps something to improve: [auto build test WARNING on bpf-next/master] url: https://github.com/0day-ci/linux/commits/Micka-l-Sala-n/Landlock-LSM-Toward-unprivileged-sandboxing/20180228-233659 base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf

[PATCH 3.2 108/140] i2c: core-smbus: prevent stack corruption on read I2C_BLOCK_DATA

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Jeremy Compostella commit 89c6efa61f5709327ecfa24bff18e57a4e80c7fa upstream. On a I2C_SMBUS_I2C_BLOCK_DATA read request, if data->block[0] is greater than I2C_SMBUS_BLOCK_MAX + 1, the underlyi

[PATCH 3.2 099/140] cfg80211: check dev_set_name() return value

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Johannes Berg commit 59b179b48ce2a6076448a44531242ac2b3f6cef2 upstream. syzbot reported a warning from rfkill_alloc(), and after a while I think that the reason is that it was doing fault inje

[PATCH 3.2 104/140] KVM/x86: Fix wrong macro references of X86_CR0_PG_BIT and X86_CR4_PAE_BIT in kvm_valid_sregs()

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Tianyu Lan commit 37b95951c58fdf08dc10afa9d02066ed9f176fb5 upstream. kvm_valid_sregs() should use X86_CR0_PG and X86_CR4_PAE to check bit status rather than X86_CR0_PG_BIT and X86_CR4_PAE_BIT.

[PATCH 3.2 097/140] KVM: x86: Add memory barrier on vmcs field lookup

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Andrew Honig commit 75f139aaf896d6fdeec2e468ddfa4b2fe469bf40 upstream. This adds a memory barrier when performing a lookup into the vmcs_field_to_offset_table. This is related to CVE-2017-575

[PATCH 3.2 106/140] dm thin metadata: THIN_MAX_CONCURRENT_LOCKS should be 6

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Dennis Yang commit 490ae017f54e55bde382d45ea24bddfb6d1a0aaf upstream. For btree removal, there is a corner case that a single thread could takes 6 locks which is more than THIN_MAX_CONCURRENT_

[PATCH 3.2 105/140] dm thin metadata: introduce THIN_MAX_CONCURRENT_LOCKS

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Joe Thornber commit 8c971178a788c70e8d6db5c3a813de1a1f54e5b7 upstream. Introduce THIN_MAX_CONCURRENT_LOCKS into dm-thin-metadata to give a name to an otherwise "magic" number. Signed-off-by:

[PATCH 3.2 003/140] KVM: x86: Don't re-execute instruction when not passing CR2 value

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Liran Alon commit 9b8ae63798cb97e785a667ff27e43fa6220cb734 upstream. In case of instruction-decode failure or emulation failure, x86_emulate_instruction() will call reexecute_instruction() whi

[PATCH 3.2 103/140] KVM/x86: Check input paging mode when cs.l is set

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Lan Tianyu commit f29810335965ac1f7bcb501ee2af5f039f792416 upstream. Reported by syzkaller: WARNING: CPU: 0 PID: 27962 at arch/x86/kvm/emulate.c:5631 x86_emulate_insn+0x557/0x15f0 [kvm]

[PATCH 3.2 100/140] sctp: use the right sk after waking up from wait_buf sleep

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Xin Long commit cea0cc80a6777beb6eb643d4ad53690e1ad1d4ff upstream. Commit dfcb9f4f99f1 ("sctp: deny peeloff operation on asocs with threads sleeping on it") fixed the race between peeloff and

Re: [PATCH] Documentation: Update ncurses package names for menuconfig

2018-02-28 Thread Randy Dunlap
On 02/27/2018 10:59 PM, Arvind Prasanna wrote: > The package name is ncurses-devel for Redhat based distros > and libncurses-devel for Debian based distros. That's not what the patch says. Please clarify. > > Signed-off-by: Arvind Prasanna > --- > scripts/kconfig/lxdialo

[PATCH v5 3/3] PCI: endpoint: pci_epf_create: remove goto labels

2018-02-28 Thread Rolf Evers-Fischer
From: Rolf Evers-Fischer Removes the goto labels completely, handles the errors at the respective call site and just returns instead of jumping around. Signed-off-by: Rolf Evers-Fischer --- drivers/pci/endpoint/pci-epf-core.c | 32 1 file changed, 12 insertions

[PATCH v8 2/2] dt-bindings/interrupt-controller: pdc: describe PDC device binding

2018-02-28 Thread Lina Iyer
From: Archana Sathyakumar Add device binding documentation for the PDC Interrupt controller on QCOM SoC's like the SDM845. The interrupt-controller can be used to sense edge low interrupts and wakeup interrupts when the GIC is non-operational. Cc: devicet...@vger.kernel.org Signed-off-by: Archan

[PATCH v5 2/3] PCI: endpoint: Fix kernel panic after put_device()

2018-02-28 Thread Rolf Evers-Fischer
From: Rolf Evers-Fischer 'put_device()' calls the relase function 'pci_epf_dev_release()', which already frees 'epf->name' and 'epf'. Therefore we must not free them again after 'put_device()'. Fixes: 5e8cb4033807 ("PCI: endpoint: Add EP core layer to enable EP controller and EP functions") S

[PATCH v5 1/3] PCI: endpoint: Simplify name allocation for EPF device

2018-02-28 Thread Rolf Evers-Fischer
From: Rolf Evers-Fischer This commit replaces allocating and freeing the intermediate 'buf'/'func_name' with a combination of 'kstrndup()' and 'len'. 'len' is the required length of 'epf->name'. 'epf->name' should be either the first part of 'name' preceding the '.' or the complete 'name', if th

Re: [PATCH v16 06/11] fw_cfg: handle fw_cfg_read_blob() error

2018-02-28 Thread Michael S. Tsirkin
> @@ -557,7 +566,10 @@ static int fw_cfg_sysfs_probe(struct platform_device > *pdev) > goto err_probe; > > /* get revision number, add matching top-level attribute */ > - fw_cfg_read_blob(FW_CFG_ID, &rev, 0, sizeof(rev)); > + err = fw_cfg_read_blob(FW_CFG_ID, &rev, 0,

[PATCH 3.2 092/140] net: ipv4: emulate READ_ONCE() on ->hdrincl bit-field in raw_sendmsg()

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Nicolai Stange commit 20b50d79974ea3192e8c3ab7faf4e536e5f14d8f upstream. Commit 8f659a03a0ba ("net: ipv4: fix for a race condition in raw_sendmsg") fixed the issue of possibly inconsistent ->h

[PATCH v5 0/3] pci: endpoint: Fix double free in pci_epf_create()

2018-02-28 Thread Rolf Evers-Fischer
This is version 5 of a patchset to avoid double free in function 'pci_epf_create()'. When I accidentally created a new endpoint device with an empty name, the kernel warned about "attempted to be registered with empty name!" and crashed afterwards. It turned out that the crash was not caused by t

[PATCH 3.2 140/140] rds: Fix NULL pointer dereference in __rds_rdma_map

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Håkon Bugge commit f3069c6d33f6ae63a1668737bc7851bff7ca upstream. This is a fix for syzkaller719569, where memory registration was attempted without any underlying transport being loaded.

[PATCH 3.2 095/140] 8021q: fix a memory leak for VLAN 0 device

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Cong Wang commit 78bbb15f2239bc8e663aa20bbe1987c91a0b75f6 upstream. A vlan device with vid 0 is allow to creat by not able to be fully cleaned up by unregister_vlan_dev() which checks for vlan

[PATCH 3.2 090/140] ALSA: pcm: Allow aborting mutex lock at OSS read/write loops

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 900498a34a3ac9c611e9b425094c8106bdd7dc1c upstream. PCM OSS read/write loops keep taking the mutex lock for the whole read/write, and this might take very long when the exce

[PATCH 3.2 096/140] ALSA: pcm: Remove yet superfluous WARN_ON()

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 23b19b7b50fe1867da8d431eea9cd3e4b6328c2c upstream. muldiv32() contains a snd_BUG_ON() (which is morphed as WARN_ON() with debug option) for checking the case of 0 / 0. Thi

[PATCH 3.2 091/140] USB: fix usbmon BUG trigger

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Pete Zaitcev commit 46eb14a6e1585d99c1b9f58d0e7389082a5f466b upstream. Automated tests triggered this by opening usbmon and accessing the mmap while simultaneously resizing the buffers. This b

[PATCH 3.2 098/140] futex: Prevent overflow by strengthen input validation

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Li Jinyue commit fbe0e839d1e22d88810f3ee3e2f1479be4c0aa4a upstream. UBSAN reports signed integer overflow in kernel/futex.c: UBSAN: Undefined behaviour in kernel/futex.c:2041:18 signed inte

[PATCH 3.2 101/140] sctp: return error if the asoc has been peeled off in sctp_wait_for_sndbuf

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Xin Long commit a0ff660058b88d12625a783ce9e5c1371c87951f upstream. After commit cea0cc80a677 ("sctp: use the right sk after waking up from wait_buf sleep"), it may change to lock another sk if

[PATCH 3.2 094/140] SolutionEngine771x: add Ether TSU resource

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Sergei Shtylyov commit f9a531d6731d74f1e24298d9641c2dc1fef2631b upstream. After the Ether platform data is fixed, the driver probe() method would still fail since the 'struct sh_eth_cpu_data'

Re: [PATCH 3.16 000/254] 3.16.55-rc1 review

2018-02-28 Thread Ben Hutchings
On Wed, 2018-02-28 at 08:57 -0800, Guenter Roeck wrote: > On Wed, Feb 28, 2018 at 03:20:17PM +, Ben Hutchings wrote: > > This is the start of the stable review cycle for the 3.16.55 release. > > There are 254 patches in this series, which will be posted as responses > > to this one. If anyone

[PATCH 3.2 086/140] ALSA: aloop: Fix inconsistent format due to incomplete rule

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit b088b53e20c7d09b5ab84c5688e609f478e5c417 upstream. The extra hw constraint rule for the formats the aloop driver introduced has a slight flaw, where it doesn't return a pos

[PATCH 3.2 102/140] sctp: do not allow the v4 socket to bind a v4mapped v6 address

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Xin Long commit c5006b8aa74599ce19104b31d322d2ea9ff887cc upstream. The check in sctp_sockaddr_af is not robust enough to forbid binding a v4mapped v6 addr on a v4 socket. The worse thing is t

[PATCH 3.2 111/140] cfg80211: fix station info handling bugs

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Johannes Berg commit 5762d7d3eda25c03cc2d9d45227be3f5ab6bec9e upstream. Fix two places where the structure isn't initialized to zero, and thus can't be filled properly by the driver. Fixes: 4

[PATCH v8 0/2] irqchip: qcom: add support for PDC interrupt controller

2018-02-28 Thread Lina Iyer
Changes since v7: - fix whitespace alignment for multi-line statement - add Rob H 'reviewed-by' for DT bindings - rebase on top of 4.6-rc3 On newer Qualcomm Techonologies Inc's SoCs like the SDM845, the GIC is in a power domain that can be powered off when not needed. Inter

[PATCH 3.2 107/140] dm btree: fix serious bug in btree_split_beneath()

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Joe Thornber commit bc68d0a43560e950850fc69b58f0f8254b28f6d6 upstream. When inserting a new key/value pair into a btree we walk down the spine of btree nodes performing the following 2 operati

[PATCH 3.2 118/140] dccp: don't restart ccid2_hc_tx_rto_expire() if sk in closed state

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Alexey Kodanev commit dd5684ecae3bd8e44b644f50e2c12c7e57fdfef5 upstream. ccid2_hc_tx_rto_expire() timer callback always restarts the timer again and can run indefinitely (unless it is stopped

[PATCH 3.2 113/140] net: igmp: Use correct source address on IGMPv3 reports

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Kevin Cernekee commit a46182b00290839fa3fa159d54fd3237bd8669f0 upstream. Closing a multicast socket after the final IPv4 address is deleted from an interface can generate a membership report t

[PATCH 3.2 077/140] e1000e: Fix e1000_check_for_copper_link_ich8lan return value.

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Benjamin Poirier commit 4110e02eb45ea447ec6f5459c9934de0a273fb91 upstream. e1000e_check_for_copper_link() and e1000_check_for_copper_link_ich8lan() are the two functions that may be assigned t

[PATCH v8 1/2] drivers: irqchip: pdc: Add PDC interrupt controller for QCOM SoCs

2018-02-28 Thread Lina Iyer
>From : Archana Sathyakumar The Power Domain Controller (PDC) on QTI SoCs like SDM845 houses an interrupt controller along with other domain control functions to handle interrupt related functions like handle falling edge or active low which are not detected at the GIC and handle wakeup interrupt

[PATCH 3.2 089/140] ALSA: pcm: Abort properly at pending signal in OSS read/write loops

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 29159a4ed7044c52e3e2cf1a9fb55cec4745c60b upstream. The loops for read and write in PCM OSS emulation have no proper check of pending signals, and they keep processing even

[PATCH 3.2 007/140] scsi: use dma_get_cache_alignment() as minimum DMA alignment

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Huacai Chen commit 90addc6b3c9cda0146fbd62a08e234c2b224a80c upstream. In non-coherent DMA mode, kernel uses cache flushing operations to maintain I/O coherency, so scsi's block queue should be

[PATCH 3.2 009/140] scsi: libsas: align sata_device's rps_resp on a cacheline

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Huacai Chen commit c2e8fbf908afd81ad502b567a6639598f92c9b9d upstream. The rps_resp buffer in ata_device is a DMA target, but it isn't explicitly cacheline aligned. Due to this, adjacent fields

[PATCH 3.2 109/140] net: fs_enet: do not call phy_stop() in interrupts

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Christophe Leroy commit f8b39039cbf2a15f2b8c9f081e1cbd5dee00aaf5 upstream. In case of TX timeout, fs_timeout() calls phy_stop(), which triggers the following BUG_ON() as we are in interrupt.

[PATCH 3.2 072/140] kbuild: add '-fno-stack-check' to kernel build options

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Linus Torvalds commit 3ce120b16cc548472f80cf8644f90eda958cf1b6 upstream. It appears that hardened gentoo enables "-fstack-check" by default for gcc. That doesn't work _at_all_ for the kernel,

[PATCH 3.2 071/140] af_key: fix buffer overread in parse_exthdrs()

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Eric Biggers commit 4e765b4972af7b07adcb1feb16e7a525ce1f6b28 upstream. If a message sent to a PF_KEY socket ended with an incomplete extension header (fewer than 4 bytes remaining), then parse

[PATCH 3.2 076/140] e1000e: Separate signaling for link check/link up

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Benjamin Poirier commit 19110cfbb34d4af0cdfe14cd243f3b09dc95b013 upstream. Lennart reported the following race condition: \ e1000_watchdog_task \ e1000e_has_link \ hw->mac.ops.che

[PATCH 3.2 075/140] ALSA: pcm: Remove incorrect snd_BUG_ON() usages

2018-02-28 Thread Ben Hutchings
3.2.100-rc1 review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit fe08f34d066f4404934a509b6806db1a4f700c86 upstream. syzkaller triggered kernel warnings through PCM OSS emulation at closing a stream: WARNING: CPU: 0 PID: 3502 at sound/c

<    1   2   3   4   5   6   7   8   9   10   >