[PATCH] timers: Use only bucket expiry for base->next_expiry value

2020-07-10 Thread Anna-Maria Behnsen
The bucket expiry time is the effective expriy time of timers and is greater than or equal to the requested timer expiry time. This is due to the guarantee that timers never expire early and the reduced expiry granularity in the secondary wheel levels. When a timer is enqueued, trigger_dyntick_cpu

Re: [PATCH] fpga: dfl: pci: add device id for Intel FPGA PAC N3000

2020-07-10 Thread Moritz Fischer
On Fri, Jul 10, 2020 at 06:14:19AM +, Wu, Hao wrote: > > On Thu, Jul 09, 2020 at 06:00:40AM -0700, Tom Rix wrote: > > > > > > On 7/9/20 3:14 AM, Wu, Hao wrote: > > > >> On Thu, Jul 09, 2020 at 05:10:49PM +0800, Wu, Hao wrote: > > > Subject: [PATCH] fpga: dfl: pci: add device id for Intel F

[GIT PULL] dma-mapping fixes for 5.8

2020-07-10 Thread Christoph Hellwig
The following changes since commit 9ebcfadb0610322ac537dd7aa5d9cbc2b2894c68: Linux 5.8-rc3 (2020-06-28 15:00:24 -0700) are available in the Git repository at: git://git.infradead.org/users/hch/dma-mapping.git tags/dma-mapping-5.8-5 for you to fetch changes up to 68d237056e007c88031d80900cdb

[PATCH v3 5/9] KVM: x86: update exception bitmap on CPUID changes

2020-07-10 Thread Mohammed Gamal
From: Paolo Bonzini Allow vendor code to observe changes to MAXPHYADDR and start/stop intercepting page faults. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/cpuid.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c index 8a294f9747aa..ea5bbf2153

[PATCH v3 2/9] KVM: x86: mmu: Move translate_gpa() to mmu.c

2020-07-10 Thread Mohammed Gamal
Also no point of it being inline since it's always called through function pointers. So remove that. Signed-off-by: Mohammed Gamal Signed-off-by: Paolo Bonzini --- arch/x86/include/asm/kvm_host.h | 6 -- arch/x86/kvm/mmu/mmu.c | 6 ++ 2 files changed, 6 insertions(+), 6 deletio

Re: [PATCH 0/5] vfio/pci: add blocklist and disable qat

2020-07-10 Thread Christoph Hellwig
On Wed, Jul 01, 2020 at 01:42:09PM +0100, Christoph Hellwig wrote: > On Wed, Jul 01, 2020 at 12:02:57PM +0100, Giovanni Cabiddu wrote: > > This patchset defines a blocklist of devices in the vfio-pci module and adds > > the current generation of Intel(R) QuickAssist devices to it as they are > > no

[PATCH v3 1/9] KVM: x86: Add helper functions for illegal GPA checking and page fault injection

2020-07-10 Thread Mohammed Gamal
This patch adds two helper functions that will be used to support virtualizing MAXPHYADDR in both kvm-intel.ko and kvm.ko. kvm_fixup_and_inject_pf_error() injects a page fault for a user-specified GVA, while kvm_mmu_is_illegal_gpa() checks whether a GPA exceeds vCPU address limits. Signed-off-by:

[PATCH v3 0/9] KVM: Support guest MAXPHYADDR < host MAXPHYADDR

2020-07-10 Thread Mohammed Gamal
When EPT is enabled, KVM does not really look at guest physical address size. Address bits above maximum physical memory size are reserved. Because KVM does not look at these guest physical addresses, it currently effectively supports guest physical address sizes equal to the host. This can be pro

[PATCH v3 7/9] KVM: VMX: Add guest physical address check in EPT violation and misconfig

2020-07-10 Thread Mohammed Gamal
Check guest physical address against it's maximum physical memory. If the guest's physical address exceeds the maximum (i.e. has reserved bits set), inject a guest page fault with PFERR_RSVD_MASK set. This has to be done both in the EPT violation and page fault paths, as there are complications in

Re: [PATCH v6] drm/i915: Init lspcon after HPD in intel_dp_detect()

2020-07-10 Thread Kai-Heng Feng
> On Jun 30, 2020, at 16:37, Kai-Heng Feng wrote: > > >> On Jun 10, 2020, at 15:55, Kai-Heng Feng wrote: >> >> On HP 800 G4 DM, if HDMI cable isn't plugged before boot, the HDMI port >> becomes useless and never responds to cable hotplugging: >> [3.031904] [drm:lspcon_init [i915]] *ERRO

[PATCH v3 6/9] KVM: VMX: introduce vmx_need_pf_intercept

2020-07-10 Thread Mohammed Gamal
From: Paolo Bonzini Signed-off-by: Paolo Bonzini --- arch/x86/kvm/vmx/nested.c | 28 +--- arch/x86/kvm/vmx/vmx.c| 2 +- arch/x86/kvm/vmx/vmx.h| 5 + 3 files changed, 23 insertions(+), 12 deletions(-) diff --git a/arch/x86/kvm/vmx/nested.c b/arch/x86/kvm/vm

[PATCH v3 9/9] KVM: x86: SVM: VMX: Make GUEST_MAXPHYADDR < HOST_MAXPHYADDR support configurable

2020-07-10 Thread Mohammed Gamal
The reason behind including this patch is unexpected behaviour we see with NPT vmexit handling in AMD processor. With previous patch ("KVM: SVM: Add guest physical address check in NPF/PF interception") we see the followning error multiple times in the 'access' test in kvm-unit-tests:

[PATCH v3 4/9] KVM: x86: rename update_bp_intercept to update_exception_bitmap

