Re: [PATCH] pinctrl: mediatek: Free eint data on failure

2020-08-20 Thread Enric Balletbo i Serra
Hi Sean, On 20/8/20 2:00, Sean Wang wrote: > On Wed, Aug 19, 2020 at 9:19 AM Enric Balletbo i Serra > wrote: >> >> The pinctrl driver can work without the EINT resource, but, if it is >> expected to have this resource but the mtk_build_eint() function fails >> after allocating their data (because

RE: [PATCH v3] exfat: integrates dir-entry getting and validation

2020-08-20 Thread Namjae Jeon
> Thank you for your reply. > > >> @@ -171,7 +174,9 @@ struct exfat_entry_set_cache { > >>unsigned int start_off; > >>int num_bh; > >>struct buffer_head *bh[DIR_CACHE_SIZE]; > >> - unsigned int num_entries; > >> + int num_entries; > >> + struct exfat_de_file *de_file; > >> + stru

Re: [PATCH 0/9] TRACE_IRQFLAGS wreckage

2020-08-20 Thread peterz
On Thu, Aug 20, 2020 at 07:20:46PM +0200, Marco Elver wrote: > From 4ec9dd472c978e1eba622fb22bc04e4357f10421 Mon Sep 17 00:00:00 2001 > From: Marco Elver > Date: Thu, 20 Aug 2020 19:06:09 +0200 > Subject: [PATCH] sched: Turn inline into __always_inline due to noinstr use > > is_idle_task() may be

Re: [LTP] [PATCH 5.8 000/232] 5.8.3-rc1 review

2020-08-20 Thread Petr Vorel
Hi all, > On Thu, Aug 20, 2020 at 08:57:57PM +0530, Naresh Kamboju wrote: > > On Thu, 20 Aug 2020 at 14:55, Greg Kroah-Hartman > > wrote: > > > This is the start of the stable review cycle for the 5.8.3 release. > > > There are 232 patches in this series, all will be posted as a response > > > t

Re: [PATCH 1/1] block: move the PAGE_SECTORS definition into

2020-08-20 Thread Leizhen (ThunderTown)
On 8/21/2020 12:11 PM, Coly Li wrote: > On 2020/8/21 10:03, Zhen Lei wrote: >> There are too many PAGE_SECTORS definitions, and all of them are the >> same. It looks a bit of a mess. So why not move it into , >> to achieve a basic and unique definition. >> >> Signed-off-by: Zhen Lei > > > A l

[PATCH][next] atmel: Use fallthrough pseudo-keyword

2020-08-20 Thread Gustavo A. R. Silva
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva --- drivers/net/wirele

[PATCH][next] carl9170: Use fallthrough pseudo-keyword

2020-08-20 Thread Gustavo A. R. Silva
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva --- drivers/net/wirele

Re: [PATCH 0/4] -ffreestanding/-fno-builtin-* patches

2020-08-20 Thread Rasmus Villemoes
On 20/08/2020 19.56, Arvind Sankar wrote: > On Thu, Aug 20, 2020 at 04:56:02PM +0200, Rasmus Villemoes wrote: >> On 18/08/2020 23.41, Arvind Sankar wrote: >>> >>> Note that -fno-builtin-foo seems to mean slightly different things in >>> clang and gcc. From experimentation, clang will neither optimi

[PATCH][next] rtw88: Use fallthrough pseudo-keyword

2020-08-20 Thread Gustavo A. R. Silva
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva --- drivers/net/wirele

Re: [PATCH v2 3/6] powerpc/32s: Only leave NX unset on segments used for modules

2020-08-20 Thread Christophe Leroy
On 08/21/2020 05:11 AM, Christophe Leroy wrote: Le 21/08/2020 à 00:00, Andreas Schwab a écrit : On Jun 29 2020, Christophe Leroy wrote: Instead of leaving NX unset on all segments above the start of vmalloc space, only leave NX unset on segments used for modules. I'm getting this crash:

[PATCH][next] mwifiex: Use fallthrough pseudo-keyword

2020-08-20 Thread Gustavo A. R. Silva
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva --- drivers/net/wirele

Re: [PATCH 0/9] TRACE_IRQFLAGS wreckage

2020-08-20 Thread Marco Elver
On Thu, Aug 20, 2020 at 03:59PM -0400, Steven Rostedt wrote: > On Thu, 20 Aug 2020 19:20:46 +0200 > Marco Elver wrote: > > > On Thu, Aug 20, 2020 at 04:58PM +0200, pet...@infradead.org wrote: > > > On Thu, Aug 20, 2020 at 10:36:43AM -0400, Steven Rostedt wrote: > > > > > > > > I tested this se

[PATCH][next] b43legacy: Use fallthrough pseudo-keyword

2020-08-20 Thread Gustavo A. R. Silva
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva --- drivers/net/wirele

Re: [PATCHv9] drivers: optee: allow op-tee to access devices on the i2c bus

2020-08-20 Thread Jorge Ramirez-Ortiz, Foundries
On 21/08/20, Jens Wiklander wrote: > On Fri, Aug 14, 2020 at 01:12:21PM +0200, Jorge Ramirez-Ortiz wrote: > > Some secure elements like NXP's SE050 sit on I2C buses. For OP-TEE to > > control this type of cryptographic devices it needs coordinated access > > to the bus, so collisions and RUNTIME_PM

[PATCH][next] b43: Use fallthrough pseudo-keyword

2020-08-20 Thread Gustavo A. R. Silva
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva --- drivers/net/wirele

[PATCH][next] iwlegacy: Use fallthrough pseudo-keyword

2020-08-20 Thread Gustavo A. R. Silva
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva --- drivers/net/wirele

[PATCH][next] brcmfmac: Use fallthrough pseudo-keyword

2020-08-20 Thread Gustavo A. R. Silva
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary fall-through markings when it is the case. [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-

Re: [PATCH 2/2] ARM: dts: exynos: Remove interrupts from DMC controller in Exynos5422

2020-08-20 Thread Krzysztof Kozlowski
On Fri, 21 Aug 2020 at 08:31, Krzysztof Kozlowski wrote: > > On Mon, 17 Aug 2020 at 19:17, Lukasz Luba wrote: > > > > Hi Krzysztof, > > > > On 8/17/20 4:50 PM, Krzysztof Kozlowski wrote: > > > On Wed, Jul 08, 2020 at 04:34:20PM +0100, Lukasz Luba wrote: > > >> The interrupts in Dynamic Memory Con

Re: [PATCH 2/2] ARM: dts: exynos: Remove interrupts from DMC controller in Exynos5422

2020-08-20 Thread Krzysztof Kozlowski
On Mon, 17 Aug 2020 at 19:17, Lukasz Luba wrote: > > Hi Krzysztof, > > On 8/17/20 4:50 PM, Krzysztof Kozlowski wrote: > > On Wed, Jul 08, 2020 at 04:34:20PM +0100, Lukasz Luba wrote: > >> The interrupts in Dynamic Memory Controller in Exynos5422 and Odroid > >> XU3-family boards are no longer need

[PATCH] random32: Use rcuidle variant for tracepoint

2020-08-20 Thread Marco Elver
With KCSAN enabled, prandom_u32() may be called from any context, including idle CPUs. Therefore, switch to using trace_prandom_u32_rcuidle(), to avoid various issues due to recursion and lockdep warnings when KCSAN and tracing is enabled. Fixes: 94c7eb54c4b8 ("random32: add a tracepoint for pran

[PATCH][next] orinoco: Use fallthrough pseudo-keyword

2020-08-20 Thread Gustavo A. R. Silva
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva --- drivers/net/wirele

[PATCH][next] prism54: Use fallthrough pseudo-keyword

2020-08-20 Thread Gustavo A. R. Silva
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva --- drivers/net/wirele

Re: [PATCH bpf-next] docs: correct subject prefix and update LLVM info

2020-08-20 Thread Yonghong Song
On 8/20/20 10:28 PM, Jianlin Lv wrote: bpf_devel_QA.rst:152 The subject prefix information is not accurate, it should be 'PATCH bpf-next v2' Also update LLVM version info and add information about ‘-DLLVM_TARGETS_TO_BUILD’ to prompt the developer to build the desired target. Signed-off-by: J

[PATCH v2 3/3] ASoC: codecs: fix port_ready[] dynamic allocation in ASoC codecs

2020-08-20 Thread Bard Liao
From: Pierre-Louis Bossart As port_ready is now changed to a fixed array in sdw.h, we can't dynamic allocate it in codec drivers. Signed-off-by: Pierre-Louis Bossart Reviewed-by: Rander Wang Reviewed-by: Guennadi Liakhovetski Signed-off-by: Bard Liao --- sound/soc/codecs/max98373-sdw.c | 15

Re: [PATCHv9] drivers: optee: allow op-tee to access devices on the i2c bus

2020-08-20 Thread Jens Wiklander
On Fri, Aug 14, 2020 at 01:12:21PM +0200, Jorge Ramirez-Ortiz wrote: > Some secure elements like NXP's SE050 sit on I2C buses. For OP-TEE to > control this type of cryptographic devices it needs coordinated access > to the bus, so collisions and RUNTIME_PM dont get in the way. > > This trampoline

[PATCH v2 2/3] soundwire: fix port_ready[] dynamic allocation in mipi_disco

2020-08-20 Thread Bard Liao
From: Pierre-Louis Bossart The existing code allocates memory for the total number of ports. This only works if the ports are contiguous, but will break if e.g. a Devices uses port0, 1, and 14. The port_ready[] array would contain 3 elements, which would lead to an out-of-bounds access. Conversel

[PATCH v2 1/3] soundwire: add definition for maximum number of ports

2020-08-20 Thread Bard Liao
From: Pierre-Louis Bossart A Device may have at most 15 physical ports (DP0, DP1..DP14). Signed-off-by: Pierre-Louis Bossart Reviewed-by: Rander Wang Reviewed-by: Guennadi Liakhovetski Signed-off-by: Bard Liao --- include/linux/soundwire/sdw.h | 3 ++- 1 file changed, 2 insertions(+), 1 del

[PATCH v2 0/3] soundwire: fix port_ready[] dynamic allocation

2020-08-20 Thread Bard Liao
The existing code allocates memory for the total number of ports. This only works if the ports are contiguous, but will break if e.g. a Devices uses port0, 1, and 14. The port_ready[] array would contain 3 elements, which would lead to an out-of-bounds access. Conversely in other cases, the wrong p

Re: [PATCH v2 bpf 2/2] selftests/bpf: add test for freplace program with write access

2020-08-20 Thread Yonghong Song
On 8/20/20 5:28 PM, Udip Pant wrote: This adds a selftest that tests the behavior when a freplace target program attempts to make a write access on a packet. The expectation is that the read or write access is granted based on the program type of the linked program and not itself (which is of

Re: [PATCH v6 0/2] make dma_alloc_coherent NUMA-aware by per-NUMA CMA

2020-08-20 Thread Christoph Hellwig
FYI, as of the last one I'm fine now, bit I really need an ACK from the arm64 maintainers.

Re: [PATCH v2 bpf 1/2] bpf: verifier: check for packet data access based on target prog

2020-08-20 Thread Yonghong Song
On 8/20/20 11:13 PM, Yonghong Song wrote: On 8/20/20 5:28 PM, Udip Pant wrote: While using dynamic program extension (of type BPF_PROG_TYPE_EXT), we need to check the program type of the target program to grant the read / write access to the packet data. The BPF_PROG_TYPE_EXT type can be u

Re: [RFC PATCH V3] iomap: add support to track dirty state of sub pages

2020-08-20 Thread Christoph Hellwig
> diff --git a/fs/iomap/buffered-io.c b/fs/iomap/buffered-io.c > index bcfc288dba3f..b6a7457d8581 100644 > --- a/fs/iomap/buffered-io.c > +++ b/fs/iomap/buffered-io.c > @@ -21,15 +21,20 @@ > > #include "../internal.h" > > +#define DIRTY_BITS(x)((x) + PAGE_SIZE / SECTOR_SIZE) > /* Nit

[PATCH][next] rt2x00: Use fallthrough pseudo-keyword

2020-08-20 Thread Gustavo A. R. Silva
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary fall-through markings when it is the case. [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-

Re: [PATCH v2 bpf 1/2] bpf: verifier: check for packet data access based on target prog

2020-08-20 Thread Yonghong Song
On 8/20/20 5:28 PM, Udip Pant wrote: While using dynamic program extension (of type BPF_PROG_TYPE_EXT), we need to check the program type of the target program to grant the read / write access to the packet data. The BPF_PROG_TYPE_EXT type can be used to extend types such as XDP, SKB and othe

Re: [RFC PATCH V3] iomap: add support to track dirty state of sub pages

2020-08-20 Thread Christoph Hellwig
On Thu, Aug 20, 2020 at 09:38:53AM +0800, yukuai (C) wrote: > > > +iomap_set_range_dirty(struct page *page, unsigned int off, > > > + unsigned int len) > > > +{ > > > + if (PageError(page)) > > > + return; > > > + > > > + if (page_has_private(page)) > > > + iomap_iop_set_ran

[PATCH][next] rtlwifi: Use fallthrough pseudo-keyword

2020-08-20 Thread Gustavo A. R. Silva
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva --- drivers/net/wirele

general protection fault in afs_dynroot_depopulate

2020-08-20 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:18445bf4 Merge tag 'spi-fix-v5.9-rc1' of git://git.kernel... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=14ff6f2990 kernel config: https://syzkaller.appspot.com/x/.config?x=a0437fdd630bee11 das

general protection fault in map_vdso_randomized

2020-08-20 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:4b6c093e Merge tag 'block-5.9-2020-08-14' of git://git.ker.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=179f99f690 kernel config: https://syzkaller.appspot.com/x/.config?x=a98b778f5fca0653 das

Re: [PATCH 2/2 v2] arm64: dts: ls208xa: add more thermal zone support

2020-08-20 Thread Amit Kucheria
On Wed, Jul 15, 2020 at 12:25 PM wrote: > > From: Yuantian Tang > > There are 7 thermal zones in ls208xa soc. Add the other thermal zone > nodes to enable them. > > Signed-off-by: Yuantian Tang Reviewed-by: Amit Kucheria > --- > v2: > - remove useless alert trip > - add coolin

Re: [PATCH 1/2 v2] arm64: dts: ls1088a: add more thermal zone support

2020-08-20 Thread Amit Kucheria
On Wed, Jul 15, 2020 at 12:25 PM wrote: > > From: Yuantian Tang > > There are 2 thermal zones in ls1088a soc. Add the other thermal zone > node to enable it. > Also update the values in calibration table to make the temperatures > monitored more precise. > > Signed-off-by: Yuantian Tang Reviewe

Re: [RFC PATCH V2] iomap: add support to track dirty state of sub pages

2020-08-20 Thread Christoph Hellwig
On Tue, Aug 18, 2020 at 05:50:19PM +0100, Matthew Wilcox wrote: > Looks like Christoph changed his mind sometime between that message > and the first commit: 9dc55f1389f9569acf9659e58dd836a9c70df217 No, as Darrick pointed out it was all about the header dependency. > My THP patches convert the bi

general protection fault in fib_check_nexthop

2020-08-20 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:18445bf4 Merge tag 'spi-fix-v5.9-rc1' of git://git.kernel... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=162cbd7a90 kernel config: https://syzkaller.appspot.com/x/.config?x=a0437fdd630bee11 das

KASAN: use-after-free Write in vcs_read

2020-08-20 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:605cbf3d Add linux-next specific files for 20200820 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=157e75ce90 kernel config: https://syzkaller.appspot.com/x/.config?x=a61d44f28687f508 dashboard

Re: [PATCH v8 2/2] Add PWM fan controller driver for LGM SoC

2020-08-20 Thread Tanwar, Rahul
Hi Andy, On 20/8/2020 6:52 pm, Andy Shevchenko wrote: > On Thu, Aug 20, 2020 at 12:50:46PM +0800, Rahul Tanwar wrote: >> Intel Lightning Mountain(LGM) SoC contains a PWM fan controller. >> This PWM controller does not have any other consumer, it is a >> dedicated PWM controller for fan attached

Re: [PATCH] iomap: Fix the write_count in iomap_add_to_ioend().

2020-08-20 Thread Christoph Hellwig
On Wed, Aug 19, 2020 at 03:58:41PM +0530, Anju T Sudhakar wrote: > From: Ritesh Harjani > > __bio_try_merge_page() may return same_page = 1 and merged = 0. > This could happen when bio->bi_iter.bi_size + len > UINT_MAX. > Handle this case in iomap_add_to_ioend() by incrementing write_count. > T

[PATCH][next] iwlwifi: Use fallthrough pseudo-keyword

2020-08-20 Thread Gustavo A. R. Silva
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva --- drivers/net/wirele

[PATCH v33 00/12] /dev/random - a new approach with full SP800-90B compliance

2020-08-20 Thread Stephan Müller
Hi, The following patch set provides a different approach to /dev/random which is called Linux Random Number Generator (LRNG) to collect entropy within the Linux kernel. The main improvements compared to the existing /dev/random is to provide sufficient entropy during boot time as well as in virtu

[PATCH v33 02/12] LRNG - allocate one DRNG instance per NUMA node

2020-08-20 Thread Stephan Müller
In order to improve NUMA-locality when serving getrandom(2) requests, allocate one DRNG instance per node. The DRNG instance that is present right from the start of the kernel is reused as the first per-NUMA-node DRNG. For all remaining online NUMA nodes a new DRNG instance is allocated. During b

[PATCH v33 03/12] LRNG - sysctls and /proc interface

2020-08-20 Thread Stephan Müller
The LRNG sysctl interface provides the same controls as the existing /dev/random implementation. These sysctls behave identically and are implemented identically. The goal is to allow a possible merge of the existing /dev/random implementation with this implementation which implies that this patch

[PATCH v33 06/12] LRNG - add SP800-90A DRBG extension

2020-08-20 Thread Stephan Müller
Using the LRNG switchable DRNG support, the SP800-90A DRBG extension is implemented. The DRBG uses the kernel crypto API DRBG implementation. In addition, it uses the kernel crypto API SHASH support to provide the hashing operation. The DRBG supports the choice of either a CTR DRBG using AES-256,

[PATCH v33 04/12] LRNG - add switchable DRNG support

2020-08-20 Thread Stephan Müller
The DRNG switch support allows replacing the DRNG mechanism of the LRNG. The switching support rests on the interface definition of include/linux/lrng.h. A new DRNG is implemented by filling in the interface defined in this header file. In addition to the DRNG, the extension also has to provide a

[PATCH v33 05/12] crypto: DRBG - externalize DRBG functions for LRNG

2020-08-20 Thread Stephan Müller
This patch allows several DRBG functions to be called by the LRNG kernel code paths outside the drbg.c file. CC: "Eric W. Biederman" CC: "Alexander E. Patrakov" CC: "Ahmed S. Darwish" CC: "Theodore Y. Ts'o" CC: Willy Tarreau CC: Matthew Garrett CC: Vito Caputo CC: Andreas Dilger CC: Jan Ka

[PATCH v33 09/12] LRNG - add Jitter RNG fast noise source

2020-08-20 Thread Stephan Müller
From 4a94cf2db12d5d1f8fd3354ea0da2c5726f96ac7 Mon Sep 17 00:00:00 2001 From: Stephan Mueller Date: Sun, 19 Jan 2020 21:23:17 +0100 Subject: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Jitter RNG fast noise source implemented as part of the kernel

[PATCH v33 01/12] Linux Random Number Generator

2020-08-20 Thread Stephan Müller
In an effort to provide a flexible implementation for a random number generator that also delivers entropy during early boot time, allows replacement of the deterministic random number generation mechanism, implement the various components in separate code for easier maintenance, and provide compli

[PATCH v33 10/12] LRNG - add SP800-90B compliant health tests

2020-08-20 Thread Stephan Müller
Implement health tests for LRNG's slow noise sources as mandated by SP-800-90B The file contains the following health tests: - stuck test: The stuck test calculates the first, second and third discrete derivative of the time stamp to be processed by the LFSR. Only if all three values are non-z

[PATCH v33 12/12] LRNG - add power-on and runtime self-tests

2020-08-20 Thread Stephan Müller
Parts of the LRNG are already covered by self-tests, including: * Self-test of SP800-90A DRBG provided by the Linux kernel crypto API. * Self-test of the PRNG provided by the Linux kernel crypto API. * Raw noise source data testing including SP800-90B compliant tests when enabling CONFIG_LRNG_

Re: [PATCH] iomap: Fix the write_count in iomap_add_to_ioend().

2020-08-20 Thread Christoph Hellwig
On Fri, Aug 21, 2020 at 09:11:40AM +1000, Dave Chinner wrote: > On Wed, Aug 19, 2020 at 03:58:41PM +0530, Anju T Sudhakar wrote: > > From: Ritesh Harjani > > > > __bio_try_merge_page() may return same_page = 1 and merged = 0. > > This could happen when bio->bi_iter.bi_size + len > UINT_MAX. >

[PATCH v33 07/12] LRNG - add kernel crypto API PRNG extension

2020-08-20 Thread Stephan Müller
Add runtime-pluggable support for all PRNGs that are accessible via the kernel crypto API, including hardware PRNGs. The PRNG is selected with the module parameter drng_name where the name must be one that the kernel crypto API can resolve into an RNG. This allows using of the kernel crypto API PR

[PATCH][next] mediatek: Use fallthrough pseudo-keyword

2020-08-20 Thread Gustavo A. R. Silva
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary fall-through markings when it is the case. [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-

[PATCH v33 08/12] crypto: provide access to a static Jitter RNG state

2020-08-20 Thread Stephan Müller
To support the LRNG operation which uses the Jitter RNG separately from the kernel crypto API, at a time where potentially the regular memory management is not yet initialized, the Jitter RNG needs to provide a state whose memory is defined at compile time. As only once instance will ever be needed

[PATCH v33 11/12] LRNG - add interface for gathering of raw entropy

2020-08-20 Thread Stephan Müller
The test interface allows a privileged process to capture the raw unconditioned noise that is collected by the LRNG for statistical analysis. Such testing allows the analysis how much entropy the interrupt noise source provides on a given platform. Extracted noise data is not used to seed the LRNG.

Re: [PATCH] iomap: Fix the write_count in iomap_add_to_ioend().

2020-08-20 Thread Christoph Hellwig
On Fri, Aug 21, 2020 at 10:15:33AM +0530, Ritesh Harjani wrote: > Please correct me here, but as I see, bio has only these two limits > which it checks for adding page to bio. It doesn't check for limits > of /sys/block//queue/* no? I guess then it could be checked > by block layer below b4 submitt

[PATCH net-next] net: remove redundant variable in vxlan_xmit_one

2020-08-20 Thread Jianlin Lv
dst/src is used multiple times in vxlan_xmit_one function as the variable name, although its scope is different, but it reduces the readability and it is unnecessary to use intermediate variables here; This patch reduces unnecessary assignments and removes redundant variables Signed-off-by: Jianli

Re: [PATCH 3/5] i2c: aspeed: Mask IRQ status to relevant bits

2020-08-20 Thread Wolfram Sang
> + irq_received &= 0xf000; Can we have a define for this? Like ASPEED_I2CD_INTR_MASTER_IRQS or something? signature.asc Description: PGP signature

Re: [PATCH v5] phy: omap-usb2-phy: disable PHY charger detect

2020-08-20 Thread Jan Kiszka
On 20.08.20 15:39, Roger Quadros wrote: > AM654x PG1.0 has a silicon bug that D+ is pulled high after POR, which > could cause enumeration failure with some USB hubs. Disabling the > USB2_PHY Charger Detect function will put D+ into the normal state. > > This addresses Silicon Errata: > i2075 - "

Re: [PATCH v3 3/3] selinux: add permission names to trace event

2020-08-20 Thread peter enderborg
On 8/21/20 4:22 AM, Paul Moore wrote: > On Tue, Aug 18, 2020 at 8:14 AM Stephen Smalley > wrote: >> On Tue, Aug 18, 2020 at 4:11 AM peter enderborg >> wrote: > ... > >>> Is there any other things we need to fix? A part 1&2 now OK? >> They looked ok to me, but Paul should review them. > Patches 1

[PATCH] media: atomisp: fix memleak in ia_css_stream_create

2020-08-20 Thread Dinghao Liu
When aspect_ratio_crop_init() fails, curr_stream needs to be freed just like what we've done in the following error paths. However, current code is returning directly and ends up leaking memory. Signed-off-by: Dinghao Liu --- drivers/staging/media/atomisp/pci/sh_css.c | 2 +- 1 file changed, 1 i

Re: [PATCH v5 6/8] mm: Move vmap_range from lib/ioremap.c to mm/vmalloc.c

2020-08-20 Thread Christophe Leroy
Le 21/08/2020 à 06:44, Nicholas Piggin a écrit : This is a generic kernel virtual memory mapper, not specific to ioremap. Signed-off-by: Nicholas Piggin --- include/linux/vmalloc.h | 2 + mm/ioremap.c| 192 mm/vmalloc.c|

Re: [PATCH v5 0/8] huge vmalloc mappings

2020-08-20 Thread Christophe Leroy
Le 21/08/2020 à 06:44, Nicholas Piggin a écrit : I made this powerpc-only for the time being. It shouldn't be too hard to add support for other archs that define HUGE_VMAP. I have booted x86 with it enabled, just may not have audited everything. I like this series, but if I understand correc

Re: [PATCH v5 6/8] mm: Move vmap_range from lib/ioremap.c to mm/vmalloc.c

2020-08-20 Thread Christoph Hellwig
On Fri, Aug 21, 2020 at 02:44:25PM +1000, Nicholas Piggin wrote: > This is a generic kernel virtual memory mapper, not specific to ioremap. lib/ioremap doesn't exist any more. > > Signed-off-by: Nicholas Piggin > --- > include/linux/vmalloc.h | 2 + > mm/ioremap.c| 192 --

Re: [PATCH v5 5/8] mm: HUGE_VMAP arch support cleanup

2020-08-20 Thread Christoph Hellwig
> static int vmap_try_huge_pmd(pmd_t *pmd, unsigned long addr, unsigned long > end, > - phys_addr_t phys_addr, pgprot_t prot) > + phys_addr_t phys_addr, pgprot_t prot, unsigned int > max_page_shift) > { ... and here.

Re: [PATCH v5 3/8] mm/vmalloc: rename vmap_*_range vmap_pages_*_range

2020-08-20 Thread Christoph Hellwig
On Fri, Aug 21, 2020 at 02:44:22PM +1000, Nicholas Piggin wrote: > The vmalloc mapper operates on a struct page * array rather than a > linear physical address, re-name it to make this distinction clear. > > Signed-off-by: Nicholas Piggin > --- > mm/vmalloc.c | 28 >

Re: [PATCH v5 4/8] lib/ioremap: rename ioremap_*_range to vmap_*_range

2020-08-20 Thread Christoph Hellwig
On Fri, Aug 21, 2020 at 02:44:23PM +1000, Nicholas Piggin wrote: > This will be moved to mm/ and used as a generic kernel virtual mapping > function, so re-name it in preparation. > > Signed-off-by: Nicholas Piggin > --- > mm/ioremap.c | 55 ++-- >

Re: [PATCH v5 5/8] mm: HUGE_VMAP arch support cleanup

2020-08-20 Thread Christophe Leroy
Le 21/08/2020 à 06:44, Nicholas Piggin a écrit : This changes the awkward approach where architectures provide init functions to determine which levels they can provide large mappings for, to one where the arch is queried for each call. This removes code and indirection, and allows constant-f

Re: [PATCH v3] mm: Fix kthread_use_mm() vs TLB invalidate

2020-08-20 Thread Aneesh Kumar K.V
Peter Zijlstra writes: > For SMP systems using IPI based TLB invalidation, looking at > current->active_mm is entirely reasonable. This then presents the > following race condition: > > > CPU0CPU1 > > flush_tlb_mm(mm)use_mm(mm) > > tsk-

Re: [PATCH] memory: brcmstb_dpfe: fix array index out of bounds

2020-08-20 Thread Krzysztof Kozlowski
On Thu, Aug 20, 2020 at 06:03:33PM -0700, Markus Mayer wrote: > We would overrun the error_text array if we hit a TIMEOUT condition, > because we were using the error code "ETIMEDOUT" (which is 110) as an > array index. > > We fix the problem by correcting the array index and by providing a > func

[PATCH v1 1/1] pinctrl: mediatek: remove log message in mtk_hw_pin_field_lookup

2020-08-20 Thread light.hsieh
From: Light Hsieh Originally, mtk_hw_pin_field_lookup() print log message in 2 conditions: 1. when soc does not support target property 2. when target pin does not support target property Now, mtk_hw_pin_field_lookup() does not print log message according to the following rationale: 1. Users of

[tip:auto-latest] BUILD SUCCESS a9bd3a91d6e49ebd2d7d8ace91d4cc339c382a31

2020-08-20 Thread kernel test robot
ig powerpc allnoconfig powerpc defconfig i386 randconfig-a002-20200820 i386 randconfig-a004-20200820 i386 randconfig-a005-20200820 i386 randconfig-a003-20200820 i386 randconfig-a006-202

Re: [PATCH v3] usb-serial:cp210x: add support to software flow control

2020-08-20 Thread Jan Kiszka
On 20.08.20 09:52, Sheng Long Wang wrote: > From: Wang Sheng Long > > When data is transmitted between two serial ports, > the phenomenon of data loss often occurs. The two kinds > of flow control commonly used in serial communication > are hardware flow control and software flow control. > > In

[PATCH bpf-next] docs: correct subject prefix and update LLVM info

2020-08-20 Thread Jianlin Lv
bpf_devel_QA.rst:152 The subject prefix information is not accurate, it should be 'PATCH bpf-next v2' Also update LLVM version info and add information about ‘-DLLVM_TARGETS_TO_BUILD’ to prompt the developer to build the desired target. Signed-off-by: Jianlin Lv --- Documentation/bpf/bpf_devel_

[PATCH v2 2/2] exfat: write only modified part of dir-entry set

2020-08-20 Thread Tetsuhiro Kohada
Currently exfat_free_dentry_set() writes all of dir-entry set. Change it to write only the modified part of dir-entry set. And, Integrate exfat_free_dentry_set() and exfat_update_dir_chksum_with_entry_set() as exfat_put_dentry_set(). ** This patch depends on: '[PATCH v3] exfat: integrates dir-en

Re: [RFC 1/3] Initialize devlink health dump framework for the dlge driver

2020-08-20 Thread Benjamin Poirier
On 2020-08-21 11:08 +0800, Coiby Xu wrote: [...] > > > diff --git a/drivers/staging/qlge/qlge_health.h > > > b/drivers/staging/qlge/qlge_health.h > > > new file mode 100644 > > > index ..07d3bafab845 > > > --- /dev/null > > > +++ b/drivers/staging/qlge/qlge_health.h > > > @@ -0,0 +1,2

[PATCH v2 1/2] exfat: add dir-entry set checksum validation

2020-08-20 Thread Tetsuhiro Kohada
Add checksum validation for dir-entry set when getting it. exfat_calc_entry_set_chksum_with() also validates entry-type. ** This patch depends on: '[PATCH v3] exfat: integrates dir-entry getting and validation' Signed-off-by: Tetsuhiro Kohada --- Changes in v2 - Add error log if checksum mism

Re: [Patch] cpufreq: replace cpu_logical_map with read_cpuid_mpir

2020-08-20 Thread Viresh Kumar
On 20-08-20, 13:37, Sudeep Holla wrote: > On Thu, Aug 20, 2020 at 11:09:45AM +0530, Viresh Kumar wrote: > > On 12-08-20, 01:13, Sumit Gupta wrote: > > > Commit eaecca9e7710 ("arm64: Fix __cpu_logical_map undefined issue") > > > fixes the issue with building tegra194 cpufreq driver as module. But >

linux-next: Signed-off-by missing for commits in the arm-soc-fixes tree

2020-08-20 Thread Stephen Rothwell
Hi all, Commits 8d53ecfbf231 ("arm64: dts: xilinx: Align IOMMU nodename with dtschema") b4b6fb8de8dc ("arm64: dts: zynqmp: Add GTR transceivers") are missing a Signed-off-by from their committer. -- Cheers, Stephen Rothwell pgpIMTrZ27tON.pgp Description: OpenPGP digital signature

Re: [PATCH v3 1/1] phy: tusb1210: use bitmasks to set VENDOR_SPECIFIC2

2020-08-20 Thread Vinod Koul
On 19-08-20, 15:57, Geert Uytterhoeven wrote: > Hi Liam, > > > On Mon, Aug 17, 2020 at 7:38 PM Liam Beguin wrote: > > From: Liam Beguin > > > > Start by reading the content of the VENDOR_SPECIFIC2 register and update > > each bit field based on device properties when defined. > > > > The use of

Re: [PATCH v5] phy: omap-usb2-phy: disable PHY charger detect

2020-08-20 Thread Vinod Koul
On 20-08-20, 20:27, Sekhar Nori wrote: > On 8/20/20 7:09 PM, Roger Quadros wrote: > > AM654x PG1.0 has a silicon bug that D+ is pulled high after POR, which > > could cause enumeration failure with some USB hubs. Disabling the > > USB2_PHY Charger Detect function will put D+ into the normal state.

Re: [PATCH 2/2] soundwire: fix port_ready[] dynamic allocation in mipi_disco and ASoC codecs

2020-08-20 Thread Vinod Koul
On 18-08-20, 07:09, Pierre-Louis Bossart wrote: > > > On 8/18/20 1:36 AM, Vinod Koul wrote: > > On 18-08-20, 01:47, Bard Liao wrote: > > > From: Pierre-Louis Bossart > > > > > > The existing code allocates memory for the total number of ports. > > > This only works if the ports are contiguous,

Re: [PATCH v2] soundwire: SDCA: add helper macro to access controls

2020-08-20 Thread Vinod Koul
On 17-08-20, 10:14, Pierre-Louis Bossart wrote: > > > > The upcoming SDCA (SoundWire Device Class Audio) specification defines > > > a hiearchical encoding to interface with Class-defined capabilities, > > > > typo hiearchical > > ok > > > > based on which audio function, entity, control and ch

Re: [PATCH v2 3/6] powerpc/32s: Only leave NX unset on segments used for modules

2020-08-20 Thread Christophe Leroy
Le 21/08/2020 à 00:00, Andreas Schwab a écrit : On Jun 29 2020, Christophe Leroy wrote: Instead of leaving NX unset on all segments above the start of vmalloc space, only leave NX unset on segments used for modules. I'm getting this crash: kernel tried to execute exec-protected page (f294

Re: [PATCH] soundwire: cadence: fix race condition between suspend and Slave device alerts

2020-08-20 Thread Vinod Koul
On 19-08-20, 07:51, Pierre-Louis Bossart wrote: > > > On 8/19/20 4:06 AM, Vinod Koul wrote: > > On 18-08-20, 06:23, Bard Liao wrote: > > > From: Pierre-Louis Bossart > > > > > > In system suspend stress cases, the SOF CI reports timeouts. The root > > > cause is that an alert is generated while

Re: [PATCH 1/1] md: Simplify code with existing definition RESYNC_SECTORS in raid10.c

2020-08-20 Thread Song Liu
On Thu, Aug 20, 2020 at 6:29 PM Zhen Lei wrote: > > #define RESYNC_SECTORS (RESYNC_BLOCK_SIZE >> 9) > > "RESYNC_BLOCK_SIZE/512" is equal to "RESYNC_BLOCK_SIZE >> 9", replace it > with RESYNC_SECTORS. > > Signed-off-by: Zhen Lei Applied to md-next. Thanks!

linux-next: Tree for Aug 21

2020-08-20 Thread Stephen Rothwell
Hi all, Changes since 20200820: My fixes tree is empty again. The dma-mapping tree lost its qemu test boot failure. The bpf-next tree gained a build failure for which I disabled BPF_PRELOAD. The pinctrl-intel tree lost its build failure. Non-merge commits (relative to Linus' tree):

Re: [PATCH] soundwire: intel: fix CONFIG_PM and CONFIG_PM_SLEEP confusion

2020-08-20 Thread Vinod Koul
On 20-08-20, 22:04, Bard Liao wrote: > From: Pierre-Louis Bossart > > When CONFIG_PM_SLEEP is not defined, GCC throws compilation warnings: > > drivers/soundwire/intel.c:1816:12: warning: ‘intel_resume’ defined but > not used [-Wunused-function] > 1816 | static int intel_resume(struct device *d

Re: [PATCH] thermal: sysfs: Fall back to vmalloc() for cooling device's statistics

2020-08-20 Thread Viresh Kumar
On 21-08-20, 10:44, Yue Hu wrote: > From: Yue Hu > > We observed warning about kzalloc() when register thermal cooling device > in backlight_device_register(). backlight display can be a cooling device > since reducing screen brightness will can help reduce temperature. > > However, ->get_max_st

Re: [PATCH] lib: Convert test_printf.c to KUnit

2020-08-20 Thread Arpitha Raghunandan
On 17/08/20 12:36 pm, Rasmus Villemoes wrote: > On 17/08/2020 06.30, Arpitha Raghunandan wrote: >> Converts test lib/test_printf.c to KUnit. >> More information about KUnit can be found at >> https://www.kernel.org/doc/html/latest/dev-tools/kunit/index.html. >> KUnit provides a common framework for

Re: [PATCH v1 1/2] pinctrl: mediatek: support access registers without race-condition

2020-08-20 Thread Light Hsieh
On Wed, 2020-08-19 at 16:11 -0700, Sean Wang wrote: > Hi Light, > > On Tue, Aug 18, 2020 at 1:36 AM wrote: > > > > From: Light Hsieh > > > > Some MediaTek SOC provide more control registers other than value register. > > s/MT6765/Some MediaTek SoC/ > > > Generanll, a value register need read-m

Re: [PATCH] rtlwifi: switch from 'pci_' to 'dma_' API

2020-08-20 Thread Larry Finger
On 8/20/20 9:46 AM, Christophe JAILLET wrote: The wrappers in include/linux/pci-dma-compat.h should go away. The patch has been generated with the coccinelle script below and has been hand modified to replace GFP_ with a correct flag. It has been compile tested. The only file where some GFP_ fl

Re: [PATCH] memory: brcmstb_dpfe: fix array index out of bounds

2020-08-20 Thread kernel test robot
Hi Markus, I love your patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.9-rc1 next-20200820] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as doc

Re: [PATCH] iomap: Fix the write_count in iomap_add_to_ioend().

2020-08-20 Thread Ritesh Harjani
Hello Dave, Thanks for reviewing this. On 8/21/20 4:41 AM, Dave Chinner wrote: On Wed, Aug 19, 2020 at 03:58:41PM +0530, Anju T Sudhakar wrote: From: Ritesh Harjani __bio_try_merge_page() may return same_page = 1 and merged = 0. This could happen when bio->bi_iter.bi_size + len > UINT_MAX.

  1   2   3   4   5   6   7   8   9   10   >