Re: [PATCH v11 5/5] kdump: update Documentation about crashkernel

2020-08-10 Thread Dave Young
Hi, > > Previously I remember we talked about to use similar logic as X86, but I > > remember you mentioned on some arm64 platform there could be no low > > memory at all. Is this not a problem now for the fallback? Just be > > curious, thanks for the update, for the common part looks good. >

Announce loop-AES-v3.7r file/swap crypto package

2020-08-10 Thread Jari Ruusu
loop-AES changes since previous release: - Worked around kernel interface changes on 5.8 kernels bzip2 compressed tarball is here: http://loop-aes.sourceforge.net/loop-AES/loop-AES-v3.7r.tar.bz2 md5sum e264e305c829d002a7a94376789f4adc

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

2020-08-10 Thread Namjae Jeon
> > +#define TYPE_PRIMARY (TYPE_CRITICAL_PRI | TYPE_BENIGN_PRI) > +#define TYPE_SECONDARY (TYPE_CRITICAL_SEC | TYPE_BENIGN_SEC) > + > #define MAX_CHARSET_SIZE 6 /* max size of multi-byte character */ > #define MAX_NAME_LENGTH 255 /* max len of file name

Re: linux-next: manual merge of the set_fs tree with the powerpc tree

2020-08-10 Thread Christoph Hellwig
Hi Stephen, please drop my set_fs tree from linux-next. It is not going to be merged for 5.9 in this form. Thanks!

Re: [PATCH v6 08/18] nitro_enclaves: Add logic for creating an enclave VM

2020-08-10 Thread Alexander Graf
On 05.08.20 11:10, Andra Paraschiv wrote: Add ioctl command logic for enclave VM creation. It triggers a slot allocation. The enclave resources will be associated with this slot and it will be used as an identifier for triggering enclave run. Return a file descriptor, namely enclave fd. This

Re: arm64: imx8qm: tlb SW workaround for IMX8QM

2020-08-10 Thread Oliver Graute
On 27/04/20, Oliver Graute wrote: > On 27/04/20, Oliver Graute wrote: > > Hello, > > > > is this nxp software workaround already proposed to linux community? can > > someone point me to the discussion if available. > > > >

RE: [PATCH 1/2] exfat: add NameLength check when extracting name

2020-08-10 Thread Namjae Jeon
> The current implementation doesn't care NameLength when extracting the name > from Name dir-entries, so > the name may be incorrect. > (Without null-termination, Insufficient Name dir-entry, etc) Add a NameLength > check when extracting > the name from Name dir-entries to extract correct name.

Re: [PATCH v2] sched/fair: ignore cache hotness for SMT migration

2020-08-10 Thread Srikar Dronamraju
* Josh Don [2020-08-04 12:34:13]: > SMT siblings share caches, so cache hotness should be irrelevant for > cross-sibling migration. > > Proposed-by: Venkatesh Pallipadi > Signed-off-by: Josh Don > --- > kernel/sched/fair.c | 4 > 1 file changed, 4 insertions(+) > > diff --git

[PATCH] ALSA: echoaudio: Fix memory leak in snd_echo_resume()

2020-08-10 Thread Dinghao Liu
When restore_dsp_rettings() fails, chip should be freed just like when init_hw() and request_irq() fails. Fixes: 47b5d028fdce8 ("ALSA: Echoaudio - Add suspend support #2") Signed-off-by: Dinghao Liu --- sound/pci/echoaudio/echoaudio.c | 1 + 1 file changed, 1 insertion(+) diff --git

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

2020-08-10 Thread Namjae Jeon
> Add checksum validation for dir-entry set when getting it. > exfat_calc_dir_chksum_with_entry_set() also validates entry-type. > > ** This patch depends on: > '[PATCH v3] exfat: integrates dir-entry getting and validation' > > Signed-off-by: Tetsuhiro Kohada > --- > fs/exfat/dir.c | 34

RE: arm64: imx8qm: tlb SW workaround for IMX8QM

2020-08-10 Thread Jason Liu
> -Original Message- > From: Oliver Graute > Sent: Monday, August 10, 2020 2:13 PM > To: Jason Liu > Cc: Anson Huang ; Aisheng Dong > ; catalin.mari...@arm.com; w...@kernel.org; > dl-linux-imx ; linux-kernel@vger.kernel.org > Subject: Re: arm64: imx8qm: tlb SW workaround for IMX8QM >

[PATCH v2 3/3] perf bench numa: fix benchmark names

2020-08-10 Thread Alexander Gordeev
Standard benchmark names let users know the tests specifics. For example "2x1-bw-process" name tells that two processes one thread each are run and the RAM bandwidth is measured. Several benchmarks names do not correspond to their actual running configuration. Fix that and also some whitespace

[PATCH v2 0/3] perf bench numa: make possible testing on uneven and/or overlapping CPU ranges

2020-08-10 Thread Alexander Gordeev
This series allows running the tool on some configurations that do not conform to an assumption each node contains nr_cpus/nr_nodes CPUs at most. Instead, the actual node-to- CPU mapping is acquired dynamically. patch 1 fixes the described issue patches 2,3 are follow-up fixes Changes since v1:

[PATCH v2 1/3] perf bench numa: use numa_node_to_cpus() to bind tasks to nodes

