[PATCH 3/4] objtool: orc: Skip setting orc_entry for non-text sections

2020-06-04 Thread Julien Thierry
Orc generation is only done for text sections, but some instructions can be found in non-text sections (e.g. .discard.text sections). Skip setting their orc sections since their whole sections will be skipped for orc generation. Signed-off-by: Julien Thierry --- tools/objtool/orc_gen.c | 3 +++

[PATCH 1/4] objtool: Move object file loading out of check

2020-06-04 Thread Julien Thierry
Structure objtool_file can be used by different subcommands. In fact it already is, by check and orc. Provide a function that allows to initialize objtool_file, that builtin can call, without relying on check to do the correct setup for them and explicitly hand the objtool_file to them. Signed-of

[PATCH 4/4] objtool: orc_gen: Move orc_entry out of instruction structure

2020-06-04 Thread Julien Thierry
One orc_entry is associated with each instruction in the object file, but having the orc_entry contained by the instruction structure forces architectures not implementing the orc subcommands to provide a dummy definition of the orc_entry. Avoid that by having orc_entries in a separate list, part

[PATCH 2/4] objtool: Move orc outside of check

2020-06-04 Thread Julien Thierry
Now that the objtool_file can be obtained outside of the check function, orc generation builtin no longer requires check to explicitly call its orc related functions. Signed-off-by: Julien Thierry --- tools/objtool/builtin-check.c | 2 +- tools/objtool/builtin-orc.c | 18 +- t

[PATCH 0/4] Remove dependency of check subcmd upon orc

2020-06-04 Thread Julien Thierry
Hi, Matt Helsley's change[1] provided a base framework to opt-in/out objtool subcommands at compile time. This makes it easier for architectures to port objtool, one subcommand at a time. Orc generation relies on the check operation implementation. However, the way this is done causes the check i

Re: [PATCH 2/3] ARM: dts: bcm2711: Update SPI nodes compatible strings

2020-06-04 Thread Florian Fainelli
On 6/3/2020 9:20 PM, Lukas Wunner wrote: > On Wed, Jun 03, 2020 at 08:46:54PM -0700, Florian Fainelli wrote: >> The BCM2711 SoC features 5 SPI controllers which all share the same >> interrupt line, the SPI driver needs to support interrupt sharing, >> therefore use the chip specific compatible

[PATCH] scripts: add dummy report mode to add_namespace.cocci

2020-06-04 Thread Matthias Maennich
When running `make coccicheck` in report mode using the add_namespace.cocci file, it will fail for files that contain MODULE_LICENSE. Those match the replacement precondition, but spatch errors out as virtual.ns is not set. In order to fix that, add the virtual rule nsdeps and only do search and r

Re: [PATCH] KVM: nVMX: Inject #GP when nested_vmx_get_vmptr() fails to read guest memory

2020-06-04 Thread Vitaly Kuznetsov
Sean Christopherson writes: > On Thu, Jun 04, 2020 at 05:33:25PM +0200, Vitaly Kuznetsov wrote: >> Sean Christopherson writes: >> >> > On Thu, Jun 04, 2020 at 04:40:52PM +0200, Paolo Bonzini wrote: >> >> On 04/06/20 16:31, Vitaly Kuznetsov wrote: >> > >> > ... >> > >> >> > KVM could've handled

Re: [PATCH] KVM: VMX: Always treat MSR_IA32_PERF_CAPABILITIES as a valid PMU MSR

2020-06-04 Thread Jim Mattson
On Thu, Jun 4, 2020 at 9:20 AM Paolo Bonzini wrote: > > On 04/06/20 17:16, Sean Christopherson wrote: > > On Thu, Jun 04, 2020 at 09:37:59AM +0800, Xu, Like wrote: > >> On 2020/6/4 4:33, Sean Christopherson wrote: > >>> Unconditionally return true when querying the validity of > >>> MSR_IA32_PERF_

Re: [PATCH 2/3] ARM: dts: bcm2711: Update SPI nodes compatible strings

2020-06-04 Thread Stefan Wahren
Hi Florian, Am 04.06.20 um 05:46 schrieb Florian Fainelli: > The BCM2711 SoC features 5 SPI controllers which all share the same > interrupt line, the SPI driver needs to support interrupt sharing, > therefore use the chip specific compatible string to help with that. the commit message is correc

Re: [PATCH RFC] uaccess: user_access_begin_after_access_ok()

