Re: [PATCH v2 7/7] x86/mm: Remove vmalloc faulting

2020-05-13 Thread Andy Lutomirski
On Wed, May 13, 2020 at 8:21 AM Joerg Roedel wrote: > > From: Joerg Roedel > > Remove fault handling on vmalloc areas, as the vmalloc code now takes > care of synchronizing changes to all page-tables in the system. You should also remove sync_current_stack_to_mm().

Re: [PATCH v1] net: phy: at803x: add cable test support

2020-05-13 Thread Oleksij Rempel
On Wed, May 13, 2020 at 08:23:42AM -0700, Florian Fainelli wrote: > > > On 5/13/2020 5:06 AM, Oleksij Rempel wrote: > > The cable test seems to be support by all of currently support Atherso > > PHYs, so add support for all of them. This patch was tested only on > > AR9331 PHY with following

Re: [PATCH] coresight: dynamic-replicator: Fix handling of multiple connections

2020-05-13 Thread Sai Prakash Ranjan
On 2020-05-13 07:19, Stephen Boyd wrote: Quoting Mike Leach (2020-05-12 14:52:33) HI Sai, On Tue, 12 May 2020 at 18:46, Sai Prakash Ranjan wrote: > > Hi Mike, > > On 2020-05-12 17:19, Mike Leach wrote: > [...] > > >> >> > >> >> Sorry for hurrying up and sending the patch - > >> >>

Re: [PATCH v3 1/4] dma-buf: add support for virtio exported objects

2020-05-13 Thread Daniel Vetter
On Wed, Mar 11, 2020 at 12:20 PM David Stevens wrote: > > This change adds a new dma-buf operation that allows dma-bufs to be used > by virtio drivers to share exported objects. The new operation allows > the importing driver to query the exporting driver for the UUID which > identifies the

Re: [PATCH 2/3] security: add symbol namespace for reading file data

2020-05-13 Thread Eric W. Biederman
Luis Chamberlain writes: > Certain symbols are not meant to be used by everybody, the security > helpers for reading files directly is one such case. Use a symbol > namespace for them. > > This will prevent abuse of use of these symbols in places they were > not inteded to be used, and provides

Re: [PATCH] kobject: Make sure the parent does not get released before its children

2020-05-13 Thread Greg Kroah-Hartman
On Wed, May 13, 2020 at 06:18:40PM +0300, Heikki Krogerus wrote: > In the function kobject_cleanup(), kobject_del(kobj) is > called before the kobj->release(). That makes it possible to > release the parent of the kobject before the kobject itself. > > To fix that, adding function __kboject_del()

Re: [PATCH 3/3] net: cleanly handle kernel vs user buffers for ->msg_control

2020-05-13 Thread Eric Dumazet
On 5/11/20 4:59 AM, Christoph Hellwig wrote: > The msg_control field in struct msghdr can either contain a user > pointer when used with the recvmsg system call, or a kernel pointer > when used with sendmsg. To complicate things further kernel_recvmsg > can stuff a kernel pointer in and then

[RFC PATCH] arm: Don't trap conditional UDF instructions

2020-05-13 Thread Fredrik Strupe
Hi, This is more of a question than a patch, but I hope the attached patch makes the issue a bit clearer. The arm port of Linux supports hooking/trapping of undefined instructions. Some parts of the code use this to trap UDF instructions with certain immediates in order to use them for other

Re: [PATCH v2 1/2] perf expr: Test parsing of floating point numbers

2020-05-13 Thread Arnaldo Carvalho de Melo
Em Tue, May 12, 2020 at 11:27:51PM -0700, Ian Rogers escreveu: > Add test for fix in: > commit 5741da3dee4c ("perf expr: Parse numbers as doubles") > > Signed-off-by: Ian Rogers > --- > tools/perf/tests/expr.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/tools/perf/tests/expr.c

Re: [PATCH 06/14] arm64: dts: sparx5: Add basic cpu support

2020-05-13 Thread Marc Zyngier
On 2020-05-13 13:55, Lars Povlsen wrote: This adds the basic DT structure for the Microchip Sparx5 SoC, and the reference boards, pcb125, pcb134 and pcb135. The two latter have a NAND vs a eMMC centric variant (as a mount option), Reviewed-by: Alexandre Belloni Signed-off-by: Lars Povlsen ---

Re: [PATCH v2 2/2] perf test: Improve pmu event metric testing

2020-05-13 Thread Arnaldo Carvalho de Melo
Em Tue, May 12, 2020 at 11:27:52PM -0700, Ian Rogers escreveu: > Break pmu-events test into 2 and add a test to verify that all pmu metric > expressions simply parse. Try to parse all metric ids/events, warning if > metrics for the current architecture fail to parse. > > Tested on power9,

Re: [PATCH] staging: greybus: Replace zero-length array with flexible-array

2020-05-13 Thread Greg Kroah-Hartman
On Wed, May 13, 2020 at 05:03:43PM +0200, Johan Hovold wrote: > On Thu, May 07, 2020 at 01:53:18PM -0500, Gustavo A. R. Silva wrote: > > The current codebase makes use of the zero-length array language > > extension to the C90 standard, but the preferred mechanism to declare > > variable-length

Re: [PATCH v5 3/6] fs: Enable to enforce noexec mounts or file exec through O_MAYEXEC