2020-07-10 Thread Mohammed Gamal
From: Paolo Bonzini We would like to introduce a callback to update the #PF intercept when CPUID changes. Just reuse update_bp_intercept since VMX is already using update_exception_bitmap instead of a bespoke function. While at it, remove an unnecessary assignment in the SVM version, which is a

[PATCH v3 8/9] KVM: VMX: optimize #PF injection when MAXPHYADDR does not match

2020-07-10 Thread Mohammed Gamal
From: Paolo Bonzini Ignore non-present page faults, since those cannot have reserved bits set. When running access.flat with "-cpu Haswell,phys-bits=36", the number of trapped page faults goes down from 8872644 to 3978948. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/vmx/vmx.c | 10 +

[PATCH v3 3/9] KVM: x86: mmu: Add guest physical address check in translate_gpa()

2020-07-10 Thread Mohammed Gamal
In case of running a guest with 4-level page tables on a 5-level page table host, it might happen that a guest might have a physical address with reserved bits set, but the host won't see that and trap it. Hence, we need to check page faults' physical addresses against the guest's maximum physical

[PATCH 2/3] usb: chipidea: imx: support disabling runtime-pm

2020-07-10 Thread Philippe Schenker
Chipidea depends on some hardware signals to be there in order for runtime-pm to work well. Add the possibility to disable runtime power management that is necessary for certain boards. Signed-off-by: Philippe Schenker --- drivers/usb/chipidea/ci_hdrc_imx.c | 3 +++ 1 file changed, 3 insertions

[PATCH 1/3] dt-bindings: usb: ci-hdrc-usb2: add property disable-runtime-pm

2020-07-10 Thread Philippe Schenker
Chipidea depends on some hardware signals to be there in order for runtime-pm to work well. Add the possibility to disable runtime power management that is necessary for certain boards. Signed-off-by: Philippe Schenker --- Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt | 1 + 1 file cha

[PATCH 3/3] ARM: dts: colibri-imx6ull: disable runtime pm

2020-07-10 Thread Philippe Schenker
The Colibri iMX6ULL has a somewhat special hardware design due to some legacy decisions regarding USB OTG. This leads to different issues when runtime PM is enabled. Disable runtime power management on colibri-imx6ull USB. Signed-off-by: Philippe Schenker --- arch/arm/boot/dts/imx6ull-colibri

re: Bluetooth: hci_qca: Add QCA Rome power off support to the qca_power_shutdown()

2020-07-10 Thread Colin Ian King
Hi, Static analysis with Coverity has found a potential issue in drivers/bluetooth/hci_qca.c, function qca_power_shutdown. The commit that triggered the detection of the issue was as follows: commit 5559904ccc0867a0ce796761681e40defe4a5f44 Author: Rocky Liao Date: Wed Jan 15 16:55:50 2020 +08

Re: [PATCH] kcmp: add separate Kconfig symbol for kcmp syscall

2020-07-10 Thread Randy Dunlap
On 7/10/20 12:56 AM, Rasmus Villemoes wrote: > diff --git a/init/Kconfig b/init/Kconfig > index 0498af567f70..95e9486d4217 100644 > --- a/init/Kconfig > +++ b/init/Kconfig > @@ -1158,9 +1158,20 @@ config NET_NS > > endif # NAMESPACES > > +config KCMP_SYSCALL > + bool "kcmp system call" > +

Re: [PATCH] stmmac: pci: Add support for LS7A bridge chip

2020-07-10 Thread Jakub Kicinski
On Fri, 10 Jul 2020 16:51:50 +0800 Zhi Li wrote: > Add gmac platform data to support LS7A bridge chip. > > Co-developed-by: Hongbin Li > Signed-off-by: Hongbin Li > Signed-off-by: Zhi Li This appears to not build with allmodconfig: ../drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c:22:62: no

Re: [PATCH RFC] kprobes: Remove MODULES dependency

2020-07-10 Thread Kees Cook
On Fri, Jul 10, 2020 at 07:32:57PM +0900, Masami Hiramatsu wrote: > On Fri, 10 Jul 2020 02:45:19 +0300 > Jarkko Sakkinen wrote: > > +#ifdef CONFIG_MODULES > > /* Lock modules while optimizing kprobes */ > > mutex_lock(&module_mutex); > > +#endif > > Hmm, can you reduce these "#ifdef CONFI

Re: [PATCH 1/3] dt-bindings: usb: ci-hdrc-usb2: add property disable-runtime-pm

2020-07-10 Thread Fabio Estevam
Hi Philippe, On Fri, Jul 10, 2020 at 12:51 PM Philippe Schenker wrote: > > Chipidea depends on some hardware signals to be there in order I think this description is too vague. Could you please provide more details so that a user can know if their hardware falls into this category? It is not c

Re: [PATCH] kcmp: add separate Kconfig symbol for kcmp syscall

2020-07-10 Thread Matthew Wilcox
On Fri, Jul 10, 2020 at 09:56:31AM +0200, Rasmus Villemoes wrote: > The ability to check open file descriptions for equality (without > resorting to unreliable fstat() and fcntl(F_GETFL) comparisons) can be > useful outside of the checkpoint/restore use case - for example, > systemd uses kcmp() to

[PATCH v3] mm, oom: make the calculation of oom badness more accurate

2020-07-10 Thread Yafang Shao
Recently we found an issue on our production environment that when memcg oom is triggered the oom killer doesn't chose the process with largest resident memory but chose the first scanned process. Note that all processes in this memcg have the same oom_score_adj, so the oom killer should chose the

Re: [PATCH 1/1] tty: serial: owl: Initialize lock before registering port

