Re: [PATCHv4 00/19] perf metric: Add support to reuse metric

2020-08-01 Thread Paul A. Clarke
On Wed, Jul 29, 2020 at 11:18:49AM +0200, Jiri Olsa wrote: > this patchset is adding the support to reused metric in > another metric. > > For example, to define IPC by using CPI with change like: > > { > "BriefDescription": "Instructions Per Cycle (per Logical Processor)", > -

Re: [Linux-kernel-mentees] [PATCH v2] ptrace: Prevent kernel-infoleak in ptrace_get_syscall_info()

2020-08-01 Thread Dmitry V. Levin
On Fri, Jul 31, 2020 at 10:08:41PM -0400, Peilin Ye wrote: > ptrace_get_syscall_info() is potentially copying uninitialized stack > memory to userspace, since the compiler may leave a 3-byte hole near the > beginning of `info`. Fix it by adding a padding field to `struct > ptrace_syscall_info`. >

Re: [PATCH 0/2] Fix st7703 panel initialization failures

2020-08-01 Thread Guido Günther
Hi Ondřej, On Thu, Jul 30, 2020 at 03:41:11PM +0200, Ondřej Jirman wrote: > Hello, > > On Wed, Jul 29, 2020 at 05:48:09PM +0200, Guido Günther wrote: > > Hi, > > On Sat, Jul 18, 2020 at 07:42:15PM +0200, Ondřej Jirman wrote: > > > Hello, > > > > > > On Sat, Jul 18, 2020 at 07:31:24PM +0200,

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

2020-08-01 Thread Stephen Rothwell
Hi all, In commit 1acf8f90ea7e ("libbpf: Fix register in PT_REGS MIPS macros") Fixes tag Fixes: c1932cd ("bpf: Add MIPS support to samples/bpf.") has these problem(s): - SHA1 should be at least 12 digits long Can be fixed by setting core.abbrev to 12 (or more) or (for git v2.11

Re: [PATCH v5 3/3] dt-bindings: arm: fsl: Add the librem 5 phone

2020-08-01 Thread Martin Kepplinger
On 31.07.20 21:35, Rob Herring wrote: > On Fri, 31 Jul 2020 10:27:25 +0200, Martin Kepplinger wrote: >> Add entries for the imx8mq based Librem 5 phone. The "Birch" and >> "Chestnut" hardware revisions are supported by r2. The "Dogwood" >> revision by r3. >> See https://puri.sm/products/librem-5/

Re: [PATCH 06/15] powerpc: fadamp: simplify fadump_reserve_crash_area()

2020-08-01 Thread Hari Bathini
On 01/08/20 3:48 pm, Mike Rapoport wrote: On Thu, Jul 30, 2020 at 10:15:13PM +1000, Michael Ellerman wrote: Mike Rapoport writes: From: Mike Rapoport fadump_reserve_crash_area() reserves memory from a specified base address till the end of the RAM. Replace iteration through the

Re: [PATCH] fs: optimise kiocb_set_rw_flags()

2020-08-01 Thread Pavel Begunkov
On 01/08/2020 13:36, Pavel Begunkov wrote: > Use a local var to collect flags in kiocb_set_rw_flags(). That spares > some memory writes and allows to replace most of the jumps with MOVEcc. This one is pretty old, but looks like nobody in fsdevel cares. Jens, any chance you can pick this up? For

[PATCH] fs: optimise kiocb_set_rw_flags()

2020-08-01 Thread Pavel Begunkov
Use a local var to collect flags in kiocb_set_rw_flags(). That spares some memory writes and allows to replace most of the jumps with MOVEcc. Signed-off-by: Pavel Begunkov --- v2: fast exit on flags == 0 (Matthew Wilcox) include/linux/fs.h | 16 +++- 1 file changed, 11

Re: Patch "f2fs: fix to avoid memory leakage in f2fs_listxattr" has been added to the 4.9-stable tree

2020-08-01 Thread Greg KH
On Fri, Jul 31, 2020 at 09:08:27PM -0400, Sasha Levin wrote: > This is a note to let you know that I've just added the patch titled > > f2fs: fix to avoid memory leakage in f2fs_listxattr > > to the 4.9-stable tree which can be found at: > >

Re: Patch "f2fs: check if file namelen exceeds max value" has been added to the 4.4-stable tree

2020-08-01 Thread Greg KH
On Fri, Jul 31, 2020 at 09:08:38PM -0400, Sasha Levin wrote: > This is a note to let you know that I've just added the patch titled > > f2fs: check if file namelen exceeds max value > > to the 4.4-stable tree which can be found at: > >

Re: Patch "f2fs: check memory boundary by insane namelen" has been added to the 4.9-stable tree

2020-08-01 Thread Greg KH
On Fri, Jul 31, 2020 at 09:08:24PM -0400, Sasha Levin wrote: > This is a note to let you know that I've just added the patch titled > > f2fs: check memory boundary by insane namelen > > to the 4.9-stable tree which can be found at: > >

Re: Patch "f2fs: check memory boundary by insane namelen" has been added to the 4.14-stable tree

2020-08-01 Thread Greg KH
On Fri, Jul 31, 2020 at 09:08:10PM -0400, Sasha Levin wrote: > This is a note to let you know that I've just added the patch titled > > f2fs: check memory boundary by insane namelen > > to the 4.14-stable tree which can be found at: > >

Re: Patch "f2fs: check memory boundary by insane namelen" has been added to the 4.4-stable tree

2020-08-01 Thread Greg KH
On Fri, Jul 31, 2020 at 09:08:37PM -0400, Sasha Levin wrote: > This is a note to let you know that I've just added the patch titled > > f2fs: check memory boundary by insane namelen > > to the 4.4-stable tree which can be found at: > >

Re: xfs_reclaim_inodes_ag taking several seconds

2020-08-01 Thread Donald Buczek
On 01.08.20 00:32, Dave Chinner wrote: On Fri, Jul 31, 2020 at 01:27:31PM +0200, Donald Buczek wrote: Dear Linux people, we have a backup server with two xfs filesystems on 101.9TB md-raid6 devices (16 * 7.3 T disks) each, Current Linux version is 5.4.54. .

Re: [PATCH 06/15] powerpc: fadamp: simplify fadump_reserve_crash_area()

2020-08-01 Thread Mike Rapoport
On Thu, Jul 30, 2020 at 10:15:13PM +1000, Michael Ellerman wrote: > Mike Rapoport writes: > > From: Mike Rapoport > > > > fadump_reserve_crash_area() reserves memory from a specified base address > > till the end of the RAM. > > > > Replace iteration through the memblock.memory with a single

Re: [PATCH] splice: direct call for default_file_splice*()

2020-08-01 Thread Pavel Begunkov
On 30/01/2020 19:54, Christoph Hellwig wrote: > On Mon, Jan 20, 2020 at 11:49:46PM +0300, Pavel Begunkov wrote: >> Indirect calls could be very expensive nowadays, so try to use direct calls >> whenever possible. Hah, I'm surprised to find it as 00c285d0d0fe4 ("fs: simplify do_splice_from").

Re: [PATCH] staging: r8188eu: replace rtw_netdev_priv define with inline function

2020-08-01 Thread Greg Kroah-Hartman
On Sat, Aug 01, 2020 at 12:47:07PM +0300, Ivan Safonov wrote: > The function guarantees type checking of arguments and return value. > > Signed-off-by: Ivan Safonov > --- > drivers/staging/rtl8188eu/include/osdep_service.h | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff

[PATCH] netlink: remove duplicated nla_need_padding_for_64bit() check

2020-08-01 Thread linmiaohe
From: Miaohe Lin The need for padding 64bit is implicitly checked by nla_align_64bit(), so remove this explicit one. Signed-off-by: Miaohe Lin --- lib/nlattr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/nlattr.c b/lib/nlattr.c index bc5b5cf608c4..98f596bfbfd8

[PATCH] staging: r8188eu: replace rtw_netdev_priv define with inline function

2020-08-01 Thread Ivan Safonov
The function guarantees type checking of arguments and return value. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/osdep_service.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/osdep_service.h

Re: [PATCH] ALSA: seq: KASAN: use-after-free Read in delete_and_unsubscribe_port

2020-08-01 Thread Takashi Iwai
On Sat, 01 Aug 2020 08:24:03 +0200, wrote: > > From: Zhang Qiang > > There is a potential race window,when a task acquire "src->list_mutex" > write sem,traverse the linked list to find "subs" objects through > parameter "info" in snd_seq_port_disconnect and then release this > write sem,

Re: [PATCH] ALSA: docs: fix typo

2020-08-01 Thread Takashi Iwai
On Fri, 31 Jul 2020 21:35:29 +0200, Julia Lawall wrote: > > GFP_KRENEL -> GFP_KERNEL > > Signed-off-by: Julia Lawall Applied, thanks. Takashi

[PATCH] clk: drop unused function __clk_get_flags

2020-08-01 Thread Julia Lawall
The function __clk_get_flags has not been used since the April 2019 commit a348f05361c9 ("ARM: omap2+: hwmod: drop CLK_IS_BASIC flag usage"). Other uses were removed in June 2015, eg by commit 98d8a60eccee ("clk: Convert __clk_get_flags() to clk_hw_get_flags()"), which shows how clk_hw_get_flags

Re: [PATCH] ALSA: doc: use correct config variable name

2020-08-01 Thread Takashi Iwai
On Fri, 31 Jul 2020 21:28:21 +0200, Julia Lawall wrote: > > CONFIG_PCM_XRUN_DEBUG should be CONFIG_SND_PCM_XRUN_DEBUG > > Signed-off-by: Julia Lawall Applied, thanks. Takashi

[PATCH] net: Pass NULL to skb_network_protocol() when we don't care about vlan depth

2020-08-01 Thread linmiaohe
From: Miaohe Lin When we don't care about vlan depth, we could pass NULL instead of the address of a unused local variable to skb_network_protocol() as a param. Signed-off-by: Miaohe Lin --- net/core/skbuff.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH] net: Use __skb_pagelen() directly in skb_cow_data()

2020-08-01 Thread linmiaohe
From: Miaohe Lin In fact, skb_pagelen() - skb_headlen() is equal to __skb_pagelen(), use it directly to avoid unnecessary skb_headlen() call. Also fix the CHECK note of checkpatch.pl: Comparison to NULL could be written "!__pskb_pull_tail" Signed-off-by: Miaohe Lin --- net/core/skbuff.c

Re: [PATCH] vgaarb: mark vga_tryget static

2020-08-01 Thread daniel
On Sat, Aug 01, 2020 at 08:17:13AM +0200, Christoph Hellwig wrote: > This symbols isn't used anywhere outside of vgaarb.c. > > Signed-off-by: Christoph Hellwig Nice catch, patch queued up for 5.9. Thanks, Daniel > --- > drivers/gpu/vga/vgaarb.c | 3 +-- > include/linux/vgaarb.h | 6 --

Re: [PATCH v3 2/2] ASoC: Intel: Add period size constraint on strago board

2020-08-01 Thread Takashi Iwai
On Sat, 01 Aug 2020 10:58:16 +0200, Lu, Brent wrote: > > > > > Again, is this fixed 240 is a must? Or is this also an alignment issue? > Hi Takashi, > > I think it's a must for Chromebooks. Google found this value works best > with their CRAS server running on their BSW products. They offered

Re: [PATCH 1/2] dt-bindings: media: renesas,vin: Document renesas-vin-ycbcr-8b-g property

2020-08-01 Thread Niklas
Hi Lad, On 2020-07-25 23:23:13 +0100, Lad, Prabhakar wrote: > Hi Niklas, > > On Sat, Jul 25, 2020 at 9:11 AM Niklas wrote: > > > > Hi Lad, > > > > On 2020-07-24 22:11:31 +0100, Lad, Prabhakar wrote: > > > Hi Niklas, > > > > > > Thank you for the review. > > > > > > On Fri, Jul 24, 2020 at 8:37

[PATCH] nl80211: use eth_zero_addr() to clear mac address

2020-08-01 Thread linmiaohe
From: Miaohe Lin Use eth_zero_addr() to clear mac address instead of memset(). Signed-off-by: Miaohe Lin --- net/wireless/nl80211.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 7fbca0854265..c88f9d09cb25 100644 ---

[PATCH] net: qed: use eth_zero_addr() to clear mac address

2020-08-01 Thread linmiaohe
From: Miaohe Lin Use eth_zero_addr() to clear mac address instead of memset(). Signed-off-by: Miaohe Lin --- drivers/net/ethernet/qlogic/qed/qed_sriov.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/qlogic/qed/qed_sriov.c

[PATCH] net: qede: use eth_zero_addr() to clear mac address

2020-08-01 Thread linmiaohe
From: Miaohe Lin Use eth_zero_addr() to clear mac address instead of memset(). Signed-off-by: Miaohe Lin --- drivers/net/ethernet/qlogic/qede/qede_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/qlogic/qede/qede_main.c

[PATCH] mac80211: use eth_zero_addr() to clear mac address

2020-08-01 Thread linmiaohe
From: Miaohe Lin Use eth_zero_addr() to clear mac address instead of memset(). Signed-off-by: Miaohe Lin --- net/mac80211/trace.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/mac80211/trace.h b/net/mac80211/trace.h index 1b4709694d2a..50ab5b9d8eab 100644 ---

[PATCH] mm, mempolicy: Check parameters first in kernel_get_mempolicy

2020-08-01 Thread Wenchao Hao
Previous implement called untagged_addr before error check, while if the error check failed and return EINVAL, the untagged_addr is just useless work. Signed-off-by: Wenchao Hao --- mm/mempolicy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/mempolicy.c

Re: [PATCH] media: rcar-vin: Update crop and compose settings for every s_fmt call

2020-08-01 Thread Niklas
Hi Lad, Thanks for your work. On 2020-07-31 10:29:05 +0100, Lad Prabhakar wrote: > The crop and compose settings for VIN in non mc mode werent updated > in s_fmt call this resulted in captured images being clipped. > > With the below sequence on the third capture where size is set to > 640x480

[PATCH] net: core: explicitly call linkwatch_fire_event to speed up the startup of network services

2020-08-01 Thread Wen Yang
The linkwatch_event work queue runs up to one second later. When the MicroVM starts, it takes 300+ms for the ethX flag to change from '+UP +LOWER_UP' to '+RUNNING', as follows: Jul 20 22:00:47.432552 systemd-networkd[210]: eth0: bringing link up ... Jul 20 22:00:47.446108 systemd-networkd[210]:

RE: [PATCH v3 2/2] ASoC: Intel: Add period size constraint on strago board

2020-08-01 Thread Lu, Brent
> > Again, is this fixed 240 is a must? Or is this also an alignment issue? Hi Takashi, I think it's a must for Chromebooks. Google found this value works best with their CRAS server running on their BSW products. They offered this patch for their own Chromebooks. > > > thanks, > > Takashi

Greetings from Mrs Elodie Antoine,

2020-08-01 Thread Mrs Elodie Antoine
Greetings from Mrs Elodie Antoine, Calvary Greetings in the name of the LORD Almighty and Our LORD JESUS CHRIST the giver of every good thing. Good day,i know this letter will definitely come to you as a huge surprise, but I implore you to take the time to go through it carefully as the

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

2020-08-01 Thread Lad, Prabhakar
Hi Sakari, Thank you for the review. On Fri, Jul 31, 2020 at 5:03 PM Sakari Ailus wrote: > > Hi Prabhakar, > > On Fri, Jul 24, 2020 at 04:08:15PM +0100, Lad Prabhakar wrote: > > Add support to read the bus-type and enable BT656 mode if needed. > > > > Signed-off-by: Lad Prabhakar > >

Re: [PATCH 1/2] media: i2c: ov5640: Enable data pins on startup for DVP mode

2020-08-01 Thread Lad, Prabhakar
Hi Laurent On Fri, Jul 31, 2020 at 4:32 PM Laurent Pinchart wrote: > > Hi Prabhakar, > > On Fri, Jul 31, 2020 at 02:18:12PM +0100, Lad, Prabhakar wrote: > > On Fri, Jul 31, 2020 at 2:03 PM Sakari Ailus wrote: > > > On Fri, Jul 31, 2020 at 10:24:46AM +0100, Lad Prabhakar wrote: > > > > During

[PATCH bpf-next 0/5] introduce BPF_PROG_TYPE_USER

2020-08-01 Thread Song Liu
This set introduces a new program type BPF_PROG_TYPE_USER, or "user program". User program is triggered from user space via sys_bpf(BPF_PROG_TEST_RUN). User program will replace some uprobe programs. Compared against uprobe, user program has the following advantages: 1. User programs are faster.

[PATCH bpf-next 3/5] selftests/bpf: add selftest for BPF_PROG_TYPE_USER

2020-08-01 Thread Song Liu
This test checks the correctness of BPF_PROG_TYPE_USER program, including: running on the right cpu, passing in correct args, returning retval, and being able to call bpf_get_stack|stackid. Signed-off-by: Song Liu --- .../selftests/bpf/prog_tests/user_prog.c | 52 +

[PATCH bpf-next 2/5] libbpf: support BPF_PROG_TYPE_USER programs

2020-08-01 Thread Song Liu
Add cpu_plus to bpf_prog_test_run_attr. Add BPF_PROG_SEC "user" for BPF_PROG_TYPE_USER programs. Signed-off-by: Song Liu --- tools/lib/bpf/bpf.c | 1 + tools/lib/bpf/bpf.h | 3 +++ tools/lib/bpf/libbpf.c| 1 + tools/lib/bpf/libbpf_probes.c | 1 + 4 files changed, 6

[PATCH bpf-next 4/5] selftests/bpf: move two functions to test_progs.c

2020-08-01 Thread Song Liu
Move time_get_ns() and get_base_addr() to test_progs.c, so they can be used in other tests. Signed-off-by: Song Liu --- .../selftests/bpf/prog_tests/attach_probe.c | 21 - .../selftests/bpf/prog_tests/test_overhead.c | 8 - tools/testing/selftests/bpf/test_progs.c | 30

[PATCH bpf-next 1/5] bpf: introduce BPF_PROG_TYPE_USER

2020-08-01 Thread Song Liu
As of today, to trigger BPF program from user space, the common practise is to create a uprobe on a special function and calls that function. For example, bpftrace uses BEGIN_trigger and END_trigger for the BEGIN and END programs. However, uprobe is not ideal for this use case. First, uprobe uses

[PATCH bpf-next 5/5] selftests/bpf: add benchmark for uprobe vs. user_prog

2020-08-01 Thread Song Liu
Add a benchmark to compare performance of 1) uprobe; 2) user program w/o args; 3) user program w/ args; 4) user program w/ args on random cpu. Sample output: ./test_progs -t uprobe_vs_user_prog -v test_uprobe_vs_user_prog:PASS:uprobe_vs_user_prog__open_and_load 0 nsec