2020-06-04 Thread Michael S. Tsirkin
On Thu, Jun 04, 2020 at 04:03:35PM +0100, Al Viro wrote: > On Thu, Jun 04, 2020 at 06:10:23AM -0400, Michael S. Tsirkin wrote: > > > stac() > > for (i = 0; i < 64; ++i) { > > get_user(flags, desc[i].flags) > unsafe_get_user(), please. > > smp_rmb() > > if (!(flags & VALID))

Re: [PATCH RFC] uaccess: user_access_begin_after_access_ok()

2020-06-04 Thread Michael S. Tsirkin
On Thu, Jun 04, 2020 at 03:59:24PM +0100, Al Viro wrote: > On Thu, Jun 04, 2020 at 02:10:27PM +0800, Jason Wang wrote: > > > > > get_user(flags, desc->flags) > > > > smp_rmb() > > > > if (flags & VALID) > > > > copy_from_user(&adesc, desc, sizeof adesc); > > > > > > > > this would be a good candi

Re: [PATCH net-next v6 4/4] net: dp83869: Add RGMII internal delay configuration

2020-06-04 Thread Jakub Kicinski
On Thu, 4 Jun 2020 11:38:14 -0500 Dan Murphy wrote: > Jakub > > On 6/4/20 11:25 AM, Jakub Kicinski wrote: > > On Thu, 4 Jun 2020 06:14:10 -0500 Dan Murphy wrote: > >> Add RGMII internal delay configuration for Rx and Tx. > >> > >> Signed-off-by: Dan Murphy > > Hi Dan, please make sure W=1 C=1

Re: [PATCH] mm: Fix pud_alloc_track()

2020-06-04 Thread Mike Rapoport
On Thu, Jun 04, 2020 at 09:44:46AM +0200, Joerg Roedel wrote: > From: Joerg Roedel > > The pud_alloc_track() needs to do different checks based on whether > __ARCH_HAS_5LEVEL_HACK is defined, like it already does in > pud_alloc(). Otherwise it causes boot failures on PowerPC. > > Provide the cor

Re: [PATCH V2] mm/vmstat: Add events for THP migration without split

2020-06-04 Thread Zi Yan
On 4 Jun 2020, at 12:36, Matthew Wilcox wrote: > On Thu, Jun 04, 2020 at 09:51:10AM -0400, Zi Yan wrote: >> On 4 Jun 2020, at 7:34, Matthew Wilcox wrote: >>> On Thu, Jun 04, 2020 at 09:30:45AM +0530, Anshuman Khandual wrote: +Quantifying Migration += +Following e

Re: [PATCH RFC] uaccess: user_access_begin_after_access_ok()

2020-06-04 Thread Michael S. Tsirkin
On Wed, Jun 03, 2020 at 02:36:46PM +0800, Jason Wang wrote: > > On 2020/6/3 下午2:30, Michael S. Tsirkin wrote: > > On Wed, Jun 03, 2020 at 02:23:08PM +0800, Jason Wang wrote: > > > > BTW now I re-read it I don't understand __vhost_get_user_slow: > > > > > > > > > > > > static void __user *__vhost

Re: [PATCH] KVM: VMX: Always treat MSR_IA32_PERF_CAPABILITIES as a valid PMU MSR

2020-06-04 Thread Paolo Bonzini
On 04/06/20 18:44, Jim Mattson wrote: >>> I don't know if I would call it a "good assumption" so much as a "necessary >>> assumption". KVM_{GET,SET}_MSRS are allowed, and must function correctly, >>> if they're called prior to KVM_SET_CPUID{2}. >> Generally speaking this is not the case for the PM

Greetings

2020-06-04 Thread Dennis Kosi
I am Mr.Dennis,i work as an accountant in a bank.I am contacting you independently of my investigation in my bank,i need your urgent assistance in transferring the sum of $11.6million dollars to your private bank account,the fund belongs to one of our foreign customer who died a longtime with his s

Re: [PATCH] linux/bits.h: fix unsigned less than zero warnings

2020-06-04 Thread Joe Perches
On Thu, 2020-06-04 at 09:41 +0300, Andy Shevchenko wrote: > I think there is still a possibility to improve (as I mentioned there > are test cases that are absent right now). > What if we will have unsigned long value 0x10001? Would it be 1 > after casting? > > Maybe cast to (long) or (long lo

[GIT PULL] pcmcia updates for v5.8

2020-06-04 Thread Dominik Brodowski
Linus, the following changes since b9bbe6ed63b2b9f2c9ee5cbd0f2c946a2723f4ce: Linux 5.7-rc6 (2020-05-17 16:48:37 -0700) are available from https://git.kernel.org/pub/scm/linux/kernel/git/brodo/linux.git pcmcia-next up to 46d0797906633d82bd50ef26780ee39fac5d27d6: pcmcia: make pccard_loop_

Re: [PATCH 2/3] ARM: dts: bcm2711: Update SPI nodes compatible strings

2020-06-04 Thread Stefan Wahren
Am 04.06.20 um 18:40 schrieb Florian Fainelli: > > On 6/3/2020 9:20 PM, Lukas Wunner wrote: >> On Wed, Jun 03, 2020 at 08:46:54PM -0700, Florian Fainelli wrote: >>> The BCM2711 SoC features 5 SPI controllers which all share the same >>> interrupt line, the SPI driver needs to support interrupt shar

Re: [PATCH 2/3] ARM: dts: bcm2711: Update SPI nodes compatible strings

2020-06-04 Thread Florian Fainelli
On 6/4/2020 9:54 AM, Stefan Wahren wrote: > Am 04.06.20 um 18:40 schrieb Florian Fainelli: >> >> On 6/3/2020 9:20 PM, Lukas Wunner wrote: >>> On Wed, Jun 03, 2020 at 08:46:54PM -0700, Florian Fainelli wrote: The BCM2711 SoC features 5 SPI controllers which all share the same interrupt

Re: [RFC][PATCH v3 1/5] sparc64: Fix asm/percpu.h build error

2020-06-04 Thread Peter Zijlstra
On Fri, May 29, 2020 at 04:29:17PM -0700, David Miller wrote: > From: Peter Zijlstra > Date: Fri, 29 May 2020 23:35:51 +0200 > > > ../arch/sparc/include/asm/percpu_64.h:7:24: warning: call-clobbered > > register used for global register variable > > register unsigned long __local_per_cpu_offset

[GIT PULL] afs: Improvements for v5.8

2020-06-04 Thread David Howells
itory at: git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git tags/afs-next-20200604 for you to fetch changes up to 8409f67b6437c4b327ee95a71081b9c7bfee0b00: afs: Adjust the fileserver rotation algorithm to reprobe/retry more quickly (2020-06-0

Re: [PATCH] mm: Fix pud_alloc_track()

2020-06-04 Thread Sedat Dilek
On Thu, Jun 4, 2020 at 6:49 PM Mike Rapoport wrote: > > On Thu, Jun 04, 2020 at 09:44:46AM +0200, Joerg Roedel wrote: > > From: Joerg Roedel > > > > The pud_alloc_track() needs to do different checks based on whether > > __ARCH_HAS_5LEVEL_HACK is defined, like it already does in > > pud_alloc().

Re: [PATCH v8 0/5] support reserving crashkernel above 4G on arm64 kdump

2020-06-04 Thread Nicolas Saenz Julienne
On Thu, 2020-06-04 at 01:17 +0530, Bhupesh Sharma wrote: > Hi All, > > On Wed, Jun 3, 2020 at 9:03 PM John Donnelly > wrote: > > > > > > > On Jun 3, 2020, at 8:20 AM, chenzhou wrote: > > > > > > Hi, > > > > > > > > > On 2020/6/3 19:47, Prabhakar Kushwaha wrote: > > > > Hi Chen, > > > > > >

Re: [PATCH ghak124 v3] audit: log nftables configuration change events

2020-06-04 Thread Steve Grubb
On Thursday, June 4, 2020 9:20:49 AM EDT Richard Guy Briggs wrote: > iptables, ip6tables, arptables and ebtables table registration, > replacement and unregistration configuration events are logged for the > native (legacy) iptables setsockopt api, but not for the > nftables netlink api which is us

Re: [PATCH] scsi: storvsc: Use kzfree() in storvsc_suspend()

2020-06-04 Thread Dexuan-Linux Cui
On Thu, Jun 4, 2020 at 6:06 AM Denis Efremov wrote: > > Use kzfree() instead of memset() with 0 followed by kfree(). > > Signed-off-by: Denis Efremov > --- > drivers/scsi/storvsc_drv.c | 5 + > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/drivers/scsi/storvsc_drv.c b/drive

Re: [PATCH v2 2/2] kcov: Pass -fno-stack-protector with Clang

2020-06-04 Thread Nick Desaulniers
On Thu, Jun 4, 2020 at 7:56 AM 'Marco Elver' via Clang Built Linux wrote: > > For Clang, correctly pass -fno-stack-protector via a separate cc-option, > as -fno-conserve-stack does not exist with Clang. > > Signed-off-by: Marco Elver > --- > kernel/Makefile | 2 +- > 1 file changed, 1 insertion(

Re: [PATCH v3 0/4] forbid fix {SQ,IO}POLL

2020-06-04 Thread Jens Axboe
On 6/3/20 12:51 PM, Jens Axboe wrote: > On 6/3/20 9:03 AM, Pavel Begunkov wrote: >> The first one adds checks {SQPOLL,IOPOLL}. IOPOLL check can be >> moved in the common path later, or rethinked entirely, e.g. >> not io_iopoll_req_issued()'ed for unsupported opcodes. >> >> 3 others are just cleanup

Re: [PATCH V2 1/2] mmc: sdhci-msm: Add interconnect bandwidth scaling support

2020-06-04 Thread Matthias Kaehlcke
On Thu, Jun 04, 2020 at 04:44:42PM +0530, Pradeep P V K wrote: > Interconnect bandwidth scaling support is now added as a > part of OPP [1]. So, make sure interconnect driver is ready > before handling interconnect scaling. > > This change is based on > [1] [Patch v8] Introduce OPP bandwidth bindi

Re: [PATCH] Coccinelle: Add dummy report mode to add_namespace.cocci

2020-06-04 Thread Markus Elfring
> … when run trough I hope that a typo will be avoided for the final change description. Regards, Markus

Re: [PATCH v5 0/2] Small devm helper for devm implementations

2020-06-04 Thread Greg Kroah-Hartman
On Thu, Jun 04, 2020 at 06:13:21PM +0200, Marc Gonzalez wrote: > Looks like this series has fallen through the cracks :( > Greg, you would be taking the drivers/base/devres.c changes? > As mentioned in patch 2, "This patch needs testing on a platform with many > clocks." > (I've only tested using

[PATCH] ASoC: meson: fix memory leak of links if allocation of ldata fails

2020-06-04 Thread Colin King
From: Colin Ian King Currently if the allocation of ldata fails the error return path does not kfree the allocated links object. Fix this by adding an error exit return path that performs the necessary kfree'ing. Addresses-Coverity: ("Resource leak") Fixes: 7864a79f37b5 ("ASoC: meson: add axg s

slub freelist issue / BUG: unable to handle page fault for address: 000000003ffe0018

2020-06-04 Thread Vegard Nossum
Hi all, I ran into a boot problem with latest linus/master (6929f71e46bdddbf1c4d67c2728648176c67c555) that manifests like this: hpet0: 3 comparators, 64-bit 100.00 MHz counter clocksource: Switched to clocksource tsc-early BUG: unable to handle page fault for address: 3ffe0018 #PF:

Re: [PATCH] mm/vmalloc: track which page-table levels were modified

2020-06-04 Thread Linus Torvalds
On Thu, Jun 4, 2020 at 1:35 AM Joerg Roedel wrote: > > I posted the fix for this already: > > https://lore.kernel.org/lkml/20200604074446.23944-1-j...@8bytes.org/ Ugh. I was going to apply this directly, but as I looked at the patch I just found it fairly illegible. Is there some reason

Re: [PATCH] pwm: Add missing "CONFIG_" prefix

2020-06-04 Thread Thierry Reding
On Wed, Jun 03, 2020 at 03:40:56PM -0700, Kees Cook wrote: > The IS_ENABLED() use was missing the CONFIG_ prefix which would have > lead to skipping this code. > > Fixes: 3ad1f3a33286 ("pwm: Implement some checks for lowlevel drivers") > Signed-off-by: Kees Cook > --- > drivers/pwm/core.c | 2 +-

[PATCH] docs: deprecated.rst: Add note to the use of struct_size() helper

2020-06-04 Thread Gustavo A. R. Silva
Add a note to educate people about the proper use of struct_size() when the trailing array in the enclosing structure is a one-element array. Zero-length and one-element arrays will soon be removed from the kernel, but in the meantime, it's worth letting people know how to correctly use struct_siz

LTP: syscalls: regression on mainline - ioctl_loop01 mknod07 setns01

2020-06-04 Thread Naresh Kamboju
Following three test cases reported as regression on Linux mainline kernel on x86_64, arm64, arm and i386 ltp-syscalls-tests: * ioctl_loop01 * mknod07 * setns01 git repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git branch: master GOOD: git commit: b23c47

Re: slub freelist issue / BUG: unable to handle page fault for address: 000000003ffe0018

2020-06-04 Thread Vlastimil Babka
On 6/4/20 7:14 PM, Vegard Nossum wrote: > > Hi all, > > I ran into a boot problem with latest linus/master > (6929f71e46bdddbf1c4d67c2728648176c67c555) that manifests like this: Hi, what's the .config you use? > hpet0: 3 comparators, 64-bit 100.00 MHz counter > clocksource: Switched to cloc

Re: LTP: syscalls: regression on mainline - ioctl_loop01 mknod07 setns01

2020-06-04 Thread Naresh Kamboju
+ linux-bl...@vger.kernel.org On Thu, 4 Jun 2020 at 22:47, Naresh Kamboju wrote: > > Following three test cases reported as regression on Linux mainline kernel > on x86_64, arm64, arm and i386 > > ltp-syscalls-tests: > * ioctl_loop01 > * mknod07 > * setns01 > > git repo: https://git

Re: slub freelist issue / BUG: unable to handle page fault for address: 000000003ffe0018

2020-06-04 Thread Vegard Nossum
On 2020-06-04 19:18, Vlastimil Babka wrote: On 6/4/20 7:14 PM, Vegard Nossum wrote: Hi all, I ran into a boot problem with latest linus/master (6929f71e46bdddbf1c4d67c2728648176c67c555) that manifests like this: Hi, what's the .config you use? Pretty much x86_64 defconfig minus a few optio

[PATCH] ACPI: PM: Avoid using power resources if there are none for D0

2020-06-04 Thread Rafael J. Wysocki
From: Rafael J. Wysocki As recently reported, some platforms provide a list of power resources for device power state D3hot, through the _PR3 object, but they do not provide a list of power resources for device power state D0. Among other things, this causes acpi_device_get_power() to return D3h

Re: [PATCH] coccinelle: api: add kzfree script

2020-06-04 Thread Denis Efremov
> Could you send an example of some C code on which the result is not > suitable? I've updated the pattern to handle false positives: @ifok@ position p; expression *E; @@ ( if (...) { ... memset(E, 0, ...)@p; ... } | if (...) { ... } else { ... memset(E, 0, ...)@p

Re: [PATCH] x86/mm: use max memory block size with unaligned memory end

2020-06-04 Thread Daniel Jordan
On Thu, Jun 04, 2020 at 09:22:03AM +0200, David Hildenbrand wrote: > On 04.06.20 05:54, Daniel Jordan wrote: > > Some of our servers spend 14 out of the 21 seconds of kernel boot > > initializing memory block sysfs directories and then creating symlinks > > between them and the corresponding nodes.

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

2020-06-04 Thread Will Deacon
On Sun, 31 May 2020 13:00:15 +0200, 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. Applied to arm64 (for-next/core), thanks! [1/1] arm64: debug: mark a function as __init to save some memory

Re: [PATCH v3 004/105] clk: bcm: Add BCM2711 DVP driver

2020-06-04 Thread Nicolas Saenz Julienne
Hi Maxime, On Wed, 2020-05-27 at 17:47 +0200, Maxime Ripard wrote: > The HDMI block has a block that controls clocks and reset signals to the > HDMI0 and HDMI1 controllers. Why not having two separate drivers? > Let's expose that through a clock driver implementing a clock and reset > provider.

Re: [PATCH v2 7/9] x86: Add support for function granular KASLR

2020-06-04 Thread Kristen Carlson Accardi
On Thu, 2020-05-21 at 14:08 -0700, Kees Cook wrote: > On Thu, May 21, 2020 at 09:56:38AM -0700, Kristen Carlson Accardi > wrote: > > At boot time, find all the function sections that have separate > > .text > > sections, shuffle them, and then copy them to new locations. Adjust > > any relocations

Re: [PATCH 1/1] nvme-fcloop: verify wwnn and wwpn format

2020-06-04 Thread Sagi Grimberg
Reviewed-by: Sagi Grimberg

Re: [PATCH] coccinelle: api: add kzfree script

2020-06-04 Thread Julia Lawall
> After all it seems reasonable to me to add forall and memset_explicit rather > than handle all these false positives. Something like this for v2? > > @r depends on !patch && !(file in "lib/test_kasan.c") && !(file in > "mm/slab_common.c") forall@ > expression *E; > position p; > @@ > > * \(memse

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

2020-06-04 Thread Ingo Molnar
* Linus Torvalds wrote: > I really get the feeling that this feature just isn't ready. > > Ingo - would you mind sending me a pull request for the (independent) > TLB cleanups part of that x86/mm tree? Because everything up to and > including commit bd1de2a7aace ("x86/tlb/uv: Add a forward dec

Re: [PATCH] coccinelle: api: add kzfree script

2020-06-04 Thread Denis Efremov
On 6/4/20 7:27 PM, Joe Perches wrote: > On Thu, 2020-06-04 at 17:08 +0300, Denis Efremov wrote: >> Check for memset() with 0 followed by kfree(). > > Perhaps those uses should be memzero_explicit or kvfree_sensitive. Thanks, I will add memzero_explicit(). However, I can't find kvfree_sensitive

Re: system time goes weird in kvm guest after host suspend/resume

2020-06-04 Thread Thomas Gleixner
Miklos, Thomas Gleixner writes: >> Of course this does not reproduce here. What kind of host is this >> running on? Can you provide a full demsg of the host please from boot to >> post resume? > > Plus /proc/cpuinfo please (one CPU is sufficient) thanks for providing the data. Unfortunately not

Re: [PATCH] iio: adc: mt6360: Add ADC driver for MT6360

2020-06-04 Thread Jonathan Cameron
On Thu, 4 Jun 2020 11:00:31 +0800 Gene Chen wrote: > From: Gene Chen > > Add MT6360 ADC driver include Charger Current, Voltage, and > Temperature. > > Signed-off-by: Gene Chen > base-commit: 098c4adf249c198519a4abebe482b1e6b8c50e47 Hi Gene, Comments inline. I'd like to understand more in

Re: [GIT PULL] perf tooling changes for v5.8

2020-06-04 Thread pr-tracker-bot
The pull request you sent on Tue, 2 Jun 2020 15:24:23 -0300: > git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git > perf-tools-2020-06-02 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/38b3a5aaf2fd35e997550b855cfb7460b077236a Thank you! -- Deet-doot-dot,

Re: [PATCH v2 0/6] iio: core: pass parent device as parameter during allocation

2020-06-04 Thread Jonathan Cameron
On Wed, 3 Jun 2020 11:41:52 + "Ardelean, Alexandru" wrote: > On Wed, 2020-06-03 at 14:40 +0300, Alexandru Ardelean wrote: > > This patch updates the {devm_}iio_device_alloc() functions to automatically > > assign the parent device on allocation. > > For iio_device_alloc() this means a new par

Re: [PATCH] pinctrl: pxa: pxa2xx: Remove 'pxa2xx_pinctrl_exit()' which is unused and broken

2020-06-04 Thread Dan Carpenter
On Thu, Jun 04, 2020 at 09:08:44AM -0700, Joe Perches wrote: > On Thu, 2020-06-04 at 15:30 +0300, Dan Carpenter wrote: > > On Thu, Jun 04, 2020 at 01:42:12PM +0200, Julia Lawall wrote: > > > OK, I recall a discussion with Dan where he suggested that some things > > > that were not actually bug fixe

Re: [GIT PULL] Smack patches for v5.8

2020-06-04 Thread pr-tracker-bot
The pull request you sent on Tue, 2 Jun 2020 13:38:04 -0700: > https://github.com/cschaufler/smack-next tags/Smack-for-5.8 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/acf25aa66371359f542d14e8d993b530fe25d7ac Thank you! -- Deet-doot-dot, I am a bot. https://korg.w

Re: [GIT PULL] keys: Changes for 5.8

2020-06-04 Thread pr-tracker-bot
The pull request you sent on Tue, 02 Jun 2020 17:28:00 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git > tags/keys-next-20200602 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/a484a497c98a0447aca2d70de19d11b1d66e6ef7 Thank you! -- Deet-

Re: [PATCH] coccinelle: api: add kzfree script

2020-06-04 Thread Joe Perches
On Thu, 2020-06-04 at 20:30 +0300, Denis Efremov wrote: > > On 6/4/20 7:27 PM, Joe Perches wrote: > > On Thu, 2020-06-04 at 17:08 +0300, Denis Efremov wrote: > > > Check for memset() with 0 followed by kfree(). > > > > Perhaps those uses should be memzero_explicit or kvfree_sensitive. > > Thanks

[PATCH v2 3/4] ARC: [plat-hsdk-4xd] initial port for HSDK-4xD board

2020-06-04 Thread Eugeniy Paltsev
This initial port adds support of ARC HS4x/HS4xD Development Kit board with some basic features such serial port, USB, SD/MMC, SPI flash, Ethernet and others. The HSDK-4xD board has much in common with its predecessor - HSDK board. However HSDK-4xD has some differences in comparison with its prede

[PATCH v2 2/4] ARC: ARCv2: support loop buffer (LPB) disabling

2020-06-04 Thread Eugeniy Paltsev
On HS cores, loop buffer (LPB) is programmable in runtime and can be optionally disabled. Signed-off-by: Eugeniy Paltsev --- arch/arc/Kconfig | 6 ++ arch/arc/kernel/head.S | 8 2 files changed, 14 insertions(+) diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig index 7034c2177

[PATCH v2 4/4] ARC: [plat-hsdk*] document HSDK-4xD board/SoC bindings

2020-06-04 Thread Eugeniy Paltsev
Add documentation for HSDK-4xD board/SoC bindings. While I'm at it convert HSDK board/SoC bindings to DT schema format using json-schema. Cc: Rob Herring Signed-off-by: Eugeniy Paltsev --- .../devicetree/bindings/arc/hsdk.txt | 7 - .../devicetree/bindings/arc/hsdk.yaml |

[PATCH v2 0/4] ARC: [plat-hsdk-4xd] initial port for HSDK-4xD board

2020-06-04 Thread Eugeniy Paltsev
Changes v1->v2: * Fallback to ISA default mcpu flag if custom one isn't supported by compiler. * Drop HSDK custom Kconfig options (choose between HSDK and HSDK-4xD) as we don't need it (at least for now). Instead we select ARC_LPB_DISABLE for both boards but it's totally OK as HSDK doesn

[PATCH v2 1/4] ARC: allow to override default mcpu compiler flag

2020-06-04 Thread Eugeniy Paltsev
Kernel builds set their own default -mcpu for a given ISA build. But that gets in the way of "custom" -mcpu flags from propagating into kernel build. This will also be used in next patches for HSDK-4xD board support which uses a different -mcpu to effect dual issue scheduling. Signed-off-by: Euge

Re: [PATCH] dmaengine: tegra210-adma: fix pm_runtime_get_sync failure

2020-06-04 Thread Jon Hunter
On 03/06/2020 19:38, Navid Emamdoost wrote: > Calling pm_runtime_get_sync increments the counter even in case of > failure, causing incorrect ref count. Call pm_runtime_put if > pm_runtime_get_sync fails. > > Signed-off-by: Navid Emamdoost > --- > drivers/dma/tegra210-adma.c | 4 +++- > 1 file

Re: [PATCH] dmaengine: tegra210-adma: fix pm_runtime_get_sync failure

2020-06-04 Thread Jon Hunter
On 03/06/2020 19:41, Navid Emamdoost wrote: > Calling pm_runtime_get_sync increments the counter even in case of > failure, causing incorrect ref count. Call pm_runtime_put if > pm_runtime_get_sync fails. > > Signed-off-by: Navid Emamdoost > --- > drivers/dma/tegra210-adma.c | 1 + > 1 file ch

Re: [PATCH v2 00/10] KVM: x86: Interrupt-based mechanism for async_pf 'page present' notifications

2020-06-04 Thread Vivek Goyal
On Thu, May 28, 2020 at 01:04:55PM +0200, Paolo Bonzini wrote: > On 25/05/20 16:41, Vitaly Kuznetsov wrote: > > Concerns were expressed around (ab)using #PF for KVM's async_pf mechanism, > > it seems that re-using #PF exception for a PV mechanism wasn't a great > > idea after all. The Grand Plan is

Re: [PATCH] x86/mm: use max memory block size with unaligned memory end

2020-06-04 Thread David Hildenbrand
On 04.06.20 19:22, Daniel Jordan wrote: > On Thu, Jun 04, 2020 at 09:22:03AM +0200, David Hildenbrand wrote: >> On 04.06.20 05:54, Daniel Jordan wrote: >>> Some of our servers spend 14 out of the 21 seconds of kernel boot >>> initializing memory block sysfs directories and then creating symlinks >>

Re: [PATCH] kgdb: Avoid suspicious RCU usage warning

2020-06-04 Thread Doug Anderson
Hi, On Wed, Jun 3, 2020 at 5:00 AM Daniel Thompson wrote: > > On Tue, Jun 02, 2020 at 03:56:33PM -0700, Doug Anderson wrote: > > > > 2. Perhaps remove the whole irq saving / restoring in kgdb_cpu_enter(). > > > > > > Are you feeling lucky? > > > > > > I think there will come a time when bravery i

Re: [PATCH glibc 1/3] glibc: Perform rseq registration at C startup and thread creation (v20)

2020-06-04 Thread Joseph Myers
On Thu, 4 Jun 2020, Mathieu Desnoyers via Libc-alpha wrote: > That external piece of documentation would be part of the Linux man-pages > project, maintained by Michael Kerrisk. I have submitted a few revisions > of the rseq(2) man page, but have been waiting for Michael to reply for more > than a

[PATCH] kobject: Avoid premature parent object freeing in kobject_cleanup()

2020-06-04 Thread Rafael J. Wysocki
From: Heikki Krogerus If kobject_del() is invoked by kobject_cleanup() to delete the target kobject, it may cause its parent kobject to be freed before invoking the target kobject's ->release() method, which effectively means freeing the parent before dealing with the child entirely. That is con

Re: [PATCH v2 08/11] swiotlb-xen: introduce phys_to_dma/dma_to_phys translations

2020-06-04 Thread boris . ostrovsky
On 6/4/20 1:46 PM, Boris Ostrovsky wrote: > On 6/3/20 6:22 PM, Stefano Stabellini wrote: >> diff --git a/drivers/xen/swiotlb-xen.c b/drivers/xen/swiotlb-xen.c >> index 0a6cb67f0fc4..60ef07440905 100644 >> --- a/drivers/xen/swiotlb-xen.c >> +++ b/drivers/xen/swiotlb-xen.c >> @@ -64,16 +64,16 @@ st

Re: [GIT PULL] Backlight for v5.8

2020-06-04 Thread Linus Torvalds
On Wed, Jun 3, 2020 at 2:04 AM Lee Jones wrote: > >- Convert to GPIO descriptors; l4f00242t03 I'm impressed by that completely nonsensical device naming scheme. I had to look it up because I thought that line might have been line noise. I know some manufacturers and tech people have "issues

Re: [PATCH] dmaengine: tegra210-adma: fix pm_runtime_get_sync failure

2020-06-04 Thread Navid Emamdoost
On Thu, Jun 4, 2020 at 12:45 PM Jon Hunter wrote: > > > On 03/06/2020 19:41, Navid Emamdoost wrote: > > Calling pm_runtime_get_sync increments the counter even in case of > > failure, causing incorrect ref count. Call pm_runtime_put if > > pm_runtime_get_sync fails. > > > > Signed-off-by: Navid Em

Re: [PATCH v2 08/11] swiotlb-xen: introduce phys_to_dma/dma_to_phys translations

2020-06-04 Thread Boris Ostrovsky
On 6/3/20 6:22 PM, Stefano Stabellini wrote: > > diff --git a/drivers/xen/swiotlb-xen.c b/drivers/xen/swiotlb-xen.c > index 0a6cb67f0fc4..60ef07440905 100644 > --- a/drivers/xen/swiotlb-xen.c > +++ b/drivers/xen/swiotlb-xen.c > @@ -64,16 +64,16 @@ static inline dma_addr_t xen_phys_to_bus(struct dev

Re: [PATCH] docs: deprecated.rst: Add note to the use of struct_size() helper

2020-06-04 Thread Kees Cook
On Thu, Jun 04, 2020 at 12:21:38PM -0500, Gustavo A. R. Silva wrote: > Add a note to educate people about the proper use of struct_size() when > the trailing array in the enclosing structure is a one-element array. > > Zero-length and one-element arrays will soon be removed from the kernel, > but

[PATCH] pinctrl: tegra: Use noirq suspend/resume callbacks

2020-06-04 Thread Vidya Sagar
Use noirq suspend/resume callbacks as other drivers which implement noirq suspend/resume callbacks (Ex:- PCIe) depend on pinctrl driver to configure the signals used by their respective devices in the noirq phase. Signed-off-by: Vidya Sagar --- drivers/pinctrl/tegra/pinctrl-tegra.c | 4 ++-- 1 f

Re: [PATCH v3 03/25] firmware: rpi: Only create clocks device if we don't have a node for it

2020-06-04 Thread Nicolas Saenz Julienne
On Wed, 2020-05-27 at 17:44 +0200, Maxime Ripard wrote: > The firmware clocks driver was previously probed through a platform_device > created by the firmware driver. > > Since we will now have a node for that clocks driver, we need to create the > device only in the case where there's no node for

Re: slub freelist issue / BUG: unable to handle page fault for address: 000000003ffe0018

2020-06-04 Thread Kees Cook
On Thu, Jun 04, 2020 at 07:20:18PM +0200, Vegard Nossum wrote: > On 2020-06-04 19:18, Vlastimil Babka wrote: > > On 6/4/20 7:14 PM, Vegard Nossum wrote: > > > > > > Hi all, > > > > > > I ran into a boot problem with latest linus/master > > > (6929f71e46bdddbf1c4d67c2728648176c67c555) that manifes

Re: [PATCH v3 04/25] clk: bcm: rpi: Allow the driver to be probed by DT

2020-06-04 Thread Nicolas Saenz Julienne
On Wed, 2020-05-27 at 17:45 +0200, Maxime Ripard wrote: > The current firmware clock driver for the RaspberryPi can only be probed by > manually registering an associated platform_device. > > While this works fine for cpufreq where the device gets attached a clkdev > lookup, it would be tedious to

Re: [PATCHv7 1/3] optee: use uuid for sysfs driver entry

2020-06-04 Thread Maxim Uvarov
On Thu, 4 Jun 2020 at 18:03, Maxim Uvarov wrote: > > With the evolving use-cases for TEE bus, now it's required to support > multi-stage enumeration process. But using a simple index doesn't > suffice this requirement and instead leads to duplicate sysfs entries. > So instead switch to use more in

Re: [PATCH V1 1/2] mmc: sdhci-msm: Add interconnect bandwidth scaling support

2020-06-04 Thread Sibi Sankar
On 2020-06-04 16:43, p...@codeaurora.org wrote: Hi Sibi, Thanks for the review!! On 2020-06-03 17:22, Sibi Sankar wrote: Hey Pradeep, Thanks for the patch. On 2020-06-03 14:39, Pradeep P V K wrote: Interconnect bandwidth scaling support is now added as a part of OPP [1]. So, make sure interc

Re: [PATCH v2 00/10] KVM: x86: Interrupt-based mechanism for async_pf 'page present' notifications

2020-06-04 Thread Paolo Bonzini
On 04/06/20 19:45, Vivek Goyal wrote: >> I'll do another round of review and queue patches 1-7; 8-9 will be >> queued later and separately due to the conflicts with the interrupt >> entry rework, but it's my job and you don't need to do anything else. > Hi Paolo, > > I seee 1-7 got merged for 5.8.

Re: slub freelist issue / BUG: unable to handle page fault for address: 000000003ffe0018

2020-06-04 Thread Kees Cook
On Thu, Jun 04, 2020 at 07:20:18PM +0200, Vegard Nossum wrote: > On 2020-06-04 19:18, Vlastimil Babka wrote: > > On 6/4/20 7:14 PM, Vegard Nossum wrote: > > > > > > Hi all, > > > > > > I ran into a boot problem with latest linus/master > > > (6929f71e46bdddbf1c4d67c2728648176c67c555) that manifes

Re: [PATCH ghak124 v3] audit: log nftables configuration change events

2020-06-04 Thread Richard Guy Briggs
On 2020-06-04 13:03, Steve Grubb wrote: > On Thursday, June 4, 2020 9:20:49 AM EDT Richard Guy Briggs wrote: > > iptables, ip6tables, arptables and ebtables table registration, > > replacement and unregistration configuration events are logged for the > > native (legacy) iptables setsockopt api, bu

Re: [PATCH 09/10] treewide: Remove uninitialized_var() usage

2020-06-04 Thread Jason Gunthorpe
On Thu, Jun 04, 2020 at 07:59:40AM -0700, Kees Cook wrote: > On Thu, Jun 04, 2020 at 10:23:06AM -0300, Jason Gunthorpe wrote: > > On Wed, Jun 03, 2020 at 04:32:02PM -0700, Kees Cook wrote: > > > Using uninitialized_var() is dangerous as it papers over real bugs[1] > > > (or can in the future), and

[PATCHv8 1/3] optee: use uuid for sysfs driver entry

2020-06-04 Thread Maxim Uvarov
With the evolving use-cases for TEE bus, now it's required to support multi-stage enumeration process. But using a simple index doesn't suffice this requirement and instead leads to duplicate sysfs entries. So instead switch to use more informative device UUID for sysfs entry like: /sys/bus/tee/dev

[PATCHv8 3/3] tpm_ftpm_tee: register driver on TEE bus

2020-06-04 Thread Maxim Uvarov
OP-TEE based fTPM Trusted Application depends on tee-supplicant to provide NV RAM implementation based on RPMB secure storage. So this dependency can be resolved via TEE bus where we only invoke fTPM driver probe once fTPM device is registered on the bus which is only true after the tee-supplicant

[PATCHv8 0/3] optee: register drivers on optee bus

2020-06-04 Thread Maxim Uvarov
v8: - fix v7 check. v7: - check return value of dev_set_name() (Jarkko Sakkinen) v6: - description, comments, patches reorder and destroy workqueue (Sumit Garg) v5: - removed pr_err and fix typos in description (Jarkko Sakkinen) - added missed kfree in optee_open() v4: - sysfs entry is optee-ta

[PATCHv8 2/3] optee: enable support for multi-stage bus enumeration

2020-06-04 Thread Maxim Uvarov
Some drivers (like ftpm) can operate only after tee-supplicant runs because of tee-supplicant provides things like storage services (rpmb, shm).  This patch splits probe of non tee-supplicant dependable drivers to the early stage, and after tee-supplicant run probe other drivers. Signed-off-by: Ma

[PATCH] ath10k: Acquire tx_lock in tx error paths

2020-06-04 Thread Evan Green
ath10k_htt_tx_free_msdu_id() has a lockdep assertion that htt->tx_lock is held. Acquire the lock in a couple of error paths when calling that function to ensure this condition is met. Fixes: 6421969f248fd ("ath10k: refactor tx pending management") Fixes: e62ee5c381c59 ("ath10k: Add support for htt

Re: [PATCH] pinctrl: tegra: Use noirq suspend/resume callbacks

2020-06-04 Thread Dmitry Osipenko
04.06.2020 20:49, Vidya Sagar пишет: > Use noirq suspend/resume callbacks as other drivers which implement > noirq suspend/resume callbacks (Ex:- PCIe) depend on pinctrl driver to > configure the signals used by their respective devices in the noirq phase. > > Signed-off-by: Vidya Sagar > --- >

Re: [PATCH v3 12/25] clk: bcm: rpi: Use CCF boundaries instead of rolling our own

2020-06-04 Thread Nicolas Saenz Julienne
On Wed, 2020-05-27 at 17:45 +0200, Maxime Ripard wrote: > The raspberrypi firmware clock driver has a min_rate / max_rate clamping by > storing the info it needs in a private structure. > > However, the CCF already provides such a facility, so we can switch to it > to remove the boilerplate. > >

Re: [PATCH] pinctrl: pxa: pxa2xx: Remove 'pxa2xx_pinctrl_exit()' which is unused and broken

2020-06-04 Thread Joe Perches
On Thu, 2020-06-04 at 20:35 +0300, Dan Carpenter wrote: > On Thu, Jun 04, 2020 at 09:08:44AM -0700, Joe Perches wrote: > > On Thu, 2020-06-04 at 15:30 +0300, Dan Carpenter wrote: > > > On Thu, Jun 04, 2020 at 01:42:12PM +0200, Julia Lawall wrote: > > > > OK, I recall a discussion with Dan where he

Re: [GIT PULL] chrome-platform changes for v5.8

2020-06-04 Thread Linus Torvalds
Hmm. Your pull requests are confused. Several of these commits were already merged long before 5.7. For example: On Wed, Jun 3, 2020 at 5:14 PM Benson Leung wrote: > > Gwendal Grignou (1): > platform/chrome: cros_ec_sensorhub: Allocate sensorhub resource before > claiming sensors was me

Re: [PATCH] mm: Fix pud_alloc_track()

2020-06-04 Thread Guenter Roeck
On Thu, Jun 04, 2020 at 09:44:46AM +0200, Joerg Roedel wrote: > From: Joerg Roedel > > The pud_alloc_track() needs to do different checks based on whether > __ARCH_HAS_5LEVEL_HACK is defined, like it already does in > pud_alloc(). Otherwise it causes boot failures on PowerPC. > > Provide the cor

Re: [PATCH 0/2] overlayfs: C/R enhancements

2020-06-04 Thread Amir Goldstein
On Thu, Jun 4, 2020 at 7:13 PM Alexander Mikhalitsyn wrote: > > This patchset aimed to make C/R of overlayfs mounts with CRIU possible. > We introduce two new overlayfs module options -- dyn_path_opts and > mnt_id_path_opts. If enabled this options allows to see real *full* paths > in lowerdir, wo

Re: [PATCH] KVM: nVMX: Inject #GP when nested_vmx_get_vmptr() fails to read guest memory

2020-06-04 Thread Jim Mattson
On Thu, Jun 4, 2020 at 9:43 AM Vitaly Kuznetsov wrote: > > Sean Christopherson writes: > > > On Thu, Jun 04, 2020 at 05:33:25PM +0200, Vitaly Kuznetsov wrote: > >> Sean Christopherson writes: > >> > >> > On Thu, Jun 04, 2020 at 04:40:52PM +0200, Paolo Bonzini wrote: > >> >> On 04/06/20 16:31, Vi

Re: [PATCH] x86/mm: use max memory block size with unaligned memory end

2020-06-04 Thread Daniel Jordan
On Thu, Jun 04, 2020 at 07:45:40PM +0200, David Hildenbrand wrote: > On 04.06.20 19:22, Daniel Jordan wrote: > > IMHO the root cause of this is really the small block size. Building a > > cache > > on top to avoid iterating over tons of small blocks seems like papering over > > the problem, espec

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