Re: [PATCH] usbip: usbip_host: fix stub_dev lock context imbalance regression

2019-05-29 Thread Shuah Khan
On 5/29/19 2:25 PM, Greg KH wrote: On Wed, May 29, 2019 at 01:46:15PM -0600, Shuah Khan wrote: Fix the following sparse context imbalance regression introduced in a patch that fixed sleeping function called from invalid context bug. kbuild test robot reported on: tree/branch: https://git.kerne

Re: [PATCH 6/7] keys: Add a keyctl to move a key between keyrings

2019-05-29 Thread Eric Biggers
On Wed, May 22, 2019 at 11:28:45PM +0100, David Howells wrote: > Add a keyctl to atomically move a link to a key from one keyring to > another. The key must exist in "from" keyring and a flag can be given to > cause the operation to fail if there's a matching key already in the "to" > keyring. >

[PATCH 20/22] docs: net: dpio-driver.rst: fix two codeblock warnings

2019-05-29 Thread Mauro Carvalho Chehab
Documentation/networking/device_drivers/freescale/dpaa2/dpio-driver.rst:43: WARNING: Definition list ends without a blank line; unexpected unindent. Documentation/networking/device_drivers/freescale/dpaa2/dpio-driver.rst:63: WARNING: Unexpected indentation. looking for now-outdated files.

[PATCH 12/22] gpu: i915.rst: Fix references to renamed files

2019-05-29 Thread Mauro Carvalho Chehab
WARNING: kernel-doc './scripts/kernel-doc -rst -enable-lineno -function Hardware workarounds ./drivers/gpu/drm/i915/intel_workarounds.c' failed with return code 1 WARNING: kernel-doc './scripts/kernel-doc -rst -enable-lineno -function Logical Rings, Logical Ring Contexts and Execlists ./drivers/

Re: [PATCH v2 1/5] PCI/ATS: Add PRI support for PCIe VF devices

2019-05-29 Thread sathyanarayanan kuppuswamy
On 5/29/19 4:04 PM, Raj, Ashok wrote: On Wed, May 29, 2019 at 05:57:14PM -0500, Bjorn Helgaas wrote: On Mon, May 06, 2019 at 10:20:03AM -0700, sathyanarayanan.kuppusw...@linux.intel.com wrote: From: Kuppuswamy Sathyanarayanan When IOMMU tries to enable PRI for VF device in iommu_enable_dev

Re: [PATCH V2 03/12] clk: tegra: save and restore PLLs state for system

2019-05-29 Thread Stephen Boyd
Quoting Sowjanya Komatineni (2019-05-28 16:08:47) > This patch has implementation of saving and restoring PLL's state to > support system suspend and resume operations. Can you provide some more background on _why_ this patch should exist? That's typically what gets written in the commit text. >

Re: [PATCH V2 04/12] clk: tegra: add support for peripheral clock suspend and resume

2019-05-29 Thread Stephen Boyd
Quoting Sowjanya Komatineni (2019-05-28 16:08:48) > This patch implements peripheral clock context save and restore > to support system suspend and resume operation. Again, why? > diff --git a/drivers/clk/tegra/clk.c b/drivers/clk/tegra/clk.c > index 6f2862eddad7..08b788766564 100644 > --- a/driv

Re: [PATCH] vt: configurable number of console devices

2019-05-29 Thread Theodore Ts'o
On Wed, May 29, 2019 at 03:09:11PM -0700, Trevor Bourget wrote: > Sorry, I hadn't registered that was uapi. You are right, as a > configuration setting it's an odd thing to expose there. > That define won't really be any use to user space except for type > range validation, and as such it would act

Re: [PATCH v2] mm: hwpoison: disable memory error handling on 1GB hugepage

2019-05-29 Thread Mike Kravetz
On 5/28/19 2:49 AM, Wanpeng Li wrote: > Cc Paolo, > Hi all, > On Wed, 14 Feb 2018 at 06:34, Mike Kravetz wrote: >> >> On 02/12/2018 06:48 PM, Michael Ellerman wrote: >>> Andrew Morton writes: >>> On Thu, 08 Feb 2018 12:30:45 + Punit Agrawal wrote: >> >> So I don't thi

Re: [PATCH] clk: imx: imx8mm: correct audio_pll2_clk to audio_pll2_out

2019-05-29 Thread Stephen Boyd
Quoting Shawn Guo (2019-05-23 06:22:36) > On Wed, May 22, 2019 at 01:34:46AM +, Peng Fan wrote: > > There is no audio_pll2_clk registered, it should be audio_pll2_out. > > > > Cc: > > Fixes: ba5625c3e27 ("clk: imx: Add clock driver support for imx8mm") > > Signed-off-by: Peng Fan > > Stephe

Re: memory leak in sctp_process_init