Re: [PATCH 1/2] media: i2c: ov5640: Enable data pins on startup for DVP mode

2020-08-01 Thread Lad, Prabhakar
Hi Laurent, Thank you for the review. On Fri, Jul 31, 2020 at 4:27 PM Laurent Pinchart wrote: > > Hi Prabhakar, > > Thank you for the patch. > > On Fri, Jul 31, 2020 at 10:24:46AM +0100, Lad Prabhakar wrote: > > + * - 6: VSYNC output enable > > +

INFO: task hung in pipe_read (2)

2020-08-01 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:01830e6c Add linux-next specific files for 20200731 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=11b922e090 kernel config: https://syzkaller.appspot.com/x/.config?x=2e226b2d1364112c dashboard

[RFC PATCH linux-next] platform/x86: thinkpad_acpi: dev_attr_charge_start_threshold can be static

2020-08-01 Thread kernel test robot
Fixes: e33929537b76 ("platform/x86: thinkpad_acpi: use standard charge control attribute names") Signed-off-by: kernel test robot --- thinkpad_acpi.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/thinkpad_acpi.c

[linux-next:master 11232/13260] drivers/platform/x86/thinkpad_acpi.c:9636:25: sparse: sparse: symbol 'dev_attr_charge_start_threshold' was not declared. Should it be

