Re: [PATCH] zsmalloc: do not use bit_spin_lock

2020-12-19 Thread Mike Galbraith
On Sun, 2020-12-20 at 02:23 +0100, Mike Galbraith wrote: > On Sun, 2020-12-20 at 02:22 +0200, Vitaly Wool wrote: > > zsmalloc takes bit spinlock in its _map() callback and releases it > > only in unmap() which is unsafe and leads to zswap complaining > > about scheduling in atomic context. > > > >

[PATCH] signal: Don't init struct kernel_siginfo fields to zero again

2020-12-19 Thread Leesoo Ahn
clear_siginfo() is responsible for clearing struct kernel_siginfo object. It's obvious that manually initializing those fields is needless as a commit[1] explains why the function introduced and its guarantee that all bits in the struct are cleared after it. [1]: commit 8c5dbf2ae00b ("signal:

Re: [RFC PATCH 0/13] sparc32: sunset sun4m and sun4d

2020-12-19 Thread Romain Dolbeau
Le sam. 19 déc. 2020 à 22:41, Sam Ravnborg a écrit : > Another said that it would be a shame to sunset sun4m and sun4d because > there are so many machines around, and netbsd is also active on the > sparc32 area. Yes, those were plentiful back in the day and there's still quite a few around. >

HELP! I can't get my Cisco CP-7960G IP hardphone to register on my Asterisk VoIP IP PBX SIP Server with FreePBX GUI

2020-12-19 Thread Turritopsis Dohrnii Teo En Ming
Subject: HELP! I can't get my Cisco CP-7960G IP hardphone to register on my Asterisk VoIP IP PBX SIP Server with FreePBX GUI Good day from Singapore, My Asterisk version: 16.13.0 My FreePBX version: 15.0.16.81 On 7 December 2020, I was able to get Bria softphone to work with my Asterisk PBX

Re: [PATCH] zsmalloc: do not use bit_spin_lock

2020-12-19 Thread Vitaly Wool
On Sun, Dec 20, 2020 at 2:18 AM Matthew Wilcox wrote: > > On Sun, Dec 20, 2020 at 02:22:28AM +0200, Vitaly Wool wrote: > > zsmalloc takes bit spinlock in its _map() callback and releases it > > only in unmap() which is unsafe and leads to zswap complaining > > about scheduling in atomic context.

[PATCH] ide: pci: Fix memleak in ide_pci_init_two

2020-12-19 Thread Dinghao Liu
When do_ide_setup_pci_device() fails, host allocated by ide_host_alloc() may not have been freed, which leads to memleak. Signed-off-by: Dinghao Liu --- drivers/ide/setup-pci.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/ide/setup-pci.c

Re: [PATCH v3 5/6] i2c: iproc: handle master read request

2020-12-19 Thread Rayagonda Kokatanur
On Fri, Dec 18, 2020 at 12:41 AM Ray Jui wrote: > > > > On 12/16/2020 8:08 PM, Rayagonda Kokatanur wrote: > > On Wed, Dec 2, 2020 at 11:14 PM Ray Jui wrote: > >> > >> > >> > >> On 12/2/2020 6:35 AM, Wolfram Sang wrote: > >>> > All review comments are scattered now, please let me know what

[PATCH] fs: io_uring.c: Add skip option for __io_sqe_files_update

2020-12-19 Thread noah
From: noah This patch makes it so that specify a file descriptor value of -2 will skip updating the corresponding fixed file index. This will allow for users to reduce the number of syscalls necessary to update a sparse file range when using the fixed file option. Signed-off-by: noah ---

Re: [PATCH v2 2/2] memblock: do not start bottom-up allocations with kernel_end

2020-12-19 Thread Mike Rapoport
On Thu, Dec 17, 2020 at 12:12:14PM -0800, Roman Gushchin wrote: > With kaslr the kernel image is placed at a random place, so starting > the bottom-up allocation with the kernel_end can result in an > allocation failure and a warning like this one: > > [0.002920] hugetlb_cma: reserve 2048

Re: [PATCH v2 1/2] mm: cma: allocate cma areas bottom-up

2020-12-19 Thread Mike Rapoport
On Thu, Dec 17, 2020 at 12:12:13PM -0800, Roman Gushchin wrote: > Currently cma areas without a fixed base are allocated close to the > end of the node. This placement is sub-optimal because of compaction: > it brings pages into the cma area. In particular, it can bring in hot > executable pages,

Re: [PATCH 3/6] clk: mstar: MStar/SigmaStar MPLL driver

2020-12-19 Thread Daniel Palmer
Hi Stephen, On Sun, 20 Dec 2020 at 13:36, Stephen Boyd wrote: > > diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile > > index da8fcf147eb1..b758aae17ab8 100644 > > --- a/drivers/clk/Makefile > > +++ b/drivers/clk/Makefile > > @@ -124,3 +124,4 @@ endif > > obj-$(CONFIG_ARCH_ZX)

Re: [PATCH 2/6] dt-bindings: clk: mstar msc313 mpll binding description

2020-12-19 Thread Daniel Palmer
Hi Stephen, On Sun, 20 Dec 2020 at 12:39, Stephen Boyd wrote: > > + clock-output-names: > > +minItems: 8 > > +maxItems: 8 > > +description: | > > + This should provide a name for the internal PLL clock and then > > + a name for each of the divided outputs. > > Is this

[PATCH] atomic: remove further references to atomic_ops