2020-05-13 Thread Stephen Smalley
On Tue, May 5, 2020 at 11:33 AM Mickaël Salaün wrote: > > Enable to forbid access to files open with O_MAYEXEC. Thanks to the > noexec option from the underlying VFS mount, or to the file execute > permission, userspace can enforce these execution policies. This may > allow script interpreters

Re: [PATCH v6 2/2] mtd: rawnand: Add NAND controller support on Intel LGM SoC

2020-05-13 Thread Andy Shevchenko
On Wed, May 13, 2020 at 06:34:05PM +0300, Andy Shevchenko wrote: > On Wed, May 13, 2020 at 06:46:15PM +0800, Ramuthevar,Vadivel MuruganX wrote: ... > > +static int ebu_nand_remove(struct platform_device *pdev) > > +{ > > + struct ebu_nand_controller *ebu_host = platform_get_drvdata(pdev); > >

Re: [PATCH v4 0/3] arch/x86: Enable MPK feature on AMD

2020-05-13 Thread Paolo Bonzini
On 13/05/20 01:58, Babu Moger wrote: > AMD's next generation of EPYC processors support the MPK (Memory > Protection Keys) feature. > > This series enables the feature on AMD and updates config parameters > and documentation to reflect the MPK support on x86 platforms. > > AMD documentation for

Re: [PATCH v6 2/2] mtd: rawnand: Add NAND controller support on Intel LGM SoC

2020-05-13 Thread Andy Shevchenko
On Wed, May 13, 2020 at 06:46:15PM +0800, Ramuthevar,Vadivel MuruganX wrote: > From: Ramuthevar Vadivel Murugan > > This patch adds the new IP of Nand Flash Controller(NFC) support > on Intel's Lightning Mountain(LGM) SoC. > > DMA is used for burst data transfer operation, also DMA HW supports

Re: [PATCH] coresight: dynamic-replicator: Fix handling of multiple connections

2020-05-13 Thread Sai Prakash Ranjan
Hi Mike, On 2020-05-13 03:22, Mike Leach wrote: [...] Looking at the AMBA driver there is a comment there that AMBA does not lose state when clocks are removed. This is consistent with the AMBA protocol spec which states that AMBA slaves can only be accessed / read / write on various strobe

Re: I disabled more compiler warnings..

2020-05-13 Thread Paul Smith
On Wed, 2020-05-13 at 08:21 +, David Laight wrote: > > GNU make uses pselect(), on systems that support it. On systems > > that don't support pselect() it uses a trick I described in another > > email: we dup() the FD, read() on the dup, then in the SIGCHLD > > handler we close() the dup. >

Re: [PATCH] ASoC: tlv320adcx140: Add controls for PDM clk and edge

2020-05-13 Thread Mark Brown
On Wed, May 13, 2020 at 09:47:46AM -0500, Dan Murphy wrote: > +static const char * const pdmclk_text[] = { > + "2.8224 MHz", "1.4112 MHz", "705.6 kHz", "5.6448 MHz" > +}; > + > +static SOC_ENUM_SINGLE_DECL(pdmclk_select_enum, ADCX140_PDMCLK_CFG, 0, > + pdmclk_text); >

Re: [PATCH v4 3/4] perf stat: Copy counts from prev_raw_counts to evsel->counts

2020-05-13 Thread Jiri Olsa
On Fri, May 08, 2020 at 03:58:16PM +0800, Jin Yao wrote: > It would be useful to support the overall statistics for perf-stat > interval mode. For example, report the summary at the end of > "perf-stat -I" output. > > But since perf-stat can support many aggregation modes, such as > --per-thread,

Re: gcc-10: kernel stack is corrupted and fails to boot

2020-05-13 Thread Kalle Valo
Arnd Bergmann writes: > On Wed, May 13, 2020 at 2:57 PM Kalle Valo wrote: >> >> Arnd Bergmann writes: >> >> > On Wed, May 13, 2020 at 8:50 AM Kalle Valo wrote: >> >> >> >> Kalle Valo writes: >> > >> > At least if it fails reproducibly, it's probably not too hard to drill >> > down further.

Re: [PATCH 00/13] Reconcile NUMA balancing decisions with the load balancer v6

2020-05-13 Thread Mel Gorman
On Wed, May 13, 2020 at 04:57:15PM +0200, Jirka Hladky wrote: > Hi Mel, > > we have tried the kernel with adjust_numa_imbalance() crippled to just > return the imbalance it's given. > > It has solved all the performance problems I have reported. > Performance is the same as with 5.6 kernel

Re: [PATCH v10 1/5] usb: xhci: Change the XHCI link order in the Makefile

2020-05-13 Thread Florian Fainelli
On 5/13/2020 8:26 AM, Andy Shevchenko wrote: > On Wed, May 13, 2020 at 08:08:07AM -0700, Florian Fainelli wrote: >> On 5/13/2020 5:26 AM, Greg Kroah-Hartman wrote: >>> On Tue, May 12, 2020 at 11:00:15AM -0400, Al Cooper wrote: Some BRCMSTB USB chips have an XHCI, EHCI and OHCI controller

Re: [PATCH v6 5/6] Optionally flush L1D on context switch

2020-05-13 Thread Thomas Gleixner
Balbir Singh writes: > Implement a mechanism to selectively flush the L1D cache. The goal is to > allow tasks that are paranoid due to the recent snoop assisted data sampling > vulnerabilites, to flush their L1D on being switched out. This protects > their data from being snooped or leaked via

Re: [PATCH 2/2] perf test: Improve pmu event metric testing

2020-05-13 Thread John Garry
On 13/05/2020 07:22, Ian Rogers wrote: Break pmu-events test into 2 and add a test to verify that all pmu metric expressions simply parse. Try to parse all metric ids/events, failing if metrics for the current architecture fail to parse. Tested on power9, skylakex, haswell, broadwell, westmere,

Re: [PATCH] keys: Make the KEY_NEED_* perms an enum rather than a mask

2020-05-13 Thread Casey Schaufler
On 5/12/2020 3:33 PM, David Howells wrote: > Since the meaning of combining the KEY_NEED_* constants is undefined, make > it so that you can't do that by turning them into an enum. > > The enum is also given some extra values to represent special > circumstances, such as: > > (1) The '0' value is

Re: [PATCH v10 1/5] usb: xhci: Change the XHCI link order in the Makefile

2020-05-13 Thread Andy Shevchenko
On Wed, May 13, 2020 at 08:08:07AM -0700, Florian Fainelli wrote: > On 5/13/2020 5:26 AM, Greg Kroah-Hartman wrote: > > On Tue, May 12, 2020 at 11:00:15AM -0400, Al Cooper wrote: > >> Some BRCMSTB USB chips have an XHCI, EHCI and OHCI controller > >> on the same port where XHCI handles 3.0

KMSAN: uninit-value in hash_ip6_test

2020-05-13 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:14bcee29 DO-NOT-SUBMIT: kmsan: block: nullb: handle read r.. git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=14f266a410 kernel config:

Re: [PATCH v10 2/3] i2c: npcm7xx: Add Nuvoton NPCM I2C controller driver

2020-05-13 Thread Andy Shevchenko
On Mon, May 11, 2020 at 02:28:50PM +0300, Tali Perry wrote: > On Mon, May 11, 2020 at 12:18 PM Andy Shevchenko > wrote: > > On Sun, May 10, 2020 at 01:23:29PM +0300, Tali Perry wrote: ... > > > +#if IS_ENABLED(CONFIG_DEBUG_FS) > > > > Why? > > We wanted to add an optional feature to track i2c

KMSAN: kernel-infoleak in _copy_to_iter (5)

2020-05-13 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:14bcee29 DO-NOT-SUBMIT: kmsan: block: nullb: handle read r.. git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=1752af7c10 kernel config:

Re: [v1,1/1] watchdog: (nct7904) Fix enable watchdog incorrectly

2020-05-13 Thread Guenter Roeck
On Wed, May 13, 2020 at 11:00:15AM +, yuechao.z...@advantech.com.cn wrote: > From: Yuechao Zhao > > Use incorrect register to enable watchdog in nct7904_wdt_ping() > > Signed-off-by: Yuechao Zhao I merged this patch into the patch introducing watchdog support. Thanks, Guenter > --- >

Re: [PATCH v1] net: phy: at803x: add cable test support

2020-05-13 Thread Florian Fainelli
On 5/13/2020 5:06 AM, Oleksij Rempel wrote: > The cable test seems to be support by all of currently support Atherso > PHYs, so add support for all of them. This patch was tested only on > AR9331 PHY with following results: > - No cable is detected as short > - A 15m long cable connected only

[PATCH v2 1/7] mm: Add functions to track page directory modifications

2020-05-13 Thread Joerg Roedel
From: Joerg Roedel Add page-table allocation functions which will keep track of changed directory entries. They are needed for new PGD, P4D, PUD, and PMD entries and will be used in vmalloc and ioremap code to decide whether any changes in the kernel mappings need to be synchronized between

[PATCH 0/3] fs: reduce export usage of kerne_read*() calls

2020-05-13 Thread Luis Chamberlain
with allyesconfig and allmodconfig on x86_64. 0-day should have a report on build status with other configs later of my branch [1]. [0] https://lkml.kernel.org/r/20200508002739.19360-1-scott.bran...@broadcom.com [1] https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git/log/?h=20200513

[PATCH 2/3] security: add symbol namespace for reading file data

2020-05-13 Thread Luis Chamberlain
Certain symbols are not meant to be used by everybody, the security helpers for reading files directly is one such case. Use a symbol namespace for them. This will prevent abuse of use of these symbols in places they were not inteded to be used, and provides an easy way to audit where these types

[PATCH v2 6/7] mm: Remove vmalloc_sync_(un)mappings()

2020-05-13 Thread Joerg Roedel
From: Joerg Roedel These functions are not needed anymore because the vmalloc and ioremap mappings are now synchronized when they are created or teared down. Remove all callers and function definitions. Tested-by: Steven Rostedt (VMware) Signed-off-by: Joerg Roedel --- arch/x86/mm/fault.c

[PATCH v2 2/7] mm/vmalloc: Track which page-table levels were modified

2020-05-13 Thread Joerg Roedel
From: Joerg Roedel Track at which levels in the page-table entries were modified by vmap/vunmap. After the page-table has been modified, use that information do decide whether the new arch_sync_kernel_mappings() needs to be called. Signed-off-by: Joerg Roedel --- include/linux/vmalloc.h | 16

[PATCH v2 0/7] mm: Get rid of vmalloc_sync_(un)mappings()

2020-05-13 Thread Joerg Roedel
Hi, here is the next post of this series with these changes to the first version: - Rebased to v5.7-rc5 - As a result of the rebase, also removed the vmalloc_sync_mappings() call from tracing code - Added a comment that we rely on the compiler optimizing calls

[PATCH v2 4/7] x86/mm/64: Implement arch_sync_kernel_mappings()

2020-05-13 Thread Joerg Roedel
From: Joerg Roedel Implement the function to sync changes in vmalloc and ioremap ranges to all page-tables. Signed-off-by: Joerg Roedel --- arch/x86/include/asm/pgtable_64_types.h | 2 ++ arch/x86/mm/init_64.c | 5 + 2 files changed, 7 insertions(+) diff --git

[PATCH v2 3/7] mm/ioremap: Track which page-table levels were modified

2020-05-13 Thread Joerg Roedel
From: Joerg Roedel Track at which levels in the page-table entries were modified by ioremap_page_range(). After the page-table has been modified, use that information do decide whether the new arch_sync_kernel_mappings() needs to be called. The iounmap path re-uses vunmap(), which has already

[PATCH v2 5/7] x86/mm/32: Implement arch_sync_kernel_mappings()

2020-05-13 Thread Joerg Roedel
From: Joerg Roedel Implement the function to sync changes in vmalloc and ioremap ranges to all page-tables. Signed-off-by: Joerg Roedel --- arch/x86/include/asm/pgtable-2level_types.h | 2 ++ arch/x86/include/asm/pgtable-3level_types.h | 2 ++ arch/x86/mm/fault.c |

[PATCH v2 7/7] x86/mm: Remove vmalloc faulting

2020-05-13 Thread Joerg Roedel
From: Joerg Roedel Remove fault handling on vmalloc areas, as the vmalloc code now takes care of synchronizing changes to all page-tables in the system. Signed-off-by: Joerg Roedel --- arch/x86/include/asm/switch_to.h | 23 -- arch/x86/kernel/setup_percpu.c | 6 +-

[PATCH 1/3] fs: unexport kernel_read_file()

2020-05-13 Thread Luis Chamberlain
There are no modular uses of kernel_read_file(), so just unexport it. Suggested-by: Al Viro Signed-off-by: Luis Chamberlain --- fs/exec.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/exec.c b/fs/exec.c index 23dc2b45d590..9791b9eef9ce 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -988,7

[PATCH 3/3] fs: move kernel_read*() calls to its own symbol namespace

2020-05-13 Thread Luis Chamberlain
Signed-off-by: Luis Chamberlain --- drivers/base/firmware_loader/main.c | 1 + fs/exec.c | 6 +++--- kernel/kexec_file.c | 2 ++ kernel/module.c | 1 + security/integrity/digsig.c | 3 +++ security/integrity/ima/ima_fs.c |

Re: [v1,1/1] hwmon: (nct7904) Fix the incorrect rang of temperature limitation registers.

2020-05-13 Thread Guenter Roeck
On Tue, May 12, 2020 at 09:38:06AM +, amy.s...@advantech.com.tw wrote: > From: Amy Shih > > The format of temperature limitation registers are 8-bit 2's complement > and the range is -128~127. > Converts the reading value to signed char to fix the incorrect range > of temperature limitation

Re: [PATCH] kobject: Make sure the parent does not get released before its children

2020-05-13 Thread Rafael J. Wysocki
On Wed, May 13, 2020 at 5:18 PM Heikki Krogerus wrote: > > In the function kobject_cleanup(), kobject_del(kobj) is > called before the kobj->release(). That makes it possible to > release the parent of the kobject before the kobject itself. > > To fix that, adding function __kboject_del() that

Re: [v1,1/1] hwmon: (nct7904) Add to read all of the SMI status registers in probe function.

2020-05-13 Thread Guenter Roeck
On Tue, May 12, 2020 at 02:25:23AM +, amy.s...@advantech.com.tw wrote: > From: Amy Shih > > When nct7904 power up, it compares current sensor readings within the > default threshold immediately, thus some of SMI status registers would > get non zero values cause the false alarms on first

netfilter: does the API break or something else ?

2020-05-13 Thread Xiubo Li
Hi Experts, Recently I hit one netfilter issue, it seems the API breaks or something else. On CentOS8.1 with the recent upstream kernel built from source, such as 5.6.0-rc6/5.7.0-rc4. When running the following command: $ sudo bash -c 'iptables -A FORWARD -o enp3s0f1 -i ceph-brx -j ACCEPT'

Re: [PATCH 3/3] hwmon: sparx5: Add Sparx5 SoC temperature driver

2020-05-13 Thread Guenter Roeck
On Wed, May 13, 2020 at 03:41:40PM +0200, Lars Povlsen wrote: > This patch adds a temperature sensor driver to the Sparx5 SoC. > > Reviewed-by: Alexandre Belloni > Signed-off-by: Lars Povlsen > --- > drivers/hwmon/Kconfig | 10 +++ > drivers/hwmon/Makefile | 2 +- >

Re: [PATCH] printk: Add loglevel for "do not print to consoles".

2020-05-13 Thread Tetsuo Handa
On 2020/05/13 22:55, Steven Rostedt wrote: > On Wed, 13 May 2020 20:03:53 +0900 > Tetsuo Handa wrote: > >> I think that basically only oops (e.g. WARN()/BUG()/panic()) messages worth >> printing to consoles and the rest messages do not worth printing to consoles. >> Existing KERN_$LOGLEVEL is

Re: mmotm 2020-05-11-15-43 uploaded (ethernet/ti/ti_cpsw)

2020-05-13 Thread Randy Dunlap
On 5/13/20 2:20 AM, Grygorii Strashko wrote: > > > On 12/05/2020 05:12, Randy Dunlap wrote: >> On 5/11/20 3:44 PM, Andrew Morton wrote: >>> The mm-of-the-moment snapshot 2020-05-11-15-43 has been uploaded to >>> >>>     http://www.ozlabs.org/~akpm/mmotm/ >>> >>> mmotm-readme.txt says >>> >>>

[PATCH] kobject: Make sure the parent does not get released before its children

2020-05-13 Thread Heikki Krogerus
In the function kobject_cleanup(), kobject_del(kobj) is called before the kobj->release(). That makes it possible to release the parent of the kobject before the kobject itself. To fix that, adding function __kboject_del() that does everything that kobject_del() does except release the parent

Re: [PATCH 4/4] perf expr: Report line number with error

2020-05-13 Thread Arnaldo Carvalho de Melo
Em Wed, May 13, 2020 at 04:46:10PM +0200, Jiri Olsa escreveu: > On Wed, May 13, 2020 at 11:08:25AM -0300, Arnaldo Carvalho de Melo wrote: > > Em Wed, May 13, 2020 at 01:34:24PM +0200, Jiri Olsa escreveu: > > > On Wed, May 13, 2020 at 12:09:30AM -0700, Ian Rogers wrote: > > > > On Mon, May 11, 2020

[PATCH v3] ovl: potential crash in ovl_fid_to_fh()

2020-05-13 Thread Dan Carpenter
The "buflen" value comes from the user and there is a potential that it could be zero. In do_handle_to_path() we know that "handle->handle_bytes" is non-zero and we do: handle_dwords = handle->handle_bytes >> 2; So values 1-3 become zero. Then in ovl_fh_to_dentry() we do: int

Re: [PATCH 3/3] EDAC/amd64: Add AMD family 17h model 60h PCI IDs

2020-05-13 Thread Yazen Ghannam
On Sun, May 10, 2020 at 04:48:42PM -0400, Alexander Monakov wrote: > Add support for AMD Renoir (4000-series Ryzen CPUs). > > Signed-off-by: Alexander Monakov > Cc: Thomas Gleixner > Cc: Borislav Petkov > Cc: x...@kernel.org > Cc: Yazen Ghannam > Cc: Brian Woods > Cc: Clemens Ladisch > Cc:

Re: [PATCH 1/3] x86/amd_nb: add AMD family 17h model 60h PCI IDs

2020-05-13 Thread Yazen Ghannam
On Sun, May 10, 2020 at 04:48:40PM -0400, Alexander Monakov wrote: > Add PCI IDs for AMD Renoir (4000-series Ryzen CPUs). This is necessary > to enable support for temperature sensors via the k10temp module. > > Signed-off-by: Alexander Monakov > Cc: Thomas Gleixner > Cc: Borislav Petkov > Cc:

Re: [PATCH v4 1/3] arch/x86: Update config and kernel doc for MPK feature on AMD

2020-05-13 Thread Dave Hansen
On 5/12/20 4:58 PM, Babu Moger wrote: > +config X86_MEMORY_PROTECTION_KEYS > + # Both Intel and AMD platforms support "Memory Protection Keys" > + # feature. So add a generic option X86_MEMORY_PROTECTION_KEYS > + # and set the option whenever X86_INTEL_MEMORY_PROTECTION_KEYS > + #

Re: [RFC][PATCH 1/3] evm: Move hooks outside LSM infrastructure

2020-05-13 Thread Mimi Zohar
On Wed, 2020-05-13 at 07:21 +, Roberto Sassu wrote: > > From: Mimi Zohar [mailto:zo...@linux.ibm.com] > > Sent: Tuesday, May 12, 2020 9:38 PM > > On Tue, 2020-05-12 at 16:31 +, Roberto Sassu wrote: > > > > From: Mimi Zohar [mailto:zo...@linux.ibm.com] > > > > > > > > Each time the EVM

Re: [PATCH v10 1/5] usb: xhci: Change the XHCI link order in the Makefile

2020-05-13 Thread Florian Fainelli
On 5/13/2020 5:26 AM, Greg Kroah-Hartman wrote: > On Tue, May 12, 2020 at 11:00:15AM -0400, Al Cooper wrote: >> Some BRCMSTB USB chips have an XHCI, EHCI and OHCI controller >> on the same port where XHCI handles 3.0 devices, EHCI handles 2.0 >> devices and OHCI handles <2.0 devices. Currently

Re: [PATCH v9 2/5] PCI: Add Loongson PCI Controller support

2020-05-13 Thread Bjorn Helgaas
On Wed, May 13, 2020 at 09:20:08AM +0800, Jiaxun Yang wrote: > 于 2020年5月13日 GMT+08:00 上午2:06:02, Bjorn Helgaas 写到: > >On Tue, May 12, 2020 at 03:43:56PM +0800, Jiaxun Yang wrote: > >> This controller can be found on Loongson-2K SoC, Loongson-3 > >> systems with RS780E/LS7A PCH. > >> > >> The

Re: [PATCH v6 5/6] Optionally flush L1D on context switch

2020-05-13 Thread Thomas Gleixner
Balbir Singh writes: > > + if (prev_mm & LAST_USER_MM_L1D_FLUSH) > + arch_l1d_flush(0); /* Just flush, don't populate the TLB */ Bah. I fundamentally hate tail comments. They are just disturbing the reading flow. Aside of that, this states the WHAT but not the WHY. And if you

Re: [PATCH V2] arm64/cpuinfo: Move HWCAP name arrays alongside their bit definitions

2020-05-13 Thread Dave Martin
On Thu, May 07, 2020 at 06:59:10PM +0530, Anshuman Khandual wrote: > All HWCAP name arrays (i.e hwcap_str, compat_hwcap_str, compat_hwcap2_str) > that are scanned for /proc/cpuinfo output are detached from their bit fild > definitions making it difficult to corelate. This is also bit problematic >

Re: [PATCH] video: fbdev: ssd1307fb: Added support to Column offset

2020-05-13 Thread Andy Shevchenko
On Wed, May 13, 2020 at 2:51 PM Rodrigo Rolim Mendes de Alencar <455.rodrigo.alen...@gmail.com> wrote: > > This patch provides support for displays like VGM128064B0W10, > which requires a column offset of 2, i.e., its segments starts > in SEG2 and ends in SEG129. You forgot 1) version of the

