[RFC][PATCH v4 00/32] objtool: Make recordmcount a subcommand

2020-06-02 Thread Matt Helsley
recordmcount has its own ELF wrapper code and could utilize objtool's ELF code to more-portably handle architecture variations. This series makes recordmcount a subcommand of objtool. It very gradually convert recordmcount to become a subcommand of objtool and then reuses parts of objtool's ELF

[RFC][PATCH v4 03/32] objtool: recordmcount: Start using objtool's elf wrapper

2020-06-02 Thread Matt Helsley
Use struct elf to grab the file descriptor. We will later move these calls into other functions as we expand the lifetime of the struct elf so that it can be passed to objtool elf.[ch] functions. This creates the libelf/objtool data structures and gives us two separate ways to walk the ELF file

[RFC][PATCH v4 01/32] objtool: Prepare to merge recordmcount

2020-06-02 Thread Matt Helsley
Move recordmcount into the objtool directory. We keep this step separate so changes which turn recordmcount into a subcommand of objtool don't get obscured. Signed-off-by: Matt Helsley --- Documentation/trace/ftrace-design.rst | 4 ++-- Documentation/trace/ftrace.rst | 2 +-

[RFC][PATCH v4 07/32] objtool: mcount: Use libelf for section header names

2020-06-02 Thread Matt Helsley
Rather than passing in the string table contents as a parameter, pass in the section index of the string table and rely on libelf string table accessor functions to look up section names. Note that modifying the string table with libelf will come later so append_func() is unchanged.

[PATCH] sched/deadline: Fix a typo in a comment

2020-06-02 Thread Christophe JAILLET
s/deadine/deadline/ Signed-off-by: Christophe JAILLET --- kernel/sched/deadline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c index 504d2f51b0d6..cc2066e25dcf 100644 --- a/kernel/sched/deadline.c +++

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

2020-06-02 Thread Andy Lutomirski
> 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 actually

Re: [PATCH 04/10] dt-bindings: spi: Add bindings for spi-dw-mchp

2020-06-02 Thread Serge Semin
On Wed, May 13, 2020 at 04:00:25PM +0200, Lars Povlsen wrote: > This add DT bindings for the Microsemi/Microchip SPI controller used > in various SoC's. It describes the "mscc,ocelot-spi" and > "mscc,jaguar2-spi" bindings. As I see it, there is no need in this patch at all. Current DT binding

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:29, Jakub Kicinski wrote: > On Tue, 2 Jun 2020 21:22:11 +0200 Victor Julien wrote: >> - receiver uses nfp (netronome) driver: TP_STATUS_CSUM_VALID set for >> every packet, including the bad TCP ones >> - receiver uses ixgbe driver: TP_STATUS_CSUM_VALID not set for the bad >>

Re: kobject_init_and_add is easy to misuse

2020-06-02 Thread Jason Gunthorpe
On Tue, Jun 02, 2020 at 05:10:35AM -0700, Matthew Wilcox wrote: > On Tue, Jun 02, 2020 at 07:50:33PM +0800, Wang Hai wrote: > > syzkaller reports for memory leak when kobject_init_and_add() > > returns an error in the function sysfs_slab_add() [1] > > > > When this happened, the function

[tip:sched/core] BUILD SUCCESS 25de110d148666752dc0e0da7a0b69de31cd7098

2020-06-02 Thread kbuild test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched/core branch HEAD: 25de110d148666752dc0e0da7a0b69de31cd7098 irq_work: Define irq_work_single() on !CONFIG_IRQ_WORK too i386-tinyconfig vmlinux size:

Re: [PATCH] kunit: Fix TabError, remove defconfig code and handle when there is no kunitconfig

