Re: [PATCH HACK RFC] cpu: Prevent late-arriving interrupts from disrupting offline

2019-06-11 Thread Dietmar Eggemann
On 6/8/19 6:41 PM, Paul E. McKenney wrote: On Tue, Jun 04, 2019 at 03:29:32PM +0200, Dietmar Eggemann wrote: On 6/4/19 9:45 AM, Paul E. McKenney wrote: On Mon, Jun 03, 2019 at 03:39:18PM +0200, Dietmar Eggemann wrote: On 6/3/19 1:44 PM, Mark Rutland wrote: On Mon, Jun 03, 2019 at 10:38:48AM +

Re: [PATCH v8 26/29] vfio-pci: Register an iommu fault handler

2019-06-11 Thread Jean-Philippe Brucker
On 10/06/2019 22:31, Jacob Pan wrote: > On Mon, 10 Jun 2019 13:45:02 +0100 > Jean-Philippe Brucker wrote: > >> On 07/06/2019 18:43, Jacob Pan wrote: > So it seems we agree on the following: > - iommu_unregister_device_fault_handler() will never fail > - iommu driver cleans up all pend

[PATCH] x86: tls: fix possible spectre-v1 in do_get_thread_area()

2019-06-11 Thread Dianzhang Chen
The idx in do_get_thread_area() is controlled by userspace via syscall: ptrace(defined in kernel/ptrace.c), hence leading to a potential exploitation of the Spectre variant 1 vulnerability. The idx can be controlled from: ptrace -> arch_ptrace -> do_get_thread_area. Fix this by sanitizing

From Mrs Maria Jornson

2019-06-11 Thread Mrs. Maria Johnson
Dear friend. I am Mrs Maria Johnson an Active Banker, I saw your email address while browsing through the bank DTC Screen in my office yesterday, so i decided to use this very chance to know you more I have deal of ($10.5 million Dollars) to transfer into your account, if you are interested get

Re: -next-20190607 kernel: oopses on bootup or shutdown

2019-06-11 Thread Tejun Heo
On Tue, Jun 11, 2019 at 10:57:53AM +0200, Pavel Machek wrote: > Hi! > > It failed to boot three times; now it booted but failed on shutdown. > > Hardware is thinkpad X60 (32bit x86), and I'm copying oops by hand. Can you please try next-20190611? It should be fixed now. Thanks. -- tejun

[RFC PATCH] Add script to add/remove/rename/renumber syscalls and resolve conflicts

2019-06-11 Thread David Howells
Add a script that simplifies the process of altering system call tables in the kernel sources. It has five functions available: (1) Add a system call or compat system call: ./scripts/syscall-manage.pl --add [--compat] (2) Remove a system call: ./scripts/syscall-manage.pl --r

Re: [PATCH v8 16/19] locking/rwsem: Guard against making count negative