Re: [PATCH] staging: greybus: Replace zero-length array with flexible-array

2020-05-13 Thread Johan Hovold
On Thu, May 07, 2020 at 01:53:18PM -0500, Gustavo A. R. Silva wrote: > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechanism to declare > variable-length types such as these ones is a flexible array member[1][2], > introduced

Re: linux-next: manual merge of the vfs tree with the parisc-hd tree

2020-05-13 Thread Luis Chamberlain
On Wed, May 13, 2020 at 09:44:40AM -0500, Eric W. Biederman wrote: > Luis Chamberlain writes: > > > On Wed, May 13, 2020 at 08:42:30AM -0500, Eric W. Biederman wrote: > >> Luis Chamberlain writes: > >> > >> > On Tue, May 12, 2020 at 12:40:55PM -0500, Eric W. Biederman wrote: > >> >> Luis

[PATCH 02/15] ARM: dts: stm32: update pwm pinctrl node names for stm32f4

2020-05-13 Thread Benjamin Gaignard
Rename pwm pinctrl nodes name to matching with yaml bindings requirements. Signed-off-by: Benjamin Gaignard --- arch/arm/boot/dts/stm32f4-pinctrl.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/stm32f4-pinctrl.dtsi

[PATCH 04/15] ARM: dts: stm32: update led nodes names for stm32f469-disco

