Re: [PATCH v8 01/16] tracing: move function tracer options to Kconfig

2020-12-01 Thread Steven Rostedt
On Tue, 1 Dec 2020 13:36:52 -0800 Sami Tolvanen wrote: > Move function tracer options to Kconfig to make it easier to add > new methods for generating __mcount_loc, and to make the options > available also when building kernel modules. > > Note that FTRACE_MCOUNT_USE_* options are updated on

[PATCH] mm/vmalloc: randomize vmalloc() allocations

2020-12-01 Thread Topi Miettinen
Memory mappings inside kernel allocated with vmalloc() are in predictable order and packed tightly toward the low addresses. With new kernel boot parameter 'randomize_vmalloc=1', the entire area is used randomly to make the allocations less predictable and harder to guess for attackers. Without

Re: [RESEND PATCH v3 0/4] iommu/iova: Solve longterm IOVA issue

2020-12-01 Thread Will Deacon
On Tue, 17 Nov 2020 18:25:30 +0800, John Garry wrote: > This series contains a patch to solve the longterm IOVA issue which > leizhen originally tried to address at [0]. > > A sieved kernel log is at the following, showing periodic dumps of IOVA > sizes, per CPU and per depot bin, per IOVA size

Re: [PATCH bpf-next] kbuild: Restore ability to build out-of-tree modules

2020-12-01 Thread Andrii Nakryiko
On Tue, Dec 1, 2020 at 11:32 AM Leon Romanovsky wrote: > > On Tue, Dec 01, 2020 at 10:01:23AM -0800, Andrii Nakryiko wrote: > > On Tue, Dec 1, 2020 at 6:37 AM Leon Romanovsky wrote: > > > > > > From: Leon Romanovsky > > > > > > The out-of-tree modules are built without vmlinux target and

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

2020-12-01 Thread Stephen Rothwell
Hi Jens, On Tue, 1 Dec 2020 14:09:24 -0700 Jens Axboe wrote: > > On 12/1/20 2:02 PM, Stephen Rothwell wrote: > > > > In commit > > > > 573cc9d095bc ("blk-cgroup: fix a hd_struct leak in > > blkcg_fill_root_iostats") > > > > Fixes tag > > > > Fixes: ef45fe470e1 ("blk-cgroup: show global

Re: linux-next: Tree for Dec 1 [crypto/aegis128.ko]

2020-12-01 Thread Randy Dunlap
On 12/1/20 1:37 PM, Randy Dunlap wrote: > On 12/1/20 1:29 PM, Ard Biesheuvel wrote: >> On Tue, 1 Dec 2020 at 20:53, Randy Dunlap wrote: >>> >>> On 12/1/20 2:03 AM, Stephen Rothwell wrote: Hi all, Changes since 20201130: >>> >>> on i386 or x86_64: >>> >>>

Re: [PATCH 5.9 000/152] 5.9.12-rc1 review

2020-12-01 Thread Guenter Roeck
On Tue, Dec 01, 2020 at 09:51:55AM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.9.12 release. > There are 152 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH 4.14 00/50] 4.14.210-rc1 review

2020-12-01 Thread Guenter Roeck
On Tue, Dec 01, 2020 at 09:52:59AM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.210 release. > There are 50 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

[PATCH v8 16/16] arm64: allow LTO to be selected

2020-12-01 Thread Sami Tolvanen
Allow CONFIG_LTO_CLANG to be enabled. Signed-off-by: Sami Tolvanen Reviewed-by: Kees Cook Acked-by: Will Deacon --- arch/arm64/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index c7f07978f5b6..9d29c48ecd4f 100644 --- a/arch/arm64/Kconfig

Re: [PATCH 4.9 00/42] 4.9.247-rc1 review

2020-12-01 Thread Guenter Roeck
On Tue, Dec 01, 2020 at 09:52:58AM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.247 release. > There are 42 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH v7 00/17] Add support for Clang LTO

2020-12-01 Thread Sami Tolvanen
On Tue, Dec 1, 2020 at 11:51 AM 'Nick Desaulniers' via Clang Built Linux wrote: > > On Tue, Dec 1, 2020 at 9:31 AM Kees Cook wrote: > > > > On Mon, Nov 30, 2020 at 12:01:31PM +, Will Deacon wrote: > > > Hi Sami, > > > > > > On Wed, Nov 18, 2020 at 02:07:14PM -0800, Sami Tolvanen wrote: > > >

Re: [RFC] ACPI PM during kernel poweroff/reboot

2020-12-01 Thread Furquan Shaikh
On Wed, Nov 25, 2020 at 10:29 AM Furquan Shaikh wrote: > > On Wed, Nov 25, 2020 at 9:51 AM Rafael J. Wysocki wrote: > > > > On Wed, Nov 25, 2020 at 6:43 PM Furquan Shaikh wrote: > > > > > > On Wed, Nov 25, 2020 at 8:39 AM Rafael J. Wysocki > > > wrote: > > > > > > > > On Thu, Nov 12, 2020 at

[PATCH v8 13/16] drivers/misc/lkdtm: disable LTO for rodata.o

2020-12-01 Thread Sami Tolvanen
Disable LTO for rodata.o to allow objcopy to be used to manipulate sections. Signed-off-by: Sami Tolvanen Acked-by: Kees Cook --- drivers/misc/lkdtm/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/misc/lkdtm/Makefile b/drivers/misc/lkdtm/Makefile index

[PATCH v8 15/16] arm64: disable recordmcount with DYNAMIC_FTRACE_WITH_REGS

