[PATCH 4.9 08/17] ext4: fix false negatives *and* false positives in ext4_check_descriptors()

2018-08-07 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Theodore Ts'o commit 44de022c4382541cebdd6de4465d1f4f465ff1dd upstream. Ext4_check_descriptors() was getting called before s_gdb_count was initialized. So for file systems w/o the meta_bg feat

[PATCH 4.9 07/17] netlink: Dont shift on 64 for ngroups

2018-08-07 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Dmitry Safonov commit 91874ecf32e41b5d86a4cb9d60e0bee50d828058 upstream. It's legal to have 64 groups for netlink_sock. As user-supplied nladdr->nl_groups is __u32, it's possible to subscribe

[PATCH 4.9 06/17] netlink: Dont shift with UB on nlk->ngroups

2018-08-07 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Dmitry Safonov [ Upstream commit 61f4b23769f0cc72ae62c9a81cf08f0397d40da8 ] On i386 nlk->ngroups might be 32 or 0. Which leads to UB, resulting in hang during boot. Check for 0 ngroups and use

[PATCH 4.9 04/17] nohz: Fix local_timer_softirq_pending()

2018-08-07 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Anna-Maria Gleixner commit 80d20d35af1edd632a5e7a3b9c0ab7ceff92769e upstream. local_timer_softirq_pending() checks whether the timer softirq is pending with: local_softirq_pending() & TIMER_SOF

[PATCH 4.9 16/17] IB/hfi1: Fix incorrect mixing of ERR_PTR and NULL return values

2018-08-07 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Michael J. Ruhl commit b697d7d8c741f27b728a878fc55852b06d0f6f5e upstream. The __get_txreq() function can return a pointer, ERR_PTR(-EBUSY), or NULL. All of the relevant call sites look for IS_E

[PATCH 4.9 15/17] fork: unconditionally clear stack on fork

2018-08-07 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Kees Cook commit e01e80634ecdde1dd113ac43b3adad21b47f3957 upstream. One of the classes of kernel stack content leaks[1] is exposing the contents of prior heap or stack contents when a new proce

[PATCH 4.9 17/17] jfs: Fix inconsistency between memory allocation and ea_buf->max_size

2018-08-07 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Shankara Pailoor commit 92d34134193e5b129dc24f8d79cb9196626e8d7a upstream. The code is assuming the buffer is max_size length, but we weren't allocating enough space for it. Signed-off-by: Sha

[PATCH 4.9 03/17] genirq: Make force irq threading setup more robust

2018-08-07 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner commit d1f0301beef5efbfa1fe0f0edbea01863d5d upstream. The support of force threading interrupts which are set up with both a primary and a threaded handler wreckaged the set

[PATCH 4.9 02/17] scsi: qla2xxx: Return error when TMF returns

2018-08-07 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Anil Gurumurthy commit b4146c4929ef61d5afca011474d59d0918a0cd82 upstream. Propagate the task management completion status properly to avoid unnecessary waits for commands to complete. Fixes: f

[PATCH 4.9 12/17] Btrfs: fix file data corruption after cloning a range and fsync

2018-08-07 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Filipe Manana commit bd3599a0e142cd73edd3b6801068ac3f48ac771a upstream. When we clone a range into a file we can end up dropping existing extent maps (or trimming them) and replacing them with

[PATCH 4.9 13/17] tcp: add tcp_ooo_try_coalesce() helper

2018-08-07 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet commit 58152ecbbcc6a0ce7fddd5bf5f6ee535834ece0c upstream. In case skb in out_or_order_queue is the result of multiple skbs coalescing, we would like to get a proper gso_segs counte

[PATCH 4.9 01/17] scsi: qla2xxx: Fix ISP recovery on unload

2018-08-07 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Quinn Tran commit b08abbd9f5996309f021684f9ca74da30dcca36a upstream. During unload process, the chip can encounter problem where a FW dump would be captured. For this case, the full reset seque

[PATCH 4.14 13/21] Btrfs: fix file data corruption after cloning a range and fsync

2018-08-07 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Filipe Manana commit bd3599a0e142cd73edd3b6801068ac3f48ac771a upstream. When we clone a range into a file we can end up dropping existing extent maps (or trimming them) and replacing them with

[PATCH 4.14 04/21] scsi: qla2xxx: Return error when TMF returns

2018-08-07 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Anil Gurumurthy commit b4146c4929ef61d5afca011474d59d0918a0cd82 upstream. Propagate the task management completion status properly to avoid unnecessary waits for commands to complete. Fixes:

[PATCH 4.9 10/17] ring_buffer: tracing: Inherit the tracing setting to next ring buffer

2018-08-07 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Masami Hiramatsu commit 73c8d8945505acdcbae137c2e00a1232e0be709f upstream. Maintain the tracing on/off setting of the ring_buffer when switching to the trace buffer snapshot. Taking a snapshot

[PATCH 4.9 14/17] kmemleak: clear stale pointers from task stacks