2020-05-13 Thread Benjamin Gaignard
Update led nodes names to be aligned with yaml description Signed-off-by: Benjamin Gaignard --- arch/arm/boot/dts/stm32f469-disco.dts | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/stm32f469-disco.dts b/arch/arm/boot/dts/stm32f469-disco.dts index

[PATCH 10/15] ARM: dts: stm32: Update nodes names for stm32h743 pinctrl

2020-05-13 Thread Benjamin Gaignard
Fix the nodes names to be aligned with yaml description Signed-off-by: Benjamin Gaignard --- arch/arm/boot/dts/stm32h743-pinctrl.dtsi | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/stm32h743-pinctrl.dtsi

[PATCH 08/15] ARM: dts: stm32: update led nodes names for stm32f746-eval

2020-05-13 Thread Benjamin Gaignard
Update led nodes names to be aligned with yaml description Signed-off-by: Benjamin Gaignard --- arch/arm/boot/dts/stm32746g-eval.dts | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/stm32746g-eval.dts b/arch/arm/boot/dts/stm32746g-eval.dts index

[PATCH 05/15] ARM: dts: stm32: remove useless interrupt-names property on stm32f746

2020-05-13 Thread Benjamin Gaignard
Driver doesn't use interrupt's name to get it so remove it from the node. Signed-off-by: Benjamin Gaignard --- arch/arm/boot/dts/stm32f746.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/boot/dts/stm32f746.dtsi b/arch/arm/boot/dts/stm32f746.dtsi index 93c063796780..5d69a0c653eb