2020-12-19 Thread Lukas Bulwahn
Commit f0400a77ebdc ("atomic: Delete obsolete documentation") removed ./Documentation/core-api/atomic_ops.rst, but missed to remove further references to that file. Hence, make htmldocs warns: Documentation/core-api/index.rst:53: WARNING: toctree contains reference to nonexisting document

Re: [PATCH] mm/userfaultfd: fix memory corruption due to writeprotect

2020-12-19 Thread Yu Zhao
On Sat, Dec 19, 2020 at 01:34:29PM -0800, Nadav Amit wrote: > [ cc’ing some more people who have experience with similar problems ] > > > On Dec 19, 2020, at 11:15 AM, Andrea Arcangeli wrote: > > > > Hello, > > > > On Fri, Dec 18, 2020 at 08:30:06PM -0800, Nadav Amit wrote: > >> Analyzing this

[PATCH v6 2/3] scsi: ufs: Clean up ufshcd_exit_clk_scaling/gating()

2020-12-19 Thread Can Guo
ufshcd_hba_exit() is always called after ufshcd_exit_clk_scaling() and ufshcd_exit_clk_gating(), so move ufshcd_exit_clk_scaling/gating() to ufshcd_hba_exit(). Reviewed-by: Stanley Chu Reviewed-by: Bean Huo Signed-off-by: Can Guo --- drivers/scsi/ufs/ufshcd.c | 32

[PATCH v6 1/3] scsi: ufs: Protect some contexts from unexpected clock scaling

2020-12-19 Thread Can Guo
In contexts like suspend, shutdown and error handling, we need to suspend devfreq to make sure these contexts won't be disturbed by clock scaling. However, suspending devfreq is not enough since users can still trigger a clock scaling by manipulating the sysfs node clkscale_enable and devfreq

[PATCH v6 3/3] scsi: ufs: Revert "Make sure clk scaling happens only when HBA is runtime ACTIVE"

2020-12-19 Thread Can Guo
Commit 73cc291c27024 ("Make sure clk scaling happens only when HBA is runtime ACTIVE") is no longer needed since commit f7a42540928a8 ("scsi: ufs: Protect some contexts from unexpected clock scaling") is a more mature fix to protect UFS LLD stability from clock scaling invoked through sysfs nodes

general protection fault in j1939_netdev_notify (2)

2020-12-19 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:d635a69d Merge tag 'net-next-5.11' of git://git.kernel.org.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1315f12350 kernel config: https://syzkaller.appspot.com/x/.config?x=c3556e4856b17a95

Re: [PATCH v3] drivers: clk: make gpio-gated clock support optional

2020-12-19 Thread Stephen Boyd
Quoting Stephen Boyd (2020-12-19 16:04:21) > Quoting Enrico Weigelt, metux IT consult (2020-12-02 04:34:46) > > The gpio-gate-clock / gpio-mux-clock driver isn't used much, > > just by a few ARM SoCs, so there's no need to always include > > it unconditionally. > > > > Thus make it optional, but

Re: [PATCH] mm/userfaultfd: fix memory corruption due to writeprotect

2020-12-19 Thread Andy Lutomirski
On Sat, Dec 19, 2020 at 6:49 PM Andrea Arcangeli wrote: > > On Sat, Dec 19, 2020 at 06:01:39PM -0800, Andy Lutomirski wrote: > > I missed the beginning of this thread, but it looks to me like > > userfaultfd changes PTEs with not locking except mmap_read_lock(). It > > There's no mmap_read_lock,

[PATCH v2] inotify, memcg: account inotify instances to kmemcg

2020-12-19 Thread Shakeel Butt
Currently the fs sysctl inotify/max_user_instances is used to limit the number of inotify instances on the system. For systems running multiple workloads, the per-user namespace sysctl max_inotify_instances can be used to further partition inotify instances. However there is no easy way to set a

Re: [RFC PATCH] ptrace: make ptrace() fail if the tracee changed its pid unexpectedly

2020-12-19 Thread Simon Marchi
On 2020-12-19 2:33 p.m., Oleg Nesterov wrote: > OOPS! Sorry Simon, yes I forgot to add reported-by. Andrew, or Eric, if > you take this patch, could you also add > > Reported-by: Simon Marchi I tried the original reproducer on a patched kernel, and it looks good. GDB's behavior is still

Máte dar vo výške 5 800 000,00 €.

2020-12-19 Thread Mrs. Mavis
Máte dar vo výške 5 800 000,00 €. od Mavisa Wanczyka odpovedzte týmto kódom [MW530342019], aby ste dostali dar

Re: [PATCH 3/6] clk: mstar: MStar/SigmaStar MPLL driver

2020-12-19 Thread Stephen Boyd
Quoting Daniel Palmer (2020-11-14 05:50:41) > F: include/dt-bindings/gpio/msc313-gpio.h > diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig > index c715d4681a0b..a002f2605fa3 100644 > --- a/drivers/clk/Kconfig > +++ b/drivers/clk/Kconfig > @@ -370,6 +370,7 @@ source

Re: [PATCH] inotify, memcg: account inotify instances to kmemcg

2020-12-19 Thread Shakeel Butt
On Sat, Dec 19, 2020 at 8:25 AM Amir Goldstein wrote: > > On Sat, Dec 19, 2020 at 4:31 PM Shakeel Butt wrote: > > > > On Sat, Dec 19, 2020 at 1:48 AM Amir Goldstein wrote: > > > > > > On Sat, Dec 19, 2020 at 12:11 AM Shakeel Butt wrote: > > > > > > > > Currently the fs sysctl