2020-08-01 Thread kernel test robot
-s021-20200801 (attached as .config) compiler: gcc-9 (Debian 9.3.0-14) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.2-115-g5fc204f2-dirty git checkout e33929537b76486d2ed576a0d9ce3ebff51bf851 # save the attached .config to linux build tree

Re: inherit TAINT_PROPRIETARY_MODULE v2

2020-08-01 Thread Josh Triplett
On July 31, 2020 11:53:08 PM PDT, Christoph Hellwig wrote: >[note: private reply now to start a flame fest with the usual suspects] [You still CCed LKML.] >On Fri, Jul 31, 2020 at 01:11:46PM -0700, j...@joshtriplett.org wrote: >> Christoph Hellwig wrote: >> > we've had a bug in our resolution

Re: [PATCH v2] Provide USF for the portable equipment.

2020-08-01 Thread Christoph Hellwig
You can't modify non-staging core code just for staging code.

Re: [PATCH] scsi: libcxgbi: use kvzalloc instead of opencoded kzalloc/vzalloc

2020-08-01 Thread Joe Perches
On Sat, 2020-08-01 at 10:51 +0300, Denis Efremov wrote: > On 8/1/20 1:24 AM, Joe Perches wrote: > > On Sat, 2020-08-01 at 01:10 +0300, Denis Efremov wrote: > > > On 8/1/20 12:58 AM, Joe Perches wrote: > > > > On Sat, 2020-08-01 at 00:55 +0300, Denis Efremov wrote: > > > > > Remove

