[PATCH 4.10 70/81] mm, hugetlb: use pte_present() instead of pmd_present() in follow_huge_pmd()

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Naoya Horiguchi commit c9d398fa237882ea07167e23bcfc5e6847066518 upstream. I found the race condition which triggers the following bug when move_pages() and soft offline are called on a single

Re: [PATCH 2/4] mm: memcontrol: re-use global VM event enum

2017-04-06 Thread Vladimir Davydov
On Tue, Apr 04, 2017 at 06:01:46PM -0400, Johannes Weiner wrote: > The current duplication is a high-maintenance mess, and it's painful > to add new items. > > This increases the size of the event array, but we'll eventually want > most of the VM events tracked on a per-cgroup basis anyway. > > S

[PATCH 4.10 77/81] nvme/core: Fix race kicking freed request_queue

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Keith Busch commit f33447b90e96076483525b21cc4e0a8977cdd07c upstream. If a namespace has already been marked dead, we don't want to kick the request_queue again since we may have just freed it

[PATCH 4.10 75/81] blk: Ensure users for current->bio_list can see the full list.

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: NeilBrown commit f5fe1b51905df7cfe4fdfd85c5fb7bc5b71a094f upstream. Commit 79bd99596b73 ("blk: improve order of bio handling in generic_make_request()") changed current->bio_list so that it d