Re: [PATCH] zsmalloc: do not use bit_spin_lock

2020-12-19 Thread Mike Galbraith
On Sun, 2020-12-20 at 02:23 +0100, Mike Galbraith wrote: > On Sun, 2020-12-20 at 02:22 +0200, Vitaly Wool wrote: > > zsmalloc takes bit spinlock in its _map() callback and releases it > > only in unmap() which is unsafe and leads to zswap complaining > > about scheduling in atomic context. > > > >

Re: [PATCH v2] mips: lib: uncached: fix non-standard usage of variable 'sp'

2020-12-19 Thread Naresh Kamboju
On Mon, 14 Dec 2020 at 21:05, Thomas Bogendoerfer wrote: > > On Fri, Dec 11, 2020 at 11:24:37AM +0100, Anders Roxell wrote: > > When building mips tinyconfig with clang the following warning show up: > > > > arch/mips/lib/uncached.c:45:6: warning: variable 'sp' is uninitialized when > > used

Re: [PATCH 5.4 00/34] 5.4.85-rc1 review

2020-12-19 Thread Naresh Kamboju
On Sat, 19 Dec 2020 at 18:33, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.4.85 release. > There are 34 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

Re: [PATCH 5.9 00/49] 5.9.16-rc1 review

2020-12-19 Thread Naresh Kamboju
On Sat, 19 Dec 2020 at 18:28, Greg Kroah-Hartman wrote: > > -- > Note, I would like to make this the past, or next-to-last 5.9.y kernel > to be released. If anyone knows of any reason they can not move to the > 5.10.y kernel now, please let me know! > -- > > This

[PATCH v2 0/4] panic: Add new API in_panic_state()

2020-12-19 Thread Xiaoming Ni
For some features (such as hang_task, ledtrig-activity, ledtrig-heartbeat) different processing logics need to be performed based on whether the current system is in panic state: 1: Register hook for panic_notifier_list. 2. Assign a value to the global variable in the hook

[PATCH v2 4/4] leds:trigger:ledtrig-heartbeat: Replace "panic_heartbeats" with in_panic_state()

2020-12-19 Thread Xiaoming Ni
Replace the global variable "panic_heartbeats" with in_panic_state() Signed-off-by: Xiaoming Ni --- drivers/leds/trigger/ledtrig-heartbeat.c | 19 +-- 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/drivers/leds/trigger/ledtrig-heartbeat.c

[PATCH v2 3/4] leds:trigger:ledtrig-activity Replace "panic_detected" with in_panic_state()

2020-12-19 Thread Xiaoming Ni
Replace the global variable "panic_detected" with in_panic_state() Signed-off-by: Xiaoming Ni --- drivers/leds/trigger/ledtrig-activity.c | 19 +-- 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/drivers/leds/trigger/ledtrig-activity.c

[PATCH v2 2/4] hung_task: Replace "did_panic" with in_panic_state()

2020-12-19 Thread Xiaoming Ni
Replace the global variable "did_panic" with in_panic_state() Signed-off-by: Xiaoming Ni --- kernel/hung_task.c | 17 + 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/kernel/hung_task.c b/kernel/hung_task.c index bb2e3e15c84c..2747cd6dd35e 100644 ---

[PATCH v2 1/4] panic: Add new API in_panic_state()

2020-12-19 Thread Xiaoming Ni
For some features (such as hang_task, ledtrig-activity, ledtrig-heartbeat) different processing logics need to be performed based on whether the current system is in panic state: 1: Register hook for panic_notifier_list. 2. Assign a value to the global variable in the hook

WARNING in ext4_evict_inode

2020-12-19 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:3db1a3fa Merge tag 'staging-5.11-rc1' of git://git.kernel... git tree: net console output: https://syzkaller.appspot.com/x/log.txt?x=15c2f30f50 kernel config: https://syzkaller.appspot.com/x/.config?x=2764fc28a92339f9

Re: [PATCH 2/6] dt-bindings: clk: mstar msc313 mpll binding description

2020-12-19 Thread Stephen Boyd
Quoting Daniel Palmer (2020-11-14 05:50:40) > Add a binding description for the MStar/SigmaStar MPLL clock block. > > Signed-off-by: Daniel Palmer > --- > .../bindings/clock/mstar,msc313-mpll.yaml | 58 +++ > MAINTAINERS | 1 + > 2 files

[PATCH AUTOSEL 5.9 10/15] Input: cros_ec_keyb - send 'scancodes' in addition to key events

2020-12-19 Thread Sasha Levin
From: Dmitry Torokhov [ Upstream commit 80db2a087f425b63f0163bc95217abd01c637cb5 ] To let userspace know what 'scancodes' should be used in EVIOCGKEYCODE and EVIOCSKEYCODE ioctls, we should send EV_MSC/MSC_SCAN events in addition to EV_KEY/KEY_* events. The driver already declared MSC_SCAN

[PATCH AUTOSEL 5.9 13/15] initramfs: fix clang build failure

2020-12-19 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit 55d5b7dd6451b58489ce384282ca5a4a289eb8d5 ] There is only one function in init/initramfs.c that is in the .text section, and it is marked __weak. When building with clang-12 and the integrated assembler, this leads to a bug with recordmcount:

[PATCH AUTOSEL 5.9 11/15] selftests/bpf: Fix array access with signed variable test