2020-07-10 Thread Cristian Ciocaltea
On Fri, Jul 10, 2020 at 03:35:42PM +0200, Greg Kroah-Hartman wrote: > On Fri, Jul 10, 2020 at 03:05:49PM +0300, Cristian Ciocaltea wrote: > > On Fri, May 29, 2020 at 01:34:19PM +0200, Greg Kroah-Hartman wrote: > > > On Fri, May 29, 2020 at 02:06:47PM +0300, Cristian Ciocaltea wrote: > > > > Running

Re: [PATCH V6 4/5] iommu/dma-iommu: Use the dev->coherent_dma_mask

2020-07-10 Thread Christoph Hellwig
Btw, what is the current state of converting intel-iommu to the dma-iommu code?

[GIT PULL] clean up kernel read/write helpers

2020-07-10 Thread Christoph Hellwig
(note that the new WARN_ONs in combination with syzcaller already found a missing input validation in 9p. The fix should be on your way through the maintainer ASAP) The following changes since commit dcde237b9b0eb1d19306e6f48c0a4e058907619f: Merge tag 'perf-tools-fixes-2020-07-07' of git://gi

[GIT PULL] io_uring fixes for 5.8-rc5

2020-07-10 Thread Jens Axboe
Hi Linus, - Fix memleak for error path in registered files (Yang) - Export CQ overflow state in flags, necessary to fix a case where liburing doesn't know if it needs to enter the kernel (Xiaoguang) - Fix for a regression in when user memory is accounted freed, causing issues with back-to-back

Re: [PATCH] MAINTAINERS: XDP: restrict N: and K:

2020-07-10 Thread Joe Perches
On Fri, 2020-07-10 at 17:14 +0200, Daniel Borkmann wrote: > On 7/10/20 8:17 AM, Alexander A. Klimov wrote: > > Am 09.07.20 um 22:37 schrieb Daniel Borkmann: > > > On 7/9/20 9:42 PM, Alexander A. Klimov wrote: > > > > Rationale: > > > > Documentation/arm/ixp4xx.rst contains "xdp" as part of "ixdp465

[PATCH] drm/vkms: change the max cursor width/height

2020-07-10 Thread Melissa Wen
This change expands the coverage for the IGT kms_cursor_crc test, where the size varies between 64 and 512 for a square cursor. With this, in addition to the cursor 64x64, this patch enables the test of cursors with sizes: 128x128, 256x256, and 512x512. Signed-off-by: Melissa Wen --- drivers/gpu

Re: [PATCH v2] CodingStyle: Inclusive Terminology

2020-07-10 Thread Linus Walleij
On Wed, Jul 8, 2020 at 9:40 AM Dan Williams wrote: > Linux maintains a coding-style and its own idiomatic set of terminology. > Update the style guidelines to recommend replacements for the terms > master/slave and blacklist/whitelist. > > Link: > http://lore.kernel.org/r/159389297140.2210796.13

Re: [PATCH v2 4/6] devres: handle zero size in devm_kmalloc()

2020-07-10 Thread Bartosz Golaszewski
On Fri, Jul 10, 2020 at 3:46 PM Jon Hunter wrote: > > Hi Bartosz, > > On 29/06/2020 07:50, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > Make devm_kmalloc() behave similarly to non-managed kmalloc(): return > > ZERO_SIZE_PTR when requested size is 0. Update devm_kfree() to hand

Re: [ANNOUNCE] Git v2.28.0-rc0

2020-07-10 Thread Junio C Hamano
Derrick Stolee writes: > On 7/9/2020 5:40 PM, Junio C Hamano wrote: >> An early preview release Git v2.28.0-rc0 is now available for >> testing at the usual places. > > This might be part of your new process, or it might be an > oversight. It seems that GIT-VERSION-GEN did not update with > thi

Re: [PATCH v3] PCI: aardvark: Don't touch PCIe registers if no card connected

2020-07-10 Thread Bjorn Helgaas
On Fri, Jul 10, 2020 at 05:44:58PM +0200, Pali Rohár wrote: > I can reproduce following issue: Connect Compex WLE900VX card, configure > aardvark to gen2 mode. And then card is detected only after the first > link training. If kernel tries to retrain link again (e.g. via ASPM > code) then card is n

Re: Linux kernel in-tree Rust support

2020-07-10 Thread Kees Cook
On Fri, Jul 10, 2020 at 02:50:22PM +0200, Christian Brauner wrote: > On Fri, Jul 10, 2020 at 08:28:03AM +0200, Greg KH wrote: > > On Thu, Jul 09, 2020 at 11:41:47AM -0700, Nick Desaulniers wrote: > > > Hello folks, > > > I'm working on putting together an LLVM "Micro Conference" for the > > > upcom

Re: [PATCH] pinctrl: qcom: Handle broken PDC dual edge case on sc7180

2020-07-10 Thread Doug Anderson
Hi, On Fri, Jul 10, 2020 at 2:03 AM Marc Zyngier wrote: > > Hi Doug, > > On Wed, 08 Jul 2020 22:16:25 +0100, > Douglas Anderson wrote: > > > > As per Qualcomm, there is a PDC hardware issue (with the specific IP > > rev that exists on sc7180) that causes the PDC not to work properly > > when con

Re: [PATCH for-next/seccomp 0/3] Check ENOSYS under tracing

2020-07-10 Thread Kees Cook
On Fri, Jul 10, 2020 at 01:40:33PM +0100, Will Deacon wrote: > On Sat, Jul 04, 2020 at 11:12:29PM -0700, Kees Cook wrote: > > This expands the seccomp selftest to poke a architectural behavior corner > > that Keno Fischer noticed[1]. In the process, I took the opportunity > > to do the kselftest ha

