[RFC 10/10] kvm, x86: move guest FPU state into process local memory

2019-06-12 Thread Marius Hillenbrand
FPU registers contain guest data and must be protected from information leak vulnerabilities in the kernel. FPU register state for vCPUs are allocated from the globally-visible kernel heap. Change this to use process-local memory instead and thus prevent access (or prefetching) in any other contex

[RFC 09/10] kvm, vmx: move gprs to process local memory

2019-06-12 Thread Marius Hillenbrand
General-purpose registers (GPRs) contain guest data and must be protected from information leak vulnerabilities in the kernel. Move GPRs into process local memory and change the VMX and SVM world switch and related code accordingly. The VMX and SVM world switch are giant inline assembly code bloc

Re: [Patch v2] x86/cpu: Add Ice Lake NNPI to Intel family

2019-06-12 Thread Bhardwaj, Rajneesh
On 12-Jun-19 10:38 PM, Andy Shevchenko wrote: On Wed, Jun 12, 2019 at 09:33:30AM -0700, Dave Hansen wrote: On 6/12/19 9:29 AM, Andy Shevchenko wrote: What I'm talking is a consistency among suffixes. If there is a real abbreviation (NNPI) which anybody can google, There is and you can. :) G

[RFC 08/10] kvm, vmx: move register clearing out of assembly path