2020-12-19 Thread Sasha Levin
From: Jean-Philippe Brucker [ Upstream commit 77ce220c0549dcc3db8226c61c60e83fc59dfafc ] The test fails because of a recent fix to the verifier, even though this program is valid. In details what happens is: 7: (61) r1 = *(u32 *)(r0 +0) Load a 32-bit value, with signed bounds [S32_MIN,

[PATCH AUTOSEL 4.14 1/4] cfg80211: initialize rekey_data

2020-12-19 Thread Sasha Levin
From: Sara Sharon [ Upstream commit f495acd8851d7b345e5f0e521b2645b1e1f928a0 ] In case we have old supplicant, the akm field is uninitialized. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho Link:

[PATCH AUTOSEL 4.4 2/3] Input: cros_ec_keyb - send 'scancodes' in addition to key events

2020-12-19 Thread Sasha Levin
From: Dmitry Torokhov [ Upstream commit 80db2a087f425b63f0163bc95217abd01c637cb5 ] To let userspace know what 'scancodes' should be used in EVIOCGKEYCODE and EVIOCSKEYCODE ioctls, we should send EV_MSC/MSC_SCAN events in addition to EV_KEY/KEY_* events. The driver already declared MSC_SCAN

[PATCH AUTOSEL 5.4 05/10] drm/amd/display: Prevent bandwidth overflow

2020-12-19 Thread Sasha Levin
From: Chris Park [ Upstream commit 80089dd8410f356d5104496d5ab71a66a4f4646b ] [Why] At very high pixel clock, bandwidth calculation exceeds 32 bit size and overflow value. This causes the resulting selection of link rate to be inaccurate. [How] Change order of operation and use fixed point to

[PATCH AUTOSEL 5.4 06/10] drm/amdkfd: Fix leak in dmabuf import

2020-12-19 Thread Sasha Levin
From: Felix Kuehling [ Upstream commit c897934da15f182ce99536007f8ef61c4748c07e ] Release dmabuf reference before returning from kfd_ioctl_import_dmabuf. amdgpu_amdkfd_gpuvm_import_dmabuf takes a reference to the underlying GEM BO and doesn't keep the reference to the dmabuf wrapper.

[PATCH AUTOSEL 5.4 04/10] lwt: Disable BH too in run_lwt_bpf()

2020-12-19 Thread Sasha Levin
From: Dongdong Wang [ Upstream commit d9054a1ff585ba01029584ab730efc794603d68f ] The per-cpu bpf_redirect_info is shared among all skb_do_redirect() and BPF redirect helpers. Callers on RX path are all in BH context, disabling preemption is not sufficient to prevent BH interruption. In

[PATCH AUTOSEL 4.9 3/3] Input: goodix - add upside-down quirk for Teclast X98 Pro tablet

2020-12-19 Thread Sasha Levin
From: Simon Beginn [ Upstream commit cffdd6d90482316e18d686060a4397902ea04bd2 ] The touchscreen on the Teclast x98 Pro is also mounted upside-down in relation to the display orientation. Signed-off-by: Simon Beginn Signed-off-by: Bastien Nocera Link:

[PATCH AUTOSEL 4.19 2/6] cfg80211: initialize rekey_data

2020-12-19 Thread Sasha Levin
From: Sara Sharon [ Upstream commit f495acd8851d7b345e5f0e521b2645b1e1f928a0 ] In case we have old supplicant, the akm field is uninitialized. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho Link:

[PATCH AUTOSEL 5.4 10/10] Input: goodix - add upside-down quirk for Teclast X98 Pro tablet

2020-12-19 Thread Sasha Levin
From: Simon Beginn [ Upstream commit cffdd6d90482316e18d686060a4397902ea04bd2 ] The touchscreen on the Teclast x98 Pro is also mounted upside-down in relation to the display orientation. Signed-off-by: Simon Beginn Signed-off-by: Bastien Nocera Link:

[PATCH AUTOSEL 5.4 08/10] selftests/bpf: Fix array access with signed variable test

2020-12-19 Thread Sasha Levin
From: Jean-Philippe Brucker [ Upstream commit 77ce220c0549dcc3db8226c61c60e83fc59dfafc ] The test fails because of a recent fix to the verifier, even though this program is valid. In details what happens is: 7: (61) r1 = *(u32 *)(r0 +0) Load a 32-bit value, with signed bounds [S32_MIN,

[PATCH AUTOSEL 4.14 4/4] Input: goodix - add upside-down quirk for Teclast X98 Pro tablet

2020-12-19 Thread Sasha Levin
From: Simon Beginn [ Upstream commit cffdd6d90482316e18d686060a4397902ea04bd2 ] The touchscreen on the Teclast x98 Pro is also mounted upside-down in relation to the display orientation. Signed-off-by: Simon Beginn Signed-off-by: Bastien Nocera Link:

[PATCH AUTOSEL 4.14 2/4] [SECURITY] fix namespaced fscaps when !CONFIG_SECURITY

2020-12-19 Thread Sasha Levin
From: Serge Hallyn [ Upstream commit ed9b25d1970a4787ac6a39c2091e63b127ecbfc1 ] Namespaced file capabilities were introduced in 8db6c34f1dbc . When userspace reads an xattr for a namespaced capability, a virtualized representation of it is returned if the caller is in a user namespace owned by

[PATCH AUTOSEL 4.4 1/3] cfg80211: initialize rekey_data

2020-12-19 Thread Sasha Levin
From: Sara Sharon [ Upstream commit f495acd8851d7b345e5f0e521b2645b1e1f928a0 ] In case we have old supplicant, the akm field is uninitialized. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho Link:

[PATCH AUTOSEL 5.4 02/10] cfg80211: initialize rekey_data

2020-12-19 Thread Sasha Levin
From: Sara Sharon [ Upstream commit f495acd8851d7b345e5f0e521b2645b1e1f928a0 ] In case we have old supplicant, the akm field is uninitialized. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho Link:

[PATCH AUTOSEL 4.19 4/6] lwt: Disable BH too in run_lwt_bpf()

2020-12-19 Thread Sasha Levin
From: Dongdong Wang [ Upstream commit d9054a1ff585ba01029584ab730efc794603d68f ] The per-cpu bpf_redirect_info is shared among all skb_do_redirect() and BPF redirect helpers. Callers on RX path are all in BH context, disabling preemption is not sufficient to prevent BH interruption. In

[PATCH AUTOSEL 4.19 6/6] Input: goodix - add upside-down quirk for Teclast X98 Pro tablet

2020-12-19 Thread Sasha Levin
From: Simon Beginn [ Upstream commit cffdd6d90482316e18d686060a4397902ea04bd2 ] The touchscreen on the Teclast x98 Pro is also mounted upside-down in relation to the display orientation. Signed-off-by: Simon Beginn Signed-off-by: Bastien Nocera Link:

[PATCH AUTOSEL 4.4 3/3] Input: goodix - add upside-down quirk for Teclast X98 Pro tablet

2020-12-19 Thread Sasha Levin
From: Simon Beginn [ Upstream commit cffdd6d90482316e18d686060a4397902ea04bd2 ] The touchscreen on the Teclast x98 Pro is also mounted upside-down in relation to the display orientation. Signed-off-by: Simon Beginn Signed-off-by: Bastien Nocera Link:

[PATCH AUTOSEL 4.9 1/3] cfg80211: initialize rekey_data

2020-12-19 Thread Sasha Levin
From: Sara Sharon [ Upstream commit f495acd8851d7b345e5f0e521b2645b1e1f928a0 ] In case we have old supplicant, the akm field is uninitialized. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho Link:

[PATCH AUTOSEL 4.9 2/3] Input: cros_ec_keyb - send 'scancodes' in addition to key events

2020-12-19 Thread Sasha Levin
From: Dmitry Torokhov [ Upstream commit 80db2a087f425b63f0163bc95217abd01c637cb5 ] To let userspace know what 'scancodes' should be used in EVIOCGKEYCODE and EVIOCSKEYCODE ioctls, we should send EV_MSC/MSC_SCAN events in addition to EV_KEY/KEY_* events. The driver already declared MSC_SCAN

[PATCH AUTOSEL 5.4 03/10] [SECURITY] fix namespaced fscaps when !CONFIG_SECURITY

2020-12-19 Thread Sasha Levin
From: Serge Hallyn [ Upstream commit ed9b25d1970a4787ac6a39c2091e63b127ecbfc1 ] Namespaced file capabilities were introduced in 8db6c34f1dbc . When userspace reads an xattr for a namespaced capability, a virtualized representation of it is returned if the caller is in a user namespace owned by

[PATCH AUTOSEL 4.14 3/4] Input: cros_ec_keyb - send 'scancodes' in addition to key events

2020-12-19 Thread Sasha Levin
From: Dmitry Torokhov [ Upstream commit 80db2a087f425b63f0163bc95217abd01c637cb5 ] To let userspace know what 'scancodes' should be used in EVIOCGKEYCODE and EVIOCSKEYCODE ioctls, we should send EV_MSC/MSC_SCAN events in addition to EV_KEY/KEY_* events. The driver already declared MSC_SCAN

[PATCH AUTOSEL 5.4 09/10] initramfs: fix clang build failure

2020-12-19 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit 55d5b7dd6451b58489ce384282ca5a4a289eb8d5 ] There is only one function in init/initramfs.c that is in the .text section, and it is marked __weak. When building with clang-12 and the integrated assembler, this leads to a bug with recordmcount:

[PATCH AUTOSEL 5.4 01/10] ARM: sunxi: Add machine match for the Allwinner V3 SoC

2020-12-19 Thread Sasha Levin
From: Paul Kocialkowski [ Upstream commit ad2091f893bd5dfe2824f0d6819600d120698e9f ] The Allwinner V3 SoC shares the same base as the V3s but comes with extra pins and features available. As a result, it has its dedicated compatible string (already used in device trees), which is added here.

[PATCH AUTOSEL 5.9 15/15] Input: goodix - add upside-down quirk for Teclast X98 Pro tablet

2020-12-19 Thread Sasha Levin
From: Simon Beginn [ Upstream commit cffdd6d90482316e18d686060a4397902ea04bd2 ] The touchscreen on the Teclast x98 Pro is also mounted upside-down in relation to the display orientation. Signed-off-by: Simon Beginn Signed-off-by: Bastien Nocera Link:

[PATCH AUTOSEL 5.4 07/10] Input: cros_ec_keyb - send 'scancodes' in addition to key events

2020-12-19 Thread Sasha Levin
From: Dmitry Torokhov [ Upstream commit 80db2a087f425b63f0163bc95217abd01c637cb5 ] To let userspace know what 'scancodes' should be used in EVIOCGKEYCODE and EVIOCSKEYCODE ioctls, we should send EV_MSC/MSC_SCAN events in addition to EV_KEY/KEY_* events. The driver already declared MSC_SCAN

[PATCH AUTOSEL 5.9 08/15] drm/amd/display: Prevent bandwidth overflow

2020-12-19 Thread Sasha Levin
From: Chris Park [ Upstream commit 80089dd8410f356d5104496d5ab71a66a4f4646b ] [Why] At very high pixel clock, bandwidth calculation exceeds 32 bit size and overflow value. This causes the resulting selection of link rate to be inaccurate. [How] Change order of operation and use fixed point to

[PATCH AUTOSEL 5.9 09/15] drm/amdkfd: Fix leak in dmabuf import

2020-12-19 Thread Sasha Levin
From: Felix Kuehling [ Upstream commit c897934da15f182ce99536007f8ef61c4748c07e ] Release dmabuf reference before returning from kfd_ioctl_import_dmabuf. amdgpu_amdkfd_gpuvm_import_dmabuf takes a reference to the underlying GEM BO and doesn't keep the reference to the dmabuf wrapper.

[PATCH AUTOSEL 5.9 06/15] lwt: Disable BH too in run_lwt_bpf()

2020-12-19 Thread Sasha Levin
From: Dongdong Wang [ Upstream commit d9054a1ff585ba01029584ab730efc794603d68f ] The per-cpu bpf_redirect_info is shared among all skb_do_redirect() and BPF redirect helpers. Callers on RX path are all in BH context, disabling preemption is not sufficient to prevent BH interruption. In

[PATCH AUTOSEL 4.19 3/6] [SECURITY] fix namespaced fscaps when !CONFIG_SECURITY

2020-12-19 Thread Sasha Levin
From: Serge Hallyn [ Upstream commit ed9b25d1970a4787ac6a39c2091e63b127ecbfc1 ] Namespaced file capabilities were introduced in 8db6c34f1dbc . When userspace reads an xattr for a namespaced capability, a virtualized representation of it is returned if the caller is in a user namespace owned by

[PATCH AUTOSEL 5.9 07/15] net: stmmac: increase the timeout for dma reset

2020-12-19 Thread Sasha Levin
From: Fugang Duan [ Upstream commit 9d14edfdeabf37d8d8f045e63e5873712aadcd6b ] Current timeout value is not enough for gmac5 dma reset on imx8mp platform, increase the timeout range. Signed-off-by: Fugang Duan Signed-off-by: Joakim Zhang Signed-off-by: David S. Miller Signed-off-by: Sasha

[PATCH AUTOSEL 4.19 1/6] ARM: sunxi: Add machine match for the Allwinner V3 SoC

2020-12-19 Thread Sasha Levin
From: Paul Kocialkowski [ Upstream commit ad2091f893bd5dfe2824f0d6819600d120698e9f ] The Allwinner V3 SoC shares the same base as the V3s but comes with extra pins and features available. As a result, it has its dedicated compatible string (already used in device trees), which is added here.

[PATCH AUTOSEL 4.19 5/6] Input: cros_ec_keyb - send 'scancodes' in addition to key events

2020-12-19 Thread Sasha Levin
From: Dmitry Torokhov [ Upstream commit 80db2a087f425b63f0163bc95217abd01c637cb5 ] To let userspace know what 'scancodes' should be used in EVIOCGKEYCODE and EVIOCSKEYCODE ioctls, we should send EV_MSC/MSC_SCAN events in addition to EV_KEY/KEY_* events. The driver already declared MSC_SCAN

[PATCH AUTOSEL 5.9 12/15] selftests/bpf: Fix "dubious pointer arithmetic" test

2020-12-19 Thread Sasha Levin
From: Jean-Philippe Brucker [ Upstream commit 3615bdf6d9b19db12b1589861609b4f1c6a8d303 ] The verifier trace changed following a bugfix. After checking the 64-bit sign, only the upper bit mask is known, not bit 31. Update the test accordingly. Signed-off-by: Jean-Philippe Brucker Acked-by:

[PATCH AUTOSEL 5.9 05/15] [SECURITY] fix namespaced fscaps when !CONFIG_SECURITY

2020-12-19 Thread Sasha Levin
From: Serge Hallyn [ Upstream commit ed9b25d1970a4787ac6a39c2091e63b127ecbfc1 ] Namespaced file capabilities were introduced in 8db6c34f1dbc . When userspace reads an xattr for a namespaced capability, a virtualized representation of it is returned if the caller is in a user namespace owned by

[PATCH AUTOSEL 5.9 14/15] elfcore: fix building with clang

2020-12-19 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit 6e7b64b9dd6d96537d816ea07ec26b7dedd397b9 ] kernel/elfcore.c only contains weak symbols, which triggers a bug with clang in combination with recordmcount: Cannot find symbol for section 2: .text. kernel/elfcore.o: failed Move the empty stubs into

