Re: d17a1d97dc ("x86/mm/kasan: don't use vmemmap_populate() to initialize shadow"): BUG: KASAN: use-after-scope in __drm_mm_interval_first

2017-11-29 Thread Dmitry Vyukov
On Wed, Nov 29, 2017 at 6:21 AM, Fengguang Wu wrote: > Greetings, > > 0day kernel testing robot got the below dmesg and the first bad commit is > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > > commit d17a1d97dc208d664c91cc387ffb752c7f85dc61 > Author: Andrey Rya

Applied "ASoC: intel: byt: Introduce new map for dual mics" to the asoc tree

2017-11-29 Thread Mark Brown
The patch ASoC: intel: byt: Introduce new map for dual mics has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sen

Applied "ASoC: intel: byt: Fix quirk for KIANO laptop" to the asoc tree

2017-11-29 Thread Mark Brown
The patch ASoC: intel: byt: Fix quirk for KIANO laptop has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to

[PATCH] mbcache: remove redundant comparison of unsigned long with < 0

2017-11-29 Thread Colin King
From: Colin Ian King The comparison of c_entry_count < 0 is never true because c_entry_count is an unsigned long and hence cannot be negative. Hence the 'unlikely' comparison is redundant and can be removed. Detected by CoverityScan, CID#1462298 ("Macro compares unsigned to 0") Signed-off-by:

Re: kasan: false use-after-scope warnings with KCOV

2017-11-29 Thread Dmitry Vyukov
On Wed, Nov 29, 2017 at 5:54 PM, Andrey Ryabinin wrote: > On 11/28/2017 08:52 PM, Dmitry Vyukov wrote: >> On Tue, Nov 28, 2017 at 4:24 PM, Mark Rutland wrote: >> As a heads-up, I'm seeing a number of what appear to be false-positive >> use-after-scope warnings when I enable both KCOV and

Re: [kernel-hardening] Re: [PATCH v5 next 5/5] net: modules: use request_module_cap() to load 'netdev-%s' modules

2017-11-29 Thread Linus Torvalds
On Wed, Nov 29, 2017 at 10:46 AM, Linus Torvalds wrote: > > So the module flag is technically easy to add, and it's technically > easy to read at module loading time, but I suspect that it's actually > annoyingly hard to pass the original request_module() capability > information around to where w

[PATCH v2 1/2] ASoC: codecs: Add PCM186x binding documentation

2017-11-29 Thread Andrew F. Davis
Add the dt-binding documentation for the TI PCM186x 2ch and 4ch Audio ADCs With Universal Front End. Signed-off-by: Andrew F. Davis Acked-by: Rob Herring --- Changes from v1: - pcm186x@4a -> audio-codec@4a - Added Acked-by .../devicetree/bindings/sound/pcm186x.txt | 42

[PATCH v2 2/2] ASoC: codecs: Add initial PCM1862/63/64/65 universal ADC driver

2017-11-29 Thread Andrew F. Davis
From: Andreas Dannenberg This is an initial version of the PCM186x codec driver supporting both 2-channel and 4-channel device variants. Not all device features are supported yet such as master/slave mode PLL configuration for which the codec driver currently relies on the PCM186x built-in clock

[PATCH v4] arm64: dts: rockchip: update mipi cells for RK3399

2017-11-29 Thread Brian Norris
From: Nickey Yang We might include additional ports in derivative device trees, so the 'port' node should have an address, and the parent 'ports' node needs /#{addres,size}-cells. v4: * keep #{address,size}-cells in both 'ports' and 'port@0' nodes * separate from the rest of the series, since

Re: [kernel-hardening] Re: [PATCH v5 next 5/5] net: modules: use request_module_cap() to load 'netdev-%s' modules

2017-11-29 Thread Linus Torvalds
On Wed, Nov 29, 2017 at 10:30 AM, Kees Cook wrote: > On Tue, Nov 28, 2017 at 4:50 PM, Linus Torvalds > wrote: >> >> Just thinking about the DCCP case, where networking people actually >> knew it was pretty deprecated and had no real maintainer, I think one >> thing to look at would be simply a pe

[PATCH] perf tools: Fix swap for samples with raw data

2017-11-29 Thread Jiri Olsa
When we detect different endianity we swap event before processing. It's tricky for samples because we have no idea what's inside. We treat it as an array of u64s, swap them and later on we swap back parts which are different. We mangle this way also the tracepoint raw data, which ends up in repor

Re: [PATCH] KVM: x86: inject exceptions produced by x86_decode_insn

2017-11-29 Thread Eduardo Habkost
On Wed, Nov 29, 2017 at 12:44:42PM +0100, Paolo Bonzini wrote: > On 29/11/2017 12:44, Eduardo Habkost wrote: > > On Mon, Nov 13, 2017 at 09:32:09AM +0100, Paolo Bonzini wrote: > >> On 13/11/2017 08:15, Wanpeng Li wrote: > >>> 2017-11-10 17:49 GMT+08:00 Paolo Bonzini : > Sometimes, a processor

[PATCH v6 2/2] tpm: Keep CLKRUN enabled throughout the duration of transmit_cmd()

2017-11-29 Thread Azhar Shaikh
Commit 5e572cab92f0bb5 ("tpm: Enable CLKRUN protocol for Braswell systems") disabled CLKRUN protocol during TPM transactions and re-enabled once the transaction is completed. But there were still some corner cases observed where, reading of TPM header failed for savestate command while going to sus

[PATCH v6 1/2] tpm_tis: Move ilb_base_addr to tpm_tis_data

2017-11-29 Thread Azhar Shaikh
Move static variable ilb_base_addr to tpm_tis_data. Signed-off-by: Azhar Shaikh --- drivers/char/tpm/tpm_tis.c | 75 +++-- drivers/char/tpm/tpm_tis_core.c | 16 - drivers/char/tpm/tpm_tis_core.h | 13 +++ 3 files changed, 56 insertions(+), 48