2019-06-12 Thread Marius Hillenbrand
From: Julian Stecklina Split the security related register clearing out of the large inline assembly VM entry path. This results in two slightly less complicated inline assembly statements, where it is clearer what each one does. Signed-off-by: Julian Stecklina [rebased to 4.20; note that the p

[RFC 07/10] kvm, vmx: move CR2 context switch out of assembly path

2019-06-12 Thread Marius Hillenbrand
From: Julian Stecklina The VM entry/exit path is a giant inline assembly statement. Simplify it by doing CR2 context switching in plain C. Move CR2 restore behind IBRS clearing, so we reduce the amount of code we execute with IBRS on. Using {read,write}_cr2() means KVM will use pv_mmu_ops instea

[RFC 06/10] kvm/x86: add support for storing vCPU state in process-local memory

2019-06-12 Thread Marius Hillenbrand
The hidden KVM state will both contain guest state that is specific to x86-64 as well as state specific to SVM or VMX, respectively. Thus, allocate the hidden state in the code paths specific to SVM and VMX. For the code that is shared between SVM and VMX, introduce a common struct for hidden guest

[RFC 05/10] mm: allocate/release physical pages for process-local memory

2019-06-12 Thread Marius Hillenbrand
Implement second half of kmalloc and kfree for process-local memory, which allocates physical pages, maps them into the kernel virtual address space of the current process, and removes them from the kernel's shared direct physical mapping. On kfree, the code performs that sequence in reverse, after

[RFC 02/10] x86/speculation, mm: add process local virtual memory region

2019-06-12 Thread Marius Hillenbrand
The Linux kernel has a global address space that is the same for any kernel code. This address space becomes a liability in a world with processor information leak vulnerabilities, such as L1TF. With the right cache load gadget, an attacker-controlled hyperthread pair can leak arbitrary data via L1

[RFC 04/10] mm: allocate virtual space for process-local memory

2019-06-12 Thread Marius Hillenbrand
Implement first half of kmalloc and kfree for process-local memory, which deals with allocating virtual address ranges in the process-local memory area. While the process-local mappings will be visible only in a single address space, the address of each allocation is still unique to aid in debuggi

[RFC 03/10] x86/mm, mm,kernel: add teardown for process-local memory to mm cleanup

2019-06-12 Thread Marius Hillenbrand
Process-local memory uses a dedicated pgd entry in kernel space and its own page table structure. Hook mm exit functions to cleanup those dedicated page tables. As a preparation, release any left-over process-local allocations in the address space. Signed-off-by: Marius Hillenbrand Cc: Alexander

[PATCH v2 1/1] PCI/IOV: Fix incorrect cfg_size for VF > 0

2019-06-12 Thread sathyanarayanan . kuppuswamy
From: Kuppuswamy Sathyanarayanan Commit 975bb8b4dc93 ("PCI/IOV: Use VF0 cached config space size for other VFs") calculates and caches the cfg_size for VF0 device before initializing the pcie_cap of the device which results in using incorrect cfg_size for all VF devices > 0. So set pcie_cap of th

Re: [PATCH] lib: debugobjects: no need to check return value of debugfs_create functions

2019-06-12 Thread Greg Kroah-Hartman
On Wed, Jun 12, 2019 at 12:58:19PM -0400, Joel Fernandes wrote: > On Wed, Jun 12, 2019 at 05:35:13PM +0200, Greg Kroah-Hartman wrote: > > When calling debugfs functions, there is no need to ever check the > > return value. The function can work or not, but the code logic should > > never do someth

Re: [PATCH net v2] net: ethtool: Allow matching on vlan DEI bit

2019-06-12 Thread David Miller
From: Maxime Chevallier Date: Wed, 12 Jun 2019 17:18:38 +0200 > Using ethtool, users can specify a classification action matching on the > full vlan tag, which includes the DEI bit (also previously called CFI). > > However, when converting the ethool_flow_spec to a flow_rule, we use > dissector

[PATCH] mtd: spi-nor: use 16-bit WRR command when QE is set on spansion flashes

2019-06-12 Thread Tudor.Ambarus
From: Tudor Ambarus SPI memory devices from different manufacturers have widely different configurations for Status, Control and Configuration registers. JEDEC 216C defines a new map for these common register bits and their functions, and describes how the individual bits may be accessed for a sp

[RFC 01/10] x86/mm/kaslr: refactor to use enum indices for regions

2019-06-12 Thread Marius Hillenbrand
The KASLR randomization code currently refers to specific regions, such as the vmalloc area, by literal indices into an array. When adding new regions, we have to be careful to also change all indices that may potentially change. Avoid that risk by introducing an enum used as indices. Signed-off-b

Re: [Patch v2] x86/cpu: Add Ice Lake NNPI to Intel family

2019-06-12 Thread Andy Shevchenko
On Wed, Jun 12, 2019 at 09:33:30AM -0700, Dave Hansen wrote: > On 6/12/19 9:29 AM, Andy Shevchenko wrote: > > What I'm talking is a consistency among suffixes. If there is a real > > abbreviation (NNPI) which anybody can google, > > There is and you can. :) Good, I have no objections. -- With

[RFC 00/10] Process-local memory allocations for hiding KVM secrets

2019-06-12 Thread Marius Hillenbrand
The Linux kernel has a global address space that is the same for any kernel code. This address space becomes a liability in a world with processor information leak vulnerabilities, such as L1TF. With the right cache load gadget, an attacker-controlled hyperthread pair can leak arbitrary data via L1

Re: [RESEND PATCH v1 1/5] of/platform: Speed up of_find_device_by_node()

2019-06-12 Thread Greg Kroah-Hartman
On Wed, Jun 12, 2019 at 10:53:09AM -0600, Rob Herring wrote: > On Wed, Jun 12, 2019 at 8:22 AM Greg Kroah-Hartman > wrote: > > > > On Wed, Jun 12, 2019 at 07:53:39AM -0600, Rob Herring wrote: > > > On Tue, Jun 11, 2019 at 3:52 PM Sandeep Patil wrote: > > > > > > > > On Tue, Jun 11, 2019 at 01:56:

Re: [PATCH v2 5/6] serial: uartps: Do not add a trailing semicolon to macro

2019-06-12 Thread Joe Perches
On Wed, 2019-06-12 at 13:14 +0200, Michal Simek wrote: > From: Nava kishore Manne > > This patch fixes this checkpatch warning: > WARNING: macros should not use a trailing semicolon > +#define to_cdns_uart(_nb) container_of(_nb, struct cdns_uart, \ > + clk_rate_change_nb); > diff --gi

Re: [RESEND PATCH v1 1/5] of/platform: Speed up of_find_device_by_node()

2019-06-12 Thread Frank Rowand
On 6/12/19 7:21 AM, Greg Kroah-Hartman wrote: > On Wed, Jun 12, 2019 at 07:53:39AM -0600, Rob Herring wrote: >> On Tue, Jun 11, 2019 at 3:52 PM Sandeep Patil wrote: >>> >>> On Tue, Jun 11, 2019 at 01:56:25PM -0700, 'Saravana Kannan' via kernel-team >>> wrote: On Tue, Jun 11, 2019 at 8:18 AM

Re: [PATCH v6 2/3] fdt: add support for rng-seed

2019-06-12 Thread Rob Herring
On Tue, Jun 11, 2019 at 10:34 PM Hsin-Yi Wang wrote: > > Introducing a chosen node, rng-seed, which is an entropy that can be > passed to kernel called very early to increase initial device > randomness. Bootloader should provide this entropy and the value is > read from /chosen/rng-seed in DT. >

[tip:x86/urgent] x86/kgdb: Return 0 from kgdb_arch_set_breakpoint()

2019-06-12 Thread tip-bot for Matt Mullins
Commit-ID: 71ab8323cc357c68985a2d6fc6cfc22b1dbbc1c3 Gitweb: https://git.kernel.org/tip/71ab8323cc357c68985a2d6fc6cfc22b1dbbc1c3 Author: Matt Mullins AuthorDate: Fri, 31 May 2019 12:47:54 -0700 Committer: Borislav Petkov CommitDate: Wed, 12 Jun 2019 18:52:44 +0200 x86/kgdb: Return 0 fro

Re: [RFC PATCH] binfmt_elf: Protect mm_struct access with mmap_sem

2019-06-12 Thread Matthew Wilcox
On Wed, Jun 12, 2019 at 04:28:11PM +0200, Michal Koutný wrote: > - /* N.B. passed_fileno might not be initialized? */ > + Why did you delete this comment?

Re: [PATCH next] of/fdt: Fix defined but not used compiler warning

2019-06-12 Thread Rob Herring
On Wed, Jun 12, 2019 at 10:45 AM Frank Rowand wrote: > > Hi Kefeng, > > If Rob agrees, I'd like to see one more change in this patch. > > Since the only caller of of_fdt_match() is of_flat_dt_match(), > can you move the body of of_fdt_match() into of_flat_dt_match() > and eliminate of_fdt_match()

Re: INFO: trying to register non-static key in del_timer_sync (2)

2019-06-12 Thread syzbot
Hello, syzbot has tested the proposed patch and the reproducer did not trigger crash: Reported-and-tested-by: syzbot+dc4127f950da51639...@syzkaller.appspotmail.com Tested on: commit: 69bbe8c7 usb-fuzzer: main usb gadget fuzzer driver git tree: https://github.com/google/kasa

Re: [PATCH] lib: debugobjects: no need to check return value of debugfs_create functions

2019-06-12 Thread Joel Fernandes
On Wed, Jun 12, 2019 at 05:35:13PM +0200, Greg Kroah-Hartman wrote: > When calling debugfs functions, there is no need to ever check the > return value. The function can work or not, but the code logic should > never do something different based on this. > > Cc: Qian Cai > Cc: Thomas Gleixner >

Re: [PATCH] linux-next: DOC: RDS: Fix a typo in rds.txt

2019-06-12 Thread David Miller
From: Masanari Iida Date: Wed, 12 Jun 2019 21:29:34 +0900 > This patch fixes a spelling typo in rds.txt > > Signed-off-by: Masanari Iida Applied.

Re: [PATCH v2 3/6] serial: uartps: Fix multiple line dereference

2019-06-12 Thread Joe Perches
On Wed, 2019-06-12 at 13:14 +0200, Michal Simek wrote: > From: Nava kishore Manne > > Trivial patch which fixes this checkpatch warning: > WARNING: Avoid multiple line dereference - prefer 'port->state->xmit.tail' > + port->state->xmit.buf[port->state->xmit. > +

Re: [PATCH v2 2/2] dt-bindings: net: wiznet: add w5x00 support

2019-06-12 Thread David Miller
From: Nicolas Saenz Julienne Date: Wed, 12 Jun 2019 14:25:27 +0200 > Add bindings for Wiznet's w5x00 series of SPI interfaced Ethernet chips. > > Based on the bindings for microchip,enc28j60. > > Signed-off-by: Nicolas Saenz Julienne Applied to net-next.

Re: [RESEND PATCH v1 1/5] of/platform: Speed up of_find_device_by_node()

2019-06-12 Thread Rob Herring
On Wed, Jun 12, 2019 at 8:22 AM Greg Kroah-Hartman wrote: > > On Wed, Jun 12, 2019 at 07:53:39AM -0600, Rob Herring wrote: > > On Tue, Jun 11, 2019 at 3:52 PM Sandeep Patil wrote: > > > > > > On Tue, Jun 11, 2019 at 01:56:25PM -0700, 'Saravana Kannan' via > > > kernel-team wrote: > > > > On Tue,

Re: [PATCH v2] drivers: regulator: 88pm800: fix warning same module names

2019-06-12 Thread Mark Brown
On Wed, Jun 12, 2019 at 04:14:38PM +0200, Anders Roxell wrote: > On Wed, 12 Jun 2019 at 14:21, Mark Brown wrote: > > Please use subject lines matching the style for the subsystem. This > > makes it easier for people to identify relevant patches. > I should have payed more attention, sorry. > D

Re: [PATCH v2 1/2] net: ethernet: wiznet: w5X00 add device tree support

2019-06-12 Thread Nicolas Saenz Julienne
On Wed, 2019-06-12 at 09:52 -0700, David Miller wrote: > From: Nicolas Saenz Julienne > Date: Wed, 12 Jun 2019 14:25:25 +0200 > > > The w5X00 chip provides an SPI to Ethernet inteface. This patch allows > > platform devices to be defined through the device tree. > > > > Signed-off-by: Nicolas Sa

Re: [PATCH v2 1/2] net: ethernet: wiznet: w5X00 add device tree support

2019-06-12 Thread David Miller
From: Nicolas Saenz Julienne Date: Wed, 12 Jun 2019 14:25:25 +0200 > The w5X00 chip provides an SPI to Ethernet inteface. This patch allows > platform devices to be defined through the device tree. > > Signed-off-by: Nicolas Saenz Julienne Applied to net-next.

Re: [PATCH v3 1/3] thermal: sun8i: add thermal driver for h6

2019-06-12 Thread Frank Lee
> If you have a git tree I'll be happy to contribute A64 support. IIRC > it was quite similar to H3. I built a ths branch and I will do some work later. https://github.com/TinyWindzz/linux/tree/ths

Re: [PATCH repost 0/5] Repost CAN and CANFD dt-bindings

2019-06-12 Thread David Miller
From: Simon Horman Date: Wed, 12 Jun 2019 14:20:20 +0200 > are you comfortable with me taking these patches > through the renesas tree? Or perhaps should they be reposted > to you for inclusion in net-next? > > They have been stuck for a long time now. They can go through the renesas tree, no p

Re: [PATCH] mtd: spi-nor: use 16-bit WRR command when QE is set on spansion flashes

2019-06-12 Thread Vignesh Raghavendra
Hi, On 10-Jun-19 11:54 AM, tudor.amba...@microchip.com wrote: > From: Tudor Ambarus > > SPI memory devices from different manufacturers have widely > different configurations for Status, Control and Configuration > registers. JEDEC 216C defines a new map for these common register > bits and thei

Re: [RESEND PATCH v1 1/5] of/platform: Speed up of_find_device_by_node()

2019-06-12 Thread Frank Rowand
On 6/12/19 9:07 AM, Frank Rowand wrote: > On 6/12/19 6:53 AM, Rob Herring wrote: >> On Tue, Jun 11, 2019 at 3:52 PM Sandeep Patil wrote: >>> >>> On Tue, Jun 11, 2019 at 01:56:25PM -0700, 'Saravana Kannan' via kernel-team >>> wrote: On Tue, Jun 11, 2019 at 8:18 AM Frank Rowand wrote: >

Re: [PATCH 6/6] dma: qcom: hidma: no need to check return value of debugfs_create functions

2019-06-12 Thread Greg Kroah-Hartman
On Wed, Jun 12, 2019 at 12:17:31PM -0400, Sinan Kaya wrote: > On 6/12/2019 11:39 AM, Greg Kroah-Hartman wrote: > >> Interesting. Wouldn't debugfs_create_file() blow up if dir is NULL > >> for some reason? > > It will create a file in the root of debugfs. But how will that happen? > > debugfs_creat

Re: [PATCH next] of/fdt: Fix defined but not used compiler warning

2019-06-12 Thread Frank Rowand
Hi Kefeng, If Rob agrees, I'd like to see one more change in this patch. Since the only caller of of_fdt_match() is of_flat_dt_match(), can you move the body of of_fdt_match() into of_flat_dt_match() and eliminate of_fdt_match()? (Noting that of_flat_dt_match() consists only of the call to of_f

Re: [PATCH] x86: mce: no need to check return value of debugfs_create functions

2019-06-12 Thread Greg Kroah-Hartman
On Wed, Jun 12, 2019 at 05:47:30PM +0200, Borislav Petkov wrote: > On Wed, Jun 12, 2019 at 05:41:22PM +0200, Greg Kroah-Hartman wrote: > > On Wed, Jun 12, 2019 at 05:18:56PM +0200, Borislav Petkov wrote: > > > On Wed, Jun 12, 2019 at 05:15:31PM +0200, Greg Kroah-Hartman wrote: > > > > When calling

Re: [PATCH net] mpls: fix af_mpls dependencies for real

2019-06-12 Thread David Miller
From: Matteo Croce Date: Wed, 12 Jun 2019 11:50:37 +0200 > Randy reported that selecting MPLS_ROUTING without PROC_FS breaks > the build, because since commit c1a9d65954c6 ("mpls: fix af_mpls > dependencies"), MPLS_ROUTING selects PROC_SYSCTL, but Kconfig's select > doesn't recursively handle dep

[PATCH] selftests/kselftest/runner.sh: Add 30 second timeout per test

2019-06-12 Thread Anders Roxell
Commit a745f7af3cbd ("selftests/harness: Add 30 second timeout per test") solves that binary tests doesn't hang forever. However, scripts can still hang forever, this adds an timeout to each test script run. This assumes that an individual test doesn't take longer than 30 seconds. Signed-off-by: A

Re: [PATCH] platform/chrome: Expose resume result via sysfs

2019-06-12 Thread Enric Balletbo i Serra
Hi Evan, On 7/6/19 23:05, Evan Green wrote: > For ECs that support it, the EC returns the number of slp_s0 > transitions and whether or not there was a timeout in the resume > response. Expose the last resume result to usermode via sysfs so > that usermode can detect and report S0ix timeouts. Loo

[PATCH 3/3] tracing: Add 2 new funcs. for kernel access to Ftrace instances.

2019-06-12 Thread Divya Indi
Adding 2 new functions - 1) trace_array_lookup : Look up and return a trace array, given its name. 2) trace_array_set_clr_event : Enable/disable event recording to the given trace array. Newly added functions trace_array_lookup and trace_array_create also need to increment the reference counter as