[PATCH AUTOSEL 5.9 04/15] ethernet: select CONFIG_CRC32 as needed

2020-12-19 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit 0b32e91fdfd87314af9943e69eb85a88adb4233c ] A number of ethernet drivers require crc32 functionality to be avaialable in the kernel, causing a link error otherwise: arm-linux-gnueabi-ld: drivers/net/ethernet/agere/et131x.o: in function

[PATCH AUTOSEL 5.9 01/15] ARM: sunxi: Add machine match for the Allwinner V3 SoC

2020-12-19 Thread Sasha Levin
From: Paul Kocialkowski [ Upstream commit ad2091f893bd5dfe2824f0d6819600d120698e9f ] The Allwinner V3 SoC shares the same base as the V3s but comes with extra pins and features available. As a result, it has its dedicated compatible string (already used in device trees), which is added here.

[PATCH AUTOSEL 5.9 02/15] pNFS/flexfiles: Fix array overflow when flexfiles mirroring is enabled

2020-12-19 Thread Sasha Levin
From: Trond Myklebust [ Upstream commit 63e2fffa59a9dd91e443b08832656399fd80b7f0 ] If the flexfiles mirroring is enabled, then the read code expects to be able to set pgio->pg_mirror_idx to point to the data server that is being used for this particular read. However it does not change the