2018-08-07 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Konstantin Khlebnikov commit ca182551857cc2c1e6a2b7f1e72090a137a15008 upstream. Kmemleak considers any pointers on task stacks as references. This patch clears newly allocated and reused vmap

Re: [PATCH v1 2/3] zinc: Introduce minimal cryptography library

2018-08-07 Thread Jason A. Donenfeld
Hey Andy, Eric, & all, I've started the work of separating this out into 16 individual commits, have addressed numerous other things brought up like the ifdef maze, and have begun rewriting (parts of) the original commit message. It's still a work in progress, and I still have some work to do, but

[PATCH 4.14 17/21] intel_idle: Graceful probe failure when MWAIT is disabled

2018-08-07 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Len Brown commit a4c447533a18ee86e07232d6344ba12b1f9c5077 upstream. When MWAIT is disabled, intel_idle refuses to probe. But it may mis-lead the user by blaming this on the model number: inte

[PATCH 4.14 07/21] nohz: Fix missing tick reprogram when interrupting an inline softirq

2018-08-07 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Frederic Weisbecker commit 0a0e0829f990120cef165bbb804237f400953ec2 upstream. The full nohz tick is reprogrammed in irq_exit() only if the exit is not in a nesting interrupt. This stands as an

[PATCH 4.14 15/21] nvme-pci: Fix queue double allocations

2018-08-07 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Keith Busch commit 62314e405fa101dbb82563394f9dfc225e3f1167 upstream. The queue count says the highest queue that's been allocated, so don't reallocate a queue lower than that. Fixes: 147b27e

[PATCH 4.14 21/21] jfs: Fix inconsistency between memory allocation and ea_buf->max_size

2018-08-07 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Shankara Pailoor commit 92d34134193e5b129dc24f8d79cb9196626e8d7a upstream. The code is assuming the buffer is max_size length, but we weren't allocating enough space for it. Signed-off-by: Sh

[PATCH 4.14 20/21] xfs: dont call xfs_da_shrink_inode with NULL bp

2018-08-07 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Eric Sandeen commit bb3d48dcf86a97dc25fe9fc2c11938e19cb4399a upstream. xfs_attr3_leaf_create may have errored out before instantiating a buffer, for example if the blkno is out of range. In t

[PATCH 4.14 18/21] xfs: catch inode allocation state mismatch corruption

2018-08-07 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Dave Chinner commit ee457001ed6c6f31ddad69c24c1da8f377d8472d upstream. We recently came across a V4 filesystem causing memory corruption due to a newly allocated inode being setup twice and be

[PATCH 4.14 19/21] xfs: validate cached inodes are free when allocated

2018-08-07 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Dave Chinner commit afca6c5b2595fc44383919fba740c194b0b76aff upstream. A recent fuzzed filesystem image cached random dcache corruption when the reproducer was run. This often showed up as pan

[PATCH 4.14 16/21] nvmet-fc: fix target sgl list on large transfers

2018-08-07 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: James Smart commit d082dc1562a2ff0947b214796f12faaa87e816a9 upstream. The existing code to carve up the sg list expected an sg element-per-page which can be very incorrect with iommu's remappi

[PATCH 4.14 14/21] nvme-pci: allocate device queues storage space at probe

2018-08-07 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Sagi Grimberg commit 147b27e4bd08406a6abebedbb478b431ec197be1 upstream. It may cause race by setting 'nvmeq' in nvme_init_request() because .init_request is called inside switching io schedule

[PATCH 4.14 06/21] nohz: Fix local_timer_softirq_pending()

2018-08-07 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Anna-Maria Gleixner commit 80d20d35af1edd632a5e7a3b9c0ab7ceff92769e upstream. local_timer_softirq_pending() checks whether the timer softirq is pending with: local_softirq_pending() & TIMER_SO

[PATCH 4.14 08/21] netlink: Dont shift on 64 for ngroups

2018-08-07 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Dmitry Safonov commit 91874ecf32e41b5d86a4cb9d60e0bee50d828058 upstream. It's legal to have 64 groups for netlink_sock. As user-supplied nladdr->nl_groups is __u32, it's possible to subscribe

[PATCH 4.14 11/21] ring_buffer: tracing: Inherit the tracing setting to next ring buffer

2018-08-07 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Masami Hiramatsu commit 73c8d8945505acdcbae137c2e00a1232e0be709f upstream. Maintain the tracing on/off setting of the ring_buffer when switching to the trace buffer snapshot. Taking a snapsho

[PATCH 4.14 09/21] ext4: fix false negatives *and* false positives in ext4_check_descriptors()

2018-08-07 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Theodore Ts'o commit 44de022c4382541cebdd6de4465d1f4f465ff1dd upstream. Ext4_check_descriptors() was getting called before s_gdb_count was initialized. So for file systems w/o the meta_bg fea

[PATCH 4.14 10/21] ACPI / PCI: Bail early in acpi_pci_add_bus() if there is no ACPI handle

2018-08-07 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Vitaly Kuznetsov commit a0040c0145945d3bd203df8fa97f6dfa819f3f7d upstream. Hyper-V instances support PCI pass-through which is implemented through PV pci-hyperv driver. When a device is passed