[PATCH 2/3] tracing: Adding additional NULL checks.

2019-06-12 Thread Divya Indi
commit f45d1225adb0 ("tracing: Kernel access to Ftrace instances") exported certain functions providing access to Ftrace instances from other kernel components. Adding some additional NULL checks to ensure safe usage by the users. Signed-off-by: Divya Indi --- kernel/trace/trace.c| 3 +++

[PATCH 1/3] tracing: Relevant changes for kernel access to Ftrace instances.

2019-06-12 Thread Divya Indi
For commit f45d1225adb0 ("tracing: Kernel access to Ftrace instances") Adding the following changes to ensure other kernel components can use these functions - 1) Remove static keyword for newly exported fn - ftrace_set_clr_event. 2) Add the req functions to header file include/linux/trace_events.h

[RFC][v2] Kernel Access to Ftrace Instances.

2019-06-12 Thread Divya Indi
Hi, Please review the patches that follow - [PATCH 1/3] tracing: Relevant changes for kernel access to Ftrace instances. [PATCH 2/3] tracing: Adding additional NULL checks. [PATCH 3/3] tracing: Add 2 new funcs. for kernel access to Ftrace instances. This is v2 for the series with changes made to

Re: [RESEND, PATCH v4 0/2] cpufreq: Add sunxi nvmem based CPU scaling driver