[PATCH v6 0/2] Fix corner cases with disabling CLKRUN in tpm_tis

2017-11-29 Thread Azhar Shaikh
Changes from v1: - Patch 1: "tpm: Keep CLKRUN enabled throughout the duration of transmit_cmd()" - Add NULL checks before calling clk_toggle callback - Use IS_ENABLED instead of ifdef in tpm_tis_clkrun_toggle() - Do not call tpm_platform_begin_xfer() and tpm_platform_end_xfer() from tpm_t

Re: [PATCHSET v2] cgroup, writeback, btrfs: make sure btrfs issues metadata IOs from the root cgroup

2017-11-29 Thread Chris Mason
On 11/29/2017 12:05 PM, Tejun Heo wrote: On Wed, Nov 29, 2017 at 09:03:30AM -0800, Tejun Heo wrote: Hello, On Wed, Nov 29, 2017 at 05:56:08PM +0100, Jan Kara wrote: What has happened with this patch set? No idea. cc'ing Chris directly. Chris, if the patchset looks good, can you please rout

Re: [PATCH 1/2] sparc32,leon: Build with -mcpu=leon3 for SPARC_LEON

2017-11-29 Thread David Miller
From: Andreas Larsson Date: Tue, 14 Nov 2017 15:03:42 +0100 > Apart from using LEON3 instruction timing it allows for usage of the > CASA instruction. > > Signed-off-by: Andreas Larsson Up until this point the LEON kconfig option is largely passive. All of the sparc_cpu_type logic drives what

[REGRESSION] (>= v4.12) IO w/dmcrypt causing audio underruns

2017-11-29 Thread vcaputo
Hello, Recently I noticed substantial audio dropouts when listening to MP3s in `cmus` while doing big and churny `git checkout` commands in my linux git tree. It's not something I've done much of over the last couple months so I hadn't noticed until yesterday, but didn't remember this being a pro

Re: [PATCH v3 5/5] arm64: dts: rockchip: update mipi node for RK3399

2017-11-29 Thread Brian Norris
+ Doug, since he was asking these things elsewhere On Tue, Nov 28, 2017 at 07:20:06PM +0800, Nickey Yang wrote: > This patch update mipi node for RK3399 DSI controller > based on the Synopsys DesignWare MIPI DSI host controller. > > Signed-off-by: Nickey Yang > --- > arch/arm64/boot/dts/rockchi

[PATCH] ARM: dts: exynos: Add missing interrupt-controller properties to Exynos5410 PMU

2017-11-29 Thread Krzysztof Kozlowski
PMU (system-controller@1004) is used as interrupt-parent for certain nodes thus it should be marked as interrupt-controller to silence warnings when building Exynos5410-based DTBs: arch/arm/boot/dts/exynos5410-odroidxu.dtb: Warning (interrupts_property): Missing interrupt-controller or i

Re: [PATCH v3 4/4] IB/core: disable memory registration of fileystem-dax vmas

2017-11-29 Thread Jason Gunthorpe
On Wed, Nov 29, 2017 at 10:05:51AM -0800, Dan Williams wrote: > Until there is a solution to the dma-to-dax vs truncate problem it is > not safe to allow RDMA to create long standing memory registrations > against filesytem-dax vmas. > > Cc: Sean Hefty > Cc: Doug Ledford > Cc: Hal Rosenstock >

Re: [kernel-hardening] Re: [PATCH v5 next 5/5] net: modules: use request_module_cap() to load 'netdev-%s' modules

2017-11-29 Thread Kees Cook
On Tue, Nov 28, 2017 at 4:50 PM, Linus Torvalds wrote: > On Tue, Nov 28, 2017 at 4:26 PM, Kees Cook wrote: >> >>> The model that I am a proponent of is to take a softer approach >>> initially: don't forbid module loading (because that breaks users), >>> but instead _warn_ about non-root module lo

Re: [RFC PATCH v2 3/3] regulator: core: Balance coupled regulators voltages

2017-11-29 Thread Mark Brown
On Wed, Oct 18, 2017 at 02:47:02PM +0200, Maciej Purski wrote: > +static void regulator_lock_supply_parents(struct regulator_dev *rdev) > +{ > + struct regulator_dev *supply = rdev_get_supply(rdev); > + > + if (supply) > + regulator_lock_supply(supply); > +} These functions ar

Re: [PATCH] exec: Avoid RLIMIT_STACK races with prlimit()

2017-11-29 Thread Kees Cook
On Wed, Nov 29, 2017 at 10:20 AM, Serge E. Hallyn wrote: > Quoting Kees Cook (keesc...@chromium.org): >> While the defense-in-depth RLIMIT_STACK limit on setuid processes was >> protected against races from other threads calling setrlimit(), I missed >> protecting it against races from external pr

Re: [REBASED PATCH] ARM: dts: exynos: fix property values of LDO15/17 for ODROID-XU3/4

2017-11-29 Thread Krzysztof Kozlowski
On Mon, Nov 27, 2017 at 07:15:01PM -0500, Dongjin Kim wrote: > Looking at the schematic, LDO15 and LDO17 are tied as a power source of a > builtin network chipset. The voltage on LDO15 is corrected to 3.3V and the > name of LDO17 is corrected to "vdd_ldo17". > > Signed-off-by: Dongjin Kim > --- >

[PATCH] clk: qcom: msm8916: Fix i2s clk rates required for mclk

2017-11-29 Thread srinivas . kandagatla
From: Srinivas Kandagatla lpaif i2s clk rates in the freq table are not accurate enough for I2S mclk. Fix the inaccurate ones and add few more clock rates that are used in LPASS audio driver. Signed-off-by: Srinivas Kandagatla --- drivers/clk/qcom/gcc-msm8916.c | 11 --- 1 file changed

