Re: [PATCH 0/7] Add dts for Rpi4 + Cirrus Lochnagar and codecs

2020-10-14 Thread Mark Brown
On Wed, Oct 14, 2020 at 03:54:11PM +0100, Richard Fitzgerald wrote: > This set of patches provides support for using the Cirrus Logic > Lochnagar audio development platform plus Cirrus Logic Madera/Arizona > codecs with the simple-card machine driver and a Raspberry Pi4. The > ultimate aim is to pr

Re: [PATCH 18/20] arch: dts: Fix EHCI/OHCI DT nodes name

2020-10-14 Thread Paul Cercueil
Le mer. 14 oct. 2020 à 13:14, Serge Semin a écrit : In accordance with the Generic EHCI/OHCI bindings the corresponding node name is suppose to comply with the Generic USB HCD DT schema, which requires the USB nodes to have the name acceptable by the regexp: "^usb(@.*)?" . Let's fix the DTS

Re: [PATCH v2 02/24] tools: docs: memory-model: fix references for some files

2020-10-14 Thread Paul E. McKenney
On Tue, Oct 13, 2020 at 06:58:40PM -0700, Paul E. McKenney wrote: > On Tue, Oct 13, 2020 at 12:38:36PM -0400, Alan Stern wrote: > > On Tue, Oct 13, 2020 at 09:33:54AM -0700, Paul E. McKenney wrote: > > > On Tue, Oct 13, 2020 at 02:14:29PM +0200, Mauro Carvalho Chehab wrote: > > > > - The sysfs.txt

Re: [PATCH v2] nvmet: fix uninitialized work for zero kato

2020-10-14 Thread Sagi Grimberg
Fixes: Don't run keep alive work with zero kato. "Fixes" tags need to have a git commit id followed by the commit subject. I can't find any commit with that subject, though. Fixes: 0d3b6a8d213a ("nvmet: Disable keep-alive timer when kato is cleared to 0h")

Re: [PATCH v2] fs: gfs2: add validation checks for size of superblock

2020-10-14 Thread Andreas Gruenbacher
Anant, On Wed, Oct 14, 2020 at 6:31 PM Anant Thazhemadam wrote: > In gfs2_check_sb(), no validation checks are performed with regards to > the size of the superblock. > syzkaller detected a slab-out-of-bounds bug that was primarily caused > because the block size for a superblock was set to zero.

Re: [PATCH] ASoC: Intel: kbl_rt5663_max98927: Fix kabylake_ssp_fixup function

2020-10-14 Thread Mark Brown
On Wed, Oct 14, 2020 at 02:16:24PM +, Tomasz Figa wrote: > Fixes a boot crash on a HP Chromebook x2: > > [ 16.582225] BUG: kernel NULL pointer dereference, address: 0050 > [ 16.582231] #PF: supervisor read access in kernel mode > [ 16.582233] #PF: error_code(0x) - not-pr

Re: [PATCH v4 1/5] kselftests: vm: Add mremap tests

2020-10-14 Thread Kalesh Singh
On Tue, Oct 13, 2020 at 8:54 PM Kalesh Singh wrote: > Hi kselftest maintainers, Could someone ACK this mremap test if there isn't any other concern? Thanks, Kalesh > Test mremap on regions of various sizes and alignments and validate > data after remapping. Also provide total time for remappin

Re: [PATCH 01/11] firmware: arm_scmi: review protocol registration interface

2020-10-14 Thread Florian Fainelli
On 10/14/20 8:05 AM, Cristian Marussi wrote: > Extend common protocol registration routines and provide some new generic > protocols' init/deinit helpers that tracks protocols' users and automatically > perform the proper initialization/de-initialization on demand. > > Convert all protocols to use

Re: [PATCH v5 3/5] counter: Add character device interface

2020-10-14 Thread William Breathitt Gray
On Wed, Oct 14, 2020 at 12:43:08PM -0500, David Lechner wrote: > On 9/26/20 9:18 PM, William Breathitt Gray wrote: > > diff --git a/drivers/counter/counter-chrdev.c > > b/drivers/counter/counter-chrdev.c > > new file mode 100644 > > index ..2be3846e4105 > > --- /dev/null > > +++ b/driv

Re: [PATCH] NFS: Fix mode bits and nlink count for v4 referral dirs

2020-10-14 Thread Ashish Sangwan
On Wed, Oct 14, 2020 at 11:47 PM Trond Myklebust wrote: > > On Tue, 2020-10-06 at 08:14 -0700, Ashish Sangwan wrote: > > Request for mode bits and nlink count in the nfs4_get_referral call > > and if server returns them use them instead of hard coded values. > > > > CC: sta...@vger.kernel.org > >

[RFC PATCH] mm: memcg/slab: Stop reparented obj_cgroups from charging root

2020-10-14 Thread Richard Palethorpe
SLAB objects which outlive their memcg are moved to their parent memcg where they may be uncharged. However if they are moved to the root memcg, uncharging will result in negative page counter values as root has no page counters. To prevent this, we check whether we are about to uncharge the root

Re: [PATCH v2 2/5] docs: automarkup.py: Fix regexes to solve sphinx 3 warnings

2020-10-14 Thread Jonathan Corbet
On Tue, 13 Oct 2020 23:13:17 + Nícolas F. R. A. Prado wrote: > The warnings were caused by the expressions matching words in the > translated versions of the documentation, since any unicode character > was matched. > > Fix the regular expression by making the C regexes use ASCII I don't qu

