Re: [PATCH v12 3/3] dt-bindings: mfd: Document Renesas R-Car Gen3 RPC-IF MFD bindings

2019-05-22 Thread Geert Uytterhoeven
Hi Sergei, On Wed, May 22, 2019 at 7:23 PM Sergei Shtylyov wrote: > On 05/22/2019 08:05 PM, Geert Uytterhoeven wrote: > >> On 05/20/2019 10:23 AM, masonccy...@mxic.com.tw wrote: > >>> +- clocks: should contain 1 entries for the module's clock > >> > >>1 entry (clock node phandle and specifier

Re: [f2fs-dev] [PATCH 1/2] Revert "f2fs: don't clear CP_QUOTA_NEED_FSCK_FLAG"

2019-05-22 Thread Jaegeuk Kim
On 05/22, Chao Yu wrote: > On 2019-5-22 2:06, Jaegeuk Kim wrote: > > This reverts commit fb40d618b03978b7cc5820697894461f4a2af98b. > > > > The original patch introduced # of fsck triggers. > > How about pointing out the old issue has been fixed with below patch: > > f2fs-tools: fix to check tota

Re: Getting empty callchain from perf_callchain_kernel()

2019-05-22 Thread Josh Poimboeuf
On Wed, May 22, 2019 at 02:49:07PM +, Alexei Starovoitov wrote: > The one that is broken is prog_tests/stacktrace_map.c > There we attach bpf to standard tracepoint where > kernel suppose to collect pt_regs before calling into bpf. > And that's what bpf_get_stackid_tp() is doing. > It passes pt

Re: [PATCH v4 0/1] Use HMM for ODP v4

2019-05-22 Thread Jerome Glisse
On Tue, May 21, 2019 at 09:52:25PM -0300, Jason Gunthorpe wrote: > On Tue, May 21, 2019 at 04:53:22PM -0400, Jerome Glisse wrote: > > On Mon, May 06, 2019 at 04:56:57PM -0300, Jason Gunthorpe wrote: > > > On Thu, Apr 11, 2019 at 02:13:13PM -0400, jgli...@redhat.com wrote: > > > > From: Jérôme Gliss

Re: [PATCH 1/3] ARM: dts: imx6: rdu2: Add node for UCS1002 USB charger chip

2019-05-22 Thread Andrey Smirnov
On Wed, May 22, 2019 at 2:37 AM Lucas Stach wrote: > > Hi Andrey, > > Am Mittwoch, den 22.05.2019, 00:12 -0700 schrieb Andrey Smirnov: > > Add node for UCS1002 USB charger chip connected to front panel USB and > > replace "regulator-fixed" previously used to control VBUS. > > I've had a similar ve

[PATCH v2] staging: rtl8723bs: core: rtw_mlme_ext: fix warning Unneeded variable: "ret"

2019-05-22 Thread Hariprasad Kelam
This patch fixes below warnings reported by coccicheck drivers/staging/rtl8723bs/core/rtw_mlme_ext.c:1888:14-17: Unneeded variable: "ret". Return "_FAIL" on line 1920 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c:466:5-8: Unneeded variable: "res". Return "_SUCCESS" on line 494 Signed-off-by: Hari

Re: [PATCH 3/3] ARM: dts: imx6: rdu2: Limit USBH1 to Full Speed

2019-05-22 Thread Andrey Smirnov
On Wed, May 22, 2019 at 2:33 AM Lucas Stach wrote: > > Hi Andrey, > > Am Mittwoch, den 22.05.2019, 00:12 -0700 schrieb Andrey Smirnov: > > Cabling used to connect devices to USBH1 on RDU2 does not meet USB > > spec cable quality and cable length requirements to operate at High > > Speed, so limit

Re: [PATCH] checkpatch.pl: Update DT vendor prefix check

2019-05-22 Thread Rob Herring
On Wed, May 22, 2019 at 12:16 PM Joe Perches wrote: > > On Wed, 2019-05-22 at 10:12 -0500, Rob Herring wrote: > > In commit 8122de54602e ("dt-bindings: Convert vendor prefixes to > > json-schema"), vendor-prefixes.txt has been converted to a DT schema. > > Update the checkpatch.pl DT check to extr

Re: [PATCH] proc: report eip and esp for all threads when coredumping

2019-05-22 Thread Andrew Morton
On Wed, 22 May 2019 18:16:14 +0200 Jan Luebbe wrote: > Commit 0a1eb2d474ed ("fs/proc: Stop reporting eip and esp in > /proc/PID/stat") stopped reporting eip/esp and commit fd7d56270b52 > ("fs/proc: Report eip/esp in /prod/PID/stat for coredumping") > reintroduced the feature to fix a regression w

Re: [PATCH 3/3] perf record: Fix s390 missing module symbol and warning for non-root users

2019-05-22 Thread Arnaldo Carvalho de Melo
Em Wed, May 22, 2019 at 04:46:01PM +0200, Thomas Richter escreveu: > Command 'perf record' and 'perf report' on a system without kernel > debuginfo packages uses /proc/kallsyms and /proc/modules to find > addresses for kernel and module symbols. On x86 this works for root > and non-root users. > >

[PATCH] mtd: onenand_base: Avoid fall-through warnings

2019-05-22 Thread Gustavo A. R. Silva
NOTICE THAT: "...we don't know whether we need fallthroughs or breaks there and this is just a change to avoid having new warnings when switching to -Wimplicit-fallthrough but this change might be entirely wrong."[1] See the original thread of discussion here: https://lore.kernel.org/patchwork/p

Re: [RFC] Turn lockdown into an LSM

2019-05-22 Thread James Morris
On Wed, 22 May 2019, Andy Lutomirski wrote: > And I still think it would be nice to have some credible use case for > a more fine grained policy than just the tri-state. Having a lockdown > policy of "may not violate kernel confidentiality except using > kprobes" may be convenient, but it's also