2020-12-01 Thread Sami Tolvanen
DYNAMIC_FTRACE_WITH_REGS uses -fpatchable-function-entry, which makes running recordmcount unnecessary as there are no mcount calls in object files, and __mcount_loc doesn't need to be generated. While there's normally no harm in running recordmcount even when it's not strictly needed, this won't

[PATCH v8 14/16] arm64: vdso: disable LTO

2020-12-01 Thread Sami Tolvanen
Disable LTO for the vDSO by filtering out CC_FLAGS_LTO, as there's no point in using link-time optimization for the small amount of C code. Signed-off-by: Sami Tolvanen Reviewed-by: Kees Cook Acked-by: Will Deacon --- arch/arm64/kernel/vdso/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1

[PATCH v8 12/16] efi/libstub: disable LTO

2020-12-01 Thread Sami Tolvanen
With CONFIG_LTO_CLANG, we produce LLVM bitcode instead of ELF object files. Since LTO is not really needed here and the Makefile assumes we produce an object file, disable LTO for libstub. Signed-off-by: Sami Tolvanen Reviewed-by: Kees Cook --- drivers/firmware/efi/libstub/Makefile | 2 ++ 1

[PATCH v8 11/16] scripts/mod: disable LTO for empty.c

2020-12-01 Thread Sami Tolvanen
With CONFIG_LTO_CLANG, clang generates LLVM IR instead of ELF object files. As empty.o is used for probing target properties, disable LTO for it to produce an object file instead. Signed-off-by: Sami Tolvanen Reviewed-by: Kees Cook --- scripts/mod/Makefile | 1 + 1 file changed, 1 insertion(+)

Re: [PATCH 4.4 00/24] 4.4.247-rc1 review

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

[PATCH v8 09/16] PCI: Fix PREL32 relocations for LTO

2020-12-01 Thread Sami Tolvanen
With Clang's Link Time Optimization (LTO), the compiler can rename static functions to avoid global naming collisions. As PCI fixup functions are typically static, renaming can break references to them in inline assembly. This change adds a global stub to DECLARE_PCI_FIXUP_SECTION to fix the issue

[PATCH v8 10/16] modpost: lto: strip .lto from module names

2020-12-01 Thread Sami Tolvanen
With LTO, everything is compiled into LLVM bitcode, so we have to link each module into native code before modpost. Kbuild uses the .lto.o suffix for these files, which also ends up in module information. This change strips the unnecessary .lto suffix from the module name. Suggested-by: Bill

[PATCH v8 07/16] init: lto: ensure initcall ordering

2020-12-01 Thread Sami Tolvanen
With LTO, the compiler doesn't necessarily obey the link order for initcalls, and initcall variables need globally unique names to avoid collisions at link time. This change exports __KBUILD_MODNAME and adds the initcall_id() macro, which uses it together with __COUNTER__ and __LINE__ to help

[PATCH v8 08/16] init: lto: fix PREL32 relocations

2020-12-01 Thread Sami Tolvanen
With LTO, the compiler can rename static functions to avoid global naming collisions. As initcall functions are typically static, renaming can break references to them in inline assembly. This change adds a global stub with a stable name for each initcall to fix the issue when PREL32 relocations

[PATCH v8 05/16] kbuild: lto: merge module sections

2020-12-01 Thread Sami Tolvanen
LLD always splits sections with LTO, which increases module sizes. This change adds linker script rules to merge the split sections in the final module. Suggested-by: Nick Desaulniers Signed-off-by: Sami Tolvanen Reviewed-by: Kees Cook --- scripts/module.lds.S | 24 1

[PATCH v8 06/16] kbuild: lto: remove duplicate dependencies from .mod files

2020-12-01 Thread Sami Tolvanen
With LTO, llvm-nm prints out symbols for each archive member separately, which results in a lot of duplicate dependencies in the .mod file when CONFIG_TRIM_UNUSED_SYMS is enabled. When a module consists of several compilation units, the output can exceed the default xargs command size limit and

[PATCH v8 04/16] kbuild: lto: limit inlining

2020-12-01 Thread Sami Tolvanen
This change limits function inlining across translation unit boundaries in order to reduce the binary size with LTO. The -import-instr-limit flag defines a size limit, as the number of LLVM IR instructions, for importing functions from other TUs, defaulting to 100. Based on testing with arm64

[PATCH v8 03/16] kbuild: lto: fix module versioning

2020-12-01 Thread Sami Tolvanen
With CONFIG_MODVERSIONS, version information is linked into each compilation unit that exports symbols. With LTO, we cannot use this method as all C code is compiled into LLVM bitcode instead. This change collects symbol versions into .symversions files and merges them in link-vmlinux.sh where

Re: linux-next: Tree for Dec 1 [crypto/aegis128.ko]

2020-12-01 Thread Randy Dunlap
On 12/1/20 1:29 PM, Ard Biesheuvel wrote: > On Tue, 1 Dec 2020 at 20:53, Randy Dunlap wrote: >> >> On 12/1/20 2:03 AM, Stephen Rothwell wrote: >>> Hi all, >>> >>> Changes since 20201130: >>> >> >> on i386 or x86_64: >> >> CONFIG_CRYPTO_AEGIS128=m >> CONFIG_CRYPTO_AEGIS128_AESNI_SSE2=y >> >> >>

[PATCH v8 01/16] tracing: move function tracer options to Kconfig

2020-12-01 Thread Sami Tolvanen
Move function tracer options to Kconfig to make it easier to add new methods for generating __mcount_loc, and to make the options available also when building kernel modules. Note that FTRACE_MCOUNT_USE_* options are updated on rebuild and therefore, work even if the .config was generated in a