Re: [PATCH v2 1/2] pinctrl: Allow a device to indicate when to force a state

2017-11-29 Thread Tony Lindgren
* Florian Fainelli [171129 18:17]: > On 11/29/2017 09:45 AM, Tony Lindgren wrote: > > * Florian Fainelli [171129 17:37]: > >> On 11/29/2017 09:01 AM, Tony Lindgren wrote: > >>> * Florian Fainelli [171102 23:18]: > It may happen that a device needs to force applying a state, e.g: > beca

Re: [PATCH v2] tpm: return a TPM_RC_COMMAND_CODE response if a command isn't implemented

2017-11-29 Thread Javier Martinez Canillas
Hello Jarkko, On 11/29/2017 06:57 PM, Jarkko Sakkinen wrote: > On Wed, Nov 29, 2017 at 12:08:46PM +0100, Javier Martinez Canillas > wrote: >> +#define TPM2_RC_LAYER_SHIFT 16 +#define TPM2_RESMGRTPM_RC_LAYER >> (11 << TPM2_RC_LAYER_SHIFT) > > I got this spec from Philip [1]. > > Couple of remarks

Re: [PATCH 3/5] PCI: cadence: Add host driver for Cadence PCIe controller

2017-11-29 Thread Lorenzo Pieralisi
[w/o unintended disclaimer] On Thu, Nov 23, 2017 at 04:01:48PM +0100, Cyrille Pitchen wrote: > This patch adds support to the Cadence PCIe controller in host mode. Bjorn already commented on this, it would be good to add some of the cover letter details in this log. > Signed-off-by: Cyrille Pitc

Re: [PATCH] KVM: VMX: Cache IA32_DEBUGCTL in memory

2017-11-29 Thread Andi Kleen
Wanpeng Li writes: > From: Wanpeng Li > > MSR_IA32_DEBUGCTLMSR is zeroed on VMEXIT, so it is saved/restored > each time during world switch. Jim from Google pointed out that > when running schbench in L2, vmx_vcpu_run will occupy 4% cpu time, > and the 25% of vmx_vcpu_run cpu time is occupied

Re: jsm_tty: Fix a possible null pointer dereference in two functions

2017-11-29 Thread SF Markus Elfring
>> It's pretty unlikely, but it is an actual defect. > > No it is not, those variables will never be set to NULL, > so this can never be triggered. Walk up the call chain. If the involved software developers are convinced about the validity of this pointer: How do you think about to delete the

Re: [PATCH] exec: Avoid RLIMIT_STACK races with prlimit()

2017-11-29 Thread Serge E. Hallyn
Quoting Kees Cook (keesc...@chromium.org): > While the defense-in-depth RLIMIT_STACK limit on setuid processes was > protected against races from other threads calling setrlimit(), I missed > protecting it against races from external processes calling prlimit(). > This adds locking around the chang

Re: [PATCH RFC 1/2] sched: Minimize the idle cpu selection race window.

2017-11-29 Thread Mike Galbraith
On Wed, 2017-11-29 at 11:41 +0100, Uladzislau Rezki wrote: > On Tue, Nov 28, 2017 at 11:49:11AM +0100, Mike Galbraith wrote: > > On Tue, 2017-11-28 at 10:34 +0100, Uladzislau Rezki wrote: > > > On Fri, Nov 24, 2017 at 07:46:30PM +0100, Mike Galbraith wrote: > > > > > > > My view is you're barking

Re: [PATCH v2 1/2] pinctrl: Allow a device to indicate when to force a state