[PATCH 11/15] ARM: dts: stm32: Update nodes names for stm32mp15 pinctrl

2020-05-13 Thread Benjamin Gaignard
Fix the nodes names to be aligned with yaml description Signed-off-by: Benjamin Gaignard --- arch/arm/boot/dts/stm32mp15-pinctrl.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi

Re: [PATCH] x86/hyperv: Properly suspend/resume reenlightenment notifications

2020-05-13 Thread Wei Liu
On Tue, May 12, 2020 at 06:01:53PM +0200, Vitaly Kuznetsov wrote: > Errors during hibernation with reenlightenment notifications enabled were > reported: > > [ 51.730435] PM: hibernation entry > [ 51.737435] PM: Syncing filesystems ... > ... > [ 54.102216] Disabling non-boot CPUs ... >

[PATCH 00/15] Fix STM32 DT issues on v5.7-rc4

2020-05-13 Thread Benjamin Gaignard
This series fixes issues hight lighted by dtbs_check on STM32 devicetrees. The patches has been developped on top of v5.7-rc4 tag. Benjamin Gaignard (15): ARM: dts: stm32: remove useless interrupt-names property on stm32f429 ARM: dts: stm32: update pwm pinctrl node names for stm32f4 ARM:

[PATCH 06/15] ARM: dts: stm32: update led nodes names for stm32f429-eval