Re: [Linux-kernel-mentees] [PATCH net] rds: Prevent kernel-infoleak in rds_notify_queue_get()

2020-08-01 Thread Dan Carpenter
On Fri, Jul 31, 2020 at 03:27:12PM -0300, Jason Gunthorpe wrote: > On Fri, Jul 31, 2020 at 07:19:24PM +0200, Greg Kroah-Hartman wrote: > > > > I tried for a bit and didn't find a way to get even old gcc 4.4 to not > > > initialize the holes. > > > > Odd, so it is just the "= {0};" that does not

Re: [PATCH v3 20/23] device-dax: Make align a per-device property

2020-08-01 Thread kernel test robot
Hi Dan, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on 01830e6c042e8eb6eb202e05d7df8057135b4c26] url: https://github.com/0day-ci/linux/commits/Dan-Williams/device-dax-Support-sub-dividing-soft-reserved-ranges/20200801-114823 base

Re: [PATCH v2] ASoC: fsl-asoc-card: Remove fsl_asoc_card_set_bias_level function

2020-08-01 Thread Nicolin Chen
Hi, Having two nits and one question, inline: On Thu, Jul 30, 2020 at 05:47:02PM +0800, Shengjiu Wang wrote: > @@ -182,6 +180,69 @@ static int fsl_asoc_card_hw_params(struct > snd_pcm_substream *substream, > cpu_priv->slot_width); > if