[PATCH v3 4/8] of: unittest: Add test for of_dma_get_max_cpu_address()

2020-10-14 Thread Nicolas Saenz Julienne
Introduce a test for of_dma_get_max_cup_address(), it uses the same DT data as the rest of dma-ranges unit tests. Signed-off-by: Nicolas Saenz Julienne --- drivers/of/unittest.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/of/unittest.c b/drivers/of/unittest.

[PATCH v3 8/8] mm: Update DMA zones description

2020-10-14 Thread Nicolas Saenz Julienne
The default behavior for arm64 changed, so reflect that. Signed-off-by: Nicolas Saenz Julienne Acked-by: Catalin Marinas --- include/linux/mmzone.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index fb3bf696c05e..4ee230

[PATCH v3 5/8] dma-direct: Turn zone_dma_bits default value into a define

2020-10-14 Thread Nicolas Saenz Julienne
Set zone_dma_bits default value through a define so as for architectures to be able to override it with their default value. Signed-off-by: Nicolas Saenz Julienne --- include/linux/dma-direct.h | 3 +++ kernel/dma/direct.c| 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --gi

Re: [PATCH 18/20] arch: dts: Fix EHCI/OHCI DT nodes name

2020-10-14 Thread Alexey Brodkin
Hi Sergey, > arch/arc/boot/dts/axs10x_mb.dtsi | 4 ++-- > arch/arc/boot/dts/hsdk.dts | 4 ++-- > arch/arc/boot/dts/vdk_axs10x_mb.dtsi | 2 +- For ARC boards Acked-by: Alexey Brodkin

[PATCH v3 7/8] arm64: mm: Set ZONE_DMA size based on early IORT scan