[PATCH AUTOSEL 5.9 03/15] cfg80211: initialize rekey_data

2020-12-19 Thread Sasha Levin
From: Sara Sharon [ Upstream commit f495acd8851d7b345e5f0e521b2645b1e1f928a0 ] In case we have old supplicant, the akm field is uninitialized. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho Link:

Re: [PATCH 5.10 00/16] 5.10.2-rc1 review

2020-12-19 Thread Naresh Kamboju
On Sat, 19 Dec 2020 at 18:26, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.10.2 release. > There are 16 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

Re: [PATCH 2/4] hung_task: Replace "did_panic" with is_be_panic()

2020-12-19 Thread Xiaoming Ni
On 2020/12/19 1:06, Randy Dunlap wrote: On 12/18/20 6:36 AM, Tetsuo Handa wrote: On 2020/12/18 21:59, Pavel Machek wrote: On Fri 2020-12-18 19:44:04, Xiaoming Ni wrote: Plus.. is_being_panic is not really english. "is_paniccing" would be closer...? Or in_panic() ? Yes, or

Re: [PATCH] mm/userfaultfd: fix memory corruption due to writeprotect

2020-12-19 Thread Andrea Arcangeli
On Sat, Dec 19, 2020 at 06:01:39PM -0800, Andy Lutomirski wrote: > I missed the beginning of this thread, but it looks to me like > userfaultfd changes PTEs with not locking except mmap_read_lock(). It There's no mmap_read_lock, I assume you mean mmap_lock for reading. The ptes are changed