[Linux-kernel-mentees] [PATCH v3] net/bluetooth: Fix slab-out-of-bounds read in hci_extended_inquiry_result_evt()

2020-07-10 Thread Peilin Ye
Check upon `num_rsp` is insufficient. A malformed event packet with a large `num_rsp` number makes hci_extended_inquiry_result_evt() go out of bounds. Fix it. This patch fixes the following syzbot bug: https://syzkaller.appspot.com/bug?id=4bf11aa05c4ca51ce0df86e500fce486552dc8d2 Reported-by

Re: [PATCH 3/5] vfio/pci: add qat devices to blocklist

2020-07-10 Thread Alex Williamson
On Fri, 10 Jul 2020 10:44:33 -0500 Bjorn Helgaas wrote: > On Fri, Jul 10, 2020 at 10:37:45AM -0500, Bjorn Helgaas wrote: > > On Fri, Jul 10, 2020 at 04:08:19PM +0100, Giovanni Cabiddu wrote: > > > On Wed, Jul 01, 2020 at 04:28:12PM -0500, Bjorn Helgaas wrote: > > > > On Wed, Jul 01, 2020 at 1

Re: [PATCH] pinctrl: qcom: Handle broken PDC dual edge case on sc7180

2020-07-10 Thread Doug Anderson
Hi, On Thu, Jul 9, 2020 at 10:09 PM Maulik Shah wrote: > > Hi Doug, > > On 7/9/2020 2:46 AM, Douglas Anderson wrote: > > As per Qualcomm, there is a PDC hardware issue (with the specific IP > > rev that exists on sc7180) that causes the PDC not to work properly > > when configured to handle dual

Re: [PATCH v2 4/6] devres: handle zero size in devm_kmalloc()

2020-07-10 Thread Jon Hunter
On 10/07/2020 17:03, Bartosz Golaszewski wrote: > On Fri, Jul 10, 2020 at 3:46 PM Jon Hunter wrote: >> >> Hi Bartosz, >> >> On 29/06/2020 07:50, Bartosz Golaszewski wrote: >>> From: Bartosz Golaszewski >>> >>> Make devm_kmalloc() behave similarly to non-managed kmalloc(): return >>> ZERO_SIZE_P

Re: [PATCH] MAINTAINERS: XDP: restrict N: and K:

2020-07-10 Thread Toke Høiland-Jørgensen
Joe Perches writes: > On Fri, 2020-07-10 at 17:14 +0200, Daniel Borkmann wrote: >> On 7/10/20 8:17 AM, Alexander A. Klimov wrote: >> > Am 09.07.20 um 22:37 schrieb Daniel Borkmann: >> > > On 7/9/20 9:42 PM, Alexander A. Klimov wrote: >> > > > Rationale: >> > > > Documentation/arm/ixp4xx.rst conta

Re: [PATCH v2] CodingStyle: Inclusive Terminology

2020-07-10 Thread Dan Williams
On Fri, Jul 10, 2020 at 9:03 AM Linus Walleij wrote: > > On Wed, Jul 8, 2020 at 9:40 AM Dan Williams wrote: > > > Linux maintains a coding-style and its own idiomatic set of terminology. > > Update the style guidelines to recommend replacements for the terms > > master/slave and blacklist/whiteli

Re: [PATCH 0/5] vfio/pci: add blocklist and disable qat

2020-07-10 Thread Giovanni Cabiddu
On Fri, Jul 10, 2020 at 04:48:07PM +0100, Christoph Hellwig wrote: > On Wed, Jul 01, 2020 at 01:42:09PM +0100, Christoph Hellwig wrote: > > On Wed, Jul 01, 2020 at 12:02:57PM +0100, Giovanni Cabiddu wrote: > > > This patchset defines a blocklist of devices in the vfio-pci module and > > > adds > >

Re: [PATCH] virtio_balloon: clear modern features under legacy

2020-07-10 Thread Alexander Duyck
On Fri, Jul 10, 2020 at 4:31 AM Michael S. Tsirkin wrote: > > Page reporting features were never supported by legacy hypervisors. > Supporting them poses a problem: should we use native endian-ness (like > current code assumes)? Or little endian-ness like the virtio spec says? > Rather than try to

Re: [PATCH v5 2/6] PCI: uniphier: Add misc interrupt handler to invoke PME and AER