2020-05-13 Thread Benjamin Gaignard
Update led nodes names to be aligned with yaml description Signed-off-by: Benjamin Gaignard --- arch/arm/boot/dts/stm32429i-eval.dts | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/stm32429i-eval.dts b/arch/arm/boot/dts/stm32429i-eval.dts index

Re: [PATCH 2/3] pinctrl: mchp-sgpio: Add pinctrl driver for Microsemi Serial GPIO

2020-05-13 Thread Randy Dunlap
On 5/13/20 7:11 AM, Lars Povlsen wrote: > diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig > index 834c59950d1cf..2b0e9021fd7e0 100644 > --- a/drivers/pinctrl/Kconfig > +++ b/drivers/pinctrl/Kconfig > @@ -396,6 +396,23 @@ config PINCTRL_OCELOT > select OF_GPIO > select

[PATCH 15/15] dt-bindings: usb: dwc2: Fix issues for stm32mp15x SoC

2020-05-13 Thread Benjamin Gaignard
Correct the compatible list for stm32mp15x SoC. Fix the name of the stm32mp15x dedicated supply to be aligned with what the driver use. Signed-off-by: Benjamin Gaignard --- Documentation/devicetree/bindings/usb/dwc2.yaml | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

[PATCH 2/3] drm/etnaviv: Don't ignore errors on getting clocks