[PATCH 2/5] drm/mediatek: Rename file mtk_drm_ddp to mtk_mutex

2020-12-19 Thread Chun-Kuang Hu
From: CK Hu After mmsys routing function is moved out of mtk_drm_ddp.c, mtk_drm_ddp.c has only mtk mutex function, so rename it to match the function in it. Signed-off-by: CK Hu Signed-off-by: Chun-Kuang Hu --- drivers/gpu/drm/mediatek/Makefile | 4 ++--

[PATCH 5/5] soc / drm: mediatek: Move mtk mutex driver to soc folder

2020-12-19 Thread Chun-Kuang Hu
From: CK Hu mtk mutex is used by DRM and MDP driver, and its function is SoC-specific, so move it to soc folder. Signed-off-by: CK Hu Signed-off-by: Chun-Kuang Hu --- drivers/gpu/drm/mediatek/Makefile | 3 +-- drivers/gpu/drm/mediatek/mtk_drm_crtc.c

[PATCH 3/5] drm/mediatek: Change disp/ddp term to mutex in mtk mutex driver

2020-12-19 Thread Chun-Kuang Hu
From: CK Hu mtk mutex is used by both drm and mdp driver, so change disp/ddp term to mutex to show that it's a common driver for drm and mdp. Signed-off-by: CK Hu Signed-off-by: Chun-Kuang Hu --- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 30 +-- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2

[PATCH 1/5] drm/mediatek: Remove redundant file including

2020-12-19 Thread Chun-Kuang Hu
From: CK Hu Those file includings are useless, so remove them. Signed-off-by: CK Hu Signed-off-by: Chun-Kuang Hu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 1 - drivers/gpu/drm/mediatek/mtk_drm_ddp.h | 2 -- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 -- 3 files changed, 5 deletions(-)

[PATCH 4/5] drm/mediatek: Automatically search unclaimed mtk mutex in mtk_mutex_get()

2020-12-19 Thread Chun-Kuang Hu
From: CK Hu Moving mutex resource management from client driver to mutex driver could prevent client drivers negotiating for resource management. Signed-off-by: CK Hu Signed-off-by: Chun-Kuang Hu --- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 2 +- drivers/gpu/drm/mediatek/mtk_mutex.c|

[PATCH 0/5] Share mtk mutex driver for both DRM and MDP

2020-12-19 Thread Chun-Kuang Hu
mtk mutex is a driver used by DRM and MDP [1], so this series move mtk mutex driver from DRM folder to soc folder, so it could be used by DRM and MDP. This series based on linux-next next-20201218 [2] [1] https://patchwork.kernel.org/patch/11140751/ [2]

WARNING: suspicious RCU usage in wiphy_apply_custom_regulatory

2020-12-19 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:d635a69d Merge tag 'net-next-5.11' of git://git.kernel.org.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=14502c1350 kernel config: https://syzkaller.appspot.com/x/.config?x=c3556e4856b17a95

Re: [PATCH] mm/userfaultfd: fix memory corruption due to writeprotect

2020-12-19 Thread Andrea Arcangeli
On Sat, Dec 19, 2020 at 02:06:02PM -0800, Nadav Amit wrote: > > On Dec 19, 2020, at 1:34 PM, Nadav Amit wrote: > > > > [ cc’ing some more people who have experience with similar problems ] > > > >> On Dec 19, 2020, at 11:15 AM, Andrea Arcangeli wrote: > >> > >> Hello, > >> > >> On Fri, Dec