2019-05-29 Thread Marcelo Ricardo Leitner
On Wed, May 29, 2019 at 03:07:09PM -0400, Neil Horman wrote: > --- a/net/sctp/sm_make_chunk.c > +++ b/net/sctp/sm_make_chunk.c > @@ -2419,9 +2419,12 @@ int sctp_process_init(struct sctp_association *asoc, > struct sctp_chunk *chunk, > /* Copy cookie in case we need to resend COOKIE-ECHO. */

Re: [PATCH v6 1/7] Documentation: DT: arm: add support for sockets defining package boundaries

2019-05-29 Thread Andrew F. Davis
On 5/29/19 5:13 PM, Atish Patra wrote: From: Sudeep Holla The current ARM DT topology description provides the operating system with a topological view of the system that is based on leaf nodes representing either cores or threads (in an SMT system) and a hierarchical set of cluster nodes that

linux-next: manual merge of the net-next tree with the net tree

2019-05-29 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: drivers/net/phy/dp83867.c between commits: 2b892649254f ("net: phy: dp83867: Set up RGMII TX delay") 333061b92453 ("net: phy: dp83867: fix speed 10 in sgmii mode") from the net tree and commits: c11669a2757e ("ne

Re: [PATCH] mm/slab_common.c: fix possible spectre-v1 in kmalloc_slab()

2019-05-29 Thread Matthew Wilcox
On Wed, May 29, 2019 at 11:31:06PM +0300, Alexey Dobriyan wrote: > > I think it makes more sense to sanitize size in size_index_elem(), > > don't you? > > > - return (bytes - 1) / 8; > > + return array_index_nospec((bytes - 1) / 8, ARRAY_SIZE(size_index)); > > I think it should be fixed in po

RE: [PATCH 1/1] Drivers: hv: vmbus: Break out ISA independent parts of mshyperv.h

2019-05-29 Thread Michael Kelley
From: Vitaly Kuznetsov Sent: Wednesday, May 29, 2019 8:41 AM > > void __init hyperv_init(void); > > I would actually expect to see hyperv_init() on all architectures so it > can probably go to 'generic' too. > Actually not. The declaration is not needed on all architectures. On ARM64, hype

[PATCH v3 1/1] arm64: dts: rockchip: add core dtsi file for RK3399Pro SoCs

2019-05-29 Thread Jianqun Xu
This patch adds core dtsi file for Rockchip RK3399Pro SoCs, include rk3399.dtsi. Also enable pciei0/pcie_phy for AP to talk to NPU part inside SoC. Signed-off-by: Jianqun Xu --- changes since v2: - only enable pcie0 and pcie_phy nodes, thanks for Heiko and manivannan changes since v1: - remove d

[PATCH v2 1/1] Drivers: hv: vmbus: Break out ISA independent parts of mshyperv.h

2019-05-29 Thread Michael Kelley
Break out parts of mshyperv.h that are ISA independent into a separate file in include/asm-generic. This move facilitates ARM64 code reusing these definitions and avoids code duplication. No functionality or behavior is changed. Signed-off-by: Michael Kelley Reviewed-by: Vitaly Kuznetsov --- Cha

[PATCH v4] ipvs: add checksum support for gue encapsulation

2019-05-29 Thread Jacky Hu
Add checksum support for gue encapsulation with the tun_flags parameter, which could be one of the values below: IP_VS_TUNNEL_ENCAP_FLAG_NOCSUM IP_VS_TUNNEL_ENCAP_FLAG_CSUM IP_VS_TUNNEL_ENCAP_FLAG_REMCSUM Signed-off-by: Jacky Hu --- v4->v3: 1) defer pd assignment after data += GUE_LEN_PRIV v3-

Re: [PATCH] scsi: lpfc: Use *_pool_zalloc rather than *_pool_alloc

2019-05-29 Thread James Smart
On 5/29/2019 1:21 PM, Thomas Meyer wrote: Use *_pool_zalloc rather than *_pool_alloc followed by memset with 0. Signed-off-by: Thomas Meyer --- looks good Reviewed-by: James Smart -- james

Re: [PATCH v2 08/10] Input: elan_i2c - export true width/height

2019-05-29 Thread Peter Hutterer
On Wed, May 29, 2019 at 09:16:38AM +0200, Benjamin Tissoires wrote: > On Wed, May 29, 2019 at 2:12 AM Sean O'Brien wrote: > > > > We do still use a maxed out major axis as a signal for a palm in the > > touchscreen > > logic, but I'm not too concerned because if that axis is maxed out, the > > c

Re: [PATCH] ARM: dts: aspeed: g4: add video engine support

2019-05-29 Thread Joel Stanley
Hi Alexander, On Mon, 27 May 2019 at 11:28, Alexander Filippov wrote: > > Add a node to describe the video engine and VGA scratch registers on > AST2400. The scratch registers are unrelated to the video engine. As Andrew pointed out, the bindings are not upstream either. Can you re-spin this pa

Re: [RFC 6/7] mm: extend process_madvise syscall to support vector arrary

2019-05-29 Thread Minchan Kim
On Wed, May 29, 2019 at 12:14:47PM +0800, Hillf Danton wrote: > > On Mon, 20 May 2019 12:52:53 +0900 Minchan Kim wrote: > > Example) > > > Better if the following stuff is stored somewhere under the > tools/testing directory. Sure, I will do once we figure out RFC stage.

Re: [RFC 5/7] mm: introduce external memory hinting API

2019-05-29 Thread Minchan Kim
On Wed, May 29, 2019 at 11:41:23AM +0800, Hillf Danton wrote: > > On Mon, 20 May 2019 12:52:52 +0900 Minchan Kim wrote: > > --- a/arch/x86/entry/syscalls/syscall_64.tbl > > +++ b/arch/x86/entry/syscalls/syscall_64.tbl > > @@ -355,6 +355,7 @@ > > 425common io_uring_setup __x64_sy

Re: [RFC 3/7] mm: introduce MADV_COLD