[PATCH 4.14 03/21] scsi: qla2xxx: Fix ISP recovery on unload

2018-08-07 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Quinn Tran commit b08abbd9f5996309f021684f9ca74da30dcca36a upstream. During unload process, the chip can encounter problem where a FW dump would be captured. For this case, the full reset sequ

[PATCH 4.14 00/21] 4.14.62-stable review

2018-08-07 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.14.62 release. There are 21 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 Thu Aug 9 17:23:22 UTC 2018. Anything receiv

[PATCH 4.14 05/21] genirq: Make force irq threading setup more robust

2018-08-07 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner commit d1f0301beef5efbfa1fe0f0edbea01863d5d upstream. The support of force threading interrupts which are set up with both a primary and a threaded handler wreckaged the se

[PATCH 4.14 01/21] scsi: qla2xxx: Fix unintialized List head crash

2018-08-07 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Quinn Tran commit e3dde080ebbdbb4bda8eee35d770714fee8c59ac upstream. In case of IOCB Queue full or system where memory is low and driver receives large number of RSCN storm, the stale sp point

[PATCH 4.14 02/21] scsi: qla2xxx: Fix NPIV deletion by calling wait_for_sess_deletion

2018-08-07 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Quinn Tran commit efa93f48fa9d423fda166bc3b6c0cbb09682492e upstream. Add wait for session deletion to finish before freeing an NPIV scsi host. Fixes: 726b85487067 ("qla2xxx: Add framework for

[PATCH 4.17 18/18] jfs: Fix inconsistency between memory allocation and ea_buf->max_size

2018-08-07 Thread Greg Kroah-Hartman
4.17-stable review patch. If anyone has any objections, please let me know. -- From: Shankara Pailoor commit 92d34134193e5b129dc24f8d79cb9196626e8d7a upstream. The code is assuming the buffer is max_size length, but we weren't allocating enough space for it. Signed-off-by: Sh

[PATCH 4.17 10/18] nohz: Fix missing tick reprogram when interrupting an inline softirq

2018-08-07 Thread Greg Kroah-Hartman
4.17-stable review patch. If anyone has any objections, please let me know. -- From: Frederic Weisbecker commit 0a0e0829f990120cef165bbb804237f400953ec2 upstream. The full nohz tick is reprogrammed in irq_exit() only if the exit is not in a nesting interrupt. This stands as an

[PATCH 4.17 14/18] Btrfs: fix file data corruption after cloning a range and fsync

2018-08-07 Thread Greg Kroah-Hartman
4.17-stable review patch. If anyone has any objections, please let me know. -- From: Filipe Manana commit bd3599a0e142cd73edd3b6801068ac3f48ac771a upstream. When we clone a range into a file we can end up dropping existing extent maps (or trimming them) and replacing them with

[PATCH 4.17 12/18] ring_buffer: tracing: Inherit the tracing setting to next ring buffer

2018-08-07 Thread Greg Kroah-Hartman
4.17-stable review patch. If anyone has any objections, please let me know. -- From: Masami Hiramatsu commit 73c8d8945505acdcbae137c2e00a1232e0be709f upstream. Maintain the tracing on/off setting of the ring_buffer when switching to the trace buffer snapshot. Taking a snapsho

[PATCH 4.17 15/18] Partially revert "block: fail op_is_write() requests to read-only partitions"

2018-08-07 Thread Greg Kroah-Hartman
4.17-stable review patch. If anyone has any objections, please let me know. -- From: Linus Torvalds commit a32e236eb93e62a0f692e79b7c3c9636689559b9 upstream. It turns out that commit 721c7fc701c7 ("block: fail op_is_write() requests to read-only partitions"), while obviously c

[PATCH 4.17 17/18] xfs: validate cached inodes are free when allocated

2018-08-07 Thread Greg Kroah-Hartman
4.17-stable review patch. If anyone has any objections, please let me know. -- From: Dave Chinner commit afca6c5b2595fc44383919fba740c194b0b76aff upstream. A recent fuzzed filesystem image cached random dcache corruption when the reproducer was run. This often showed up as pan

[PATCH 4.17 16/18] xfs: dont call xfs_da_shrink_inode with NULL bp

2018-08-07 Thread Greg Kroah-Hartman
4.17-stable review patch. If anyone has any objections, please let me know. -- From: Eric Sandeen commit bb3d48dcf86a97dc25fe9fc2c11938e19cb4399a upstream. xfs_attr3_leaf_create may have errored out before instantiating a buffer, for example if the blkno is out of range. In t

[PATCH 4.17 00/18] 4.17.14-stable review

2018-08-07 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.17.14 release. There are 18 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 Thu Aug 9 17:23:05 UTC 2018. Anything receiv

[PATCH 4.17 11/18] netlink: Dont shift on 64 for ngroups

2018-08-07 Thread Greg Kroah-Hartman
4.17-stable review patch. If anyone has any objections, please let me know. -- From: Dmitry Safonov commit 91874ecf32e41b5d86a4cb9d60e0bee50d828058 upstream. It's legal to have 64 groups for netlink_sock. As user-supplied nladdr->nl_groups is __u32, it's possible to subscribe

[PATCH 4.17 08/18] perf/x86/intel/uncore: Fix hardcoded index of Broadwell extra PCI devices

2018-08-07 Thread Greg Kroah-Hartman
4.17-stable review patch. If anyone has any objections, please let me know. -- From: Kan Liang commit 156c8b58ef5cfd97245928c95669fd4cb0f9c388 upstream. Masayoshi Mizuma reported that a warning message is shown while a CPU is hot-removed on Broadwell servers: WARNING: CPU:

[PATCH 4.17 07/18] genirq: Make force irq threading setup more robust

2018-08-07 Thread Greg Kroah-Hartman
4.17-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner commit d1f0301beef5efbfa1fe0f0edbea01863d5d upstream. The support of force threading interrupts which are set up with both a primary and a threaded handler wreckaged the se

[PATCH 4.17 09/18] nohz: Fix local_timer_softirq_pending()

2018-08-07 Thread Greg Kroah-Hartman
4.17-stable review patch. If anyone has any objections, please let me know. -- From: Anna-Maria Gleixner commit 80d20d35af1edd632a5e7a3b9c0ab7ceff92769e upstream. local_timer_softirq_pending() checks whether the timer softirq is pending with: local_softirq_pending() & TIMER_SO

[PATCH 4.17 04/18] scsi: qla2xxx: Fix ISP recovery on unload

2018-08-07 Thread Greg Kroah-Hartman
4.17-stable review patch. If anyone has any objections, please let me know. -- From: Quinn Tran commit b08abbd9f5996309f021684f9ca74da30dcca36a upstream. During unload process, the chip can encounter problem where a FW dump would be captured. For this case, the full reset sequ

[PATCH 4.17 05/18] scsi: qla2xxx: Return error when TMF returns

2018-08-07 Thread Greg Kroah-Hartman
4.17-stable review patch. If anyone has any objections, please let me know. -- From: Anil Gurumurthy commit b4146c4929ef61d5afca011474d59d0918a0cd82 upstream. Propagate the task management completion status properly to avoid unnecessary waits for commands to complete. Fixes:

[PATCH 4.17 06/18] jfs: Fix usercopy whitelist for inline inode data

2018-08-07 Thread Greg Kroah-Hartman
4.17-stable review patch. If anyone has any objections, please let me know. -- From: Kees Cook commit 961b33c244e5ba1543ae26270a1ba29f29c2db83 upstream. Bart Massey reported what turned out to be a usercopy whitelist false positive in JFS when symlink contents exceeded 128 byt

[PATCH 4.17 03/18] scsi: qla2xxx: Fix driver unload by shutting down chip

2018-08-07 Thread Greg Kroah-Hartman
4.17-stable review patch. If anyone has any objections, please let me know. -- From: Quinn Tran commit 45235022da9925b2b070c0139629233173e50089 upstream. Use chip shutdown at the start of unload to stop all DMA + traffic and bring down the laser. This prevents any link activit

[PATCH 4.17 02/18] scsi: qla2xxx: Fix NPIV deletion by calling wait_for_sess_deletion

2018-08-07 Thread Greg Kroah-Hartman
4.17-stable review patch. If anyone has any objections, please let me know. -- From: Quinn Tran commit efa93f48fa9d423fda166bc3b6c0cbb09682492e upstream. Add wait for session deletion to finish before freeing an NPIV scsi host. Fixes: 726b85487067 ("qla2xxx: Add framework for

[PATCH 4.17 01/18] scsi: qla2xxx: Fix unintialized List head crash

2018-08-07 Thread Greg Kroah-Hartman
4.17-stable review patch. If anyone has any objections, please let me know. -- From: Quinn Tran commit e3dde080ebbdbb4bda8eee35d770714fee8c59ac upstream. In case of IOCB Queue full or system where memory is low and driver receives large number of RSCN storm, the stale sp point

Re: [PATCH v2] proc: add percpu populated pages count to meminfo

2018-08-07 Thread Tejun Heo
Hello, Dennis. On Tue, Aug 07, 2018 at 11:47:23AM -0700, Dennis Zhou wrote: > From: "Dennis Zhou (Facebook)" > > Currently, percpu memory only exposes allocation and utilization > information via debugfs. This more or less is only really useful for > understanding the fragmentation and allocatio

Re: [PATCH 4/9] dt-bindings: reset: Add binding constants for Actions Semi S900 RMU

2018-08-07 Thread Rob Herring
On Sat, Jul 28, 2018 at 12:15:22AM +0530, Manivannan Sadhasivam wrote: > Add device tree binding constants for Actions Semi S900 SoC Reset > Management Unit (RMU). > > Signed-off-by: Manivannan Sadhasivam > --- > .../dt-bindings/reset/actions,s900-reset.h| 65 +++ > 1 file ch

Re: [PATCH 3/9] dt-bindings: reset: Add binding constants for Actions Semi S700 RMU

2018-08-07 Thread Rob Herring
On Sat, Jul 28, 2018 at 12:15:21AM +0530, Manivannan Sadhasivam wrote: > Add device tree binding constants for Actions Semi S700 SoC Reset > Management Unit (RMU). > > Signed-off-by: Manivannan Sadhasivam > --- > .../dt-bindings/reset/actions,s700-reset.h| 34 +++ > 1 file ch

Re: [PATCH 2/9] dt-bindings: clock: Add reset controller bindings for Actions Semi Owl SoCs

2018-08-07 Thread Rob Herring
On Sat, Jul 28, 2018 at 12:15:20AM +0530, Manivannan Sadhasivam wrote: > Add Reset Controller bindings to clock bindings for Actions Semi Owl > SoCs, S700 and S900. > > Signed-off-by: Manivannan Sadhasivam > --- > Documentation/devicetree/bindings/clock/actions,owl-cmu.txt | 2 ++ > 1 file chang

[PATCH v2] proc: add percpu populated pages count to meminfo

2018-08-07 Thread Dennis Zhou
From: "Dennis Zhou (Facebook)" Currently, percpu memory only exposes allocation and utilization information via debugfs. This more or less is only really useful for understanding the fragmentation and allocation information at a per-chunk level with a few global counters. This is also gated behin

Re: [PATCH 0/9] Add Reset Controller support for Actions Semi Owl SoCs

2018-08-07 Thread Rob Herring
On Mon, Jul 30, 2018 at 08:41:31PM +0530, Manivannan Sadhasivam wrote: > Hi Andreas, > > On Mon, Jul 30, 2018 at 12:26:07PM +0200, Andreas Färber wrote: > > Hi Mani, > > > > Am 27.07.2018 um 20:45 schrieb Manivannan Sadhasivam: > > > This patchset adds Reset Controller (RMU) support for Actions S

Re: [PATCH] x86/cpu: Rename Denverton and Gemini Lake

2018-08-07 Thread Andi Kleen
On Tue, Aug 07, 2018 at 07:48:51PM +0200, Peter Zijlstra wrote: > On Tue, Aug 07, 2018 at 10:35:42AM -0700, Dave Hansen wrote: > > On 08/07/2018 10:17 AM, kan.li...@linux.intel.com wrote: > > > Denverton and Gemini Lake are platform names and should not be used for > > > Processor Family stuff. The

Re: [PATCH] x86/cpu: Rename Denverton and Gemini Lake

2018-08-07 Thread Andi Kleen
On Tue, Aug 07, 2018 at 10:17:27AM -0700, kan.li...@linux.intel.com wrote: > From: Kan Liang > > Denverton and Gemini Lake are platform names and should not be used for > Processor Family stuff. The microarchitecture codename should be used. > > DENVERTON is Goldmont server SoC. Rename DENVERTON

Re: [PATCH] rtmutex: Drop pointless static qualifier in rt_mutex_adjust_prio_chain()

2018-08-07 Thread kbuild test robot
Hi Mao, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on tip/locking/core] [also build test WARNING on v4.18-rc8 next-20180807] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day

Re: [PATCH 2/3] x86/mm/pti: Don't clear permissions in pti_clone_pmd()

2018-08-07 Thread Dave Hansen
On 08/07/2018 03:24 AM, Joerg Roedel wrote: > The function sets the global-bit on cloned PMD entries, > which only makes sense when the permissions are identical > between the user and the kernel page-table. > > Further, only write-permissions are cleared for entry-text > and kernel-text sections,

Re: [PATCH] x86/pkeys: Explicitly treat PK #PF on kernel address as a bad area

2018-08-07 Thread Dave Hansen
On 08/07/2018 10:29 AM, Sean Christopherson wrote: > if (unlikely(fault_in_kernel_space(address))) { > + /* > + * We should never encounter a protection keys fault on a > + * kernel address as kernel address are always mapped with > + * _PAGE

Re: [PATCH] x86/cpu: Rename Denverton and Gemini Lake

2018-08-07 Thread Dave Hansen
On 08/07/2018 10:48 AM, Peter Zijlstra wrote: > On Tue, Aug 07, 2018 at 10:35:42AM -0700, Dave Hansen wrote: >> On 08/07/2018 10:17 AM, kan.li...@linux.intel.com wrote: >>> Denverton and Gemini Lake are platform names and should not be used for >>> Processor Family stuff. The microarchitecture code

Re: [PATCH] tracing: Partial revert of "tracing: Centralize preemptirq tracepoints and unify their usage"

2018-08-07 Thread Steven Rostedt
On Tue, 7 Aug 2018 12:35:08 +0200 Peter Zijlstra wrote: > On Mon, Aug 06, 2018 at 09:54:32PM -0400, Steven Rostedt wrote: > > > > [ Peter, you OK with this patch? It just makes lockdep call its helper > > functions directly like it did before. ] > > Yeah, I suppose :-) Can I add your Acked

Re: [PATCH v3 RESEND 2/2] tpm: add support for nonblocking operation

2018-08-07 Thread Jason Gunthorpe
On Mon, Aug 06, 2018 at 04:05:48PM -0700, James Bottomley wrote: > > @@ -118,25 +155,48 @@ ssize_t tpm_common_write(struct file *file, > > const char __user *buf, > >    * the char dev is held open. > >    */ > >   if (tpm_try_get_ops(priv->chip)) { > > - mutex_unlock(&priv->buffer

Re: [PATCH 4/4] remoteproc: qcom: q6v5-pil: Add PDC restart for modem on SDM845 SoCs

2018-08-07 Thread Rob Herring
On Fri, Jul 27, 2018 at 08:58:11PM +0530, Sibi Sankar wrote: > In the presence of a PDC block working with subsystem RSC, > assert/deassert PDC restart in modem start/stop path. > > Signed-off-by: Sibi Sankar > --- > .../bindings/remoteproc/qcom,q6v5.txt | 4 +++ Please split bindings t

Re: framebuffer corruption due to overlapping stp instructions on arm64

2018-08-07 Thread Mikulas Patocka
On Tue, 7 Aug 2018, Ard Biesheuvel wrote: > On 7 August 2018 at 19:39, Mikulas Patocka wrote: > > > > > > On Tue, 7 Aug 2018, Marcin Wojtas wrote: > > > >> Ard, Mikulas, > >> > >> After some self-caused setup issues I was able to run the test on my > >> MacchiatoBin with the kernel v4.18-rc8.

Re: [PATCH 1/4] dt-bindings: reset: Add PDC reset binding for SDM845 SoCs

2018-08-07 Thread Rob Herring
On Tue, Jul 31, 2018 at 06:27:24PM +0530, Sibi S wrote: > Hi Philipp, > Thanks for the review! > > On 07/31/2018 02:12 PM, Philipp Zabel wrote: > > Hi Sibi, > > > > On Fri, 2018-07-27 at 20:58 +0530, Sibi Sankar wrote: > > > Add SDM845 PDC (Power Domain Controller) reset controller binding > > >

[PATCH 0/6] arm64: add support for generic cpu vulnerabilities

2018-08-07 Thread Mian Yousaf Kaukab
GENERIC_CPU_VULNERABILITIES provide a common way to figure out if a system is affected by vulnerabilities like meltdown and other variants of spectre. This small series adds support for it in arm64. Thank you, Best regards, Yousaf Mian Yousaf Kaukab (6): arm64: kpti: move check for non-vulnera

[PATCH 3/6] arm64: add sysfs vulnerability show for spectre v1

2018-08-07 Thread Mian Yousaf Kaukab
Hard-coded since patches are merged and there are no configuration options. Signed-off-by: Mian Yousaf Kaukab --- arch/arm64/kernel/cpu_errata.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/kernel/cpu_errata.c b/arch/arm64/kernel/cpu_errata.c index 996edb4e18ad..92616431a

[PATCH 4/6] arm64: add sysfs vulnerability show for spectre v2

2018-08-07 Thread Mian Yousaf Kaukab
Only report mitigation present if hardening callback has been successfully installed. Signed-off-by: Mian Yousaf Kaukab --- arch/arm64/kernel/cpu_errata.c | 34 +- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/arch/arm64/kernel/cpu_errata.c b/arch/

[PATCH 2/6] arm64: add sysfs vulnerability show for meltdown

2018-08-07 Thread Mian Yousaf Kaukab
Checking CSV3 support directly in case CONFIG_UNMAP_KERNEL_AT_EL0 is not enabled. Signed-off-by: Mian Yousaf Kaukab --- arch/arm64/kernel/cpu_errata.c | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm64/kernel/cpu_errata.c b/arch/arm64/kernel/cpu_errata.c ind

[PATCH 5/6] arm64: add sysfs vulnerability show for speculative store bypass

2018-08-07 Thread Mian Yousaf Kaukab
Return status based no ssbd_state. Return string "Unknown" in case CONFIG_ARM64_SSBD is disabled or arch workaround2 is not available in the firmware. Signed-off-by: Mian Yousaf Kaukab --- arch/arm64/kernel/cpu_errata.c | 20 1 file changed, 20 insertions(+) diff --git a/ar

[PATCH 6/6] arm64: enable generic CPU vulnerabilites support

2018-08-07 Thread Mian Yousaf Kaukab
Enable CPU vulnerabilty show functions for spectre_v1, spectre_v2, meltdown and store-bypass. Signed-off-by: Mian Yousaf Kaukab --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 0dec01a0c81c..ffd97bc0f5d5 100644 --- a/arch/ar

[PATCH 1/6] arm64: kpti: move check for non-vulnerable CPUs to a function

2018-08-07 Thread Mian Yousaf Kaukab
Prepare to call it in generic cpu vulnerabilities support. Signed-off-by: Mian Yousaf Kaukab --- arch/arm64/include/asm/cpufeature.h | 16 arch/arm64/kernel/cpufeature.c | 9 + 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/arch/arm64/include/asm/c

Re: [PATCH] parisc: prefer _THIS_IP_ and _RET_IP_ statement expressions

2018-08-07 Thread Nick Desaulniers
On Fri, Aug 3, 2018 at 3:34 PM Helge Deller wrote: > > On 03.08.2018 22:33, Nick Desaulniers wrote: > > On Fri, Aug 3, 2018 at 12:09 PM John David Anglin > > wrote: > >> > >> On 2018-08-03 2:11 PM, Nick Desaulniers wrote: > >>> But the kernel uses the generic_THIS_IP_ *everywhere*, not parisc's

Re: [PATCH] dt-bindings: Add Y Soft Corporation vendor prefix

2018-08-07 Thread Rob Herring
On Fri, Jul 27, 2018 at 02:15:15PM +0200, Michal Vokáč wrote: > Y Soft is headquartered in the Czech Republic and it is a worldwide > provider of enterprise office solutions for print management. > > Signed-off-by: Michal Vokáč > --- > I work towards upstreaming support for our custom i.MX6 based

Re: framebuffer corruption due to overlapping stp instructions on arm64

2018-08-07 Thread Ard Biesheuvel
On 7 August 2018 at 19:39, Mikulas Patocka wrote: > > > On Tue, 7 Aug 2018, Marcin Wojtas wrote: > >> Ard, Mikulas, >> >> After some self-caused setup issues I was able to run the test on my >> MacchiatoBin with the kernel v4.18-rc8. It's been running for 1h+ now, >> loading the CPU to 100% and no

Re: [RFC v6 PATCH 1/2] mm: refactor do_munmap() to extract the common part

2018-08-07 Thread Yang Shi
On 8/7/18 7:59 AM, Vlastimil Babka wrote: On 07/26/2018 08:10 PM, Yang Shi wrote: Introduces three new helper functions: * munmap_addr_sanity() * munmap_lookup_vma() * munmap_mlock_vma() They will be used by do_munmap() and the new do_munmap with zapping large mapping early in the l

Re: [PATCH] phy: qcom-qmp: Fix dts bindings to reflect reality

2018-08-07 Thread Kees Cook
On Fri, Jul 20, 2018 at 10:54 AM, Doug Anderson wrote: > [...] Apologies for this noise. I have nothing to add to this specific conversation. :) Doug and I (via our @chromium.org accounts) have had DKIM issues. This is a test to see if it really has been solved. (The "sender" field was being inc

Re: [PATCH v3 3/3] dt-bindings: mfd: max8998: Add charger subnode binding

2018-08-07 Thread Rob Herring
On Tue, Jul 17, 2018 at 06:05:09PM +0200, Paweł Chmiel wrote: > This patch adds devicetree bindings documentation for > battery charging controller as the subnode of MAX8998 PMIC. > > Signed-off-by: Paweł Chmiel > --- > Changes from v2: > - Make charge-restart-level-microvolt optional. > - Ma

Re: [PATCH v3 RESEND 2/2] tpm: add support for nonblocking operation

2018-08-07 Thread Tadeusz Struk
On 08/06/2018 05:35 PM, James Bottomley wrote: > On Mon, 2018-08-06 at 17:09 -0700, Tadeusz Struk wrote: >> On 08/06/2018 04:05 PM, James Bottomley wrote: >>> For an async interface, shouldn't I be able to queue an >>> arbitrary number of commands without blocking? >> >> That was the approach in th

[PATCH v10 2/3] Bluetooth: mediatek: Add protocol support for MediaTek serial devices

2018-08-07 Thread sean.wang
From: Sean Wang This adds a driver based on serdev driver for the MediaTek serial protocol based on running H:4, which can enable the built-in Bluetooth device inside MT7622 SoC. Signed-off-by: Sean Wang Signed-off-by: Marcel Holtmann --- drivers/bluetooth/Kconfig | 11 + drivers/bluetoo

[PATCH v10 0/3] add support for Bluetooth on MT7622 SoC

2018-08-07 Thread sean.wang
From: Sean Wang v10 and changes since v9: - Add a fixup that is __be16 is required instead of dlen1 + dlen2 in STP header. - Align a few one-line comments style as they're made in v9 - Fix two warnings catched by checkpatch.pl WARNING:TYPO_SPELLING: 'specifc' may be misspelled - perh

[PATCH v10 1/3] dt-bindings: net: bluetooth: Add mediatek-bluetooth

2018-08-07 Thread sean.wang
From: Sean Wang Add binding document for a SoC built-in device using MediaTek protocol. Which could be found on MT7622 SoC or other similar MediaTek SoCs. Signed-off-by: Sean Wang Reviewed-by: Rob Herring Signed-off-by: Marcel Holtmann --- .../devicetree/bindings/net/mediatek-bluetooth.txt |

[PATCH v10 3/3] MAINTAINERS: add an entry for MediaTek Bluetooth driver

2018-08-07 Thread sean.wang
From: Sean Wang Add an entry for the MediaTek Bluetooth driver. Signed-off-by: Sean Wang Signed-off-by: Marcel Holtmann --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 0f2cce4..e983d9e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9

Re: [PATCH V2 1/3] dt-bindings: phy-qcom-ipq4019-usb: add binding document

2018-08-07 Thread Rob Herring
On Wed, Aug 01, 2018 at 12:49:39PM +0200, John Crispin wrote: > This patch adds the binding documentation for the HS/SS USB PHY found > inside Qualcomm Dakota SoCs. > > Cc: Rob Herring > Cc: devicet...@vger.kernel.org > Signed-off-by: John Crispin > --- > .../bindings/phy/phy-qcom-ipq4019-usb.t

Re: [PATCH 0/9] psi: pressure stall information for CPU, memory, and IO v3

2018-08-07 Thread Johannes Weiner
On Tue, Aug 07, 2018 at 01:50:09PM +0200, peter enderborg wrote: > On 08/01/2018 05:19 PM, Johannes Weiner wrote: > > > > A kernel with CONFIG_PSI=y will create a /proc/pressure directory with > > 3 files: cpu, memory, and io. If using cgroup2, cgroups will also have > > cpu.pressure, memory.pressu

Re: [PATCH] x86/cpu: Rename Denverton and Gemini Lake

2018-08-07 Thread Peter Zijlstra
On Tue, Aug 07, 2018 at 10:35:42AM -0700, Dave Hansen wrote: > On 08/07/2018 10:17 AM, kan.li...@linux.intel.com wrote: > > Denverton and Gemini Lake are platform names and should not be used for > > Processor Family stuff. The microarchitecture codename should be used. > > Why? > > Denverton is

Re: [PATCH v2 01/10] dt-bindings: clock: Add syscon support to Actions Semi Owl SoCs

2018-08-07 Thread Rob Herring
On Wed, Aug 01, 2018 at 09:09:06AM +0530, Manivannan Sadhasivam wrote: > Since the clock and reset management units are sharing the same memory > map, document the clock bindings to support System Controller. This is no reason to add child nodes. The existing node can be both a clock and reset pr

Re: [PATCH v3 4/6] i2c: designware: add MSCC Ocelot support

2018-08-07 Thread Rob Herring
On Mon, Aug 06, 2018 at 08:54:10PM +0200, Alexandre Belloni wrote: > The Microsemi Ocelot I2C controller is a designware IP. It also has a > second set of registers to allow tweaking SDA hold time and spike > filtering. > > Cc: Rob Herring > Reviewed-by: Andy Shevchenko > Signed-off-by: Alexandr

[RFC] vruntime updated incorrectly when rt_mutex boots prio?

2018-08-07 Thread Todd Kjos
This issue was discovered on a 4.9-based android device, but the relevant mainline code appears to be the same. The symptom is that over time the some workloads become sluggish resulting in missed frames or sluggishness. It appears to be the same issue described in http://lists.infradead.org/piperm

Re: framebuffer corruption due to overlapping stp instructions on arm64

2018-08-07 Thread Mikulas Patocka
On Tue, 7 Aug 2018, Marcin Wojtas wrote: > Ard, Mikulas, > > After some self-caused setup issues I was able to run the test on my > MacchiatoBin with the kernel v4.18-rc8. It's been running for 1h+ now, > loading the CPU to 100% and no single error event... > > I built the binary file with: >

Re: [PATCH] x86/cpu: Rename Denverton and Gemini Lake

2018-08-07 Thread Dave Hansen
On 08/07/2018 10:17 AM, kan.li...@linux.intel.com wrote: > Denverton and Gemini Lake are platform names and should not be used for > Processor Family stuff. The microarchitecture codename should be used. Why? Denverton is the platform. "Goldmont" is literally the microarchitecture, and you are s

Re: [PATCH RFC 0/2] KVM: s390: vsie: support VCPU requests

2018-08-07 Thread David Hildenbrand
On 07.08.2018 19:15, Pierre Morel wrote: > On 07/08/2018 14:51, David Hildenbrand wrote: >> While discussing AP changes, we discovered that we will have to force >> a CPU using the vSIE to regenerate/reload shadow data structures. For now, >> we have no mechanism for that. >> >> E.g. when clearing

Re: [PATCH] x86/cpu: Rename Denverton and Gemini Lake

2018-08-07 Thread Peter Zijlstra
On Tue, Aug 07, 2018 at 10:17:27AM -0700, kan.li...@linux.intel.com wrote: > From: Kan Liang > > Denverton and Gemini Lake are platform names and should not be used for > Processor Family stuff. The microarchitecture codename should be used. > > DENVERTON is Goldmont server SoC. Rename DENVERTON

Re: [PATCH 2/3] x86, perf: Add a separate Arch Perfmon v4 PMI handler

2018-08-07 Thread Peter Zijlstra
On Tue, Aug 07, 2018 at 11:29:54AM -0400, Liang, Kan wrote: > On 8/6/2018 2:35 PM, Peter Zijlstra wrote: > > On Mon, Aug 06, 2018 at 10:23:42AM -0700, kan.li...@linux.intel.com wrote: > > > @@ -2044,6 +2056,14 @@ static void intel_pmu_disable_event(struct > > > perf_event *event) > > > i

<    1   2   3   4   5   6   7   8   >