[PATCH v8 02/16] kbuild: add support for Clang LTO

2020-12-01 Thread Sami Tolvanen
This change adds build system support for Clang's Link Time Optimization (LTO). With -flto, instead of ELF object files, Clang produces LLVM bitcode, which is compiled into native code at link time, allowing the final binary to be optimized globally. For more details, see:

[PATCH v8 00/16] Add support for Clang LTO

2020-12-01 Thread Sami Tolvanen
This patch series adds support for building the kernel with Clang's Link Time Optimization (LTO). In addition to performance, the primary motivation for LTO is to allow Clang's Control-Flow Integrity (CFI) to be used in the kernel. Google has shipped millions of Pixel devices running three major

Re: [PATCH v2] mm: mmap_lock: fix use-after-free race and css ref leak in tracepoints

2020-12-01 Thread Steven Rostedt
On Tue, 1 Dec 2020 16:28:47 -0500 Steven Rostedt wrote: > On Tue, 1 Dec 2020 12:32:49 -0800 > Axel Rasmussen wrote: > > > +/* Called with reg_lock held. */ > > The above comment is reduntant, as the lockdep_is_held() below also suggest > that it is ;-) > > > > static inline char

Re: [PATCH] mm: Don't fault around userfaultfd-registered regions on reads

2020-12-01 Thread Hugh Dickins
On Sat, 28 Nov 2020, Peter Xu wrote: > On Fri, Nov 27, 2020 at 07:33:39PM -0500, Andrea Arcangeli wrote: > > > Now it would be ok if filemap_map_pages re-filled the ptes, after they > > were zapped the first time by fallocate, and then the fallocate would > > zap them again before truncating the

[PATCH] drivers: core: Detach device from power domain on shutdown

2020-12-01 Thread Furquan Shaikh
When the system is powered off or rebooted, devices are not detached from their PM domain. This results in ACPI PM not being invoked and hence PowerResouce _OFF method not being invoked for any of the devices. Because the ACPI power resources are not turned off in case of poweroff and reboot, it

Re: linux-next: Tree for Dec 1 [crypto/aegis128.ko]

2020-12-01 Thread Ard Biesheuvel
On Tue, 1 Dec 2020 at 20:53, Randy Dunlap wrote: > > On 12/1/20 2:03 AM, Stephen Rothwell wrote: > > Hi all, > > > > Changes since 20201130: > > > > on i386 or x86_64: > > CONFIG_CRYPTO_AEGIS128=m > CONFIG_CRYPTO_AEGIS128_AESNI_SSE2=y > > > ERROR: modpost: "crypto_aegis128_update_simd"

Re: [PATCH 6/8] lazy tlb: shoot lazies, a non-refcounting lazy tlb option

2020-12-01 Thread Will Deacon
On Mon, Nov 30, 2020 at 10:31:51AM -0800, Andy Lutomirski wrote: > other arch folk: there's some background here: > > https://lkml.kernel.org/r/calcetrvxube8lfnn-qs+dzroqaiw+sfug1j047ybyv31sat...@mail.gmail.com > > On Sun, Nov 29, 2020 at 12:16 PM Andy Lutomirski wrote: > > > > On Sat, Nov 28,

Re: [PATCH v2] mm: mmap_lock: fix use-after-free race and css ref leak in tracepoints