Re: Getting empty callchain from perf_callchain_kernel()

2019-05-22 Thread Josh Poimboeuf
On Fri, May 17, 2019 at 04:15:39PM +0800, Kairui Song wrote: > On Fri, May 17, 2019 at 4:11 PM Peter Zijlstra wrote: > > > > On Fri, May 17, 2019 at 09:46:00AM +0200, Peter Zijlstra wrote: > > > On Thu, May 16, 2019 at 11:51:55PM +, Song Liu wrote: > > > > Hi, > > > > > > > > We found a failur

Re: [PATCH 1/3] perf report: Fix OOM error in TUI mode on s390

2019-05-22 Thread Arnaldo Carvalho de Melo
Em Wed, May 22, 2019 at 04:45:59PM +0200, Thomas Richter escreveu: > Debugging a OOM error using the TUI interface revealed this issue > on s390: > > [tmricht@m83lp54 perf]$ cat /proc/kallsyms |sort > > 0001119b7158 B radix_tree_node_cachep > 0001119b8000 B __bss_stop > 0001119b80

Re: [PATCH 3/3] ARM: dts: imx6: rdu2: Limit USBH1 to Full Speed

2019-05-22 Thread Chris Healy
> > Am Mittwoch, den 22.05.2019, 00:12 -0700 schrieb Andrey Smirnov: > > > Cabling used to connect devices to USBH1 on RDU2 does not meet USB > > > spec cable quality and cable length requirements to operate at High > > > Speed, so limit the port to Full Speed only. > > > > Really? I thought this i

Re: [PATCH] PCI / PM: Don't runtime suspend when device only supports wakeup from D0

2019-05-22 Thread Bjorn Helgaas
On Wed, May 22, 2019 at 11:46:25PM +0800, Kai Heng Feng wrote: > > On May 22, 2019, at 9:48 PM, Bjorn Helgaas wrote: > > On Wed, May 22, 2019 at 11:42:14AM +0800, Kai Heng Feng wrote: > >> at 6:23 AM, Bjorn Helgaas wrote: > >>> On Wed, May 22, 2019 at 12:31:04AM +0800, Kai-Heng Feng wrote: >

Re: [PATCH v2 1/3] ARM: dts: rockchip: disable GPU 500 MHz OPP for veyron

2019-05-22 Thread Doug Anderson
Hi, On Wed, May 22, 2019 at 2:14 AM Heiko Stuebner wrote: > > Am Dienstag, 21. Mai 2019, 00:00:49 CEST schrieb Matthias Kaehlcke: > > The NPLL is the only safe way to generate 500 MHz for the GPU. The > > downstream Chrome OS 3.14 kernel ('official' kernel for veyron > > devices) re-purposes NPLL

Re: [PATCH] rcu: Force inlining of rcu_read_lock()

2019-05-22 Thread Paul E. McKenney
On Tue, May 21, 2019 at 04:48:43PM -0400, Waiman Long wrote: > It is found that when debugging options are turned on, the > rcu_read_lock() function may not be inlined at all. That will make > it harder to debug RCU related problem as the print_lock() function > in lockdep will print "rcu_read_lock

Re: [PATCH] proc/meminfo: add MemKernel counter

2019-05-22 Thread Konstantin Khlebnikov
On Wed, May 22, 2019 at 8:04 PM Roman Gushchin wrote: > > On Wed, May 22, 2019 at 07:09:22PM +0300, Konstantin Khlebnikov wrote: > > On 22.05.2019 18:52, Michal Hocko wrote: > > > On Wed 22-05-19 17:40:09, Konstantin Khlebnikov wrote: > > > > Some kinds of kernel allocations are not accounted or n

Re: [PATCH 2/4] mm/vmap: preload a CPU with one object for split purpose

2019-05-22 Thread Andrew Morton
On Wed, 22 May 2019 17:09:37 +0200 "Uladzislau Rezki (Sony)" wrote: > Introduce ne_fit_preload()/ne_fit_preload_end() functions > for preloading one extra vmap_area object to ensure that > we have it available when fit type is NE_FIT_TYPE. > > The preload is done per CPU and with GFP_KERNEL per

Re: Running linux on qemu omap

2019-05-22 Thread Aaro Koskinen
Hi, On Wed, May 22, 2019 at 11:33:41AM +0200, Corentin Labbe wrote: > qemu-system-arm -M help |grep OMAP > cheetah Palm Tungsten|E aka. Cheetah PDA (OMAP310) > n800 Nokia N800 tablet aka. RX-34 (OMAP2420) > n810 Nokia N810 tablet aka. RX-44 (OMAP2420) >

Re: [PATCH 3/4] mm/vmap: get rid of one single unlink_va() when merge

2019-05-22 Thread Andrew Morton
On Wed, 22 May 2019 17:09:38 +0200 "Uladzislau Rezki (Sony)" wrote: > It does not make sense to try to "unlink" the node that is > definitely not linked with a list nor tree. On the first > merge step VA just points to the previously disconnected > busy area. > > On the second step, check if th

Re: [PATCH 4/4] mm/vmap: move BUG_ON() check to the unlink_va()

2019-05-22 Thread Andrew Morton
On Wed, 22 May 2019 17:09:39 +0200 "Uladzislau Rezki (Sony)" wrote: > Move the BUG_ON()/RB_EMPTY_NODE() check under unlink_va() > function, it means if an empty node gets freed it is a BUG > thus is considered as faulty behaviour. So... this is an expansion of the assertion's coverage?

[PATCH] sched: fix a compilation warning in sched_init()

2019-05-22 Thread Qian Cai
Compiling a kernel with both FAIR_GROUP_SCHED=n and RT_GROUP_SCHED=n will generate a warning using W=1, kernel/sched/core.c: In function 'sched_init': kernel/sched/core.c:5906:32: warning: variable 'ptr' set but not used [-Wunused-but-set-variable] unsigned long alloc_size = 0, ptr;

