Re: Re: [PATCH] IB/uverbs: Fix memleak in ib_uverbs_add_one

2020-08-21 Thread dinghao . liu
> > > On 21 Aug 2020, at 10:10, Dinghao Liu wrote: > > > > When ida_alloc_max() fails, uverbs_dev should be freed > > just like when init_srcu_struct() fails. It's the same > > for the error paths after this call. > > > > Signed-off-by: Dinghao Liu > > --- > >

Re: [PATCH 1/3] iomap: Use kzalloc to allocate iomap_page

2020-08-21 Thread Christoph Hellwig
On Fri, Aug 21, 2020 at 01:46:04PM +0100, Matthew Wilcox (Oracle) wrote: > We can skip most of the initialisation, although spinlocks still > need explicit initialisation as architectures may use a non-zero > value to indicate unlocked. The comment is no longer useful as > attach_page_private()

[GIT PULL] SCSI fixes for 5.9-rc1

2020-08-21 Thread James Bottomley
23 fixes in 5 drivers (qla2xxx, ufs, scsi_debug, fcoe, zfcp). The bulk of the changes are in qla2xxx and ufs and all are mostly small and definitely don't impact the core. The patch is available here: git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git scsi-fixes The short changelog

Re: [Cocci] coccinelle: Convert comma to semicolons (was Re: [PATCH] checkpatch: Add test for comma use that should be semicolon)

2020-08-21 Thread Joe Perches
On Fri, 2020-08-21 at 23:35 -0400, Valdis Klētnieks wrote: > On Fri, 21 Aug 2020 18:08:08 -0700, Joe Perches said: > > (forwarding on to kernel-janitors/mentees and kernelnewbies) > > > > Just fyi for anyone that cares: > > > > A janitorial task for someone might be to use Julia's coccinelle > >

Re: [PATCH v9 2/2] Add PWM fan controller driver for LGM SoC

2020-08-21 Thread Tanwar, Rahul
Hi Andy, On 21/8/2020 6:56 pm, Andy Shevchenko wrote: > On Fri, Aug 21, 2020 at 05:32:11PM +0800, Rahul Tanwar wrote: >> Intel Lightning Mountain(LGM) SoC contains a PWM fan controller. >> This PWM controller does not have any other consumer, it is a >> dedicated PWM controller for fan attached

Re: [PATCH] Makefile: add -fuse-ld=lld to KBUILD_HOSTLDFLAGS when LLVM=1

2020-08-21 Thread Masahiro Yamada
On Fri, Aug 21, 2020 at 7:10 AM 'Nick Desaulniers' via Clang Built Linux wrote: > > While moving Android kernels over to use LLVM=1, we observe the failure > when building in a hermetic docker image: > HOSTCC scripts/basic/fixdep > clang: error: unable to execute command: Executable "ld"

Re: [PATCH v33 01/12] Linux Random Number Generator

2020-08-21 Thread Stephan Müller
Am Freitag, 21. August 2020, 21:42:17 CEST schrieb kernel test robot: Hi, > >hppa-linux-ld: lib/random32.o: in function `prandom_u32': > >> (.text+0x318): undefined reference to `__tracepoint_prandom_u32' > >> hppa-linux-ld: (.text+0x31c): undefined reference to > >>

Re: [PATCH v2 1/2] irqchip: irq-mst: Add MStar interrupt controller support

2020-08-21 Thread Daniel Palmer
Hi Mark-PK, On Thu, 20 Aug 2020 at 00:38, Mark-PK Tsai wrote: > > Add MStar interrupt controller support using hierarchy irq > domain. > > Signed-off-by: Mark-PK Tsai I've integrated this version into my MStar/SigmaStar tree and tested on an MStar MSC313E based board (BreadBee) and I'm happy

[PATCH v2 1/3] platform/x86: Add Intel Input Output Manager (IOM) driver

2020-08-21 Thread Rajmohan Mani
Input Output Manager (IOM) is part of the Tiger Lake SoC that configures the Type-C Sub System (TCSS). IOM is a micro controller that handles Type-C topology, configuration and PM functions of various Type-C devices connected on the platform. This driver helps read relevant information such as

[PATCH v2 3/3] usb: typec: intel_pmc_mux: Support for device role (UFP)

2020-08-21 Thread Rajmohan Mani
From: Heikki Krogerus This adds support for device data role, and data role swapping. The driver no longer relies on the cached role, as it may not be valid (for example after bootup). Instead, the role is always checked by readding the port status from IOM. Note. After this, the orientation is

[PATCH v2 0/3] Add Intel Input Output Manager driver

2020-08-21 Thread Rajmohan Mani
Hi, This patch series add support for Intel Input Output Manager (IOM) driver, which is leveraged by the Intel PMC USB mux control driver. changes from v1: - Included device role (UFP) support patch from Heikki to this series. - Addressed Greg's comments on v1 with below changes - Used

[PATCH v2 2/3] usb: typec: intel_pmc_mux: Check the port status before connect

2020-08-21 Thread Rajmohan Mani
From: Heikki Krogerus The PMC microcontroller that we use for configuration, does not supply any status information back. For port status we need to talk to another controller on the board called IOM (I/O manager). By checking the port status before configuring the muxes, we can make sure that

Re: [PATCH V9 0/6] Support building i.MX ARMv8 platforms clock driver as module