2017-11-29 Thread Florian Fainelli
On 11/29/2017 09:45 AM, Tony Lindgren wrote: > * Florian Fainelli [171129 17:37]: >> On 11/29/2017 09:01 AM, Tony Lindgren wrote: >>> * Florian Fainelli [171102 23:18]: It may happen that a device needs to force applying a state, e.g: because it only defines one state of pin states (def

Re: [PATCH] jsm_tty: Fix a possible null pointer dereference in two functions

2017-11-29 Thread Joe Perches
On Wed, 2017-11-29 at 18:05 +, Greg Kroah-Hartman wrote: > On Wed, Nov 29, 2017 at 09:51:36AM -0800, Joe Perches wrote: > > On Wed, 2017-11-29 at 17:35 +, Greg Kroah-Hartman wrote: > > > On Wed, Nov 29, 2017 at 09:23:07AM -0800, Joe Perches wrote: > > > > On Wed, 2017-11-29 at 17:40 +0100,

Re: [Xen-devel] [PATCH] Xen/pciback: Implement PCI slot or bus reset with 'do_flr' SysFS attribute

2017-11-29 Thread Pasi Kärkkäinen
On Wed, Nov 29, 2017 at 11:25:09AM -0600, Govinda Tatti wrote: > > >>>Furthermore, contrary to what you claim in > >>>your reply to Pasi, I can't see where you try an actual FLR first - > >>>you go straight to pci_probe_reset_{slot,bus}(). If you actually > >>>tried FLR first, only falling back to

[PATCH v3 2/4] mm: fail get_vaddr_frames() for filesystem-dax mappings

2017-11-29 Thread Dan Williams
Until there is a solution to the dma-to-dax vs truncate problem it is not safe to allow V4L2, Exynos, and other frame vector users to create long standing / irrevocable memory registrations against filesytem-dax vmas. Cc: Inki Dae Cc: Seung-Woo Kim Cc: Joonyoung Shim Cc: Kyungmin Park Cc: Maur

[PATCH v3 3/4] [media] v4l2: disable filesystem-dax mapping support

2017-11-29 Thread Dan Williams
V4L2 memory registrations are incompatible with filesystem-dax that needs the ability to revoke dma access to a mapping at will, or otherwise allow the kernel to wait for completion of DMA. The filesystem-dax implementation breaks the traditional solution of truncate of active file backed mappings

[PATCH v3 1/4] mm: introduce get_user_pages_longterm

2017-11-29 Thread Dan Williams
Until there is a solution to the dma-to-dax vs truncate problem it is not safe to allow long standing memory registrations against filesytem-dax vmas. Device-dax vmas do not have this problem and are explicitly allowed. This is temporary until a "memory registration with layout-lease" mechanism ca

Re: [PATCH] jsm_tty: Fix a possible null pointer dereference in two functions

2017-11-29 Thread Greg Kroah-Hartman
On Wed, Nov 29, 2017 at 09:51:36AM -0800, Joe Perches wrote: > On Wed, 2017-11-29 at 17:35 +, Greg Kroah-Hartman wrote: > > On Wed, Nov 29, 2017 at 09:23:07AM -0800, Joe Perches wrote: > > > On Wed, 2017-11-29 at 17:40 +0100, SF Markus Elfring wrote: > > > > From: Markus Elfring > > > > Date:

[PATCH v3 4/4] IB/core: disable memory registration of fileystem-dax vmas

2017-11-29 Thread Dan Williams
Until there is a solution to the dma-to-dax vs truncate problem it is not safe to allow RDMA to create long standing memory registrations against filesytem-dax vmas. Cc: Sean Hefty Cc: Doug Ledford Cc: Hal Rosenstock Cc: Jeff Moyer Cc: Ross Zwisler Cc: Jason Gunthorpe Cc: Cc: Fixes: 3565fc

[PATCH v3 0/4] introduce get_user_pages_longterm()

2017-11-29 Thread Dan Williams
Changes since v2 [1]: * Add a comment for the vma_is_fsdax() check in get_vaddr_frames() (Jan) * Collect Jan's Reviewed-by. * Rebased on v4.15-rc1 [1]: https://lists.01.org/pipermail/linux-nvdimm/2017-November/013295.html The summary text below is unchanged from v2. --- Andrew, Here is a new g

Re: [PATCH 0/6] more KAISER bits

2017-11-29 Thread Dave Hansen
On 11/29/2017 08:02 AM, Thomas Gleixner wrote: > Current pile at: > > https://tglx.de/~tglx/patches.tar I don't see any show stoppers in there. The biggest change is Peter's rework of the user asid flushing, but that all looks OK to me.

Re: [PATCH] x86/entry/64: Fix native_load_gs_index() SWAPGS handling with IRQ state tracing enabled

2017-11-29 Thread Andy Lutomirski
On Wed, Nov 29, 2017 at 9:57 AM, Andy Lutomirski wrote: > On Tue, Nov 28, 2017 at 11:09 PM, Ingo Molnar wrote: >> >> * Jarkko Nikula wrote: >> >>> Hi >>> >>> Suspend-to-ram and resume stopped working on v4.15-rc1 and I bisected it to >>> commit ca37e57bbe0c ("x86/entry/64: Add missing irqflags t

Re: [PATCH v6 06/11] intel_sgx: driver for Intel Software Guard Extensions

2017-11-29 Thread Jarkko Sakkinen
On Sun, Nov 26, 2017 at 09:01:09PM +0200, Jarkko Sakkinen wrote: > On Sun, Nov 26, 2017 at 08:46:27PM +0200, Jarkko Sakkinen wrote: > > On Sun, Nov 26, 2017 at 07:33:56PM +0200, Jarkko Sakkinen wrote: > > > > +struct sgx_encl_page { > > > > + unsigned long addr; > > > > + unsigned int f

Re: [PATCH net-next 0/3] rxrpc: Fixes

2017-11-29 Thread David Miller
From: David Howells Date: Wed, 29 Nov 2017 17:25:41 + > David Miller wrote: > >> This email says "net-next", yet your patches say "net". > > Sorry about that - it should be 'net'. I copied an old cover note. All the > patches have a macro substitution, but the cover note does not. Do yo

Re: [PATCH] x86/entry/64: Fix native_load_gs_index() SWAPGS handling with IRQ state tracing enabled

2017-11-29 Thread Peter Zijlstra
On Wed, Nov 29, 2017 at 09:57:43AM -0800, Andy Lutomirski wrote: > On Tue, Nov 28, 2017 at 11:09 PM, Ingo Molnar wrote: > > On a related note, we should definitely extend the 'intended GS state' > > annotation > > comments I did in this patch to all SWAPGS instances - this way code review > > h

[PATCH AUTOSEL for 4.9 03/52] ARM: OMAP2+: gpmc-onenand: propagate error on initialization failure

2017-11-29 Thread alexander . levin
From: Ladislav Michl [ Upstream commit 7807e086a2d1f69cc1a57958cac04fea79fc2112 ] gpmc_probe_onenand_child returns success even on gpmc_onenand_init failure. Fix that. Signed-off-by: Ladislav Michl Acked-by: Roger Quadros Signed-off-by: Tony Lindgren Signed-off-by: Sasha Levin --- arch/arm

[PATCH AUTOSEL for 4.9 09/52] selftest/powerpc: Fix false failures for skipped tests

2017-11-29 Thread alexander . levin
From: Sachin Sant [ Upstream commit a6d8a21596df041f36f4c2ccc260c459e3e851f1 ] Tests under alignment subdirectory are skipped when executed on previous generation hardware, but harness still marks them as failed. test: test_copy_unaligned tags: git_version:unknown [SKIP] Test skipped on l

Re: Documentation patch for namespaced file capabilities

2017-11-29 Thread Serge E. Hallyn
Quoting Michael Kerrisk (man-pages) (mtk.manpa...@gmail.com): > Hi Serge, > > At the moment man-pages lacks documentation of the namespaced file > capability feature that you added with commit > 8db6c34f1dbc8e06aa016a9b829b06902c3e1340. Would you be able to send a > patch describing the feature?

Re: [PATCH] x86/entry/64: Fix native_load_gs_index() SWAPGS handling with IRQ state tracing enabled

2017-11-29 Thread Andy Lutomirski
On Tue, Nov 28, 2017 at 11:09 PM, Ingo Molnar wrote: > > * Jarkko Nikula wrote: > >> Hi >> >> Suspend-to-ram and resume stopped working on v4.15-rc1 and I bisected it to >> commit ca37e57bbe0c ("x86/entry/64: Add missing irqflags tracing to >> native_load_gs_index()"). >> >> I noticed it on Intel

[PATCH 4/7] ntb_hw_switchtec: Make switchtec_ntb_init_req_id_table() more general

2017-11-29 Thread Logan Gunthorpe
This is a prep patch in order to support the crosslink feature which will require the driver to setup the requester ID table in another partition as well as it's own. To aid this, create a helper function which sets up the requester IDs from an array. Signed-off-by: Logan Gunthorpe --- drivers/n

[PATCH 1/7] ntb_hw_switchtec: Allow using Switchtec NTB in multi-partition setups

2017-11-29 Thread Logan Gunthorpe
From: Kelvin Cao Allow using Switchtec NTB in setups that have more than two partitions. Note: this does not enable having multi-host communication, it only allows for a single NTB link between two hosts in a network that might have more than two. Use following logic to determine the NT peer par

Re: [PATCH 0/7] Switchtec NTB Crosslink Support

2017-11-29 Thread Logan Gunthorpe
Also, I forgot to mention, this patch set is based on today's ntb-next. Logan On 29/11/17 10:55 AM, Logan Gunthorpe wrote: Hi, This patch series adds support for the Switchtec Crosslink feature. Crosslink is similar to B2B in that it allows two switches to be connected back to back. Two switc

[PATCH AUTOSEL for 4.9 08/52] powerpc/64: Invalidate process table caching after setting process table

2017-11-29 Thread alexander . levin
From: Paul Mackerras [ Upstream commit 7a70d7288c926ae88e0c773fbb506aa374e99c2d ] The POWER9 MMU reads and caches entries from the process table. When we kexec from one kernel to another, the second kernel sets its process table pointer but doesn't currently do anything to make the CPU invalidat

Re: [PATCH v2 1/2] ARM: dts: exynos: Switch to dedicated Odroid-XU3 sound card binding

2017-11-29 Thread Krzysztof Kozlowski
On Mon, Nov 27, 2017 at 7:12 PM, Krzysztof Kozlowski wrote: > On Fri, Nov 03, 2017 at 05:54:45PM +0100, Sylwester Nawrocki wrote: >> The new sound card DT binding is used for Odroid XU3 in order >> to properly support the HDMI audio path. >> Clocks configuration is changed so the I2S controller is

Re: [PATCH v2] tpm: return a TPM_RC_COMMAND_CODE response if a command isn't implemented

2017-11-29 Thread Jarkko Sakkinen
On Wed, Nov 29, 2017 at 12:08:46PM +0100, Javier Martinez Canillas wrote: > +#define TPM2_RC_LAYER_SHIFT 16 > +#define TPM2_RESMGRTPM_RC_LAYER (11 << TPM2_RC_LAYER_SHIFT) I got this spec from Philip [1]. Couple of remarks: * What is the difference between TSS2_RESMGR_RC_LAYER and TSS2_RESMGR_

Re: [PATCHv2 2/2] userns: control capabilities of some user namespaces

2017-11-29 Thread Serge E. Hallyn
Quoting Mahesh Bandewar (महेश बंडेवार) (mahe...@google.com): > On Tue, Nov 28, 2017 at 3:04 PM, Serge E. Hallyn wrote: > > Quoting Mahesh Bandewar (महेश बंडेवार) (mahe...@google.com): > > ... > >> >> diff --git a/security/commoncap.c b/security/commoncap.c > >> >> index fc46f5b85251..89103f16ac37

[PATCH 0/7] Switchtec NTB Crosslink Support

2017-11-29 Thread Logan Gunthorpe
Hi, This patch series adds support for the Switchtec Crosslink feature. Crosslink is similar to B2B in that it allows two switches to be connected back to back. Two switches can already be connected between two hosts, however with this setup, there would be no symmetry as one switch would handle

PI futexes + lock stealing woes

2017-11-29 Thread Julia Cartwright
Hey Thomas, Peter- Gratian and I have been debugging into a nasty and difficult race w/ futexes seemingly the culprit. The original symptom we were seeing was a seemingly spurious -EDEADLK from a futex(LOCK_PI) operation. On further analysis, however, it appears the thread which gets the spuriou

[PATCH 6/7] ntb_hw_switchtec: Add initialization code for crosslink

2017-11-29 Thread Logan Gunthorpe
Crosslink is a feature of the Switchtec switches that is similar to the B2B mode of other NTB devices. It allows a system to be designed that is perfectly symmetric with two identical switches that link two hosts together. In order for the system to be symmetric, there is an empty host-less partit

[PATCH 5/7] ntb_hw_switchtec: Expand PFF CSR registers

2017-11-29 Thread Logan Gunthorpe
The PFF CSR registers actual mirrors the PCI configuration space for all the ports in the switch. Previously, this was not needed by the driver but will be used by the crosslink code to enumerate the bus in an host-less centre partition. Signed-off-by: Logan Gunthorpe --- include/linux/switchtec

[PATCH 2/7] ntb_hw_switchtec: Keep track of the number of LUT windows used by the driver

2017-11-29 Thread Logan Gunthorpe
This is a prep patch in order to support the crosslink feature which will require the driver to use another reserved LUT window. To simplify this, we add some code to track the number of reserved LUT windows in use instead of assuming this is always 1. Signed-off-by: Logan Gunthorpe --- drivers/

[PATCH 7/7] ntb_hw_switchtec: Crosslink doorbells and messages

2017-11-29 Thread Logan Gunthorpe
In a crosslink configuration doorbells and messages largely work the same but the NTB registers must be accessed through the reserved LUT window. Also, as a bonus, seeing there are now two independent sets of NTB links, both partitions can actually use all 60 doorbell registers instead of them havi

[PATCH 3/7] ntb_hw_switchtec: Create helper function to setup reserved LUT MWs

2017-11-29 Thread Logan Gunthorpe
This is a prep patch in order to support the crosslink feature which will require the driver to use another reserved LUT window. To simplify this we move the code which sets up the reserved LUT window into a helper function which will be used by the crosslink initialization. Signed-off-by: Logan G

[PATCH AUTOSEL for 4.9 04/52] x86/selftests: Add clobbers for int80 on x86_64

2017-11-29 Thread alexander . levin
From: Dmitry Safonov [ Upstream commit 2a4d0c627f5374f365a873dea4e10ae0bb437680 ] Kernel erases R8..R11 registers prior returning to userspace from int80: https://lkml.org/lkml/2009/10/1/164 GCC can reuse these registers and doesn't expect them to change during syscall invocation. I met this

[PATCH AUTOSEL for 4.9 01/52] ARM: 8657/1: uaccess: consistently check object sizes

2017-11-29 Thread alexander . levin
From: Kees Cook [ Upstream commit 32b143637e8180f5d5cea54320c769210dea4f19 ] In commit 76624175dcae ("arm64: uaccess: consistently check object sizes"), the object size checks are moved outside the access_ok() so that bad destinations are detected before hitting the "memset(dest, 0, size)" in th

[PATCH AUTOSEL for 4.9 11/52] [media] lirc: fix dead lock between open and wakeup_filter

2017-11-29 Thread alexander . levin
From: Sean Young [ Upstream commit db5b15b74ed9a5c04bb808d18ffa2c773f5c18c0 ] The locking in lirc needs improvement, but for now just fix this potential deadlock. == [ INFO: possible circular locking dependency detected ] 4.10.0-rc1+ #1 Not ta

[PATCH AUTOSEL for 4.9 05/52] x86/platform/uv/BAU: Fix HUB errors by remove initial write to sw-ack register

2017-11-29 Thread alexander . levin
From: Andrew Banman [ Upstream commit 1b17c6df852851b40c3c27c66b8fa2fd99cf25d8 ] Writing to the software acknowledge clear register when there are no pending messages causes a HUB error to assert. The original intent of this write was to clear the pending bits before start of operation, but this

[PATCH AUTOSEL for 4.9 07/52] x86/hpet: Prevent might sleep splat on resume

2017-11-29 Thread alexander . levin
From: Thomas Gleixner [ Upstream commit bb1a2c26165640ba2cbcfe06c81e9f9d6db4e643 ] Sergey reported a might sleep warning triggered from the hpet resume path. It's caused by the call to disable_irq() from interrupt disabled context. The problem with the low level resume code is that it is not ac

[PATCH AUTOSEL for 4.9 02/52] vti6: Don't report path MTU below IPV6_MIN_MTU.

2017-11-29 Thread alexander . levin
From: Steffen Klassert [ Upstream commit e3dc847a5f85b43ee2bfc8eae407a7e383483228 ] In vti6_xmit(), the check for IPV6_MIN_MTU before we send a ICMPV6_PKT_TOOBIG message is missing. So we might report a PMTU below 1280. Fix this by adding the required check. Fixes: ccd740cbc6e ("vti6: Add pmtu

Re: [pcpu] BUG: KASAN: use-after-scope in pcpu_setup_first_chunk+0x1e3b/0x29e2

2017-11-29 Thread Dennis Zhou
Hi everyone, I spent a bit of time learning more about this problem as Fengguang was able to determine the root commit f7dd2507893cc3. I reproduced the bug in userspace to make life a bit easier and below the assignment occurs before the unpoison. This is fine if we're sequentially proceeding, but

[PATCH AUTOSEL for 4.9 06/52] sched/fair: Make select_idle_cpu() more aggressive

2017-11-29 Thread alexander . levin
From: Peter Zijlstra [ Upstream commit 4c77b18cf8b7ab37c7d5737b4609010d2ceec5f0 ] Kitsunyan reported desktop latency issues on his Celeron 887 because of commit: 1b568f0aabf2 ("sched/core: Optimize SCHED_SMT") ... even though his CPU doesn't do SMT. The effect of running the SMT code on a !

[PATCH AUTOSEL for 4.9 16/52] ASoC: rcar: avoid SSI_MODEx settings for SSI8

2017-11-29 Thread alexander . levin
From: Kuninori Morimoto [ Upstream commit 4b30eebfc35c67771b5f58d9274d3e321b72d7a8 ] SSI8 is is sharing pin with SSI7, and nothing to do for SSI_MODEx. It is special pin and it needs special settings whole system, but we can't confirm it, because we never have SSI8 available board. This patch f

[PATCH AUTOSEL for 4.9 21/52] usb: dwc3: gadget: Fix system suspend/resume on TI platforms

2017-11-29 Thread alexander . levin
From: Roger Quadros [ Upstream commit 1551e35ea4189c1f7199fe278395fc94196715f2 ] On TI platforms (dra7, am437x), the DWC3_DSTS_DEVCTRLHLT bit is not set after the device controller is stopped via DWC3_DCTL_RUN_STOP. If we don't disconnect and stop the gadget, it stops working after a system res

[PATCH AUTOSEL for 4.9 22/52] usb: gadget: pxa27x: Test for a valid argument pointer

2017-11-29 Thread alexander . levin
From: Petr Cvek [ Upstream commit df7545719a14fa7b481896fb8689e23d0a00f682 ] A call usb_put_phy(udc->transceiver) must be tested for a valid pointer. Use an already existing test for usb_unregister_notifier call. Acked-by: Robert Jarzmik Reported-by: Robert Jarzmik Signed-off-by: Petr Cvek S

[PATCH AUTOSEL for 4.9 19/52] usb: gadget: configs: plug memory leak

2017-11-29 Thread alexander . levin
From: John Keeping [ Upstream commit 38355b2a44776c25b0f2ad466e8c51bb805b3032 ] When binding a gadget to a device, "name" is stored in gi->udc_name, but this does not happen when unregistering and the string is leaked. Signed-off-by: John Keeping Signed-off-by: Felipe Balbi Signed-off-by: Sas

[PATCH AUTOSEL for 4.9 25/52] libata: drop WARN from protocol error in ata_sff_qc_issue()

2017-11-29 Thread alexander . levin
From: Tejun Heo [ Upstream commit 0580b762a4d6b70817476b90042813f8573283fa ] ata_sff_qc_issue() expects upper layers to never issue commands on a command protocol that it doesn't implement. While the assumption holds fine with the usual IO path, nothing filters based on the command protocol in

[PATCH AUTOSEL for 4.9 29/52] irqchip/crossbar: Fix incorrect type of register size

2017-11-29 Thread alexander . levin
From: Franck Demathieu [ Upstream commit 4b9de5da7e120c7f02395da729f0ec77ce7a6044 ] The 'size' variable is unsigned according to the dt-bindings. As this variable is used as integer in other places, create a new variable that allows to fix the following sparse issue (-Wtypesign): drivers/irqc

[PATCH AUTOSEL for 4.9 26/52] workqueue: trigger WARN if queue_delayed_work() is called with NULL @wq

2017-11-29 Thread alexander . levin
From: Tejun Heo [ Upstream commit 637fdbae60d6cb9f6e963c1079d7e0445c86ff7d ] If queue_delayed_work() gets called with NULL @wq, the kernel will oops asynchronuosly on timer expiration which isn't too helpful in tracking down the offender. This actually happened with smc. __queue_delayed_work()

Re: [PATCH] jsm_tty: Fix a possible null pointer dereference in two functions

2017-11-29 Thread Joe Perches
On Wed, 2017-11-29 at 17:35 +, Greg Kroah-Hartman wrote: > On Wed, Nov 29, 2017 at 09:23:07AM -0800, Joe Perches wrote: > > On Wed, 2017-11-29 at 17:40 +0100, SF Markus Elfring wrote: > > > From: Markus Elfring > > > Date: Wed, 29 Nov 2017 17:30:36 +0100 > > > > > > Move two debug messages so

[PATCH AUTOSEL for 4.9 23/52] usb: gadget: udc: net2280: Fix tmp reusage in net2280 driver

2017-11-29 Thread alexander . levin
From: Raz Manor [ Upstream commit ef5e2fa9f65befa12f1113c734602d2c1964d2a5 ] In the function scan_dma_completions() there is a reusage of tmp variable. That coused a wrong value being used in some case when reading a short packet terminated transaction from an endpoint, in 2 concecutive reads.

[PATCH AUTOSEL for 4.9 32/52] arm64: KVM: Survive unknown traps from guests

2017-11-29 Thread alexander . levin
From: Mark Rutland [ Upstream commit ba4dd156eabdca93501d92a980ba27fa5f4bbd27 ] Currently we BUG() if we see an ESR_EL2.EC value we don't recognise. As configurable disables/enables are added to the architecture (controlled by RES1/RES0 bits respectively), with associated synchronous exceptions,

[PATCH AUTOSEL for 4.9 33/52] KVM: arm/arm64: VGIC: Fix command handling while ITS being disabled

2017-11-29 Thread alexander . levin
From: Andre Przywara [ Upstream commit a5e1e6ca94a8cec51571fd62e3eaec269717969c ] The ITS spec says that ITS commands are only processed when the ITS is enabled (section 8.19.4, Enabled, bit[0]). Our emulation was not taking this into account. Fix this by checking the enabled state before handli

[PATCH AUTOSEL for 4.9 20/52] USB: gadgetfs: Fix a potential memory leak in 'dev_config()'

2017-11-29 Thread alexander . levin
From: Christophe JAILLET [ Upstream commit b6e7aeeaf235901c42ec35de4633c7c69501d303 ] 'kbuf' is allocated just a few lines above using 'memdup_user()'. If the 'if (dev->buf)' test fails, this memory is never released. Signed-off-by: Christophe JAILLET Signed-off-by: Felipe Balbi Signed-off-by

[PATCH AUTOSEL for 4.9 18/52] HID: chicony: Add support for another ASUS Zen AiO keyboard

2017-11-29 Thread alexander . levin
From: Daniel Drake [ Upstream commit f2f10b7e722a75c6d75a7f7cd06b0eee3ae20f7c ] Add support for media keys on the keyboard that comes with the Asus V221ID and ZN241IC All In One computers. The keys to support here are WLAN, BRIGHTNESSDOWN and BRIGHTNESSUP. This device is not visibly branded as

[PATCH AUTOSEL for 4.9 34/52] spi_ks8995: fix "BUG: key accdaa28 not in .data!"

2017-11-29 Thread alexander . levin
From: "Blomme, Maarten" [ Upstream commit 4342696df764ec65dcdfbd0c10d90ea52505f8ba ] Signed-off-by: Maarten Blomme Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/phy/spi_ks8995.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/phy/spi_ks8995.c b/dri

[PATCH AUTOSEL for 4.9 36/52] bnx2x: prevent crash when accessing PTP with interface down

2017-11-29 Thread alexander . levin
From: Michal Schmidt [ Upstream commit 466e8bf10ac104d96e1ea813e8126e11cb72ea20 ] It is possible to crash the kernel by accessing a PTP device while its associated bnx2x interface is down. Before the interface is brought up, the timecounter is not initialized, so accessing it results in NULL der

[PATCH AUTOSEL for 4.9 14/52] ARM: OMAP2+: Fix device node reference counts

2017-11-29 Thread alexander . levin
From: Guenter Roeck [ Upstream commit 10e5778f54765c96fe0c8f104b7a030e5b35bc72 ] After commit 0549bde0fcb1 ("of: fix of_node leak caused in of_find_node_opts_by_path"), the following error may be reported when running omap images. OF: ERROR: Bad of_node_put() on /ocp@6800 CPU: 0 PID: 0 Comm

[PATCH AUTOSEL for 4.9 27/52] scsi: qla2xxx: Fix ql_dump_buffer

2017-11-29 Thread alexander . levin
From: Joe Perches [ Upstream commit 23456565acf6d452e0368f7380aecd584c019c67 ] Recent printk changes for KERN_CONT cause this logging to be defectively emitted on multiple lines. Fix it. Also reduces object size a trivial amount. $ size drivers/scsi/qla2xxx/qla_dbg.o* textdata bss

[PATCH AUTOSEL for 4.9 37/52] bnx2x: fix possible overrun of VFPF multicast addresses array

2017-11-29 Thread alexander . levin
From: Michal Schmidt [ Upstream commit 22118d861cec5da6ed525aaf12a3de9bfeffc58f ] It is too late to check for the limit of the number of VF multicast addresses after they have already been copied to the req->multicast[] array, possibly overflowing it. Do the check before copying. Also fix the

Re: [PATCHv2 0/4] x86: 5-level related changes into decompression code

2017-11-29 Thread Borislav Petkov
On Wed, Nov 29, 2017 at 08:08:31PM +0300, Kirill A. Shutemov wrote: > We're really early in the boot -- startup_64 in decompression code -- and > I don't know a way print a message there. Is there a way? > > no_longmode handled by just hanging the machine. Is it enough for no_la57 > case too? Pat

[PATCH AUTOSEL for 4.9 38/52] bnx2x: fix detection of VLAN filtering feature for VF

2017-11-29 Thread alexander . levin
From: Michal Schmidt [ Upstream commit 83bd9eb8fc69cdd5135ed6e1f066adc8841800fd ] VFs are currently missing the VLAN filtering feature, because we were checking the PF's acquire response before actually performing the acquire. Fix it by setting the feature flag later when we have the PF respons

[PATCH AUTOSEL for 4.9 39/52] bnx2x: do not rollback VF MAC/VLAN filters we did not configure

2017-11-29 Thread alexander . levin
From: Michal Schmidt [ Upstream commit 78d5505432436516456c12abbe705ec8dee7ee2b ] On failure to configure a VF MAC/VLAN filter we should not attempt to rollback filters that we failed to configure with -EEXIST. Signed-off-by: Michal Schmidt Signed-off-by: David S. Miller Signed-off-by: Sasha

[PATCH AUTOSEL for 4.9 40/52] rds: tcp: Sequence teardown of listen and acceptor sockets to avoid races

2017-11-29 Thread alexander . levin
From: Sowmini Varadhan [ Upstream commit b21dd4506b71bdb9c5a20e759255cd2513ea7ebe ] Commit a93d01f5777e ("RDS: TCP: avoid bad page reference in rds_tcp_listen_data_ready") added the function rds_tcp_listen_sock_def_readable() to handle the case when a partially set-up acceptor socket drops into

[PATCH AUTOSEL for 4.9 12/52] module: set __jump_table alignment to 8

2017-11-29 Thread alexander . levin
From: David Daney [ Upstream commit ab42632156becd35d3884ee5c14da2bedbf3149a ] For powerpc the __jump_table section in modules is not aligned, this causes a WARN_ON() splat when loading a module containing a __jump_table. Strict alignment became necessary with commit 3821fd35b58d ("jump_label:

[PATCH AUTOSEL for 4.9 45/52] i2c: riic: fix restart condition

2017-11-29 Thread alexander . levin
From: Chris Brandt [ Upstream commit 2501c1bb054290679baad0ff7f4f07c714251f4c ] While modifying the driver to use the STOP interrupt, the completion of the intermediate transfers need to wake the driver back up in order to initiate the next transfer (restart condition). Otherwise you get never e

[PATCH AUTOSEL for 4.9 42/52] ibmvnic: Allocate number of rx/tx buffers agreed on by firmware

2017-11-29 Thread alexander . levin
From: Thomas Falcon [ Upstream commit 068d9f90a6978c3e3a662d9e85204a7d6be240d2 ] The amount of TX/RX buffers that the vNIC driver currently allocates is different from the amount agreed upon in negotiation with firmware. Correct that by allocating the requested number of buffers confirmed by fir

[PATCH AUTOSEL for 4.9 13/52] powerpc/64: Fix checksum folding in csum_add()

2017-11-29 Thread alexander . levin
From: Shile Zhang [ Upstream commit 6ad966d7303b70165228dba1ee8da1a05c10eefe ] Paul's patch to fix checksum folding, commit b492f7e4e07a ("powerpc/64: Fix checksum folding in csum_tcpudp_nofold and ip_fast_csum_nofold") missed a case in csum_add(). Fix it. Signed-off-by: Shile Zhang Acked-by:

[PATCH AUTOSEL for 4.9 43/52] ipv6: reorder icmpv6_init() and ip6_mr_init()

2017-11-29 Thread alexander . levin
From: WANG Cong [ Upstream commit 15e668070a64bb97f102ad9cf3bccbca0545cda8 ] Andrey reported the following kernel crash: kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: [#1] SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linke

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