[PATCH 3.16 080/134] PCI: Disable boot interrupt quirk for ASUS M2N-LR

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Stefan Assmann commit c4e649b09f55595e6df6da5465a5b3cfc93557c1 upstream. The ASUS M2N-LR should not trigger boot interrupt quirks although it carries an Intel 6702PXH. On this board the boot

[PATCH 1/3] jfs: Delete an error message for a failed memory allocation in diMount()

2017-08-18 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 18 Aug 2017 09:19:24 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- fs/jfs/jfs_imap.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletion

[PATCH 3.16 075/134] powerpc/sysfs: Fix reference leak of cpu device_nodes present at boot

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Tyrel Datwyler commit e76ca27790a514590af782f83f6eae49e0ccf8c9 upstream. For CPUs present at boot each logical CPU acquires a reference to the associated device node of the core. This happens

[PATCH 3.16 077/134] netfilter: ctnetlink: make it safer when updating ct->status

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Liping Zhang commit 53b56da83d7899de375a9de153fd7f5397de85e6 upstream. After converting to use rcu for conntrack hash, one CPU may update the ct->status via ctnetlink, while another CPU may pr

[PATCH 2/3] jfs: Improve size determinations in five functions

2017-08-18 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 18 Aug 2017 14:54:11 +0200 * Replace the specification of data structures by pointer dereferences as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. This issue w

[PATCH 3.16 079/134] dm era: save spacemap metadata root after the pre-commit

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Somasundaram Krishnasamy commit 117aceb030307dcd431fdcff87ce988d3016c34a upstream. When committing era metadata to disk, it doesn't always save the latest spacemap metadata root in superblock.

[PATCH 3.16 069/134] x86/boot: Fix BSS corruption/overwrite bug in early x86 kernel startup

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Ashish Kalra commit d594aa0277e541bb997aef0bc0a55172d8138340 upstream. The minimum size for a new stack (512 bytes) setup for arch/x86/boot components when the bootloader does not setup/provid