2020-08-21 Thread Shawn Guo
On Thu, Jul 30, 2020 at 09:22:48AM +0800, Anson Huang wrote: > Nowdays, there are more and more requirements of building SoC specific > drivers as > modules, such as Android GKI (generic kernel image), this patch set supports > building > i.MX ARMv8 SoCs clock drivers as modules, > > The

Re: [PATCH v2 6/9] gen_compile_commands: move directory walk to a generator function

2020-08-21 Thread Masahiro Yamada
On Sat, Aug 22, 2020 at 9:41 AM 'Nick Desaulniers' via Clang Built Linux wrote: > > +for path in paths: > > +cmdfiles = cmdfiles_in_dir(path) > > + > > +for cmdfile in cmdfiles: > > If `cmdfiles` is never referenced again, please make this: > > for cmdfile in

[RFC PATCH] pipe: make pipe_release() deferrable.

2020-08-21 Thread Tetsuo Handa
syzbot is reporting hung task at pipe_write() [1], for __pipe_lock() from pipe_write() by task-A can be blocked forever waiting for handle_userfault() from copy_page_from_iter() from pipe_write() by task-B to complete and call __pipe_unlock(). Since the problem is that we can't enforce task-B to

[PATCH v2 9/9] iommu/vt-d: Store guest PASID during bind

2020-08-21 Thread Jacob Pan
IOASID core maintains the guest-host mapping in the form of SPID and IOASID. This patch assigns the guest PASID (if valid) as SPID while binding guest page table with a host PASID. This mapping will be used for lookup and notifications. Signed-off-by: Jacob Pan --- drivers/iommu/intel/svm.c | 2

[PATCH v2 7/9] iommu/vt-d: Listen to IOASID notifications

2020-08-21 Thread Jacob Pan
On Intel Scalable I/O Virtualization (SIOV) enabled platforms, IOMMU driver is one of the users of IOASIDs. In normal flow, callers will perform IOASID allocation, bind, unbind, and free in order. However, for guest SVA, IOASID free could come before unbind as guest is untrusted. This patch

[PATCH] gpio: dwapb: add support for new hisilicon ascend soc

2020-08-21 Thread Ding Tianhong
The hisilicon ascend soc's gpio is based on the synopsys DW gpio, and expand the register to support for INTCOMB_MASK, the new register is used to enable/disable the interrupt combine features. Both support for ACPI and Device Tree. Signed-off-by: Ding Tianhong --- drivers/gpio/gpio-dwapb.c |

[PATCH v2 8/9] iommu/vt-d: Send IOASID bind/unbind notifications

2020-08-21 Thread Jacob Pan
On Intel Scalable I/O Virtualization (SIOV) enabled platforms with ENQCMD in use by the guest, KVM must establish a guest-host PASID translation table prior to the issuing of ENQCMD. PASID translation table also depends on the IOMMU PASID entry, which is configured during the guest page table bind

[PATCH v2 1/9] docs: Document IO Address Space ID (IOASID) APIs

2020-08-21 Thread Jacob Pan
IOASID is used to identify address spaces that can be targeted by device DMA. It is a system-wide resource that is essential to its many users. This document is an attempt to help developers from all vendors navigate the APIs. At this time, ARM SMMU and Intel’s Scalable IO Virtualization (SIOV)

[PATCH v2 0/9] IOASID extensions for guest SVA

2020-08-21 Thread Jacob Pan
IOASID was introduced in v5.5 as a generic kernel allocator service for both PCIe Process Address Space ID (PASID) and ARM SMMU's Sub Stream ID. In addition to basic ID allocation, ioasid_set was defined as a token that is shared by a group of IOASIDs. This set token can be used for permission

[PATCH v2 4/9] iommu/ioasid: Add reference couting functions

2020-08-21 Thread Jacob Pan
There can be multiple users of an IOASID, each user could have hardware contexts associated with the IOASID. In order to align lifecycles, reference counting is introduced in this patch. It is expected that when an IOASID is being freed, each user will drop a reference only after its context is

[PATCH v2 2/9] iommu/ioasid: Rename ioasid_set_data()

2020-08-21 Thread Jacob Pan
Rename ioasid_set_data() to ioasid_attach_data() to avoid confusion with struct ioasid_set. ioasid_set is a group of IOASIDs that share a common token. Signed-off-by: Jacob Pan --- drivers/iommu/intel/svm.c | 6 +++--- drivers/iommu/ioasid.c| 6 +++--- include/linux/ioasid.h| 4 ++-- 3

[PATCH v2 5/9] iommu/ioasid: Introduce ioasid_set private ID

2020-08-21 Thread Jacob Pan
When an IOASID set is used for guest SVA, each VM will acquire its ioasid_set for IOASID allocations. IOASIDs within the VM must have a host/physical IOASID backing, mapping between guest and host IOASIDs can be non-identical. IOASID set private ID (SPID) is introduced in this patch to be used as

[PATCH v2 3/9] iommu/ioasid: Introduce ioasid_set APIs

2020-08-21 Thread Jacob Pan
ioasid_set was introduced as an arbitrary token that are shared by a group of IOASIDs. For example, if IOASID #1 and #2 are allocated via the same ioasid_set*, they are viewed as to belong to the same set. For guest SVA usages, system-wide IOASID resources need to be partitioned such that VMs can

[PATCH v2 6/9] iommu/ioasid: Introduce notification APIs

2020-08-21 Thread Jacob Pan
Relations among IOASID users largely follow a publisher-subscriber pattern. E.g. to support guest SVA on Intel Scalable I/O Virtualization (SIOV) enabled platforms, VFIO, IOMMU, device drivers, KVM are all users of IOASIDs. When a state change occurs, VFIO publishes the change event that needs to