2020-08-10 Thread Alexander Gordeev
It is currently assumed that each node contains at most nr_cpus/nr_nodes CPUs and node CPU ranges do not overlap. That assumption is generally incorrect as there are archs where a CPU number does not depend on to its node number. This update removes the described assumption by simply calling

[PATCH v2 2/3] perf bench numa: fix number of processes in "2x3-convergence" test

2020-08-10 Thread Alexander Gordeev
Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc: Mark Rutland Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Namhyung Kim Signed-off-by: Alexander Gordeev --- tools/perf/bench/numa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/bench/numa.c

[PATCH] docs/vm: fix 'mm_count' vs 'mm_users' counter confusion

2020-08-10 Thread Alexander Gordeev
In the context of the anonymous address space lifespan description the 'mm_users' reference counter is confused with 'mm_count'. I.e a "zombie" mm gets released when "mm_count" becomes zero, not "mm_users". Cc: Jonathan Corbet Cc: Andrew Morton Signed-off-by: Alexander Gordeev ---

[PATCH] mempolicy.h: fix typo

2020-08-10 Thread yanfei.xu
From: Yanfei Xu Change "interlave" to "interleave". Signed-off-by: Yanfei Xu --- include/linux/mempolicy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/mempolicy.h b/include/linux/mempolicy.h index ea9c15b60a96..4dc41428b095 100644 ---

RE: [PATCH v4 3/4] fpga: dfl: create a dfl bus type to support DFL devices

2020-08-10 Thread Wu, Hao
> > A new bus type "dfl" is introduced for private features which are not > initialized by DFL feature drivers (dfl-fme & dfl-afu drivers). So these > private features could be handled by separate driver modules. > > DFL feature drivers (dfl-fme, dfl-port) will create DFL devices on >

Re: linux-next: manual merge of the set_fs tree with the powerpc tree

2020-08-10 Thread Stephen Rothwell
Hi Christoph, On Mon, 10 Aug 2020 08:11:06 +0200 Christoph Hellwig wrote: > > please drop my set_fs tree from linux-next. It is not going to be > merged for 5.9 in this form. OK, done from tomorrow. -- Cheers, Stephen Rothwell pgpxA4T6L9eP2.pgp Description: OpenPGP digital signature

[PATCH] ALSA: pci/asihpi: Fix memory leak in snd_card_asihpi_capture_open()

2020-08-10 Thread Dinghao Liu
When snd_pcm_hw_constraint_pow2() fails, dpcm should be freed just like when hpi_instream_open() fails. Fixes: 719f82d3987aa ("ALSA: Add support of AudioScience ASI boards") Signed-off-by: Dinghao Liu --- sound/pci/asihpi/asihpi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff

Re: Non-deterministically boot into dark screen with `amdgpu`

2020-08-10 Thread Alexander Monakov
Hi, you should Сс a specialized mailing list and a relevant maintainer, otherwise your email is likely to be ignored as LKML is an incredibly high-volume list. Adding amd-gfx and Alex Deucher. More thoughts below. On Sun, 9 Aug 2020, Ignat Insarov wrote: > Hello! > > This is an issue report. 

Re: [PATCH] ALSA: echoaudio: Fix memory leak in snd_echo_resume()

2020-08-10 Thread Takashi Iwai
On Mon, 10 Aug 2020 08:14:58 +0200, Dinghao Liu wrote: > > When restore_dsp_rettings() fails, chip should be freed > just like when init_hw() and request_irq() fails. > > Fixes: 47b5d028fdce8 ("ALSA: Echoaudio - Add suspend support #2") > Signed-off-by: Dinghao Liu Actually it's rather wrong

Re: [PATCH] ALSA: pci/asihpi: Fix memory leak in snd_card_asihpi_capture_open()