2020-05-13 Thread Lubomir Rintel
There might be good reasons why the getting a clock failed. To treat the clocks as optional we're specifically only interested in ignoring -ENOENT, and devm_clk_get_optional() does just that. Signed-off-by: Lubomir Rintel --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 16 1 file

file system permissions regression affecting root

2020-05-13 Thread Patrick Donnelly
In newer kernels (at least 5.6), it appears root is not able to write to files owned by other users in a sticky directory: $ uname -r 5.6.11-arch1-1 $ stat -f /tmp File: "/tmp" ID: 0Namelen: 255 Type: tmpfs Block size: 4096 Fundamental block size: 4096 Blocks: Total:

[PATCH 14/15] dt-bindings: pinctrl: stm32: Add missing interrupts property

2020-05-13 Thread Benjamin Gaignard
Driver use interrupt-parent field so update the bindings to allow it. Signed-off-by: Benjamin Gaignard --- Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml

[PATCH 13/15] ARM: dts: stm32: update led nodes names for stm32f746-eval

2020-05-13 Thread Benjamin Gaignard
Update led nodes names to be aligned with yaml description Signed-off-by: Benjamin Gaignard --- arch/arm/boot/dts/stm32mp15xx-dkx.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/stm32mp15xx-dkx.dtsi b/arch/arm/boot/dts/stm32mp15xx-dkx.dtsi index

Re: [PATCH 1/2] IB/sa: Resolving use-after-free in ib_nl_send_msg.