2020-06-02 Thread Shuah Khan
On 5/29/20 1:28 PM, Vitor Massaru Iha wrote: The identation before this code (`if not os.path.exists(cli_args.build_dir):``) was with spaces instead of tabs after fixed up merge conflits, this commit revert spaces to tabs: Applied to linux-kselftest kunit branch for Linux 5.8-rc1 thanks, --

[PATCH] serial: kgdboc: Fix bad line wrapping in comment

2020-06-02 Thread Douglas Anderson
In commit a4912303ac6f ("serial: kgdboc: Allow earlycon initialization to be deferred") it looks like Daniel really took Linus's new suggestion about not needing to wrap at 80 columns to heart and he jammed two full lines of comments into one line. Either that or he just somehow accidentally

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

2020-06-02 Thread John Stultz
On Tue, Jun 2, 2020 at 12:16 PM Brian Norris wrote: > > + Sibi > > 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 in the device getting stuck in the usb crash > >

Re: [PATCH v3 0/6] Enable as many KUnit tests as possible

2020-06-02 Thread Shuah Khan
On 5/28/20 1:13 PM, Shuah Khan wrote: On 5/28/20 1:07 PM, Brendan Higgins wrote: On Wed, May 27, 2020 at 4:49 AM Anders Roxell wrote: Hi all, Friendly ping: who can take this? Sorry, I just reviewed the last patch. Shuah, do you mind picking this up for 5.8? Yup. Will do. I was

Re: [PATCH 02/10] spi: dw: Add support for RX sample delay register

2020-06-02 Thread Serge Semin
On Wed, May 13, 2020 at 04:00:23PM +0200, Lars Povlsen wrote: > This add support for the RX_SAMPLE_DLY register. If enabled in the > Designware IP, it allows tuning of the rx data signal by means of an > internal rx sample fifo. > > The register is located at offset 0xf0, and if the option 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 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 Victor Julien wrote: > > On 02-06-2020

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

2020-06-02 Thread Peter Zijlstra
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 on our findings. > > I've already spotted a bunch of 'noinstr'

[PATCH] i2c: pxa: don't error out if there's no pinctrl

2020-06-02 Thread Lubomir Rintel
The bus recovery patch regresses on OLPC XO-1.75 that has no pinctrl in its DT. Fixes: 7c9ec2c52518 ("i2c: pxa: implement generic i2c bus recovery")' Signed-off-by: Lubomir Rintel --- drivers/i2c/busses/i2c-pxa.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/i2c/busses/i2c-pxa.c

Re: [PATCH v2 1/4] remoteproc: Introduce rproc_of_parse_firmware() helper

2020-06-02 Thread Mathieu Poirier
On Wed, May 20, 2020 at 07:10:03PM -0500, Suman Anna wrote: > Add a new helper function rproc_of_parse_firmware() to the remoteproc > core that can be used by various remoteproc drivers to look up the > the "firmware-name" property from a rproc device node. This property > is already being used by

[PATCH v2] x86/resctrl: fix a NULL vs IS_ERR() static checker warning

2020-06-02 Thread Dan Carpenter
The callers don't expect *d_cdp to be set to an error pointer, they only check for NULL. This leads to a static checker warning: arch/x86/kernel/cpu/resctrl/rdtgroup.c:2648 __init_one_rdt_domain() warn: 'd_cdp' could be an error pointer This would not trigger a bug in this specific case

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

2020-06-02 Thread Navid Emamdoost
On Tue, Jun 2, 2020 at 1:36 PM Mark Brown wrote: > > On Tue, Jun 02, 2020 at 05:05:18PM +0200, Markus Elfring wrote: > > >> I find this commit message improvable also according to Linux software > > >> development documentation. > > > > Causing people to send out new versions of things for tweaks

[PATCH 1/2] dt-bindings: ASoc: Fix tdm-slot documentation spelling error

2020-06-02 Thread Dan Murphy
Fix the spelling of 'specified'. Also fix grammarical issue with the use of 'a' over 'an' Signed-off-by: Dan Murphy --- Documentation/devicetree/bindings/sound/tdm-slot.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 2/2] dt-bindings: tas2562: Convert the tas2562 binding to yaml

2020-06-02 Thread Dan Murphy
Convert the TAS2562 text file to yaml format. Signed-off-by: Dan Murphy --- .../devicetree/bindings/sound/tas2562.txt | 34 -- .../devicetree/bindings/sound/tas2562.yaml| 65 +++ 2 files changed, 65 insertions(+), 34 deletions(-) delete mode 100644

Re: [RFC PATCH v4 07/10] vfio/pci: introduce a new irq type VFIO_IRQ_TYPE_REMAP_BAR_REGION

2020-06-02 Thread Alex Williamson
On Tue, 2 Jun 2020 04:28:58 -0400 Yan Zhao wrote: > On Mon, Jun 01, 2020 at 10:43:07AM -0600, Alex Williamson wrote: > > On Mon, 1 Jun 2020 02:57:26 -0400 > > Yan Zhao wrote: > > > > > On Fri, May 29, 2020 at 03:45:47PM -0600, Alex Williamson wrote: > > > > On Sun, 17 May 2020 22:52:45

Re: [PATCH] Documentation: kunit: Add some troubleshooting tips to the FAQ

2020-06-02 Thread Brendan Higgins
On Mon, Jun 1, 2020 at 10:42 PM David Gow wrote: > > Add an FAQ entry to the KUnit documentation with some tips for > troubleshooting KUnit and kunit_tool. > > These suggestions largely came from an email thread: >

[PATCH v2] x86_64: fix jiffies ODR violation

2020-06-02 Thread Bob Haarman
'jiffies' and 'jiffies_64' are meant to alias (two different symbols that share the same address). Most architectures make the symbols alias to the same address via linker script assignment in their arch//kernel/vmlinux.lds.S: jiffies = jiffies_64; which is effectively a definition of jiffies.

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

2020-06-02 Thread 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 AM Maxime Ripard wrote: > > > > > > > > The

Re: [PATCH RESEND v3 0/6] arm64: add the time namespace support

2020-06-02 Thread Dmitry Safonov
Hi Andrei, On 6/2/20 7:02 PM, Andrei Vagin wrote: > Allocate the time namespace page among VVAR pages and add the logic > to handle faults on VVAR properly. > > If a task belongs to a time namespace then the VVAR page which contains > the system wide VDSO data is replaced with a namespace

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

2020-06-02 Thread Jakub Kicinski
On Tue, 2 Jun 2020 21:22:11 +0200 Victor Julien wrote: > - receiver uses nfp (netronome) driver: TP_STATUS_CSUM_VALID set for > every packet, including the bad TCP ones > - receiver uses ixgbe driver: TP_STATUS_CSUM_VALID not set for the bad > packets. > > Again purely based on 'git grep' it

Re: [PATCH 3/6] arm64/vdso: Add time namespace page

2020-06-02 Thread Dmitry Safonov
Hi Andrei, On 6/2/20 7:02 PM, Andrei Vagin wrote: [..] > --- a/arch/arm64/include/asm/vdso.h > +++ b/arch/arm64/include/asm/vdso.h > @@ -12,6 +12,12 @@ > */ > #define VDSO_LBASE 0x0 > > +#ifdef CONFIG_TIME_NS > +#define __VVAR_PAGES2 > +#else > +#define __VVAR_PAGES1 > +#endif > +

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

2020-06-02 Thread Marco Elver
On Tue, 2 Jun 2020 at 21:19, Peter Zijlstra wrote: > > On Tue, Jun 02, 2020 at 11:57:15AM -0700, Nick Desaulniers wrote: > > On Tue, Jun 2, 2020 at 11:44 AM 'Marco Elver' via Clang Built Linux > > wrote: > > > > > > Adds config variable CC_HAS_WORKING_NOSANITIZE, which will be true if we > > >

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

2020-06-02 Thread Nathan Chancellor
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 target triple's default linker, which is just ld. However, the user

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: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 Victor Julien wrote: On 02-06-2020 16:29, Willem de Bruijn wrote: > On Tue, Jun 2, 2020 at 4:05 AM

Re: [PATCH 4.19 00/95] 4.19.126-rc1 review

2020-06-02 Thread Greg Kroah-Hartman
On Mon, Jun 01, 2020 at 09:17:25PM +, Chris Paterson wrote: > Hi Greg, > > > From: stable-ow...@vger.kernel.org On > > Behalf Of Greg Kroah-Hartman > > Sent: 01 June 2020 18:53 > > > > This is the start of the stable review cycle for the 4.19.126 release. > > There are 95 patches in this

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

2020-06-02 Thread Peter Zijlstra
On Tue, Jun 02, 2020 at 11:57:15AM -0700, Nick Desaulniers wrote: > On Tue, Jun 2, 2020 at 11:44 AM 'Marco Elver' via Clang Built Linux > wrote: > > > > Adds config variable CC_HAS_WORKING_NOSANITIZE, which will be true if we > > have a compiler that does not fail builds due to no_sanitize

[rcu:rcu/test] BUILD SUCCESS 0c1b20be12a0b937b76c34fb481b2e881c01fa10

2020-06-02 Thread kbuild test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/test branch HEAD: 0c1b20be12a0b937b76c34fb481b2e881c01fa10 torture: Remove qemu dependency on EFI firmware elapsed time: 911m configs tested: 115 configs skipped: 7 The following configs have been built

Re: [PATCH v3 3/4] iio: chemical: scd30: add serial interface driver

2020-06-02 Thread Tomasz Duszynski
On Tue, Jun 02, 2020 at 07:57:23PM +0200, Tomasz Duszynski wrote: > On Tue, Jun 02, 2020 at 08:04:16PM +0300, Andy Shevchenko wrote: > > On Tue, Jun 2, 2020 at 7:49 PM Tomasz Duszynski > > wrote: > > > > > > Add serial interface driver for the SCD30 sensor. > > > > ... > > > > > +static u16

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

2020-06-02 Thread Brian Norris
+ Sibi 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 in the device getting stuck in the usb crash > debug mode and not coming back up wihthout a hard power off. > > This

Re: [GIT PULL] x86/mm changes for v5.8

2020-06-02 Thread Linus Torvalds
On Tue, Jun 2, 2020 at 11:29 AM Thomas Gleixner wrote: > > It's trivial enough to fix. We have a static key already which is > telling us whether SMT scheduling is active. .. but should we do it here, in switch_mm() in the first place? Should it perhaps just return an error if user land tries

Re: [PATCH 5.6 000/174] 5.6.16-rc2 review

2020-06-02 Thread Guenter Roeck
On Tue, Jun 02, 2020 at 12:24:19PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.6.16 release. > There are 174 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH 5.4 000/139] 5.4.44-rc2 review

2020-06-02 Thread Guenter Roeck
On Tue, Jun 02, 2020 at 12:24:05PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.4.44 release. > There are 139 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: linux-next: build failure after merge of the akpm tree

2020-06-02 Thread Andrew Morton
On Tue, 2 Jun 2020 19:57:41 +1000 Stephen Rothwell wrote: > Subject: [PATCH] turns out that probe_user_write is used in modular code > > Signed-off-by: Stephen Rothwell > --- > mm/maccess.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/mm/maccess.c b/mm/maccess.c > index

Re: [PATCH 4.19 00/92] 4.19.126-rc2 review

2020-06-02 Thread Guenter Roeck
On Tue, Jun 02, 2020 at 12:23:49PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.19.126 release. > There are 92 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH 4.4 00/47] 4.4.226-rc2 review

2020-06-02 Thread Guenter Roeck
On Tue, Jun 02, 2020 at 12:16:07PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.226 release. > There are 47 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

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

2020-06-02 Thread Andrey Konovalov
On Tue, Jun 2, 2020 at 9:07 PM Marco Elver wrote: > > On Tue, 2 Jun 2020 at 20:53, Andrey Konovalov wrote: > > > > On Tue, Jun 2, 2020 at 8:44 PM Marco Elver wrote: > > > > > > Adds config variable CC_HAS_WORKING_NOSANITIZE, which will be true if we > > > have a compiler that does not fail

Re: [PATCH 4.14 00/76] 4.14.183-rc2 review

2020-06-02 Thread Guenter Roeck
On Tue, Jun 02, 2020 at 12:23:33PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.183 release. > There are 76 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH 01/10] spi: dw: Add support for polled operation via no IRQ specified in DT

2020-06-02 Thread Serge Semin
On Wed, May 13, 2020 at 04:00:22PM +0200, Lars Povlsen wrote: > With this change a SPI controller can be added without having a IRQ > associated, and causing all transfers to be polled. For SPI controllers > without DMA, this can significantly improve performance by less > interrupt handling

Re: linux-next: manual merge of the block tree with the rdma tree

2020-06-02 Thread Jason Gunthorpe
On Tue, Jun 02, 2020 at 01:02:55PM -0600, Jens Axboe wrote: > On 6/2/20 1:01 PM, Jason Gunthorpe wrote: > > On Tue, Jun 02, 2020 at 11:37:26AM +0300, Max Gurtovoy wrote: > >> > >> On 6/2/2020 5:56 AM, Stephen Rothwell wrote: > >>> Hi all, > >> > >> Hi, > >> > >> This looks good to me. > >> > >>

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

2020-06-02 Thread Jiri Olsa
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 at > check_parse_id, that error is zero initialized. right, how

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

2020-06-02 Thread Marco Elver
On Tue, 2 Jun 2020 at 20:53, Andrey Konovalov wrote: > > On Tue, Jun 2, 2020 at 8:44 PM Marco Elver wrote: > > > > Adds config variable CC_HAS_WORKING_NOSANITIZE, which will be true if we > > have a compiler that does not fail builds due to no_sanitize functions. > > This does not yet mean they

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

2020-06-02 Thread Nick Desaulniers
On Wed, May 27, 2020 at 11:06 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 >

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 2:31 PM Victor Julien wrote: > > Hi Willem, > > On 02-06-2020 19:37, Willem de Bruijn wrote: > > On Tue, Jun 2, 2020 at 1:03 PM Victor Julien wrote: > >> > >> On 02-06-2020 16:29, Willem de Bruijn wrote: > >>> On Tue, Jun 2, 2020 at 4:05 AM Victor Julien wrote: > >

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

2020-06-02 Thread Jiri Olsa
On Tue, Jun 02, 2020 at 10:58:32AM -0700, Ian Rogers wrote: > On Tue, Jun 2, 2020 at 4:51 AM Jiri Olsa wrote: > > > > The test goes through all metrics compiled for arch > > within pmu events and try to parse them. > > > > This test is different from 'test_parsing' in that > > we go through all

Re: linux-next: manual merge of the block tree with the rdma tree

2020-06-02 Thread Jason Gunthorpe
On Tue, Jun 02, 2020 at 11:37:26AM +0300, Max Gurtovoy wrote: > > On 6/2/2020 5:56 AM, Stephen Rothwell wrote: > > Hi all, > > Hi, > > This looks good to me. > > Can you share a pointer to the tree so we'll test it in our labs ? > > need to re-test: > > 1. srq per core > > 2. srq per core +

Re: linux-next: manual merge of the block tree with the rdma tree

2020-06-02 Thread Jens Axboe
On 6/2/20 1:01 PM, Jason Gunthorpe wrote: > On Tue, Jun 02, 2020 at 11:37:26AM +0300, Max Gurtovoy wrote: >> >> On 6/2/2020 5:56 AM, Stephen Rothwell wrote: >>> Hi all, >> >> Hi, >> >> This looks good to me. >> >> Can you share a pointer to the tree so we'll test it in our labs ? >> >> need to

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

2020-06-02 Thread Marco Elver
On Tue, 2 Jun 2020 at 20:57, Nick Desaulniers wrote: > > On Tue, Jun 2, 2020 at 11:44 AM 'Marco Elver' via Clang Built Linux > wrote: > > > > Adds config variable CC_HAS_WORKING_NOSANITIZE, which will be true if we > > have a compiler that does not fail builds due to no_sanitize functions. > >

Re: [PATCH v7 1/4] bitops: Introduce the the for_each_set_clump macro

2020-06-02 Thread Rikard Falkeborn
On Mon, Jun 01, 2020 at 11:33:30AM +0300, Andy Shevchenko wrote: > On Mon, Jun 01, 2020 at 12:37:16AM +0200, Rikard Falkeborn wrote: > > + Emil who was working on a patch for this > > > > On Sun, May 31, 2020 at 02:00:45PM +0300, Andy Shevchenko wrote: > > > On Sun, May 31, 2020 at 4:11 AM Syed

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 11:44 AM 'Marco Elver' via Clang Built Linux wrote: > > Adds config variable CC_HAS_WORKING_NOSANITIZE, which will be true if we > have a compiler that does not fail builds due to no_sanitize functions. > This does not yet mean they work as intended, but for automated >

Re: [PATCH] pinctrl: sirf: Add missing put_device() call in sirfsoc_gpio_probe()

2020-06-02 Thread Markus Elfring
> in sirfsoc_gpio_probe(), if of_find_device_by_node() succeed, > put_device() is missing in the error handling patch. How do you think about another wording variant? A coccicheck run provided information like the following. drivers/pinctrl/sirf/pinctrl-sirf.c:798:2-8: ERROR: missing

Re: [PATCH] staging: rtl8712: switch to common ieee80211 headers

2020-06-02 Thread Dan Carpenter
On Tue, Jun 02, 2020 at 04:58:46PM +0100, Pascal Terjan wrote: > On Tue, 2 Jun 2020 at 15:57, Larry Finger wrote: > > > > On 6/1/20 3:24 PM, Pascal Terjan wrote: > > > This patch switches to and and > > > deletes a lot of duplicate definitions plus many unused ones. > > > > > > Non obvious

Re: [PATCH -tip 2/2] compiler_types.h: Add __no_sanitize_{address,undefined} to noinstr

2020-06-02 Thread Marco Elver
On Tue, 2 Jun 2020 at 20:49, 'Nick Desaulniers' via kasan-dev wrote: > > On Tue, Jun 2, 2020 at 11:44 AM 'Marco Elver' via Clang Built Linux > wrote: > > > > Adds the portable definitions for __no_sanitize_address, and > > __no_sanitize_undefined, and subsequently changes noinstr to use the > >

Re: [PATCH] serial: 8250_port: Fix imprecise external abort for mctrl if inactive

2020-06-02 Thread Tony Lindgren
* Tony Lindgren [200602 13:38]: > * Andy Shevchenko [200602 08:33]: > Now that we can detach and reattach the kernel serial console, > there should not be any need for pm_runtime_irq_safe() anymore :) Below is a hastily tested RFC patch to remove pm_runtime_irq_safe() for 8250_omap.c that seems

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

2020-06-02 Thread Andrey Konovalov
On Tue, Jun 2, 2020 at 8:44 PM Marco Elver wrote: > > Adds config variable CC_HAS_WORKING_NOSANITIZE, which will be true if we > have a compiler that does not fail builds due to no_sanitize functions. > This does not yet mean they work as intended, but for automated > build-tests, this is the

Re: [PATCH -tip 2/2] compiler_types.h: Add __no_sanitize_{address,undefined} to noinstr

2020-06-02 Thread Nick Desaulniers
On Tue, Jun 2, 2020 at 11:44 AM 'Marco Elver' via Clang Built Linux wrote: > > Adds the portable definitions for __no_sanitize_address, and > __no_sanitize_undefined, and subsequently changes noinstr to use the > attributes to disable instrumentation via KASAN or UBSAN. > > Link:

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

2020-06-02 Thread Saidi, Ali
On 5/31/20, 9:40 PM, "Herrenschmidt, Benjamin" wrote: On Sun, 2020-05-31 at 12:09 +0100, Marc Zyngier wrote: > > > > Not great indeed. But this is not, as far as I can tell, a GIC > > driver problem. > > > > The semantic of activate/deactivate (which maps to

Re: [PATCH 11/14] x86/entry: Clarify irq_{enter,exit}_rcu()

2020-06-02 Thread Qian Cai
On Tue, Jun 02, 2020 at 05:05:11PM +0200, Peter Zijlstra wrote: > On Tue, Jun 02, 2020 at 10:42:35AM -0400, Qian Cai wrote: > > > Reverted this commit fixed the POWER9 boot warning, > > ARGH, I'm an idiot. Please try this instead: > > > diff --git a/kernel/softirq.c b/kernel/softirq.c > index

Re: [RESEND PATCH v9 3/5] powerpc/papr_scm: Fetch nvdimm health information from PHYP

2020-06-02 Thread Ira Weiny
On Tue, Jun 02, 2020 at 03:44:36PM +0530, Vaibhav Jain wrote: > Implement support for fetching nvdimm health information via > H_SCM_HEALTH hcall as documented in Ref[1]. The hcall returns a pair > of 64-bit bitmap, bitwise-and of which is then stored in > 'struct papr_scm_priv' and subsequently

Re: [PATCH 0/3] KCSAN cleanups and noinstr

2020-06-02 Thread Marco Elver
On Tue, 2 Jun 2020 at 19:34, Peter Zijlstra wrote: > > Hi all, > > Here's two KCSAN cleanups and the required noinstr change for x86. Thank you! Reviewed-by: Marco Elver As promised, here are the patches that would take care of KASAN and UBSAN, rebased on the patches here:

Re: [PATCH] ACPICA: fix UBSAN warning using __builtin_offsetof

2020-06-02 Thread Nick Desaulniers
On Mon, Jun 1, 2020 at 5:03 PM Kaneda, Erik wrote: > > > Hi, > > > Will reported UBSAN warnings: > > UBSAN: null-ptr-deref in drivers/acpi/acpica/tbfadt.c:459:37 > > UBSAN: null-ptr-deref in arch/arm64/kernel/smp.c:596:6 > > > > Looks like the emulated offsetof macro ACPI_OFFSET is causing these.

[PATCH] staging: vc04_services: Convert get_user_pages*() --> pin_user_pages*()

2020-06-02 Thread Souptick Joarder
In 2019, we introduced pin_user_pages*() and now we are converting get_user_pages*() to the new API as appropriate. [1] & [2] could be referred for more information. [1] Documentation/core-api/pin_user_pages.rst [2] "Explicit pinning of user-space pages": https://lwn.net/Articles/807108/

[PATCH -tip 2/2] compiler_types.h: Add __no_sanitize_{address,undefined} to noinstr

2020-06-02 Thread Marco Elver
Adds the portable definitions for __no_sanitize_address, and __no_sanitize_undefined, and subsequently changes noinstr to use the attributes to disable instrumentation via KASAN or UBSAN. Link: https://lore.kernel.org/lkml/d2474c05a6c93...@google.com/ Reported-by:

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

2020-06-02 Thread Marco Elver
Adds config variable CC_HAS_WORKING_NOSANITIZE, which will be true if we have a compiler that does not fail builds due to no_sanitize functions. This does not yet mean they work as intended, but for automated build-tests, this is the minimum requirement. For example, we require that

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

2020-06-02 Thread Rajat Jain
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 the VID:PID > > of faulty gfx devices, and thus apply iommu quirks to

[PATCH] x86/umip: Add emulation/spoofing for SLDT and STR instructions

2020-06-02 Thread Brendan Shanks
Add emulation/spoofing of SLDT and STR for both 32- and 64-bit processes. Wine users have found a small number of Windows apps using SLDT that were crashing when run on UMIP-enabled systems. Reported-by: Andreas Rammhold Originally-by: Ricardo Neri Signed-off-by: Brendan Shanks ---

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

2020-06-02 Thread Rajat Jain
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 device we are applying quirks to, is indeed an internal trusted device.

[PATCH] driver core:Export the symbol device_is_bound

2020-06-02 Thread Sandeep Maheswaram
Export the symbol device_is_bound so that it can be used by the modules. This change was suggested to solve the allmodconfig build error on adding the patch https://lore.kernel.org/patchwork/patch/1218628/ Signed-off-by: Sandeep Maheswaram --- drivers/base/dd.c | 1 + 1 file changed, 1

Re: [PATCH -next] IB/hfi1: Use free_netdev() in hfi1_netdev_free()

2020-06-02 Thread Dan Carpenter
On Tue, Jun 02, 2020 at 11:30:13AM -0400, Dennis Dalessandro wrote: > On 6/2/2020 2:16 AM, YueHaibing wrote: > > dummy_netdev shold be freed by free_netdev() instead of > > kfree(). Also remove unneeded variable 'priv' > > > > Fixes: 4730f4a6c6b2 ("IB/hfi1: Activate the dummy netdev") > >

Re: [PATCH] Revert "ath: add support for special 0x0 regulatory domain"

2020-06-02 Thread Brian Norris
On Thu, May 28, 2020 at 8:42 AM Adrian Chadd wrote: > On Thu, 28 May 2020 at 05:02, Julian Calaby wrote: > > On Thu, May 28, 2020 at 5:18 AM Brian Norris > > wrote: > > > > > > This reverts commit 2dc016599cfa9672a147528ca26d70c3654a5423. > > > > > > Users are reporting regressions in

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

2020-06-02 Thread Mark Brown
On Tue, Jun 02, 2020 at 05:05:18PM +0200, Markus Elfring wrote: > >> I find this commit message improvable also according to Linux software > >> development documentation. > > Causing people to send out new versions of things for tweaks to the > > commit log consumes time for them and everyone

[PATCH v2 0/1] Document Ingenic SoCs binding.

2020-06-02 Thread Zhou Yanjie
Document the available properties for the SoC root node and the CPU nodes of the devicetree for the Ingenic XBurst SoCs. v1->v2: 1.Remove unnecessary "items". 2.Add "clocks" as suggested by Paul Cercueil. 周琰杰 (Zhou Yanjie) (1): dt-bindings: MIPS: Document Ingenic SoCs binding.

[PATCH v2 1/1] dt-bindings: MIPS: Document Ingenic SoCs binding.

2020-06-02 Thread Zhou Yanjie
Document the available properties for the SoC root node and the CPU nodes of the devicetree for the Ingenic XBurst SoCs. Tested-by: H. Nikolaus Schaller Tested-by: Paul Boddie Signed-off-by: 周琰杰 (Zhou Yanjie) --- Notes: v1->v2: 1.Remove unnecessary "items". 2.Add "clocks" as

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

2020-06-02 Thread Victor Julien
Hi Willem, On 02-06-2020 19:37, Willem de Bruijn wrote: > On Tue, Jun 2, 2020 at 1:03 PM Victor Julien wrote: >> >> On 02-06-2020 16:29, Willem de Bruijn wrote: >>> On Tue, Jun 2, 2020 at 4:05 AM Victor Julien wrote: Introduce a new flag (TP_STATUS_CSUM_UNNECESSARY) to indicate

Re: 3ba75830ce ("nfsd4: drc containerization"): [ 51.013875] WARNING: possible circular locking dependency detected

2020-06-02 Thread J. Bruce Fields
On Wed, May 27, 2020 at 01:11:59PM +0800, kernel test robot wrote: > Greetings, > > 0day kernel testing robot got the below dmesg and the first bad commit is > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > > commit 3ba75830ce175550ef45c6524ec62faab8f62c1b

Re: [GIT PULL] x86/mm changes for v5.8

2020-06-02 Thread Thomas Gleixner
Benjamin Herrenschmidt writes: > On Tue, 2020-06-02 at 09:33 +0200, Ingo Molnar wrote: >> Or rather, we should ask a higher level question as well, maybe we >> should not do this feature at all? > > Well, it does solve a real issue in some circumstances and there was a > reasonable discussion

[GIT PULL] perf tooling changes for v5.8

2020-06-02 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Hi Linus, These are additional changes to the perf tools, on top of what Ingo has already submitted and you merged, please let me know if I made any mistake, Available from: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git

Re: [PATCH] ARM: dts: AM33xx-l4: add gpio-ranges

2020-06-02 Thread Drew Fustini
On Tue, Jun 02, 2020 at 04:44:03PM +0300, Grygorii Strashko wrote: > > > On 02/06/2020 16:14, Drew Fustini wrote: > > Add gpio-ranges properties to the gpio controller nodes. > > > > These gpio-ranges were created based on "Table 9-10. CONTROL_MODULE > > REGISTERS" in the "AM335x Technical

Re: [PATCH] xfs/XXX: Add xfs/XXX

2020-06-02 Thread Darrick J. Wong
On Tue, Jun 02, 2020 at 04:51:48PM +0800, Xiao Yang wrote: > On 2020/4/14 0:30, Darrick J. Wong wrote: > > This might be a good time to introduce a few new helpers: > > > > _require_scratch_dax ("Does $SCRATCH_DEV support DAX?") > > _require_scratch_dax_mountopt ("Does the fs support the DAX

[PATCH 4.9 00/55] 4.9.226-rc3 review

2020-06-02 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.9.226 release. There are 55 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Thu, 04 Jun 2020 18:12:28 +. Anything

Re: [PATCHv2 00/13] perf tests: Add metrics tests

2020-06-02 Thread Ian Rogers
On Tue, Jun 2, 2020 at 4:51 AM Jiri Olsa wrote: > > hi, > changes for using metric result in another metric seem > to change lot of core metric code, so it's better we > have some more tests before we do that. > > v2 changes: > - some of the patches got accepted > - add missing free to patch

Re: [PATCH v3 0/4] Add support for SCD30 sensor

2020-06-02 Thread Tomasz Duszynski
On Tue, Jun 02, 2020 at 07:55:55PM +0300, Andy Shevchenko wrote: > On Tue, Jun 2, 2020 at 7:49 PM Tomasz Duszynski > wrote: > > > > Following series adds support for Sensirion SCD30 sensor module capable of > > measuring carbon dioxide, temperature and relative humidity. CO2 > > measurements > >

Re: Subject: [PATCH v2] ASoC: soc-pcm: fix BE dai not hw_free and shutdown during mixer update

2020-06-02 Thread Pierre-Louis Bossart
On 5/29/20 5:12 AM, 朱灿灿 wrote: FE state is SND_SOC_DPCM_STATE_PREPARE now, BE1 is used by FE. Later when new BE2 is added to FE by mixer update, it will call dpcm_run_update_startup() to update BE2's state, but unfortunately BE2 .prepare() meets error, it will disconnect all non started BE.

Re: [PATCH 2/2] lib/Kconfig.debug: Fix typo in the help text of CONFIG_PANIC_TIMEOUT

2020-06-02 Thread Kees Cook
On Tue, Jun 02, 2020 at 09:09:18PM +0800, Tiezhu Yang wrote: > There exists duplicated "the" in the help text of CONFIG_PANIC_TIMEOUT, > remove it. > > Signed-off-by: Tiezhu Yang Thanks for catching that! Reviewed-by: Kees Cook -- Kees Cook

[PATCH] s390: fix syscall_get_error for compat processes

2020-06-02 Thread Dmitry V. Levin
If both the tracer and the tracee are compat processes, and gprs[2] is assigned a value by __poke_user_compat, then the higher 32 bits of gprs[2] are cleared, IS_ERR_VALUE() always returns false, and syscall_get_error() always returns 0. Fix the implementation by sign-extending the value for

Re: [PATCH 1/2] kernel/panic.c: Make oops_may_print() return bool

2020-06-02 Thread Kees Cook
On Tue, Jun 02, 2020 at 09:09:17PM +0800, Tiezhu Yang wrote: > The return value of oops_may_print() is true or false, so change its type > to reflect that. > > Signed-off-by: Tiezhu Yang Sure, that looks fine. :) Reviewed-by: Kees Cook -- Kees Cook

Re: [PATCH] net: genetlink: Fix memleak in genl_family_rcv_msg_dumpit()

2020-06-02 Thread Cong Wang
On Mon, Jun 1, 2020 at 11:47 PM YueHaibing wrote: > @@ -630,6 +625,9 @@ static int genl_family_rcv_msg_dumpit(const struct > genl_family *family, > err = __netlink_dump_start(net->genl_sock, skb, nlh, ); > } > > + genl_family_rcv_msg_attrs_free(info->family,

[PATCH 1/6] arm64/vdso: use the fault callback to map vvar pages

2020-06-02 Thread Andrei Vagin
This is required to support time namespaces where a time namespace data page is different for each namespace. Reviewed-by: Vincenzo Frascino Signed-off-by: Andrei Vagin --- arch/arm64/kernel/vdso.c | 24 +++- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git

Re: Regression bisected to f2f84b05e02b (bug: consolidate warn_slowpath_fmt() usage)

2020-06-02 Thread Kees Cook
On Mon, Jun 01, 2020 at 07:48:04PM -0700, Matt Turner wrote: > I bisected a regression on alpha to f2f84b05e02b (bug: consolidate > warn_slowpath_fmt() usage) which looks totally innocuous. > > Reverting it on master confirms that it somehow is the trigger. At or a > little after starting

[PATCH RESEND v3 0/6] arm64: add the time namespace support

2020-06-02 Thread Andrei Vagin
Allocate the time namespace page among VVAR pages and add the logic to handle faults on VVAR properly. If a task belongs to a time namespace then the VVAR page which contains the system wide VDSO data is replaced with a namespace specific page which has the same layout as the VVAR page. That page

[PATCH 6/6] arm64: enable time namespace support

2020-06-02 Thread Andrei Vagin
CONFIG_TIME_NS is dependes on GENERIC_VDSO_TIME_NS. Reviewed-by: Vincenzo Frascino Signed-off-by: Andrei Vagin --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 5d513f461957..27d7e4ed1c93 100644 --- a/arch/arm64/Kconfig +++

[PATCH 4/6] arm64/vdso: Handle faults on timens page

2020-06-02 Thread Andrei Vagin
If a task belongs to a time namespace then the VVAR page which contains the system wide VDSO data is replaced with a namespace specific page which has the same layout as the VVAR page. Reviewed-by: Vincenzo Frascino Signed-off-by: Andrei Vagin --- arch/arm64/kernel/vdso.c | 57

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