2020-08-10 Thread Takashi Iwai
On Mon, 10 Aug 2020 08:39:55 +0200, Dinghao Liu wrote: > > When snd_pcm_hw_constraint_pow2() fails, dpcm should be freed > just like when hpi_instream_open() fails. It will be cleaned up via runtime->private_free call in the caller side (snd_pcm_open -> snd_pcm_release_substream ->

Re: [v2,5/6] reset-controller: ti: Introduce force-update method

2020-08-10 Thread Crystal Guo
On Tue, 2020-08-04 at 15:03 +0800, Philipp Zabel wrote: > Hi Crystal, > > On Mon, 2020-08-03 at 14:15 +0800, Crystal Guo wrote: > > Introduce force-update method for assert and deassert interface, > > which force the write operation in case the read already happens > > to return the correct

RE: [PATCH v4 4/4] fpga: dfl: add support for N3000 Nios private feature

2020-08-10 Thread Wu, Hao
> Subject: [PATCH v4 4/4] fpga: dfl: add support for N3000 Nios private feature > > This patch adds support for the Nios handshake private feature on Intel > N3000 FPGA Card. > > The terminology "Nios" stands for the NIOS II - 32 bit embedded soft > processor designed for FPGAs. This private

[PATCH] power: supply: sbs-battery: remove unused enable_detection flags

2020-08-10 Thread Ikjoon Jang
Remove unused enable_detection flag which is always true after the device is proved. Signed-off-by: Ikjoon Jang --- drivers/power/supply/sbs-battery.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/power/supply/sbs-battery.c b/drivers/power/supply/sbs-battery.c index

[PATCH] power: supply: sbs-battery: don't assume i2c errors as battery disconnect

2020-08-10 Thread Ikjoon Jang
Current sbs-battery considers all smbus errors as diconnection events when battery-detect pin isn't supplied, and restored to present state back on any successful transaction were made. This can leads to unlimited state changes between present and !present when one unsupported command was

Re: [PATCH 9/9] mfd: mt6360: Merge different sub-devices I2C read/write

2020-08-10 Thread Lee Jones
On Fri, 07 Aug 2020, Gene Chen wrote: > Mark Brown 於 2020年8月6日 週四 下午8:13寫道: > > > > On Thu, Aug 06, 2020 at 11:30:56AM +0800, Gene Chen wrote: > > > Mark Brown 於 2020年8月6日 週四 上午12:10寫道: > > > > > > It's not clear why this isn't just done in the device regmap, there's > > > > exactly one user? >

[PATCH] opp: Fix dev_pm_opp_set_rate() to not return early

2020-08-10 Thread Rajendra Nayak
dev_pm_opp_set_rate() can now be called with freq = 0 inorder to either drop performance or bandwidth votes or to disable regulators on platforms which support them. In such cases, a subsequent call to dev_pm_opp_set_rate() with the same frequency ends up returning early because 'old_freq == freq'

[PATCH v2 4/5] spi: stm32: fixes suspend/resume management

2020-08-10 Thread Alain Volmat
From: Amelie Delaunay This patch adds pinctrl power management, and reconfigure spi controller in case of resume. Fixes: 038ac869c9d2 ("spi: stm32: add runtime PM support") Signed-off-by: Amelie Delaunay Signed-off-by: Alain Volmat --- v2: identical to v1 drivers/spi/spi-stm32.c | 27

[PATCH v2 1/5] spi: stm32h7: fix race condition at end of transfer

2020-08-10 Thread Alain Volmat
From: Antonio Borneo The caller of stm32_spi_transfer_one(), spi_transfer_one_message(), is waiting for us to call spi_finalize_current_transfer() and will eventually schedule a new transfer, if available. We should guarantee that the spi controller is really available before calling

Re: [PATCH v7 06/13] pwm: add support for sl28cpld PWM controller

2020-08-10 Thread Lee Jones
On Fri, 07 Aug 2020, Michael Walle wrote: > Hi Uwe, Hi Lee, > > Am 2020-08-06 10:40, schrieb Uwe Kleine-König: > > On Mon, Aug 03, 2020 at 11:35:52AM +0200, Michael Walle wrote: > > > diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig > > > index 7dbcf6973d33..a0d50d70c3b9 100644 > > > ---

[PATCH v2 5/5] spi: stm32: always perform registers configuration prior to transfer

2020-08-10 Thread Alain Volmat
SPI registers content may have been lost upon suspend/resume sequence. So, always compute and apply the necessary configuration in stm32_spi_transfer_one_setup routine. Signed-off-by: Alain Volmat --- v2: identical to v1 drivers/spi/spi-stm32.c | 42 +-

[PATCH v2 2/5] spi: stm32: fix fifo threshold level in case of short transfer

2020-08-10 Thread Alain Volmat
From: Amelie Delaunay When transfer is shorter than half of the fifo, set the data packet size up to transfer size instead of up to half of the fifo. Check also that threshold is set at least to 1 data frame. Signed-off-by: Amelie Delaunay Signed-off-by: Alain Volmat --- v2: fix conditional

[PATCH v2 0/5] spi: stm32: various driver fixes

2020-08-10 Thread Alain Volmat
This serie is a reduced version of the serie [spi: stm32: various driver enhancements] previously sent. Alain Volmat (1): spi: stm32: always perform registers configuration prior to transfer Amelie Delaunay (3): spi: stm32: fix fifo threshold level in case of short transfer spi: stm32: fix

[PATCH v2 3/5] spi: stm32: fix stm32_spi_prepare_mbr in case of odd clk_rate

2020-08-10 Thread Alain Volmat
From: Amelie Delaunay Fix spi->clk_rate when it is odd to the nearest lowest even value because minimum SPI divider is 2. Signed-off-by: Amelie Delaunay Signed-off-by: Alain Volmat --- v2: identical to v1 drivers/spi/spi-stm32.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

[PATCH v5 04/10] powerpc/smp: Move topology fixups into a new function

2020-08-10 Thread Srikar Dronamraju
Move topology fixup based on the platform attributes into its own function which is called just before set_sched_topology. Cc: linuxppc-dev Cc: LKML Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Anton Blanchard Cc: Oliver O'Halloran Cc: Nathan Lynch Cc: Michael Neuling Cc: Gautham R Shenoy

[PATCH v5 06/10] powerpc/smp: Optimize start_secondary

2020-08-10 Thread Srikar Dronamraju
In start_secondary, even if shared_cache was already set, system does a redundant match for cpumask. This redundant check can be removed by checking if shared_cache is already set. While here, localize the sibling_mask variable to within the if condition. Cc: linuxppc-dev Cc: LKML Cc: Michael

[PATCH v5 10/10] powerpc/smp: Implement cpu_to_coregroup_id

2020-08-10 Thread Srikar Dronamraju
Lookup the coregroup id from the associativity array. If unable to detect the coregroup id, fallback on the core id. This way, ensure sched_domain degenerates and an extra sched domain is not created. Ideally this function should have been implemented in arch/powerpc/kernel/smp.c. However if its

[PATCH v5 05/10] powerpc/smp: Dont assume l2-cache to be superset of sibling

2020-08-10 Thread Srikar Dronamraju
Current code assumes that cpumask of cpus sharing a l2-cache mask will always be a superset of cpu_sibling_mask. Lets stop that assumption. cpu_l2_cache_mask is a superset of cpu_sibling_mask if and only if shared_caches is set. Cc: linuxppc-dev Cc: LKML Cc: Michael Ellerman Cc: Nicholas

[PATCH v5 00/10] Coregroup support on Powerpc

2020-08-10 Thread Srikar Dronamraju
Changelog v4->v5: v4: http://lore.kernel.org/lkml/20200727053230.19753-1-sri...@linux.vnet.ibm.com/t/#u Changelog v4 ->v5: powerpc/smp: Optimize start_secondary Retain cache domain, no need for generalization (Michael Ellerman, Peter Zijlstra, Valentin

[PATCH v5 09/10] powerpc/smp: Create coregroup domain

2020-08-10 Thread Srikar Dronamraju
Add percpu coregroup maps and masks to create coregroup domain. If a coregroup doesn't exist, the coregroup domain will be degenerated in favour of SMT/CACHE domain. Do note this patch is only creating stubs for cpu_to_coregroup_id. The actual cpu_to_coregroup_id implementation would be in a

[PATCH v5 08/10] powerpc/smp: Allocate cpumask only after searching thread group

2020-08-10 Thread Srikar Dronamraju
If allocated earlier and the search fails, then cpu_l1_cache_map cpumask is unnecessarily cleared. However cpu_l1_cache_map can be allocated / cleared after we search thread group. Please note CONFIG_CPUMASK_OFFSTACK is not set on Powerpc. Hence cpumask allocated by zalloc_cpumask_var_node is

[PATCH v5 07/10] powerpc/numa: Detect support for coregroup

2020-08-10 Thread Srikar Dronamraju
Add support for grouping cores based on the device-tree classification. - The last domain in the associativity domains always refers to the core. - If primary reference domain happens to be the penultimate domain in the associativity domains device-tree property, then there are no coregroups.

[PATCH v5 03/10] powerpc/smp: Move powerpc_topology above

2020-08-10 Thread Srikar Dronamraju
Just moving the powerpc_topology description above. This will help in using functions in this file and avoid declarations. No other functional changes Cc: linuxppc-dev Cc: LKML Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Anton Blanchard Cc: Oliver O'Halloran Cc: Nathan Lynch Cc: Michael

[PATCH 0/5] kasan: add workqueue and timer stack for generic KASAN

2020-08-10 Thread Walter Wu
Syzbot reports many UAF issues for workqueue or timer, see [1] and [2]. In some of these access/allocation happened in process_one_work(), we see the free stack is useless in KASAN report, it doesn't help programmers to solve UAF on workqueue. The same may stand for times. This patchset improves

Re: [PATCH net] drivers/net/wan/x25_asy: Added needed_headroom and a skb->len check

2020-08-10 Thread Willem de Bruijn
On Sun, Aug 9, 2020 at 8:08 PM Xie He wrote: > > On Sun, Aug 9, 2020 at 2:13 AM Willem de Bruijn > wrote: > > > > The patch is analogous to commit c7ca03c216ac > > ("drivers/net/wan/lapbether: Added needed_headroom and a skb->len > > check"). Acked-by: Willem de Bruijn > > > > Seems to make

Re: [PATCH v2 1/3] dt-bindings: media: ov772x: Document endpoint properties

2020-08-10 Thread Lad, Prabhakar
Hi Jacopo, Thank you for the review. On Thu, Aug 6, 2020 at 3:32 PM Jacopo Mondi wrote: > > Hi Prabhakar, > > On Mon, Aug 03, 2020 at 12:39:11PM +0100, Lad Prabhakar wrote: > > Document endpoint properties required for parallel interface > > > > Signed-off-by: Lad Prabhakar > > --- > >

[PATCH 1/5] timer: kasan: record and print timer stack

2020-08-10 Thread Walter Wu
This patch records the last two timer queueing stacks and prints up to 2 timer stacks in KASAN report. It is useful for programmers to solve use-after-free or double-free memory timer issues. When timer_setup() or timer_setup_on_stack() is called, then it prepares to use this timer and sets timer

[PATCH 2/2] lib/test_lockup.c: allow cond_resched inside iteration

2020-08-10 Thread Dmitry Monakhov
- New options: cond_resched_inside=Y call cond_resched inside iteration under lock measure_lockup=Y measure maximum lockup time - Rename option: call_cond_resched=Y -> cond_resched_outside=Y: call cond_resched() between iterations.

[PATCH 1/2] lib/test_lockup.c: add measure_alloc_pages_wait option

2020-08-10 Thread Dmitry Monakhov
measure_alloc_pages_wait=Y measure maximum page allocation wait time Signed-off-by: Dmitry Monakhov --- lib/test_lockup.c | 27 +-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/lib/test_lockup.c b/lib/test_lockup.c index 0f81252..867b2f4 100644 ---

Re: [PATCH v2 2/3] media: i2c: ov772x: Add support for BT656 mode

2020-08-10 Thread Lad, Prabhakar
Hi Jacopo, Thank you for the review. On Thu, Aug 6, 2020 at 3:41 PM Jacopo Mondi wrote: > > On Mon, Aug 03, 2020 at 12:39:12PM +0100, Lad Prabhakar wrote: > > Add support to read the bus-type and enable BT656 mode if needed. > > > > The driver defaults to parallel mode if bus-type is not

[PATCH 2/5] workqueue: kasan: record and print workqueue stack

2020-08-10 Thread Walter Wu
This patch records the last two enqueueing work call stacks on workqueue and prints up to 2 workqueue stacks in KASAN report. It is useful for programmers to solve use-after-free or double-free memory wq issue. When queue_work() is called, then queue the work into a workqueue, we store this call

Re: [GIT PULL] mtd: Changes for 5.9

2020-08-10 Thread Miquel Raynal
Hi Linus, Linus Torvalds wrote on Sun, 9 Aug 2020 12:47:01 -0700: > On Sat, Aug 8, 2020 at 3:35 PM Miquel Raynal > wrote: > > > > MTD core changes: > .. > > You didn't even mention the stm32 controller change, which seems to be > the biggest individual thing in here.. Oh sorry, I put it

[PATCH 3/5] lib/test_kasan.c: add timer test case

2020-08-10 Thread Walter Wu
Adds a test case to verify timer stack recording and print the last timer stack in KASAN report. The KASAN report was as follows(cleaned up slightly): BUG: KASAN: use-after-free in kasan_timer_uaf Freed by task 0: kasan_save_stack+0x24/0x50 kasan_set_track+0x24/0x38

Re: [PATCH v2 0/4] media: i2c: ov5640 feature enhancement and fixes

2020-08-10 Thread Lad, Prabhakar
Hi Jacopo, On Thu, Aug 6, 2020 at 3:44 PM Jacopo Mondi wrote: > > Hello, > > On Mon, Aug 03, 2020 at 03:31:43PM +0100, Lad Prabhakar wrote: > > Hi All, > > > > This patch series fixes DVP support and enables BT656 mode in > > the driver. > > > > @Jacopo Mondi - patch 1/4 will collide with your

[PATCH 4/5] lib/test_kasan.c: add workqueue test case

2020-08-10 Thread Walter Wu
Adds a test case to verify workqueue stack recording and print the last workqueue stack in KASAN report. The KASAN report was as follows(cleaned up slightly): BUG: KASAN: use-after-free in kasan_workqueue_uaf Freed by task 54: kasan_save_stack+0x24/0x50 kasan_set_track+0x24/0x38

[PATCH v5 01/10] powerpc/smp: Fix a warning under !NEED_MULTIPLE_NODES

2020-08-10 Thread Srikar Dronamraju
Fix a build warning in a non CONFIG_NEED_MULTIPLE_NODES "error: _numa_cpu_lookup_table_ undeclared" Cc: linuxppc-dev Cc: LKML Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Anton Blanchard Cc: Oliver O'Halloran Cc: Nathan Lynch Cc: Michael Neuling Cc: Gautham R Shenoy Cc: Ingo Molnar Cc:

[PATCH 5/5] kasan: update documentation for generic KASAN

2020-08-10 Thread Walter Wu
Generic KASAN support to record the last two timer and workqueue stacks and print them in KASAN report. So that need to update documentation. Signed-off-by: Walter Wu Cc: Andrey Ryabinin Cc: Dmitry Vyukov Cc: Alexander Potapenko Cc: Jonathan Corbet --- Documentation/dev-tools/kasan.rst | 4

Re: [PATCH v2 00/20] virtiofs: Add DAX support

2020-08-10 Thread Miklos Szeredi
On Fri, Aug 7, 2020 at 9:55 PM Vivek Goyal wrote: > > Most of the changes are limited to fuse/virtiofs. There are couple > of changes needed in generic dax infrastructure and couple of changes > in virtio to be able to access shared memory region. So what's the plan for merging the different

Re: [PATCH 1/8] mfd: mt6358: refine interrupt code

2020-08-10 Thread Lee Jones
On Mon, 03 Aug 2020, Hsin-hsiung Wang wrote: > Hi, > > On Mon, 2020-07-27 at 16:48 +0100, Lee Jones wrote: > > On Thu, 23 Jul 2020, Hsin-Hsiung Wang wrote: > > > > > This patch refines the interrupt related code to support new chips. > > > > Refines in what way? > > > > What makes this

Re: [PATCH v7 06/13] pwm: add support for sl28cpld PWM controller

2020-08-10 Thread Michael Walle
Am 2020-08-10 09:13, schrieb Lee Jones: On Fri, 07 Aug 2020, Michael Walle wrote: Hi Uwe, Hi Lee, Am 2020-08-06 10:40, schrieb Uwe Kleine-König: > On Mon, Aug 03, 2020 at 11:35:52AM +0200, Michael Walle wrote: > > diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig > > index

RE: [PATCH RFC v2 00/18] Add VFIO mediated device support and DEV-MSI support for the idxd driver

2020-08-10 Thread Tian, Kevin
> From: Jason Gunthorpe > Sent: Friday, August 7, 2020 8:20 PM > > On Wed, Aug 05, 2020 at 07:22:58PM -0600, Alex Williamson wrote: > > > If you see this as an abuse of the framework, then let's identify those > > specific issues and come up with a better approach. As we've discussed > >

Re: [PATCH] power: supply: sbs-battery: don't assume i2c errors as battery disconnect

2020-08-10 Thread Nicolas Boichat
On Mon, Aug 10, 2020 at 3:02 PM Ikjoon Jang wrote: > > Current sbs-battery considers all smbus errors as diconnection events > when battery-detect pin isn't supplied, and restored to present state back > on any successful transaction were made. > > This can leads to unlimited state changes

Re: [PATCH net] drivers/net/wan/lapbether: Added needed_tailroom

2020-08-10 Thread Willem de Bruijn
On Sun, Aug 9, 2020 at 7:12 PM Xie He wrote: > > On Sun, Aug 9, 2020 at 1:48 AM Willem de Bruijn > wrote: > > > > Does this solve an actual observed bug? > > > > In many ways lapbeth is similar to tunnel devices. This is not common. > > Thank you for your comment! > > This doesn't solve a bug

Re: [PATCH v11 12/12] dmaengine: imx-sdma: add uart rom script

2020-08-10 Thread Frieder Schrempf
Hi Robin, On 24.07.20 20:51, Robin Gong wrote: For the compatibility of NXP internal legacy kernel before 4.19 which is based on uart ram script and upstreaming kernel based on uart rom script, add both uart ram/rom script in latest sdma firmware. By default uart rom script used. Besides, add

Re: [PATCH] mm: sort freelist by rank number

2020-08-10 Thread David Hildenbrand
On 07.08.20 09:08, Pekka Enberg wrote: > Hi Cho and David, > > On Mon, Aug 3, 2020 at 10:57 AM David Hildenbrand wrote: >> >> On 03.08.20 08:10, pullip@samsung.com wrote: >>> From: Cho KyongHo >>> >>> LPDDR5 introduces rank switch delay. If three successive DRAM accesses >>> happens and the

Re: [PATCH v6 09/18] nitro_enclaves: Add logic for setting an enclave vCPU

2020-08-10 Thread Alexander Graf
On 05.08.20 11:10, Andra Paraschiv wrote: An enclave, before being started, has its resources set. One of its resources is CPU. A NE CPU pool is set and enclave CPUs are chosen from it. Offline the CPUs from the NE CPU pool during the pool setup and online them back during the NE CPU pool

Re: [PATCH][next][V2] staging: wfx: fix a handful of spelling mistakes

2020-08-10 Thread Jérôme Pouiller
On Thursday 6 August 2020 12:47:01 CEST Colin King wrote: > From: Colin Ian King > > There are various spelling mistakes in comments and error messages. > Fix these. > > Signed-off-by: Colin Ian King > --- > > V2: add in some more fixes as spotted by Randy Dunlap > > --- >

[PATCH v5 02/10] powerpc/smp: Merge Power9 topology with Power topology

2020-08-10 Thread Srikar Dronamraju
A new sched_domain_topology_level was added just for Power9. However the same can be achieved by merging powerpc_topology with power9_topology and makes the code more simpler especially when adding a new sched domain. Cc: linuxppc-dev Cc: LKML Cc: Michael Ellerman Cc: Nicholas Piggin Cc:

Re: [PATCH v2 2/4] media: i2c: ov5640: Enable data pins on poweron for DVP mode

2020-08-10 Thread Lad, Prabhakar
Hi Jacopo, Thank you for the review. On Fri, Aug 7, 2020 at 9:42 AM Jacopo Mondi wrote: > > Hi Prabhakar, >+ Paul who is working with this chip on a parallel setup > > On Thu, Aug 06, 2020 at 05:38:57PM +0100, Lad, Prabhakar wrote: > > Hi Jacopo, > > > > Thank you for the review. > > > > On

Re: [PATCH v19 09/15] mm/damon: Implement a debugfs interface

2020-08-10 Thread SeongJae Park
On Tue, 4 Aug 2020 11:14:10 +0200 SeongJae Park wrote: > From: SeongJae Park > > This commit implements a debugfs interface for DAMON. It works for the > virtual address spaces monitoring. [...] > + > +#define targetid_is_pid(ctx) \ > + (ctx->target_valid == kdamond_vm_target_valid) > +

Re: [PATCH] mm/memcg: remove useless check on page->mem_cgroup

2020-08-10 Thread Alex Shi
在 2020/8/9 上午5:43, Roman Gushchin 写道: >>> mm/memcontrol.c | 6 ++ >>> 1 file changed, 6 insertions(+) >>> >>> diff --git a/mm/memcontrol.c b/mm/memcontrol.c >>> index cb07a48d53aa..65f2b42d25af 100644 >>> --- a/mm/memcontrol.c >>> +++ b/mm/memcontrol.c >>> @@ -7163,6 +7163,9 @@ void

Re: [PATCH] fix arm64 build with lack of __cpu_logical_map exported

2020-08-10 Thread Sudeep Holla
Hi Catalin, On Sat, Aug 08, 2020 at 04:05:00PM +0100, Catalin Marinas wrote: > Hi Greg, > > On Sat, Aug 08, 2020 at 02:42:42PM +0200, Greg Kroah-Hartman wrote: > > diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c > > index 87e81d29e6fb..b421a4756793 100644 > > ---

Re: KMSAN: kernel-infoleak in raw_ioctl

2020-08-10 Thread Greg KH
On Sun, Aug 09, 2020 at 09:27:18AM -0700, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit:ce8056d1 wip: changed copy_from_user where instrumented > git tree: https://github.com/google/kmsan.git master > console output:

drivers/scsi/3w-sas.c:1245:27: sparse: sparse: incorrect type in argument 1 (different address spaces)

2020-08-10 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: fc80c51fd4b23ec007e88d4c688f2cac1b8648e7 commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces date: 8 weeks ago config: mips-randconfig-s032-20200810 (attached

Re: [PATCH 1/2] arm: dts: mt7623: move more display-related nodes to mt7623n.dtsi

2020-08-10 Thread David Woodhouse
On Sun, 2020-08-09 at 08:16 +0800, Chun-Kuang Hu wrote: > I would like to put all device in mt7623.dtsi with some device's > status is "disabled" and change its status in platform dtsi. > I would like to see all device in mt7623.dtsi because of its name. If > you move some device to platform dtsi,

Re: [PATCH -next] arm64: Export __cpu_logical_map

2020-08-10 Thread Sudeep Holla
On Sat, Aug 01, 2020 at 05:46:43PM +0530, Sumit Gupta wrote: > > > > > > > ERROR: modpost: "__cpu_logical_map" > > > > > > [drivers/cpufreq/tegra194-cpufreq.ko] undefined! > > > > > > > > > > > > ARM64 tegra194-cpufreq driver use cpu_logical_map, export > > > > > > __cpu_logical_map to fix build

Re: [PATCH] tty/vt: fix a memory leak in con_insert_unipair

2020-08-10 Thread Greg Kroah-Hartman
On Mon, Aug 10, 2020 at 07:16:48AM +0200, Jiri Slaby wrote: > On 10. 08. 20, 0:14, James Bond wrote: > > Syzkaller find a memory leak in con_insert_unipair: > > BUG: memory leak > > unreferenced object 0x88804893d100 (size 256): > > comm "syz-executor.3", pid 16154, jiffies

Re: [PATCH] dt-bindings: iommu: renesas,ipmmu-vmsa: Sort compatible string in increasing number of the SoC

2020-08-10 Thread Geert Uytterhoeven
On Sun, Aug 9, 2020 at 9:35 PM Lad Prabhakar wrote: > Sort the items in the compatible string list in increasing number of SoC. > > Signed-off-by: Lad Prabhakar As my previous tag was conditional on fixing the sort order: Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s,

Re: [kbuild-all] Re: drivers/virtio/virtio_mem.c:1031 virtio_mem_mb_plug_any_sb() error: uninitialized symbol 'rc'.

2020-08-10 Thread David Hildenbrand
On 10.08.20 04:24, Rong Chen wrote: > > > On 8/8/20 8:44 PM, David Hildenbrand wrote: >> >>> Am 08.08.2020 um 13:39 schrieb kernel test robot : >>> >>> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git >>> master >>> head: 449dc8c97089a6e09fb2dac4d92b1b7ac0eb7c1e >>>

[PATCH] x86/resctrl: fix spelling mistake "Could't" -> "Couldn't"

2020-08-10 Thread Colin King
From: Colin Ian King There are spelling mistakes in pr_warn messages. Fix these. Signed-off-by: Colin Ian King --- arch/x86/kernel/cpu/resctrl/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/cpu/resctrl/core.c

Re: [PATCH v4 0/6] mm / virtio-mem: support ZONE_MOVABLE

2020-08-10 Thread David Hildenbrand
On 04.08.20 21:41, David Hildenbrand wrote: > @Andrew can we give this a churn and consider it for v5.9 in case there > are no more comments? @Andrew, Ping, so I assume we'll target v5.10? > > Patch #1-#4,#6 have RBss or ACKs, patch #5 is virtio-mem stuff maintained > by me (and MST is aware).

Re: [PATCH v3 35/38] virtio_mem: convert to LE accessors

2020-08-10 Thread David Hildenbrand
On 05.08.20 15:44, Michael S. Tsirkin wrote: > Virtio mem is modern-only. Use LE accessors for config space. > > Signed-off-by: Michael S. Tsirkin > --- > drivers/virtio/virtio_mem.c | 30 +++--- > 1 file changed, 15 insertions(+), 15 deletions(-) > > diff --git

[PATCH] RDMA/core: fix spelling mistake "Could't" -> "Couldn't"

2020-08-10 Thread Colin King
From: Colin Ian King There is a spelling mistake in a pr_warn message. Fix it. Signed-off-by: Colin Ian King --- drivers/infiniband/core/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/core/device.c b/drivers/infiniband/core/device.c index

Re: [PATCH] ASoC: fsl_sai: Add -EPROBE_DEFER check for regmap init

2020-08-10 Thread Nicolin Chen
On Fri, Aug 07, 2020 at 05:14:42PM +0800, Shengjiu Wang wrote: > Regmap initialization may return -EPROBE_DEFER for clock > may not be ready, so check -EPROBE_DEFER error type before > start another Regmap initialization. > > Signed-off-by: Shengjiu Wang > --- > sound/soc/fsl/fsl_sai.c | 2 +- >

Re: [RFC PATCH v2 2/2] dt-bindings: cpufreq: Document Krait CPU Cache scaling

2020-08-10 Thread Sudeep Holla
On Sat, Aug 08, 2020 at 01:49:12AM +0200, Ansuel Smith wrote: > Document dedicated Krait CPU Cache Scaling driver. > > Signed-off-by: Ansuel Smith > --- > .../bindings/cpufreq/krait-cache-scale.yaml | 92 +++ > 1 file changed, 92 insertions(+) > create mode 100644 >

Re: [PATCH] iio: imu: inv_mpu6050: check for temp_fifo_enable

2020-08-10 Thread Andy Shevchenko
On Sun, Aug 9, 2020 at 7:00 PM wrote: > > From: Tom Rix > > clang static analysis reports this problem > > inv_mpu_ring.c:181:18: warning: Division by zero > nb = fifo_count / bytes_per_datum; > ~~~^ > > This is a false positive. > Dividing by 0 is

[PATCH] ms_block: fix spelling mistake "doesn'" -> "doesn't"

2020-08-10 Thread Colin King
From: Colin Ian King There is a spelling mistake in a debug message. Fix it. Signed-off-by: Colin Ian King --- drivers/memstick/core/ms_block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/memstick/core/ms_block.c b/drivers/memstick/core/ms_block.c index

Re: [PATCH] loop: unset GENHD_FL_NO_PART_SCAN on LOOP_CONFIGURE

2020-08-10 Thread Martijn Coenen
On Fri, Aug 7, 2020 at 5:31 PM Lennart Poettering wrote: > Thanks for the review. I'll fix this up and send a v2. Are you OK with > me adding your Ack to the patch? Yeah, sure! > And also should this geta cc for stable? LOOP_CONFIGURE was just added in v5.8, and stable is v5.7 now, so I don't

[PATCH] kcsan: Optimize debugfs stats counters

2020-08-10 Thread Marco Elver
Remove kcsan_counter_inc/dec() functions, as they perform no other logic, and are no longer needed. This avoids several calls in kcsan_setup_watchpoint() and kcsan_found_watchpoint(), as well as lets the compiler warn us about potential out-of-bounds accesses as the array's size is known at all

Re: WARNING in rcu_irq_exit

2020-08-10 Thread Vitaly Kuznetsov
syzbot writes: > Hello, > > syzbot found the following issue on: > > HEAD commit:47ec5303 Merge git://git.kernel.org/pub/scm/linux/kernel/g.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=17228c6290 > kernel config:

Re: [RFC PATCH 1/8] fs: introduce get_shared_files() for dax

2020-08-10 Thread Ruan Shiyang
On 2020/8/8 上午12:15, Darrick J. Wong wrote: On Fri, Aug 07, 2020 at 09:13:29PM +0800, Shiyang Ruan wrote: Under the mode of both dax and reflink on, one page may be shared by multiple files and offsets. In order to track them in memory-failure or other cases, we introduce this function by

[PATCH] scsi: snic: fix spelling mistakes of "Queueing"

2020-08-10 Thread Colin King
From: Colin Ian King There are two different spelling mistakes of "Queueing" in error and debug messages. Fix these. Signed-off-by: Colin Ian King --- drivers/scsi/snic/snic_scsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/snic/snic_scsi.c

[PATCH] mm/slub: remove useless kmem_cache_debug

2020-08-10 Thread wuyun.wu
From: Abel Wu The commit below is incomplete, as it didn't handle the add_full() part. commit a4d3f8916c65 ("slub: remove useless kmem_cache_debug() before remove_full()") Signed-off-by: Abel Wu --- mm/slub.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mm/slub.c

Re: [PATCH] kcsan: Treat runtime as NMI-like with interrupt tracing

2020-08-10 Thread Marco Elver
On Fri, 7 Aug 2020 at 19:06, Paul E. McKenney wrote: > On Fri, Aug 07, 2020 at 11:00:31AM +0200, Marco Elver wrote: > > Since KCSAN instrumentation is everywhere, we need to treat the hooks > > NMI-like for interrupt tracing. In order to present an as 'normal' as > > possible context to the code

Re: [PATCH] iio: imu: st_lsm6dsx: check st_lsm6dsx_shub_read_output return

2020-08-10 Thread Andy Shevchenko
On Sun, Aug 9, 2020 at 8:56 PM wrote: > > From: Tom Rix > > clang static analysis reports this represenative problem > > st_lsm6dsx_shub.c:540:8: warning: Assigned value is garbage or undefined > *val = (s16)le16_to_cpu(*((__le16 *)data)); > ^

Re: [PATCH RESEND for-5.9] MIPS: KVM: Convert a fallthrough comment to fallthrough

2020-08-10 Thread Paolo Bonzini
On 10/08/20 03:17, Jiaxun Yang wrote: > There is a fallthrough comment being forgotten, > GCC complains about it: > > arch/mips/kvm/emulate.c: In function kvm_mips_emulate_load: > arch/mips/kvm/emulate.c:1936:21: error: this statement may fall through > 1936 | vcpu->mmio_needed = 1; /*

Re: [PATCH v2 1/2] ASoC: mediatek: mt6359: add codec driver

2020-08-10 Thread Tzung-Bi Shih
On Mon, Aug 10, 2020 at 11:11 AM Jiaxin Yu wrote: > > Add the mt6359 codec driver. > > Signed-off-by: Jiaxin Yu Reviewed-by: Tzung-Bi Shih This patch also reviewed few rounds on https://crrev.com/c/2299951

Re: [PATCH] tty/vt: fix a memory leak in con_insert_unipair

2020-08-10 Thread Jiri Slaby
On 10. 08. 20, 9:51, Greg Kroah-Hartman wrote: > On Mon, Aug 10, 2020 at 07:16:48AM +0200, Jiri Slaby wrote: >> On 10. 08. 20, 0:14, James Bond wrote: >>> Syzkaller find a memory leak in con_insert_unipair: >>> BUG: memory leak >>> unreferenced object 0x88804893d100 (size 256): >>>

  1   2   3   4   5   6   7   8   9   10   >