[PATCH 4.10 76/81] padata: avoid race in reordering

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Jason A. Donenfeld commit de5540d088fe97ad583cc7d396586437b32149a5 upstream. Under extremely heavy uses of padata, crashes occur, and with list debugging turned on, this happens instead: [874

[PATCH 4.10 78/81] nvme/pci: Disable on removal when disconnected

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Keith Busch commit 6db28eda266052f86a6b402422de61eeb7d2e351 upstream. If the device is not present, the driver should disable the queues immediately. Prior to this, the driver was relying on t

[PATCH 4.10 71/81] drm/armada: Fix compile fail

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Daniel Vetter commit 7357f89954b6d005df6ab8929759e78d7d9a80f9 upstream. I reported the include issue for tracepoints a while ago, but nothing seems to have happened. Now it bit us, since the d

[PATCH 4.10 41/81] mmc: sdhci: Disable runtime pm when the sdio_irq is enabled

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Hans de Goede commit 923713b357455cfb9aca2cd3429cb0806a724ed2 upstream. SDIO cards may need clock to send the card interrupt to the host. On a cherrytrail tablet with a RTL8723BS wifi chip, w

[PATCH 4.10 36/81] ALSA: hda - fix a problem for lineout on a Dell AIO machine

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Hui Wang commit 2f726aec19a9d2c63bec9a8a53a3910ffdcd09f8 upstream. On this Dell AIO machine, the lineout jack does not work. We found the pin 0x1a is assigned to lineout on this machine, and

[PATCH 2/6] locking: Introduce range reader/writer lock

2017-04-06 Thread Davidlohr Bueso
This implements a sleepable range rwlock, based on interval tree, serializing conflicting/intersecting/overlapping ranges within the tree. The largest range is given by [0, ~0 - 1] (inclusive). Unlike traditional locks, range locking involves dealing with the tree itself and the range to be locked,

[PATCH 4.10 34/81] PCI: thunder-pem: Use Cavium assigned hardware ID for ThunderX host controller

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Tomasz Nowicki commit 81caa91b72fd6a0b8dfc5eb10942c34f7efd2bc5 upstream. "CAV" is the only PNP/ACPI hardware ID vendor prefix assigned to Cavium so fix this as it should be from day one. Fixe

[PATCH 4.10 81/81] drm/i915: A hotfix for making aliasing PPGTT work for GVT-g

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Zhi Wang commit 3e52d71ede206df75b56208e7c7a277ef157bb71 upstream. This patch makes PPGTT page table non-shrinkable when using aliasing PPGTT mode. It's just a temporary solution for making GV

[PATCH 4.10 28/81] xfs: try any AG when allocating the first btree block when reflinking

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Christoph Hellwig commit 2fcc319d2467a5f5b78f35f79fd6e22741a31b1e upstream. When a reflink operation causes the bmap code to allocate a btree block we're currently doing single-AG allocations

[PATCH 3/6] locking/locktorture: Fix rwsem reader_delay

2017-04-06 Thread Davidlohr Bueso
We should account for nreader threads, not writers in this callback. Could even trigger a div by 0 if the user explicitly disables writers. Signed-off-by: Davidlohr Bueso --- kernel/locking/locktorture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/locking/locktortu

[PATCH 4/6] locking/locktorture: Fix num reader/writer corner cases

2017-04-06 Thread Davidlohr Bueso
Things can explode for locktorture if the user does combinations of nwriters_stress=0 nreaders_stress=0. Fix this by not assuming we always want to torture writer threads. Signed-off-by: Davidlohr Bueso --- kernel/locking/locktorture.c | 76 +--- 1 file ch

[PATCH 4.10 35/81] ALSA: seq: Fix race during FIFO resize

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 2d7d54002e396c180db0c800c1046f0a3c471597 upstream. When a new event is queued while processing to resize the FIFO in snd_seq_fifo_clear(), it may lead to a use-after-free,

[PATCH 4.10 37/81] ASoC: atmel-classd: fix audio clock rate

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Songjun Wu commit cd3ac9affc43b44f49d7af70d275f0bd426ba643 upstream. Fix the audio clock rate according to the datasheet. Reported-by: Dushara Jayasinghe Signed-off-by: Songjun Wu Acked-by:

[PATCH v2 -tip 0/6] locking: Introduce range reader/writer lock

2017-04-06 Thread Davidlohr Bueso
Changes from v1 (https://lwn.net/Articles/716383/), all in patch 2: - s/EXPORT_SYMBOL/EXPORT_SYMBOL_GPL - Made the tree walks a foreach loop, instead of while. - Fixed signal_pending() lockup issue for unaccounted waiters. - Fixed initialization macros. - Check condition before signal_pen

[PATCH 1/6] interval-tree: Build unconditionally

2017-04-06 Thread Davidlohr Bueso
In preparation for range locking, this patch gets rid of CONFIG_INTERVAL_TREE option as we will unconditionally build it. Signed-off-by: Davidlohr Bueso --- drivers/gpu/drm/Kconfig | 2 -- drivers/gpu/drm/i915/Kconfig | 1 - lib/Kconfig | 14 -- lib/Kconfig.de

[PATCH 4.10 68/81] mm: rmap: fix huge file mmap accounting in the memcg stats

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Johannes Weiner commit 553af430e7c981e6e8fa5007c5b7b5773acc63dd upstream. Huge pages are accounted as single units in the memcg's "file_mapped" counter. Account the correct number of base pag

[PATCH 4.10 32/81] scsi: scsi_dh_alua: Ensure that alua_activate() calls the completion function

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Bart Van Assche commit 7cb689fe42927281b8d98606ae5450173fcc66a9 upstream. Callers of scsi_dh_activate(), e.g. dm-mpath, assume that this function either returns an error code or calls the comp

Re: Is it safe for kthreadd to drain_all_pages?

2017-04-06 Thread Michal Hocko
On Wed 05-04-17 13:59:49, Hugh Dickins wrote: > Hi Mel, > > I suspect that it's not safe for kthreadd to drain_all_pages(); > but I haven't studied flush_work() etc, so don't really know what > I'm talking about: hoping that you will jump to a realization. > > 4.11-rc has been giving me hangs aft

[PATCH 4.10 65/81] x86/mm/KASLR: Exclude EFI region from KASLR VA space randomization

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Baoquan He commit a46f60d76004965e5669dbf3fc21ef3bc3632eb4 upstream. Currently KASLR is enabled on three regions: the direct mapping of physical memory, vamlloc and vmemmap. However the EFI re

[PATCH 4.10 54/81] tty/serial: atmel: fix race condition (TX+DMA)

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Richard Genoud commit 31ca2c63fdc0aee725cbd4f207c1256f5deaabde upstream. If uart_flush_buffer() is called between atmel_tx_dma() and atmel_complete_tx_dma(), the circular buffer has been clear

[PATCH 4.10 60/81] KVM: kvm_io_bus_unregister_dev() should never fail

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: David Hildenbrand commit 90db10434b163e46da413d34db8d0e77404cc645 upstream. No caller currently checks the return value of kvm_io_bus_unregister_dev(). This is evil, as all callers silently go

[PATCH 4.10 64/81] drm/i915/kvmgt: Hold struct kvm reference

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Alex Williamson commit 93a15b58cfb8a24e666ffca432f19fe65c1cd7d1 upstream. The kvmgt code keeps a pointer to the struct kvm associated with the device, but doesn't actually hold a reference to

[PATCH 4.10 56/81] xhci: Set URB actual length for stopped control transfers

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Mathias Nyman commit 0ab2881a406b9fd46224a3e8253bbc0141b4f844 upstream. A control transfer that stopped at the status stage incorrectly warned about a "unexpected TRB Type 4", and did not set

[PATCH 4.10 52/81] ACPI: Fix incompatibility with mcount-based function graph tracing

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Josh Poimboeuf commit 61b79e16c68d703dde58c25d3935d67210b7d71b upstream. Paul Menzel reported a warning: WARNING: CPU: 0 PID: 774 at /build/linux-ROBWaj/linux-4.9.13/kernel/trace/trace_fun

[PATCH 6/6] staging/lustre: Use generic range rwlock

2017-04-06 Thread Davidlohr Bueso
This replaces the in-house version, which is also derived from Jan's interval tree implementation. Cc: oleg.dro...@intel.com Cc: andreas.dil...@intel.com Cc: jsimm...@infradead.org Cc: lustre-de...@lists.lustre.org Signed-off-by: Davidlohr Bueso --- drivers/staging/lustre/lustre/llite/Makefile

[PATCH 4.10 47/81] nfsd: map the ENOKEY to nfserr_perm for avoiding warning

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Kinglong Mee commit c952cd4e949ab3d07287efc2e80246e03727d15d upstream. Now that Ext4 and f2fs filesystems support encrypted directories and files, attempts to access those files may return ENO

[PATCH 4.10 55/81] tty/serial: atmel: fix TX path in atmel_console_write()

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Nicolas Ferre commit 497e1e16f45c70574dc9922c7f75c642c2162119 upstream. A side effect of 89d8232411a8 ("tty/serial: atmel_serial: BUG: stop DMA from transmitting in stop_tx") is that the conso

[PATCH 4.10 49/81] parisc: Clean up fixup routines for get_user()/put_user()

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Helge Deller commit d19f5e41b344a057bb2450024a807476f30978d2 upstream. Al Viro noticed that userspace accesses via get_user()/put_user() can be simplified a lot with regard to usage of the exc

[PATCH 4.10 30/81] scsi: libsas: fix ata xfer length

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: John Garry commit 9702c67c6066f583b629cf037d2056245bb7a8e6 upstream. The total ata xfer length may not be calculated properly, in that we do not use the proper method to get an sg element dma

[PATCH 4.10 51/81] parisc: Fix access fault handling in pa_memcpy()

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Helge Deller commit 554bfeceb8a22d448cd986fc9efce25e833278a1 upstream. pa_memcpy() is the major memcpy implementation in the parisc kernel which is used to do any kind of userspace/kernel memo

[PATCH 4.10 50/81] parisc: Avoid stalled CPU warnings after system shutdown

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Helge Deller commit 476e75a44b56038bee9207242d4bc718f6b4de06 upstream. Commit 73580dac7618 ("parisc: Fix system shutdown halt") introduced an endless loop for systems which don't provide a sof

Re: [PATCH] drm: bridge: dw-hdmi: remove unused hdmi_bus_fmt_is_yuv420

2017-04-06 Thread Neil Armstrong
On 04/05/2017 10:14 AM, Laurent Pinchart wrote: > Hi Neil, > > Thank you for the patch. > > On Wednesday 05 Apr 2017 09:32:59 Neil Armstrong wrote: >> Remove usused yet hdmi_bus_fmt_is_yuv420 function. >> >> Fixes: def23aa7e982 ("drm: bridge: dw-hdmi: Switch to V4L bus format and >> encodings") S

[PATCH 4.10 43/81] crypto: ccp - Make some CCP DMA channels private

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Gary R Hook commit efc989fce8703914bac091dcc4b8ff7a72ccf987 upstream. The CCP registers its queues as channels capable of handling general DMA operations. The NTB driver will use DMA if direct

[PATCH 4.10 42/81] mmc: sdhci-of-at91: fix MMC_DDR_52 timing selection

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Ludovic Desroches commit d0918764c17b94c30bbb2619929b1719ff52707a upstream. The controller has different timings for MMC_TIMING_UHS_DDR50 and MMC_TIMING_MMC_DDR52. Configuring the controller w

Re: [PATCH 2/6] locking: Introduce range reader/writer lock

2017-04-06 Thread Laurent Dufour
On 06/04/2017 10:46, Davidlohr Bueso wrote: > This implements a sleepable range rwlock, based on interval tree, serializing > conflicting/intersecting/overlapping ranges within the tree. The largest range > is given by [0, ~0 - 1] (inclusive). Unlike traditional locks, range locking > involves deal

Re: [PATCH 4/4] mm: memcontrol: use node page state naming scheme for memcg

2017-04-06 Thread Vladimir Davydov
On Tue, Apr 04, 2017 at 06:01:48PM -0400, Johannes Weiner wrote: > The memory controllers stat function names are awkwardly long and > arbitrarily different from the zone and node stat functions. > > The current interface is named: > > mem_cgroup_read_stat() > mem_cgroup_update_stat() > mem

[PATCH 4.10 06/81] xfs: fix toctou race when locking an inode to access the data map

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Darrick J. Wong commit 4b5bd5bf3fb182dc504b1b64e0331300f156e756 upstream. We use di_format and if_flags to decide whether we're grabbing the ilock in btree mode (btree extents not loaded) or s

[PATCH 4.10 21/81] xfs: dont reserve blocks for right shift transactions

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Brian Foster commit 48af96ab92bc68fb645068b978ce36df2379e076 upstream. The block reservation for the transaction allocated in xfs_shift_file_space() is an artifact of the original collapse ran

[PATCH 4.10 04/81] xfs: sync eofblocks scans under iolock are livelock prone

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Brian Foster commit c3155097ad89a956579bc305856a1f2878494e52 upstream. The xfs_eofblocks.eof_scan_owner field is an internal field to facilitate invoking eofb scans from the kernel while under

[PATCH 4.10 27/81] xfs: use iomap new flag for newly allocated delalloc blocks

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Brian Foster commit f65e6fad293b3a5793b7fa2044800506490e7a2e upstream. Commit fa7f138 ("xfs: clear delalloc and cache on buffered write failure") fixed one regression in the iomap error handli

[PATCH 4.10 03/81] xfs: pull up iolock from xfs_free_eofblocks()

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Brian Foster commit a36b926180cda375ac2ec89e1748b47137cfc51c upstream. xfs_free_eofblocks() requires the IOLOCK_EXCL lock, but is called from different contexts where the lock may or may not b

[PATCH 4.10 05/81] xfs: fix eofblocks race with file extending async dio writes

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Brian Foster commit e4229d6b0bc9280f29624faf170cf76a9f1ca60e upstream. It's possible for post-eof blocks to end up being used for direct I/O writes. dio write performs an upfront unwritten ext

[PATCH 4.10 26/81] xfs: Use xfs_icluster_size_fsb() to calculate inode alignment mask

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Chandan Rajendra commit d5825712ee98d68a2c17bc89dad2c30276894cba upstream. When block size is larger than inode cluster size, the call to XFS_B_TO_FSBT(mp, mp->m_inode_cluster_size) returns 0.

[PATCH 4.10 22/81] xfs: Use xfs_icluster_size_fsb() to calculate inode chunk alignment

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Chandan Rajendra commit 8ee9fdbebc84b39f1d1c201c5e32277c61d034aa upstream. On a ppc64 system, executing generic/256 test with 32k block size gives the following call trace, XFS: Assertion fa

[PATCH 4.10 25/81] xfs: fix and streamline error handling in xfs_end_io

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Christoph Hellwig commit 787eb485509f9d58962bd8b4dbc6a5ac6e2034fe upstream. There are two different cases of buffered I/O errors: - first we can have an already shutdown fs. In that case we

[PATCH 4.10 24/81] xfs: only reclaim unwritten COW extents periodically

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Christoph Hellwig commit 3802a345321a08093ba2ddb1849e736f84e8d450 upstream. We only want to reclaim preallocations from our periodic work item. Currently this is archived by looking for a dirt

[PATCH 4.10 02/81] KVM: nVMX: fix nested EPT detection

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Ladi Prosek commit 7ad658b693536741c37b16aeb07840a2ce75f5b9 upstream. The nested_ept_enabled flag introduced in commit 7ca29de2136 was not computed correctly. We are interested only in L1's EP

Re: [PATCH v6] vfio error recovery: kernel support

2017-04-06 Thread Cao jin
On 04/06/2017 06:36 AM, Michael S. Tsirkin wrote: > On Wed, Apr 05, 2017 at 04:19:10PM -0600, Alex Williamson wrote: >> On Thu, 6 Apr 2017 00:50:22 +0300 >> "Michael S. Tsirkin" wrote: >> >>> On Wed, Apr 05, 2017 at 01:38:22PM -0600, Alex Williamson wrote: The previous intention of trying t

[PATCH 06/11] ACPI/extlog: Add EDAC dependency

2017-04-06 Thread Borislav Petkov
From: Borislav Petkov We are calling EDAC functions - make the proper dependencies explicit. Signed-off-by: Borislav Petkov Cc: linux-a...@vger.kernel.org --- drivers/acpi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig in

Re: [PATCH v3 1/8] trace: ras: add ARM processor error information trace event

2017-04-06 Thread Xie XiuQi
Hi Steve, Sorry for reply late. On 2017/3/31 0:02, Steven Rostedt wrote: > On Thu, 30 Mar 2017 18:31:01 +0800 > Xie XiuQi wrote: > >> Add a new trace event for ARM processor error information, so that >> the user will know what error occurred. With this information the >> user may take appropri

[PATCH 04/11] EDAC: Remove edac_err_assert

2017-04-06 Thread Borislav Petkov
From: Borislav Petkov ... and the glue around it. It is not needed anymore. Signed-off-by: Borislav Petkov --- drivers/edac/edac_mc.c | 18 +- drivers/edac/edac_stub.c | 3 --- include/linux/edac.h | 1 - 3 files changed, 1 insertion(+), 21 deletions(-) diff --git a/dr

[PATCH 00/11] EDAC: Remove edac_stub.c

2017-04-06 Thread Borislav Petkov
From: Borislav Petkov This was an ancient hack to hand in hw errors reported through an NMI into EDAC. And what a hack it was - it required a piece of the EDAC functionality to be always built-in and it called into it from NMI context. We could've simply converted it to a notifier and put some l

[PATCH 05/11] EDAC: Move edac_op_state to edac_mc.c

2017-04-06 Thread Borislav Petkov
From: Borislav Petkov ... as part of moving stuff away from edac_stub.c Signed-off-by: Borislav Petkov --- drivers/edac/edac_mc.c | 3 +++ drivers/edac/edac_stub.c | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/edac/edac_mc.c b/drivers/edac/edac_mc.c index 48

[PATCH 11/11] EDAC: Rename report status accessors

2017-04-06 Thread Borislav Petkov
From: Borislav Petkov Change them to have the edac_ prefix. No functionality change. Signed-off-by: Borislav Petkov --- drivers/acpi/acpi_extlog.c | 8 drivers/edac/edac_mc.c | 8 drivers/edac/pnd2_edac.c | 2 +- drivers/edac/sb_edac.c | 4 ++-- drivers/edac/skx_ed

[PATCH 4.10 44/81] crypto: xts,lrw - fix out-of-bounds write after kmalloc failure

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Eric Biggers commit 9df0eb180c2074451f25556eb566d89c7057c2ac upstream. In the generic XTS and LRW algorithms, for input data > 128 bytes, a temporary buffer is allocated to hold the values to

Re: [PATCH 3/4] pwm: tegra: Add DT binding details to configure pin in suspends/resume

2017-04-06 Thread Jon Hunter
On 05/04/17 15:13, Laxman Dewangan wrote: > In some of NVIDIA Tegra's platform, PWM controller is used to > control the PWM controlled regulators. PWM signal is connected to > the VID pin of the regulator where duty cycle of PWM signal decide > the voltage level of the regulator output. > > The t

[PATCH 4.10 45/81] ARCv2: SLC: Make sure busy bit is set properly on SLC flushing

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Alexey Brodkin commit c70c473396cbdec1168a6eff60e13029c0916854 upstream. As reported in STAR 9001165532, an SLC control reg read (for checking busy state) right after SLC invalidate command ma

[PATCH 4.10 00/81] 4.10.9-stable review

2017-04-06 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.10.9 release. There are 81 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Sat Apr 8 08:36:05 UTC 2017. Anything receive

[PATCH 4.10 46/81] NFSv4.1 fix infinite loop on IO BAD_STATEID error

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Olga Kornievskaia commit 0e3d3e5df07dcf8a50d96e0ecd6ab9a888f55dfc upstream. Commit 63d63cbf5e03 "NFSv4.1: Don't recheck delegations that have already been checked" introduced a regression wher

[PATCH 4.10 29/81] scsi: sg: check length passed to SG_NEXT_CMD_LEN

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: peter chang commit bf33f87dd04c371ea33feb821b60d63d754e3124 upstream. The user can control the size of the next command passed along, but the value passed to the ioctl isn't checked against th

Re: [PATCH 3/4] mm: memcontrol: re-use node VM page state enum

2017-04-06 Thread Vladimir Davydov
On Tue, Apr 04, 2017 at 06:01:47PM -0400, Johannes Weiner wrote: > The current duplication is a high-maintenance mess, and it's painful > to add new items or query memcg state from the rest of the VM. > > This increases the size of the stat array marginally, but we should > aim to track all these

[PATCH 10/11] EDAC: Delete edac_stub.c

2017-04-06 Thread Borislav Petkov
From: Borislav Petkov Move the remaining functionality to edac_mc.c. Convert "edac_report=" to a module parameter. Signed-off-by: Borislav Petkov --- drivers/edac/Makefile| 2 +- drivers/edac/edac_mc.c | 61 drivers/edac/edac_stub.c | 37

[PATCH 09/11] EDAC: Update Kconfig help text

2017-04-06 Thread Borislav Petkov
From: Borislav Petkov Remove the old URLs. Signed-off-by: Borislav Petkov --- drivers/edac/Kconfig | 18 -- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/drivers/edac/Kconfig b/drivers/edac/Kconfig index 1ac18c989fb3..27337ef9874b 100644 --- a/drivers/edac/Kcon

[PATCH 03/11] EDAC: Get rid of edac_handlers

2017-04-06 Thread Borislav Petkov
From: Borislav Petkov Use mc_devices list instead to check whether we have EDAC driver instances successfully registered with EDAC core. Signed-off-by: Borislav Petkov --- drivers/edac/edac_mc.c | 6 ++ drivers/edac/edac_stub.c | 3 --- include/linux/edac.h | 1 - 3 files changed, 2

[PATCH 08/11] EDAC: Remove EDAC_MM_EDAC

2017-04-06 Thread Borislav Petkov
From: Borislav Petkov Move all the EDAC core functionality behind CONFIG_EDAC and get rid of that indirection. Update defconfigs which had it. While at it, fix dependencies such that EDAC depends on RAS for the tracepoints. Signed-off-by: Borislav Petkov Cc: linux-arm-ker...@lists.infradead.or

[PATCH 02/11] x86/nmi, EDAC: Get rid of DRAM error reporting thru PCI SERR NMI

2017-04-06 Thread Borislav Petkov
From: Borislav Petkov Apparently, some machines used to report DRAM errors through a PCI SERR NMI. This is why we have a call into EDAC in the NMI handler. See c0d121720220 ("drivers/edac: add new nmi rescan"). >From looking at the patch above, that's two drivers: e752x_edac.c and e7xxx_edac.

Re: [PATCH] MAINTAINERS: Add Laurent and Andrzej as maintainers for bridge drivers

2017-04-06 Thread Laurent Pinchart
Hi Archit, On Wednesday 05 Apr 2017 16:53:50 Archit Taneja wrote: > Add Laurent and Andrzej as maintainers for DRM bridge chip drivers. They > actively review and contribute to bridge drivers and the bridge API. How about adding me as a reviewer instead ? I can't commit maintain bridge drivers i

[PATCH 07/11] EDAC: Issue tracepoint only when it is defined

2017-04-06 Thread Borislav Petkov
From: Borislav Petkov ... and this happens only when CONFIG_RAS is enabled. Signed-off-by: Borislav Petkov --- drivers/edac/edac_mc.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/edac/edac_mc.c b/drivers/edac/edac_mc.c index 681387d20fb9..735546ea6ebe

[PATCH 01/11] EDAC, highbank: Align Makefile directives

2017-04-06 Thread Borislav Petkov
From: Borislav Petkov ... like the rest of the file. Signed-off-by: Borislav Petkov --- drivers/edac/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/edac/Makefile b/drivers/edac/Makefile index 52d735f29073..76517ebc0a7f 100644 --- a/drivers/edac/Makefil

Re: [PATCH 02/24] Add the ability to lock down access to the running kernel image

2017-04-06 Thread James Morris
On Wed, 5 Apr 2017, David Howells wrote: > +#include > +#include > + > +static __read_mostly bool kernel_locked_down; How about marking this __ro_after_init if ALLOW_LOCKDOWN_LIFT is not configured? -- James Morris

[PATCH 4.10 18/81] xfs: handle indlen shortage on delalloc extent merge

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Brian Foster commit 0e339ef8556d9e567aa7925f8892c263d79430d9 upstream. When a delalloc extent is created, it can be merged with pre-existing, contiguous, delalloc extents. When this occurs, xf

Re: [PATCH V2] perf/x86: fix spurious NMI with PEBS Load Latency event

2017-04-06 Thread Peter Zijlstra
On Tue, Apr 04, 2017 at 03:14:06PM -0400, kan.li...@intel.com wrote: > From: Kan Liang > > Spurious NMIs will be observed when applying the following command. >while true ; do sudo perf record -b -a -e >"cpu/umask=0x01,event=0xcd,ldlat=0x80/pp,cpu/umask=0x03,event=0x0/, > cpu/umask=0x

Re: [PATCH] x86/xen/time: set ->min_delta_ticks and ->max_delta_ticks

2017-04-06 Thread Juergen Gross
On 30/03/17 22:06, Nicolai Stange wrote: > In preparation for making the clockevents core NTP correction aware, > all clockevent device drivers must set ->min_delta_ticks and > ->max_delta_ticks rather than ->min_delta_ns and ->max_delta_ns: a > clockevent device's rate is going to change dynamical

[PATCH 4.10 16/81] xfs: correct null checks and error processing in xfs_initialize_perag

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Bill O'Donnell commit b20fe4730ea5c037c16631fb0df659c7b6d4b3b1 upstream. If pag cannot be allocated, the current error exit path will trip a null pointer deference error when calling xfs_buf_h

Re: [PATCH v2] HID: asus: support backlight on USB keyboards

2017-04-06 Thread Benjamin Tissoires
Hi Carlo, On Apr 05 2017 or thereabouts, Carlo Caione wrote: > From: Carlo Caione > > The latest USB keyboards shipped on several ASUS laptop models > (including ROG laptop models such as GL702VMK) have the keyboards > backlight controlled by the keyboard firmware. > > The firmware implements a

[PATCH 4.10 13/81] xfs: reset b_first_retry_time when clear the retry status of xfs_buf_t

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Hou Tao commit 4dd2eb633598cb6a5a0be2fd9a2be0819f5eeb5f upstream. After successful IO or permanent error, b_first_retry_time also needs to be cleared, else the invalid first retry time will be

[PATCH 4.10 15/81] xfs: update ctime and mtime on clone destinatation inodes

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Christoph Hellwig commit c5ecb42342852892f978572ddc6dca703460f25a upstream. We're changing both metadata and data, so we need to update the timestamps for clone operations. Dedupe on the othe

[PATCH 4.10 11/81] xfs: allow unwritten extents in the CoW fork

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Darrick J. Wong commit 05a630d76bd3f39baf0eecfa305bed2820796dee upstream. In the data fork, we only allow extents to perform the following state transitions: delay -> real <-> unwritten Ther

[PATCH 4.9 62/72] mm, hugetlb: use pte_present() instead of pmd_present() in follow_huge_pmd()

2017-04-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Naoya Horiguchi commit c9d398fa237882ea07167e23bcfc5e6847066518 upstream. I found the race condition which triggers the following bug when move_pages() and soft offline are called on a single h

[PATCH 4.9 61/72] mm: rmap: fix huge file mmap accounting in the memcg stats

2017-04-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Johannes Weiner commit 553af430e7c981e6e8fa5007c5b7b5773acc63dd upstream. Huge pages are accounted as single units in the memcg's "file_mapped" counter. Account the correct number of base page

[PATCH 4.9 59/72] x86/mce: Fix copy/paste error in exception table entries

2017-04-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Tony Luck commit 26a37ab319a26d330bab298770d692bb9c852aff upstream. Back in commit: 92b0729c34cab ("x86/mm, x86/mce: Add memcpy_mcsafe()") ... I made a copy/paste error setting up the excep

[PATCH 4.10 10/81] xfs: verify free block header fields

2017-04-06 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Darrick J. Wong commit de14c5f541e78c59006bee56f6c5c2ef1ca07272 upstream. Perform basic sanity checking of the directory free block header fields so that we avoid hanging the system on invalid

[PATCH 4.9 58/72] x86/mm/KASLR: Exclude EFI region from KASLR VA space randomization

2017-04-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Baoquan He commit a46f60d76004965e5669dbf3fc21ef3bc3632eb4 upstream. Currently KASLR is enabled on three regions: the direct mapping of physical memory, vamlloc and vmemmap. However the EFI reg

[PATCH 4.9 56/72] drm/vc4: Allocate the right amount of space for boot-time CRTC state.

2017-04-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Eric Anholt commit 6d6e500391875cc372336c88e9a8af377be19c36 upstream. Without this, the first modeset would dereference past the allocation when trying to free the mm node. Signed-off-by: Eric

[PATCH 4.9 71/72] nvme/core: Fix race kicking freed request_queue

2017-04-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Keith Busch commit f33447b90e96076483525b21cc4e0a8977cdd07c upstream. If a namespace has already been marked dead, we don't want to kick the request_queue again since we may have just freed it

[PATCH 4.9 72/72] nvme/pci: Disable on removal when disconnected

2017-04-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Keith Busch commit 6db28eda266052f86a6b402422de61eeb7d2e351 upstream. If the device is not present, the driver should disable the queues immediately. Prior to this, the driver was relying on th

Re: [PATCH v3 2/8] acpi: apei: handle SEI notification type for ARMv8

2017-04-06 Thread Xie XiuQi
Hi James, Sorry for reply late, and thanks for your comments. On 2017/4/1 0:20, James Morse wrote: > Hi Xie XiuQi, > > On 30/03/17 11:31, Xie XiuQi wrote: >> ARM APEI extension proposal added SEI (asynchronous SError interrupt) >> notification type for ARMv8. >> >> Add a new GHES error source ha

Re: [PATCH] MIPS: perf: fix deadlock

2017-04-06 Thread Peter Zijlstra
On Wed, Apr 05, 2017 at 03:14:08PM +0200, Rabin Vincent wrote: That lock is disgusting... but yes patch looks about right. I'll leave it to the MIPS people though. > --- > arch/mips/kernel/perf_event_mipsxx.c | 9 + > 1 file changed, 5 insertions(+), 4 deletions(-) > > diff --git a/arc

[PATCH 4.9 19/72] xfs: handle indlen shortage on delalloc extent merge

2017-04-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Brian Foster commit 0e339ef8556d9e567aa7925f8892c263d79430d9 upstream. When a delalloc extent is created, it can be merged with pre-existing, contiguous, delalloc extents. When this occurs, xfs

[PATCH 4.9 69/72] blk: Ensure users for current->bio_list can see the full list.

2017-04-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: NeilBrown commit f5fe1b51905df7cfe4fdfd85c5fb7bc5b71a094f upstream. Commit 79bd99596b73 ("blk: improve order of bio handling in generic_make_request()") changed current->bio_list so that it di

[PATCH 4.9 67/72] mm: workingset: fix premature shadow node shrinking with cgroups

2017-04-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Johannes Weiner commit 0cefabdaf757a6455d75f00cb76874e62703ed18 upstream. Commit 0a6b76dd23fa ("mm: workingset: make shadow node shrinker memcg aware") enabled cgroup-awareness in the shadow no

[PATCH 4.9 70/72] padata: avoid race in reordering

2017-04-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Jason A. Donenfeld commit de5540d088fe97ad583cc7d396586437b32149a5 upstream. Under extremely heavy uses of padata, crashes occur, and with list debugging turned on, this happens instead: [8748

[PATCH 4.9 68/72] blk: improve order of bio handling in generic_make_request()

2017-04-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: NeilBrown commit 79bd99596b7305ab08109a8bf44a6a4511dbf1cd upstream. To avoid recursion on the kernel stack when stacked block devices are in use, generic_make_request() will, when called recurs

Re: [RFC PATCH 0/6] Unify the Interrupt Mode and setup it as soon as possible

2017-04-06 Thread Thomas Gleixner
On Wed, 29 Mar 2017, Dou Liyang wrote: > The purpose of this patchset is Unifing these setup steps and executing as > soon as possible as follows: > >start_kernel > ---+ > | > | > | > | init_IRQ > +>---++ > || > || ++ > |

[PATCH 4.9 21/72] xfs: fix uninitialized variable in _reflink_convert_cow

2017-04-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Darrick J. Wong commit 93aaead52a9eebdc20dc8fa673c350e592a06949 upstream. Fix an uninitialize variable. Reported-by: Dan Carpenter Reviewed-by: Brian Foster Signed-off-by: Darrick J. Wong S

[PATCH 4.9 50/72] tty/serial: atmel: fix TX path in atmel_console_write()

2017-04-06 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Nicolas Ferre commit 497e1e16f45c70574dc9922c7f75c642c2162119 upstream. A side effect of 89d8232411a8 ("tty/serial: atmel_serial: BUG: stop DMA from transmitting in stop_tx") is that the consol

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