[PATCH 3.16 074/134] powerpc/pseries: Fix of_node_put() underflow during DLPAR remove

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Tyrel Datwyler commit 68baf692c435339e6295cb470ea5545cbc28160e upstream. Historically struct device_node references were tracked using a kref embedded as a struct field. Commit 75b57ecf9d1d ("

[PATCH 3.16 076/134] netfilter: ctnetlink: fix deadlock due to acquire _expect_lock twice

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Liping Zhang commit 88be4c09d9008f9ff337cbf48c5d0f06c8f872e7 upstream. Currently, ctnetlink_change_conntrack is always protected by _expect_lock, but this will cause a deadlock when deleting t

[PATCH 3.16 073/134] IB/mlx4: Fix ib device initialization error flow

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Jack Morgenstein commit 99e68909d5aba1861897fe7afc3306c3c81b6de0 upstream. In mlx4_ib_add, procedure mlx4_ib_alloc_eqs is called to allocate EQs. However, in the mlx4_ib_add error flow, proce

[PATCH 3/3] jfs: Adjust 67 checks for null pointers

2017-08-18 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 18 Aug 2017 15:15:02 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script “checkpatch.pl” pointed information out like the following. Comparison to NULL could be written !… Thus fix the affected source code pl

Re: [PATCH v8 2/2] sched/rt: Add support for SD_PREFER_SIBLING on find_lowest_rq()

2017-08-18 Thread Steven Rostedt
On Fri, 18 Aug 2017 17:21:59 +0900 Byungchul Park wrote: > It would be better to try to check other siblings first if > SD_PREFER_SIBLING is flaged when pushing tasks - migration. > > Signed-off-by: Byungchul Park Looks good. Reviewed-by: Steven Rostedt (VMware) -- Steve

[PATCH 3.16 068/134] mwifiex: pcie: fix cmd_buf use-after-free in remove/reset

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Brian Norris commit 3c8cb9ad032d737b874e402c59eb51e3c991a144 upstream. Command buffers (skb's) are allocated by the main driver, and freed upon the last use. That last use is often in mwifiex_

[PATCH 3.16 072/134] HSI: ssi_protocol: double free in ssip_pn_xmit()

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter commit 3026050179a3a9a6f5c892c414b5e36ecf092081 upstream. If skb_pad() fails then it frees skb and we don't need to free it again at the end of the function. Fixes: dc7bf5d7 ("H

[PATCH 3.16 071/134] IB/ipoib: Update broadcast object if PKey value was changed in index 0

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Feras Daoud commit 9a9b8112699d78e7f317019b37f377e90023f3ed upstream. Update the broadcast address in the priv->broadcast object when the Pkey value changes in index 0, otherwise the multicast

[PATCH 3.16 070/134] NFS: Use GFP_NOIO for two allocations in writeback

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Benjamin Coddington commit ae97aa524ef495b6276fd26f5d5449fb22975d7c upstream. Prevent a deadlock that can occur if we wait on allocations that try to write back our pages. Signed-off-by: Benj

[PATCH 3.16 064/134] [media] ov2640: fix vflip control

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Frank Schaefer commit 7f140fc2064bcd23e0490d8210650e2ef21c1c89 upstream. Enabling vflip currently causes wrong colors. It seems that (at least with the current sensor setup) REG04_VFLIP_IMG on

[PATCH 3.16 065/134] ath9k: off by one in ath9k_hw_nvram_read_array()

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter commit b7dcf68f383a05567bd16a390907b67022a62d3d upstream. The > should be >= or we read one space beyond the end of the array. Fixes: ab5c4f71d8c7 ("ath9k: allow to load EEPROM

[PATCH 3.16 060/134] PCI: Freeze PME scan before suspending devices

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Lukas Wunner commit ea00353f36b64375518662a8ad15e39218a1f324 upstream. Laurent Pinchart reported that the Renesas R-Car H2 Lager board (r8a7790) crashes during suspend tests. Geert Uytterhoev

[PATCH 3.16 067/134] usb: host: xhci: print correct command ring address

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Peter Chen commit 6fc091fb0459ade939a795bfdcaf645385b951d4 upstream. Print correct command ring address using 'val_64'. Signed-off-by: Peter Chen Signed-off-by: Mathias Nyman Signed-off-by:

[PATCH 3.16 066/134] KVM: arm/arm64: fix races in kvm_psci_vcpu_on

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Andrew Jones commit 6c7a5dce22b3f3cc44be098e2837fa6797edb8b8 upstream. Fix potential races in kvm_psci_vcpu_on() by taking the kvm->lock mutex. In general, it's a bad idea to allow more than

[PATCH 3.2 45/59] net: ethernet: ucc_geth: fix MEM_PART_MURAM mode

2017-08-18 Thread Ben Hutchings
3.2.92-rc1 review patch. If anyone has any objections, please let me know. -- From: Christophe Leroy commit 8b8642af15ed14b9a7a34d3401afbcc274533e13 upstream. Since commit 5093bb965a163 ("powerpc/QE: switch to the cpm_muram implementation"), muram area is not part of immrbar m

[PATCH 3.16 053/134] net: ipv6: send unsolicited NA on admin up

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: David Ahern commit 4a6e3c5def13c91adf2acc613837001f09af3baa upstream. ndisc_notify is the ipv6 equivalent to arp_notify. When arp_notify is set to 1, gratuitous arp requests are sent when the

[PATCH 3.16 061/134] USB: serial: ftdi_sio: add device ID for Microsemi/Arrow SF2PLUS Dev Kit

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Marek Vasut commit 31c5d1922b90ddc1da6a6ddecef7cd31f17aa32b upstream. This development kit has an FT4232 on it with a custom USB VID/PID. The FT4232 provides four UARTs, but only two are used.

[PATCH 3.16 063/134] [media] dw2102: limit messages to buffer size

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Alyssa Milburn commit 950e252cb469f323740d78e4907843acef89eedb upstream. Otherwise the i2c transfer functions can read or write beyond the end of stack or heap buffers. Signed-off-by: Alyssa

[PATCH 3.16 062/134] [media] ttusb2: limit messages to buffer size

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Alyssa Milburn commit a12b8ab8c5ff7ccd7b107a564743507c850a441d upstream. Otherwise ttusb2_i2c_xfer can read or write beyond the end of static and heap buffers. Signed-off-by: Alyssa Milburn

[PATCH 3.16 057/134] PCI: Ignore write combining when mapping I/O port space

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Bjorn Helgaas commit 3a92c319c44a7bcee9f48dff9d97d001943b54c6 upstream. PCI exposes files like /proc/bus/pci/00/00.0 in procfs. These files support operations like this: ioctl(fd, PCIIOC_M

[PATCH 3.16 048/134] perf/x86/pebs: Fix handling of PEBS buffer overflows

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Stephane Eranian commit daa864b8f8e34477bde817f26d736d89dc6032f3 upstream. This patch solves a race condition between PEBS and the PMU handler. In case multiple PEBS events are sampled at the

Re: [PATCH v2 3/3] vfio/pci: Don't probe devices that can't be reset

2017-08-18 Thread Jan Glauber
On Thu, Aug 17, 2017 at 07:00:17AM -0600, Alex Williamson wrote: > On Thu, 17 Aug 2017 10:14:23 +0200 > Jan Glauber wrote: > > > If a PCI device supports neither function-level reset, nor slot > > or bus reset then refuse to probe it. A line is printed to inform > > the user. > > But that's not

[PATCH 3.16 052/134] ftrace: Fix removing of second function probe

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: "Steven Rostedt (VMware)" commit 82cc4fc2e70ec5baeff8f776f2773abc8b2cc0ae upstream. When two function probes are added to set_ftrace_filter, and then one of them is removed, the update to the

Re: [PATCH v2] blktrace: Fix potentail deadlock between delete & sysfs ops

2017-08-18 Thread Waiman Long
On 08/17/2017 07:23 PM, Steven Rostedt wrote: > On Thu, 17 Aug 2017 18:18:18 -0400 > Steven Rostedt wrote: > >> On Thu, 17 Aug 2017 18:13:20 -0400 >> Steven Rostedt wrote: >> >>> On Thu, 17 Aug 2017 17:27:22 -0400 >>> Waiman Long wrote: >>> >>> It is actually what the patch is trying to

Re: [PATCH v2 6/6] kernel: tracepoints: add support for relative references

2017-08-18 Thread Steven Rostedt
On Fri, 18 Aug 2017 12:44:17 +0100 Ard Biesheuvel wrote: > On 18 August 2017 at 12:26, Ard Biesheuvel wrote: > > To avoid the need for relocating absolute references to tracepoint > > structures at boot time when running relocatable kernels (which may > > take a disproportionate amount of space)

Re: [PATCH v2 6/6] kernel: tracepoints: add support for relative references

2017-08-18 Thread Ard Biesheuvel
On 18 August 2017 at 14:43, Steven Rostedt wrote: > On Fri, 18 Aug 2017 12:44:17 +0100 > Ard Biesheuvel wrote: > >> On 18 August 2017 at 12:26, Ard Biesheuvel wrote: >> > To avoid the need for relocating absolute references to tracepoint >> > structures at boot time when running relocatable kern

[PATCH 3.16 058/134] PCI: Fix another sanity check bug in /proc/pci mmap

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: David Woodhouse commit 17caf56731311c9596e7d38a70c88fcb6afa6a1b upstream. Don't match MMIO maps with I/O BARs and vice versa. Signed-off-by: David Woodhouse Signed-off-by: Bjorn Helgaas Sig

[PATCH 3.16 059/134] PCI: Only allow WC mmap on prefetchable resources

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: David Woodhouse commit cef4d02305a06be581bb7f4353446717a1b319ec upstream. The /proc/bus/pci mmap interface allows the user to specify whether they want WC or not. Don't let them do so on non-

Re: [PATCH v4] livepatch: introduce shadow variable API

2017-08-18 Thread Nicolai Stange
Joe Lawrence writes: > + > +/** > + * klp_shadow_get() - retrieve a shadow variable data pointer > + * @obj: pointer to parent object > + * @id: data identifier > + * > + * Return: the shadow variable data element, NULL on failure. > + */ > +void *klp_shadow_get(void *obj, unsig

[PATCH 3.16 055/134] [media] zr364xx: enforce minimum size when reading header

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Alyssa Milburn commit ee0fe833d96793853335844b6d99fb76bd12cbeb upstream. This code copies actual_length-128 bytes from the header, which will underflow if the received buffer is too small. Si

[PATCH 3.16 049/134] perf/x86: Fix spurious NMI with PEBS Load Latency event

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Kan Liang commit fd583ad1563bec5f00140e1f2444adbcd331caad upstream. Spurious NMIs will be observed with the following command: while :; do perf record -bae "cpu/umask=0x01,event=0xcd,ld

[PATCH 3.16 040/134] perf inject: Don't proceed if perf_session__process_event() fails

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: David Carrillo-Cisneros commit bb8d521f77f3e68a713456b7fb1e99f52ff3342c upstream. All paths following perf_session__process_event() in __cmd_inject() are useless if __cmd_inject() is to fail,

[PATCH 3.16 056/134] regulator: tps65023: Fix inverted core enable logic.

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Richard Cochran commit c90722b54a4f5e21ac59301ed9a6dbaa439bdb16 upstream. Commit 43530b69d758328d3ffe6ab98fd640463e8e3667 ("regulator: Use regmap_read/write(), regmap_update_bits functions dir

[PATCH 3.16 051/134] iio: proximity: as3935: fix as3935_write

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Matt Ranostay commit 84ca8e364acb26aba3292bc113ca8ed4335380fd upstream. AS3935_WRITE_DATA macro bit is incorrect and the actual write sequence is two leading zeros. Cc: George McCollister Si

Re: [PATCH v4] livepatch: introduce shadow variable API

2017-08-18 Thread Joe Lawrence
On 08/17/2017 10:05 AM, Petr Mladek wrote: > On Mon 2017-08-14 16:02:43, Joe Lawrence wrote: >> [ ... snip ... ] >> diff --git a/samples/livepatch/livepatch-shadow-fix1.c >> b/samples/livepatch/livepatch-shadow-fix1.c >> new file mode 100644 >> index ..5acc838463d1 >> --- /dev/null >>

Re: [PATCH v3 0/2] cpuset: Allow v2 behavior in v1 cgroup

2017-08-18 Thread Waiman Long
On 08/18/2017 07:29 AM, Tejun Heo wrote: > On Thu, Aug 17, 2017 at 03:33:08PM -0400, Waiman Long wrote: >> v2->v3: >> - Change the generic CGRP_ROOT_V2_MODE flag to a cpuset specific >>CGRP_ROOT_CPUSET_V2_MODE flag. >> >> v1->v2: >> - Drop the kernel command line option and use cgroupfs mount

[PATCH 3.16 032/134] MIPS: Loongson-3: Select MIPS_L1_CACHE_SHIFT_6

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Huacai Chen commit 17c99d9421695a0e0de18bf1e7091d859e20ec1d upstream. Some newer Loongson-3 have 64 bytes cache lines, so select MIPS_L1_CACHE_SHIFT_6. Signed-off-by: Huacai Chen Cc: John Cr

Re: [PATCH v14 4/5] mm: support reporting free page blocks

2017-08-18 Thread Michal Hocko
On Thu 17-08-17 11:26:55, Wei Wang wrote: > This patch adds support to walk through the free page blocks in the > system and report them via a callback function. Some page blocks may > leave the free list after zone->lock is released, so it is the caller's > responsibility to either detect or preve

[PATCH 3.16 054/134] [media] digitv: limit messages to buffer size

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Alyssa Milburn commit 821117dc21083a99dd99174c10848d70ff43de29 upstream. Return an error rather than memcpy()ing beyond the end of the buffer. Internal callers use appropriate sizes, but digit

[PATCH 3.16 047/134] ARM: dts: at91: sama5d3_xplained: not all ADC channels are available

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Ludovic Desroches commit d3df1ec06353e51fc44563d2e7e18d42811af290 upstream. Remove ADC channels that are not available by default on the sama5d3_xplained board (resistor not populated) in orde

[PATCH 3.16 046/134] ARM: dts: at91: sama5d3_xplained: fix ADC vref

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Ludovic Desroches commit 9cdd31e5913c1f86dce7e201b086155b3f24896b upstream. The voltage reference for the ADC is not 3V but 3.3V since it is connected to VDDANA. Signed-off-by: Ludovic Desroc

[PATCH 3.16 050/134] iio: dac: ad7303: fix channel description

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Pavel Roskin commit ce420fd4251809b4c3119b3b20c8b13bd8eba150 upstream. realbits, storagebits and shift should be numbers, not ASCII characters. Signed-off-by: Pavel Roskin Reviewed-by: Lars-

[PATCH 3.16 044/134] vfio/type1: Remove locked page accounting workqueue

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Alex Williamson commit 0cfef2b7410b64d7a430947e0b533314c4f97153 upstream. If the mmap_sem is contented then the vfio type1 IOMMU backend will defer locked page accounting updates to a workqueu

[PATCH 3.16 041/134] serial: omap: fix runtime-pm handling on unbind

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit 099bd73dc17ed77aa8c98323e043613b6e8f54fc upstream. An unbalanced and misplaced synchronous put was used to suspend the device on driver unbind, something which with a likew

[PATCH 3.16 045/134] power: supply: lp8788: prevent out of bounds array access

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Giedrius Statkevičius commit bdd9968d35f7fcdb76089347d1529bf079534214 upstream. val might become 7 in which case stime[7] (array of length 7) would be accessed during the scnprintf call later

[PATCH 3.16 042/134] serial: omap: suspend device on probe errors

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit 77e6fe7fd2b7cba0bf2f2dc8cde51d7b9a35bf74 upstream. Make sure to actually suspend the device before returning after a failed (or deferred) probe. Note that autosuspend must

[PATCH 3.16 043/134] PCI: Fix pci_mmap_fits() for HAVE_PCI_RESOURCE_TO_USER platforms

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: David Woodhouse commit 6bccc7f426abd640f08d8c75fb22f99483f201b4 upstream. In the PCI_MMAP_PROCFS case when the address being passed by the user is a 'user visible' resource address based on th

[PATCH 3.2 57/59] timerfd: Protect the might cancel mechanism proper

2017-08-18 Thread Ben Hutchings
3.2.92-rc1 review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner commit 1e38da300e1e395a15048b0af1e5305bd91402f6 upstream. The handling of the might_cancel queueing is not properly protected, so parallel operations on the file descriptor can

[PATCH] mlx5: ensure 0 is returned when vport is zero

2017-08-18 Thread Colin King
From: Colin Ian King Currently, if vport is zero then then an uninialized return status in err is returned. Since the only return status at the end of the function esw_add_uc_addr is zero for the current set of return paths we may as well just return 0 rather than err to fix this issue. Detecte

[PATCH v5 2/7] KVM: arm64: Save ESR_EL2 on guest SError

2017-08-18 Thread Dongjiu Geng
From: James Morse When we exit a guest due to an SError the vcpu fault info isn't updated with the ESR. Today this is only done for traps. The v8.2 RAS Extensions define ISS values for SError. Update the vcpu's fault_info with the ESR on SError so that handle_exit() can determine if this was a R

[PATCH v5 7/7] arm64: kvm: handle SEI notification and inject virtual SError

2017-08-18 Thread Dongjiu Geng
After receive SError, KVM firstly call memory failure to deal with the Error. If memory failure wants user space to handle it, it will notify user space. This patch adds support to userspace that injects virtual SError with specified syndrome. This syndrome value will be set to the VSESR_EL2. VSESR

[GIT PULL] apparmor updates for next

2017-08-18 Thread John Johansen
Hi James, Please pull these apparmor changes for next. Thanks! -Kees The following changes since commit 706224ae390ddbf1871abb7938245be45bf04104: samples: Unrename SECCOMP_RET_KILL (2017-08-17 14:17:07 +1000) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kern

[PATCH v5 0/7] Add RAS virtualization support to SEA/SEI notification type

2017-08-18 Thread Dongjiu Geng
In the firmware-first RAS solution, corrupt data is detected in a memory location when guest OS application software executing at EL0 or guest OS kernel El1 software are reading from the memory. The memory node records errors in an error record accessible using system registers. Because SCR_EL3.EA

[PATCH v5 5/7] arm64: kvm: route synchronous external abort exceptions to el2

2017-08-18 Thread Dongjiu Geng
ARMv8.2 adds a new bit HCR_EL2.TEA which controls to route synchronous external aborts to EL2, and add a trap control bit HCR_EL2.TERR which will control to trap all Non-secure EL1&0 error record accesses to EL2. This patch will enable the two bits for the guest OS. when an synchronous abort is ge

[PATCH v5 1/7] arm64: cpufeature: Detect CPU RAS Extentions

2017-08-18 Thread Dongjiu Geng
From: Xie XiuQi ARM's v8.2 Extentions add support for Reliability, Availability and Serviceability (RAS). On CPUs with these extensions system software can use additional barriers to isolate errors and determine if faults are pending. Add cpufeature detection and a barrier in the context-switch

[PATCH v5 4/7] support user space to query RAS extension feature

2017-08-18 Thread Dongjiu Geng
In armv8.2 RAS extension, it adds virtual SError exception syndrome registeri(VSESR_EL2), user space will specify that value. so user space will check whether CPU feature has RAS extension. if has, it will specify the virtual SError syndrome value. Otherwise, it will not set. This patch adds this s

[PATCH v5 3/7] acpi: apei: Add SEI notification type support for ARMv8

2017-08-18 Thread Dongjiu Geng
ARMV8.2 requires implementation of the RAS extension, in this extension it adds SEI(SError Interrupt) notification type, this patch addes a new GHES error source handling function for SEI. Because this error source parse and handling method are similar with the SEA. so use one function to handle th

[PATCH v5 6/7] KVM: arm64: Allow get exception information from userspace

2017-08-18 Thread Dongjiu Geng
when userspace gets SIGBUS signal, it does not know whether this is a synchronous external abort or SError, so needs to get the exception syndrome. so this patch allows userspace can get this values. For syndrome, only give userspace syndrome EC and ISS. Now we move the synchronous external abort

Re: [PATCH v2 6/6] kernel: tracepoints: add support for relative references

2017-08-18 Thread Steven Rostedt
On Fri, 18 Aug 2017 14:44:15 +0100 Ard Biesheuvel wrote: > >> It appears the stuff above needs to be move inside the double-include > >> guard (which oddly enough does not cover the entire file) > > > > Why was this moved to the header file? To fulfill some checkpatch > > warning? > > > > Ye

[PATCH] drm/msm/: make clk_init_data const

2017-08-18 Thread Bhumika Goyal
Make these const as they are only stored in the init field of a clk_hw structure, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c | 2 +- drivers/gpu/drm/msm/hdmi/hdmi_pll_8960.c | 2 +- drivers/gpu/drm/msm/mdp/mdp4/mdp4_lv

[PATCH 3.16 035/134] [media] cx231xx-cards: fix NULL-deref at probe

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit 0cd273bb5e4d1828efaaa8dfd11b7928131ed149 upstream. Make sure to check the number of endpoints to avoid dereferencing a NULL-pointer or accessing memory beyond the endpoint

Re: [PATCH 3.16 119/134] ipv4: restore rt->fi for reference counting

2017-08-18 Thread Eric Dumazet
On Fri, Aug 18, 2017 at 6:13 AM, Ben Hutchings wrote: > 3.16.47-rc1 review patch. If anyone has any objections, please let me know. > > -- > > From: WANG Cong > > commit 82486aa6f1b9bc8145e6d0fa2bc0b44307f3b875 upstream. > > IPv4 dst could use fi->fib_metrics to store metrics but

[PATCH 3.16 034/134] [media] usbvision: fix NULL-deref at probe

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit eacb975b48272f54532b62f515a3cf7eefa35123 upstream. Make sure to check the number of endpoints to avoid dereferencing a NULL-pointer or accessing memory beyond the endpoint

Re: [PATCH v4 4/8] irqchip/irq-goldfish-pic: Add Goldfish PIC driver

2017-08-18 Thread Marc Zyngier
On 18/08/17 14:08, Aleksandar Markovic wrote: > From: Miodrag Dinic > > Add device driver for a virtual programmable interrupt controller > > The virtual PIC is designed as a device tree-based interrupt controller. > > The compatible string used by OS for binding the driver is > "google,goldfis

[PATCH 3.16 031/134] scsi: scsi_error: count medium access timeout only once per EH run

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Hannes Reinecke commit 7a38dc0bfb4cc39ed57e120e2224673f3d4d200f upstream. The current medium access timeout counter will be increased for each command, so if there are enough failed commands w

[PATCH 3.16 037/134] [media] cx231xx-audio: fix NULL-deref at probe

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit 65f921647f4c89a2068478c89691f39b309b58f7 upstream. Make sure to check the number of endpoints to avoid dereferencing a NULL-pointer or accessing memory beyond the endpoint

Re: [PATCH v2 6/6] kernel: tracepoints: add support for relative references

2017-08-18 Thread Ard Biesheuvel
On 18 August 2017 at 14:52, Steven Rostedt wrote: > On Fri, 18 Aug 2017 14:44:15 +0100 > Ard Biesheuvel wrote: > >> >> It appears the stuff above needs to be move inside the double-include >> >> guard (which oddly enough does not cover the entire file) >> > >> > Why was this moved to the header f

[PATCH 3.16 036/134] [media] cx231xx-audio: fix init error path

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit fff1abc4d54e469140a699612b4db8d6397bfcba upstream. Make sure to release the snd_card also on a late allocation error. Fixes: e0d3bafd0258 ("V4L/DVB (10954): Add cx231xx US

[PATCH 3.16 038/134] [media] uvcvideo: Fix empty packet statistic

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Kieran Bingham commit 360a3a90c6261fe24a959ff38f8f6c3a8468f23c upstream. The frame counters are inadvertently counting packets with content as empty. Fix it by correcting the logic expression

[PATCH 1/1] crypto: stm32/hash - Remove uninitialized symbol

2017-08-18 Thread Lionel Debieve
Remove err symbol as this is not used in the thread context and the variable is not initialized. Signed-off-by: Lionel Debieve --- drivers/crypto/stm32/stm32-hash.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/crypto/stm32/stm32-hash.c b/drivers/crypto/stm32/

[PATCH 3.16 039/134] padata: free correct variable

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: "Jason A. Donenfeld" commit 07a77929ba672d93642a56dc2255dd21e6e2290b upstream. The author meant to free the variable that was just allocated, instead of the one that failed to be allocated, bu

[PATCH 3.16 027/134] IPoIB: Remove unnecessary test for NULL before debugfs_remove()

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Fabian Frederick commit e42fa2092c1049ac9c0e38aaac39ef3c40e91a36 upstream. Fix checkpatch warning: WARNING: debugfs_remove(NULL) is safe this check is probably not required Signed-off-by

Re: [PATCH v2] blktrace: Fix potentail deadlock between delete & sysfs ops

2017-08-18 Thread Waiman Long
On 08/17/2017 05:30 PM, Steven Rostedt wrote: > On Thu, 17 Aug 2017 17:10:07 -0400 > Steven Rostedt wrote: > > >> Instead of playing games with taking the lock, the only way this race >> is hit, is if the partition is being deleted and the sysfs attribute is >> being read at the same time, correct

[PATCH 3.16 028/134] IB/IPoIB: ibX: failed to create mcg debug file

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Shamir Rabinovitch commit 771a52584096c45e4565e8aabb596eece9d73d61 upstream. When udev renames the netdev devices, ipoib debugfs entries does not get renamed. As a result, if subsequent probe

[PATCH 3.16 029/134] [media] gspca: konica: add missing endpoint sanity check

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit aa58fedb8c7b6cf2f05941d238495f9e2f29655c upstream. Make sure to check the number of endpoints to avoid accessing memory beyond the endpoint array should a device lack the e

[PATCH 3.16 033/134] [media] dib0700: fix NULL-deref at probe

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit d5823511c0f8719a39e72ede1bce65411ac653b7 upstream. Make sure to check the number of endpoints to avoid dereferencing a NULL-pointer should a malicious device lack endpoints

[PATCH 3.16 030/134] [media] s5p-mfc: Fix unbalanced call to clock management

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Marek Szyprowski commit a5cb00eb4223458250b55daf03ac7ea5f424d601 upstream. Clock should be turned off after calling s5p_mfc_init_hw() from the watchdog worker, like it is already done in the s

[PATCH 3.16 022/134] pinctrl: sh-pfc: r8a7791: Fix SCIF2 pinmux data

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Sergei Shtylyov commit 58439280f84e6b39fd7d61f25ab30489c1aaf0a9 upstream. PINMUX_IPSR_MSEL() macro invocation for the TX2 signal has apparently wrong 1st argument -- most probably a result of

[PATCH 3.16 025/134] PCI: dwc: Fix uninitialized variable in dw_handle_msi_irq()

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter commit 1b497e6493c49bbb55c89f53562f7f853495e90d upstream. The bug is that "val" is unsigned long but we only initialize 32 bits of it. Then we test "if (val)" and that might be

[PATCH 3.16 024/134] PCI: dwc: Unindent dw_handle_msi_irq() loop

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Bjorn Helgaas commit dbe4a09e8bbcf88809a8394d6a359d8cebd22a86 upstream. Use "continue" to skip rest of the loop when possible to save an indent level. No functional change intended. Suggeste

Re: [kernel-hardening] [RFC] memory allocations in genalloc

2017-08-18 Thread Laura Abbott
On 08/17/2017 09:26 AM, Igor Stoppa wrote: > Foreword: > If I should direct this message to someone else, please let me know. > I couldn't get a clear idea, by looking at both MAINTAINERS and git blame. > > > > Hi, > > I'm currently trying to convert the SE Linux policy db into using a > pr

Re: [PATCH v3] livepatch: add (un)patch callbacks

2017-08-18 Thread Petr Mladek
On Wed 2017-08-16 15:17:04, Joe Lawrence wrote: > Provide livepatch modules a klp_object (un)patching notification > mechanism. Pre and post-(un)patch callbacks allow livepatch modules to > setup or synchronize changes that would be difficult to support in only > patched-or-unpatched code contexts

Re: [PATCH] KVM/x86: Increase max vcpu number to 352

2017-08-18 Thread Konrad Rzeszutek Wilk
On Tue, Aug 15, 2017 at 06:13:29PM +0200, Radim Krčmář wrote: > (Missed this mail before my last reply.) > > 2017-08-15 10:10-0400, Konrad Rzeszutek Wilk: > > On Tue, Aug 15, 2017 at 11:00:04AM +0800, Lan Tianyu wrote: > > > On 2017年08月12日 03:35, Konrad Rzeszutek Wilk wrote: > > > > Migration with

[PATCH 3.16 026/134] ath9k_htc: fix NULL-deref at probe

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit ebeb36670ecac36c179b5fb5d5c88ff03ba191ec upstream. Make sure to check the number of endpoints to avoid dereferencing a NULL-pointer or accessing memory beyond the endpoint

[PATCH 3.16 017/134] staging: iio: tsl2x7x_core: Fix standard deviation calculation

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Eva Rachel Retuya commit cf6c77323a96fc40309cc8a4921ef206cccdd961 upstream. Standard deviation is calculated as the square root of the variance where variance is the mean of sample_sum and len

[PATCH 3.16 023/134] pinctrl: sh-pfc: r8a7791: Fix IPSR comment typos

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Sergei Shtylyov commit 0cbdc11482d72ad164e33ef7cc57b01e8b61e40d upstream. The IPSR field names in the comments have been fat-fingered in a couple places -- fix those silly typos... Fixes: 50

[PATCH 3.16 020/134] pinctrl: sh-pfc: r8a7791: Add missing HSCIF1 pinmux data

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Sergei Shtylyov commit da7a692fbbab07f4e9798b5b52798f6e3256dd8f upstream. The R8A7791 PFC driver was apparently based on the preliminary revisions of the user's manual, which omitted the H

[PATCH 3.16 021/134] pinctrl: sh-pfc: r8a7791: Add missing DVC_MUTE signal

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Sergei Shtylyov commit 3908632fb829d73317c64c3d04f584b49f62e4ae upstream. The R8A7791 PFC driver was apparently based on the preliminary revisions of the user's manual, which omitted the D

[PATCH 3.16 016/134] [media] mceusb: fix NULL-deref at probe

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit 03eb2a557ed552e920a0942b774aaf931596eec1 upstream. Make sure to check for the required out endpoint to avoid dereferencing a NULL-pointer in mce_request_packet should a mal

[PATCH 3.16 018/134] USB: Proper handling of Race Condition when two USB class drivers try to call init_usb_class simultaneously

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Ajay Kaher commit 2f86a96be0ccb1302b7eee7855dbee5ce4dc5dfb upstream. There is race condition when two USB class drivers try to call init_usb_class at the same time and leads to crash. code pat

[PATCH 3.16 019/134] cdc-acm: fix possible invalid access when processing notification

2017-08-18 Thread Ben Hutchings
3.16.47-rc1 review patch. If anyone has any objections, please let me know. -- From: Tobias Herzog commit 1bb9914e1730417d530de9ed37e59efdc647146b upstream. Notifications may only be 8 bytes long. Accessing the 9th and 10th byte of unimplemented/unknown notifications may be in

[PATCH 3.2 30/59] PCI: Freeze PME scan before suspending devices

2017-08-18 Thread Ben Hutchings
3.2.92-rc1 review patch. If anyone has any objections, please let me know. -- From: Lukas Wunner commit ea00353f36b64375518662a8ad15e39218a1f324 upstream. Laurent Pinchart reported that the Renesas R-Car H2 Lager board (r8a7790) crashes during suspend tests. Geert Uytterhoeve

[PATCH v11 0/6] Add RAS virtualization support for armv8 SEA and SEI

2017-08-18 Thread Dongjiu Geng
In the armv8 platform, the mainly processor hardware error notification type are synchronous external abort(SEA) and SError Interrupt (SEI), For the ARMv8 SEA/SEI, KVM or host kernel will deliver SIGBUS or use other interface to notify user space. After user space gets the notification, it will rec

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