2019-05-29 Thread Minchan Kim
On Tue, May 28, 2019 at 10:54:32PM +0800, Hillf Danton wrote: > > On Mon, 20 May 2019 12:52:50 +0900 Minchan Kim wrote: > > +unsigned long reclaim_pages(struct list_head *page_list) > > +{ > > + int nid = -1; > > + unsigned long nr_isolated[2] = {0, }; > > + unsigned long nr_reclaimed = 0; >

Re: [PATCH v5] x86/mm/KASLR: Fix the size of vmemmap section

2019-05-29 Thread Baoquan He
Hi, On 05/29/19 at 01:14pm, Sasha Levin wrote: > Hi, > > [This is an automated email] > > This commit has been processed because it contains a -stable tag. > The stable tag indicates that it's relevant for the following trees: all > > The bot has tested the following trees: v5.1.4, v5.0.18, v4.

[PATCH] dlpar: Fix a missing-check bug in dlpar_parse_cc_property()

2019-05-29 Thread Gen Zhang
In dlpar_parse_cc_property(), 'prop->name' is allocated by kstrdup(). kstrdup() may return NULL, so it should be checked and handle error. And prop should be freed if 'prop->name' is NULL. Signed-off-by: Gen Zhang Acked-by: Nathan Lynch --- diff --git a/arch/powerpc/platforms/pseries/dlpar.c b/

[PATCHv3] fs/proc: allow reporting eip/esp for all coredumping threads

2019-05-29 Thread John Ogness
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 with userspace core dump handlers (such as minicoredumper). Bec

Re: [RFC 7/7] mm: madvise support MADV_ANONYMOUS_FILTER and MADV_FILE_FILTER

2019-05-29 Thread Minchan Kim
On Wed, May 29, 2019 at 12:36:04PM +0800, Hillf Danton wrote: > > On Mon, 20 May 2019 12:52:54 +0900 Minchan Kim wrote: > > > > With that, user could call a process_madvise syscall simply with a entire > > range(0x0 - 0x) but either of MADV_ANONYMOUS_FILTER and > > MADV_FILE_FILTE

[PATCH bpf-next 5/5] bpf: move memory size checks to bpf_map_charge_init()

2019-05-29 Thread Roman Gushchin
Most bpf map types doing similar checks and bytes to pages conversion during memory allocation and charging. Let's unify these checks by moving them into bpf_map_charge_init(). Signed-off-by: Roman Gushchin --- include/linux/bpf.h | 2 +- kernel/bpf/arraymap.c | 8 +---

Re: [PATCH v2] extcon: arizona: Correct error handling on regmap_update_bits_check

2019-05-29 Thread Chanwoo Choi
Hi Charles, On 19. 5. 29. 오후 6:46, Charles Keepax wrote: > Ensure the case when regmap_update_bits_check fails and the change > variable is not updated is handled correctly. > > Signed-off-by: Charles Keepax > --- > > Changes since v1: > - Print error message in driver remove > > Thanks, > Ch

[PATCH bpf-next 0/5] bpf: bpf maps memory accounting cleanup

2019-05-29 Thread Roman Gushchin
During my work on memcg-based memory accounting for bpf maps I've done some cleanups and refactorings of the existing memlock rlimit-based code. It makes it more robust, unifies size to pages conversion, size checks and corresponding error codes. Also it adds coverage for cgroup local storage and s

[PATCH bpf-next 1/5] bpf: add memlock precharge check for cgroup_local_storage

2019-05-29 Thread Roman Gushchin
Cgroup local storage maps lack the memlock precharge check, which is performed before the memory allocation for most other bpf map types. Let's add it in order to unify all map types. Signed-off-by: Roman Gushchin --- kernel/bpf/local_storage.c | 11 +-- 1 file changed, 9 insertions(+),

[PATCH bpf-next 3/5] bpf: group memory related fields in struct bpf_map_memory

2019-05-29 Thread Roman Gushchin
Group "user" and "pages" fields of bpf_map into the bpf_map_memory structure. Later it can be extended with "memcg" and other related information. The main reason for a such change (beside cosmetics) is to pass bpf_map_memory structure to charging functions before the actual allocation of bpf_map.

[PATCH bpf-next 4/5] bpf: rework memlock-based memory accounting for maps

2019-05-29 Thread Roman Gushchin
In order to unify the existing memlock charging code with the memcg-based memory accounting, which will be added later, let's rework the current scheme. Currently the following design is used: 1) .alloc() callback optionally checks if the allocation will likely succeed using bpf_map_prechar

[PATCH bpf-next 2/5] bpf: add memlock precharge for socket local storage

2019-05-29 Thread Roman Gushchin
Socket local storage maps lack the memlock precharge check, which is performed before the memory allocation for most other bpf map types. Let's add it in order to unify all map types. Signed-off-by: Roman Gushchin --- net/core/bpf_sk_storage.c | 12 ++-- 1 file changed, 10 insertions(+)

[PATCH v3 0/3] KVM: Yield to IPI target if necessary

2019-05-29 Thread Wanpeng Li
The idea is from Xen, when sending a call-function IPI-many to vCPUs, yield if any of the IPI target vCPUs was preempted. 17% performance increasement of ebizzy benchmark can be observed in an over-subscribe environment. (w/ kvm-pv-tlb disabled, testing TLB flush call-function IPI-many since ca

[PATCH v3 2/3] KVM: X86: Implement PV sched yield hypercall

2019-05-29 Thread Wanpeng Li
From: Wanpeng Li The target vCPUs are in runnable state after vcpu_kick and suitable as a yield target. This patch implements the sched yield hypercall. 17% performance increasement of ebizzy benchmark can be observed in an over-subscribe environment. (w/ kvm-pv-tlb disabled, testing TLB flush

[PATCH v3 3/3] KVM: X86: Expose PV_SCHED_YIELD CPUID feature bit to guest

2019-05-29 Thread Wanpeng Li
From: Wanpeng Li Expose PV_SCHED_YIELD feature bit to guest, the guest can check this feature bit before using paravirtualized sched yield. Cc: Paolo Bonzini Cc: Radim Krčmář Cc: Liran Alon Signed-off-by: Wanpeng Li --- Documentation/virtual/kvm/cpuid.txt | 4 arch/x86/kvm/cpuid.c

[PATCH v3 1/3] KVM: X86: Yield to IPI target if necessary

2019-05-29 Thread Wanpeng Li
From: Wanpeng Li When sending a call-function IPI-many to vCPUs, yield if any of the IPI target vCPUs was preempted, we just select the first preempted target vCPU which we found since the state of target vCPUs can change underneath and to avoid race conditions. Cc: Paolo Bonzini Cc: Radim Krčm

Re: [PATCH v2 2/3] KVM: X86: Implement PV sched yield hypercall

2019-05-29 Thread Wanpeng Li
On Wed, 29 May 2019 at 20:28, Liran Alon wrote: > > > > > On 28 May 2019, at 3:53, Wanpeng Li wrote: > > > > From: Wanpeng Li > > > > The target vCPUs are in runnable state after vcpu_kick and suitable > > as a yield target. This patch implements the sched yield hypercall. > > > > 17% performace

[PATCH] mpt3sas_ctl: fix double-fetch bug in _ctl_ioctl_main()

2019-05-29 Thread Gen Zhang
In _ctl_ioctl_main(), 'ioctl_header' is fetched the first time from userspace. 'ioctl_header.ioc_number' is then checked. The legal result is saved to 'ioc'. Then, in condition MPT3COMMAND, the whole struct is fetched again from the userspace. Then _ctl_do_mpt_command() is called, 'ioc' and 'karg

Re: [PATCHv3] fs/proc: allow reporting eip/esp for all coredumping threads

2019-05-29 Thread Andrew Morton
(ooh, Greg, let me do it!) On Thu, 30 May 2019 02:58:59 +0200 John Ogness 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

[PATCH] tegra-hsp: fix a missing-check bug in tegra_hsp_doorbell_create()

2019-05-29 Thread Gen Zhang
In tegra_hsp_doorbell_create(), 'db->name' is allocated by devm_kstrdup_const(). It returns NULL when fails. So 'db->name' should be checked. Signed-off-by: Gen Zhang Acked-by: Thierry Reding --- diff --git a/drivers/mailbox/tegra-hsp.c b/drivers/mailbox/tegra-hsp.c index 11fc9fd..b613c46 10064

RE: [PATCH] clk: imx: imx8mm: correct audio_pll2_clk to audio_pll2_out

2019-05-29 Thread Peng Fan
Hi Stephen, > Subject: Re: [PATCH] clk: imx: imx8mm: correct audio_pll2_clk to > audio_pll2_out > > Quoting Shawn Guo (2019-05-23 06:22:36) > > On Wed, May 22, 2019 at 01:34:46AM +, Peng Fan wrote: > > > There is no audio_pll2_clk registered, it should be audio_pll2_out. > > > > > > Cc: > >

Re: [PATCH] fdomain: Add register definitions

2019-05-29 Thread Martin K. Petersen
Ondrej, > Add register bit definitions from documentation to header file and use > them instead of magic constants. No changes to generated binary. Applied to 5.3/scsi-queue, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [LKP] [SUNRPC] 0472e47660: fsmark.app_overhead 16.0% regression

2019-05-29 Thread Xing Zhengjun
Hi Trond, On 5/20/2019 1:54 PM, kernel test robot wrote: Greeting, FYI, we noticed a 16.0% improvement of fsmark.app_overhead due to commit: commit: 0472e476604998c127f3c80d291113e77c5676ac ("SUNRPC: Convert socket page send code to use iov_iter()") https://git.kernel.org/cgit/linux/kernel/g

Re: [PATCH net-next 3/3] tcp: remove redundant new line from tcp_event_sk_skb

2019-05-29 Thread Yafang Shao
On Wed, May 29, 2019 at 9:08 PM Tony Lu wrote: > > This removes '\n' from trace event class tcp_event_sk_skb to avoid > redundant new blank line and make output compact. > > Signed-off-by: Tony Lu Acked-by: Yafang Shao > --- > include/trace/events/tcp.h | 2 +- > 1 file changed, 1 insertion(+

Re: [PATCH v1] mm: hugetlb: soft-offline: fix wrong return value of soft offline

2019-05-29 Thread Naoya Horiguchi
Hi Mike, On Wed, May 29, 2019 at 11:44:50AM -0700, Mike Kravetz wrote: > On 5/26/19 11:06 PM, Naoya Horiguchi wrote: > > Soft offline events for hugetlb pages return -EBUSY when page migration > > succeeded and dissolve_free_huge_page() failed, which can happen when > > there're surplus hugepages.

Re: [PATCH] scsi: fix typos in code comments

2019-05-29 Thread Martin K. Petersen
Weitao, > fix abord to abort Updated patch header to reflect the pm8001 driver and applied to 5.3/scsi-queue. Thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH i2c/slave-mqueue v5] i2c: slave-mqueue: add a slave backend to receive and queue messages

2019-05-29 Thread Wang, Haiyue
在 2019-05-30 07:11, Eduardo Valentin 写道: this code goes access and modify data here, e.g. msg->len and msg->buf. On this case (I2C_SLAVE_WRITE_RECEIVED), this code wont protect access. This can cause concurrence issues if you receive an IRQ when the user is on your bin_read(). User will not

Re: [PATCH] arm64: break while loop if task had been rescheduled

2019-05-29 Thread tengfeif
On 2019-05-22 17:04, Anshuman Khandual wrote: On 05/21/2019 02:50 PM, Tengfei Fan wrote: While printing a task's backtrace and this task isn't current task, it is possible that task's fp and fp+8 have the same value, so cannot break the while loop. This can break while loop if this task had been

RE: [v5, PATCH] net: stmmac: add support for hash table size 128/256 in dwmac4

2019-05-29 Thread biao huang
Hi Jose, Flow control is disabled in v5 commit. I tried "insmod stmmac flow_ctrl=1", and the output log shows self test pass: ethtool -t eth0 The test result is PASS The test extra info: 1. MAC Loopback

Re: [PATCH] fdomain: Add PCMCIA support

2019-05-29 Thread Martin K. Petersen
Ondrej, > Add PCMCIA card support to Future Domain SCSI driver. > > Tested with IBM SCSI PCMCIA Adapter 40G1890. Applied to 5.3/scsi-queue, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [Patch v2] target/iscsi: fix possible condition with no effect (if == else)

2019-05-29 Thread Martin K. Petersen
Hariprasad, > fix below warning reported by coccicheck > > drivers/target/iscsi/iscsi_target_nego.c:175:6-8: WARNING: possible > condition with no effect (if == else) Applied to 5.3/scsi-queue, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] ptrace: restore smp_rmb() in __ptrace_may_access()

2019-05-29 Thread Eric W. Biederman
Jann Horn writes: > I'm actually trying to get rid of the ->mm access in > __ptrace_may_access() entirely by moving the dumpability and the > user_ns into the signal_struct, but I don't have patches for that > ready (yet). Do you have a plan for dealing with old linux-threads style threads where

Re: [PATCH, RFC] byteorder: sanity check toolchain vs kernel endianess

2019-05-29 Thread Maciej Rozycki
On Fri, 12 Apr 2019, Christoph Hellwig wrote: > diff --git a/include/uapi/linux/byteorder/big_endian.h > b/include/uapi/linux/byteorder/big_endian.h > index 2199adc6a6c2..34a5864526d2 100644 > --- a/include/uapi/linux/byteorder/big_endian.h > +++ b/include/uapi/linux/byteorder/big_endian.h > @@ -

Re: [PATCH 8/8] ceph: hold i_ceph_lock when removing caps for freeing inode

2019-05-29 Thread Yan, Zheng
On 5/29/19 9:14 PM, Sasha Levin wrote: Hi, [This is an automated email] This commit has been processed because it contains a -stable tag. The stable tag indicates that it's relevant for the following trees: all The bot has tested the following trees: v5.1.4, v5.0.18, v4.19.45, v4.14.121, v4.9

Re: pselect/etc semantics

2019-05-29 Thread Eric W. Biederman
Arnd Bergmann writes: > On Wed, May 29, 2019 at 6:12 PM Oleg Nesterov wrote: >> >> Al, Linus, Eric, please help. >> >> The previous discussion was very confusing, we simply can not understand each >> other. >> >> To me everything looks very simple and clear, but perhaps I missed something >> obv

Re: [PATCH][next] scsi: hpsa: fix an uninitialized read and dereference of pointer dev

2019-05-29 Thread Martin K. Petersen
Colin, > Currently the check for a lockup_detected failure exits via the label > return_reset_status that reads and dereferences an uninitialized > pointer dev. Fix this by ensuring dev is inintialized to null. Applied to 5.3/scsi-queue, thanks! -- Martin K. Petersen Oracle Linux Engine

Re: [PATCH] kasan: add memory corruption identification for software tag-based mode

2019-05-29 Thread Walter Wu
On Wed, 2019-05-29 at 12:00 +0200, Dmitry Vyukov wrote: > > > There can be multiple qobjects in the quarantine associated with the > > > address, right? If so, we need to find the last one rather then a > > > random one. > > > > > The qobject includes the address which has tag and range, corruption

Re: [PATCH v2] scsi: smartpqi: properly set both the DMA mask and the coherent DMA mask in pqi_pci_init()

2019-05-29 Thread Martin K. Petersen
Lianbo, > When SME is enabled, the smartpqi driver won't work on the HP DL385 > G10 machine, which causes the failure of kernel boot because it fails > to allocate pqi error buffer. Please refer to the kernel log: Applied to 5.2/scsi-fixes, thanks! -- Martin K. Petersen Oracle Linux Engi

Re: [LKP] [SUNRPC] 0472e47660: fsmark.app_overhead 16.0% regression

2019-05-29 Thread Trond Myklebust
Hi Xing, On Thu, 2019-05-30 at 09:35 +0800, Xing Zhengjun wrote: > Hi Trond, > > On 5/20/2019 1:54 PM, kernel test robot wrote: > > Greeting, > > > > FYI, we noticed a 16.0% improvement of fsmark.app_overhead due to > > commit: > > > > > > commit: 0472e476604998c127f3c80d291113e77c5676ac ("SUN

[PATCH] sh: configs: remove CONFIG_LOGFS from defconfig

2019-05-29 Thread Kefeng Wang
After commit 1d0fd57a50aa ("logfs: remove from tree"), logfs was removed, drop CONFIG_LOGFS from all defconfigs. Signed-off-by: Kefeng Wang --- arch/sh/configs/sdk7786_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/sh/configs/sdk7786_defconfig b/arch/sh/configs/sdk7786_defcon

Re: [PATCH] scsi: scsi_dh_alua: Fix possible null-ptr-deref

2019-05-29 Thread Martin K. Petersen
YueHaibing, > If alloc_workqueue fails in alua_init, it should return -ENOMEM, > otherwise it will trigger null-ptr-deref while unloading module which > calls destroy_workqueue dereference wq->lock like this: Applied to 5.2/scsi-fixes. Thanks! -- Martin K. Petersen Oracle Linux Engineeri

Re: [PATCH] scsi: lpfc: Use *_pool_zalloc rather than *_pool_alloc

2019-05-29 Thread Martin K. Petersen
Thomas, > Use *_pool_zalloc rather than *_pool_alloc followed by memset with 0. Applied to 5.3/scsi-queue. Thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: question on lazy tlb flush

2019-05-29 Thread Zhenzhong Duan
On 2019/5/29 22:17, Rik van Riel wrote: On Wed, 2019-05-29 at 12:54 +0800, Zhenzhong Duan wrote: Hi Maintainers, A question raised when I learned below code. Appreciate any help me understand the code. void native_flush_tlb_others(const struct cpumask *cpumask,

Re: [PATCH 1/2] scsi: libsas: only clear phy->in_shutdown after shutdown event done

2019-05-29 Thread Martin K. Petersen
Jason, > When the event queue is full of phy up and down events and reached the > threshold, we will queue a shutdown-event, and set phy->in_shutdown so > that we will not queue a shutdown-event again. But before the > shutdown-event can be executed, every phy-down event will clear > phy->in_shu

Re: [PATCH v2] scsi: libsas: no need to join wide port again in sas_ex_discover_dev()

2019-05-29 Thread Martin K. Petersen
Jason, > Since we are processing events synchronously now, the second call of > sas_ex_join_wide_port() in sas_ex_discover_dev() is not needed. There > will be no races with other works in disco workqueue. So remove the > second sas_ex_join_wide_port(). Applied to 5.3/scsi-queue, thanks! -- M

Re: [RFC 6/7] mm: extend process_madvise syscall to support vector arrary

2019-05-29 Thread Minchan Kim
On Wed, May 29, 2019 at 12:33:52PM +0200, Michal Hocko wrote: > On Wed 29-05-19 03:08:32, Daniel Colascione wrote: > > On Mon, May 27, 2019 at 12:49 AM Minchan Kim wrote: > > > > > > On Tue, May 21, 2019 at 12:37:26PM +0200, Michal Hocko wrote: > > > > On Tue 21-05-19 19:26:13, Minchan Kim wrote:

RE: [PATCH] usb: dwc3: Enable the USB snooping

2019-05-29 Thread Ran Wang
Hi Felipe, On Wednesday, May 29, 2019 18:25, Felipe Balbi wrote: > > Hi, > > Ran Wang writes: > >> >> >> c) WHAT does this mean for PCI devices? > > > > According to DWC3 data book, I think this (PCI) mean to the case of 'master > bus type = Native' > > The data book describes this feature as '

Re: [PATCH v2] scsi: smartpqi: properly set both the DMA mask and the coherent DMA mask in pqi_pci_init()

2019-05-29 Thread lijiang
在 2019年05月30日 10:00, Martin K. Petersen 写道: > > Lianbo, > >> When SME is enabled, the smartpqi driver won't work on the HP DL385 >> G10 machine, which causes the failure of kernel boot because it fails >> to allocate pqi error buffer. Please refer to the kernel log: > > Applied to 5.2/scsi-fixes

Re: [PATCH] mpt3sas_ctl: fix double-fetch bug in _ctl_ioctl_main()

2019-05-29 Thread Martin K. Petersen
Gen, > In _ctl_ioctl_main(), 'ioctl_header' is fetched the first time from > userspace. 'ioctl_header.ioc_number' is then checked. The legal result > is saved to 'ioc'. Then, in condition MPT3COMMAND, the whole struct is > fetched again from the userspace. Then _ctl_do_mpt_command() is called,

Re: [PATCH -next] scsi: megaraid_sas: remove set but not used variable 'cur_state'

2019-05-29 Thread Martin K. Petersen
YueHaibing, > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/scsi/megaraid/megaraid_sas_base.c: In function > megasas_transition_to_ready: > drivers/scsi/megaraid/megaraid_sas_base.c:3900:6: warning: variable cur_state > set but not used [-Wunused-but-set-variable] Applied to 5.3/

Re: [PATCH -next] scsi: megaraid_sas: remove set but not used variables 'host' and 'wait_time'

2019-05-29 Thread Martin K. Petersen
YueHaibing, > Fixes gcc '-Wunused-but-set-variable' warnings: > > drivers/scsi/megaraid/megaraid_sas_base.c: In function megasas_suspend: > drivers/scsi/megaraid/megaraid_sas_base.c:7269:20: warning: variable host set > but not used [-Wunused-but-set-variable] > drivers/scsi/megaraid/megaraid_s

RE: [PATCH] rtw88: Remove set but not used variable 'ip_sel' and 'orig'

2019-05-29 Thread Tony Chuang
> -Original Message- > From: YueHaibing [mailto:yuehaib...@huawei.com] > Sent: Wednesday, May 29, 2019 10:58 PM > To: Tony Chuang; kv...@codeaurora.org; da...@davemloft.net > Cc: linux-kernel@vger.kernel.org; net...@vger.kernel.org; > linux-wirel...@vger.kernel.org; YueHaibing > Subject:

Re: [PATCH v2] message/fusion/mptbase.c: Use kmemdup instead of memcpy and kmalloc

2019-05-29 Thread Martin K. Petersen
Bharath, > Replace kmalloc + memcpy with kmemdup. Applied to 5.3/scsi-queue. Thanks. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] arm64: break while loop if task had been rescheduled

2019-05-29 Thread tengfeif
On 2019-05-24 18:41, Mark Rutland wrote: On Tue, May 21, 2019 at 05:20:04PM +0800, Tengfei Fan wrote: While printing a task's backtrace and this task isn't current task, it is possible that task's fp and fp+8 have the same value, so cannot break the while loop. This can break while loop if this

Re: [PATCH 2/2] net: macb: Add support for SiFive FU540-C000

2019-05-29 Thread Palmer Dabbelt
On Fri, 24 May 2019 06:48:47 PDT (-0700), and...@lunn.ch wrote: On Fri, May 24, 2019 at 10:22:06AM +0530, Yash Shah wrote: On Thu, May 23, 2019 at 8:24 PM Andrew Lunn wrote: > > > +static int fu540_macb_tx_set_rate(struct clk_hw *hw, unsigned long rate, > > + unsig

Re: [PATCH] mm: fix trying to reclaim unevicable LRU page

2019-05-29 Thread Minchan Kim
On Tue, May 28, 2019 at 05:14:07PM +0200, Michal Hocko wrote: > [Cc Pankaj Suryawanshi who has reported a similar problem > http://lkml.kernel.org/r/sg2pr02mb309806967ae91179cafec34be8...@sg2pr02mb3098.apcprd02.prod.outlook.com] > > On Fri 24-05-19 16:11:14, Minchan Kim wrote: > > There was below

Re: [PATCH v2 3/5] PCI/ATS: Skip VF ATS initialization if PF does not implement it

2019-05-29 Thread Bjorn Helgaas
On Mon, May 06, 2019 at 10:20:05AM -0700, sathyanarayanan.kuppusw...@linux.intel.com wrote: > From: Kuppuswamy Sathyanarayanan > > If PF does not implement ATS and VF implements/uses it, it might lead to > runtime issues. Also, as per spec r4.0, sec 9.3.7.8, PF should implement > ATS if VF imple

[PATCH 2/3] pinctrl: freescale: Add i.MX8MN pinctrl driver support

2019-05-29 Thread Anson . Huang
From: Anson Huang Add the pinctrl driver support for i.MX8MN. Signed-off-by: Anson Huang --- drivers/pinctrl/freescale/Kconfig | 7 + drivers/pinctrl/freescale/Makefile | 1 + drivers/pinctrl/freescale/pinctrl-imx8mn.c | 348 + 3 files changed,

[PATCH 3/3] arm64: defconfig: Select CONFIG_PINCTRL_IMX8MN by default

2019-05-29 Thread Anson . Huang
From: Anson Huang Enable CONFIG_PINCTRL_IMX8MN by default to support i.MX8MN pinctrl driver. Signed-off-by: Anson Huang --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 7c7b6b5..8d4f25c 100644

[PATCH 1/3] dt-bindings: imx: Add pinctrl binding doc for i.MX8MN

2019-05-29 Thread Anson . Huang
From: Anson Huang Add binding doc for i.MX8MN pinctrl driver. Signed-off-by: Anson Huang --- .../bindings/pinctrl/fsl,imx8mn-pinctrl.txt| 39 ++ arch/arm64/boot/dts/freescale/imx8mn-pinfunc.h | 646 + 2 files changed, 685 insertions(+) create mode 100644 Docu

[PATCH 5.1 013/405] tracing: Add a check_val() check before updating cond_snapshot() track_val

2019-05-29 Thread Greg Kroah-Hartman
From: Tom Zanussi commit 9b2ca371b1505a547217b244f903ad3fb86fa5b4 upstream. Without this check a snapshot is taken whenever a bucket's max is hit, rather than only when the global max is hit, as it should be. Before: In this example, we do a first run of the workload (cyclictest), examine

[PATCH 5.1 020/405] arm64: Kconfig: Make ARM64_PSEUDO_NMI depend on BROKEN for now

2019-05-29 Thread Greg Kroah-Hartman
From: Will Deacon commit 96a13f57b946be7a6c10405e4bd780c0b6b6fe63 upstream. Although we merged support for pseudo-nmi using interrupt priority masking in 5.1, we've since uncovered a number of non-trivial issues with the implementation. Although there are patches pending to address these problem

[PATCH 5.1 017/405] KVM: nVMX: Fix using __this_cpu_read() in preemptible context

2019-05-29 Thread Greg Kroah-Hartman
From: Wanpeng Li commit 541e886f7972cc647804dbb4909189e67987a945 upstream. BUG: using __this_cpu_read() in preemptible [] code: qemu-system-x86/4590 caller is nested_vmx_enter_non_root_mode+0xebd/0x1790 [kvm_intel] CPU: 4 PID: 4590 Comm: qemu-system-x86 Tainted: G OE

[PATCH 5.1 010/405] crypto: vmx - CTR: always increment IV as quadword

2019-05-29 Thread Greg Kroah-Hartman
From: Daniel Axtens commit 009b30ac7444c17fae34c4f435ebce8e8e2b3250 upstream. The kernel self-tests picked up an issue with CTR mode: alg: skcipher: p8_aes_ctr encryption test failed (wrong result) on test vector 3, cfg="uneven misaligned splits, may sleep" Test vector 3 has an IV of F

[PATCH 5.1 004/405] KVM: x86: fix return value for reserved EFER

2019-05-29 Thread Greg Kroah-Hartman
From: Paolo Bonzini commit 66f61c92889ff3ca365161fb29dd36d6354682ba upstream. Commit 11988499e62b ("KVM: x86: Skip EFER vs. guest CPUID checks for host-initiated writes", 2019-04-02) introduced a "return false" in a function returning int, and anyway set_efer has a "nonzero on error" conventon s

[PATCH 5.1 026/405] Btrfs: avoid fallback to transaction commit during fsync of files with holes

2019-05-29 Thread Greg Kroah-Hartman
From: Filipe Manana commit ebb929060aeb162417b4c1307e63daee47b208d9 upstream. When we are doing a full fsync (bit BTRFS_INODE_NEEDS_FULL_SYNC set) of a file that has holes and has file extent items spanning two or more leafs, we can end up falling to back to a full transaction commit due to a lo

[PATCH 5.1 053/405] mmc: core: Verify SD bus width

2019-05-29 Thread Greg Kroah-Hartman
[ 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 change verifies the card

[PATCH 5.1 007/405] sbitmap: fix improper use of smp_mb__before_atomic()

2019-05-29 Thread Greg Kroah-Hartman
From: Andrea Parri commit a0934fd2b1208458e55fc4b48f55889809fce666 upstream. This barrier only applies to the read-modify-write operations; in particular, it does not apply to the atomic_set() primitive. Replace the barrier with an smp_mb(). Fixes: 6c0ca7ae292ad ("sbitmap: fix wakeup hang afte

[PATCH 5.1 006/405] bio: fix improper use of smp_mb__before_atomic()

2019-05-29 Thread Greg Kroah-Hartman
From: Andrea Parri commit f381c6a4bd0ae0fde2d6340f1b9bb0f58d915de6 upstream. This barrier only applies to the read-modify-write operations; in particular, it does not apply to the atomic_set() primitive. Replace the barrier with an smp_mb(). Fixes: dac56212e8127 ("bio: skip atomic inc/dec of -

[PATCH 5.1 008/405] Revert "scsi: sd: Keep disk read-only when re-reading partition"

2019-05-29 Thread Greg Kroah-Hartman
From: Martin K. Petersen commit 8acf608e602f6ec38b7cc37b04c80f1ce9a1a6cc upstream. This reverts commit 20bd1d026aacc5399464f8328f305985c493cde3. This patch introduced regressions for devices that come online in read-only state and subsequently switch to read-write. Given how the partition code

[PATCH 5.1 033/405] fbdev: fix WARNING in __alloc_pages_nodemask bug

2019-05-29 Thread Greg Kroah-Hartman
From: Jiufei Xue commit 8c40292be9169a9cbe19aadd1a6fc60cbd1af82f upstream. Syzkaller hit 'WARNING in __alloc_pages_nodemask' bug. WARNING: CPU: 1 PID: 1473 at mm/page_alloc.c:4377 __alloc_pages_nodemask+0x4da/0x2130 Kernel panic - not syncing: panic_on_warn set ... Call Trace: alloc_pages_cur

[PATCH 5.1 045/405] gfs2: Fix lru_count going negative

2019-05-29 Thread Greg Kroah-Hartman
[ Upstream commit 7881ef3f33bb80f459ea6020d1e021fc524a6348 ] Under certain conditions, lru_count may drop below zero resulting in a large amount of log spam like this: vmscan: shrink_slab: gfs2_dump_glock+0x3b0/0x630 [gfs2] \ negative objects to delete nr=-1 This happens as follows: 1) A glo

[PATCH 5.1 055/405] i40e: Fix of memory leak and integer truncation in i40e_virtchnl.c

2019-05-29 Thread Greg Kroah-Hartman
[ 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 queue_id value) to u8

[PATCH 5.1 083/405] drm/nouveau/bar/nv50: ensure BAR is mapped

2019-05-29 Thread Greg Kroah-Hartman
[ Upstream commit f10b83de1fd49216a4c657816f48001437e4bdd5 ] If the BAR is zero size, it indicates it was never successfully mapped. Ensure that the BAR is valid during initialization before attempting to use it. Signed-off-by: Jon Derrick Signed-off-by: Ben Skeggs Signed-off-by: Sasha Levin -

[PATCH 5.1 070/405] usb: dwc2: gadget: Increase descriptors count for ISOCs

2019-05-29 Thread Greg Kroah-Hartman
[ 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 only. Signed-off-by: Minas H

[PATCH 5.1 059/405] ice: Separate if conditions for ice_set_features()

2019-05-29 Thread Greg Kroah-Hartman
[ Upstream commit 8f529ff912073f778e3cd74e87fb69a36499fc2f ] Set features can have multiple features turned on|off in a single call. Grouping these all in an if/else means after one condition is met, other conditions/features will not be evaluated. Break the if/else statements by feature to ensu

[PATCH 5.1 000/405] 5.1.6-stable review

2019-05-29 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.1.6 release. There are 405 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Sat 01 Jun 2019 03:01:59 AM UTC. Anything rece

<    4   5   6   7   8   9   10   11   12   13   >