drivers/net/can/cc770/cc770_isa.c:276:25: sparse: sparse: incorrect type in argument 1 (different address spaces)

2020-08-21 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: f873db9acd3c92d4741bc3676c9eb511b2f9a6f6 commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces date: 9 weeks ago config: openrisc-randconfig-s031-20200822

[PATCH 3/5] bio: convert get_user_pages_fast() --> pin_user_pages_fast()

2020-08-21 Thread John Hubbard
Change generic block/bio Direct IO routines, to acquire FOLL_PIN user pages via the recently added routines: iov_iter_pin_user_pages() iov_iter_pin_user_pages_alloc() pin_user_page() This effectively converts several file systems (ext4, for example) that use the common Direct IO

[PATCH 1/5] iov_iter: introduce iov_iter_pin_user_pages*() routines

2020-08-21 Thread John Hubbard
The new routines are: iov_iter_pin_user_pages() iov_iter_pin_user_pages_alloc() and those correspond to these pre-existing routines: iov_iter_get_pages() iov_iter_get_pages_alloc() Unlike the iov_iter_get_pages*() routines, the iov_iter_pin_user_pages*() routines assert that only

[PATCH 0/5] bio: Direct IO: convert to pin_user_pages_fast()

2020-08-21 Thread John Hubbard
Hi, This converts the Direct IO block/bio layer over to use FOLL_PIN pages (those acquired via pin_user_pages*()). This effectively converts several file systems (ext4, for example) that use the common Direct IO routines. See "Remaining work", below for a bit more detail there. Quite a few

[PATCH 4/5] bio: introduce BIO_FOLL_PIN flag

2020-08-21 Thread John Hubbard
Add a new BIO_FOLL_PIN flag to struct bio, whose "short int" flags field was full, thuse triggering an expansion of the field from 16, to 32 bits. This allows for a nice assertion in bio_release_pages(), that the bio page release mechanism matches the page acquisition mechanism. Set BIO_FOLL_PIN

[PATCH 5/5] fs/ceph: use pipe_get_pages_alloc() for pipe

2020-08-21 Thread John Hubbard
This reduces, by one, the number of callers of iov_iter_get_pages(). That's helpful because these calls are being audited and converted over to use iov_iter_pin_user_pages(), where applicable. And this one here is already known by the caller to be only for ITER_PIPE, so let's just simplify it now.

[PATCH 2/5] mm/gup: introduce pin_user_page()

2020-08-21 Thread John Hubbard
pin_user_page() is the FOLL_PIN equivalent of get_page(). This was always a missing piece of the pin/unpin API calls (early reviewers of pin_user_pages() asked about it, in fact), but until now, it just wasn't needed. Finally though, now that the Direct IO pieces in block/bio are about to be

Re: KASAN: use-after-free Write in vcs_read

2020-08-21 Thread syzbot
syzbot has found a reproducer for the following issue on: HEAD commit:494d311a Add linux-next specific files for 20200821 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=12454db190 kernel config: https://syzkaller.appspot.com/x/.config?x

Re: [PATCH v3] arm: dts: imx7: add QSPI

2020-08-21 Thread Shawn Guo
On Wed, Jul 29, 2020 at 10:25:54AM +0200, Matthias Schiffer wrote: > In preparation for an update of the TQ-Systems TQMa7x/MBa7x DTS, add the > QSPI controller to imx7s.dtsi. > > Based-on-patch-by: Han Xu > Signed-off-by: Matthias Schiffer Changed subject prefix to 'ARM: ...' and applied the

Re: [PATCH] arm: dts: ls1021a: fix QuadSPI-memory reg range

2020-08-21 Thread Shawn Guo
On Tue, Jul 28, 2020 at 12:50:06PM +0200, Matthias Schiffer wrote: > According to the Reference Manual, the correct size is 512 MiB. > > Without this fix, probing the QSPI fails: > > fsl-quadspi 155.spi: ioremap failed for resource > [mem 0x4000-0x7fff] > fsl-quadspi

Re: [PATCH] KVM: LAPIC: Don't kick vCPU which is injecting already-expired timer

2020-08-21 Thread Sean Christopherson
On Fri, Aug 21, 2020 at 05:17:34PM +0800, Wanpeng Li wrote: > From: Wanpeng Li > > The kick after setting KVM_REQ_PENDING_TIMER is used to handle the timer > fires on a different pCPU which vCPU is running on, we don't need this > kick when injecting already-expired timer, this kick is

Re: [PATCH] x86: work around clang IAS bug referencing __force_order

2020-08-21 Thread Arvind Sankar
On Sat, Aug 22, 2020 at 02:43:08AM +0200, Thomas Gleixner wrote: > On Fri, Aug 21 2020 at 16:16, Nick Desaulniers wrote: > > On Fri, Aug 21, 2020 at 4:04 PM Arvind Sankar wrote: > >> On Fri, Aug 21, 2020 at 02:37:48AM +0200, Thomas Gleixner wrote: > >> The gcc bug I linked to earlier is only

Re: [PATCH v2 1/2] mm: add GFP mask param to strndup_user

2020-08-21 Thread Andrew Morton
On Fri, 21 Aug 2020 20:28:26 -0700 Pascal Bouchareine wrote: > Let caller specify allocation. > Preserve existing calls with GFP_USER. > > 21 files changed, 65 insertions(+), 43 deletions(-) Why change all existing callsites so that one callsite can pass in a different gfp_t? > diff --git