2019-06-12 Thread Frank Lee
@Rob: Could you please review it?

Re: [RFC PATCH v3 00/16] Core scheduling v3

2019-06-12 Thread Julien Desfossez
After reading more traces and trying to understand why only untagged tasks are starving when there are cpu-intensive tasks running on the same set of CPUs, we noticed a difference in behavior in ‘pick_task’. In the case where ‘core_cookie’ is 0, we are supposed to only prefer the tagged task if it’

Re: [Patch v2] x86/cpu: Add Ice Lake NNPI to Intel family

2019-06-12 Thread Dave Hansen
On 6/12/19 9:29 AM, Andy Shevchenko wrote: > What I'm talking is a consistency among suffixes. If there is a real > abbreviation (NNPI) which anybody can google, There is and you can. :)

Re: [PATCH V6 4/6] x86/alternative: Batch of patch operations

2019-06-12 Thread Daniel Bristot de Oliveira
On 12/06/2019 16:52, Peter Zijlstra wrote: > On Wed, Jun 12, 2019 at 11:57:29AM +0200, Daniel Bristot de Oliveira wrote: > >> When a static key has more than one entry, these steps are called once for >> each entry. The number of IPIs then is linear with regard to the number 'n' >> of >> entries

Re: [PATCH v5] selinux: fix a missing-check bug in selinux_sb_eat_lsm_opts()