2020-12-01 Thread Steven Rostedt
On Tue, 1 Dec 2020 12:32:49 -0800 Axel Rasmussen wrote: > +/* Called with reg_lock held. */ The above comment is reduntant, as the lockdep_is_held() below also suggest that it is ;-) > +static void free_memcg_path_bufs(void) > +{ > + int cpu; > + char *old; > + > +

Re: [PATCH v2 1/3] Revert "perf session: Fix decompression of PERF_RECORD_COMPRESSED records"

2020-12-01 Thread Alexei Budankov
Eventually sending to the proper Alexey's address. On 02.12.2020 0:04, Alexei Budankov wrote: > > On 01.12.2020 22:09, Jiri Olsa wrote: >> On Mon, Nov 30, 2020 at 12:40:20PM +0100, Petr Malat wrote: >>> Hi Jiří, >>> were you able to reproduce the issue? I may also upload perf-archive >>> if

Re: SECCOMP_IOCTL_NOTIF_ADDFD race condition

2020-12-01 Thread Kees Cook
On Tue, Dec 01, 2020 at 08:13:34AM -0500, Tycho Andersen wrote: > On Tue, Dec 01, 2020 at 01:08:25PM +, Sargun Dhillon wrote: > > On Tue, Dec 01, 2020 at 07:41:05AM -0500, Tycho Andersen wrote: > > > On Mon, Nov 30, 2020 at 06:20:09PM -0500, Tycho Andersen wrote: > > > > Idea 1 sounds best to

[v3 PATCH] mm: list_lru: set shrinker map bit when child nr_items is not zero

2020-12-01 Thread Yang Shi
When investigating a slab cache bloat problem, significant amount of negative dentry cache was seen, but confusingly they neither got shrunk by reclaimer (the host has very tight memory) nor be shrunk by dropping cache. The vmcore shows there are over 14M negative dentry objects on lru, but

Re: [PATCH -next v2] firmware: xilinx: Mark pm_api_features_map with static keyword

2020-12-01 Thread Greg KH
On Tue, Dec 01, 2020 at 01:03:59PM +0100, Michal Simek wrote: > > > On 01. 12. 20 12:51, Zou Wei wrote: > > Fix the following sparse warning: > > > > drivers/firmware/xilinx/zynqmp.c:32:1: warning: symbol > > 'pm_api_features_map' was not declared. Should it be static? > > > > Signed-off-by:

Re: [PATCH 1/3] intel-hid: add support for SW_TABLET_MODE

2020-12-01 Thread Hans de Goede
Hi Elia, Thank you for your patch series. I'm fraid that always enabling this on devices with a chassis_type of 31 is not a good idea though. Many 360 degree hinges (yoga) style 2-in-1s use 2 accelerometers to tell the angle between the 2 halves; and they rely on a HingleAngleService process

Re: [RFC PATCH 01/13] fs/userfaultfd: fix wrong error code on WP & !VM_MAYWRITE

2020-12-01 Thread Mike Kravetz
On 11/28/20 4:45 PM, Nadav Amit wrote: > From: Nadav Amit > > It is possible to get an EINVAL error instead of EPERM if the following > test vm_flags have VM_UFFD_WP but do not have VM_MAYWRITE, as "ret" is > overwritten since commit cab350afcbc9 ("userfaultfd: hugetlbfs: allow > registration of

Re: [RFC 2/2] MAINTAINERS: add a limited ARM and ARM64 SoC entry

2020-12-01 Thread Krzysztof Kozlowski
On Tue, Dec 01, 2020 at 11:15:16PM +0200, Krzysztof Kozlowski wrote: > It is expected for ARM and ARM64 SoC related code to go through > sub-architecture maintainers. Their addresses were therefore not I reshaped my message last moment and missed that it does not make sense anymore... It should

Re: WARNING: filesystem loop5 was created with 512 inodes, the real maximum is 511, mounting anyway

2020-12-01 Thread Randy Dunlap
On 11/30/20 11:47 PM, Dmitry Vyukov wrote: > On Tue, Dec 1, 2020 at 2:03 AM Randy Dunlap wrote: >> >> On 11/30/20 12:43 AM, Dmitry Vyukov wrote: >>> On Mon, Nov 30, 2020 at 5:29 AM Randy Dunlap wrote: On 11/27/20 4:32 AM, syzbot wrote: > Hello, > > syzbot found the

Re: [PATCH 1/5] ARM: configs: drop unused BACKLIGHT_GENERIC option

2020-12-01 Thread Krzysztof Kozlowski
On Tue, Dec 01, 2020 at 04:50:22PM +0100, Arnd Bergmann wrote: > On Tue, Dec 1, 2020 at 4:41 PM Alexandre Belloni > wrote: > > On 01/12/2020 14:40:53+, Catalin Marinas wrote: > > > On Mon, Nov 30, 2020 at 07:50:25PM +, ZHIZHIKIN Andrey wrote: > > > > From Krzysztof Kozlowski : > > > > I

Re: [PATCH v5 14/16] selftests: kselftest_harness.h: partially fix kernel-doc markups

2020-12-01 Thread Kees Cook
On Tue, Dec 01, 2020 at 01:09:07PM +0100, Mauro Carvalho Chehab wrote: > The kernel-doc markups on this file are weird: they don't > follow what's specified at: > > Documentation/doc-guide/kernel-doc.rst > > In particular, markups should use this format: > identifier - description

Re: [PATCH v5 15/16] refcount.h: fix a kernel-doc markup

2020-12-01 Thread Kees Cook
On Tue, Dec 01, 2020 at 01:09:08PM +0100, Mauro Carvalho Chehab wrote: > The kernel-doc markup is wrong: it is asking the tool to document > struct refcount_struct, instead of documenting typedef refcount_t. > > Fix it. > > Signed-off-by: Mauro Carvalho Chehab Acked-by: Kees Cook -- Kees

[PATCH] Updating the documentation of struct file_system_type

2020-12-01 Thread info
From: Joris Gutjahr In the documentation of struct file_system_type, using the definition of the struct of the kernel v5.10-rc6. Signed-off-by: Joris Gutjahr --- Documentation/filesystems/vfs.rst | 28 +++- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git

[PATCH v1 7/7] arm64: tegra: Enable QSPI on Jetson Xavier NX

2020-12-01 Thread Sowjanya Komatineni
Jetson Xavier NX has Spansion S25FS26S Quad SPI Flash. This patch enables QSPI on Jetson Xavier NX. Signed-off-by: Sowjanya Komatineni --- .../arm64/boot/dts/nvidia/tegra194-p3509-+p3668-.dts | 12 1 file changed, 12 insertions(+) diff --git

[PATCH v1 6/7] arm64: tegra: Add QSPI nodes on Tegra194

2020-12-01 Thread Sowjanya Komatineni
Tegra194 has 2 QSPI controllers. This patch adds DT node for these 2 QSPI controllers. Signed-off-by: Sowjanya Komatineni --- arch/arm64/boot/dts/nvidia/tegra194.dtsi | 26 ++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra194.dtsi

[PATCH v1 5/7] arm64: tegra: Enable QSPI on Jetson Nano

2020-12-01 Thread Sowjanya Komatineni
Jetson Nano has Macronix MX25U3235F Quad SPI Flash. This patch enables QSPI on Jetson Nano. Signed-off-by: Sowjanya Komatineni --- arch/arm64/boot/dts/nvidia/tegra210-p3450-.dts | 12 1 file changed, 12 insertions(+) diff --git

[PATCH v1 3/7] spi: qspi-tegra: Add support for Tegra210 QSPI controller

2020-12-01 Thread Sowjanya Komatineni
Tegra SoC has a Quad SPI controller starting from Tegra210. This patch adds support for Tegra210 QSPI controller. Signed-off-by: Sowjanya Komatineni --- drivers/spi/Kconfig |9 + drivers/spi/Makefile |1 + drivers/spi/qspi-tegra.c | 1418

[PATCH v1 4/7] spi: qspi-tegra: Add Tegra186 and Tegra194 QSPI compatibles

2020-12-01 Thread Sowjanya Komatineni
QSPI controller on Tegra186 and Tegra194 is similar to Tegra210 QSPI controller in terms of transferring command, address and data in multiple transfers. This patch adds Tegra186 and Tegra194 compatibles to QSPI driver. Signed-off-by: Sowjanya Komatineni --- drivers/spi/qspi-tegra.c | 2 ++ 1

[PATCH v1 2/7] dt-bindings: spi: Add Tegra QSPI device tree binding

2020-12-01 Thread Sowjanya Komatineni
This patch adds YAML based device tree binding document for Tegra QSPI driver. Signed-off-by: Sowjanya Komatineni --- .../devicetree/bindings/spi/nvidia,tegra-qspi.yaml | 77 ++ 1 file changed, 77 insertions(+) create mode 100644

[PATCH v1 1/7] MAINTAINERS: Add Tegra QSPI driver section

2020-12-01 Thread Sowjanya Komatineni
Add maintainers and mailing list entries to Tegra QSPI driver section. Signed-off-by: Sowjanya Komatineni --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 1cec5a0..d0fe832 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -17346,6 +17346,14

[PATCH v1 0/7] Add Tegra QSPI driver

2020-12-01 Thread Sowjanya Komatineni
This series adds Tegra210, Tegra186, and Tehra194 QSPI driver and enables QSPI on Jetson Nano and Jetson Xavier NX. QSPI controller is available on Tegra210, Tegra186 and Tegra194. Tegra186 and Tegra194 has additional feature of combined sequence mode where command, address and data can all be

Re: [PATCH v6 0/4] HID: i2c-hid: Reorganize to allow supporting goodix,gt7375p

2020-12-01 Thread Doug Anderson
Hi, On Wed, Nov 11, 2020 at 4:41 PM Douglas Anderson wrote: > > The goal of this series is to support the Goodix GT7375P touchscreen. > This touchscreen is special because it has power sequencing > requirements that necessitate driving a reset GPIO. > > To do this, we totally rejigger the way

Re: [PATCH 1/9] pstore/zone: cap the maximum device size

2020-12-01 Thread Kees Cook
On Fri, 16 Oct 2020 15:20:39 +0200, Christoph Hellwig wrote: > Introduce an abritrary 128MiB cap to avoid malloc failures when using > a larger block device. I've applied 1-3 of the series to for-next/pstore, thanks! [1/9] pstore/zone: cap the maximum device size

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

2020-12-01 Thread Jens Axboe
On 12/1/20 2:02 PM, Stephen Rothwell wrote: > Hi all, > > In commit > > 573cc9d095bc ("blk-cgroup: fix a hd_struct leak in blkcg_fill_root_iostats") > > Fixes tag > > Fixes: ef45fe470e1 ("blk-cgroup: show global disk stats in root cgroup > io.stat") > > has these problem(s): > > -

[RFC][PATCH] ftrace/selftests: Add binary test to verify ring buffer timestamps

2020-12-01 Thread Steven Rostedt
From: Steven Rostedt (VMware) A bug was reported about the ftrace ring buffer going backwards: Link: https://lore.kernel.org/r/20201124223917.795844-1-elav...@google.com In debugging this code, I wrote a C program that uses libtracefs to enable all events and function tracing (if it exits),

Re: [PATCH 18/18] ipu3: Add driver for dummy INT3472 ACPI device

2020-12-01 Thread Dan Scally
On 01/12/2020 19:21, Andy Shevchenko wrote: > On Tue, Dec 01, 2020 at 09:06:38PM +0200, Laurent Pinchart wrote: >> On Tue, Dec 01, 2020 at 09:05:23PM +0200, Andy Shevchenko wrote: >>> On Tue, Dec 01, 2020 at 08:55:48PM +0200, Laurent Pinchart wrote: >>> Do you think the Windows driver would

Re: [PATCH 2/2] statx: move STATX_ATTR_DAX attribute handling to filesystems

2020-12-01 Thread David Howells
Linus Torvalds wrote: > And if IS_DAX() is correct, then why shouldn't this just be done in > generic code? Why move it to every individual filesystem? One way of looking at it is that the check is then done for every filesystem - most of which don't support it. Not sure whether that's a big

Re: [PATCH v2 1/3] Revert "perf session: Fix decompression of PERF_RECORD_COMPRESSED records"

2020-12-01 Thread Alexei Budankov
On 01.12.2020 22:09, Jiri Olsa wrote: > On Mon, Nov 30, 2020 at 12:40:20PM +0100, Petr Malat wrote: >> Hi Jiří, >> were you able to reproduce the issue? I may also upload perf-archive >> if that would help. > > oh yea ;-) seems like those 2 commits you reverted broke 32 bits > perf for data

[PATCH] misc: genwqe: Use dma_set_mask_and_coherent to simplify code

2020-12-01 Thread Christophe JAILLET
'pci_set_dma_mask()' + 'pci_set_consistent_dma_mask()' can be replaced by an equivalent 'dma_set_mask_and_coherent()' which is much less verbose. Signed-off-by: Christophe JAILLET --- drivers/misc/genwqe/card_base.c | 19 ++- 1 file changed, 2 insertions(+), 17 deletions(-)

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

2020-12-01 Thread Stephen Rothwell
Hi all, In commit 573cc9d095bc ("blk-cgroup: fix a hd_struct leak in blkcg_fill_root_iostats") Fixes tag Fixes: ef45fe470e1 ("blk-cgroup: show global disk stats in root cgroup io.stat") has these problem(s): - SHA1 should be at least 12 digits long For the future, this can be fixed

Re: [RESEND PATCH v3 0/4] iommu/iova: Solve longterm IOVA issue

2020-12-01 Thread Will Deacon
On Tue, Dec 01, 2020 at 03:35:02PM +, John Garry wrote: > On 17/11/2020 10:25, John Garry wrote: > Is there any chance that we can get these picked up for 5.11? We've seen > this issue solved here for a long time. > > Or, @Robin, let me know if not happy with this since v1. > > BTW, patch #4

Re: [PATCH v4 1/5] drm: panel: simple: Fixup the struct panel_desc kernel doc

2020-12-01 Thread Doug Anderson
Hi, On Sun, Nov 29, 2020 at 2:10 PM Sam Ravnborg wrote: > > Hi Douglas, > On Mon, Nov 09, 2020 at 05:00:55PM -0800, Douglas Anderson wrote: > > When I run: > > scripts/kernel-doc -rst drivers/gpu/drm/panel/panel-simple.c > > > > I see that several of the kernel-doc entries aren't showing up

Re: [PATCH] genksyms: Ignore module scoped _Static_assert()

2020-12-01 Thread Rasmus Villemoes
On 01/12/2020 20.56, Nick Desaulniers wrote: > On Tue, Dec 1, 2020 at 9:04 AM Marco Elver wrote: >> >> On Tue, Dec 01, 2020 at 04:14PM +, Christoph Hellwig wrote: >>> Why not use the kernels own BUILD_BUG_ON instead of this idiom? >> > And to proactively address the inevitable: why do we have

Re: [PATCH net-next v2] net: switch to storing KCOV handle directly in sk_buff

2020-12-01 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Wed, 25 Nov 2020 23:48:40 +0100 you wrote: > It turns out that usage of skb extensions can cause memory leaks. Ido > Schimmel reported: "[...] there are instances that blindly overwrite > 'skb->extensions' by invoking

Re: [PATCH] net/ipv6: propagate user pointer annotation

2020-12-01 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Fri, 27 Nov 2020 10:34:21 +0100 you wrote: > For IPV6_2292PKTOPTIONS, do_ipv6_getsockopt() stores the user pointer > optval in the msg_control field of the msghdr. > > Hence, sparse rightfully warns at

Re: [PATCH 18/18] ipu3: Add driver for dummy INT3472 ACPI device

2020-12-01 Thread Dan Scally
Hi Andy On 01/12/2020 18:49, Andy Shevchenko wrote: >  P.S. Dan, can you drop unrelated text when replying? Ah - sure, sorry. > Seems we can do this, by locating intel_int3472.c under PDx86 hood and > dropping > ACPI ID table from TPS68470 MFD driver. The PMIC can be instantiated via >

Re: [PATCH v2 0/3] Fix several bugs in KVM stage 2 translation

2020-12-01 Thread Will Deacon
On Wed, Dec 02, 2020 at 04:10:31AM +0800, Yanan Wang wrote: > When installing a new pte entry or updating an old valid entry in stage 2 > translation, we use get_page()/put_page() to record page_count of the > page-table > pages. PATCH 1/3 aims to fix incorrect use of get_page()/put_page() in

[PATCH] drm: panel: Fully transition panel_desc kerneldoc to inline style

2020-12-01 Thread Douglas Anderson
In commit 131f909ad55f ("drm: panel: simple: Fixup the struct panel_desc kernel doc") I transitioned the more deeply nested kerneldoc comments into the inline style. Apparently it is desirable to continue the job and move _everything_ in this struct to inline. Let's do it. While doing this, we

[PATCH v2] drm: panel: add flags to BOE NV110WTM-N61

2020-12-01 Thread Douglas Anderson
I forgot to add these when posting up the support for BOE NV110WTM-N61. Add them now. Fixes: a96ee0f6b58d ("drm: panel: simple: Add BOE NV110WTM-N61") Signed-off-by: Douglas Anderson Cc: Douglas Anderson Cc: Sam Ravnborg Cc: Thierry Reding Cc: dri-de...@lists.freedesktop.org --- Changes in

Re: [PATCH v2 2/2] kbuild: Disable CONFIG_LD_ORPHAN_WARN for ld.lld 10.0.1

2020-12-01 Thread Kees Cook
On Tue, Dec 01, 2020 at 10:31:37PM +0900, Masahiro Yamada wrote: > On Wed, Nov 25, 2020 at 7:22 AM Kees Cook wrote: > > > > On Thu, Nov 19, 2020 at 01:13:27PM -0800, Nick Desaulniers wrote: > > > On Thu, Nov 19, 2020 at 12:57 PM Nathan Chancellor > > > wrote: > > > > > > > > ld.lld 10.0.1 spews

Re: [RFC v2 1/2] perf: support build BPF skeletons with perf

2020-12-01 Thread Jiri Olsa
On Mon, Nov 30, 2020 at 11:36:46PM -0800, Song Liu wrote: > BPF programs are useful in perf to profile BPF programs. BPF skeleton is > by far the easiest way to write BPF tools. Enable building BPF skeletons > in util/bpf_skel. A dummy bpf skeleton is added. More bpf skeletons will > be added for

Re: [PATCH] mm: mmap_lock: fix use-after-free race and css ref leak in tracepoints

2020-12-01 Thread Shakeel Butt
+Tejun Heo On Tue, Dec 1, 2020 at 11:14 AM Axel Rasmussen wrote: > > On Tue, Dec 1, 2020 at 10:42 AM Shakeel Butt wrote: > > > > On Tue, Dec 1, 2020 at 9:56 AM Greg Thelen wrote: > > > > > > Axel Rasmussen wrote: > > > > > > > On Mon, Nov 30, 2020 at 5:34 PM Shakeel Butt > > > > wrote: > >

[PATCH next v2 1/3] printk: inline log_output(),log_store() in vprintk_store()

2020-12-01 Thread John Ogness
In preparation for removing logbuf_lock, inline log_output() and log_store() into vprintk_store(). This will simplify dealing with the various code branches and fallbacks that are possible. Signed-off-by: John Ogness --- kernel/printk/printk.c | 134 + 1

[PATCH next v2 3/3] printk: remove logbuf_lock, add syslog_lock

2020-12-01 Thread John Ogness
Since the ringbuffer is lockless, there is no need for it to be protected by @logbuf_lock. Remove @logbuf_lock. This means that printk_nmi_direct and printk_safe_flush_on_panic() no longer need to acquire any lock to run. The global variables @syslog_seq, @syslog_partial, @syslog_time were also

[PATCH next v2 2/3] printk: change @clear_seq to atomic64_t

2020-12-01 Thread John Ogness
Currently @clear_seq access is protected by @logbuf_lock. Once @logbuf_lock is removed some other form of synchronization will be required. Change the type of @clear_seq to atomic64_t to provide the synchronization. Signed-off-by: John Ogness --- kernel/printk/printk.c | 22

[PATCH next v2 0/3] printk: remove logbuf_lock

2020-12-01 Thread John Ogness
s not part of this series. This series falls in line with the printk-rework plan as presented [1] at Linux Plumbers in Lisbon 2019. The series is based on next-20201201. John Ogness [0] https://lkml.kernel.org/r/20200922153816.5883-1-john.ogn...@linutronix.de [1] https://linuxplumbersconf.o

Re: [PATCH v3 00/11] evm: Improve usability of portable signatures

2020-12-01 Thread Mimi Zohar
Hi Roberto, On Wed, 2020-11-11 at 10:22 +0100, Roberto Sassu wrote: > EVM portable signatures are particularly suitable for the protection of > metadata of immutable files where metadata is signed by a software vendor. > They can be used for example in conjunction with an IMA policy that >

Re: [PATCH 2/2] statx: move STATX_ATTR_DAX attribute handling to filesystems

2020-12-01 Thread Dave Chinner
On Tue, Dec 01, 2020 at 09:39:05AM -0800, Darrick J. Wong wrote: > On Tue, Dec 01, 2020 at 10:59:36AM -0600, Eric Sandeen wrote: > > It's a bit odd to set STATX_ATTR_DAX into the statx attributes in the VFS; > > while the VFS can detect the current DAX state, it is the filesystem which > >

Re: [PATCH 3/3] membarrier: Propagate SYNC_CORE and RSEQ actions more carefully

2020-12-01 Thread Mathieu Desnoyers
- On Dec 1, 2020, at 1:48 PM, Andy Lutomirski l...@kernel.org wrote: > On Tue, Dec 1, 2020 at 10:29 AM Mathieu Desnoyers > wrote: >> >> - On Dec 1, 2020, at 1:12 PM, Andy Lutomirski l...@kernel.org wrote: >> >> > On Tue, Dec 1, 2020 at 6:28 AM Mathieu Desnoyers >> > wrote: >> >> >> >>

Re: [PATCH Xilinx Alveo 7/8] fpga: xrt: Alveo management physical function driver

2020-12-01 Thread Moritz Fischer
Hi Sonal, On Sat, Nov 28, 2020 at 04:00:39PM -0800, Sonal Santan wrote: > From: Sonal Santan > > Add management physical function driver core. The driver attaches > to management physical function of Alveo devices. It instantiates > the root driver and one or more partition drivers which in

Re: [PATCH 2/2] statx: move STATX_ATTR_DAX attribute handling to filesystems

2020-12-01 Thread Eric Sandeen
On 12/1/20 2:04 PM, Linus Torvalds wrote: > On Tue, Dec 1, 2020 at 8:59 AM Eric Sandeen wrote: >> >> It's a bit odd to set STATX_ATTR_DAX into the statx attributes in the VFS; >> while the VFS can detect the current DAX state, it is the filesystem which >> actually sets S_DAX on the inode, and

Re: mapcount corruption regression

2020-12-01 Thread Matthew Wilcox
On Tue, Dec 01, 2020 at 12:42:39PM -0800, Dan Williams wrote: > On Mon, Nov 30, 2020 at 6:24 PM Matthew Wilcox wrote: > > > > On Mon, Nov 30, 2020 at 05:20:25PM -0800, Dan Williams wrote: > > > Kirill, Willy, compound page experts, > > > > > > I am seeking some debug ideas about the following

[GIT PULL] pinctrl: samsung: Pull for v5.11

2020-12-01 Thread Krzysztof Kozlowski
The following changes since commit 3650b228f83adda7e5ee532e2b90429c03f7b9ec: Linux 5.10-rc1 (2020-10-25 15:14:11 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/pinctrl/samsung.git tags/samsung-pinctrl-5.11 for you to fetch changes up to

Re: [PATCH v13 0/4] userspace MHI client interface driver

2020-12-01 Thread Jeffrey Hugo
On 12/1/2020 1:03 PM, Jakub Kicinski wrote: On Tue, 1 Dec 2020 12:40:50 -0700 Jeffrey Hugo wrote: On 12/1/2020 12:29 PM, Jakub Kicinski wrote: On Fri, 27 Nov 2020 19:26:02 -0800 Hemant Kumar wrote: This patch series adds support for UCI driver. UCI driver enables userspace clients to

Re: [PATCH v3 1/3] LICENSES: Add the CC-BY-4.0 license

2020-12-01 Thread Thorsten Leemhuis
Am 01.12.20 um 15:43 schrieb Christoph Hellwig: On Mon, Nov 30, 2020 at 07:51:37AM -0700, Jonathan Corbet wrote: @Jonathan: thx for getting the ball rolling again! We could also, if we saw fit, take the position that anything that has been processed through the docs build is a derived

Re: [PATCH 18/18] ipu3: Add driver for dummy INT3472 ACPI device

2020-12-01 Thread Andy Shevchenko
On Tue, Dec 1, 2020 at 10:39 PM Hans de Goede wrote: > On 12/1/20 8:21 PM, Andy Shevchenko wrote: > > On Tue, Dec 01, 2020 at 09:06:38PM +0200, Laurent Pinchart wrote: > >> On Tue, Dec 01, 2020 at 09:05:23PM +0200, Andy Shevchenko wrote: > >>> On Tue, Dec 01, 2020 at 08:55:48PM +0200, Laurent

Re: [PATCH v2] net: dsa: ksz8795: adjust CPU link to host interface

2020-12-01 Thread Andrew Lunn
> Configure the host port of the switch to match the host interface > settings. This is useful when the switch is directly connected to the > host MAC interface. Why do you need this when no other board does? Why is your board special? As i said before, i'm guessing your board has back to back

Re: [RFC v2 0/2] Introduce perf-stat -b for BPF programs

2020-12-01 Thread Song Liu
> On Dec 1, 2020, at 12:16 PM, Jiri Olsa wrote: > > On Mon, Nov 30, 2020 at 11:36:45PM -0800, Song Liu wrote: >> This set introduces perf-stat -b option to count events for BPF programs. >> This is similar to bpftool-prog-profile. But perf-stat makes it much more >> flexible. >> >> Sending

Re: [PATCH 1/5] ARM: configs: drop unused BACKLIGHT_GENERIC option

2020-12-01 Thread Arnd Bergmann
On Tue, Dec 1, 2020 at 8:48 PM ZHIZHIKIN Andrey wrote: > Hello Arnd, > > > > Or rather, SoC-specific patches, even to defconfig, should go > > > > through the specific SoC maintainers. However, there are occasional > > > > defconfig patches which are more generic or affecting multiple SoCs. > > >

Re: [PATCH v10 17/19] ARM: tegra: Add EMC OPP properties to Tegra20 device-trees

2020-12-01 Thread Jon Hunter
On 30/11/2020 22:57, Dmitry Osipenko wrote: > 01.12.2020 00:17, Jon Hunter пишет: >> Hi Dmitry, >> >> On 23/11/2020 00:27, Dmitry Osipenko wrote: >>> Add EMC OPP DVFS tables and update board device-trees by removing >>> unsupported OPPs. >>> >>> Signed-off-by: Dmitry Osipenko >> This change is

Re: [PATCH v6] swiotlb: Adjust SWIOTBL bounce buffer size for SEV guests.

2020-12-01 Thread Konrad Rzeszutek Wilk
On Tue, Nov 24, 2020 at 11:46:22PM +, Ashish Kalra wrote: > Hello Konrad, > > On Mon, Nov 23, 2020 at 10:56:31PM +, Ashish Kalra wrote: > > Hello Konrad, > > > > On Mon, Nov 23, 2020 at 12:56:32PM -0500, Konrad Rzeszutek Wilk wrote: > > > On Mon, Nov 23, 2020 at 06:06:47PM +0100,

Re: mapcount corruption regression

2020-12-01 Thread Dan Williams
On Mon, Nov 30, 2020 at 6:24 PM Matthew Wilcox wrote: > > On Mon, Nov 30, 2020 at 05:20:25PM -0800, Dan Williams wrote: > > Kirill, Willy, compound page experts, > > > > I am seeking some debug ideas about the following splat: > > > > BUG: Bad page state in process lt-pmem-ns pfn:121a12 > >

Re: [PATCH] fs: 9p: add generic splice_write file operation

2020-12-01 Thread Toke Høiland-Jørgensen
Dominique Martinet writes: > The default splice operations got removed recently, add it back to 9p > with iter_file_splice_write like many other filesystems do. > > Fixes: 36e2c7421f02 ("fs: don't allow splice read/write without explicit ops") > Cc: Toke Høiland-Jørgensen > Signed-off-by:

Re: [V9fs-developer] [PATCH] fs: 9p: add generic splice_read file operations

2020-12-01 Thread Toke Høiland-Jørgensen
Dominique Martinet writes: > Toke Høiland-Jørgensen wrote on Tue, Dec 01, 2020: >> > This made me test copy_file_range, and it works with both as well (used >> > not to) >> > >> > interestingly on older kernels this came as default somehow? I have >> > splice working on 5.4.67 :/ so this broke

[PATCH v1 0/1] mfd: intel-m10-bmc: add sysfs files for mac_address

2020-12-01 Thread Russ Weight
Add two sysfs nodes to the Intel MAX10 BMC driver: mac_address and mac_count. The mac_address provides the first of a series of sequential MAC addresses assigned to the FPGA card. The mac_count indicates how many MAC addresses are assigned to the card. Russ Weight (1): mfd: intel-m10-bmc:

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