Re: [PATCH] KVM: VMX: fix crash cleanup when KVM wasn't used

2020-08-21 Thread Sean Christopherson
On Thu, Aug 20, 2020 at 01:08:22PM -0700, Jim Mattson wrote: > On Wed, Apr 1, 2020 at 1:13 AM Vitaly Kuznetsov wrote: > > --- > > arch/x86/kvm/vmx/vmx.c | 12 +++- > > 1 file changed, 7 insertions(+), 5 deletions(-) > > > > diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c > >

Re: [PATCH v33 01/12] Linux Random Number Generator

2020-08-21 Thread kernel test robot
Hi "Stephan, Thank you for the patch! Yet something to improve: [auto build test ERROR on char-misc/char-misc-testing] [also build test ERROR on cryptodev/master crypto/master v5.9-rc1 next-20200821] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submi

Re: [Cocci] coccinelle: Convert comma to semicolons (was Re: [PATCH] checkpatch: Add test for comma use that should be semicolon)

2020-08-21 Thread Valdis Klētnieks
On Fri, 21 Aug 2020 18:08:08 -0700, Joe Perches said: > (forwarding on to kernel-janitors/mentees and kernelnewbies) > > Just fyi for anyone that cares: > > A janitorial task for someone might be to use Julia's coccinelle > script below to convert the existing instances of commas that > separate

ERROR: "min_low_pfn" undefined!

2020-08-21 Thread kernel test robot
Hi Arnd, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: f873db9acd3c92d4741bc3676c9eb511b2f9a6f6 commit: 710ec38b0f633ab3e2581f07a73442d809e28ab0 mm: add dummy can_do_mlock() helper date: 11 months ago config:

Re: [PATCH bpf-next v1 6/8] bpf: Introduce bpf_per_cpu_ptr()

2020-08-21 Thread Andrii Nakryiko
On Fri, Aug 21, 2020 at 8:26 PM Andrii Nakryiko wrote: > > On Wed, Aug 19, 2020 at 3:42 PM Hao Luo wrote: > > > > Add bpf_per_cpu_ptr() to help bpf programs access percpu vars. > > bpf_per_cpu_ptr() has the same semantic as per_cpu_ptr() in the kernel > > except that it may return NULL. This

Re: [PATCH bpf-next v1 8/8] bpf/selftests: Test for bpf_per_cpu_ptr()

2020-08-21 Thread Andrii Nakryiko
On Wed, Aug 19, 2020 at 3:42 PM Hao Luo wrote: > > Test bpf_per_cpu_ptr(). Test two paths in the kernel. If the base > pointer points to a struct, the returned reg is of type PTR_TO_BTF_ID. > Direct pointer dereference can be applied on the returned variable. > If the base pointer isn't a struct,

Re: [PATCH 1/2 v2] arm64: dts: ls1088a: add more thermal zone support

2020-08-21 Thread Shawn Guo
On Wed, Jul 15, 2020 at 02:49:08PM +0800, andy.t...@nxp.com wrote: > From: Yuantian Tang > > There are 2 thermal zones in ls1088a soc. Add the other thermal zone > node to enable it. > Also update the values in calibration table to make the temperatures > monitored more precise. > >

[PATCH v2 2/2] net: socket: implement SO_DESCRIPTION