2019-06-12 Thread Paul Moore
On Wed, Jun 12, 2019 at 9:55 AM Gen Zhang wrote: > > In selinux_sb_eat_lsm_opts(), 'arg' is allocated by kmemdup_nul(). It > returns NULL when fails. So 'arg' should be checked. And 'mnt_opts' > should be freed when error. > > Signed-off-by: Gen Zhang > Fixes: 99dbbb593fe6 ("selinux: rewrite seli

Re: [PATCH v4] PCI: xilinx-nwl: Fix Multi MSI data programming

2019-06-12 Thread Lorenzo Pieralisi
On Wed, Jun 12, 2019 at 02:01:56PM +0100, Marc Zyngier wrote: > On Wed, 12 Jun 2019 11:17:59 +0100, > Bharat Kumar Gogada wrote: > > > > The current Multi MSI data programming fails if multiple end points > > requesting MSI and multi MSI are connected with switch, i.e the current > > multi MSI da

Re: [RESEND PATCH v3] cpuset: restore sanity to cpuset_cpus_allowed_fallback()

2019-06-12 Thread Waiman Long
On 6/12/19 11:50 AM, Joel Savitz wrote: > In the case that a process is constrained by taskset(1) (i.e. > sched_setaffinity(2)) to a subset of available cpus, and all of those are > subsequently offlined, the scheduler will set tsk->cpus_allowed to > the current value of task_cs(tsk)->effective_cpu

Re: [PATCH net v2] tcp: avoid creating multiple req socks with the same tuples

2019-06-12 Thread Eric Dumazet
On Tue, Jun 11, 2019 at 8:49 PM Mao Wenan wrote: > > There is one issue about bonding mode BOND_MODE_BROADCAST, and > two slaves with diffierent affinity, so packets will be handled > by different cpu. These are two pre-conditions in this case. > > When two slaves receive the same syn packets at t

Re: [Patch v2] x86/cpu: Add Ice Lake NNPI to Intel family

2019-06-12 Thread Andy Shevchenko
On Wed, Jun 12, 2019 at 07:51:26AM -0700, Dave Hansen wrote: > On 6/12/19 2:52 AM, Andy Shevchenko wrote: > >> #define INTEL_FAM6_ICELAKE_MOBILE 0x7E > >> +#define INTEL_FAM6_ICELAKE_NNPI 0x9D > > What "I" stands for? > > > > For me sounds like it's redundant here or something like NNP_

[RESEND, PATCH v4 1/2] cpufreq: Add sun50i nvmem based CPU scaling driver

2019-06-12 Thread Yangtao Li
For some SoCs, the CPU frequency subset and voltage value of each OPP varies based on the silicon variant in use. The sun50i-cpufreq-nvmem driver reads the efuse value from the SoC to provide the OPP framework with required information. Signed-off-by: Yangtao Li Acked-by: Maxime Ripard --- MAIN

[RESEND, PATCH v4 0/2] cpufreq: Add sunxi nvmem based CPU scaling driver

2019-06-12 Thread Yangtao Li
Add sunxi nvmem based CPU scaling driver, refers to qcom-cpufreq-kryo. Yangtao Li (2): cpufreq: Add sun50i nvmem based CPU scaling driver dt-bindings: cpufreq: Document allwinner,sun50i-h6-operating-points .../bindings/opp/sun50i-nvmem-cpufreq.txt | 167 + MAINTAINERS

[RESEND, PATCH v4 2/2] dt-bindings: cpufreq: Document allwinner,sun50i-h6-operating-points

2019-06-12 Thread Yangtao Li
Allwinner Process Voltage Scaling Tables defines the voltage and frequency value based on the speedbin blown in the efuse combination. The sunxi-cpufreq-nvmem driver reads the efuse value from the SoC to provide the OPP framework with required information. This is used to determine the voltage and

Re: [PATCH] linux-next: DOC: RDS: Fix a typo in rds.txt

2019-06-12 Thread santosh . shilimkar
On 6/12/19 5:29 AM, Masanari Iida wrote: This patch fixes a spelling typo in rds.txt Signed-off-by: Masanari Iida --- Documentation/networking/rds.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/networking/rds.txt b/Documentation/networking/rds.txt index

Re: [PATCH] selftests/net: skip psock_tpacket test if KALLSYMS was not enabled

2019-06-12 Thread David Miller
From: Po-Hsu Lin Date: Wed, 12 Jun 2019 14:47:52 +0800 > The psock_tpacket test will need to access /proc/kallsyms, this would > require the kernel config CONFIG_KALLSYMS to be enabled first. > > Check the file existence to determine if we can run this test. > > Signed-off-by: Po-Hsu Lin Plea

Re: [PATCH net v2] tcp: avoid creating multiple req socks with the same tuples

2019-06-12 Thread David Miller
From: Mao Wenan Date: Wed, 12 Jun 2019 11:57:15 +0800 > diff --git a/net/ipv4/inet_hashtables.c b/net/ipv4/inet_hashtables.c > index c4503073248b..b6a1b5334565 100644 > --- a/net/ipv4/inet_hashtables.c > +++ b/net/ipv4/inet_hashtables.c > @@ -477,6 +477,7 @@ bool inet_ehash_insert(struct sock *sk

Re: [PATCHv5 18/20] PCI: mobiveil: Disable IB and OB windows set by bootloader

2019-06-12 Thread Lorenzo Pieralisi
On Fri, Apr 12, 2019 at 08:37:00AM +, Z.q. Hou wrote: > From: Hou Zhiqiang > > Disable all inbound and outbound windows before set up the windows > in kernel, in case transactions match the window set by bootloader. There must be no PCI transactions ongoing at bootloader<->OS handover. The

Re: [PATCH] phy: qcom-qmp: Correct READY_STATUS poll break condition

2019-06-12 Thread Marc Gonzalez
On 05/06/2019 01:24, Bjorn Andersson wrote: > After issuing a PHY_START request to the QMP, the hardware documentation > states that the software should wait for the PCS_READY_STATUS to become > 1. > > With the introduction of c9b589791fc1 ("phy: qcom: Utilize UFS reset > controller") an addition

Re: bcachefs status update (it's done cooking; let's get this sucker merged)

2019-06-12 Thread Kent Overstreet
On Tue, Jun 11, 2019 at 02:33:36PM +1000, Dave Chinner wrote: > I just recently said this with reference to the range lock stuff I'm > working on in the background: > > FWIW, it's to avoid problems with stupid userspace stuff > that nobody really should be doing that I want range locks

Re: [PATCH v3 1/4] KVM: LAPIC: Make lapic timer unpinned when timer is injected by pi

2019-06-12 Thread Marcelo Tosatti
On Wed, Jun 12, 2019 at 08:45:10AM +0800, Wanpeng Li wrote: > On Wed, 12 Jun 2019 at 04:39, Marcelo Tosatti wrote: > > > > On Tue, Jun 11, 2019 at 08:17:06PM +0800, Wanpeng Li wrote: > > > From: Wanpeng Li > > > > > > Make lapic timer unpinned when timer is injected by posted-interrupt, > > > the

Re: msm8996: qcom-qmp: apq8096-db820c fails to boot, reset back to fastboot and locks up

2019-06-12 Thread Niklas Cassel
On Wed, Jun 12, 2019 at 04:09:11PM +0200, Paolo Pisati wrote: > On Wed, Jun 12, 2019 at 03:17:35PM +0200, Niklas Cassel wrote: > > > diff --git a/drivers/phy/qualcomm/phy-qcom-qmp.c > > > b/drivers/phy/qualcomm/phy-qcom-qmp.c > > > index cd91b4179b10..22352e3b0ec5 100644 > > > --- a/drivers/phy/qu

[PATCH v3] media: i2c: fix warning same module names

2019-06-12 Thread Anders Roxell
When building with CONFIG_VIDEO_ADV7511 and CONFIG_DRM_I2C_ADV7511 enabled as loadable modules, we see the following warning: warning: same module names found: drivers/gpu/drm/bridge/adv7511/adv7511.ko drivers/media/i2c/adv7511.ko Rework so that the file is named adv7511-v4l2.c. Signed-off-b

Re: [PATCH] Remove myself as qcom maintainer

2019-06-12 Thread Andy Gross
On Wed, Jun 12, 2019 at 11:12 AM David Brown wrote: > > I no longer regularly work on this platform, and only have a few > increasingly outdated boards. Andy has primarily been doing the > maintenance. > > Signed-off-by: David Brown > --- > Resending this, hopefully with text=flowed not set in t

Re: [PATCH 6/6] dma: qcom: hidma: no need to check return value of debugfs_create functions

2019-06-12 Thread Sinan Kaya
On 6/12/2019 11:39 AM, Greg Kroah-Hartman wrote: >> Interesting. Wouldn't debugfs_create_file() blow up if dir is NULL >> for some reason? > It will create a file in the root of debugfs. But how will that happen? > debugfs_create_dir() can not return NULL. I see. > >> +debugfs_creat

Re: [PATCH v4] selinux: fix a missing-check bug in selinux_add_mnt_opt( )

2019-06-12 Thread Paul Moore
On Wed, Jun 12, 2019 at 9:28 AM Gen Zhang wrote: > In selinux_add_mnt_opt(), 'val' is allocated by kmemdup_nul(). It returns > NULL when fails. So 'val' should be checked. And 'mnt_opts' should be > freed when error. > > Signed-off-by: Gen Zhang > Fixes: 757cbe597fe8 ("LSM: new method: ->sb_add_m

Re: [PATCH bpf-next v5 1/4] bpf: sock ops: add netns ino and dev in bpf context

2019-06-12 Thread Daniel Borkmann
On 06/07/2019 04:11 PM, Iago López Galeiras wrote: > From: Alban Crequy > > sockops programs can now access the network namespace inode and device > via (struct bpf_sock_ops)->netns_ino and ->netns_dev. This can be useful > to apply different policies on different network namespaces. > > In the

Re: [EXT] INFO: trying to register non-static key in del_timer_sync (2)

2019-06-12 Thread Andrey Konovalov
On Wed, Jun 12, 2019 at 6:03 PM Ganapathi Bhat wrote: > > Hi Dmitry, > > We have a patch to fix this: https://patchwork.kernel.org/patch/10990275/ Hi Ganapathi, Great, thanks for working on this! We can ask syzbot to test the fix: #syz test: https://github.com/google/kasan.git usb-fuzzer Than

Re: [PATCH] Remove myself as qcom maintainer

2019-06-12 Thread David Brown
I no longer regularly work on this platform, and only have a few increasingly outdated boards. Andy has primarily been doing the maintenance. Signed-off-by: David Brown --- Resending this, hopefully with text=flowed not set in the email headers. MAINTAINERS | 1 - 1 file changed, 1 deletion(-)

Re: [RESEND PATCH v1 1/5] of/platform: Speed up of_find_device_by_node()

2019-06-12 Thread Frank Rowand
On 6/12/19 6:53 AM, Rob Herring wrote: > On Tue, Jun 11, 2019 at 3:52 PM Sandeep Patil wrote: >> >> On Tue, Jun 11, 2019 at 01:56:25PM -0700, 'Saravana Kannan' via kernel-team >> wrote: >>> On Tue, Jun 11, 2019 at 8:18 AM Frank Rowand wrote: Hi Saravana, On 6/10/19 10:36 AM,

Re: [RFC PATCH v3 00/16] Core scheduling v3

2019-06-12 Thread Julien Desfossez
> The data on my side looks good with CORESCHED_STALL_FIX = true. Thank you for testing this fix, I'm glad it works for this use-case as well. We will be posting another (simpler) version today, stay tuned :-) Julien

RE: [EXT] INFO: trying to register non-static key in del_timer_sync (2)

2019-06-12 Thread Ganapathi Bhat
Hi Dmitry, We have a patch to fix this: https://patchwork.kernel.org/patch/10990275/ Regards, Ganapathi

Re: [RESEND PATCH v3] cpuset: restore sanity to cpuset_cpus_allowed_fallback()

2019-06-12 Thread Tejun Heo
On Wed, Jun 12, 2019 at 11:50:48AM -0400, Joel Savitz wrote: > In the case that a process is constrained by taskset(1) (i.e. > sched_setaffinity(2)) to a subset of available cpus, and all of those are > subsequently offlined, the scheduler will set tsk->cpus_allowed to > the current value of task_c

Re: [PATCH v2 1/6] clocksource/drivers/tegra: Restore timer rate on Tegra210

2019-06-12 Thread Dmitry Osipenko
12.06.2019 11:30, Jon Hunter пишет: > > On 10/06/2019 17:43, Dmitry Osipenko wrote: >> The clocksource rate is initialized only for the first per-CPU clocksource >> and then that rate shall be replicated for the rest of clocksource's >> because they are initialized manually in the code. >> >> Fixe

Re: [PATCH v4 2/4] dt-bindings: arm: stm32: Convert STM32 SoC bindings to DT schema

2019-06-12 Thread Rob Herring
On Wed, Jun 12, 2019 at 1:55 AM Manivannan Sadhasivam wrote: > > This commit converts STM32 SoC bindings to DT schema using jsonschema. > > Signed-off-by: Manivannan Sadhasivam > --- > .../devicetree/bindings/arm/stm32/stm32.txt | 10 --- > .../devicetree/bindings/arm/stm32/stm32.yaml | 2

Re: [PATCH 08/15] x86/alternatives: Teach text_poke_bp() to emulate instructions

2019-06-12 Thread Peter Zijlstra
On Tue, Jun 11, 2019 at 06:21:28PM +0200, Peter Zijlstra wrote: > although at this point I'm > thinking we should just used the instruction decode we have instead of > playing iffy games with packed structures. How's something like this? It accepts jmp/32 jmp/8 call and nop5_atomic. --- Subject:

Re: [PATCH v2 1/5] KVM: X86: Dynamic allocate core residency msr state

2019-06-12 Thread Sean Christopherson
On Tue, Jun 11, 2019 at 03:34:07PM +0800, Wanpeng Li wrote: > From: Wanpeng Li > > Dynamic allocate core residency msr state. MSR_CORE_C1_RES is unreadable > except for ATOM platform, so it is ignore here. > > Cc: Paolo Bonzini > Cc: Radim Krčmář > Signed-off-by: Wanpeng Li > --- > arch/x86

Re: [GIT PULL for v5.2-rc1] media updates

2019-06-12 Thread pr-tracker-bot
The pull request you sent on Wed, 12 Jun 2019 12:50:02 -0300: > git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media > tags/media/v5.2-2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/35110e38e6c59b0db9618701d75c7c2a36f98d55 Thank you! -- Deet-doot-dot

Applied "regulator: wm831x: Convert to use GPIO descriptors" to the regulator tree

2019-06-12 Thread Mark Brown
The patch regulator: wm831x: Convert to use GPIO descriptors has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-5.3 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next

Applied "regulator: 88pm800: fix warning same module names" to the regulator tree

2019-06-12 Thread Mark Brown
The patch regulator: 88pm800: fix warning same module names has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-5.3 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 2

Applied "regmap: fix bulk writes on paged registers" to the regmap tree

2019-06-12 Thread Mark Brown
The patch regmap: fix bulk writes on paged registers has been applied to the regmap tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git for-5.2 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and

Applied "bindings: sound: davinci-mcasp: Add support for optional auxclk-fs-ratio" to the asoc tree

2019-06-12 Thread Mark Brown
The patch bindings: sound: davinci-mcasp: Add support for optional auxclk-fs-ratio has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.3 All being well this means that it will be integrated into the linux-next tree (usually sometime

Applied "ASoC: ti: davinci-mcasp: Support for auxclk-fs-ratio" to the asoc tree

2019-06-12 Thread Mark Brown
The patch ASoC: ti: davinci-mcasp: Support for auxclk-fs-ratio has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.3 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hour

Re: [PATCH] Remove myself as qcom maintainer

2019-06-12 Thread Greg Kroah-Hartman
On Wed, Jun 12, 2019 at 09:54:11AM -0600, David Brown wrote: > I no longer regularly work on this platform, and only have a few > increasingly outdated boards. Andy has primarily been doing the > maintenance. > > Signed-off-by: David Brown > --- > MAINTAINERS | 1 - > 1 file changed, 1 deletion(-

[RESEND PATCH v3] cpuset: restore sanity to cpuset_cpus_allowed_fallback()

2019-06-12 Thread Joel Savitz
In the case that a process is constrained by taskset(1) (i.e. sched_setaffinity(2)) to a subset of available cpus, and all of those are subsequently offlined, the scheduler will set tsk->cpus_allowed to the current value of task_cs(tsk)->effective_cpus. This is done via a call to do_set_cpus_allow

[PATCH] Remove myself as qcom maintainer

2019-06-12 Thread David Brown
I no longer regularly work on this platform, and only have a few increasingly outdated boards. Andy has primarily been doing the maintenance. Signed-off-by: David Brown --- MAINTAINERS | 1 - 1 file changed, 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 57f496cff999..27df8f46a283 1

[PATCH v2 1/2] mm: kmemleak: change error at _write when kmemleak is disabled

2019-06-12 Thread André Almeida
According to POSIX, EBUSY means that the "device or resource is busy", and this can lead to people thinking that the file `/sys/kernel/debug/kmemleak/` is somehow locked or being used by other process. Change this error code to a more appropriate one. Signed-off-by: André Almeida --- Hello, This

[PATCH v2 2/2] docs: kmemleak: add more documentation details

2019-06-12 Thread André Almeida
Wikipedia now has a main article to "tracing garbage collector" topic. Change the URL and use the reStructuredText syntax for hyperlinks and add more details about the use of the tool. Add a section about how to use the kmemleak-test module to test the memory leak scanning. Signed-off-by: André Al

Re: [PATCH v2 0/3] auth_gss: netns refcount leaks when use-gss-proxy==1

2019-06-12 Thread J. Bruce Fields
On Wed, Jun 12, 2019 at 04:37:55PM +0800, Wenbin Zeng wrote: > On Tue, May 14, 2019 at 09:03:31PM -0400, J. Bruce Fields wrote: > > Whoops, I was slow to test these. I'm getting failuring krb5 nfs > > mounts, and the following the server's logs. Dropping the three patches > > for now. > My bad, I

[GIT PULL for v5.2-rc1] media updates

2019-06-12 Thread Mauro Carvalho Chehab
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media tags/media/v5.2-2 For a couple patches: - a debug warning for satellite tuning at dvb core was producing too much noise; - a regression at hfi_parser on Venus driver. Regards, Mauro The fol

Re: [PATCH] x86: mce: no need to check return value of debugfs_create functions

2019-06-12 Thread Borislav Petkov
On Wed, Jun 12, 2019 at 05:41:22PM +0200, Greg Kroah-Hartman wrote: > On Wed, Jun 12, 2019 at 05:18:56PM +0200, Borislav Petkov wrote: > > On Wed, Jun 12, 2019 at 05:15:31PM +0200, Greg Kroah-Hartman wrote: > > > When calling debugfs functions, there is no need to ever check the > > > return value.

Re: [PATCH] x86: mce: no need to check return value of debugfs_create functions

2019-06-12 Thread Greg Kroah-Hartman
On Wed, Jun 12, 2019 at 05:18:56PM +0200, Borislav Petkov wrote: > On Wed, Jun 12, 2019 at 05:15:31PM +0200, Greg Kroah-Hartman wrote: > > When calling debugfs functions, there is no need to ever check the > > return value. The function can work or not, but the code logic should > > never do somet

Re: [PATCH] ARC: build: Try to guess CROSS_COMPILE with cc-cross-prefix

2019-06-12 Thread Vineet Gupta
On 6/12/19 4:17 AM, Masahiro Yamada wrote: > Hi. > > On Tue, Jun 4, 2019 at 2:49 AM Alexey Brodkin > wrote: >> >> Hi Vineet, >> >>> -Original Message- >>> From: Vineet Gupta >>> Sent: Monday, June 3, 2019 7:25 PM >>> To: Alexey Brodkin ; >>> linux-snps-...@lists.infradead.org >>> Cc: li

Re: [PATCH 6/6] dma: qcom: hidma: no need to check return value of debugfs_create functions

2019-06-12 Thread Greg Kroah-Hartman
On Wed, Jun 12, 2019 at 11:24:51AM -0400, Sinan Kaya wrote: > On 6/12/2019 8:25 AM, Greg Kroah-Hartman wrote: > > When calling debugfs functions, there is no need to ever check the > > return value. The function can work or not, but the code logic should > > never do something different based on t

Re: [PATCH v3] cpuset: restore sanity to cpuset_cpus_allowed_fallback()

2019-06-12 Thread Tejun Heo
Hello, Joel. On Wed, Jun 12, 2019 at 11:13:15AM -0400, Joel Savitz wrote: > In the case that a process is constrained by taskset(1) (i.e. > sched_setaffinity(2)) to a subset of available cpus, and all of those are > subsequently offlined, the scheduler will set tsk->cpus_allowed to > the current v

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