Re: [PATCH] mmc: sdhci-sprd: Fix some resource leaks in the remove function

2020-12-19 Thread Orson Zhai
On Fri, Dec 18, 2020 at 9:46 PM Christophe JAILLET wrote: > > Le 17/12/2020 à 23:55, Orson Zhai a écrit : > > + cc: Billows > > > > Hi Christophe, > > On Fri, Dec 18, 2020 at 4:50 AM Christophe JAILLET > > wrote: > >> > >> 'sdhci_remove_host()' and 'sdhci_pltfm_free()' should be used in place of

Re: [PATCH] mm/userfaultfd: fix memory corruption due to writeprotect

2020-12-19 Thread Andy Lutomirski
On Sat, Dec 19, 2020 at 1:34 PM Nadav Amit wrote: > > [ cc’ing some more people who have experience with similar problems ] > > > On Dec 19, 2020, at 11:15 AM, Andrea Arcangeli wrote: > > > > Hello, > > > > On Fri, Dec 18, 2020 at 08:30:06PM -0800, Nadav Amit wrote: > >> Analyzing this problem

Re: [PATCH] Input: da7280 - protect OF match table with CONFIG_OF

2020-12-19 Thread Jeff LaBundy
Hi Dmitry, On Fri, Dec 18, 2020 at 04:49:48PM +, Roy Im wrote: > On Friday, December 18, 2020 3:50 PM, Dmitry Torokhov wrote: > > > The OF match table is only used when OF is enabled. > > > > Fixes: cd3f609823a5 ("Input: new da7280 haptic driver") > > Reported-by: kernel test robot > >

Re: [PATCH] zsmalloc: do not use bit_spin_lock

2020-12-19 Thread Mike Galbraith
On Sun, 2020-12-20 at 02:22 +0200, Vitaly Wool wrote: > zsmalloc takes bit spinlock in its _map() callback and releases it > only in unmap() which is unsafe and leads to zswap complaining > about scheduling in atomic context. > > To fix that and to improve RT properties of zsmalloc, remove that >

[PATCH] iio:light:apds9960 add detection for MSHW0184 ACPI device in apds9960 driver

2020-12-19 Thread Max Leiter
The device is used in the Microsoft Surface Book 3 and Surface Pro 7 Signed-off-by: Max Leiter --- drivers/iio/light/apds9960.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/iio/light/apds9960.c b/drivers/iio/light/apds9960.c index 9afb3fcc74e6..20719141c03a 100644 ---

Re: [PATCH v2 0/6] kernfs: proposed locking and concurrency improvement

2020-12-19 Thread Ian Kent
On Sun, 2020-12-20 at 07:52 +0800, Ian Kent wrote: > On Sat, 2020-12-19 at 11:23 -0500, Tejun Heo wrote: > > Hello, > > > > On Sat, Dec 19, 2020 at 03:08:13PM +0800, Ian Kent wrote: > > > And looking further I see there's a race that kernfs can't do > > > anything > > > about between

[tip:master] BUILD SUCCESS 981316394e3558064e65bfabbae71acb9145e483

2020-12-19 Thread kernel test robot
allyesconfig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a003-20201219 x86_64 randconfig-a006-20201219 x86_64 randconfig-a002-20201219 x86_64 randconfig-a005-20201219 x86_64

Re: [PATCH] zsmalloc: do not use bit_spin_lock

2020-12-19 Thread Mike Galbraith
On Sun, 2020-12-20 at 02:22 +0200, Vitaly Wool wrote: > zsmalloc takes bit spinlock in its _map() callback and releases it > only in unmap() which is unsafe and leads to zswap complaining > about scheduling in atomic context. > > To fix that and to improve RT properties of zsmalloc, remove that >

KASAN: use-after-free Read in io_ring_ctx_wait_and_kill

2020-12-19 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:a409ed15 Merge tag 'gpio-v5.11-1' of git://git.kernel.org/.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1425527b50 kernel config: https://syzkaller.appspot.com/x/.config?x=f7c39e7211134bc0

Re: [PATCH] zsmalloc: do not use bit_spin_lock

2020-12-19 Thread Matthew Wilcox
On Sun, Dec 20, 2020 at 02:22:28AM +0200, Vitaly Wool wrote: > zsmalloc takes bit spinlock in its _map() callback and releases it > only in unmap() which is unsafe and leads to zswap complaining > about scheduling in atomic context. > > To fix that and to improve RT properties of zsmalloc, remove

Re: 5.10.1: UBSAN: shift-out-of-bounds in ./include/linux/log2.h:57:1

2020-12-19 Thread Randy Dunlap
On 12/18/20 2:20 AM, Toralf Förster wrote: > On 12/18/20 7:54 AM, Randy Dunlap wrote: >> Hi, >> >> [adding linux-mm] >> >> On 12/16/20 1:54 AM, Toralf Förster wrote: >>> Hi, >>> >>> I got this recently at this hardened Gentoo Linux server: >>> >>> Linux mr-fox 5.10.1 #1 SMP Tue Dec 15 22:09:42 CET

[PATCH] zsmalloc: do not use bit_spin_lock

2020-12-19 Thread Vitaly Wool
zsmalloc takes bit spinlock in its _map() callback and releases it only in unmap() which is unsafe and leads to zswap complaining about scheduling in atomic context. To fix that and to improve RT properties of zsmalloc, remove that bit spinlock completely and use a bit flag instead.

  1   2   3   4   5   >