2020-05-13 Thread Jason Gunthorpe
On Mon, May 11, 2020 at 02:26:30PM -0700, Divya Indi wrote: > >> @@ -1123,6 +1156,18 @@ int ib_nl_handle_resolve_resp(struct sk_buff *skb, > >> > >>send_buf = query->mad_buf; > >> > >> + /* > >> + * Make sure the IB_SA_NL_QUERY_SENT flag is set before > >> + * processing this query.

[no subject]

2020-05-13 Thread Lubomir Rintel
Hi, please consider applying patches that are chained to this message. They make getting/enabling the clocks in the etnaviv driver slightly nicer, first two also fix potential problems. Thanks Lubo

[PATCH 3/3] drm/etnaviv: Simplify clock enable/disable

2020-05-13 Thread Lubomir Rintel
All the NULL checks are pointless, clk_*() routines already deal with NULL just fine. Signed-off-by: Lubomir Rintel --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 53 ++- 1 file changed, 19 insertions(+), 34 deletions(-) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c

[PATCH 12/15] ARM: dts: stm32: Add missing #address and #size cells on spi node for stm32mp151

2020-05-13 Thread Benjamin Gaignard
Add the missing #address-cells and #size-cells to spi node. Signed-off-by: Benjamin Gaignard --- arch/arm/boot/dts/stm32mp151.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp151.dtsi b/arch/arm/boot/dts/stm32mp151.dtsi index 3ea05ba48215..5484ef81c5a8 100644

[PATCH 1/3] drm/etnaviv: Fix error path on failure to enable bus clk

2020-05-13 Thread Lubomir Rintel
Since commit 65f037e8e908 ("drm/etnaviv: add support for slave interface clock") the reg clock is enabled before the bus clock and we need to undo its enablement on error. Fixes: 65f037e8e908 ("drm/etnaviv: add support for slave interface clock") Signed-off-by: Lubomir Rintel ---

[PATCH 09/15] ARM: dts: stm32: remove useless interrupt-names property on stm32f743

2020-05-13 Thread Benjamin Gaignard
Driver doesn't use interrupt's name to get it so remove it from the node. Signed-off-by: Benjamin Gaignard --- arch/arm/boot/dts/stm32h743.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/boot/dts/stm32h743.dtsi b/arch/arm/boot/dts/stm32h743.dtsi index 05eb02e6d083..e1de90ade786

[PATCH v4] kernel: add panic_on_taint

2020-05-13 Thread Rafael Aquini
Analogously to the introduction of panic_on_warn, this patch introduces a kernel option named panic_on_taint in order to provide a simple and generic way to stop execution and catch a coredump when the kernel gets tainted by any given taint flag. This is useful for debugging sessions as it avoids

[PATCH 07/15] ARM: dts: stm32: update led nodes names for stm32f769-disco

2020-05-13 Thread Benjamin Gaignard
Update led nodes names to be aligned with yaml description Signed-off-by: Benjamin Gaignard --- arch/arm/boot/dts/stm32f769-disco.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/stm32f769-disco.dts b/arch/arm/boot/dts/stm32f769-disco.dts index

[PATCH 03/15] ARM: dts: stm32: update led nodes names for stm32f249-disco

2020-05-13 Thread Benjamin Gaignard
Update led nodes names to be aligned with yaml description Signed-off-by: Benjamin Gaignard --- arch/arm/boot/dts/stm32f429-disco.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/stm32f429-disco.dts b/arch/arm/boot/dts/stm32f429-disco.dts index

[PATCH 01/15] ARM: dts: stm32: remove useless interrupt-names property on stm32f429

2020-05-13 Thread Benjamin Gaignard
Driver doesn't use interrupt's name to get it so remove it from the node. Signed-off-by: Benjamin Gaignard --- arch/arm/boot/dts/stm32f429.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi index d7770699feb5..3537430fd4a3

Re: [PATCH net-next 1/4] net: ethernet: validate pause autoneg setting

2020-05-13 Thread Michal Kubecek
On Wed, May 13, 2020 at 03:49:25PM +0200, Andrew Lunn wrote: > > So, I think consistency of implementation is more important than fixing > > this; the current behaviour has been established for many years now. > > With netlink ethtool we have the possibility of adding a new API to > control this.

Re: [PATCH] treewide: Replace zero-length array with flexible-array

2020-05-13 Thread Johan Hovold
On Thu, May 07, 2020 at 01:53:13PM -0500, Gustavo A. R. Silva wrote: > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechanism to declare > variable-length types such as these ones is a flexible array member[1][2], > introduced

Re: [PATCH 00/13] Reconcile NUMA balancing decisions with the load balancer v6

2020-05-13 Thread Jirka Hladky
Hi Mel, we have tried the kernel with adjust_numa_imbalance() crippled to just return the imbalance it's given. It has solved all the performance problems I have reported. Performance is the same as with 5.6 kernel (before the patch was applied). * solved the performance drop upto 20% with

[PATCH] ASoC: tlv320adcx140: Add controls for PDM clk and edge

2020-05-13 Thread Dan Murphy
Add ALSA controls to configure the PDM clock and PDM input edges for the 4 digital mic inputs. Signed-off-by: Dan Murphy --- sound/soc/codecs/tlv320adcx140.c | 74 +--- 1 file changed, 69 insertions(+), 5 deletions(-) diff --git a/sound/soc/codecs/tlv320adcx140.c

Re: [PATCH] dmaengine: at_xdmac: Replace zero-length array with flexible-array

2020-05-13 Thread Vinod Koul
On 07-05-20, 14:00, Gustavo A. R. Silva wrote: > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechanism to declare > variable-length types such as these ones is a flexible array member[1][2], > introduced in C99: > > struct

Re: [EXT] Re: [v1,net-next, 1/2] ethtool: add setting frame preemption of traffic classes

2020-05-13 Thread Murali Karicheri
Hi Vinicius, On 3/18/20 10:07 AM, Murali Karicheri wrote: Hi Vinicius, On 03/12/2020 07:34 PM, Vinicius Costa Gomes wrote: Hi, Po Liu writes: Hi Vinicius, Br, Po Liu -Original Message- From: Vinicius Costa Gomes Sent: 2020年2月22日 5:44 To: Po Liu ; da...@davemloft.net;

Re: [PATCH] dmaengine: at_hdmac: Replace zero-length array with flexible-array

2020-05-13 Thread Vinod Koul
On 07-05-20, 14:00, Gustavo A. R. Silva wrote: > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechanism to declare > variable-length types such as these ones is a flexible array member[1][2], > introduced in C99: > > struct

Re: [PATCH] dmaengine: qcom: bam_dma: Replace zero-length array with flexible-array

2020-05-13 Thread Vinod Koul
On 08-05-20, 16:07, Gustavo A. R. Silva wrote: > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechanism to declare > variable-length types such as these ones is a flexible array member[1][2], > introduced in C99: > > struct

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

2020-05-13 Thread Andy Shevchenko
On Wed, May 13, 2020 at 5:03 PM 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 overhead.

Re: [PATCH -next] gnss: sirf: fix error return code in sirf_probe()

2020-05-13 Thread Johan Hovold
On Thu, May 07, 2020 at 09:42:52AM +, Wei Yongjun wrote: > Fix to return a negative error code from the error handling > case instead of 0, as done elsewhere in this function. > > Fixes: d2efbbd18b1e ("gnss: add driver for sirfstar-based receivers") > Reported-by: Hulk Robot > Signed-off-by:

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