Re: [PATCH] scsi: libcxgbi: use kvzalloc instead of opencoded kzalloc/vzalloc

2020-08-01 Thread Denis Efremov
On 8/1/20 10:51 AM, Denis Efremov wrote: > > > On 8/1/20 1:24 AM, Joe Perches wrote: >> On Sat, 2020-08-01 at 01:10 +0300, Denis Efremov wrote: >>> >>> On 8/1/20 12:58 AM, Joe Perches wrote: On Sat, 2020-08-01 at 00:55 +0300, Denis Efremov wrote: > Remove cxgbi_alloc_big_mem(),

Re: [PATCH] scsi: libcxgbi: use kvzalloc instead of opencoded kzalloc/vzalloc

2020-08-01 Thread Denis Efremov
On 8/1/20 1:24 AM, Joe Perches wrote: > On Sat, 2020-08-01 at 01:10 +0300, Denis Efremov wrote: >> >> On 8/1/20 12:58 AM, Joe Perches wrote: >>> On Sat, 2020-08-01 at 00:55 +0300, Denis Efremov wrote: Remove cxgbi_alloc_big_mem(), cxgbi_free_big_mem() functions and use kvzalloc/kvfree

Re: [PATCH v3 4/6] pwm: cros-ec: Accept more error codes from cros_ec_cmd_xfer_status

