Re: [git pull] drm for 5.8-rc1

2020-06-02 Thread Linus Torvalds
On Mon, Jun 1, 2020 at 11:06 PM Dave Airlie wrote: > > This tree is a bit conflicty, the i915 ones are probably the hairy > ones, but amdgpu has a bunch as well, along with smattering of others. Hmm. Some of them are due to your previous mis-merges. Your commit 937eea297e26 ("Merge tag

Re: [RESEND PATCH v9 1/5] powerpc: Document details on H_SCM_HEALTH hcall

2020-06-02 Thread Ira Weiny
On Tue, Jun 02, 2020 at 03:44:34PM +0530, Vaibhav Jain wrote: > Add documentation to 'papr_hcalls.rst' describing the bitmap flags > that are returned from H_SCM_HEALTH hcall as per the PAPR-SCM > specification. > > Cc: "Aneesh Kumar K . V" > Cc: Dan Williams > Cc: Michael Ellerman > Cc: Ira

Re: [RESEND PATCH v9 5/5] powerpc/papr_scm: Implement support for PAPR_PDSM_HEALTH

2020-06-02 Thread Ira Weiny
On Tue, Jun 02, 2020 at 03:44:38PM +0530, Vaibhav Jain wrote: > This patch implements support for PDSM request 'PAPR_PDSM_HEALTH' > that returns a newly introduced 'struct nd_papr_pdsm_health' instance > containing dimm health information back to user space in response to > ND_CMD_CALL. This

Re: [PATCH v2 00/33] iommu: Move iommu_group setup to IOMMU core code

2020-06-02 Thread Jerry Snitselaar
On Tue Jun 02 20, Jerry Snitselaar wrote: On Tue Jun 02 20, Joerg Roedel wrote: Hi Jerry, On Mon, Jun 01, 2020 at 05:02:36PM -0700, Jerry Snitselaar wrote: Yeah, that will solve the panic. If you still see the kdump faults, can you please try with the attached diff? I was not able to

Re: [PATCH] drivers/dax/bus: Use kobj_to_dev() API

2020-06-02 Thread Pankaj Gupta
> Use kobj_to_dev() API instead of container_of(). > > Signed-off-by: Shuai He > --- > drivers/dax/bus.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/dax/bus.c b/drivers/dax/bus.c > index df238c8..24625d2 100644 > --- a/drivers/dax/bus.c > +++

drivers/firmware/stratix10-rsu.c:293:21: sparse: sparse: Using plain integer as NULL pointer

2020-06-02 Thread kbuild test robot
: 3 months ago config: arm64-randconfig-s032-20200602 (attached as .config) compiler: aarch64-linux-gcc (GCC) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-244-g0ee050a8-dirty git checkout 231d901d1e368c47c4786e826195520ea5ea # save

Re: [PATCH 05/10] spi: spi-dw-mmio: Spin off MSCC platforms into spi-dw-mchp

2020-06-02 Thread Serge Semin
On Tue, May 19, 2020 at 02:05:19PM +0200, Lars Povlsen wrote: > On 13/05/20 16:18, Mark Brown wrote: > > Date: Wed, 13 May 2020 16:18:11 +0100 > > From: Mark Brown > > To: Lars Povlsen > > Cc: SoC Team , Microchip Linux Driver Support > > , linux-...@vger.kernel.org, > >

WITH DUE RESPECT YOUR ATTENTION IS VERY VERY NEEDED URGENT.

2020-06-02 Thread Datuk Mohaiyani Binti Shamsudi
Dear Sir/ Madam, Please forgive me if my proposal comes to you as an embarrassment as I had no previous correspondence with you before now. I’m Mrs. Nora Abd Manaf, I'm the Chief Human Capital Officer & adulating committee members Malayan Banking BHD (MAYBANK). During our last banking

drivers/usb/dwc3/drd.c:508: undefined reference to `usb_role_switch_get_drvdata'

2020-06-02 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 194098915ac74daddca9d6ed46fd11be57f45e16 commit: 0339f7fbc82efb66504ededc49502856dccbfccf usb: dwc3: fix up for role switch API change date: 3 months ago config: ia64-randconfig-r013-20200602 (attached

Re: [PATCH v3 5/8] ath10k: use new taint_firmware_crashed()

2020-06-02 Thread Brian Norris
On Tue, May 26, 2020 at 7:58 AM Luis Chamberlain wrote: > > This makes use of the new taint_firmware_crashed() to help > annotate when firmware for device drivers crash. When firmware > crashes devices can sometimes become unresponsive, and recovery > sometimes requires a driver unload / reload

Re: [RESEND PATCH v9 4/5] ndctl/papr_scm,uapi: Add support for PAPR nvdimm specific methods

2020-06-02 Thread Ira Weiny
On Tue, Jun 02, 2020 at 01:51:49PM -0700, 'Ira Weiny' wrote: > On Tue, Jun 02, 2020 at 03:44:37PM +0530, Vaibhav Jain wrote: ... > > + > > +/* > > + * PDSM Envelope: > > + * > > + * The ioctl ND_CMD_CALL transfers data between user-space and kernel via > > + * envelope which consists of a header

Re: [PATCH v5 0/3] close_range()

2020-06-02 Thread Linus Torvalds
On Tue, Jun 2, 2020 at 1:42 PM Christian Brauner wrote: > > This is a resend of the close_range() syscall, as discussed in [1]. There > weren't any outstanding > discussions anymore and this was in mergeable shape. I simply hadn't gotten > around to moving this > into my for-next the last few

Re: [PATCH] ipv4: nexthop: Fix deadcode issue by performing a proper NULL check

2020-06-02 Thread David Miller
From: Nikolay Aleksandrov Date: Tue, 2 Jun 2020 10:23:09 +0300 > On 01/06/2020 21:06, David Miller wrote: >> From: patrickeigens...@gmail.com >> Date: Mon, 1 Jun 2020 13:12:01 +0200 >> >>> From: Patrick Eigensatz >>> >>> After allocating the spare nexthop group it should be tested for

Re: [PATCH v2 03/14] dt-bindings: PCI: Add bindings for more Brcmstb chips

2020-06-02 Thread Jim Quinlan
On Fri, May 29, 2020 at 1:46 PM Rob Herring wrote: > > On Tue, May 26, 2020 at 03:12:42PM -0400, Jim Quinlan wrote: > > From: Jim Quinlan > > > > - Add compatible strings for three more Broadcom STB chips: 7278, 7216, > > 7211 (STB version of RPi4). > > - add new property 'brcm,scb-sizes' > >

Re: [PATCH] irqchip/gic-v3-its: Don't try to move a disabled irq

2020-06-02 Thread Thomas Gleixner
"Herrenschmidt, Benjamin" writes: > On Sun, 2020-05-31 at 12:09 +0100, Marc Zyngier wrote: >> > The semantic of activate/deactivate (which maps to started/shutdown >> > in the IRQ code) is that the HW resources for a given interrupt are >> > only committed when the interrupt is activated. Trying

Re: [RESEND PATCH v9 4/5] ndctl/papr_scm,uapi: Add support for PAPR nvdimm specific methods

2020-06-02 Thread Ira Weiny
On Tue, Jun 02, 2020 at 03:44:37PM +0530, Vaibhav Jain wrote: > Introduce support for PAPR NVDIMM Specific Methods (PDSM) in papr_scm > module and add the command family NVDIMM_FAMILY_PAPR to the white list > of NVDIMM command sets. Also advertise support for ND_CMD_CALL for the > nvdimm command

Re: [PATCH v2 3/4] remoteproc/k3-dsp: Add a remoteproc driver of K3 C66x DSPs

2020-06-02 Thread Mathieu Poirier
On Wed, May 20, 2020 at 07:10:05PM -0500, Suman Anna wrote: > The Texas Instrument's K3 J721E SoCs have two C66x DSP Subsystems in MAIN > voltage domain that are based on the TI's standard TMS320C66x DSP CorePac > module. Each subsystem has a Fixed/Floating-Point DSP CPU, with 32 KB each > of L1P

Re: [PATCH] video: uvesafb: use true,false for bool variables

2020-06-02 Thread Sam Ravnborg
Hi Bartlomiej On Mon, Jun 01, 2020 at 12:37:00PM +0200, Bartlomiej Zolnierkiewicz wrote: > > Hi, > > On 4/22/20 9:18 AM, Jason Yan wrote: > > Fix the following coccicheck warning: > > > > drivers/video/fbdev/uvesafb.c:48:12-17: WARNING: Assignment of 0/1 to > > bool variable > >

Re: [PATCH] kcsan: Prefer '__no_kcsan inline' in test

2020-06-02 Thread Paul E. McKenney
On Tue, Jun 02, 2020 at 04:36:33PM +0200, Marco Elver wrote: > Instead of __no_kcsan_or_inline, prefer '__no_kcsan inline' in test -- > this is in case we decide to remove __no_kcsan_or_inline. > > Suggested-by: Peter Zijlstra > Signed-off-by: Marco Elver > --- > > Hi Paul, > > This is to

Re: [PATCH RFC] uaccess: user_access_begin_after_access_ok()

2020-06-02 Thread Linus Torvalds
On Tue, Jun 2, 2020 at 1:33 PM Michael S. Tsirkin wrote: > > Hmm are you sure we can drop it? access_ok is done in the context > of the process. Access itself in the context of a kernel thread > that borrows the same mm. IIUC if the process can be 32 bit > while the kernel is 64 bit, access_ok in

[PATCH v5 3/3] tests: add close_range() tests

2020-06-02 Thread Christian Brauner
This adds basic tests for the new close_range() syscall. - test that no invalid flags can be passed - test that a range of file descriptors is correctly closed - test that a range of file descriptors is correctly closed if there there are already closed file descriptors in the range - test that

[PATCH v5 0/3] close_range()

2020-06-02 Thread Christian Brauner
Hey everyone, This is a resend of the close_range() syscall, as discussed in [1]. There weren't any outstanding discussions anymore and this was in mergeable shape. I simply hadn't gotten around to moving this into my for-next the last few cycles and then forgot about it. Thanks to Kyle and

[PATCH v5 1/3] open: add close_range()

2020-06-02 Thread Christian Brauner
This adds the close_range() syscall. It allows to efficiently close a range of file descriptors up to all file descriptors of a calling task. I've also coordinated with some FreeBSD developers who got in touch with me (Cced below). FreeBSD intends to add the same syscall once we merged it. Quite

[PATCH v5 2/3] arch: wire-up close_range()

2020-06-02 Thread Christian Brauner
This wires up the close_range() syscall into all arches at once. Suggested-by: Arnd Bergmann Signed-off-by: Christian Brauner Reviewed-by: Oleg Nesterov Acked-by: Arnd Bergmann Acked-by: Michael Ellerman (powerpc) Cc: Jann Horn Cc: David Howells Cc: Dmitry V. Levin Cc: Linus Torvalds Cc:

Re: [PATCH RFC] uaccess: user_access_begin_after_access_ok()

2020-06-02 Thread Michael S. Tsirkin
On Tue, Jun 02, 2020 at 05:30:48PM +0100, Al Viro wrote: > On Tue, Jun 02, 2020 at 04:45:05AM -0400, Michael S. Tsirkin wrote: > > So vhost needs to poke at userspace *a lot* in a quick succession. It > > is thus benefitial to enable userspace access, do our thing, then > > disable. Except

Re: [PATCH] arm64: debug: mark a function as __init to save some memory

2020-06-02 Thread Doug Anderson
Hi, On Sun, May 31, 2020 at 4:00 AM Christophe JAILLET wrote: > > 'debug_monitors_init()' is only called via 'postcore_initcall'. > It can be marked as __init to save a few bytes of memory. > > Signed-off-by: Christophe JAILLET > --- > arch/arm64/kernel/debug-monitors.c | 2 +- > 1 file

RE: [PATCH RFC] uaccess: user_access_begin_after_access_ok()

2020-06-02 Thread David Laight
From: Michael S. Tsirkin > Sent: 02 June 2020 21:33 > On Tue, Jun 02, 2020 at 10:18:09AM -0700, Linus Torvalds wrote: > > On Tue, Jun 2, 2020 at 9:33 AM Al Viro wrote: > > > > > > > > > > > It's not clear whether we need a new API, I think __uaccess_being() has > > > > the > > > > assumption

[GIT PULL] Smack patches for v5.8

2020-06-02 Thread Casey Schaufler
Please pull these changes for the Smack LSM. There is a fix for a potential buffer overflow in smackfs, a fix for an unused variable warning when IPv6 is not configured, removal of a pointless lock in the d_instantiate hook and some dead code cleanup. All tests pass, and all changes have been in

memory leak in usbtest_probe

2020-06-02 Thread Kyungtae Kim
We report a bug (in linux-5.6.11) found by FuzzUSB (a modified version of syzkaller) The buf of an usbtest_dev instance (dev->buf) allocated in usbtest_probe() leaked. The usbtest_dev instance holding the buf is attached to a corresponding device instance through usb_set_intfdata(). But later,

KASAN: use-after-free Read in printer_read

2020-06-02 Thread Kyungtae Kim
We report a bug (in linux-5.6.11) found by FuzzUSB (a modified version of syzkaller) This bug happened when accessing a deallocated instance in printer_read(). printer_read() tries to access lock_printer_io of the printer_dev instance (f_printer.c:430). However, UAF arises because it had been

Re: [GIT PULL] MMC and MEMSTICK updates for v5.8

2020-06-02 Thread pr-tracker-bot
The pull request you sent on Mon, 1 Jun 2020 10:26:13 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc.git tags/mmc-v5.8 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/c5d6c13843880ad0112f0513f3eb041b258be66e Thank you! -- Deet-doot-dot, I am a bot.

Re: [GIT PULL] ACPI updates for v5.8-rc1

2020-06-02 Thread pr-tracker-bot
The pull request you sent on Mon, 1 Jun 2020 17:50:25 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git acpi-5.8-rc1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/118d6e98293b30aee378a6b08d27a35320a3e34f Thank you! -- Deet-doot-dot, I am a

Re: [GIT PULL] Power management updates for v5.8-rc1

2020-06-02 Thread pr-tracker-bot
The pull request you sent on Mon, 1 Jun 2020 17:48:27 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git pm-5.8-rc1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/355ba37d756c38962fe9bb616f5f48eb12a7e11e Thank you! -- Deet-doot-dot, I am a

Re: [GIT PULL] PNP update for v5.8-rc1

2020-06-02 Thread pr-tracker-bot
The pull request you sent on Mon, 1 Jun 2020 17:51:26 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git pnp-5.8-rc1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/194098915ac74daddca9d6ed46fd11be57f45e16 Thank you! -- Deet-doot-dot, I am a

Re: [GIT PULL] platform-drivers-x86 for 5.8-1

2020-06-02 Thread pr-tracker-bot
The pull request you sent on Tue, 2 Jun 2020 11:16:15 +0300: > git://git.infradead.org/linux-platform-drivers-x86.git > tags/platform-drivers-x86-v5.8-1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/a5a82e0a5918fb2ae27b80d3b9c954b16ae6a7b7 Thank you! --

[tip:perf/urgent] BUILD SUCCESS 16accae3d97f97d7f61c4ee5d0002bccdef59088

2020-06-02 Thread kbuild test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf/urgent branch HEAD: 16accae3d97f97d7f61c4ee5d0002bccdef59088 perf/x86/rapl: Fix RAPL config variable bug elapsed time: 534m configs tested: 47 configs skipped: 103 The following configs have been built

Re: [PATCH RFC] uaccess: user_access_begin_after_access_ok()

2020-06-02 Thread Michael S. Tsirkin
On Tue, Jun 02, 2020 at 10:18:09AM -0700, Linus Torvalds wrote: > On Tue, Jun 2, 2020 at 9:33 AM Al Viro wrote: > > > > > > > > It's not clear whether we need a new API, I think __uaccess_being() has > > > the > > > assumption that the address has been validated by access_ok(). > > > >

Re: [PATCH 04/13] perf tests: Add another metric parsing test

2020-06-02 Thread Ian Rogers
On Tue, Jun 2, 2020 at 12:08 PM Jiri Olsa wrote: > > On Tue, Jun 02, 2020 at 10:58:32AM -0700, Ian Rogers wrote: > > SNIP > > > > +static int check_parse_fake(const char *id) > > > +{ > > > + struct parse_events_error error; > > > > nit: this reads funny as it isn't clear, without looking

Re: [PATCH net-next v2] af-packet: new flag to indicate all csums are good

2020-06-02 Thread Victor Julien
On 02-06-2020 22:18, Willem de Bruijn wrote: > On Tue, Jun 2, 2020 at 4:05 PM Victor Julien wrote: >> >> On 02-06-2020 21:38, Willem de Bruijn wrote: >>> On Tue, Jun 2, 2020 at 3:22 PM Victor Julien wrote: On 02-06-2020 21:03, Willem de Bruijn wrote: > On Tue, Jun 2, 2020 at 2:31

Re: [PATCH v14 13/15] mm/damon-test: Add a kunit test for recording setup

2020-06-02 Thread Brendan Higgins
On Tue, Jun 2, 2020 at 6:16 AM SeongJae Park wrote: > > From: SeongJae Park > > This commit adds another unit test case for the recording setup. > > Signed-off-by: SeongJae Park Reviewed-by: Brendan Higgins

Re: linux-sh for-next reactivation

2020-06-02 Thread Rich Felker
On Tue, Jun 02, 2020 at 03:00:39PM +1000, Stephen Rothwell wrote: > Hi Rich, > > On Mon, 1 Jun 2020 23:11:39 -0400 Rich Felker wrote: > > > > Could you reactivate linux-next pull from my arch/sh for-next branch? > > It's where it was before, at: > > > > git://git.libc.org/linux-sh for-next

Re: [PATCH] arch/x86: reset MXCSR to default in kernel_fpu_begin()

2020-06-02 Thread Shuah Khan
On 6/2/20 1:50 PM, Andy Lutomirski wrote: On Jun 2, 2020, at 10:27 AM, Shuah Khan wrote: On 6/2/20 11:03 AM, Andy Lutomirski wrote: On Tue, Jun 2, 2020 at 3:56 AM Borislav Petkov wrote: Hi, On Tue, Jun 02, 2020 at 01:29:51PM +0300, Petteri Aimonen wrote: The kernel module is not

Re: [PATCH net-next v2] af-packet: new flag to indicate all csums are good

2020-06-02 Thread Willem de Bruijn
On Tue, Jun 2, 2020 at 4:05 PM Victor Julien wrote: > > On 02-06-2020 21:38, Willem de Bruijn wrote: > > On Tue, Jun 2, 2020 at 3:22 PM Victor Julien wrote: > >> > >> On 02-06-2020 21:03, Willem de Bruijn wrote: > >>> On Tue, Jun 2, 2020 at 2:31 PM Victor Julien wrote: > On 02-06-2020

[GIT PULL] parisc architecture updates for kernel v5.8-rc1

2020-06-02 Thread Helge Deller
Hi Linus, please pull the parisc architecture updates for kernel 5.8-rc1 from: git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git parisc-5.8-1 Enable the sysctl file interface for panic_on_stackoverflow for parisc, a warning fix and a bunch of documentation updates since

Re: [PATCH] iommu/vt-d: Don't apply gfx quirks to untrusted devices

2020-06-02 Thread Raj, Ashok
On Tue, Jun 02, 2020 at 06:43:00PM +, Rajat Jain wrote: > Hi MIka, > > Thanks for taking a look. > > On Tue, Jun 2, 2020 at 2:50 AM Mika Westerberg > wrote: > > > > On Mon, Jun 01, 2020 at 10:45:17PM -0700, Rajat Jain wrote: > > > Currently, an external malicious PCI device can masquerade

Re: [PATCH] MAINTAINERS: rectify entry in ARM SMC WATCHDOG DRIVER

2020-06-02 Thread Julius Werner
Reviewed-by: Julius Werner

Re: [PATCH v3 000/105] drm/vc4: Support BCM2711 Display Pipeline

2020-06-02 Thread Stefan Wahren
Hi Maxime, Am 27.05.20 um 17:47 schrieb Maxime Ripard: > Hi everyone, > > Here's a (pretty long) series to introduce support in the VC4 DRM driver > for the display pipeline found in the BCM2711 (and thus the RaspberryPi 4). > > The main differences are that there's two HDMI controllers and that

[PATCH 1/1] soc: qcom: socinfo: Add msm8992/4 and apq8094 SoC IDs

2020-06-02 Thread Konrad Dybcio
Signed-off-by: Konrad Dybcio --- drivers/soc/qcom/socinfo.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/soc/qcom/socinfo.c b/drivers/soc/qcom/socinfo.c index ebb49aee179b..137f62982223 100644 --- a/drivers/soc/qcom/socinfo.c +++ b/drivers/soc/qcom/socinfo.c @@ -177,6 +177,7 @@

[PATCH 0/3] avoid unnecessary memslot rmap walks

2020-06-02 Thread Anthony Yznaga
While investigating optimizing qemu start time for large memory guests I found that kvm_mmu_slot_apply_flags() is walking rmaps to update existing sptes when creating or moving a slot but that there won't be any existing sptes to update and any sptes inserted once the new memslot is visible won't

[PATCH 1/3] KVM: x86: remove unnecessary rmap walk of read-only memslots

2020-06-02 Thread Anthony Yznaga
There's no write access to remove. An existing memslot cannot be updated to set or clear KVM_MEM_READONLY, and any mappings established in a newly created or moved read-only memslot will already be read-only. Signed-off-by: Anthony Yznaga --- arch/x86/kvm/x86.c | 6 ++ 1 file changed, 2

[PATCH 2/3] KVM: x86: avoid unnecessary rmap walks when creating/moving slots

2020-06-02 Thread Anthony Yznaga
On large memory guests it has been observed that creating a memslot for a very large range can take noticeable amount of time. Investigation showed that the time is spent walking the rmaps to update existing sptes to remove write access or set/clear dirty bits to support dirty logging. These rmap

[PATCH 3/3] KVM: x86: minor code refactor and comments fixup around dirty logging

2020-06-02 Thread Anthony Yznaga
Consolidate the code and correct the comments to show that the actions taken to update existing mappings to disable or enable dirty logging are not necessary when creating, moving, or deleting a memslot. Signed-off-by: Anthony Yznaga --- arch/x86/kvm/x86.c | 104

[PATCH 1/1] Documentation: Document an existing qcom,rpm-msm8996 compatible

2020-06-02 Thread Konrad Dybcio
This compatible has been included in the driver for some time, but it has been overlooked in documentation. Signed-off-by: Konrad Dybcio --- Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.txt | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH] pinctrl: freescale: imx: Fix an error handling path in 'imx_pinctrl_probe()'

2020-06-02 Thread Christophe JAILLET
Le 02/06/2020 à 12:13, Dan Carpenter a écrit : On Sat, May 30, 2020 at 10:49:55PM +0200, Christophe JAILLET wrote: 'pinctrl_unregister()' should not be called to undo 'devm_pinctrl_register_and_init()', it is already handled by the framework. This simplifies the error handling paths of the

Re: kobject_init_and_add is easy to misuse

2020-06-02 Thread Greg Kroah-Hartman
On Tue, Jun 02, 2020 at 12:54:16PM -0700, James Bottomley wrote: > On Tue, 2020-06-02 at 19:36 +0200, Greg Kroah-Hartman wrote: > > On Tue, Jun 02, 2020 at 08:25:14AM -0700, James Bottomley wrote: > > > On Tue, 2020-06-02 at 05:10 -0700, Matthew Wilcox wrote: > > > > On Tue, Jun 02, 2020 at

Re: [PATCH 1/1] soc: qcom: smd-rpm: Add msm8994 compatible

2020-06-02 Thread Konrad Dybcio
Interestingly enough, this compatible has been used in lg-bullhead DTS for a long long time, even though it has never existed upstream.

Re: [PATCH net-next v2] af-packet: new flag to indicate all csums are good

2020-06-02 Thread Victor Julien
On 02-06-2020 21:38, Willem de Bruijn wrote: > On Tue, Jun 2, 2020 at 3:22 PM Victor Julien wrote: >> >> On 02-06-2020 21:03, Willem de Bruijn wrote: >>> On Tue, Jun 2, 2020 at 2:31 PM Victor Julien wrote: On 02-06-2020 19:37, Willem de Bruijn wrote: > On Tue, Jun 2, 2020 at 1:03 PM

Re: [PATCH v2] iommu/vt-d: Don't apply gfx quirks to untrusted devices

2020-06-02 Thread Raj, Ashok
Hi Rajat On Tue, Jun 02, 2020 at 11:41:33AM -0700, Rajat Jain wrote: > Currently, an external malicious PCI device can masquerade the VID:PID > of faulty gfx devices, and thus apply iommu quirks to effectively > disable the IOMMU restrictions for itself. > > Thus we need to ensure that the

Re: [PATCH v25 01/16] dt: bindings: Add multicolor class dt bindings documention

2020-06-02 Thread Pavel Machek
On Wed 2020-05-27 08:35:06, Rob Herring wrote: > On Wed, May 27, 2020 at 7:39 AM Pavel Machek wrote: > > > > Hi! > > > > Thanks for reviews! > > > > > > +additionalProperties: false > > > > +... > > > > diff --git a/drivers/leds/led-core.c b/drivers/leds/led-core.c > > > > > > This isn't a

Re: [PATCH] wireless: ath10k: Return early in ath10k_qmi_event_server_exit() to avoid hard crash on reboot

2020-06-02 Thread Brian Norris
On Tue, Jun 2, 2020 at 12:40 PM John Stultz wrote: > On Tue, Jun 2, 2020 at 12:16 PM Brian Norris wrote: > > On Mon, Jun 1, 2020 at 10:25 PM John Stultz wrote: > > > > > > Ever since 5.7-rc1, if we call > > > ath10k_qmi_remove_msa_permission(), the db845c hard crashes on > > > reboot, resulting

[PATCH 1/1] soc: qcom: smd-rpm: Add msm8994 compatible

2020-06-02 Thread Konrad Dybcio
Add the compatible for the RPM in msm8994. Signed-off-by: Konrad Dybcio --- Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.txt | 1 + drivers/soc/qcom/smd-rpm.c | 1 + 2 files changed, 2 insertions(+) diff --git

Re: [PATCH v3 032/105] drm/vc4: crtc: Enable and disable the PV in atomic_enable / disable

2020-06-02 Thread Stefan Wahren
Hi, Am 02.06.20 um 21:31 schrieb Eric Anholt: > On Tue, Jun 2, 2020 at 8:02 AM Dave Stevenson > wrote: >> Hi Maxime and Eric >> >> On Tue, 2 Jun 2020 at 15:12, Maxime Ripard wrote: >>> Hi Eric >>> >>> On Wed, May 27, 2020 at 09:54:44AM -0700, Eric Anholt wrote: On Wed, May 27, 2020 at 8:50

Re: [GIT PULL] ARM: Keystone DTS updates for 5.7

2020-06-02 Thread santosh . shilimkar
On 6/2/20 1:00 PM, Arnd Bergmann wrote: On Tue, Jun 2, 2020 at 5:14 PM wrote: Hi Arnd, Olof, On 3/7/20 9:56 AM, Santosh Shilimkar wrote: The following changes since commit bb6d3fb354c5ee8d6bde2d576eb7220ea09862b9: Linux 5.6-rc1 (2020-02-09 16:08:48 -0800) are available in the git

Re: [GIT PULL] ARM: Keystone DTS updates for 5.7

2020-06-02 Thread Arnd Bergmann
On Tue, Jun 2, 2020 at 5:14 PM wrote: > > Hi Arnd, Olof, > > On 3/7/20 9:56 AM, Santosh Shilimkar wrote: > > The following changes since commit bb6d3fb354c5ee8d6bde2d576eb7220ea09862b9: > > > >Linux 5.6-rc1 (2020-02-09 16:08:48 -0800) > > > > are available in the git repository at: > > > >

Re: [PATCH 13/14] lockdep: Prepare for NMI IRQ state tracking

2020-06-02 Thread Peter Zijlstra
On Sat, May 30, 2020 at 12:25:05AM +0200, Peter Zijlstra wrote: > On Fri, May 29, 2020 at 06:14:01PM -0400, Steven Rostedt wrote: > > Why remove the check for debug_locks? Isn't that there to disable > > everything at once to prevent more warnings to be printed? > > Yeah, maybe. I was thinking

Re: [PATCH -tip 1/2] Kconfig: Bump required compiler version of KASAN and UBSAN

2020-06-02 Thread Nick Desaulniers
On Tue, Jun 2, 2020 at 12:38 PM Peter Zijlstra wrote: > > On Tue, Jun 02, 2020 at 09:25:47PM +0200, Marco Elver wrote: > > On Tue, 2 Jun 2020 at 21:19, Peter Zijlstra wrote: > > > > Currently x86 only, but I know other arch maintainers are planning to > > > have a hard look at their code based

Re: linux-next: Tree for Jun 2 (vfio)

2020-06-02 Thread Alex Williamson
On Tue, 2 Jun 2020 09:16:15 -0600 Alex Williamson wrote: > On Tue, 2 Jun 2020 07:36:45 -0700 > Randy Dunlap wrote: > > > On 6/2/20 3:37 AM, Stephen Rothwell wrote: > > > Hi all, > > > > > > News: The merge window has opened, so please do *not* add v5.9 material > > > to your linux-next

Re: spi: spi-ti-qspi: call pm_runtime_put on pm_runtime_get failure

2020-06-02 Thread Markus Elfring
> Your updates were not improvements. I find your view interesting. Do you refer to a specific wording suggestion here? https://lore.kernel.org/linux-spi/26028f50-3fb8-eb08-3c9f-08ada018b...@web.de/ https://lkml.org/lkml/2020/6/2/210 You pointed another programming alternative out.

Re: kobject_init_and_add is easy to misuse

2020-06-02 Thread James Bottomley
On Tue, 2020-06-02 at 19:36 +0200, Greg Kroah-Hartman wrote: > On Tue, Jun 02, 2020 at 08:25:14AM -0700, James Bottomley wrote: > > On Tue, 2020-06-02 at 05:10 -0700, Matthew Wilcox wrote: > > > On Tue, Jun 02, 2020 at 07:50:33PM +0800, Wang Hai wrote: > > > > syzkaller reports for memory leak

[RFC][PATCH v4 29/32] objtool: mcount: Remove wrapper for ELF relocation type

2020-06-02 Thread Matt Helsley
Remove the last use of the Elf_Rela wrapper by passing the size of the relocations we're dealing with as a parameter. Signed-off-by: Matt Helsley --- tools/objtool/recordmcount.c | 4 ++-- tools/objtool/recordmcount.h | 7 ++- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git

[RFC][PATCH v4 04/32] objtool: recordmcount: Search for __mcount_loc before walking the sections

2020-06-02 Thread Matt Helsley
recordmcount iterates over the sections in the order they're listed in the ELF file and checks whether the section name indicates it's of interest. Objtool's elf code works differently -- it scans the elf file and builds up data structures representing the headers, sections, etc. and then

[RFC][PATCH v4 02/32] objtool: Make recordmcount into mcount subcmd

2020-06-02 Thread Matt Helsley
Rather than a standalone executable merge recordmcount as a sub command of objtool. This is a small step towards cleaning up recordmcount and eventually sharing ELF code with objtool. For the initial step all that's required is a bit of Makefile changes and invoking the former main() function

[RFC][PATCH v4 28/32] objtool: mcount: Move sift_rel_mcount out of wrapper file

2020-06-02 Thread Matt Helsley
Now that this function no longer uses any of the old recordmcount wrapper code we can move it out of the wrapper too. Signed-off-by: Matt Helsley --- tools/objtool/recordmcount.c | 47 + tools/objtool/recordmcount.h | 50 2

Re: [PATCH v2] s390: vdso: Use $(LD) instead of $(CC) to link vDSO

2020-06-02 Thread Nick Desaulniers
On Tue, Jun 2, 2020 at 12:25 PM Nathan Chancellor wrote: > > Currently, the VDSO is being linked through $(CC). This does not match > how the rest of the kernel links objects, which is through the $(LD) > variable. > > When clang is built in a default configuration, it first attempts to use > the

[RFC][PATCH v4 32/32] objtool: mcount: Rename

2020-06-02 Thread Matt Helsley
Now that we've converted recordmcount to a subcommand of objtool rename the .c file in order to follow the convention of the other objtool subcmds. Signed-off-by: Matt Helsley --- tools/objtool/Build| 2 +- tools/objtool/{recordmcount.c => mcount.c} | 0 2 files changed,

[RFC][PATCH v4 31/32] objtool: mcount: Remove endian wrappers

2020-06-02 Thread Matt Helsley
Now that they're no longer used we can remove these endian wrappers. Signed-off-by: Matt Helsley --- tools/objtool/recordmcount.c | 63 1 file changed, 63 deletions(-) diff --git a/tools/objtool/recordmcount.c b/tools/objtool/recordmcount.c index

[RFC][PATCH v4 27/32] objtool: mcount: Generic location and relocation table types

2020-06-02 Thread Matt Helsley
Rather than building the exact ELF section data we need and avoiding libelf's conversion step, use more GElf types and then libelf's elfxx_xlatetof() functions to convert the mcount locations (GElf_Addr) and associated relocations. This converts sift_rel_mcount() so that it doesn't use the

[RFC][PATCH v4 06/32] objtool: mcount: Remove unused fname parameter

2020-06-02 Thread Matt Helsley
The name of the object file being processed is unused in the wrapper's leaf functions so we no longer need to pass it as a parameter. Signed-off-by: Matt Helsley --- tools/objtool/recordmcount.c | 4 ++-- tools/objtool/recordmcount.h | 19 --- 2 files changed, 10 insertions(+),

[RFC][PATCH v4 08/32] objtool: mcount: Walk objtool Elf structs in find_secsym_ndx

2020-06-02 Thread Matt Helsley
Rather than using indices into raw ELF32/64 tables mapped for the wrapper, use the objtool functions to find the a suitable symbol in the given text section. Also take advantage of this commit to rename the function to something that reads more easily. Signed-off-by: Matt Helsley ---

[RFC][PATCH v4 13/32] objtool: mcount: Move is_fake_mcount()

2020-06-02 Thread Matt Helsley
Promote the now-bit-independent is_fake_mcount() out of the old recordmcount ELF wrapper. Signed-off-by: Matt Helsley --- tools/objtool/recordmcount.c | 48 +++--- tools/objtool/recordmcount.h | 50 2 files changed, 45

[RFC][PATCH v4 05/32] objtool: recordmcount: Convert do_func() relhdrs

2020-06-02 Thread Matt Helsley
Use objtool's ELF data structures to visit the relocation sections in the top-level ELF file walking function, do_func(). This means we can pass pointers to the relocation header structures into nested functions and avoid the indexing patterns for them. These conversions don't use libelf/objtool

[RFC][PATCH v4 18/32] objtool: mcount: Move nop_mcount()

2020-06-02 Thread Matt Helsley
The nop_mcount() function overwrites mcount calls that should be ignored with no-ops. This operation varies by architecture and wordsize so we retain the function pointers used to implement the fundamental operation while nop_mcount() itself is responsible for walking the relocations, determining

[RFC][PATCH v4 12/32] objtool: mcount: Replace MIPS offset types

2020-06-02 Thread Matt Helsley
Replace MIPS is_fake_mcount code using Elf_Addr with unsigned long for the offsets. This is consistent with the way that objtool more generally treats offsets and removes the last use of the Elf_Addr wrapper. Signed-off-by: Matt Helsley --- tools/objtool/recordmcount.h | 9 +++-- 1 file

[RFC][PATCH v4 17/32] objtool: mcount: Use objtool ELF to write

2020-06-02 Thread Matt Helsley
Rather than modify the pseudo-mapping of the ELF file directly, which is the recordmcount way of operating, use the objtool section list and generic ELF functions to modify the ELF file. This eliminates a bunch of code -- the ulseek() and uwrite() functions -- because it's used to patch the ELF

[RFC][PATCH v4 21/32] objtool: mcount: Only keep ELF file size

2020-06-02 Thread Matt Helsley
Since we're no longer writing to the ELF file mapping and we're not appending to it we don't need to keep more information from the stat structure. At the same time we can give the smaller global variable a better name. Signed-off-by: Matt Helsley --- tools/objtool/recordmcount.c | 9 ++---

[PATCH v2] media: vsp1: dl: Fix NULL pointer dereference on unbind

2020-06-02 Thread Eugeniu Rosca
In commit f3b98e3c4d2e16 ("media: vsp1: Provide support for extended command pools"), the vsp pointer used for referencing the VSP1 device structure from a command pool during vsp1_dl_ext_cmd_pool_destroy() was not populated. Correctly assign the pointer to prevent the following

[RFC][PATCH v4 10/32] objtool: mcount: Walk relocation lists

2020-06-02 Thread Matt Helsley
Rather than walk the section tables using the old recordmcount mapping of the ELF file, walk the section list provided by objtool's ELF code. This removes the last use of of the Elf_r_sym wrapper so we remove that too. Signed-off-by: Matt Helsley --- tools/objtool/recordmcount.c | 10 +---

[RFC][PATCH v4 23/32] objtool: mcount: Remove unused file mapping

2020-06-02 Thread Matt Helsley
The ELF data is now accessed completely through objtool's ELF code. We can remove the mapping of the original ELF file and propagate elf_open_read(), elf_close(), and malloc() up in place of mmap_file(), mmap_cleanup(), and umalloc() respectively. This also eliminates the last use of the umalloc()

[RFC][PATCH v4 19/32] objtool: mcount: Move has_rel_mcount() and tot_relsize()

2020-06-02 Thread Matt Helsley
The has_rel_mcount() and tot_relsize() helpers are no longer dependent on the ELF wrapper so we can move them. Signed-off-by: Matt Helsley --- tools/objtool/recordmcount.c | 25 + tools/objtool/recordmcount.h | 33 - 2 files changed, 25

[RFC][PATCH v4 09/32] objtool: mcount: Use symbol structs to find mcount relocations

2020-06-02 Thread Matt Helsley
Rather than open coding symbol name lookups in get_sym_and_*() we rename the structure and use objtool's lookup function to get the symbol name for a relocation. We also change the name of the function to better reflect its purpose. Signed-off-by: Matt Helsley --- tools/objtool/elf.c |

[RFC][PATCH v4 24/32] objtool: mcount: Reduce usage of _size wrapper

2020-06-02 Thread Matt Helsley
Use a new loc_size parameter to append_func() rather than use the wrapper's _size macro directly. Signed-off-by: Matt Helsley --- tools/objtool/recordmcount.h | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/objtool/recordmcount.h b/tools/objtool/recordmcount.h

[RFC][PATCH v4 25/32] objtool: mcount: Move mcount_adjust out of wrapper

2020-06-02 Thread Matt Helsley
The mcount_adjust variable defines how many bytes to move back from the relocation address in order to be able to get to the start of the function call instruction(s) needed to turn it into a no-op. The values are very small and signed so we don't need to worry about changing the size of the

[RFC][PATCH v4 15/32] objtool: mcount: Move find_section_sym_index()

2020-06-02 Thread Matt Helsley
This function is no longer dependent upon the old recordmcount ELF wrapper code -- it doesn't use the wrapper's Elf_* types nor does it call wrapped functions. Move it into the C file. Signed-off-by: Matt Helsley --- tools/objtool/recordmcount.c | 41

[RFC][PATCH v4 20/32] objtool: mcount: Move relocation entry size detection

2020-06-02 Thread Matt Helsley
Move where we detect the size of relocation entries we wish to use into the first loop over the sections. This will allow us to allocate the mcount location and relocation sections before the next loop that collects them. Signed-off-by: Matt Helsley --- tools/objtool/recordmcount.c | 8 +---

[RFC][PATCH v4 14/32] objtool: mcount: Stop using ehdr in find_section_sym_index

2020-06-02 Thread Matt Helsley
We can use the objtool GElf_Ehdr structure to access ehdr here. This makes the function completely independent of the old recordmcount ELF wrapper. The next step will be to promote it to the C file. Signed-off-by: Matt Helsley --- tools/objtool/recordmcount.h | 13 ++--- 1 file changed,

[RFC][PATCH v4 11/32] objtool: mcount: Move get_mcountsym

2020-06-02 Thread Matt Helsley
Now that it's been stripped of using the old recordmcount ELF wrapper get_mcountsym() is ready to be promoted out of the double-included wrapper header. Signed-off-by: Matt Helsley --- tools/objtool/recordmcount.c | 16 tools/objtool/recordmcount.h | 19 --- 2

[RFC][PATCH v4 16/32] objtool: mcount: Restrict using ehdr in append_func()

2020-06-02 Thread Matt Helsley
Use the ehdr parameter to append_func() to write the ELF file's header but use the objtool ELF header data as the basis for making changes. The makes it clearer when we can switch from using the old recordmcount wrapper to write the ELF file because ehdr will only be passed on to uwrite() calls

[RFC][PATCH v4 26/32] objtool: mcount: Pre-allocate new ELF sections

2020-06-02 Thread Matt Helsley
Rather than allocating the ELF sections after collecting the mcount locations and building the relocation entries, create the empty sections beforehand. This has the benefit of removing the memcpy() and just using the resulting libgelf buffers directly. Signed-off-by: Matt Helsley ---

[RFC][PATCH v4 22/32] objtool: mcount: Use ELF header from objtool

2020-06-02 Thread Matt Helsley
The ELF header is the very first structure in an ELF file. Rather than cast it from the file mapping we use the ELF header extracted via objtool's ELF code. This is the last usage of the open-coded mapping of the ELF file which we will remove in a later step. Signed-off-by: Matt Helsley ---

[RFC][PATCH v4 30/32] objtool: mcount: Remove wrapper double-include trick

2020-06-02 Thread Matt Helsley
We no longer need to double-include the recordmcount.h wrapper All of the types and functions that rely on them have been converted to using objtool's ELF code. This moves the remaining function to recordmcount.c and changes the function name to something slightly more descriptive while dropping

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