2020-07-10 Thread Lorenzo Pieralisi
On Wed, Jul 01, 2020 at 11:18:29AM +0900, Kunihiko Hayashi wrote: [...] > > > > >   -static void uniphier_pcie_irq_handler(struct irq_desc *desc) > > > > > +static void uniphier_pcie_misc_isr(struct pcie_port *pp, bool is_msi) > > > > >   { > > > > > -    struct pcie_port *pp = irq_desc_get_handl

[PATCH net-next] ptp: add debugfs support for IDT family of timing devices

2020-07-10 Thread min.li.xe
From: Min Li This patch is to add debugfs support for ptp_clockmatrix and ptp_idt82p33. It will create a debugfs directory called idtptp{x} and x is the ptp index. Three inerfaces are present, which are cmd, help and regs. help is read only and will display a brief help message. regs is read only

WARNING in fat12_ent_blocknr

2020-07-10 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:9e50b94b Add linux-next specific files for 20200703 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=1566637b10 kernel config: https://syzkaller.appspot.com/x/.config?x=f99cc0faa1476ed6 dashboard

Re: [PATCH v7 04/11] dmaengine: Introduce max SG list entries capability

2020-07-10 Thread Serge Semin
On Fri, Jul 10, 2020 at 02:51:33PM +0300, Peter Ujfalusi wrote: > Hi Sergey, > > On 10/07/2020 12.27, Serge Semin wrote: > > Hello Peter > > > > On Fri, Jul 10, 2020 at 11:31:47AM +0300, Peter Ujfalusi wrote: > >> > >> > >> On 10/07/2020 1.45, Serge Semin wrote: > >>> Some devices may lack the su

user_access_{save,restore}() semantics

2020-07-10 Thread Christoph Hellwig
Hi Peter, can you explain (and maybe document while we're at it) what the exact semantics of the user_access_{save,restore} helpers are? Reverse engineering from the commit text they seem to be about saving the current uaccess state. But do they also enable/disable anything?

[PATCH v3 1/3] devres: provide devm_krealloc()

2020-07-10 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Implement the managed variant of krealloc(). This function works with all memory allocated by devm_kmalloc() (or devres functions using it implicitly like devm_kmemdup(), devm_kstrdup() etc.). Managed realloc'ed chunks can be manually released with devm_kfree(). Signed

Re: [PATCH v3 4/9] KVM: x86: rename update_bp_intercept to update_exception_bitmap

2020-07-10 Thread Jim Mattson
On Fri, Jul 10, 2020 at 8:48 AM Mohammed Gamal wrote: > > From: Paolo Bonzini > > We would like to introduce a callback to update the #PF intercept > when CPUID changes. Just reuse update_bp_intercept since VMX is > already using update_exception_bitmap instead of a bespoke function. > > While a

[PATCH v3 3/3] iio: adc: xilinx-xadc: use devm_krealloc()

2020-07-10 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Use the managed variant of krealloc() and shrink the code a bit. Signed-off-by: Bartosz Golaszewski --- drivers/iio/adc/xilinx-xadc-core.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/iio/adc/xilinx-xadc-core.c b/driver

Re: ptrace: seccomp: Return value when the call was already invalid

2020-07-10 Thread Kees Cook
On Fri, Jul 10, 2020 at 01:42:54PM +0100, Will Deacon wrote: > On Sat, Jul 04, 2020 at 09:56:50PM -0700, Kees Cook wrote: > > (What doesn't pass for you? I tried to go find kernelci.org test output, > > but it doesn't appear to actually run selftests yet?) > > Sorry, realised I forgot to reply to

[PATCH v3 0/3] devres: provide and use devm_krealloc()

2020-07-10 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Hi Greg, As discussed, resending the remaining devm_krealloc() patches. === Regular krealloc() obviously can't work with managed memory. This series implements devm_krealloc() and adds the first users with hope that this helper will be adopted by other drivers current

[PATCH v3 2/3] hwmon: pmbus: use more devres helpers

2020-07-10 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Shrink pmbus code by using devm_hwmon_device_register_with_groups() and devm_krealloc() instead of their non-managed variants. Signed-off-by: Bartosz Golaszewski Acked-by: Guenter Roeck --- drivers/hwmon/pmbus/pmbus_core.c | 28 +--- 1 file ch

[PATCH v3 2/2] riscv: Enable per-task stack canaries

2020-07-10 Thread guoren
From: Guo Ren This enables the use of per-task stack canary values if GCC has support for emitting the stack canary reference relative to the value of tp, which holds the task struct pointer in the riscv kernel. After compare arm64 and x86 implementations, seems arm64's is more flexible and read

Re: [PATCH RFC 0/3] io_uring: add restrictions to support untrusted applications and guests

2020-07-10 Thread Stefano Garzarella
Hi Konrad, On Fri, Jul 10, 2020 at 11:33:09AM -0400, Konrad Rzeszutek Wilk wrote: > .snip.. > > Just to recap the proposal, the idea is to add some restrictions to the > > operations (sqe, register, fixed file) to safely allow untrusted > > applications > > or guests to use io_uring queues. > >

[PATCH v3 1/2] riscv: Add STACKPROTECTOR supported

2020-07-10 Thread guoren
From: Guo Ren The -fstack-protector & -fstack-protector-strong features are from gcc. The patch only add basic kernel support to stack-protector feature and some arch could have its own solution such as ARM64_PTR_AUTH. After enabling STACKPROTECTOR and STACKPROTECTOR_STRONG, the .text size is ex

Re: [PATCH 1/2] mm/migrate: optimize migrate_vma_setup() for holes

2020-07-10 Thread Ralph Campbell
On 7/9/20 11:35 PM, Bharata B Rao wrote: On Thu, Jul 09, 2020 at 09:57:10AM -0700, Ralph Campbell wrote: When migrating system memory to device private memory, if the source address range is a valid VMA range and there is no memory or a zero page, the source PFN array is marked as valid but wi

[PATCH v8 0/4] kasan: memorize and print call_rcu stack

2020-07-10 Thread Walter Wu
This patchset improves KASAN reports by making them to have call_rcu() call stack information. It is useful for programmers to solve use-after-free or double-free memory issue. The KASAN report was as follows(cleaned up slightly): BUG: KASAN: use-after-free in kasan_rcu_reclaim+0x58/0x60 Freed b

Re: [PATCH v1] regmap: Switch to use fwnode instead of OF one

2020-07-10 Thread Mark Brown
On Fri, Jul 10, 2020 at 05:13:06PM +0300, Andy Shevchenko wrote: > On Fri, Jul 10, 2020 at 4:36 PM Mark Brown wrote: > > Oh, I see your patch covered a different bit of code without covering > > the stuff in regmap-irq (which I'd just handled when your patch came in) > > for some reason so the ch

Re: [PATCH 3/5] vfio/pci: add qat devices to blocklist

2020-07-10 Thread Giovanni Cabiddu
On Fri, Jul 10, 2020 at 10:10:34AM -0600, Alex Williamson wrote: > On Fri, 10 Jul 2020 10:44:33 -0500 > Bjorn Helgaas wrote: > > > On Fri, Jul 10, 2020 at 10:37:45AM -0500, Bjorn Helgaas wrote: > > > On Fri, Jul 10, 2020 at 04:08:19PM +0100, Giovanni Cabiddu wrote: > > > > On Wed, Jul 01, 2020

Re: [PATCH 3/6] dt-bindings: thermal: tsens: document ipq8064 bindings

2020-07-10 Thread Rob Herring
On Thu, 09 Jul 2020 23:51:33 +0200, Ansuel Smith wrote: > Document the use of regmap phandle for ipq8064 SoCs > > Signed-off-by: Ansuel Smith > --- > .../bindings/thermal/qcom-tsens.yaml | 51 --- > 1 file changed, 44 insertions(+), 7 deletions(-) > My bot found error

[PATCH v8 1/4] rcu: kasan: record and print call_rcu() call stack

2020-07-10 Thread Walter Wu
This feature will record the last two call_rcu() call stacks and prints up to 2 call_rcu() call stacks in KASAN report. When call_rcu() is called, we store the call_rcu() call stack into slub alloc meta-data, so that the KASAN report can print rcu stack. [1]https://bugzilla.kernel.org/show_bug.cg

Re: [PATCH v2 4/6] devres: handle zero size in devm_kmalloc()

2020-07-10 Thread Bartosz Golaszewski
On Fri, Jul 10, 2020 at 6:11 PM Jon Hunter wrote: > > > On 10/07/2020 17:03, Bartosz Golaszewski wrote: > > On Fri, Jul 10, 2020 at 3:46 PM Jon Hunter wrote: > >> > >> Hi Bartosz, > >> > >> On 29/06/2020 07:50, Bartosz Golaszewski wrote: > >>> From: Bartosz Golaszewski > >>> > >>> Make devm_kmal

[PATCH v8 2/4] kasan: record and print the free track

2020-07-10 Thread Walter Wu
Move free track from kasan_alloc_meta to kasan_free_meta in order to make struct kasan_alloc_meta and kasan_free_meta size are both 16 bytes. It is a good size because it is the minimal redzone size and a good number of alignment. For free track, we make some modifications as shown below: 1) Remov

[PATCH v8 3/4] kasan: add tests for call_rcu stack recording

2020-07-10 Thread Walter Wu
Test call_rcu() call stack recording and verify whether it correctly is printed in KASAN report. Signed-off-by: Walter Wu Reviewed-and-tested-by: Dmitry Vyukov Reviewed-by: Andrey Konovalov Cc: Andrey Ryabinin Cc: Alexander Potapenko Cc: Matthias Brugger --- Changes since v6: - renamed the

Re: [PATCH v3 5/9] KVM: x86: update exception bitmap on CPUID changes

2020-07-10 Thread Jim Mattson
On Fri, Jul 10, 2020 at 8:48 AM Mohammed Gamal wrote: > > From: Paolo Bonzini > > Allow vendor code to observe changes to MAXPHYADDR and start/stop > intercepting page faults. > > Signed-off-by: Paolo Bonzini Reviewed-by: Jim Mattson

Re: [PATCH 3/6] dt-bindings: thermal: tsens: document ipq8064 bindings

2020-07-10 Thread Rob Herring
On Thu, Jul 09, 2020 at 11:51:33PM +0200, Ansuel Smith wrote: > Document the use of regmap phandle for ipq8064 SoCs > > Signed-off-by: Ansuel Smith > --- > .../bindings/thermal/qcom-tsens.yaml | 51 --- > 1 file changed, 44 insertions(+), 7 deletions(-) > > diff --git a

[PATCH v8 4/4] kasan: update documentation for generic kasan

2020-07-10 Thread Walter Wu
Generic KASAN will support to record the last two call_rcu() call stacks and print them in KASAN report. So that need to update documentation. Signed-off-by: Walter Wu Reviewed-and-tested-by: Dmitry Vyukov Reviewed-by: Andrey Konovalov Cc: Andrey Ryabinin Cc: Alexander Potapenko Cc: Jonathan

Re: [PATCH v12 07/11] KVM: vmx/pmu: Unmask LBR fields in the MSR_IA32_DEBUGCTLMSR emualtion

2020-07-10 Thread Sean Christopherson
On Wed, Jul 08, 2020 at 03:06:57PM +0800, Xu, Like wrote: > Hi Sean, > > First of all, are you going to queue the LBR patch series in your tree > considering the host perf patches have already queued in Peter's tree ? No, I'll let Paolo take 'em directly, I'm nowhere near knowledgeable enough wit

Re: [RFC PATCH] irqchip/gic: Implement irq_chip->irq_retrigger()

2020-07-10 Thread Marc Zyngier
On Fri, 10 Jul 2020 15:56:42 +0100, Valentin Schneider wrote: > > While digging around IRQCHIP_EOI_IF_HANDLED and irq/resend.c, it has come > to my attention that the IRQ resend situation seems a bit precarious for > the GIC(s). Below is a (somewhat structured) dump of my notes/thoughts > about t

Re: [PATCH 1/1] tty: serial: owl: Initialize lock before registering port

2020-07-10 Thread Andy Shevchenko
On Fri, Jul 10, 2020 at 06:58:06PM +0300, Cristian Ciocaltea wrote: > On Fri, Jul 10, 2020 at 03:35:42PM +0200, Greg Kroah-Hartman wrote: > > On Fri, Jul 10, 2020 at 03:05:49PM +0300, Cristian Ciocaltea wrote: ... > > But I think we now have a core fix for this, no need to do this in any > > indi

Re: [PATCH v2 4/6] devres: handle zero size in devm_kmalloc()

2020-07-10 Thread Jon Hunter
On 10/07/2020 17:24, Bartosz Golaszewski wrote: > On Fri, Jul 10, 2020 at 6:11 PM Jon Hunter wrote: >> >> >> On 10/07/2020 17:03, Bartosz Golaszewski wrote: >>> On Fri, Jul 10, 2020 at 3:46 PM Jon Hunter wrote: Hi Bartosz, On 29/06/2020 07:50, Bartosz Golaszewski wrote:

Re: [PATCH v3 0/9] KVM: Support guest MAXPHYADDR < host MAXPHYADDR

2020-07-10 Thread Jim Mattson
On Fri, Jul 10, 2020 at 8:48 AM Mohammed Gamal wrote: > > When EPT is enabled, KVM does not really look at guest physical > address size. Address bits above maximum physical memory size are reserved. > Because KVM does not look at these guest physical addresses, it currently > effectively supports

Re: [PATCH v5 2/2] devicetree: hwmon: shtc1: Add sensirion,shtc1.yaml

2020-07-10 Thread Rob Herring
On Fri, 10 Jul 2020 10:15:35 +0800, Chris Ruehl wrote: > Add documentation for the newly added DTS support in the shtc1 driver. > To align with the drivers logic to have high precision by default > a boolean sensirion,low_precision is used to switch to low precision. > > Signed-off-by: Chris Ruehl

Re: [PATCH v2 2/6] dt-bindings: interconnect: Add property to set BCM TCS wait behavior

2020-07-10 Thread Rob Herring
On Thu, Jul 09, 2020 at 06:56:48PM -0700, Mike Tipton wrote: > Add "qcom,tcs-wait" property to set which TCS should wait for completion > when triggering. > > Signed-off-by: Mike Tipton > --- > .../bindings/interconnect/qcom,bcm-voter.yaml | 13 + > 1 file changed, 13 insertion

Re: [PATCH v7 2/5] remoteproc: qcom: Introduce helper to store pil info in IMEM

2020-07-10 Thread rishabhb
On 2020-06-22 12:19, Bjorn Andersson wrote: A region in IMEM is used to communicate load addresses of remoteproc to post mortem debug tools. Implement a helper function that can be used to store this information in order to enable these tools to process collected ramdumps. Reviewed-by: Mathieu

Re: [PATCH v7 3/5] remoteproc: qcom: Update PIL relocation info on load

2020-07-10 Thread rishabhb
On 2020-06-22 12:19, Bjorn Andersson wrote: Update the PIL relocation information in IMEM with information about where the firmware for various remoteprocs are loaded. Reviewed-by: Vinod Koul Reviewed-by: Stephen Boyd Signed-off-by: Bjorn Andersson --- Changes since v6: - None drivers/remo

Re: [PATCH v7 1/5] dt-bindings: remoteproc: Add Qualcomm PIL info binding

2020-07-10 Thread rishabhb
On 2020-06-22 12:19, Bjorn Andersson wrote: Add a devicetree binding for the Qualcomm peripheral image loader relocation information region found in the IMEM. Reviewed-by: Mathieu Poirier Reviewed-by: Rob Herring Reviewed-by: Stephen Boyd Reviewed-by: Vinod Koul Signed-off-by: Bjorn Andersso

Re: [PATCH 2/3] dt-bindings: pinctrl: mt8192: add binding document

2020-07-10 Thread Rob Herring
On Fri, Jul 10, 2020 at 03:27:16PM +0800, Zhiyong Tao wrote: > The commit adds mt8192 compatible node in binding document. > > Signed-off-by: Zhiyong Tao > --- > .../bindings/pinctrl/pinctrl-mt8192.yaml | 170 ++ > 1 file changed, 170 insertions(+) > create mode 100644 > D

[GIT PULL] Kselftest fixes update for Linux 5.8-rc5

2020-07-10 Thread Shuah Khan
Hi Linus, Please pull the following Kselftest fixes update for Linux 5.8-rc5. This Kselftest fixes update for Linux 5.8-rc5 consists of tmp2 test changes to run on python3 and kselftest framework fix to incorrect return type. diff is attached. thanks, -- Shuah

Re: [PATCH] MAINTAIERS: Add John Ogness as printk reviewer

2020-07-10 Thread Steven Rostedt
On Fri, 10 Jul 2020 11:44:32 +0200 Petr Mladek wrote: > John Ogness has started major rework of the printk code. Add him > as reviewer so that he is aware of all other coming changes and > could influence their integration. > > Signed-off-by: Petr Mladek > --- > MAINTAINERS | 1 + > 1 file cha

Re: [RFC PATCH v2 1/5] mm: make HPAGE_PxD_{SHIFT,MASK,SIZE} always available

2020-07-10 Thread Andrea Arcangeli
Hello Hugh and Mike, On Mon, Jul 06, 2020 at 10:07:34PM -0700, Hugh Dickins wrote: > Adding Andrea to Cc, he's the one who structured it that way, > and should be consulted. > > I'm ambivalent myself. Many's the time I've been irritated by the > BUILD_BUG() in HPAGE_etc, and it's responsible for

Re: user_access_{save,restore}() semantics

2020-07-10 Thread Peter Zijlstra
On Fri, Jul 10, 2020 at 06:15:27PM +0200, Christoph Hellwig wrote: > Hi Peter, > > can you explain (and maybe document while we're at it) what the > exact semantics of the user_access_{save,restore} helpers are? > > Reverse engineering from the commit text they seem to be about > saving the curre

Re: [PATCH v2] genpd: Fix up terminology with parent/child

2020-07-10 Thread Kevin Hilman
Ulf Hansson writes: > On Thu, 9 Jul 2020 at 14:25, Rafael J. Wysocki wrote: >> >> On Thu, Jul 9, 2020 at 1:32 AM Kees Cook wrote: >> > >> > The genpd infrastructure uses the terms master/slave, but such uses have >> > no external exposures (not even in Documentation/driver-api/pm/*) and are >>

WARNING in kmem_cache_free_bulk

2020-07-10 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:7cc2a8ea Merge tag 'block-5.8-2020-07-01' of git://git.ker.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=14258fe310 kernel config: https://syzkaller.appspot.com/x/.config?x=7be693511b29b338 das

Re: [PATCH v2] ARM: stacktrace: Fix unwind_frame for clang-built kernels

2020-07-10 Thread Nick Desaulniers
Hi Nathan, Would you please submit this to Russell's patch tracking system: https://www.arm.linux.org.uk/developer/patches/ login -> add new patch. On Mon, Jul 6, 2020 at 11:27 AM Nathan Huckleberry wrote: > > Since clang does not push pc and sp in function prologues, the current > implementation

Re: user_access_{save,restore}() semantics

2020-07-10 Thread Christoph Hellwig
On Fri, Jul 10, 2020 at 06:40:37PM +0200, Peter Zijlstra wrote: > On Fri, Jul 10, 2020 at 06:15:27PM +0200, Christoph Hellwig wrote: > > Hi Peter, > > > > can you explain (and maybe document while we're at it) what the > > exact semantics of the user_access_{save,restore} helpers are? > > > > Rev

Re: [v1] drm/msm/dpu: enumerate second cursor pipe for external interface

2020-07-10 Thread Rob Clark
On Thu, Jun 25, 2020 at 5:46 AM Kalyan Thota wrote: > > Setup an RGB HW pipe as cursor which can be used on > secondary interface. > > For SC7180 2 HW pipes are enumerated as cursors > 1 - primary interface > 2 - secondary interface > > Signed-off-by: Kalyan Thota > --- > drivers/gpu/drm/msm/dis

Re: [Ksummit-discuss] [PATCH] CodingStyle: Inclusive Terminology

2020-07-10 Thread Andy Lutomirski
On Mon, Jul 6, 2020 at 9:30 PM Dan Williams wrote: > > On Sat, Jul 4, 2020 at 5:41 PM Kees Cook wrote: > > > > On Sat, Jul 04, 2020 at 01:02:51PM -0700, Dan Williams wrote: > > > Recent events have prompted a Linux position statement on inclusive > > > terminology. Given that Linux maintains a co

[PATCH v3 02/19] compiler.h: Split {READ,WRITE}_ONCE definitions out into rwonce.h

2020-07-10 Thread Will Deacon
In preparation for allowing architectures to define their own implementation of the READ_ONCE() macro, move the generic {READ,WRITE}_ONCE() definitions out of the unwieldy 'linux/compiler.h' file and into a new 'rwonce.h' header under 'asm-generic'. Acked-by: Paul E. McKenney Signed-off-by: Will

[PATCH v3 01/19] tools: bpf: Use local copy of headers including uapi/linux/filter.h

2020-07-10 Thread Will Deacon
Pulling header files directly out of the kernel sources for inclusion in userspace programs is highly error prone, not least because it bypasses the kbuild infrastructure entirely and so may end up referencing other header files that have not been generated. Subsequent patches will cause compiler.

[PATCH 00/18] Allow architectures to override __READ_ONCE()

2020-07-10 Thread Will Deacon
Hi all, This is version three of the patches I previously posted here: v1: https://lore.kernel.org/lkml/20191108170120.22331-1-w...@kernel.org/ v2: https://lore.kernel.org/r/20200630173734.14057-1-w...@kernel.org Changes since v2 include: * Actually add the barrier in READ_ONCE() for Alph

[PATCH v3 04/19] alpha: Override READ_ONCE() with barriered implementation

2020-07-10 Thread Will Deacon
Rather then relying on the core code to use smp_read_barrier_depends() as part of the READ_ONCE() definition, instead override __READ_ONCE() in the Alpha code so that it generates the required mb() and then implement smp_load_acquire() using the new macro to avoid redundant back-to-back barriers fr

[PATCH v3 06/19] asm/rwonce: Don't pull into 'asm-generic/rwonce.h'

2020-07-10 Thread Will Deacon
Now that 'smp_read_barrier_depends()' has gone the way of the Norwegian Blue, drop the inclusion of in 'asm-generic/rwonce.h'. This requires fixups to some architecture vdso headers which were previously relying on 'asm/barrier.h' coming in via 'linux/compiler.h'. Signed-off-by: Will Deacon ---

[PATCH v3 03/19] asm/rwonce: Allow __READ_ONCE to be overridden by the architecture

2020-07-10 Thread Will Deacon
The meat and potatoes of READ_ONCE() is defined by the __READ_ONCE() macro, which uses a volatile casts in an attempt to avoid tearing of byte, halfword, word and double-word accesses. Allow this to be overridden by the architecture code in the case that things like memory barriers are also require

[PATCH v3 09/19] locking/barriers: Remove definitions for [smp_]read_barrier_depends()

2020-07-10 Thread Will Deacon
There are no remaining users of [smp_]read_barrier_depends(), so remove it from the generic implementation of 'barrier.h'. Acked-by: Paul E. McKenney Signed-off-by: Will Deacon --- include/asm-generic/barrier.h | 17 - 1 file changed, 17 deletions(-) diff --git a/include/asm-ge

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