Re: [RFC PATCH 00/11] bpf, trace, dtrace: DTrace BPF program type implementation and sample use

2019-05-22 Thread Kris Van Hees
On Wed, May 22, 2019 at 04:25:32PM +0200, Peter Zijlstra wrote: > On Tue, May 21, 2019 at 10:56:18AM -0700, Alexei Starovoitov wrote: > > > and no changes are necessary in kernel/events/ring_buffer.c either. > > Let me just NAK them on the principle that I don't see them in my inbox. My apologie

Re: [PATCH] smp,cpumask: Don't call functions on offline CPUs

2019-05-22 Thread Rik van Riel
On Wed, 2019-05-22 at 16:49 +0200, Peter Zijlstra wrote: > On Wed, May 22, 2019 at 03:37:11PM +0100, Andrew Murray wrote: > > > Is perhaps the problem that on_each_cpu_cond() uses > > > cpu_onlne_mask > > > without protection? > > > > Does this prevent racing with a CPU going offline? I guess this

Re: [PATCH] net: phy: lxt: Add suspend/resume support to LXT971 and LXT973.

2019-05-22 Thread Heiner Kallweit
On 22.05.2019 12:01, Christophe Leroy wrote: > All LXT PHYs implement the standard "power down" bit 11 of > BMCR, so this patch adds support using the generic > genphy_{suspend,resume} functions. > > LXT970 is left aside because all registers get cleared upon > "power down" exit. > > Fixes: 0f0ca

Re: [GIT PULL] Immutable branch between LEDs, MFD and REGULATOR

2019-05-22 Thread Jacek Anaszewski
On 5/21/19 11:15 PM, Mark Brown wrote: On Tue, May 21, 2019 at 10:30:38PM +0200, Jacek Anaszewski wrote: regulator: lm363x: Make the gpio register enable flexible regulator: lm363x: Add support for LM36274 Why have these been applied, I haven't reviewed them? As far as I can te

Re: [PATCH] fanotify: remove redundant capable(CAP_SYS_ADMIN)s

2019-05-22 Thread Amir Goldstein
On Wed, May 22, 2019 at 7:32 PM Christian Brauner wrote: > > This removes two redundant capable(CAP_SYS_ADMIN) checks from > fanotify_init(). > fanotify_init() guards the whole syscall with capable(CAP_SYS_ADMIN) at the > beginning. So the other two capable(CAP_SYS_ADMIN) checks are not needed. I

Re: [RFC] Turn lockdown into an LSM

2019-05-22 Thread Stephen Smalley
On 5/22/19 1:08 PM, Andy Lutomirski wrote: On Wed, May 22, 2019 at 9:49 AM Matthew Garrett wrote: On Tue, May 21, 2019 at 7:40 PM James Morris wrote: An LSM could also potentially implement its own policy for the hook. That was my plan. Right now the hook just gets an ASCII description of

Re: [PATCH v4 0/1] Use HMM for ODP v4

2019-05-22 Thread Jason Gunthorpe
On Wed, May 22, 2019 at 01:48:52PM -0400, Jerome Glisse wrote: > From 0b429b2ffbec348e283693cb97d7ffce760d89da Mon Sep 17 00:00:00 2001 > From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Glisse?= > Date: Sat, 8 Dec 2018 15:47:55 -0500 > Subject: [PATCH] RDMA/odp: convert to use HMM for ODP v5 > MIME-Version: 1

Re: 5.2-rc0.8: emacs segfaults?! x220, with 32-bit userland

2019-05-22 Thread Pavel Machek
Hi! I did not notice any new crashes. > > I don't have reproducible test case :-(. I had two or three failures > > so far. > > oki. Could you please send me the output of > dmesg | grep fpu Here you go: Using method `randr'. pavel@duo:~$ uname -a Linux duo 5.2.0-rc1+ #32 SMP Mon May 20 1

Re: [PATCH] lib/sort: Add the sort_r() variant

2019-05-22 Thread Andrew Morton
On Wed, 22 May 2019 13:25:50 +0200 Boris Brezillon wrote: > Some users might need extra context to compare 2 elements. This patch > adds the sort_r() which is similar to the qsort_r() variant of qsort(). > > Signed-off-by: Boris Brezillon > --- > Hello, > > A few more details about this patch

[PATCH] phy: usb: phy-brcm-usb: Remove sysfs attributes upon driver removal

2019-05-22 Thread Florian Fainelli
We are not destroying the sysfs attribute groupe we registered during the probe function which will make subsequent probe calls to that driver fail. Correct that with adding a remove function which only removes those attributes since the reference counting on clocks did its job already. Fixes: 415

Re: [PATCH v3 13/13] epoll: implement epoll_create2() syscall

2019-05-22 Thread Andrew Morton
On Wed, 22 May 2019 13:14:41 +0200 Arnd Bergmann wrote: > > I thought the preferred approach was to wire up the architectures on > > which the submitter has tested the syscall, then allow the arch > > maintainers to enable the syscall independently? > > I'm hoping to change that practice now, as

Re: [PATCH] Fix comments with paths pointing to renamed or moved files.

2019-05-22 Thread Pavel Machek
On Tue 2019-05-21 17:54:30, Lukas Prause wrote: > This patch corrects renamed or moved paths in comments. > > Signed-off-by: Lukas Prause > Signed-off-by: Lennart Glauer Acked-by: Pavel Machek > diff --git a/kernel/power/power.h b/kernel/power/power.h > index 9e58bdc8a562..5de8b0c7f657 100644

Re: [PATCH] PCI / PM: Don't runtime suspend when device only supports wakeup from D0

2019-05-22 Thread Alan Stern
On Wed, 22 May 2019, Bjorn Helgaas wrote: > On Wed, May 22, 2019 at 11:46:25PM +0800, Kai Heng Feng wrote: > > > On May 22, 2019, at 9:48 PM, Bjorn Helgaas wrote: > > > On Wed, May 22, 2019 at 11:42:14AM +0800, Kai Heng Feng wrote: > > >> at 6:23 AM, Bjorn Helgaas wrote: > > >>> On Wed, May 22,