2020-08-01 Thread Uwe Kleine-König
On Sun, Jul 26, 2020 at 03:00:59PM -0700, Guenter Roeck wrote: > Since commit c5cd2b47b203 ("platform/chrome: cros_ec_proto: Report command > not supported") we can no longer assume that cros_ec_cmd_xfer_status() > reports -EPROTO for all errors returned by the EC itself. A follow-up > patch will

Re: [PATCH v9 0/5] KASAN-KUnit Integration

2020-08-01 Thread David Gow
On Fri, Jul 31, 2020 at 9:25 PM 'Andrey Konovalov' via kasan-dev wrote: > > On Fri, Jul 31, 2020 at 6:43 AM David Gow wrote: > > > > This patchset contains everything needed to integrate KASAN and KUnit. > > > > KUnit will be able to: > > (1) Fail tests when an unexpected KASAN error occurs > >

Re: [PATCH v6 08/11] bus: mhi: core: Introduce debugfs entries for MHI

2020-08-01 Thread kernel test robot
Hi Bhaumik, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.8-rc7 next-20200731] [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 documented in

[PATCH v10 4/5] KASAN: Testing Documentation

2020-08-01 Thread David Gow
From: Patricia Alfonso Include documentation on how to test KASAN using CONFIG_TEST_KASAN_KUNIT and CONFIG_TEST_KASAN_MODULE. Signed-off-by: Patricia Alfonso Signed-off-by: David Gow Reviewed-by: Andrey Konovalov Reviewed-by: Dmitry Vyukov Acked-by: Brendan Higgins ---

[PATCH v10 5/5] mm: kasan: Do not panic if both panic_on_warn and kasan_multishot set

2020-08-01 Thread David Gow
KASAN errors will currently trigger a panic when panic_on_warn is set. This renders kasan_multishot useless, as further KASAN errors won't be reported if the kernel has already paniced. By making kasan_multishot disable this behaviour for KASAN errors, we can still have the benefits of

[PATCH v10 2/5] KUnit: KASAN Integration

2020-08-01 Thread David Gow
From: Patricia Alfonso Integrate KASAN into KUnit testing framework. - Fail tests when KASAN reports an error that is not expected - Use KUNIT_EXPECT_KASAN_FAIL to expect a KASAN error in KASAN tests - Expected KASAN reports pass tests and are still printed when

[PATCH v10 1/5] Add KUnit Struct to Current Task

2020-08-01 Thread David Gow
From: Patricia Alfonso In order to integrate debugging tools like KASAN into the KUnit framework, add KUnit struct to the current task to keep track of the current KUnit test. Signed-off-by: Patricia Alfonso Reviewed-by: Brendan Higgins Signed-off-by: David Gow --- include/linux/sched.h | 4

[PATCH v10 3/5] KASAN: Port KASAN Tests to KUnit

2020-08-01 Thread David Gow
From: Patricia Alfonso Transfer all previous tests for KASAN to KUnit so they can be run more easily. Using kunit_tool, developers can run these tests with their other KUnit tests and see "pass" or "fail" with the appropriate KASAN report instead of needing to parse each KASAN report to test

[PATCH v10 0/5] KASAN-KUnit Integration

2020-08-01 Thread David Gow
This patchset contains everything needed to integrate KASAN and KUnit. KUnit will be able to: (1) Fail tests when an unexpected KASAN error occurs (2) Pass tests when an expected KASAN error occurs Convert KASAN tests to KUnit with the exception of copy_user_test because KUnit is unable to test

[PATCH 1/2] Revert "kconfig: qconf: don't show goback button on splitMode"

2020-08-01 Thread Masahiro Yamada
This reverts commit cc1c08edccaf5317d99a17a3231fe06381044e83. Maxim Levitsky reports 'make xconfig' crashes since that commit (https://lkml.org/lkml/2020/7/18/411) Or, the following is simple test code that makes it crash: menu "Menu" config FOO bool "foo"

[PATCH 2/2] kconfig: qconf: remove wrong ConfigList::firstChild()

2020-08-01 Thread Masahiro Yamada
This function returns the first child object, but the returned pointer is not compatible with (ConfigItem *). Commit cc1c08edccaf ("kconfig: qconf: don't show goback button on splitMode") uncovered this because using the pointer from this function would make qconf crash.

qcom_scm-smc.c:undefined reference to `__arm_smccc_smc'

2020-08-01 Thread kernel test robot
Hi Stephan, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 7dc6fd0f3b8404542718039f5de19fe56e474578 commit: a871be6b8eee13a35a3e8e56c62770ef17ee9220 cpuidle: Convert Qualcomm SPM driver to a generic CPUidle driver

[PATCH] mfd: core: Fix handle of OF disabled MFD cells

2020-08-01 Thread Icenowy Zheng
When rewriting the OF match code of MFD core, addition of cells disabled in OF will result in a failure with error -ENODEV. This is an unexpected behavior, as the previous behavior is silently ignore the cell. On SBCs with AXP20x PMICs, this leads to boot failure if AXP20x PMIC support is built-in

Re: inherit TAINT_PROPRIETARY_MODULE v2

2020-08-01 Thread Christoph Hellwig
[note: private reply now to start a flame fest with the usual suspects] On Fri, Jul 31, 2020 at 01:11:46PM -0700, j...@joshtriplett.org wrote: > Christoph Hellwig wrote: > > we've had a bug in our resolution of _GPL modules since day one, that > > is a module can claim to be GPL licensed and use

Re: [PATCH] crypto: sun8i-ce - Fix writel byte-order on big-endian

2020-08-01 Thread Corentin Labbe
On Tue, Jul 28, 2020 at 04:00:40PM +1000, Herbert Xu wrote: > On Tue, Jul 28, 2020 at 01:10:13PM +0800, kernel test robot wrote: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > > master > > head: 92ed301919932f13b9172e525674157e983d > > commit:

Re: [PATCH v3 21/23] device-dax: Add an 'align' attribute

2020-08-01 Thread kernel test robot
Hi Dan, Thank you for the patch! Yet something to improve: [auto build test ERROR on 01830e6c042e8eb6eb202e05d7df8057135b4c26] url: https://github.com/0day-ci/linux/commits/Dan-Williams/device-dax-Support-sub-dividing-soft-reserved-ranges/20200801-114823 base

Re: [PATCH v5 13/36] vmlinux.lds.h: add PGO and AutoFDO input sections

2020-08-01 Thread Kees Cook
On Fri, Jul 31, 2020 at 11:51:28PM -0400, Arvind Sankar wrote: > On Fri, Jul 31, 2020 at 04:07:57PM -0700, Kees Cook wrote: > > From: Nick Desaulniers > > > > Basically, consider .text.{hot|unlikely|unknown}.* part of .text, too. > > > > When compiling with profiling information (collected via

[PATCH] vgaarb: mark vga_tryget static

2020-08-01 Thread Christoph Hellwig
This symbols isn't used anywhere outside of vgaarb.c. Signed-off-by: Christoph Hellwig --- drivers/gpu/vga/vgaarb.c | 3 +-- include/linux/vgaarb.h | 6 -- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/gpu/vga/vgaarb.c b/drivers/gpu/vga/vgaarb.c index

Re: [PATCH v3 21/23] device-dax: Add an 'align' attribute

2020-08-01 Thread kernel test robot
Hi Dan, Thank you for the patch! Yet something to improve: [auto build test ERROR on 01830e6c042e8eb6eb202e05d7df8057135b4c26] url: https://github.com/0day-ci/linux/commits/Dan-Williams/device-dax-Support-sub-dividing-soft-reserved-ranges/20200801-114823 base

[PATCH] ALSA: seq: KASAN: use-after-free Read in delete_and_unsubscribe_port

2020-08-01 Thread qiang.zhang
From: Zhang Qiang There is a potential race window,when a task acquire "src->list_mutex" write sem,traverse the linked list to find "subs" objects through parameter "info" in snd_seq_port_disconnect and then release this write sem, before this task acquire write sem again,this write sem may be

Re: [PATCH] regulator: qcom_spmi: Improve readability for setting up enable/mode pin control

2020-08-01 Thread Bjorn Andersson
On Fri 31 Jul 22:48 PDT 2020, Axel Lin wrote: > By checking data->pin_ctrl_enable / data->pin_ctrl_hpm flags first, then > use switch-case to improve readability. > Nice! Reviewed-by: Bjorn Andersson Regards, Bjorn > Signed-off-by: Axel Lin > --- > drivers/regulator/qcom_spmi-regulator.c

[PATCH v2] MIPS: Provide Kconfig option for default IEEE 754 conformance mode

2020-08-01 Thread Jiaxun Yang
Requested by downstream distros, a Kconfig option for default IEEE 754 conformance mode allows them to set their mode to relaxed by default. Signed-off-by: Jiaxun Yang Reviewed-by: WANG Xuerui Reviewed-by: Serge Semin Reviewed-by: Huacai Chen -- v2: Reword according to Xuerui's suggestion.

<    1   2   3