2020-10-14 Thread Nicolas Saenz Julienne
From: Ard Biesheuvel We recently introduced a 1 GB sized ZONE_DMA to cater for platforms incorporating masters that can address less than 32 bits of DMA, in particular the Raspberry Pi 4, which has 4 or 8 GB of DRAM, but has peripherals that can only address up to 1 GB (and its PCIe host bridge c

[PATCH v3 1/8] arm64: mm: Move reserve_crashkernel() into mem_init()

2020-10-14 Thread Nicolas Saenz Julienne
crashkernel might reserve memory located in ZONE_DMA. We plan to delay ZONE_DMA's initialization after unflattening the devicetree and ACPI's boot table initialization, so move it later in the boot process. Specifically into mem_init(), this is the last place crashkernel will be able to reserve the

[PATCH v3 0/8] arm64: Default to 32-bit wide ZONE_DMA

2020-10-14 Thread Nicolas Saenz Julienne
Using two distinct DMA zones turned out to be problematic. Here's an attempt go back to a saner default. I tested this on both a RPi4 and QEMU. --- Changes since v2: - Introduce Ard's patch - Improve OF dma-ranges parsing function - Add unit test for OF function - Address small changes - Mo

Re: [PATCH v3 03/10] arm64, kfence: enable KFENCE for ARM64

2020-10-14 Thread Marco Elver
On Thu, 8 Oct 2020 at 12:45, Mark Rutland wrote: > On Thu, Oct 08, 2020 at 11:40:52AM +0200, Marco Elver wrote: > > On Thu, 1 Oct 2020 at 19:58, Mark Rutland wrote: > > [...] > > > > > If you need virt_to_page() to work, the address has to be part of the > > > > > linear/direct map. > > [...] > >

[PATCH v3 2/8] arm64: mm: Move zone_dma_bits initialization into zone_sizes_init()

2020-10-14 Thread Nicolas Saenz Julienne
zone_dma_bits's initialization happens earlier that it's actually needed, in arm64_memblock_init(). So move it into the more suitable zone_sizes_init(). Signed-off-by: Nicolas Saenz Julienne --- arch/arm64/mm/init.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/arch/

[PATCH v3 6/8] arm64: mm: Set ZONE_DMA size based on devicetree's dma-ranges

2020-10-14 Thread Nicolas Saenz Julienne
We recently introduced a 1 GB sized ZONE_DMA to cater for platforms incorporating masters that can address less than 32 bits of DMA, in particular the Raspberry Pi 4, which has 4 or 8 GB of DRAM, but has peripherals that can only address up to 1 GB (and its PCIe host bridge can only access the bott

[PATCH v3 3/8] of/address: Introduce of_dma_get_max_cpu_address()

2020-10-14 Thread Nicolas Saenz Julienne
Introduce of_dma_get_max_cpu_address(), which provides the highest CPU physical address addressable by all DMA masters in the system. It's specially useful for setting memory zones sizes at early boot time. Signed-off-by: Nicolas Saenz Julienne --- Changes since v2: - Use PHYS_ADDR_MAX - retu

Re: [PATCH v21 07/12] landlock: Support filesystem access-control

2020-10-14 Thread Mickaël Salaün
On 14/10/2020 20:52, Mickaël Salaün wrote: > > On 14/10/2020 20:07, James Morris wrote: >> On Thu, 8 Oct 2020, Mickaël Salaün wrote: >> >>> +config ARCH_EPHEMERAL_STATES >>> + def_bool n >>> + help >>> + An arch should select this symbol if it does not keep an internal >>> kernel >>> +

Re: [PATCH 6/8] mm, clear_huge_page: use clear_page_uncached() for gigantic pages

2020-10-14 Thread Ankur Arora
On 2020-10-14 8:28 a.m., Ingo Molnar wrote: * Ankur Arora wrote: Uncached writes are suitable for circumstances where the region written to is not expected to be read again soon, or the region written to is large enough that there's no expectation that we will find the writes in the cache. A

Re: [git pull] IOMMU Updates for Linux v5.10

2020-10-14 Thread Linus Torvalds
On Tue, Oct 13, 2020 at 9:04 AM Joerg Roedel wrote: > > there is a minor conflict this time in include/linux/iommu.h which > should be easy to resolve. I would attach my resolution, but somehow git > [show|log] didn't show it to me. So when a resolution takes one side over the other (as opposed t

Re: [git pull] IOMMU Updates for Linux v5.10

2020-10-14 Thread pr-tracker-bot
The pull request you sent on Tue, 13 Oct 2020 18:03:58 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git > tags/iommu-updates-v5.10 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/531d29b0b674036347a04c08c0898ff1aa522180 Thank you! -- Deet-doot-d

Re: [PATCH 02/11] firmware: arm_scmi: hide protocols' private data

2020-10-14 Thread Florian Fainelli
On 10/14/20 8:05 AM, Cristian Marussi wrote: > Protocols private data were meant to be used exclusively by protocol code > but they are currently exposed through the handle, so available also to > SCMI drivers: move them away from handle into instance specific data and > provide internal helpers to

Re: [PATCH v2 5/5] docs: automarkup.py: Allow automatic cross-reference inside C namespace

2020-10-14 Thread Jonathan Corbet
On Wed, 14 Oct 2020 11:56:44 +0200 Mauro Carvalho Chehab wrote: > > To make the first step possible, disable the parallel_read_safe option > > in Sphinx, since the dictionary that maps the files to the C namespaces > > can't be concurrently updated. This unfortunately increases the build > > time

Re: [PATCH 7/8] x86/cpu/intel: enable X86_FEATURE_NT_GOOD on Intel Broadwellx

2020-10-14 Thread Ankur Arora
On 2020-10-14 8:31 a.m., Ingo Molnar wrote: * Ankur Arora wrote: System: Oracle X6-2 CPU: 2 nodes * 10 cores/node * 2 threads/core Intel Xeon E5-2630 v4 (Broadwellx, 6:79:1) Memory: 256 GB evenly split between nodes Microcode:0xb2

[PATCH] ARM: dts: BCM5301X: Linksys EA9500 add port 5 and port 7

2020-10-14 Thread Vivek Unune
Add ports 5 and 7 which are connected to gmac cores 1 & 2. These will be disabled for now. Signed-off-by: Vivek Unune --- .../boot/dts/bcm47094-linksys-panamera.dts| 24 +++ 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/bcm47094-linksys-panamera.dts b/arch

Re: [GIT PULL] iomap: new code for 5.10-rc1

2020-10-14 Thread pr-tracker-bot
The pull request you sent on Tue, 13 Oct 2020 09:41:31 -0700: > git://git.kernel.org/pub/scm/fs/xfs/xfs-linux.git tags/iomap-5.10-merge-4 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/37187df45af7d28d27b5c130c23f407ca9dbefa2 Thank you! -- Deet-doot-dot, I am a bot.

Re: [SUSPECTED SPAM][PATCH 0/2] Remove Xen PVH dependency on PCI

2020-10-14 Thread Jason Andryuk
On Wed, Oct 14, 2020 at 2:04 PM Andrew Cooper wrote: > > On 14/10/2020 18:53, Jason Andryuk wrote: > > A Xen PVH domain doesn't have a PCI bus or devices, > > [*] Yet. :) > > so it doesn't need PCI support built in. > > Untangling the dependences is a good thing, but eventually we plan to > put

Re: [PATCH nf v2] netfilter: conntrack: connection timeout after re-register

2020-10-14 Thread Florian Westphal
Francesco Ruggeri wrote: > On Wed, Oct 14, 2020 at 1:23 AM Florian Westphal wrote: > > > > Pablo Neira Ayuso wrote: > > > Legacy would still be flawed though. > > > > Its fine too, new rule blob gets handled (and match/target checkentry > > called) before old one is dismantled. > > > > We only h

[RFC PATCH 2/3] driver core: add device_links_barrier

2020-10-14 Thread Michael Auchter
Add a barrier to wait for all device_links SRCU sections to complete. Signed-off-by: Michael Auchter --- drivers/base/core.c| 10 ++ include/linux/device.h | 1 + 2 files changed, 11 insertions(+) diff --git a/drivers/base/core.c b/drivers/base/core.c index bb5806a2bd4c..ef4429c4b1

[RFC PATCH 1/3] of: unittest: add test of overlay with devlinks

2020-10-14 Thread Michael Auchter
This adds a unittest to test applying/reverting an overlay that contains a link between two devices. Signed-off-by: Michael Auchter --- drivers/of/unittest-data/Makefile | 1 + drivers/of/unittest-data/overlay_16.dts | 26 + drivers/of/unittest.c

[RFC PATCH 3/3] of: dynamic: add device links barrier before detach

2020-10-14 Thread Michael Auchter
Signed-off-by: Michael Auchter --- drivers/of/dynamic.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/of/dynamic.c b/drivers/of/dynamic.c index 7478bfc8d440..a4e2881524e9 100644 --- a/drivers/of/dynamic.c +++ b/drivers/of/dynamic.c @@ -14,6 +14,7 @@ #include #include #includ

[RFC PATCH 0/3] Fix errors on DT overlay removal with devlinks

2020-10-14 Thread Michael Auchter
After updating to v5.9, I've started seeing errors in the kernel log when using device tree overlays. Specifically, the problem seems to happen when removing a device tree overlay that contains two devices with some dependency between them (e.g., a device that provides a clock and a device that con

Re: Use after free in bcm2835_spi_remove()

2020-10-14 Thread Vladimir Oltean
On Wed, Oct 14, 2020 at 04:09:12PM +0200, Lukas Wunner wrote: > Apparently the problem is that spi_unregister_controller() drops the > last ref on the controller, causing it to be freed, and afterwards we > access the controller's private data, which is part of the same > allocation as struct spi_c

Re: [PATCH 0/2] module: some refactoring in module_sig_check()

2020-10-14 Thread Sergey Shtylyov
On 10/14/20 11:35 AM, Joe Perches wrote: [...] Here are 2 patches against the 'modules-next' branch of Jessica Yu's 'linux.git' repo. I'm doing some little refactoring in module_sig_check()... [1/2] module: merge repetitive strings in module_sig_check() [2/2] module:

Re: [PATCH 0/2] sched/cpupri: Cleanup cpu priority vector handling

2020-10-14 Thread Peter Zijlstra
On Tue, Sep 22, 2020 at 10:39:32AM +0200, Dietmar Eggemann wrote: > Two of the 102 elements of the cpu priority vector, among them the one > for MAX_PRIO (140) representing the IDLE task, are never used. > > Remove them and adapt the cpupri implementation accordingly. > > Dietmar Eggemann (2): >

Re: LPC 2020 Hackroom Session: summary and next steps for isolated user namespaces

2020-10-14 Thread Eric W. Biederman
"Serge E. Hallyn" writes: > On Mon, Oct 12, 2020 at 12:01:09AM -0500, Eric W. Biederman wrote: >> Andy Lutomirski writes: >> >> > On Sun, Oct 11, 2020 at 1:53 PM Josh Triplett >> > wrote: >> >> >> >> On Fri, Oct 09, 2020 at 11:26:06PM -0500, Serge E. Hallyn wrote: >> >> > > 3. Find a way to a

[PATCH 3/2] sched/cpupri: Remap CPUPRI_NORMAL to MAX_RT_PRIO-1

2020-10-14 Thread Peter Zijlstra
This makes the mapping continuous and frees up 100 for other usage. Prev mapping: p->rt_priority p->prio newpri cpupri -1 -1 (CPUPRI_INVALID) 1000 (CPUPRI_NORMAL) 198 981

[PATCH 4/2] sched/cpupri: Add CPUPRI_HIGHER

2020-10-14 Thread Peter Zijlstra
Add CPUPRI_HIGHER above the RT99 priority to denote the CPU is in use by higher priority tasks (specifically deadline). XXX: we should probably drive PUSH-PULL from cpupri, that would automagically result in an RT-PUSH when DL sets cpupri to CPUPRI_HIGHER. Signed-off-by: Peter Zijlstra (Intel)

Re: [PATCH 4/8] x86/asm: add clear_page_nt()

2020-10-14 Thread Borislav Petkov
On Wed, Oct 14, 2020 at 01:32:55AM -0700, Ankur Arora wrote: > This can potentially improve page-clearing bandwidth (see below for > performance numbers for two microarchitectures where it helps and one > where it doesn't) and can help indirectly by consuming less cache > resources. > > Any perfor

Re: [PATCH 5/8] x86/clear_page: add clear_page_uncached()

2020-10-14 Thread Borislav Petkov
On Wed, Oct 14, 2020 at 08:45:37AM -0700, Andy Lutomirski wrote: > On Wed, Oct 14, 2020 at 1:33 AM Ankur Arora wrote: > > > > Define clear_page_uncached() as an alternative_call() to clear_page_nt() > > if the CPU sets X86_FEATURE_NT_GOOD and fallback to clear_page() if it > > doesn't. > > > > Sim

Re: WARN_ONCE triggered: tpm_tis: Add a check for invalid status

2020-10-14 Thread Dirk Gouders
James Bottomley writes: > On Wed, 2020-10-14 at 19:57 +0200, Dirk Gouders wrote: >> On my laptop the check introduced with 55707d531af62b (tpm_tis: Add a >> check for invalid status) triggered the warning (output below). >> >> So, my laptop seems to be a candidate for testing. > > I'm afraid thi

Re: [PATCH] lib: kunit: add test_min_heap test conversion to KUnit

2020-10-14 Thread Peter Zijlstra
On Wed, Oct 14, 2020 at 11:16:10AM -0700, Ian Rogers wrote: > There were some issues in the original patch, they should be easy to > fix. I'm more concerned that Peter's issues are addressed about the > general direction of the patch, verbosity and testing frameworks. I > see Vitor followed up wit

[PATCH v4 0/2] arm64: Add basic support for Kobol's Helios64

2020-10-14 Thread Uwe Kleine-König
Hello, in v3 Johan still found some inconsistencies in how I sorted (or didn't sort) the device tree properties. The rules I applied now are: at the beginning of a node: compatible, reg and interrupt stuff status and #* at the end i2c-scl-rising-time-ns before i2c-scl-fall

[PATCH v4 1/2] dt-bindings: vendor-prefixes: Add kobol prefix

2020-10-14 Thread Uwe Kleine-König
The prefix is already used in arm/armada-388-helios4.dts. Signed-off-by: Uwe Kleine-König --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/v

[PATCH v4 2/2] arm64: dts: rockchip: Add basic support for Kobol's Helios64

2020-10-14 Thread Uwe Kleine-König
The hardware is described in detail on Kobol's wiki at https://wiki.kobol.io/helios64/intro/. Up to now the following peripherals are working: - UART - Micro-SD card - eMMC - ethernet port 1 - status LED - temperature sensor on i2c bus 2 Signed-off-by: Uwe Kleine-König --- arch/arm64/boo

Re: [PATCH] lib: kunit: add test_min_heap test conversion to KUnit

2020-10-14 Thread Vitor Massaru Iha
On Wed, Oct 14, 2020 at 5:00 PM Peter Zijlstra wrote: > > On Wed, Oct 14, 2020 at 11:16:10AM -0700, Ian Rogers wrote: > > > There were some issues in the original patch, they should be easy to > > fix. I'm more concerned that Peter's issues are addressed about the > > general direction of the patc

Re: [PATCH 20/20] arch: dts: Fix DWC USB3 DT nodes name

2020-10-14 Thread Krzysztof Kozlowski
On Wed, 14 Oct 2020 at 19:16, Serge Semin wrote: > > On Wed, Oct 14, 2020 at 12:33:25PM +0200, Krzysztof Kozlowski wrote: > > On Wed, 14 Oct 2020 at 12:23, Serge Semin > > wrote: > > > > > > In accordance with the DWC USB3 bindings the corresponding node name is > > > suppose to comply with Gener

Re: [RFC PATCH] mm: memcg/slab: Stop reparented obj_cgroups from charging root

2020-10-14 Thread Roman Gushchin
Hi Richard! > SLAB objects which outlive their memcg are moved to their parent > memcg where they may be uncharged. However if they are moved to the > root memcg, uncharging will result in negative page counter values as > root has no page counters. > > To prevent this, we check whether we are ab

Re: [PATCH v2 2/5] docs: automarkup.py: Fix regexes to solve sphinx 3 warnings

2020-10-14 Thread Nícolas F . R . A . Prado
On Wed Oct 14, 2020 at 4:11 PM -03, Jonathan Corbet wrote: > > On Tue, 13 Oct 2020 23:13:17 + > Nícolas F. R. A. Prado wrote: > > > The warnings were caused by the expressions matching words in the > > translated versions of the documentation, since any unicode character > > was matched. > > >

kernel panic: Fatal exception (3)

2020-10-14 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:c77fb07f Merge branch 'netlink-export-policy-on-validation.. git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=1722ff0050 kernel config: https://syzkaller.appspot.com/x/.config?x=fa2bf4058104211 dash

Re: [PATCH v2 2/5] docs: automarkup.py: Fix regexes to solve sphinx 3 warnings

2020-10-14 Thread Jonathan Corbet
On Wed, 14 Oct 2020 20:09:10 + Nícolas F. R. A. Prado wrote: > One I had noted down was: > > WARNING: Unparseable C cross-reference: '调用debugfs_rename' > > which I believe occurred in the chinese translation. > > I think the problem is that in chinese there normally isn't space between the

linux-next: Fixes tag needs some work in the f2fs tree

2020-10-14 Thread Stephen Rothwell
Hi all, In commit e965857201e0 ("f2fs: wait for sysfs kobject removal before freeing f2fs_sb_info") Fixes tag Fixes: bf9e697ecd4 ("f2fs: expose features to sysfs entry") has these problem(s): - SHA1 should be at least 12 digits long Can be fixed by setting core.abbrev to 12 (or mor

Re: [PATCH v39 11/24] x86/sgx: Add SGX enclave driver

2020-10-14 Thread Dave Hansen
On 10/8/20 11:44 PM, Jarkko Sakkinen wrote: >> Why is this so special that you need a subdirectory for a single driver >> with a mere 2 device nodes? Do any other misc drivers have a new >> subdirectory in /dev/ for them? > Absolutely nothing as far as I'm concerned. Should have done that > alread

Re: [PATCH 11/20] dt-bindings: usb: dwc3: Add synopsys,dwc3 compatible string

2020-10-14 Thread Krzysztof Kozlowski
On Wed, Oct 14, 2020 at 01:13:53PM +0300, Serge Semin wrote: > The DWC USB3 driver and some DTS files like Exynos 5250, Keystone k2e, etc > expects the DWC USB3 DT node to have the compatible string with the > "synopsys" vendor prefix. Let's add the corresponding compatible string to > the controll

Re: [PATCH 01/11] firmware: arm_scmi: review protocol registration interface

2020-10-14 Thread Sudeep Holla
On Wed, Oct 14, 2020 at 12:03:45PM -0700, Florian Fainelli wrote: > On 10/14/20 8:05 AM, Cristian Marussi wrote: > > Extend common protocol registration routines and provide some new generic > > protocols' init/deinit helpers that tracks protocols' users and > > automatically > > perform the prope

Re: linux-next: Fixes tag needs some work in the f2fs tree

2020-10-14 Thread jaegeuk
Thanks, I fixed it in f2fs-next branch. Thanks, On 10/15, Stephen Rothwell wrote: > Hi all, > > In commit > > e965857201e0 ("f2fs: wait for sysfs kobject removal before freeing > f2fs_sb_info") > > Fixes tag > > Fixes: bf9e697ecd4 ("f2fs: expose features to sysfs entry") > > has these

Re: Use after free in bcm2835_spi_remove()

2020-10-14 Thread Mark Brown
On Wed, Oct 14, 2020 at 10:40:35PM +0300, Vladimir Oltean wrote: > On Wed, Oct 14, 2020 at 04:09:12PM +0200, Lukas Wunner wrote: > > Apparently the problem is that spi_unregister_controller() drops the > > last ref on the controller, causing it to be freed, and afterwards we > > access the control

Re: [PATCH] firmware: arm_scmi: fix notifications locking

2020-10-14 Thread Sudeep Holla
On Tue, 13 Oct 2020 14:31:09 +0100, Cristian Marussi wrote: > When a protocol registers its events the notification core takes care to > re-scan the hashtable of pending event handlers and activate all the > possibly existent handlers that refer to any of the events just registered > by the new pro

Re: [PATCH] firmware: arm_scmi: Fix duplicate workqueue name

2020-10-14 Thread Sudeep Holla
On Tue, 13 Oct 2020 19:17:37 -0700, Florian Fainelli wrote: > When more than a single SCMI device are present in the system, the > creation of the notification workqueue with the WQ_SYSFS flag will lead > to the following sysfs duplicate node warning: > > [9.259990] sysfs: cannot create duplic

[PATCH v2] regmap: mmio: add config option to allow relaxed MMIO accesses

2020-10-14 Thread Adrian Ratiu
On some platforms (eg armv7 due to the CONFIG_ARM_DMA_MEM_BUFFERABLE) MMIO R/W operations always add memory barriers which can increase load, decrease battery life or in general reduce performance unnecessarily on devices which access a lot of configuration registers and where ordering does not mat

[PATCH RFC 3/8] kasan: introduce set_alloc_info

2020-10-14 Thread Andrey Konovalov
Add set_alloc_info() helper and move kasan_set_track() into it. This will simplify the code for one of the upcoming changes. No functional changes. Signed-off-by: Andrey Konovalov Link: https://linux-review.googlesource.com/id/I0316193cbb4ecc9b87b7c2eee0dd79f8ec908c1a --- mm/kasan/common.c | 7

[PATCH RFC 1/8] kasan: simplify quarantine_put call

2020-10-14 Thread Andrey Konovalov
Move get_free_info() call into quarantine_put() to simplify the call site. No functional changes. Signed-off-by: Andrey Konovalov Link: https://linux-review.googlesource.com/id/Iab0f04e7ebf8d83247024b7190c67c3c34c7940f --- mm/kasan/common.c | 2 +- mm/kasan/kasan.h | 5 ++--- mm/kasan

[PATCH RFC 0/8] kasan: hardware tag-based mode for production use on arm64

2020-10-14 Thread Andrey Konovalov
This patchset is not complete (see particular TODOs in the last patch), and I haven't performed any benchmarking yet, but I would like to start the discussion now and hear people's opinions regarding the questions mentioned below. === Overview This patchset adopts the existing hardware tag-based

[PATCH RFC 2/8] kasan: rename get_alloc/free_info

2020-10-14 Thread Andrey Konovalov
Rename get_alloc_info() and get_free_info() to kasan_get_alloc_meta() and kasan_get_free_meta() to better reflect what those do, and avoid confusion with kasan_set_free_info(). No functional changes. Signed-off-by: Andrey Konovalov Link: https://linux-review.googlesource.com/id/Ib6e4ba61c8b1211

[PATCH RFC 5/8] kasan: mark kasan_init_tags as __init

2020-10-14 Thread Andrey Konovalov
Similarly to kasan_init() mark kasan_init_tags() as __init. Signed-off-by: Andrey Konovalov Link: https://linux-review.googlesource.com/id/I8792e22f1ca5a703c5e979969147968a99312558 --- include/linux/kasan.h | 4 ++-- mm/kasan/hw_tags.c| 2 +- mm/kasan/sw_tags.c| 2 +- 3 files changed, 4

[PATCH RFC 4/8] kasan: unpoison stack only with CONFIG_KASAN_STACK

2020-10-14 Thread Andrey Konovalov
There's a config option CONFIG_KASAN_STACK that has to be enabled for KASAN to use stack instrumentation and perform validity checks for stack variables. There's no need to unpoison stack when CONFIG_KASAN_STACK is not enabled. Only call kasan_unpoison_task_stack[_below]() when CONFIG_KASAN_STACK

[PATCH RFC 8/8] kasan: add and integrate kasan_mode boot param

2020-10-14 Thread Andrey Konovalov
TODO: no meaningful description here yet, please see the cover letter for this RFC series. Signed-off-by: Andrey Konovalov Link: https://linux-review.googlesource.com/id/If7d37003875b2ed3e0935702c8015c223d6416a4 --- mm/kasan/common.c | 69 +- m

[PATCH RFC 7/8] arm64: kasan: Add system_supports_tags helper

2020-10-14 Thread Andrey Konovalov
Add a helper that exposes information about whether the system supports memory tagging to be called in generic code. Signed-off-by: Andrey Konovalov Link: https://linux-review.googlesource.com/id/Ib4b56a42c57c6293df29a0cdfee334c3ca7bdab4 --- arch/arm64/include/asm/memory.h | 1 + mm/kasan/kasan

[PATCH RFC 6/8] kasan, arm64: move initialization message

2020-10-14 Thread Andrey Konovalov
Tag-based KASAN modes are initialized with kasan_init_tags() instead of kasan_init() for the generic mode. Move the initialization message for tag-based modes into kasan_init_tags(). Also fix pr_fmt() usage for KASAN code: generic mode doesn't need it, tag-based modes should use "kasan:" instead o

[PATCH] fs: fix NULL dereference due to data race in prepend_path()

2020-10-14 Thread Andrii Nakryiko
Fix data race in prepend_path() with re-reading mnt->mnt_ns twice without holding the lock. is_mounted() does check for NULL, but is_anon_ns(mnt->mnt_ns) might re-read the pointer again which could be NULL already, if in between reads one of kern_unmount()/kern_unmount_array()/umount_tree() sets mn

Re: [PATCH v21 07/12] landlock: Support filesystem access-control

2020-10-14 Thread James Morris
On Wed, 14 Oct 2020, Mickaël Salaün wrote: > > On 14/10/2020 20:52, Mickaël Salaün wrote: > > > > On 14/10/2020 20:07, James Morris wrote: > >> On Thu, 8 Oct 2020, Mickaël Salaün wrote: > >> > >>> +config ARCH_EPHEMERAL_STATES > >>> + def_bool n > >>> + help > >>> + An arch should select this

RE: [PATCH][next] ACPICA: Use fallthrough pseudo-keyword

2020-10-14 Thread Moore, Robert
I'm afraid that the macro does not compile under MSVC: warning C4067: unexpected tokens following preprocessor directive - expected a newline (compiling source file ..\..\source\tools\acpiexec\aetests.c) It looks like "__has_attribute" is not supported. -Original Message- From: Joe Per

Re: [PATCH 0/2] module: some refactoring in module_sig_check()

2020-10-14 Thread Joe Perches
On Wed, 2020-10-14 at 22:44 +0300, Sergey Shtylyov wrote: > On 10/14/20 11:35 AM, Joe Perches wrote: > > [...] > > > > > Here are 2 patches against the 'modules-next' branch of Jessica Yu's > > > > > 'linux.git' repo. > > > > > I'm doing some little refactoring in module_sig_check()... > > > > >

[GIT PULL] xfs: new code for 5.10, part 1

2020-10-14 Thread Darrick J. Wong
Hi Linus, Please pull this first large pile of new stuff for 5.10. The biggest changes are two new features for the ondisk metadata: one to record the sizes of the inode btrees in the AG to increase redundancy checks and to improve mount times; and a second new feature to support timestamps until

Re: [PATCH] MIPS: DEC: Restore bootmem reservation for firmware working memory area

2020-10-14 Thread Maciej W. Rozycki
Hello Serge, > > @@ -146,6 +150,9 @@ void __init plat_mem_setup(void) > > > > ioport_resource.start = ~0UL; > > ioport_resource.end = 0UL; > > + > > + /* Stay away from the firmware working memory area for now. */ > > > + memblock_reserve(PHYS_OFFSET, __pa_symbol(&_text)); > > Shou

Re: [PATCH 5/8] x86/clear_page: add clear_page_uncached()

2020-10-14 Thread Ankur Arora
On 2020-10-14 8:45 a.m., Andy Lutomirski wrote: On Wed, Oct 14, 2020 at 1:33 AM Ankur Arora wrote: Define clear_page_uncached() as an alternative_call() to clear_page_nt() if the CPU sets X86_FEATURE_NT_GOOD and fallback to clear_page() if it doesn't. Similarly define clear_page_uncached_flus

Re: [PATCH 4/8] x86/asm: add clear_page_nt()

2020-10-14 Thread Ankur Arora
On 2020-10-14 12:56 p.m., Borislav Petkov wrote: On Wed, Oct 14, 2020 at 01:32:55AM -0700, Ankur Arora wrote: This can potentially improve page-clearing bandwidth (see below for performance numbers for two microarchitectures where it helps and one where it doesn't) and can help indirectly by con

Re: [PATCH 5/8] x86/clear_page: add clear_page_uncached()

2020-10-14 Thread Borislav Petkov
On Wed, Oct 14, 2020 at 02:07:30PM -0700, Andy Lutomirski wrote: > I assume it’s for a little optimization of clearing more than one > page per SFENCE. > > In any event, based on the benchmark data upthread, we only want to do > NT clears when they’re rather large, so this shouldn’t be just an > al

Re: [PATCH][next] ACPICA: Use fallthrough pseudo-keyword

2020-10-14 Thread Joe Perches
On Wed, 2020-10-14 at 20:48 +, Moore, Robert wrote: > I'm afraid that the macro does not compile under MSVC: > > warning C4067: unexpected tokens following preprocessor directive - expected > a newline (compiling source file ..\..\source\tools\acpiexec\aetests.c) > > It looks like "__has_at

[PATCH] checkpatch: add a fixer for missing newline at eof

2020-10-14 Thread trix
From: Tom Rix Remove the trailing error message from the fixed lines Signed-off-by: Tom Rix --- scripts/checkpatch.pl | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index fab38b493cef..7d3db096bc44 100755 --- a/scripts/c

[PATCH] drm/amdgpu: add missing newline at eof

2020-10-14 Thread trix
From: Tom Rix Representative checkpatch.pl warning WARNING: adding a line without newline at end of file 30: FILE: drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.h:30: +#endif Signed-off-by: Tom Rix --- drivers/gpu/drm/amd/include/asic_reg/gc/gc_9_4_1_sh_mask.h | 2 +- drivers/gpu/drm/amd/pm

Re: [PATCH 18/20] arch: dts: Fix EHCI/OHCI DT nodes name

2020-10-14 Thread Serge Semin
On Wed, Oct 14, 2020 at 11:41:17AM -0700, Florian Fainelli wrote: > On 10/14/20 11:11 AM, Serge Semin wrote: > > On Wed, Oct 14, 2020 at 11:00:45AM -0700, Florian Fainelli wrote: > >> On 10/14/20 3:14 AM, Serge Semin wrote: > >>> In accordance with the Generic EHCI/OHCI bindings the corresponding n

Re: [PATCH 20/20] arch: dts: Fix DWC USB3 DT nodes name

2020-10-14 Thread Serge Semin
On Wed, Oct 14, 2020 at 01:35:16PM -0500, Rob Herring wrote: > On Wed, Oct 14, 2020 at 9:37 AM Serge Semin > wrote: > > > > On Wed, Oct 14, 2020 at 05:09:37PM +0300, Felipe Balbi wrote: > > > > > > Hi Serge, > > > > > > Serge Semin writes: > > > > In accordance with the DWC USB3 bindings the corr

Re: [PATCH 1/2] mm/mprotect: Call arch_validate_prot under mmap_lock and with length

2020-10-14 Thread Khalid Aziz
On 10/13/20 3:16 AM, Catalin Marinas wrote: > On Mon, Oct 12, 2020 at 01:14:50PM -0600, Khalid Aziz wrote: >> On 10/12/20 11:22 AM, Catalin Marinas wrote: >>> On Mon, Oct 12, 2020 at 11:03:33AM -0600, Khalid Aziz wrote: On 10/10/20 5:09 AM, Catalin Marinas wrote: > On Wed, Oct 07, 2020 at

Re: [PATCH v2 0/2] Some small cleanup/fixes for SPMI driver

2020-10-14 Thread Stephen Boyd
Quoting Greg Kroah-Hartman (2020-10-03 03:56:53) > On Fri, Oct 02, 2020 at 02:22:17PM -0700, Stephen Boyd wrote: > > Quoting Mauro Carvalho Chehab (2020-09-28 23:22:11) > > > Hi Stephen, > > > > > > While double-checking against yesterday's linux-next, I noticed > > > that those two patches weren'

[PATCH] compiler.h: Fix barrier_data() on clang

2020-10-14 Thread Arvind Sankar
Commit 815f0ddb346c ("include/linux/compiler*.h: make compiler-*.h mutually exclusive") neglected to copy barrier_data() from compiler-gcc.h into compiler-clang.h. The definition in compiler-gcc.h was really to work around clang's more aggressive optimization, so this broke barrier_data() on cl

[PATCH] reboot: fix parsing of reboot cpu number

2020-10-14 Thread Matteo Croce
From: Matteo Croce The kernel cmdline reboot= argument allows to specify the CPU used for rebooting, with the syntax `s` among the other flags, e.g. reboot=soft,s4 reboot=warm,s31,force In the early days the parsing was done with simple_strtoul(), later deprecated in favor of the safer

Backing up the PGP master key

2020-10-14 Thread Jarkko Sakkinen
Konstantin, writing to you based on 'git blame' :-) The maintainer guide recommends using paperkey for the PGP master key, which is a prefectly sane method. I was just wondering that isn't a backup to a USB stick a reasonable option? E.g. get a few USB sticks (new, unweared), store your master ke

Re: [PATCH 11/20] dt-bindings: usb: dwc3: Add synopsys,dwc3 compatible string

2020-10-14 Thread Serge Semin
On Wed, Oct 14, 2020 at 10:18:18PM +0200, Krzysztof Kozlowski wrote: > On Wed, Oct 14, 2020 at 01:13:53PM +0300, Serge Semin wrote: > > The DWC USB3 driver and some DTS files like Exynos 5250, Keystone k2e, etc > > expects the DWC USB3 DT node to have the compatible string with the > > "synopsys" v

[PATCH v2] MIPS: DEC: Restore bootmem reservation for firmware working memory area

2020-10-14 Thread Maciej W. Rozycki
Fix a crash on DEC platforms starting with: VFS: Mounted root (nfs filesystem) on device 0:11. Freeing unused PROM memory: 124k freed BUG: Bad page state in process swapper pfn:1 page:(ptrval) refcount:0 mapcount:-128 mapping: index:0x1 pfn:0x1 flags: 0x0() raw: 0100

[PATCH 1/2] nvmem: core: extract function to add cell from OF

2020-10-14 Thread Michael Auchter
Extract the logic needed to add a single cell described by a device tree node from nvmem_add_cells_from_of, and call this new function for each child node. Signed-off-by: Michael Auchter --- drivers/nvmem/core.c | 84 +--- 1 file changed, 48 insertions(+),

[PATCH 0/2] nvmem: add DT overlay support for cells

2020-10-14 Thread Michael Auchter
This patchset adds the ability to add/remove nvmem cells to an nvmem device using device tree overlays. This can be useful in situations where an nvmem device is present in the base device tree and the specific overlay that's loaded knows how to interpret the data within the nvmem device. Michael

[PATCH 2/2] nvmem: core: add OF_RECONFIG handler for nvmem cells

2020-10-14 Thread Michael Auchter
CONFIG_OF_DYNAMIC allows runtime changes to the device tree. This patch adds a OF_RECONFIG handler to receive notifications on tree changes to support adding/removing cells from an nvmem device based on these changes. Signed-off-by: Michael Auchter --- drivers/nvmem/core.c | 61 +

Re: [GIT PULL] thread changes for v5.10

2020-10-14 Thread pr-tracker-bot
The pull request you sent on Wed, 14 Oct 2020 10:59:48 +0200: > g...@gitolite.kernel.org:pub/scm/linux/kernel/git/brauner/linux > tags/threads-v5.10 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/4da9af0014b51c8b015ed8c622440ef28912efe6 Thank you! -- Deet-doot-dot,

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