Re: [PATCH] rcu: Force inlining of rcu_read_lock()

2019-05-22 Thread Waiman Long
On 5/22/19 2:18 PM, Paul E. McKenney wrote: > On Tue, May 21, 2019 at 04:48:43PM -0400, Waiman Long wrote: >> It is found that when debugging options are turned on, the >> rcu_read_lock() function may not be inlined at all. That will make >> it harder to debug RCU related problem as the print_lock(

Buenas tardes, por favor, ¿recibió mi mensaje anterior? Hola

2019-05-22 Thread Richard Bello

[PATCH 2/2] cpufreq: brcmstb-avs-cpufreq: Fix types for voltage/frequency

2019-05-22 Thread Florian Fainelli
What we read back from the register is going to be capped at 32-bits, and cpufreq_freq_table.frequency is an unsigned int. Avoid any possible value truncation by using the appropriate return value. Fixes: de322e085995 ("cpufreq: brcmstb-avs-cpufreq: AVS CPUfreq driver for Broadcom STB SoCs") Sign

[PATCH 1/2] cpufreq: brcmstb-avs-cpufreq: Fix initial command check

2019-05-22 Thread Florian Fainelli
There is a logical error in brcm_avs_is_firmware_loaded() whereby if the firmware returns -EINVAL, we will be reporting this as an error. The comment is correct, the code was not. Fixes: de322e085995 ("cpufreq: brcmstb-avs-cpufreq: AVS CPUfreq driver for Broadcom STB SoCs") Signed-off-by: Florian

[PATCH 0/2] cpufreq: brcmstb-avs-cpufreq: Couple fixes

2019-05-22 Thread Florian Fainelli
Hi Rafael, Viresh, These patch series contains two minor fixes for the brcmstb-avs-cpufreq driver. Florian Fainelli (2): cpufreq: brcmstb-avs-cpufreq: Fix initial command check cpufreq: brcmstb-avs-cpufreq: Fix types for voltage/frequency drivers/cpufreq/brcmstb-avs-cpufreq.c | 12 ++---

Re: [PATCH] PCI / PM: Don't runtime suspend when device only supports wakeup from D0

2019-05-22 Thread Lukas Wunner
On Wed, May 22, 2019 at 02:39:56PM -0400, Alan Stern wrote: > According to Kai, PME signalling doesn't work in D0 -- or at least, it > is _documented_ not to work in D0 -- even though it is enabled and the > device claims to support it. > > In any case, I don't really see any point in "runtime sus

Re: [PATCH 0/2] public key: IMA signer logging: Log public key of IMA Signature signer in IMA log

2019-05-22 Thread Ken Goldman
On 5/20/2019 7:15 PM, Lakshmi wrote: On 5/17/19 7:41 AM, Ken Goldman wrote: Hi Ken, Apologize for the delay in responding. Since a platform typically uses only a few signing keys, 4 bytes makes the chance of a collision quite small.  The collision would have to be within the same log, not gl

Re: [PATCH] fanotify: remove redundant capable(CAP_SYS_ADMIN)s

2019-05-22 Thread Christian Brauner
On May 22, 2019 8:29:37 PM GMT+02:00, Amir Goldstein wrote: >On Wed, May 22, 2019 at 7:32 PM Christian Brauner > wrote: >> >> This removes two redundant capable(CAP_SYS_ADMIN) checks from >> fanotify_init(). >> fanotify_init() guards the whole syscall with capable(CAP_SYS_ADMIN) >at the >> beginni

[PATCH] RDMA/mlx5: Use DIV_ROUND_UP_ULL macro to allow 32 bit to build

2019-05-22 Thread Steven Rostedt
From: Steven Rostedt (VMware) When testing 32 bit x86, my build failed with: ERROR: "__udivdi3" [drivers/infiniband/hw/mlx5/mlx5_ib.ko] undefined! It appears that a few non-ULL roundup() calls were made, which uses a normal division against a 64 bit number. This is fine for x86_64, but on 3

Re: [GIT PULL] Immutable branch between LEDs, MFD and REGULATOR

2019-05-22 Thread Jacek Anaszewski
On 5/22/19 7:42 AM, Lee Jones wrote: On Tue, 21 May 2019, Jacek Anaszewski wrote: The following changes since commit a188339ca5a396acc588e5851ed7e19f66b0ebd9: Linux 5.2-rc1 (2019-05-19 15:47:09 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git

Re: [PATCH] signal/usb: Replace kill_pid_info_as_cred with kill_pid_usb_asyncio

2019-05-22 Thread Alan Stern
On Tue, 21 May 2019, Eric W. Biederman wrote: > The usb support for asyncio encoded one of it's values in the wrong > field. It should have used si_value but instead used si_addr which is > not present in the _rt union member of struct siginfo. > > The practical result of this is that on a 64bit

Re: [GIT PULL] Immutable branch between LEDs, MFD and REGULATOR

2019-05-22 Thread Mark Brown
On Wed, May 22, 2019 at 08:27:32PM +0200, Jacek Anaszewski wrote: > On 5/21/19 11:15 PM, Mark Brown wrote: > > On Tue, May 21, 2019 at 10:30:38PM +0200, Jacek Anaszewski wrote: > > >regulator: lm363x: Make the gpio register enable flexible > > >regulator: lm363x: Add support for LM

Re: [PATCH] PCI / PM: Don't runtime suspend when device only supports wakeup from D0

2019-05-22 Thread Kai Heng Feng
> On May 23, 2019, at 2:53 AM, Lukas Wunner wrote: > > On Wed, May 22, 2019 at 02:39:56PM -0400, Alan Stern wrote: >> According to Kai, PME signalling doesn't work in D0 -- or at least, it >> is _documented_ not to work in D0 -- even though it is enabled and the >> device claims to support it.

Re: [PATCH 12/18] locking/atomic: riscv: use s64 for atomic64

2019-05-22 Thread Palmer Dabbelt
On Wed, 22 May 2019 06:22:44 PDT (-0700), mark.rutl...@arm.com wrote: As a step towards making the atomic64 API use consistent types treewide, let's have the s390 atomic64 implementation use s64 as the underlying and apparently the RISC-V one as well? :) type for atomic64_t, rather than long,

Re: [PATCH 11/18] locking/atomic: riscv: fix atomic64_sub_if_positive() offset argument

2019-05-22 Thread Palmer Dabbelt
On Wed, 22 May 2019 06:22:43 PDT (-0700), mark.rutl...@arm.com wrote: Presently the riscv implementation of atomic64_sub_if_positive() takes a 32-bit offset value rather than a 64-bit offset value as it should do. Thus, if called with a 64-bit offset, the value will be unexpectedly truncated to 3

Re: [PATCH 1/3] iio: common: cros_ec_sensors: support protocol v3 message

2019-05-22 Thread Gwendal Grignou
Remove CROS_EC_FIFO_SIZE and "u32 fifo_max_event_count;" from the driver/iio/ code. This code is for a driver - cros-ec-sensor-ring - that is not upstreamable. [see http://lkml.iu.edu/hypermail/linux/kernel/1607.2/01335.html]. The EC interface is fine though, we are working on a new version of the

[PATCH] 9p/cache.c: Fix memory leak in v9fs_cache_session_get_cookie

2019-05-22 Thread Bharath Vedartham
v9fs_cache_session_get_cookie assigns a random cachetag to v9ses->cachetag, if the cachetag is not assigned previously. v9fs_random_cachetag allocates memory to v9ses->cachetag with kmalloc and uses scnprintf to fill it up with a cachetag. But if scnprintf fails, v9ses->cachetag is not freed in t

Re: [PATCH 1/6] arch: riscv: add support for building DTB files from DT source data

2019-05-22 Thread Loys Ollivier
On Thu 11 Apr 2019 at 01:42, Paul Walmsley wrote: > Similar to ARM64, add support for building DTB files from DT source > data for RISC-V boards. > > This patch starts with the infrastructure needed for SiFive boards. > Boards from other vendors would add support here in a similar form. > > Signe

Re: [PATCH 1/3] iio: common: cros_ec_sensors: support protocol v3 message

2019-05-22 Thread Benson Leung
Hi Fabien, On Wed, May 22, 2019 at 04:09:52PM +0200, Fabien Lahoudere wrote: > Version 3 of the EC protocol provides min and max frequencies and fifo > size for EC sensors. > > Signed-off-by: Fabien Lahoudere It looks like this is mainly based on patches from the chromium kernel: https://chromi

Re: [RFC] Turn lockdown into an LSM

2019-05-22 Thread James Morris
On Wed, 22 May 2019, Stephen Smalley wrote: > That seems to violate the intent of lockdown as I understood it, and > turns security_is_locked_down() into a finer-grained capable() call. > Also, if I understand correctly, this could only be done if one were to > disable the lockdown module in th

Re: [PATCH] mm/gup: continue VM_FAULT_RETRY processing event for pre-faults

2019-05-22 Thread Andrew Morton
On Tue, 14 May 2019 17:29:55 +0300 Mike Rapoport wrote: > When get_user_pages*() is called with pages = NULL, the processing of > VM_FAULT_RETRY terminates early without actually retrying to fault-in all > the pages. > > If the pages in the requested range belong to a VMA that has userfaultfd >

[PATCH AUTOSEL 5.1 006/375] io_uring: use cpu_online() to check p->sq_thread_cpu instead of cpu_possible()

2019-05-22 Thread Sasha Levin
From: Shenghui Wang [ Upstream commit 7889f44dd9cee15aff1c3f7daf81ca4dfed48fc7 ] This issue is found by running liburing/test/io_uring_setup test. When test run, the testcase "attempt to bind to invalid cpu" would not pass with messages like: io_uring_setup(1, 0xbfc2f7c8), \ flags: IORING_SE

[PATCH AUTOSEL 5.1 003/375] afs: Fix getting the afs.fid xattr

2019-05-22 Thread Sasha Levin
From: David Howells [ Upstream commit a2f611a3dc317d8ea1c98ad6c54b911cf7f93193 ] The AFS3 FID is three 32-bit unsigned numbers and is represented as three up-to-8-hex-digit numbers separated by colons to the afs.fid xattr. However, with the advent of support for YFS, the FID is now a 64-bit volu

[PATCH AUTOSEL 5.1 008/375] gfs2: Fix occasional glock use-after-free

2019-05-22 Thread Sasha Levin
From: Andreas Gruenbacher [ Upstream commit 9287c6452d2b1f24ea8e84bd3cf6f3c6f267f712 ] This patch has to do with the life cycle of glocks and buffers. When gfs2 metadata or journaled data is queued to be written, a gfs2_bufdata object is assigned to track the buffer, and that is queued to vario

[PATCH AUTOSEL 5.1 010/375] batman-adv: mcast: fix multicast tt/tvlv worker locking

2019-05-22 Thread Sasha Levin
From: Linus Lüssing [ Upstream commit a3c7cd0cdf1107f891aff847ad481e34df727055 ] Syzbot has reported some issues with the locking assumptions made for the multicast tt/tvlv worker: It was able to trigger the WARN_ON() in batadv_mcast_mla_tt_retract() and batadv_mcast_mla_tt_add(). While hard/not

[PATCH AUTOSEL 5.1 018/375] ice: Preserve VLAN Rx stripping settings

2019-05-22 Thread Sasha Levin
From: Tony Nguyen [ Upstream commit e80e76db6c5bbc7a8f8512f3dc630a2170745b0b ] When Tx insertion is set, we are not accounting for the state of Rx stripping. This causes Rx stripping to be enabled any time Tx insertion is changed, even when it's supposed to be disabled. Signed-off-by: Tony Ngu

[PATCH AUTOSEL 5.1 022/375] net: ena: gcc 8: fix compilation warning

2019-05-22 Thread Sasha Levin
From: Sameeh Jubran [ Upstream commit f913308879bc6ae437ce64d878c7b05643ddea44 ] GCC 8 contains a number of new warnings as well as enhancements to existing checkers. The warning - Wstringop-truncation - warns for calls to bounded string manipulation functions such as strncat, strncpy, and stpnc

[PATCH AUTOSEL 5.1 026/375] Bluetooth: Ignore CC events not matching the last HCI command

2019-05-22 Thread Sasha Levin
From: João Paulo Rechi Vita [ Upstream commit f80c5dad7b6467b884c445ffea45985793b4b2d0 ] This commit makes the kernel not send the next queued HCI command until a command complete arrives for the last HCI command sent to the controller. This change avoids a problem with some buggy controllers (s

[PATCH AUTOSEL 5.1 034/375] powerpc/perf: Return accordingly on invalid chip-id in

2019-05-22 Thread Sasha Levin
From: Anju T Sudhakar [ Upstream commit a913e5e8b43be1d3897a141ce61c1ec071cad89c ] Nest hardware counter memory resides in a per-chip reserve-memory. During nest_imc_event_init(), chip-id of the event-cpu is considered to calculate the base memory addresss for that cpu. Return, proper error cond

[PATCH AUTOSEL 5.1 029/375] usb: dwc2: gadget: Increase descriptors count for ISOC's

2019-05-22 Thread Sasha Levin
From: Minas Harutyunyan [ Upstream commit 54f37f56631747075f1f9a2f0edf6ba405e3e66c ] Some function drivers queueing more than 128 ISOC requests at a time. To avoid "descriptor chain full" cases, increasing descriptors count from MAX_DMA_DESC_NUM_GENERIC to MAX_DMA_DESC_NUM_HS_ISOC for ISOC's onl

[PATCH AUTOSEL 5.1 013/375] i40e: Fix of memory leak and integer truncation in i40e_virtchnl.c

2019-05-22 Thread Sasha Levin
From: Martyna Szapar [ Upstream commit 24474f2709af6729b9b1da1c5e160ab62e25e3a4 ] Fixed possible memory leak in i40e_vc_add_cloud_filter function: cfilter is being allocated and in some error conditions the function returns without freeing the memory. Fix of integer truncation from u16 (type of

[PATCH AUTOSEL 5.1 025/375] orangefs: truncate before updating size

2019-05-22 Thread Sasha Levin
From: Martin Brandenburg [ Upstream commit 33713cd09ccdc1e01b10d0782ae60200d4989553 ] Otherwise we race with orangefs_writepage/orangefs_writepages which and does not expect i_size < page_offset. Fixes xfstests generic/129. Signed-off-by: Martin Brandenburg Signed-off-by: Mike Marshall Signe

[PATCH AUTOSEL 5.1 036/375] powerpc/perf: Fix loop exit condition in nest_imc_event_init

2019-05-22 Thread Sasha Levin
From: Anju T Sudhakar [ Upstream commit 860b7d2286236170a36f94946d03ca9888d32571 ] The data structure (i.e struct imc_mem_info) to hold the memory address information for nest imc units is allocated based on the number of nodes in the system. nest_imc_event_init() traverse this struct array to

[PATCH AUTOSEL 5.1 037/375] spi: atmel-quadspi: fix crash while suspending

2019-05-22 Thread Sasha Levin
From: Claudiu Beznea [ Upstream commit e5c27498a0403b270620b1a8a0a66e3efc222fb6 ] atmel_qspi objects are kept in spi_controller objects, so, first get pointer to spi_controller object and then get atmel_qspi object from spi_controller object. Fixes: 2d30ac5ed633 ("mtd: spi-nor: atmel-quadspi: U

[PATCH AUTOSEL 5.1 035/375] powerpc/boot: Fix missing check of lseek() return value

2019-05-22 Thread Sasha Levin
From: Bo YU [ Upstream commit 5d085ec04a000fefb5182d3b03ee46ca96d8389b ] This is detected by Coverity scan: CID: 1440481 Signed-off-by: Bo YU Signed-off-by: Michael Ellerman Signed-off-by: Sasha Levin --- arch/powerpc/boot/addnote.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-)

[PATCH AUTOSEL 5.1 047/375] mt76: remove mt76_queue dependency from tx_queue_skb function pointer

2019-05-22 Thread Sasha Levin
From: Lorenzo Bianconi [ Upstream commit 89a37842b0c13c9e568bf12f4fcbe6507147e41d ] Remove mt76_queue dependency from tx_queue_skb function pointer and rely on mt76_tx_qid instead. This is a preliminary patch to introduce mt76_sw_queue support Signed-off-by: Lorenzo Bianconi Signed-off-by: Fel

[PATCH AUTOSEL 5.1 048/375] x86/ftrace: Set trampoline pages as executable

2019-05-22 Thread Sasha Levin
From: Nadav Amit [ Upstream commit 3c0dab44e22782359a0a706cbce72de99a22aa75 ] Since alloc_module() will not set the pages as executable soon, set ftrace trampoline pages as executable after they are allocated. For the time being, do not change ftrace to use the text_poke() interface. As a resul

[PATCH AUTOSEL 5.1 045/375] ARM: vdso: Remove dependency with the arch_timer driver internals

2019-05-22 Thread Sasha Levin
From: Marc Zyngier [ Upstream commit 1f5b62f09f6b314c8d70b9de5182dae4de1f94da ] The VDSO code uses the kernel helper that was originally designed to abstract the access between 32 and 64bit systems. It worked so far because this function is declared as 'inline'. As we're about to revamp that pa

Re: [PATCH v4 0/1] Use HMM for ODP v4

2019-05-22 Thread Jason Gunthorpe
On Wed, May 22, 2019 at 01:48:52PM -0400, Jerome Glisse wrote: > > > +long ib_umem_odp_map_dma_pages(struct ib_umem_odp *umem_odp, > > > +struct hmm_range *range) > > > { > > > + struct device *device = umem_odp->umem.context->device->dma_device; > > > + struct ib_ucontext

[PATCH AUTOSEL 5.1 049/375] powerpc/watchdog: Use hrtimers for per-CPU heartbeat

2019-05-22 Thread Sasha Levin
From: Nicholas Piggin [ Upstream commit 7ae3f6e130e8dc6188b59e3b4ebc2f16e9c8d053 ] Using a jiffies timer creates a dependency on the tick_do_timer_cpu incrementing jiffies. If that CPU has locked up and jiffies is not incrementing, the watchdog heartbeat timer for all CPUs stops and creates fals

[PATCH AUTOSEL 5.1 046/375] arm64: Fix compiler warning from pte_unmap() with -Wunused-but-set-variable

2019-05-22 Thread Sasha Levin
From: Qian Cai [ Upstream commit 74dd022f9e6260c3b5b8d15901d27ebcc5f21eda ] When building with -Wunused-but-set-variable, the compiler shouts about a number of pte_unmap() users, since this expands to an empty macro on arm64: | mm/gup.c: In function 'gup_pte_range': | mm/gup.c:1727:16: warn

[PATCH AUTOSEL 5.1 060/375] iwlwifi: pcie: don't crash on invalid RX interrupt

2019-05-22 Thread Sasha Levin
From: Johannes Berg [ Upstream commit 30f24eabab8cd801064c5c37589d803cb4341929 ] If for some reason the device gives us an RX interrupt before we're ready for it, perhaps during device power-on with misconfigured IRQ causes mapping or so, we can crash trying to access the queues. Prevent that b

[PATCH AUTOSEL 5.1 065/375] ALSA: hda: fix unregister device twice on ASoC driver

2019-05-22 Thread Sasha Levin
From: Bard liao [ Upstream commit 4d95c51776b2edb4d4ebcea00b6e5a1fe538ce66 ] snd_hda_codec_device_new() is used by both legacy HDA and ASoC driver. However, we will call snd_hdac_device_unregister() in snd_hdac_ext_bus_device_remove() for ASoC device. This patch uses the type flag in hdac_device

[PATCH AUTOSEL 5.1 055/375] x86/modules: Avoid breaking W^X while loading modules

2019-05-22 Thread Sasha Levin
From: Nadav Amit [ Upstream commit f2c65fb3221adc6b73b0549fc7ba892022db9797 ] When modules and BPF filters are loaded, there is a time window in which some memory is both writable and executable. An attacker that has already found another vulnerability (e.g., a dangling pointer) might be able to

[PATCH AUTOSEL 5.1 063/375] scsi: qedi: Abort ep termination if offload not scheduled

2019-05-22 Thread Sasha Levin
From: Manish Rangankar [ Upstream commit f848bfd8e167210a29374e8a678892bed591684f ] Sometimes during connection recovery when there is a failure to resolve ARP, and offload connection was not issued, driver tries to flush pending offload connection work which was not queued up. kernel: WARNING:

[PATCH AUTOSEL 5.1 054/375] scsi: qla2xxx: Fix hardirq-unsafe locking

2019-05-22 Thread Sasha Levin
From: Bart Van Assche [ Upstream commit 300ec7415c1fed5c73660f50c8e14a67e236dc0a ] Since fc_remote_port_delete() must be called with interrupts enabled, do not disable interrupts when calling that function. Remove the lockin calls from around the put_sess() call. This is safe because the functio

[PATCH AUTOSEL 5.1 064/375] s390/kexec_file: Fix detection of text segment in ELF loader

2019-05-22 Thread Sasha Levin
From: Philipp Rudo [ Upstream commit 729829d775c9a5217abc784b2f16087d79c4eec8 ] To register data for the next kernel (command line, oldmem_base, etc.) the current kernel needs to find the ELF segment that contains head.S. This is currently done by checking ifor 'phdr->p_paddr == 0'. This works f

[PATCH AUTOSEL 5.1 053/375] scsi: qla2xxx: Avoid that lockdep complains about unsafe locking in tcm_qla2xxx_close_session()

2019-05-22 Thread Sasha Levin
From: Bart Van Assche [ Upstream commit d4023db71108375e4194e92730ba0d32d7f07813 ] This patch avoids that lockdep reports the following warning: = WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected 5.1.0-rc1-dbg+ #11 Tainted: G

[PATCH AUTOSEL 5.1 076/375] mac80211/cfg80211: update bss channel on channel switch

2019-05-22 Thread Sasha Levin
From: Sergey Matyukevich [ Upstream commit 5dc8cdce1d722c733f8c7af14c5fb595cfedbfa8 ] FullMAC STAs have no way to update bss channel after CSA channel switch completion. As a result, user-space tools may provide inconsistent channel info. For instance, consider the following two commands: $ sudo

[PATCH AUTOSEL 5.0 003/317] afs: Fix getting the afs.fid xattr

2019-05-22 Thread Sasha Levin
From: David Howells [ Upstream commit a2f611a3dc317d8ea1c98ad6c54b911cf7f93193 ] The AFS3 FID is three 32-bit unsigned numbers and is represented as three up-to-8-hex-digit numbers separated by colons to the afs.fid xattr. However, with the advent of support for YFS, the FID is now a 64-bit volu

[PATCH AUTOSEL 5.0 008/317] mmc: core: Verify SD bus width

2019-05-22 Thread Sasha Levin
From: Raul E Rangel [ Upstream commit 9e4be8d03f50d1b25c38e2b59e73b194c130df7d ] The SD Physical Layer Spec says the following: Since the SD Memory Card shall support at least the two bus modes 1-bit or 4-bit width, then any SD Card shall set at least bits 0 and 2 (SD_BUS_WIDTH="0101"). This ch

[PATCH AUTOSEL 5.1 077/375] USB: serial: fix initial-termios handling

2019-05-22 Thread Sasha Levin
From: Johan Hovold [ Upstream commit 579bebe5dd522580019e7b10b07daaf500f9fb1e ] The USB-serial driver init_termios callback is used to override the default initial terminal settings provided by USB-serial core. After a bug was fixed in the original implementation introduced by commit fe1ae7fdd2

[PATCH AUTOSEL 5.1 071/375] net: phy: improve genphy_soft_reset

2019-05-22 Thread Sasha Levin
From: Heiner Kallweit [ Upstream commit 8c90b795e90f7753d23c18e8b95dd71b4a18c5d9 ] PHY's behave differently when being reset. Some reset registers to defaults, some don't. Some trigger an autoneg restart, some don't. So let's also set the autoneg restart bit when resetting. Then PHY behavior sh

[PATCH AUTOSEL 5.1 074/375] net: hns3: use atomic_t replace u32 for arq's count

2019-05-22 Thread Sasha Levin
From: Huazhong Tan [ Upstream commit 30780a8b1677e7409b32ae52a9a84f7d41ae6b43 ] Since irq handler and mailbox task will both update arq's count, so arq's count should use atomic_t instead of u32, otherwise its value may go wrong finally. Fixes: 07a0556a3a73 ("net: hns3: Changes to support ARQ(A

[PATCH AUTOSEL 5.1 073/375] arm64: futex: Fix FUTEX_WAKE_OP atomic ops with non-zero result value

2019-05-22 Thread Sasha Levin
From: Will Deacon [ Upstream commit 84ff7a09c371bc7417eabfda19bf7f113ec917b6 ] Rather embarrassingly, our futex() FUTEX_WAKE_OP implementation doesn't explicitly set the return value on the non-faulting path and instead leaves it holding the result of the underlying atomic operation. This means

[PATCH AUTOSEL 5.1 067/375] net: ethernet: ti: cpsw: fix allmulti cfg in dual_mac mode

2019-05-22 Thread Sasha Levin
From: Grygorii Strashko [ Upstream commit 06095f34f8a0a2c4c83a19514c272699edd5f80b ] Now CPSW ALE will set/clean Host port bit in Unregistered Multicast Flood Mask (UNREG_MCAST_FLOOD_MASK) for every VLAN without checking if this port belongs to VLAN or not when ALLMULTI mode flag is set for nede

[PATCH AUTOSEL 5.0 016/317] dmaengine: tegra210-dma: free dma controller in remove()

2019-05-22 Thread Sasha Levin
From: Sameer Pujar [ Upstream commit f030e419501cb95e961e9ed35c493b5d46a04eca ] Following kernel panic is seen during DMA driver unload->load sequence == Unable to handle kernel paging request at virtual address ff800119

[PATCH AUTOSEL 5.0 012/317] bpftool: exclude bash-completion/bpftool from .gitignore pattern

2019-05-22 Thread Sasha Levin
From: Masahiro Yamada [ Upstream commit a7d006714724de4334c5e3548701b33f7b12ca96 ] tools/bpf/bpftool/.gitignore has the "bpftool" pattern, which is intended to ignore the following build artifact: tools/bpf/bpftool/bpftool However, the .gitignore entry is effective not only for the current d

[PATCH AUTOSEL 5.0 018/317] net: ena: fix: set freed objects to NULL to avoid failing future allocations

2019-05-22 Thread Sasha Levin
From: Sameeh Jubran [ Upstream commit 8ee8ee7fe87bf64738ab4e31be036a7165608b27 ] In some cases when a queue related allocation fails, successful past allocations are freed but the pointer that pointed to them is not set to NULL. This is a problem for 2 reasons: 1. This is generally a bad practic

[PATCH AUTOSEL 5.0 019/317] hv_netvsc: fix race that may miss tx queue wakeup

2019-05-22 Thread Sasha Levin
From: Haiyang Zhang [ Upstream commit 93aa4792c3908eac87ddd368ee0fe0564148232b ] When the ring buffer is almost full due to RX completion messages, a TX packet may reach the "low watermark" and cause the queue stopped. If the TX completion arrives earlier than queue stopping, the wakeup may be m

[PATCH AUTOSEL 5.0 027/317] ASoC: hdmi-codec: unlock the device on startup errors

2019-05-22 Thread Sasha Levin
From: Jerome Brunet [ Upstream commit 30180e8436046344b12813dc954b2e01dfdcd22d ] If the hdmi codec startup fails, it should clear the current_substream pointer to free the device. This is properly done for the audio_startup() callback but for snd_pcm_hw_constraint_eld(). Make sure the pointer c

[PATCH AUTOSEL 5.0 025/317] usb: dwc3: move synchronize_irq() out of the spinlock protected block

2019-05-22 Thread Sasha Levin
From: Marek Szyprowski [ Upstream commit 41a91c606e7d2b74358a944525267cc451c271e8 ] dwc3_gadget_suspend() is called under dwc->lock spinlock. In such context calling synchronize_irq() is not allowed. Move the problematic call out of the protected block to fix the following kernel BUG during syst

[PATCH AUTOSEL 5.0 026/317] usb: gadget: f_fs: don't free buffer prematurely

2019-05-22 Thread Sasha Levin
From: Fei Yang [ Upstream commit 73103c7f958b99561555c3bd1bc1a0809e0b7d61 ] The following kernel panic happens due to the io_data buffer gets deallocated before the async io is completed. Add a check for the case where io_data buffer should be deallocated by ffs_user_copy_worker. [ 41.663334]

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