2020-08-21 Thread Pascal Bouchareine
This command attaches the zero terminated string in optval to the socket for troubleshooting purposes. The free string is displayed in the process fdinfo file for that fd (/proc//fdinfo/). One intended usage is to allow processes to self-document sockets for netstat and friends to report We

[PATCH v2 1/2] mm: add GFP mask param to strndup_user

2020-08-21 Thread Pascal Bouchareine
Let caller specify allocation. Preserve existing calls with GFP_USER. Signed-off-by: Pascal Bouchareine --- Updating patch 1/ and 2/ to address comments drivers/dma-buf/dma-buf.c | 2 +- drivers/gpu/drm/i915/i915_debugfs_params.c | 2 +- drivers/gpu/drm/vc4/vc4_bo.c

Re: [RFC 2/7] KVM: VMX: Expose IA32_PKRS MSR

2020-08-21 Thread Sean Christopherson
On Tue, Aug 18, 2020 at 11:23:47AM -0700, Jim Mattson wrote: > On Tue, Aug 18, 2020 at 12:28 AM Chenyi Qiang wrote: > > > > > > > > On 8/14/2020 1:31 AM, Jim Mattson wrote: > > > On Wed, Aug 12, 2020 at 10:42 PM Chenyi Qiang > > > wrote: > > >> > > >> > > >> > > >> On 8/13/2020 5:21 AM, Jim

Re: [PATCH bpf-next v1 6/8] bpf: Introduce bpf_per_cpu_ptr()

2020-08-21 Thread Andrii Nakryiko
On Wed, Aug 19, 2020 at 3:42 PM Hao Luo wrote: > > Add bpf_per_cpu_ptr() to help bpf programs access percpu vars. > bpf_per_cpu_ptr() has the same semantic as per_cpu_ptr() in the kernel > except that it may return NULL. This happens when the cpu parameter is > out of range. So the caller must

[GIT PULL] Devicetree fixes for v5.9, take 2

2020-08-21 Thread Rob Herring
Linus, Please pull another set of DT fixes. Rob The following changes since commit 9123e3a74ec7b934a4a099e98af6a61c2f80bbf5: Linux 5.9-rc1 (2020-08-16 13:04:57 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git

Re: [PATCH v2 2/3] KVM: x86: introduce KVM_MEM_PCI_HOLE memory

2020-08-21 Thread Sean Christopherson
On Thu, Aug 20, 2020 at 09:46:25PM -0400, Michael S. Tsirkin wrote: > On Mon, Aug 17, 2020 at 09:32:07AM -0700, Sean Christopherson wrote: > > On Fri, Aug 14, 2020 at 10:30:14AM -0400, Michael S. Tsirkin wrote: > > > On Thu, Aug 13, 2020 at 07:31:39PM -0700, Sean Christopherson wrote: > > > > > @@

Re: [PATCH v2 7/9] gen_compile_commands: support *.o, *.a, modules.order in positional argument

2020-08-21 Thread Masahiro Yamada
On Sat, Aug 22, 2020 at 9:59 AM Nick Desaulniers wrote: > > On Fri, Aug 21, 2020 at 12:02 PM Masahiro Yamada wrote: > > > > This script currently searches the specified directory for .cmd files. > > One drawback is it may contain stale .cmd files after you rebuild the > > kernel several times

[PATCH] security: fix some spelling mistakes in the comments by codespell

2020-08-21 Thread Xiaoming Ni
ecurity/commoncap.c: capabilties ==> capabilities security/lsm_audit.c: programers ==> programmers security/tomoyo/audit.c: stuct ==> struct security/tomoyo/common.c: Poiter ==> Pointer security/smack/smack_lsm.c: overriden ==> overridden overridden security/smack/smackfs.c: overriden ==>

Re: [REGRESSION] x86/cpu fsgsbase breaks TLS in 32 bit rr tracees on a 64 bit system

2020-08-21 Thread Kyle Huey
On Fri, Aug 21, 2020 at 7:53 PM Andy Lutomirski wrote: > > > > > On Aug 21, 2020, at 2:33 PM, Kyle Huey wrote: > > > > On Fri, Aug 21, 2020 at 1:08 PM Bae, Chang Seok > > wrote: > >> > >> > On Aug 20, 2020, at 21:41, Kyle Huey wrote: > >>> > >>> On the x86-64 5.9-rc1 TLS is completely

[RFC] Design proposal for upstream core-scheduling interface

2020-08-21 Thread Joel Fernandes
Hello! Core-scheduling aims to allow making it safe for more than 1 task that trust each other to safely share hyperthreads within a CPU core [1]. This results in a performance improvement for workloads that can benefit from using hyperthreading safely while limiting core-sharing when it is not

[PATCH v2] kprobes: Fix kill kprobe which has been marked as gone

2020-08-21 Thread Muchun Song
If a kprobe is marked as gone, we should not kill it again. Otherwise, we can disarm the kprobe more than once. In that case, the statistics of kprobe_ftrace_enabled can unbalance which can lead to that kprobe do not work. Fixes: e8386a0cb22f ("kprobes: support probing module __exit function")

[tip:x86/urgent] BUILD SUCCESS 6a3ea3e68b8a8a26c4aaac03432ed92269c9a14e

2020-08-21 Thread kernel test robot
randconfig-a011-20200820 i386 randconfig-a016-20200820 i386 randconfig-a014-20200820 i386 randconfig-a015-20200820 i386 randconfig-a013-20200821 i386 randconfig-a012-20200821 i386

[tip:core/urgent] BUILD SUCCESS d88d59b64ca35abae208e2781fdb45e69cbed56c

2020-08-21 Thread kernel test robot
randconfig-a014-20200820 i386 randconfig-a015-20200820 i386 randconfig-a013-20200821 i386 randconfig-a012-20200821 i386 randconfig-a011-20200821 i386 randconfig-a016-20200821 i386 randconfig

Re: [RFC v7 14/19] lockdep: Take read/write status in consideration when generate chainkey

2020-08-21 Thread boqun . feng
On Fri, Aug 21, 2020 at 07:41:32PM +0200, Peter Zijlstra wrote: > > So far so good, excellent work. > > On Fri, Aug 07, 2020 at 03:42:33PM +0800, Boqun Feng wrote: > > @@ -371,6 +371,21 @@ static struct hlist_head > > classhash_table[CLASSHASH_SIZE]; > > > > static struct hlist_head

Re: [REGRESSION] x86/cpu fsgsbase breaks TLS in 32 bit rr tracees on a 64 bit system

2020-08-21 Thread Andy Lutomirski
> On Aug 21, 2020, at 2:33 PM, Kyle Huey wrote: > > On Fri, Aug 21, 2020 at 1:08 PM Bae, Chang Seok > wrote: >> >> On Aug 20, 2020, at 21:41, Kyle Huey wrote: >>> >>> On the x86-64 5.9-rc1 TLS is completely broken in 32 bit tracees when >>> running under rr[0]. Booting the kernel

Re: [PATCH bpf-next v1 3/8] bpf: Introduce help function to validate ksym's type.

2020-08-21 Thread Andrii Nakryiko
On Fri, Aug 21, 2020 at 5:43 PM Hao Luo wrote: > > On Fri, Aug 21, 2020 at 2:50 PM Andrii Nakryiko > wrote: > > > > On Thu, Aug 20, 2020 at 10:22 AM Yonghong Song wrote: > > > > > > > > > > > > On 8/19/20 3:40 PM, Hao Luo wrote: > > > > For a ksym to be safely dereferenced and accessed, its

sound/soc/fsl/fsl-asoc-card.c:684:45: sparse: sparse: incorrect type in argument 3 (different base types)

2020-08-21 Thread kernel test robot
-20200821 (attached as .config) compiler: aarch64-linux-gcc (GCC) 9.3.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.2-191-g10164920

Re: [PATCH 0/7] Overhaul find_get_entries and pagevec_lookup_entries

2020-08-21 Thread William Kucharski
> On Aug 19, 2020, at 9:05 AM, Matthew Wilcox (Oracle) > wrote: > > This started out as part of the THP patchset, but it's turned into a > nice simplification in its own right. Essentially we end up unifying > find_get_entries() and pagevec_lookup_entries() into one function that's > better

Re: [PATCH v4 00/23] device-dax: Support sub-dividing soft-reserved ranges

2020-08-21 Thread Leizhen (ThunderTown)
On 8/22/2020 7:21 AM, Andrew Morton wrote: > On Wed, 19 Aug 2020 18:53:57 -0700 Dan Williams > wrote: > >>> I think I am missing some important pieces. Bear with me. >> >> No worries, also bear with me, I'm going to be offline intermittently >> until at least mid-September. Hopefully Joao

Re: [External] Re: [PATCH] kprobes: Fix kill kprobe which has been marked as gone

2020-08-21 Thread Muchun Song
On Fri, Aug 21, 2020 at 9:28 PM Masami Hiramatsu wrote: > > On Fri, 21 Aug 2020 21:28:43 +0900 > Masami Hiramatsu wrote: > > > Hi Muchun, > > > > On Thu, 20 Aug 2020 11:19:33 +0800 > > Muchun Song wrote: > > > > > If a kprobe is marked as gone, we should not kill it again. Otherwise, > > > we

Re: [PATCH 00/13] MIPS: Convert Ingenic to a generic board

2020-08-21 Thread Maciej W. Rozycki
Hi Paul, > > FAOD is not a hack, but an optimisation measure > > so that features known to be hardwired for a given machine/CPU do not have > > to be dynamically queried every time referred. In some cases that results > > in large portions of code being optimised away by the compiler as well. >

Re: [PATCH v2 4/9] gen_compile_commands: reword the help message of -d option

2020-08-21 Thread Nick Desaulniers
On Fri, Aug 21, 2020 at 6:56 PM Masahiro Yamada wrote: > > On Sat, Aug 22, 2020 at 9:29 AM 'Nick Desaulniers' via Clang Built > Linux wrote: > > > > On Fri, Aug 21, 2020 at 12:02 PM Masahiro Yamada > > wrote: > > > > > > I think the help message of the -d option is somewhat misleading. > > > >

[PATCH net-next] net: Remove unnecessary intermediate variables

2020-08-21 Thread Jianlin Lv
It is not necessary to use src/dst as an intermediate variable for assignment operation; Delete src/dst intermediate variables to avoid unnecessary variable declarations. Signed-off-by: Jianlin Lv --- drivers/net/vxlan.c | 16 1 file changed, 4 insertions(+), 12 deletions(-)

Re: [PATCH v2 4/9] gen_compile_commands: reword the help message of -d option

2020-08-21 Thread Masahiro Yamada
On Sat, Aug 22, 2020 at 9:29 AM 'Nick Desaulniers' via Clang Built Linux wrote: > > On Fri, Aug 21, 2020 at 12:02 PM Masahiro Yamada wrote: > > > > I think the help message of the -d option is somewhat misleading. > > > > Path to the kernel source directory to search (defaults to the working

Re: [PATCH v2] mm : sync ra->ra_pages with bdi->ra_pages

2020-08-21 Thread Zhaoyang Huang
On Fri, Aug 21, 2020 at 7:57 PM Matthew Wilcox wrote: > > On Fri, Aug 21, 2020 at 05:31:52PM +0800, Zhaoyang Huang wrote: > > This patch has been verified on an android system and reduces 15% of > > UNITERRUPTIBLE_SLEEP_BLOCKIO which was used to be caused by wrong > > ra->ra_pages. > > Wait,

Re: [PATCH v2 09/10] fs/ntfs3: Add NTFS3 in fs/Kconfig and fs/Makefile

2020-08-21 Thread kernel test robot
Hi Konstantin, Thank you for the patch! Yet something to improve: [auto build test ERROR on linux/master] [also build test ERROR on linus/master v5.9-rc1 next-20200821] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base

[PATCH v2 0/2] Control over userfaultfd kernel-fault handling

2020-08-21 Thread Lokesh Gidra
This patch series is split from [1]. The other series enables SELinux support for userfaultfd file descriptors so that its creation and movement can be controlled. It has been demonstrated on various occasions that suspending kernel code execution for an arbitrary amount of time at any access to

[PATCH v2 2/2] Add user-mode only option to unprivileged_userfaultfd sysctl knob

2020-08-21 Thread Lokesh Gidra
A third option is added to 'unprivileged_userfaultfd' sysctl knob. When the knob is set to 2, it allows unprivileged users to call userfaultfd, like when it is set to 1, but with the restriction that page faults from only user-mode can be handled. In this mode, an unprivileged user (without

[PATCH v2 1/2] Add UFFD_USER_MODE_ONLY

2020-08-21 Thread Lokesh Gidra
userfaultfd handles page faults from both user and kernel code. Add a new UFFD_USER_MODE_ONLY flag for userfaultfd(2) that makes the resulting userfaultfd object refuse to handle faults from kernel mode, treating these faults as if SIGBUS were always raised, causing the kernel code to fail with

Re: [patch RFC 38/38] irqchip: Add IMS array driver - NOT FOR MERGING

2020-08-21 Thread Thomas Gleixner
Jason, On Fri, Aug 21 2020 at 21:51, Jason Gunthorpe wrote: > On Sat, Aug 22, 2020 at 01:47:12AM +0200, Thomas Gleixner wrote: >> > If the device has died the driver has code to detect and trigger a >> > PCI function reset which will definitely stop the interrupt. >> >> If that interrupt is gone

drivers/net/ethernet/sfc/ef100_rx.c:44:9-10: WARNING: return of 0/1 in function 'check_fcs' with return type bool

2020-08-21 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: f873db9acd3c92d4741bc3676c9eb511b2f9a6f6 commit: 8e57daf70671e482209b5d231a181f04845cf73e sfc_ef100: RX path for EF100 date: 3 weeks ago config: i386-randconfig-c003-20200821 (attached as .config) compiler

Re: [PATCH] drm/msm: enable vblank during atomic commits

2020-08-21 Thread Stephen Boyd
Quoting Rob Clark (2020-08-18 09:31:19) > From: Rob Clark > > This has roughly the same effect as drm_atomic_helper_wait_for_vblanks(), > basically just ensuring that vblank accounting is enabled so that we get > valid timestamp/seqn on pageflip events. > > Signed-off-by: Rob Clark > ---

Re: [PATCH v2] drm/rcar-du: DRM_RCAR_WRITEBACK depends on DRM

2020-08-21 Thread Qian Cai
On Mon, Jun 08, 2020 at 06:16:22AM +0300, Laurent Pinchart wrote: > Hi Qian, > > I forgot to mention, I think the subject line should be > > drm/rcar-du: Make DRM_RCAR_WRITEBACK depend on DRM_RCAR_DU > > Could you please let me know if you're OK with these two small changes ? Laurent, this

Re: arch/s390/include/asm/atomic_ops.h:56:45: error: invalid operand for inline asm constraint 'i'

2020-08-21 Thread Nick Desaulniers
On Thu, Aug 20, 2020 at 12:35 AM kernel test robot wrote: > > Hi Vasily, > > FYI, the error/warning still remains. > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > master > head: 18445bf405cb331117bc98427b1ba6f12418ad17 > commit:

Re: [PATCH v2 0/9] kbuild: clang-tidy

2020-08-21 Thread Sedat Dilek
On Sat, Aug 22, 2020 at 3:06 AM 'Nick Desaulniers' via Clang Built Linux wrote: > > On Fri, Aug 21, 2020 at 12:02 PM Masahiro Yamada wrote: > > > > I improved gen_compile_commands.py, > > then rebased Nathan's v7 [1] on top of them. > > To save time, I modified the Makefile part. > > No change

Re: [Cocci] coccinelle: Convert comma to semicolons (was Re: [PATCH] checkpatch: Add test for comma use that should be semicolon)

2020-08-21 Thread Joe Perches
(forwarding on to kernel-janitors/mentees and kernelnewbies) Just fyi for anyone that cares: A janitorial task for someone might be to use Julia's coccinelle script below to convert the existing instances of commas that separate statements into semicolons.

[ANNOUNCE] 5.4.59-rt36

2020-08-21 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 5.4.59-rt36 stable release. This release is just an update to the new stable 5.4.59 version and no RT specific changes have been made. You can get this release via the git tree at:

Re: [PATCH v2 0/9] kbuild: clang-tidy

2020-08-21 Thread Nick Desaulniers
On Fri, Aug 21, 2020 at 12:02 PM Masahiro Yamada wrote: > > I improved gen_compile_commands.py, > then rebased Nathan's v7 [1] on top of them. > To save time, I modified the Makefile part. > No change for run-clang-tools.py > > "make clang-tidy" should work in-tree build, > out-of-tree build

[PATCH] SELinux: Measure state and hash of policy using IMA

2020-08-21 Thread Lakshmi Ramasubramanian
Critical data structures of security modules are currently not measured. Therefore an attestation service, for instance, would not be able to attest whether the security modules are always operating with the policies and configuration that the system administrator had setup. The policies and

Re: [PATCH v2 7/9] gen_compile_commands: support *.o, *.a, modules.order in positional argument

2020-08-21 Thread Nick Desaulniers
On Fri, Aug 21, 2020 at 12:02 PM Masahiro Yamada wrote: > > This script currently searches the specified directory for .cmd files. > One drawback is it may contain stale .cmd files after you rebuild the > kernel several times without 'make clean'. > > This commit supports *.o, *.a, and

Re: [patch RFC 38/38] irqchip: Add IMS array driver - NOT FOR MERGING

2020-08-21 Thread Jason Gunthorpe
On Sat, Aug 22, 2020 at 01:47:12AM +0200, Thomas Gleixner wrote: > On Fri, Aug 21 2020 at 17:17, Jason Gunthorpe wrote: > > On Fri, Aug 21, 2020 at 09:47:43PM +0200, Thomas Gleixner wrote: > >> So if I understand correctly then the queue memory where the MSI > >> descriptor sits is in RAM. > > > >

RE: [PATCH 3/4] cpufreq: intel_pstate: Add ->offline and ->online callbacks

2020-08-21 Thread Doug Smythies
Hi Rafael, Just annoying typo type feedback. On 2020.08.20 09:38 Rafael J. Wysocki wrote: > > From: "Rafael J. Wysocki" > > Add ->offline and ->online driver callbacksto to do the cleanup "to to" and suggest this: Add ->offline and ->online driver callbacks to cleanup > before taking a

RE: [PATCH 0/4] cpufreq: intel_pstate: Address some HWP-related oddities

2020-08-21 Thread Doug Smythies
Hi Rafael, On 2020.08.20 09:35 Rafael J. Wysocki wrote: > > The purpose of this series is to address some peculiarities related to > taking CPUs offline/online and switching between different operation > modes with HWP enabled that have become visible after allowing the > driver to work in the

Re: [PATCH v2 8/9] kbuild: wire up the build rule of compile_commands.json to Makefile

2020-08-21 Thread Nick Desaulniers
On Fri, Aug 21, 2020 at 12:02 PM Masahiro Yamada wrote: > > Currently, you need to manually run scripts/gen_compile_commands.py > to create compile_commands.json. It parses all the .*.cmd files found > under the specified directory. > > If you rebuild the kernel over again without 'make clean', >

Re: [PATCH bpf-next v1 3/8] bpf: Introduce help function to validate ksym's type.

2020-08-21 Thread Hao Luo
On Fri, Aug 21, 2020 at 2:50 PM Andrii Nakryiko wrote: > > On Thu, Aug 20, 2020 at 10:22 AM Yonghong Song wrote: > > > > > > > > On 8/19/20 3:40 PM, Hao Luo wrote: > > > For a ksym to be safely dereferenced and accessed, its type defined in > > > bpf program should basically match its type

Re: [PATCH] x86: work around clang IAS bug referencing __force_order

2020-08-21 Thread Thomas Gleixner
On Fri, Aug 21 2020 at 16:16, Nick Desaulniers wrote: > On Fri, Aug 21, 2020 at 4:04 PM Arvind Sankar wrote: >> On Fri, Aug 21, 2020 at 02:37:48AM +0200, Thomas Gleixner wrote: >> The gcc bug I linked to earlier is only fixed in gcc-6 onwards. Is that > > (based on

Re: [PATCH v2 6/9] gen_compile_commands: move directory walk to a generator function

2020-08-21 Thread Nick Desaulniers
On Fri, Aug 21, 2020 at 12:02 PM Masahiro Yamada wrote: > > Currently, this script walks under the specified directory (default to > the current directory), then parses all .cmd files found. > > Split it into a separate helper function because the next commit will > add more helpers to pick up

[PATCH v2 1/2] dm-devel: collect target data and submit to IMA to measure

2020-08-21 Thread Tushar Sugandhi
For the device-mapper targets to take advantage of IMA's measuring and quoting abilities, and for enabling remote attestation for device-mapper targets, device-mapper needs to provide the functionality to consistently measure target data using ima_measure_critical_data() function provided by IMA.

[PATCH v2 0/2] dm-devel:dm-crypt: infrastructure for measurement of DM target data using IMA

2020-08-21 Thread Tushar Sugandhi
There are several device-mapper targets which contribute to verify the integrity of the mapped devices e.g. dm-integrity, dm-verity, dm-crypt etc. But they do not use the capabilities provided by kernel integrity subsystem (IMA). For instance, the IMA capability that measures several in-memory

[PATCH v2 2/2] dm-crypt: collect data and submit to DM to measure

2020-08-21 Thread Tushar Sugandhi
Currently, dm-crypt does not take advantage of IMA measuring capabilities, and ultimately the benefits of remote attestation. Measure various dm-crypt constructs by calling various device-mapper functions - dm_ima_*() that use IMA measuring capabilities. Implement ima_measure_dm_crypt_data() to

Re: [PATCH v3 05/11] genirq: Shutdown irq chips in suspend/resume during hibernation

2020-08-21 Thread Thomas Gleixner
On Fri, Aug 21 2020 at 22:27, Thomas Gleixner wrote: > Add a new quirk flag IRQCHIP_SHUTDOWN_ON_SUSPEND and add support for > it the core interrupt suspend/resume paths. > > Changelog: > v1->v2: Corrected the author's name to tglx@ Can you please move that Changelog part below the --- seperator

Re: [PATCH v2 5/9] gen_compile_commands: make -o option independent of -d option

2020-08-21 Thread Nick Desaulniers
On Fri, Aug 21, 2020 at 12:02 PM Masahiro Yamada wrote: > > Change the -o option independent of the -d option, which is I think > clearer behavior. Some people may like to use -d to specify a separate > output directory, but still output the compile_commands.py in the > source directory (unless

Re: [PATCH v2 4/9] gen_compile_commands: reword the help message of -d option

2020-08-21 Thread Nick Desaulniers
On Fri, Aug 21, 2020 at 12:02 PM Masahiro Yamada wrote: > > I think the help message of the -d option is somewhat misleading. > > Path to the kernel source directory to search (defaults to the working > directory) > > The part "kernel source directory" is the source of the confusion. > Some

Re: [PATCH v2 3/9] gen_compile_commands: do not support .cmd files under tools/ directory

2020-08-21 Thread Nick Desaulniers
On Fri, Aug 21, 2020 at 12:02 PM Masahiro Yamada wrote: > > The tools/ directory uses a different build system, and the format of > .cmd files is different because the tools builds run in a different > work directory. > > Supporting two formats compilicates the script. > > The only loss by this

  1   2   3   4   5   6   7   8   9   10   >