2019-06-11 Thread Peter Zijlstra
On Tue, Jun 11, 2019 at 03:11:31PM +0200, Peter Zijlstra wrote: > On Mon, May 20, 2019 at 04:59:15PM -0400, Waiman Long wrote: > > > +static inline long rwsem_read_trylock(struct rw_semaphore *sem, long *cnt) > > +{ > > + long adjustment = -RWSEM_READER_BIAS; > > + > > + *cnt = atomic_long_fet

[PATCH] bpf: verifier: avoid fall-through warnings

2019-06-11 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, this patch silences the following warning: kernel/bpf/verifier.c: In function ‘check_return_code’: kernel/bpf/verifier.c:5509:6: warning: this statement may fall through [-Wimplicit-fallthrough=] if (env->prog->expected_attach_type == BPF_CGRO

RE: [PATCH v12 1/1] Add support for IPMB driver

2019-06-11 Thread Asmaa Mnebhi
Hello Randy, Please refer to the slave-interface linux documentation: https://www.kernel.org/doc/Documentation/i2c/slave-interface Thanks. Asmaa -Original Message- From: Randy Dunlap Sent: Monday, June 10, 2019 5:56 PM To: Asmaa Mnebhi ; miny...@acm.org; w...@the-dreams.de; Vadim Past

Re: [PATCH v4 0/8] arm64: IRQ priority masking and Pseudo-NMI fixes

2019-06-11 Thread Marc Zyngier
Hi Julien, On 11/06/2019 10:38, Julien Thierry wrote: > Hi, > > Version one[1] of this series attempted to fix the issue reported by > Zenghui[2] when using the function_graph tracer with IRQ priority > masking. > > Since then, I realized that priority masking and the use of Pseudo-NMIs > was mo

Re: KASAN: null-ptr-deref Read in x25_connect

2019-06-11 Thread Dmitry Vyukov
On Tue, Jun 11, 2019 at 2:39 PM Arnd Bergmann wrote: > > On Tue, Jun 11, 2019 at 9:18 AM syzbot > wrote: > > > > Hello, > > > > syzbot found the following crash on: > > > > HEAD commit:f4cfcfbd net: dsa: sja1105: Fix link speed not working at .. > > git tree: net > > console output: htt

Re: [PATCH v7 3/5] usb: host: ohci-sm501: init genalloc for local memory

2019-06-11 Thread Guenter Roeck
rial stdio \ > -net nic,model=rtl8139 -net user -nographic -monitor null > > Reverting this patch as well as "USB: drop HCD_LOCAL_MEM flag" fixes the > problem. Reverting "USB: drop HCD_LOCAL_MEM flag" alone does not help. > This problem is still seen in next-20190611. Has anyone actually tested this code ? Guenter

Re: [PATCH v3] kernel/module: Fix mem leak in module_add_modinfo_attrs

2019-06-11 Thread Jessica Yu
+++ YueHaibing [03/06/19 22:45 +0800]: In module_add_modinfo_attrs if sysfs_create_file fails, we forget to free allocated modinfo_attrs and roll back the sysfs files. Fixes: 03e88ae1b13d ("[PATCH] fix module sysfs files reference counting") Signed-off-by: YueHaibing --- v3: reuse module_remove

Re: Linux 5.1.9

2019-06-11 Thread Greg KH
diff --git a/Makefile b/Makefile index 3027a0ce7a02..2884a8d3b6d6 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 5 PATCHLEVEL = 1 -SUBLEVEL = 8 +SUBLEVEL = 9 EXTRAVERSION = NAME = Shy Crocodile diff --git a/arch/arc/mm/fault.c b/arch/arc/mm/

Linux 5.1.9

2019-06-11 Thread Greg KH
I'm announcing the release of the 5.1.9 kernel. All users of the 5.1 kernel series must upgrade. The updated 5.1.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.1.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 4.19.50

2019-06-11 Thread Greg KH
diff --git a/Makefile b/Makefile index e84966c49117..f7e7e365e2ff 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 19 -SUBLEVEL = 49 +SUBLEVEL = 50 EXTRAVERSION = NAME = "People's Front" diff --git a/arch/mips/ath79/setup.c b/ar

Linux 4.19.50

2019-06-11 Thread Greg KH
I'm announcing the release of the 4.19.50 kernel. All users of the 4.19 kernel series must upgrade. The updated 4.19.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.19.y and can be browsed at the normal kernel.org git web browser:

Linux 4.14.125

2019-06-11 Thread Greg KH
I'm announcing the release of the 4.14.125 kernel. All users of the 4.14 kernel series must upgrade. The updated 4.14.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.14.y and can be browsed at the normal kernel.org git web browser

Re: Linux 4.14.125

2019-06-11 Thread Greg KH
diff --git a/Makefile b/Makefile index 8416103c15a1..9182c0b13988 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 14 -SUBLEVEL = 124 +SUBLEVEL = 125 EXTRAVERSION = NAME = Petit Gorille diff --git a/arch/mips/ath79/setup.c b/arc

Re: Linux 4.9.181

2019-06-11 Thread Greg KH
diff --git a/Documentation/conf.py b/Documentation/conf.py index d769cd89a9f7..da7b54388eff 100644 --- a/Documentation/conf.py +++ b/Documentation/conf.py @@ -37,7 +37,7 @@ from load_config import loadConfig extensions = ['kernel-doc', 'rstFlatTable', 'kernel_include', 'cdomain'] # The name of

Linux 4.4.181

2019-06-11 Thread Greg KH
I'm announcing the release of the 4.4.181 kernel. All users of the 4.4 kernel series must upgrade. The updated 4.4.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.4.y and can be browsed at the normal kernel.org git web browser:

Linux 4.9.181

2019-06-11 Thread Greg KH
I'm announcing the release of the 4.9.181 kernel. All users of the 4.9 kernel series must upgrade. The updated 4.9.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.9.y and can be browsed at the normal kernel.org git web browser:

[PATCH -next] ima: Make arch_policy_entry static

2019-06-11 Thread YueHaibing
Fix sparse warning: security/integrity/ima/ima_policy.c:202:23: warning: symbol 'arch_policy_entry' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- security/integrity/ima/ima_policy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi

AW: Antwort

2019-06-11 Thread Martin Winkler
Sehr geehrte Damen und Herren, nach unserem Besuch Ihrer Homepage möchten wir Ihnen ein Angebot von Produkten vorstellen, das Ihnen ermöglichen wird, den Verkauf Ihrer Produkte sowie Dienstleistungen deutlich zu erhöhen. Die Datenbanken der Firmen sind in für Sie interessante und relevante Zi

Re: [RFC PATCH v1 2/3] LSM/x86/sgx: Implement SGX specific hooks in SELinux

2019-06-11 Thread Stephen Smalley
On 6/10/19 3:03 AM, Cedric Xing wrote: In this patch, SELinux maintains two bits per enclave page, namely SGX__EXECUTE and SGX__EXECMOD. SGX__EXECUTE is set initially (by selinux_enclave_load) for every enclave page that was loaded from a potentially executable source page. SGX__EXECMOD is set f

[PATCH -next] Staging: kpc2000: kpc_dma: Make some symbols static

2019-06-11 Thread YueHaibing
Fix sparse warnings: drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c:46:6: warning: symbol 'kpc_dma_del_device' was not declared. Should it be static? drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c:84:1: warning: symbol 'dev_attr_engine_regs' was not declared. Should it be static? drivers/sta

Re: [Jfs-discussion] [PATCH 1/4] vfs: create a generic checking function for FS_IOC_SETFLAGS

2019-06-11 Thread Dave Kleikamp
On 6/10/19 11:45 PM, Darrick J. Wong wrote: > From: Darrick J. Wong > > Create a generic checking function for the incoming FS_IOC_SETFLAGS flag > values so that we can standardize the implementations that follow ext4's > flag values. > > Signed-off-by: Darrick J. Wong -- clip -- > diff --gi

[PATCH -next] security: Make capability_hooks static

2019-06-11 Thread YueHaibing
Fix sparse warning: security/commoncap.c:1347:27: warning: symbol 'capability_hooks' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- security/commoncap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/commoncap.c b/sec

Re: [PATCH v2] sched/fair: don't push cfs_bandwith slack timers forward

2019-06-11 Thread Peter Zijlstra
On Tue, Jun 11, 2019 at 09:04:17AM -0400, Phil Auld wrote: > On Thu, Jun 06, 2019 at 10:21:01AM -0700 bseg...@google.com wrote: > > When a cfs_rq sleeps and returns its quota, we delay for 5ms before > > waking any throttled cfs_rqs to coalesce with other cfs_rqs going to > > sleep, as this has to

Re: [PATCH] USB: add usbfs ioctl to retrieve the connection parameters

2019-06-11 Thread Alan Stern
On Mon, 10 Jun 2019, Dmitry Torokhov wrote: > Recently usfbs gained availability to retrieve device speed, but there > is sill no way to determine the bus number or list of ports the device > is connected to when using usbfs. While this information can be obtained > from sysfs, not all environment

Re: [PATCHv3 1/2] mm/gup: fix omission of check on FOLL_LONGTERM in get_user_pages_fast()

2019-06-11 Thread Christoph Hellwig
On Tue, Jun 11, 2019 at 08:29:35PM +0800, Pingfan Liu wrote: > Unable to get a NVME device to have a test. And when testing fio on the How would a nvme test help? FOLL_LONGTERM isn't used by any performance critical path to start with, so I don't see how this patch could be a problem.

Re: [PATCH v2] sched/fair: don't push cfs_bandwith slack timers forward

2019-06-11 Thread Peter Zijlstra
On Thu, Jun 06, 2019 at 10:21:01AM -0700, bseg...@google.com wrote: > diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h > index efa686eeff26..60219acda94b 100644 > --- a/kernel/sched/sched.h > +++ b/kernel/sched/sched.h > @@ -356,6 +356,7 @@ struct cfs_bandwidth { > u64

Re: [PATCH HACK RFC] cpu: Prevent late-arriving interrupts from disrupting offline

2019-06-11 Thread Paul E. McKenney
On Tue, Jun 11, 2019 at 03:14:54PM +0200, Dietmar Eggemann wrote: > On 6/8/19 6:41 PM, Paul E. McKenney wrote: > >On Tue, Jun 04, 2019 at 03:29:32PM +0200, Dietmar Eggemann wrote: > >>On 6/4/19 9:45 AM, Paul E. McKenney wrote: > >>>On Mon, Jun 03, 2019 at 03:39:18PM +0200, Dietmar Eggemann wrote: >

[RFC 3/5] livepatch: Allow to distinguish different version of system state changes

2019-06-11 Thread Petr Mladek
The atomic replace runs pre/post (un)install callbacks only from the new livepatch. There are several reasons for this: + Simplicity: clear ordering of operations, no interactions between old and new callbacks. + Reliability: only new livepatch knows what changes can already be made

[RFC 0/5] livepatch: new API to track system state changes

2019-06-11 Thread Petr Mladek
Hi, this is another piece in the puzzle that helps to maintain more livepatches. Especially pre/post (un)patch callbacks might change a system state. Any newly installed livepatch has to somehow deal with system state modifications done be already installed livepatches. This patchset provides, h

[RFC 1/5] livepatch: Keep replaced patches until post_patch callback is called

2019-06-11 Thread Petr Mladek
Pre/post (un)patch callbacks might manipulate the system state. Cumulative livepatches might need to take over the changes made by the replaced ones. For this they might need to access some data stored or referenced by the old livepatches. Therefore the replaced livepatches has to stay around unti

Linux 5.1.9 build failure with CONFIG_NOUVEAU_LEGACY_CTX_SUPPORT=n

2019-06-11 Thread Sven Joachim
Commit 1e07d63749 ("drm/nouveau: add kconfig option to turn off nouveau legacy contexts. (v3)") has caused a build failure for me when I actually tried that option (CONFIG_NOUVEAU_LEGACY_CTX_SUPPORT=n): , | Kernel: arch/x86/boot/bzImage is ready (#1) | Building modules, stage 2. | MODPOST

[RFC 2/5] livepatch: Basic API to track system state changes

2019-06-11 Thread Petr Mladek
This is another step how to help maintaining more livepatches. One big help was the atomic replace and cumulative livepatches. These livepatches replaces the already installed ones. Therefore it should be enough when each cumulative livepatch is consistent. The problems might come with shadow var

[RFC 5/5] livepatch: Selftests of the API for tracking system state changes

2019-06-11 Thread Petr Mladek
Four selftests for the new API. Signed-off-by: Petr Mladek --- lib/livepatch/Makefile | 5 +- lib/livepatch/test_klp_state.c | 161 lib/livepatch/test_klp_state2.c | 190 lib/livepatch/test_

[RFC 4/5] livepatch: Documentation of the new API for tracking system state changes

2019-06-11 Thread Petr Mladek
Documentation explaining the motivation, capabilities, and usage of the new API for tracking system state changes. Signed-off-by: Petr Mladek --- Documentation/livepatch/index.rst| 1 + Documentation/livepatch/system-state.rst | 80 2 files changed, 81 i

Re: A potential broken at platform driver?

2019-06-11 Thread Richard Gong
Hi Greg, On 6/4/19 12:03 PM, Greg KH wrote: On Tue, Jun 04, 2019 at 11:13:02AM -0500, Richard Gong wrote: Hi Greg, On 6/4/19 9:28 AM, Greg KH wrote: On Tue, Jun 04, 2019 at 12:33:03PM +0200, Romain Izard wrote: On Mon, Jun 03, 2019 at 08:02:55PM +0200, Greg KH wrote: @@ -394,7 +432,7 @@

[PATCH -next] cifs: remove set but not used variable 'ioctl_buf' and 'cifsi'

2019-06-11 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warnings: fs/cifs/smb2ops.c: In function smb2_query_symlink: fs/cifs/smb2ops.c:2417:8: warning: variable ioctl_buf set but not used [-Wunused-but-set-variable] fs/cifs/smb2ops.c: In function smb3_punch_hole: fs/cifs/smb2ops.c:2799:24: warning: variable cifsi

RE: [PATCH v2] staging: kpc2000: kpc_i2c: remove the macros inb_p and outb_p

2019-06-11 Thread Matt Sickler
>-Original Message- >From: devel On Behalf Of >Geordan Neukum > >This inb() call looks like a bug. We perform a 64-bit operation when >talking to this hardware register everywhere else in this driver. Anyone >have more insight into the hardware with which this driver interacts >such that t

[PATCH] usb: dwc3: meson-g12a: Add support for IRQ based OTG switching

2019-06-11 Thread Neil Armstrong
Add support for the OTG ID change interrupt to switch between Host and Device mode. Tested on the Hardkernel Odroid-N2 board. Signed-off-by: Neil Armstrong --- drivers/usb/dwc3/dwc3-meson-g12a.c | 32 -- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/

[PATCH net-next] net: dsa: sja1105: Make two functions static

2019-06-11 Thread YueHaibing
Fix sparse warnings: drivers/net/dsa/sja1105/sja1105_main.c:1848:6: warning: symbol 'sja1105_port_rxtstamp' was not declared. Should it be static? drivers/net/dsa/sja1105/sja1105_main.c:1869:6: warning: symbol 'sja1105_port_txtstamp' was not declared. Should it be static? Reported-by: Hulk Robo

[GIT PULL] PHY: for 5.2-rc

2019-06-11 Thread Kishon Vijay Abraham I
Hi Greg, Please find the pull request for 5.2 -rc cycle. The major fix being moving supplies powering PLLs used by USB, SATA, PCIe to tegra-xusb driver fixing initialization failure. Others are minor fixes. Please see the tag message below for more details. Consider merging it in this -rc cycle

Re: [PATCH 2/2 v5] tty/serial/8250: use mctrl_gpio helpers

2019-06-11 Thread Stefan Roese
On 11.06.19 14:44, Andy Shevchenko wrote: On Tue, Jun 11, 2019 at 12:56:03PM +0200, Stefan Roese wrote: From: Yegor Yefremov This patch permits the usage for GPIOs to control the CTS/RTS/DTR/DSR/DCD/RI signals. static inline void serial8250_out_MCR(struct uart_8250_port *up, int value)

Re: [RFC PATCH] Add script to add/remove/rename/renumber syscalls and resolve conflicts

2019-06-11 Thread Arnd Bergmann
On Tue, Jun 11, 2019 at 3:27 PM David Howells wrote: > > Add a script that simplifies the process of altering system call tables in > the kernel sources. It has five functions available: Ah, fun. You had already threatened to add that script in the past. The implementation of course looks fine,

[PATCH v3 3/3] i3c: dw: add limited bus mode support

2019-06-11 Thread Vitor Soares
This patch add limited bus mode support for DesignWare i3c master Signed-off-by: Vitor Soares Cc: Boris Brezillon Cc: --- Changes in v3: None Changes in v2: None drivers/i3c/master/dw-i3c-master.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/i3c/master/dw-i3c-master.c b/d

[PATCH v3 2/3] i3c: add mixed limited bus mode

2019-06-11 Thread Vitor Soares
The i3c bus spec defines a bus configuration where i2c devices don't have a 50ns filter but support SCL running at SDR max rate (12.5MHz). This patch introduces the limited bus mode so that users can use a higher speed in presence of i2c devices index 1. Signed-off-by: Vitor Soares Cc: Boris Bre

[PATCH v3 1/3] i3c: fix i2c and i3c scl rate by bus mode

2019-06-11 Thread Vitor Soares
Currently the I3C framework limits SCL frequency to FM speed when dealing with a mixed slow bus, even if all I2C devices are FM+ capable. The core was also not accounting for I3C speed limitations when operating in mixed slow mode and was erroneously using FM+ speed as the max I2C speed when opera

Re: Question - check in runtime which architecture am I running on

2019-06-11 Thread Christoph Hellwig
On Tue, Jun 11, 2019 at 03:30:08PM +0300, Oded Gabbay wrote: > Hello POWER developers, > > I'm trying to find out if there is an internal kernel API so that a > PCI driver can call it to check if its PCI device is running inside a > POWER9 machine. Alternatively, if that's not available, if it is

[PATCH net-next] qede: Make two functions static

2019-06-11 Thread YueHaibing
Fix sparse warning: drivers/net/ethernet/qlogic/qede/qede_main.c:963:6: warning: symbol 'qede_lock' was not declared. Should it be static? drivers/net/ethernet/qlogic/qede/qede_main.c:969:6: warning: symbol 'qede_unlock' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off

Re: [PATCH 1/7] perf: arm64: Compile tests unconditionally

2019-06-11 Thread Mark Rutland
On Tue, Jun 11, 2019 at 01:53:09PM +0100, Raphael Gault wrote: > In order to subsequently add more tests for the arm64 architecture > we compile the tests target for arm64 systematically. Given prior questions regarding this commit, it's probably worth spelling things out more explicitly, e.g.

Re: [PATCH v2] sched/fair: don't push cfs_bandwith slack timers forward

2019-06-11 Thread Phil Auld
On Tue, Jun 11, 2019 at 03:53:25PM +0200 Peter Zijlstra wrote: > On Thu, Jun 06, 2019 at 10:21:01AM -0700, bseg...@google.com wrote: > > diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h > > index efa686eeff26..60219acda94b 100644 > > --- a/kernel/sched/sched.h > > +++ b/kernel/sched/sched.h

[PATCH v4 3/3] livepatch: Remove duplicate warning about missing reliable stacktrace support

2019-06-11 Thread Miroslav Benes
From: Petr Mladek WARN_ON_ONCE() could not be called safely under rq lock because of console deadlock issues. Moreover WARN_ON_ONCE() is superfluous in klp_check_stack(), because stack_trace_save_tsk_reliable() cannot return -ENOSYS thanks to klp_have_reliable_stack() check in klp_try_switch_task

[PATCH v4 1/3] stacktrace: Remove weak version of save_stack_trace_tsk_reliable()

2019-06-11 Thread Miroslav Benes
Recent rework of stack trace infrastructure introduced a new set of helpers for common stack trace operations (commit e9b98e162aa5 ("stacktrace: Provide helpers for common stack trace operations") and related). As a result, save_stack_trace_tsk_reliable() is not directly called anywhere. Livepatch,

[PATCH v4 2/3] Revert "livepatch: Remove reliable stacktrace check in klp_try_switch_task()"

2019-06-11 Thread Miroslav Benes
This reverts commit 1d98a69e5cef3aeb68bcefab0e67e342d6bb4dad. Commit 31adf2308f33 ("livepatch: Convert error about unsupported reliable stacktrace into a warning") weakened the enforcement for architectures to have reliable stack traces support. The system only warns now about it. It only makes se

[PATCH v4 0/3] livepatch: Cleanup of reliable stacktrace warnings

2019-06-11 Thread Miroslav Benes
This is the fourth attempt to improve the situation of reliable stack trace warnings in livepatch. Based on discussion in 20190531074147.27616-1-pmla...@suse.com (v3). Changes against v3: + weak save_stack_trace_tsk_reliable() removed, because it is not needed anymore thanks to Thomas' recent im

[PATCH] module: add enum module parameter type to map names to values

2019-06-11 Thread Jani Nikula
Add enum module parameter type that's internally an int and externally maps names to values. This makes the userspace interface more intuitive to use and somewhat easier to document, while also limiting the allowed values set by userspace to the defined set. For example, given this code to define

[PATCH v4 3/3] lib: logic_pio: Fix up a print

2019-06-11 Thread John Garry
For the print in logic_pio_trans_cpuaddr(), don't cast the value to unsigned long long, and just print the resource_size_t type directly. Signed-off-by: John Garry --- lib/logic_pio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/logic_pio.c b/lib/logic_pio.c index 47

[PATCH v4 1/3] lib: logic_pio: Use logical PIO low-level accessors for !CONFIG_INDIRECT_PIO

2019-06-11 Thread John Garry
Currently we only use logical PIO low-level accessors for when CONFIG_INDIRECT_PIO is enabled. Otherwise we just use inb/out et all directly. It is useful to now use logical PIO accessors for all cases, so we can add legality checks to accesses. Such a check would be for ensuring that the PCI IO

[PATCH v4 2/3] lib: logic_pio: Reject accesses to unregistered CPU MMIO regions

2019-06-11 Thread John Garry
Currently when accessing logical indirect PIO addresses in logic_{in, out}{,s}, we first ensure that the region is registered. However, no such check exists for CPU MMIO regions. The CPU MMIO regions would be registered by the PCI host (when PCI_IOBASE is defined) in pci_register_io_range(). We h

[PATCH v4 0/3] Fix ARM64 crash for accessing unmapped IO port regions

2019-06-11 Thread John Garry
It was reported some time ago that arm64 systems will crash if a driver attempts to access IO port addresses when the PCI IO port region has not been mapped [1]. More recently, a similar crash is where the system PCI host probe fails, and the IPMI driver crashes the system while attempting to do s

Re: [PATCH 02/17] mm: stub out all of swapops.h for !CONFIG_MMU

2019-06-11 Thread Christoph Hellwig
On Tue, Jun 11, 2019 at 11:15:44AM +0100, Vladimir Murzin wrote: > On 6/10/19 11:16 PM, Christoph Hellwig wrote: > > The whole header file deals with swap entries and PTEs, none of which > > can exist for nommu builds. > > Although I agree with the patch, I'm wondering how you get into it? Withou

[PATCH v2 00/11] Support for Allwinner V3/S3L and Sochip S3

2019-06-11 Thread Icenowy Zheng
This patchset tries to add support for Allwinner V3/S3L and Sochip S3. Allwinner V3/V3s/S3L and Sochip S3 share the same die, but with different package. V3 is BGA w/o co-packaged DDR, V3s is QFP w/ DDR2, S3L is BGA w/ DDR2 and S3 is BGA w/ DDR3. (S3 and S3L is compatible for pinout, but because o

[PATCH v2 01/11] dt-bindings: pinctrl: add missing compatible string for V3s

2019-06-11 Thread Icenowy Zheng
The pinctrl driver of V3s is already available and used in the kernel, but the compatible string of it is forgotten to be added. Add the missing compatible string. Signed-off-by: Icenowy Zheng Acked-by: Maxime Ripard Reviewed-by: Rob Herring --- Changes in v2: - Add the ACK tag by Maxime and t

[PATCH v2 06/11] clk: sunxi-ng: v3s: add Allwinner V3 support

2019-06-11 Thread Icenowy Zheng
Allwinner V3 has the same main die with V3s, but with more pins wired. There's a I2S bus on V3 that is not available on V3s. Add the V3-only peripheral's clocks and reset to the V3s CCU driver, bound to a new V3 compatible string. The driver name is not changed because it's part of the device tree

Re: [PATCH v2] sched/fair: don't push cfs_bandwith slack timers forward

2019-06-11 Thread Peter Zijlstra
On Tue, Jun 11, 2019 at 10:12:19AM -0400, Phil Auld wrote: > That looks reasonable to me. > > Out of curiosity, why not bool? Is sizeof bool architecture dependent? Yeah, sizeof(_Bool) is unspecified and depends on ABI. It is mostly 1, but there are known cases where it is 4.

[PATCH v2 05/11] dt-bindings: clk: sunxi-ccu: add compatible string for V3 CCU

2019-06-11 Thread Icenowy Zheng
Despite Allwinner V3 and V3s shares the same die, one peripheral (I2S) is only available on V3, and thus the clocks is not declared for V3s CCU. Add a V3 CCU compatible string to the binding to prepare for a CCU driver that provide I2S clock on V3, but not on V3s. Signed-off-by: Icenowy Zheng Re

[PATCH v2 11/11] ARM: dts: sun8i: s3: add devicetree for Lichee zero plus w/ S3

2019-06-11 Thread Icenowy Zheng
Lichee zero plus is a core board made by Sipeed, which includes on-board TF slot or SMT SD NAND, and optional SPI NOR or eMMC, a UART debug header, a microUSB slot and a gold finger connector for expansion. It can use either Sochip S3 or Allwinner S3L SoC. Add the basic device tree for the core bo

[PATCH v2 02/11] dt-bindings: pinctrl: add compatible string for Allwinner V3 pinctrl

2019-06-11 Thread Icenowy Zheng
The Allwinner V3 SoC, despite come with the same die with V3s, has more GPIO pins than V3s, and a different compatible string for pinctrl is needed. Add the compatible string for V3 pinctrl. Signed-off-by: Icenowy Zheng Reviewed-by: Rob Herring --- Changes in v2: - Add the review tag by Rob.

[PATCH v2 08/11] ARM: sunxi: dts: s3/s3l/v3: add DTSI files for S3/S3L/V3 SoCs

2019-06-11 Thread Icenowy Zheng
The Allwinner S3/S3L/V3 SoCs all share the same die with the V3s SoC, but with more GPIO wired out of the package. Add DTSI files for these SoCs. The DTSI file for V3 just replaces the pinctrl compatible string, and the S3/S3L DTSI files just include the V3 DTSI file. Signed-off-by: Icenowy Zheng

[PATCH v2 03/11] pinctrl: sunxi: v3s: introduce support for V3

2019-06-11 Thread Icenowy Zheng
Introduce the GPIO pins that is only available on V3 (not on V3s) to the V3s pinctrl driver. Signed-off-by: Icenowy Zheng --- Changes in v2: - Dropped the driver rename patch and apply the changes directly on V3s driver. drivers/pinctrl/sunxi/pinctrl-sun8i-v3s.c | 265 +-

[PATCH v2 10/11] dt-bindings: arm: sunxi: add binding for Lichee Zero Plus core board

2019-06-11 Thread Icenowy Zheng
The Lichee Zero Plus is a core board made by Sipeed, with a microUSB connector on it, TF slot or WSON8 SD chip, optional eMMC or SPI Flash. It has a gold finger connector for expansion, and UART is available from reserved pins w/ 2.54mm pitch. The board can use either SoChip S3 or Allwinner V3L SoC

[PATCH v2 09/11] dt-bindings: vendor-prefixes: add Sipeed

2019-06-11 Thread Icenowy Zheng
Shenzhen Sipeed Technology Co., Ltd. is a company focused on development kits, which also contains rebranded Lichee Pi series. Add its vendor prefix binding. Signed-off-by: Icenowy Zheng --- New patch in v2. Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 inser

[PATCH v2 04/11] clk: sunxi-ng: v3s: add the missing PLL_DDR1

2019-06-11 Thread Icenowy Zheng
The user manual of V3/V3s/S3 declares a PLL_DDR1, however it's forgot when developing the V3s CCU driver. Add back the missing PLL_DDR1. Fixes: d0f11d14b0bc ("clk: sunxi-ng: add support for V3s CCU") Signed-off-by: Icenowy Zheng --- No changes in v2. drivers/clk/sunxi-ng/ccu-sun8i-v3s.c | 19 +

[PATCH v2 07/11] dt-bindings: vendor-prefixes: add SoChip

2019-06-11 Thread Icenowy Zheng
Shenzhen SoChip Technology Co., Ltd. is a hardware vendor that produces EVBs with Allwinner chips. There's also a SoC named S3 that is developed by Allwinner (based on Allwinner V3/V3s) but branded SoChip. Add the vendor prefix for SoChip. Signed-off-by: Icenowy Zheng Reviewed-by: Rob Herring -

What do LSMs *actually* need for checks on notifications?

2019-06-11 Thread David Howells
To see if we can try and make progress on this, can we try and come at this from another angle: what do LSMs *actually* need to do this? And I grant that each LSM might require different things. -~- [A] There are a bunch of things available, some of which may be coincident, depending on the cont

Re: bcachefs status update (it's done cooking; let's get this sucker merged)

2019-06-11 Thread Matthew Wilcox
On Mon, Jun 10, 2019 at 06:55:15PM -1000, Linus Torvalds wrote: > On Mon, Jun 10, 2019 at 3:17 PM Kent Overstreet > wrote: > > > Why does the regular page lock (at a finer granularity) not suffice? > > > > Because the lock needs to prevent pages from being _added_ to the page > > cache - > > to d

Re: [PATCH] pinctrl: lantiq: Switch to SPDX header

2019-06-11 Thread Enrico Weigelt, metux IT consult
On 11.06.19 09:20, Lubomir Rintel wrote: > The original license text had a typo ("publishhed") which would be > likely to confuse automated licensing auditing tools. Let's just switch > to SPDX instead of fixing the wording. Reviewed-By: Enrico Weigelt BTW: are you aware that there's a separate

Re: [PATCH v2 03/11] pinctrl: sunxi: v3s: introduce support for V3

2019-06-11 Thread Maxime Ripard
Hi, On Tue, Jun 11, 2019 at 10:09:32PM +0800, Icenowy Zheng wrote: > Introduce the GPIO pins that is only available on V3 (not on V3s) to the > V3s pinctrl driver. > > Signed-off-by: Icenowy Zheng > --- > Changes in v2: > - Dropped the driver rename patch and apply the changes directly on V3s >

Re: [PATCH] pinctrl: lantiq: Switch to SPDX header

2019-06-11 Thread Enrico Weigelt, metux IT consult
On 11.06.19 09:20, Lubomir Rintel wrote: > The original license text had a typo ("publishhed") which would be > likely to confuse automated licensing auditing tools. Let's just switch > to SPDX instead of fixing the wording. > > Signed-off-by: Lubomir Rintel Reviewed-By: Enrico Weigelt -- Enr

Re: [PATCH v3] riscv: Fix udelay in RV32.

2019-06-11 Thread Paul Walmsley
On Thu, 30 May 2019, Nick Hu wrote: > In RV32, udelay would delay the wrong cycle. When it shifts right > "UDELAY_SHITFT" bits, it either delays 0 cycle or 1 cycle. It only works > correctly in RV64. Because the 'ucycles' always needs to be 64 bits > variable. > > Signed-off-by: Nick Hu > Review

Re: [PATCH] pinctrl: xway: Switch to SPDX header

2019-06-11 Thread Enrico Weigelt, metux IT consult
On 11.06.19 09:20, Lubomir Rintel wrote: > The original license text had a typo ("publishhed") which would be > likely to confuse automated licensing auditing tools. Let's just switch > to SPDX instead of fixing the wording. > > Signed-off-by: Lubomir Rintel Reviewed-By: Enrico Weigelt -- Enr

Re: [PATCH v3] kernel/module: Fix mem leak in module_add_modinfo_attrs

2019-06-11 Thread Yuehaibing
On 2019/6/11 21:33, Jessica Yu wrote: > +++ YueHaibing [03/06/19 22:45 +0800]: >> In module_add_modinfo_attrs if sysfs_create_file >> fails, we forget to free allocated modinfo_attrs >> and roll back the sysfs files. >> >> Fixes: 03e88ae1b13d ("[PATCH] fix module sysfs files reference counting") >>

[PATCH] arm64: dts: meson-g12b-odroid-n2: add sound card

2019-06-11 Thread Neil Armstrong
Enable the sound card on the Hardkernel Odroid-N2, enabling HDMI output using the TDM interface B, being aligned on other boards sound cards. The internal DAC connected to the audio jack will be added later on, when driver support is added. Tested by running: tinymix set "FRDDR_A SRC 1 EN Switch"

Re: [PATCH v2 11/11] ARM: dts: sun8i: s3: add devicetree for Lichee zero plus w/ S3

2019-06-11 Thread Maxime Ripard
Hi, On Tue, Jun 11, 2019 at 10:09:40PM +0800, Icenowy Zheng wrote: > Lichee zero plus is a core board made by Sipeed, which includes on-board > TF slot or SMT SD NAND, and optional SPI NOR or eMMC, a UART debug > header, a microUSB slot and a gold finger connector for expansion. It > can use eithe

Re: [PATCH 3/7] perf: arm64: Use rseq to test userspace access to pmu counters

2019-06-11 Thread Arnaldo Carvalho de Melo
Em Tue, Jun 11, 2019 at 01:53:11PM +0100, Raphael Gault escreveu: > Add an extra test to check userspace access to pmu hardware counters. > This test doesn't rely on the seqlock as a synchronisation mechanism but > instead uses the restartable sequences to make sure that the thread is > not interru

Re: [PATCH 1/7] perf: arm64: Compile tests unconditionally

2019-06-11 Thread Arnaldo Carvalho de Melo
Em Tue, Jun 11, 2019 at 03:09:07PM +0100, Mark Rutland escreveu: > On Tue, Jun 11, 2019 at 01:53:09PM +0100, Raphael Gault wrote: > > In order to subsequently add more tests for the arm64 architecture > > we compile the tests target for arm64 systematically. > > Given prior questions regarding thi

Re: [PATCH 02/17] mm: stub out all of swapops.h for !CONFIG_MMU

2019-06-11 Thread Vladimir Murzin
On 6/11/19 3:18 PM, Christoph Hellwig wrote: > On Tue, Jun 11, 2019 at 11:15:44AM +0100, Vladimir Murzin wrote: >> On 6/10/19 11:16 PM, Christoph Hellwig wrote: >>> The whole header file deals with swap entries and PTEs, none of which >>> can exist for nommu builds. >> >> Although I agree with the

Re: [PATCH v4 2/4] x86: simplify _TIF_SYSCALL_EMU handling

2019-06-11 Thread Thomas Gleixner
On Thu, 23 May 2019, Sudeep Holla wrote: $Subject: Please use the proper prefix and start the sentence with an upper case letter. x86/entry: Simplify _TIF_SYSCALL_EMU handling > The usage of emulated/_TIF_SYSCALL_EMU flags in syscall_trace_enter > seems to be bit overcomplicated than required.

Re: [PATCH v9 3/4] s390: ap: implement PAPQ AQIC interception in kernel

2019-06-11 Thread Tony Krowiak
On 6/7/19 10:29 AM, Halil Pasic wrote: On Tue, 4 Jun 2019 15:38:51 -0400 Tony Krowiak wrote: On 5/21/19 11:34 AM, Pierre Morel wrote: We register a AP PQAP instruction hook during the open of the mediated device. And unregister it on release. [..] +/** + * vfio_ap_wait_for_irqclear + * @a

Re: [PATCH HACK RFC] cpu: Prevent late-arriving interrupts from disrupting offline

2019-06-11 Thread Dietmar Eggemann
On 6/11/19 3:54 PM, Paul E. McKenney wrote: On Tue, Jun 11, 2019 at 03:14:54PM +0200, Dietmar Eggemann wrote: On 6/8/19 6:41 PM, Paul E. McKenney wrote: On Tue, Jun 04, 2019 at 03:29:32PM +0200, Dietmar Eggemann wrote: On 6/4/19 9:45 AM, Paul E. McKenney wrote: On Mon, Jun 03, 2019 at 03:39:1

[PATCH 08/16] sparc64: define untagged_addr()

2019-06-11 Thread Christoph Hellwig
Add a helper to untag a user pointer. This is needed for ADI support in get_user_pages_fast. Signed-off-by: Christoph Hellwig --- arch/sparc/include/asm/pgtable_64.h | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/sparc/include/asm/pgtable_64.h b/arch/sparc/inc

Why "must" we upgrade the kernels? A hint would be nice

2019-06-11 Thread Öyvind Saether
All the recently released kernels have had a "All users of the _branch_ kernel series must upgrade." notice. It would be informative to have some indication as to why users "must" upgrade. The logs are long and do not really say if there is some urgent reason to upgrade. Also, as I point out in my

[PATCH 01/16] mm: use untagged_addr() for get_user_pages_fast addresses

2019-06-11 Thread Christoph Hellwig
This will allow sparc64 to override its ADI tags for get_user_pages and get_user_pages_fast. Signed-off-by: Christoph Hellwig --- mm/gup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/gup.c b/mm/gup.c index ddde097cf9e4..6bb521db67ec 100644 --- a/mm/gup.c +++ b/mm/g

[PATCH 09/16] sparc64: use the generic get_user_pages_fast code

2019-06-11 Thread Christoph Hellwig
The sparc64 code is mostly equivalent to the generic one, minus various bugfixes and two arch overrides that this patch adds to pgtable.h. Signed-off-by: Christoph Hellwig --- arch/sparc/Kconfig | 1 + arch/sparc/include/asm/pgtable_64.h | 18 ++ arch/sparc/mm/Makefile

[PATCH 04/16] MIPS: use the generic get_user_pages_fast code

2019-06-11 Thread Christoph Hellwig
The mips code is mostly equivalent to the generic one, minus various bugfixes and an arch override for gup_fast_permitted. Note that this defines ARCH_HAS_PTE_SPECIAL for mips as mips has pte_special and pte_mkspecial implemented and used in the existing gup code. They are no-op stubs, though whi

[PATCH 10/16] mm: rename CONFIG_HAVE_GENERIC_GUP to CONFIG_HAVE_FAST_GUP

2019-06-11 Thread Christoph Hellwig
We only support the generic GUP now, so rename the config option to be more clear, and always use the mm/Kconfig definition of the symbol and select it from the arch Kconfigs. Signed-off-by: Christoph Hellwig --- arch/arm/Kconfig | 5 + arch/arm64/Kconfig | 4 +--- arch/mips/Kconfig

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