[PATCH v2 3/9] hugetlb: expose hugetlbfs_inode_info in header

2017-11-06 Thread Marc-André Lureau
hugetlbfs inode information will need to be accessed by code in mm/shmem.c for file sealing operations. Move inode information definition from .c file to header for needed access. Signed-off-by: Marc-André Lureau Reviewed-by: Mike Kravetz --- fs/hugetlbfs/inode.c| 10 -- include/li

[PATCH v2 2/9] shmem: rename functions that are memfd-related

2017-11-06 Thread Marc-André Lureau
Those functions are called for memfd files, backed by shmem or hugetlb (the next patches will handle hugetlb). Signed-off-by: Marc-André Lureau Reviewed-by: Mike Kravetz --- fs/fcntl.c | 2 +- include/linux/shmem_fs.h | 4 ++-- mm/shmem.c | 10 +- 3 files c

[PATCH v2 6/9] memfd-tests: test hugetlbfs sealing

2017-11-06 Thread Marc-André Lureau
Remove most of the special-casing of hugetlbfs now that sealing is supported. Signed-off-by: Marc-André Lureau --- tools/testing/selftests/memfd/memfd_test.c | 150 +++-- 1 file changed, 15 insertions(+), 135 deletions(-) diff --git a/tools/testing/selftests/memfd/memfd_

[PATCH v2 8/9] memfd-test: move common code to a shared unit

2017-11-06 Thread Marc-André Lureau
The memfd & fuse tests will share more common code in the following commits to test hugetlb support. Signed-off-by: Marc-André Lureau --- tools/testing/selftests/memfd/Makefile | 5 tools/testing/selftests/memfd/common.c | 45 ++ tools/testing/selftests/

[PATCH 3/4] sched: Export per task_cgroup nr_iowait to userspace

2017-11-06 Thread Kirill Tkhai
Make "stat" file always exist in cpu cgroup directory (not only in CONFIG_CFS_BANDWIDTH case), and show task_cgroup's nr_iowait there. This may be useful for containers to check a statistics of a single container. Signed-off-by: Kirill Tkhai --- kernel/sched/core.c | 19 +-- 1

[PATCH 2/4] sched: Account per task_group nr_iowait

2017-11-06 Thread Kirill Tkhai
The patch makes number of task_group's tasks in iowait state be tracked separately. This may be useful for containers to check nr_iowait state of a single one. Signed-off-by: Kirill Tkhai --- kernel/sched/core.c | 45 + kernel/sched/sched.h |5 +

[PATCH 4/4] sched: Export per task_cgroup nr_running to userspace

2017-11-06 Thread Kirill Tkhai
Show task_cgroup's nr_running in cgroup's "cpu.stat" file. This may be useful for containers to check a statistics of a single container. Signed-off-by: Kirill Tkhai --- kernel/sched/core.c |9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/kernel/sched/core.c b/kern

[PATCH 1/4] sched: Move manipulations with nr_iowait counter to separate functions

2017-11-06 Thread Kirill Tkhai
Move the (repeating) code to new helpers to reduce its volume and to improve its readability. Signed-off-by: Kirill Tkhai --- kernel/sched/core.c | 36 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c

[PATCH v3] sparc: Provide cmpxchg64 for 32-bit builds

2017-11-06 Thread Guenter Roeck
Fix the following build error, seen when building sparc32:allmodconfig. drivers/net/ethernet/intel/i40e/i40e_ethtool.c: In function 'i40e_set_priv_flags': drivers/net/ethernet/intel/i40e/i40e_ethtool.c:4150:2: error: implicit declaration of function 'cmpxchg64' Signed-off-by: Guen

[PATCH v2 9/9] memfd-test: run fuse test on hugetlb backend memory

2017-11-06 Thread Marc-André Lureau
Suggested-by: Mike Kravetz Signed-off-by: Marc-André Lureau --- tools/testing/selftests/memfd/fuse_test.c | 30 ++ tools/testing/selftests/memfd/run_fuse_test.sh | 2 +- tools/testing/selftests/memfd/run_tests.sh | 1 + 3 files changed, 28 insertions(+), 5 dele

Re: [PATCH v6 2/2] staging: ion: create one device entry per heap

2017-11-06 Thread Benjamin Gaignard
2017-11-02 12:10 GMT+01:00 Mark Brown : > On Thu, Nov 02, 2017 at 11:44:07AM +0100, Greg KH wrote: >> On Tue, Oct 31, 2017 at 07:11:53PM +, Mark Brown wrote: > >> > There was a discussion a while ago in the context of I2C/SPI MFDs >> > which concluded that if you need a bus and it's going to be

Re: Regression still in next for drop migrate type checks

2017-11-06 Thread Michal Hocko
he regression. Joonsoo has pointed > > out that there might be a problem but he didn't have any specific > > failure in hands. The fix has been posted [1] and Andrew has picked it > > up few days ago. Could you try to apply that patch? It will show up in > > linux-ne

[PATCH 0/4] Show cpu cgroup's nr_running and nr_iowait in cpu.stat file

2017-11-06 Thread Kirill Tkhai
The patchset exports numbers of cpu cgroup's running tasks and tasks in iowait to userspace. This may be useful to get statistics of a separate container and to analyse its load. Number of running tasks is accounted as a sum of corresponding cfs and rt tasks of the task cgroup. Number of iowait ta

[PATCH v2 5/9] shmem: add sealing support to hugetlb-backed memfd

2017-11-06 Thread Marc-André Lureau
Adapt add_seals()/get_seals() to work with hugetbfs-backed memory. Teach memfd_create() to allow sealing operations on MFD_HUGETLB. Signed-off-by: Marc-André Lureau --- mm/shmem.c | 47 --- 1 file changed, 28 insertions(+), 19 deletions(-) diff --git

Re: [Part2 PATCH v7 35/38] KVM: SVM: Pin guest memory when SEV is active

2017-11-06 Thread Borislav Petkov
On Wed, Nov 01, 2017 at 04:17:20PM -0500, Brijesh Singh wrote: > The SEV memory encryption engine uses a tweak such that two identical > plaintext pages at different location will have different ciphertext. > So swapping or moving ciphertext of two pages will not result in > plaintext being swapped

[PATCH v2 1/9] shmem: unexport shmem_add_seals()/shmem_get_seals()

2017-11-06 Thread Marc-André Lureau
The functions are called through shmem_fcntl() only. And no danger in removing the EXPORTs as the routines only work with shmem file structs. Signed-off-by: Marc-André Lureau Reviewed-by: Mike Kravetz --- include/linux/shmem_fs.h | 2 -- mm/shmem.c | 6 ++ 2 files changed, 2

Re: [PATCH 3.18 00/27] 3.18.80-stable review

2017-11-06 Thread Greg Kroah-Hartman
On Mon, Nov 06, 2017 at 06:35:46AM -0800, Guenter Roeck wrote: > On 11/06/2017 03:27 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 3.18.80 release. > > There are 27 patches in this series, all will be posted as a response > > to this one. If anyone has any

Re: [PATCH net-next] net: dsa: lan9303: Drop port range check

2017-11-06 Thread Egil Hjelmeland
On 06. nov. 2017 15:19, Egil Hjelmeland wrote: Now that ds->num_ports is 3, there is no need to check range of "port" parameter. + lan9303_disable_processing_port(chip, port); + lan9303_phy_write(ds, chip->phy_addr_sel_strap + port, + MII_BMCR, BMCR_PDOWN);

RE: [PATCH V2] perf script: add script to profile and resolve physical mem type

2017-11-06 Thread Liang, Kan
Hi Stephane, Any comments for the script? Thanks, Kan > > From: Kan Liang > > There could be different types of memory in the system. E.g normal > System Memory, Persistent Memory. To understand how the workload maps > to > those memories, it's important to know the I/O statistics of them. > P

Re: [PATCH v6 2/2] staging: ion: create one device entry per heap

2017-11-06 Thread Greg KH
On Mon, Nov 06, 2017 at 03:42:04PM +0100, Benjamin Gaignard wrote: > 2017-11-02 12:10 GMT+01:00 Mark Brown : > > On Thu, Nov 02, 2017 at 11:44:07AM +0100, Greg KH wrote: > >> On Tue, Oct 31, 2017 at 07:11:53PM +, Mark Brown wrote: > > > >> > There was a discussion a while ago in the context of

Re: [PATCH] pid: restore the old behaviour of the ns_last_pid sysctl

2017-11-06 Thread Oleg Nesterov
On 11/03, Andrei Vagin wrote: > > @@ -297,8 +298,18 @@ static int pid_ns_ctl_handler(struct ctl_table *table, > int write, >* it should synchronize its usage with external means. >*/ > > - tmp.data = &pid_ns->idr.idr_next; > - return proc_dointvec_minmax(&tmp, write, buff

[PATCH] clocksource: timer-of: drop __init annotations in timer_*_exit functions

2017-11-06 Thread Sudeep Holla
timer_{base,clk,irq}_exit functions have __init annotations. Commit f48729a999ee ("clocksource/drivers/timer-of: Add timer_of_exit function") added timer_of_exit to undo what has been done by the timer_of_init() function, which means we need to drop __init to use timer_*_exit functions. It also ge

Re: [PATCH] [net-next?] of: add of_property_read_variable_* dummy helpers

2017-11-06 Thread Vivien Didelot
Hi Arnd, Arnd Bergmann writes: > Commit a67e9472da42 ("of: Add array read functions with min/max size > limits") added a new interface for reading variable-length arrays from > DT properties. One user was added in dsa recently and this causes a > build error because that code can be built with C

Re: [BUG] tty: Userland can create hung tasks

2017-11-06 Thread Tejun Heo
Hello, Alan. On Wed, Nov 01, 2017 at 05:09:08PM +, Alan Cox wrote: > On Tue, 31 Oct 2017 19:06:51 -0700 > Tejun Heo wrote: > > > Hello, > > > > tty hangup code doesn't mark the console as being HUPed for, e.g., > > /dev/console and that can put the session leader trying to > > disassociate

[PATCH v3 2/3] f2fs: trace checkpoint reason in fsync()

2017-11-06 Thread Chao Yu
From: Chao Yu This patch slightly changes need_do_checkpoint to return the detail info that indicates why we need do checkpoint, then caller could print it with trace message. Signed-off-by: Chao Yu --- v3: rebase the codes to dev-test branch. fs/f2fs/f2fs.h | 12 fs/

Re: [PATCH net-next RFC 0/9] net: dsa: PTP timestamping for mv88e6xxx

2017-11-06 Thread Richard Cochran
On Sun, Oct 08, 2017 at 11:38:21AM -0400, Richard Cochran wrote: > I will try to get my hands on some HW, perhaps by the end of October, > in order to test and complete your driver... I now have a 88E6352 to test your series on. Unfortunately, it doesn't really work. Here is what I did. 1. Gave

Re: [PATCH v2] writeback: remove the unused function parameter

2017-11-06 Thread Tejun Heo
On Fri, Nov 03, 2017 at 01:04:45AM -0400, Wang Long wrote: > The parameter `struct bdi_writeback *wb` is not been used in the function > body. so we just remove it. > > Signed-off-by: Wang Long Acked-by: Tejun Heo Thanks. -- tejun

[PATCH 10/14] irq_work: Use lockdep to assert IRQs are disabled/enabled

2017-11-06 Thread Frederic Weisbecker
Use lockdep to check that IRQs are enabled or disabled as expected. This way the sanity check only shows overhead when concurrency correctness debug code is enabled. Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Paul E. McKenney --- kernel/irq_

[PATCH 07/14] x86: Use lockdep to assert IRQs are disabled/enabled

2017-11-06 Thread Frederic Weisbecker
Use lockdep to check that IRQs are enabled or disabled as expected. This way the sanity check only shows overhead when concurrency correctness debug code is enabled. It also makes no more sense to fix the IRQ flags when a bug is detected as the assertion is now pure config-dependent debugging. And

[PATCH 11/14] sched: Use lockdep to assert IRQs are disabled/enabled

2017-11-06 Thread Frederic Weisbecker
Use lockdep to check that IRQs are enabled or disabled as expected. This way the sanity check only shows overhead when concurrency correctness debug code is enabled. Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Paul E. McKenney --- kernel/sche

[PATCH 13/14] netpoll: Use lockdep to assert IRQs are disabled/enabled

2017-11-06 Thread Frederic Weisbecker
Use lockdep to check that IRQs are enabled or disabled as expected. This way the sanity check only shows overhead when concurrency correctness debug code is enabled. Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Paul E. McKenney Cc: David S. Mil

[PATCH 14/14] rcu: Use lockdep to assert IRQs are disabled/enabled

2017-11-06 Thread Frederic Weisbecker
Lockdep now has an integrated IRQs disabled/enabled sanity check. Just use it instead of the ad-hoc RCU version. Signed-off-by: Frederic Weisbecker Acked-by: Paul E. McKenney Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Thomas Gleixner --- kernel/rcu/tree.c| 16 kernel/rcu

[PATCH 12/14] posix-cpu-timers: Use lockdep to assert IRQs are disabled/enabled

2017-11-06 Thread Frederic Weisbecker
Use lockdep to check that IRQs are enabled or disabled as expected. This way the sanity check only shows overhead when concurrency correctness debug code is enabled. Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Paul E. McKenney --- kernel/time

Re: [PATCH resend 2/2] userns: control capabilities of some user namespaces

2017-11-06 Thread Serge E. Hallyn
Quoting Mahesh Bandewar (महेश बंडेवार) (mahe...@google.com): > On Sat, Nov 4, 2017 at 4:53 PM, Serge E. Hallyn wrote: > > > > Quoting Mahesh Bandewar (mah...@bandewar.net): > > > Init-user-ns is always uncontrolled and a process that has SYS_ADMIN > > > that belongs to uncontrolled user-ns can cre

[PATCH 09/14] irq/timings: Use lockdep to assert IRQs are disabled/enabled

2017-11-06 Thread Frederic Weisbecker
Use lockdep to check that IRQs are enabled or disabled as expected. This way the sanity check only shows overhead when concurrency correctness debug code is enabled. Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Paul E. McKenney --- kernel/irq/

Re: [PATCH 1/2] can: peak_usb: remove some 'struct timeval' users

2017-11-06 Thread Marc Kleine-Budde
On 11/03/2017 05:31 PM, Arnd Bergmann wrote: > We want to remove 'struct timeval' and related interfaces since this is > generally not safe for use beyond 2038. > > For peak_usb, we can simplify the internal interface by using ktime_t > directly. This should not change any behavior, but it avoids

[PATCH 08/14] perf: Use lockdep to assert IRQs are disabled/enabled

2017-11-06 Thread Frederic Weisbecker
Use lockdep to check that IRQs are enabled or disabled as expected. This way the sanity check only shows overhead when concurrency correctness debug code is enabled. Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Paul E. McKenney --- kernel/even

Re: [PATCH] perf/core: fast breakpoint modification via _IOC_MODIFY_BREAKPOINT

2017-11-06 Thread Arnaldo Carvalho de Melo
Em Mon, Nov 06, 2017 at 07:00:29AM -0800, Milind Chabbi escreveu: > Hi Jirka, > > I see the tabs in my sent email, do you have suggestions on how best to > send this patch so that the tabs are preserved by the email client? Documentation/process/email-clients.rst - Arnaldo > Can anybody else a

[PATCH 04/14] nohz: Use lockdep to assert IRQs are disabled/enabled

2017-11-06 Thread Frederic Weisbecker
Use lockdep to check that IRQs are enabled or disabled as expected. This way the sanity check only shows overhead when concurrency correctness debug code is enabled. Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Paul E. McKenney --- kernel/time

Re: [PATCH net-next RFC 0/9] net: dsa: PTP timestamping for mv88e6xxx

2017-11-06 Thread Andrew Lunn
On Mon, Nov 06, 2017 at 06:55:46AM -0800, Richard Cochran wrote: > On Sun, Oct 08, 2017 at 11:38:21AM -0400, Richard Cochran wrote: > > I will try to get my hands on some HW, perhaps by the end of October, > > in order to test and complete your driver... > > I now have a 88E6352 to test your serie

[PATCH 06/14] smp: Use lockdep to assert IRQs are disabled/enabled

2017-11-06 Thread Frederic Weisbecker
Use lockdep to check that IRQs are enabled or disabled as expected. This way the sanity check only shows overhead when concurrency correctness debug code is enabled. Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Paul E. McKenney --- kernel/smp.

[PATCH 05/14] hrtimer: Use lockdep to assert IRQs are disabled/enabled

2017-11-06 Thread Frederic Weisbecker
Use lockdep to check that IRQs are enabled or disabled as expected. This way the sanity check only shows overhead when concurrency correctness debug code is enabled. Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Paul E. McKenney --- kernel/time

[PATCH] rtnetlink: fix missing size for IFLA_IF_NETNSID

2017-11-06 Thread Colin King
From: Colin Ian King The size for IFLA_IF_NETNSID is missing from the size calculation because the proceeding semicolon was not removed. Fix this by removing the semicolon. Detected by CoverityScan, CID#1461135 ("Structurally dead code") Fixes: 79e1ad148c84 ("rtnetlink: use netnsid to query int

[PATCH 03/14] workqueue: Use lockdep to assert IRQs are disabled/enabled

2017-11-06 Thread Frederic Weisbecker
Use lockdep to check that IRQs are enabled or disabled as expected. This way the sanity check only shows overhead when concurrency correctness debug code is enabled. Signed-off-by: Frederic Weisbecker Acked-by: Tejun Heo Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Paul E. McKen

[PATCH 01/14] lockdep: Add IRQs disabled/enabled assertion

2017-11-06 Thread Frederic Weisbecker
Checking whether IRQs are enabled or disabled is a very common sanity check, however not free of overhead especially on fastpath where such assertion is very common. Lockdep is a good host for such concurrency correctness check and it even already tracks down IRQs disablement state. Just reuse its

[GIT PULL] lockdep: Add lightweight IRQs disabled/enabled check v2

2017-11-06 Thread Frederic Weisbecker
Ingo, Please pull the lockdep/irq-v2 branch that can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git lockdep/irq-v2 HEAD: c741fbe70afb0e488f4356456e6397d205f115ce -- Changes on v2: * Fix spurious warnings when lockdep is temporarily disabled, like

Re: [PATCH] workqueue: Fix comment for unbound workqueue's attrbutes

2017-11-06 Thread Tejun Heo
On Thu, Nov 02, 2017 at 11:05:12PM -0400, Wang Long wrote: > Signed-off-by: Wang Long Applied to wq/for-4.15. Thanks. -- tejun

[PATCH 02/14] irq: Use lockdep to assert IRQs are disabled/enabled

2017-11-06 Thread Frederic Weisbecker
Use lockdep to check that IRQs are enabled or disabled as expected. This way the sanity check only shows overhead when concurrency correctness debug code is enabled. Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Paul E. McKenney --- kernel/soft

Re: [PATCH] btrfs/volumes: Improve unlocking of a mutex in __btrfs_balance()

2017-11-06 Thread SF Markus Elfring
>> @@ -3682,7 +3678,7 @@ static int __btrfs_balance(struct btrfs_fs_info >> *fs_info) >> counting = false; >> goto again; >> } >> -error: >> +free_path: >> btrfs_free_path(path); >> if (enospc_errors) { >> btrfs_info(fs_info, "%d enospc errors

Re: [PATCH v2 2/2] selftests: bpf: test_kmod.sh: use modprobe on target device

2017-11-06 Thread Naresh Kamboju
On 7 September 2017 at 14:50, Daniel Borkmann wrote: > On 09/07/2017 10:19 AM, naresh.kamb...@linaro.org wrote: >> >> From: Naresh Kamboju >> >> on ARM and ARM64 devices kernel source tree is not available so >> insmod "$SRC_TREE/lib/test_bpf.ko" is not working. >> >> on these target devices the

Re: [PATCH] rtnetlink: fix missing size for IFLA_IF_NETNSID

2017-11-06 Thread Jiri Benc
On Mon, 6 Nov 2017 15:04:54 +, Colin King wrote: > The size for IFLA_IF_NETNSID is missing from the size calculation > because the proceeding semicolon was not removed. Fix this by removing > the semicolon. Acked-by: Jiri Benc Thanks for spotting this! Looking at my initial code, I had that

Re: usb/net/qmi_wwan: divide error in qmi_wwan_probe/usbnet_probe

2017-11-06 Thread Andrey Konovalov
On Mon, Nov 6, 2017 at 3:06 PM, Bjørn Mork wrote: > Andrey Konovalov writes: > >> Hi! >> >> I've got the following report while fuzzing the kernel with syzkaller. > > Thanks. It would have helped a lot of you said *what* you were fuzzing, > though But based on where the bug is, I assume it i

[PATCH 0/2] ASoC: stm32: spdifrx: DMA management fixes

2017-11-06 Thread Olivier Moysan
This patch-set gathers DMA management fixes for STM32 SPDIFRX. Olivier Moysan (2): ASoC: stm32: spdifrx: fix 16 bits capture ASoC: stm32: spdifrx: fix control DMA error management sound/soc/stm/stm32_spdifrx.c | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) -

[PATCH 2/2] ASoC: stm32: spdifrx: fix control DMA error management

2017-11-06 Thread Olivier Moysan
Fix DMA channel request error handling. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_spdifrx.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/sound/soc/stm/stm32_spdifrx.c b/sound/soc/stm/stm32_spdifrx.c index d7dbe84..b9bdefc 100644 --- a/sound/soc/

[PATCH 1/2] ASoC: stm32: spdifrx: fix 16 bits capture

2017-11-06 Thread Olivier Moysan
Change DMA bus width to manage properly 16 bits packed format. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_spdifrx.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sound/soc/stm/stm32_spdifrx.c b/sound/soc/stm/stm32_spdifrx.c index 84cc567..d7dbe84 100644 -

Re: [PATCH v2 1/2] selftests: bpf: test_kmod.sh: check if module is present in the path before insert

2017-11-06 Thread Naresh Kamboju
On 7 September 2017 at 14:46, Daniel Borkmann wrote: > On 09/07/2017 10:19 AM, naresh.kamb...@linaro.org wrote: >> >> From: Naresh Kamboju >> >> The test script works when kernel source and build module test_bpf.ko >> present on the machine. This patch will check if module is present in >> the pa

i915: pipe B vblank wait timed out

2017-11-06 Thread Borislav Petkov
Hi, I see this on an 32-bit acer atom mini-laptop with -rc8+tip: [2.399416] pipe B vblank wait timed out [2.399506] [ cut here ] [2.399533] WARNING: CPU: 1 PID: 22 at /mnt/kernel/kernel/linux-2.6/drivers/gpu/drm/i915/intel_display.c:12176 intel_atomic_commit_

Re: Manual unbind of ATA devices causes use-after-free

2017-11-06 Thread Tejun Heo
Hello, On Fri, Nov 03, 2017 at 09:32:16AM -0700, Taras Kondratiuk wrote: > Quoting Tejun Heo (2017-11-03 06:19:37) > > Hello, > > > > On Wed, Nov 01, 2017 at 04:24:47PM -0700, Taras Kondratiuk wrote: > > > Manual unbind/remove unconditionally invokes devres_release_all which > > > calls ata_host_

Re: [PATCH] net: usb: asix: fill null-ptr-deref in asix_suspend

2017-11-06 Thread Oliver Neukum
Am Montag, den 06.11.2017, 13:30 +0100 schrieb Andrey Konovalov: > On Mon, Nov 6, 2017 at 10:49 AM, Oliver Neukum wrote: > > > > > > 2. Will a device work after that? The appropriate fix may be to wait > > until the device is properly initialized. > > This shouldn't affect real devices as far a

Re: [PATCH 0/4] platform/x86: intel-vbtn: Add support for several more switches/buttons

2017-11-06 Thread Brüns , Stefan
On Montag, 6. November 2017 13:54:25 CET Bastien Nocera wrote: > On Sun, 2017-11-05 at 14:31 +0200, Andy Shevchenko wrote: > > On Fri, Nov 3, 2017 at 9:03 PM, Stefan Brüns > > > > wrote: > > > Currently, intel-vbtn only supports the most relevant buttons, > > > although > > > there are several mo

Re: [PATCH v3 2/2] workqueue: respect isolated cpus when queueing an unbound work

2017-11-06 Thread Tejun Heo
On Fri, Nov 03, 2017 at 05:27:50PM +0200, Tal Shorer wrote: > Initialize wq_unbound_cpumask to exclude cpus that were isolated by > the cmdline's isolcpus parameter. > > Signed-off-by: Tal Shorer Acked-by: Tejun Heo Plese feel free to route with the prerequisite changes. If not, I'll apply th

Re: checkpatch potential false positive

2017-11-06 Thread Joe Perches
On Mon, 2017-11-06 at 08:33 +, Andy Whitcroft wrote: > On Mon, Nov 06, 2017 at 03:19:14PM +1100, Tobin C. Harding wrote: > > Hi, Hello. > > When parsing drivers/staging/unisys/visorbus/visorchipset.c in Greg's > > staging tree checkpatch emits > > > > -- > > visorchipset.c > > --

Re: [PATCH RFC v2 4/4] mm/mempolicy: add nodes_empty check in SYSC_migrate_pages

2017-11-06 Thread Christopher Lameter
On Mon, 6 Nov 2017, Vlastimil Babka wrote: > I'm not sure what exactly is the EPERM intention. Should really the > capability of THIS process override the cpuset restriction of the TARGET > process? Maybe yes. Then, does "insufficient privilege (CAP_SYS_NICE) to CAP_SYS_NICE never overrides cpuse

[PATCH v11 2/5] serdev: Introduce devm_serdev_device_open()

2017-11-06 Thread Andrey Smirnov
Add code implementing managed version of serdev_device_open() for serdev device drivers that "open" the device during driver's lifecycle only once (e.g. opened in .probe() and closed in .remove()). Cc: linux-kernel@vger.kernel.org Cc: linux-ser...@vger.kernel.org Cc: Rob Herring Cc: cphe...@gmail

[PATCH v11 5/5] dt-bindings: watchdog: Add bindings for RAVE SP watchdog driver

2017-11-06 Thread Andrey Smirnov
Add Device Tree bindings for RAVE SP watchdog drvier - an MFD cell of parent RAVE SP driver (documented in Documentation/devicetree/bindings/mfd/zii,rave-sp.txt). Cc: linux-kernel@vger.kernel.org Cc: devicet...@vger.kernel.org Cc: linux-watch...@vger.kernel.org Cc: cphe...@gmail.com Cc: Lucas Stac

[PATCH v11 0/5] ZII RAVE platform driver

2017-11-06 Thread Andrey Smirnov
Hi everyone, This patch series is v11 of the driver for supervisory processor found on RAVE series of devices from ZII. Supervisory processor is a PIC microcontroller connected to various electrical subsystems on RAVE devices whose firmware implements protocol to command/qery them. NOTE: * This

[PATCH v11 1/5] serdev: Make .remove in struct serdev_device_driver optional

2017-11-06 Thread Andrey Smirnov
Using devres infrastructure it is possible to write a serdev driver that doesn't have any code that needs to be called as a part of .remove. Add code to make .remove optional. Cc: linux-kernel@vger.kernel.org Cc: linux-ser...@vger.kernel.org Cc: Rob Herring Cc: cphe...@gmail.com Cc: Guenter Roeck

[PATCH v11 4/5] watchdog: Add RAVE SP watchdog driver

2017-11-06 Thread Andrey Smirnov
This driver provides access to RAVE SP watchdog functionality. Cc: linux-kernel@vger.kernel.org Cc: linux-watch...@vger.kernel.org Cc: cphe...@gmail.com Cc: Lucas Stach Cc: Nikita Yushchenko Cc: Lee Jones Cc: Greg Kroah-Hartman Cc: Pavel Machek Cc: Andy Shevchenko Cc: Guenter Roeck Cc: Rob

[PATCH v11 3/5] mfd: Add driver for RAVE Supervisory Processor

2017-11-06 Thread Andrey Smirnov
Add a driver for RAVE Supervisory Processor, an MCU implementing various bits of housekeeping functionality (watchdoging, backlight control, LED control, etc) on RAVE family of products by Zodiac Inflight Innovations. This driver implementes core MFD/serdev device as well as communication subrouti

Re: [PATCH] staging: wlan-ng: resolve sparse endianness error.

2017-11-06 Thread Matthew Giassa
* Greg KH [2017-11-03 12:49:46 +0100]: On Tue, Oct 24, 2017 at 11:06:18PM -0700, Matthew Giassa wrote: Adding le16_to_cpu conversion in prism2sta.c, to resolve outstanding sparse errors as noted in the current TODO in staging-next. Original error: CHECK drivers/staging//wlan-ng/prism2usb.

Re: [PATCH] ieee802154: mrf24j40: fix incorrect mask in mrf24j40_stop

2017-11-06 Thread Stefan Schmidt
Hello. On 31.10.2017 07:31, Gustavo A. R. Silva wrote: > It seems that this is a copy/paste error and the proper bit masking is: > BIT_TXNIE | BIT_RXIE > > This issue was detected with the help of Coccinelle. > > Reported-by: Julia Lawall > Signed-off-by: Gustavo A. R. Silva > Fixes: 7d840545e

Re: [PATCH] drm/rockchip: add CONFIG_OF dependency for lvds

2017-11-06 Thread Sean Paul
On Mon, Nov 06, 2017 at 02:58:43PM +0100, Arnd Bergmann wrote: > Build-testing on randconfig kernels revealed a dependency in the > newly added lvds sub-driver: > > drivers/gpu/drm/rockchip/rockchip_lvds.c: In function 'rockchip_lvds_bind': > drivers/gpu/drm/rockchip/rockchip_lvds.c:380:24: error:

Re: [PATCH 0/4] platform/x86: intel-vbtn: Add support for several more switches/buttons

2017-11-06 Thread Bastien Nocera
On Mon, 2017-11-06 at 15:25 +, Brüns, Stefan wrote: > On Montag, 6. November 2017 13:54:25 CET Bastien Nocera wrote: > > On Sun, 2017-11-05 at 14:31 +0200, Andy Shevchenko wrote: > > > On Fri, Nov 3, 2017 at 9:03 PM, Stefan Brüns > > > > > > wrote: > > > > Currently, intel-vbtn only supports

Re: [PATCH v16 00/13] support "task_isolation" mode

2017-11-06 Thread Christopher Lameter
On Fri, 3 Nov 2017, Chris Metcalf wrote: > However, it doesn't seem possible to do the synchronous cancellation of > the vmstat deferred work with irqs disabled, though if there's a way, > it would be a little cleaner to do that; Christoph? We can certainly > update the statistics with interrupts

Re: [PATCH v2] iommu/iova: Use raw_cpu_ptr() instead of get_cpu_ptr() for ->fq

2017-11-06 Thread Alex Williamson
[cc +robin] On Thu, 2 Nov 2017 18:33:50 +0100 Sebastian Andrzej Siewior wrote: > On 2017-09-21 17:21:40 [+0200], Sebastian Andrzej Siewior wrote: > > get_cpu_ptr() disabled preemption and returns the ->fq object of the > > current CPU. raw_cpu_ptr() does the same except that it not disable > > p

Re: [PATCH 2/2] crypto: atmel-aes - Reset the controller before each use

2017-11-06 Thread Tudor Ambarus
Hi, Romain, On 10/31/2017 05:25 PM, Romain Izard wrote: When using the rfc4543(gcm(aes))) mode, the registers of the hardware engine are not empty after use. If the engine is not reset before its next use, the following results will be invalid. Always reset the hardware engine. Thanks for the

Re: [PATCH 3/3] staging: ccree: simplify ioread/iowrite

2017-11-06 Thread Greg Kroah-Hartman
On Mon, Nov 06, 2017 at 10:59:47AM +0200, Gilad Ben-Yossef wrote: > On Mon, Nov 6, 2017 at 10:37 AM, Tobin C. Harding wrote: > > On Mon, Nov 06, 2017 at 06:55:52AM +, Gilad Ben-Yossef wrote: > >> Registers ioread/iowrite operations were done via macros, > >> sometime using a "magical" implicit

Re: [PATCH v4 06/37] ring-buffer: Redefine the unimplemented RINGBUF_TYPE_TIME_STAMP

2017-11-06 Thread Tom Zanussi
Hi Namhyung, On Mon, 2017-11-06 at 14:09 +0900, Namhyung Kim wrote: > Hi Tom, > > On Mon, Oct 30, 2017 at 03:51:48PM -0500, Tom Zanussi wrote: > > RINGBUF_TYPE_TIME_STAMP is defined but not used, and from what I can > > gather was reserved for something like an absolute timestamp feature > > for

Re: [RFC -mm] mm, userfaultfd, THP: Avoid waiting when PMD under THP migration

2017-11-06 Thread Zi Yan
On 4 Nov 2017, at 23:01, huang ying wrote: On Fri, Nov 3, 2017 at 11:00 PM, Zi Yan wrote: On 3 Nov 2017, at 3:52, Huang, Ying wrote: From: Huang Ying If THP migration is enabled, the following situation is possible, - A THP is mapped at source address - Migration is started to move the TH

Re: [RFC PATCH] bpf: Add helpers to read useful task_struct members

2017-11-06 Thread Naveen N. Rao
Alexei Starovoitov wrote: On 11/5/17 2:31 AM, Naveen N. Rao wrote: Hi Alexei, Alexei Starovoitov wrote: On 11/3/17 3:58 PM, Sandipan Das wrote: For added security, the layout of some structures can be randomized by enabling CONFIG_GCC_PLUGIN_RANDSTRUCT. One such structure is task_struct. To b

Soft lockup in rt2x00usb_work_rxdone()

2017-11-06 Thread Richard Genoud
Hi, I get a soft lock-up while unbinding the USB driver on a TP-Link TL-WN727Nv3 (chipset 5370): # echo 1-2.2 > /sys/bus/usb/drivers/usb/unbind watchdog: BUG: soft lockup - CPU#0 stuck for 23s! [kworker/u2:3:308] CPU: 0 PID: 308 Comm: kworker/u2:3 Not tainted 4.14.0-rc8 #11 Hardware name: Atmel

Re: [PATCH 2/2] crypto: atmel-aes - Reset the controller before each use

2017-11-06 Thread Romain Izard
2017-11-06 16:45 GMT+01:00 Tudor Ambarus : > Hi, Romain, > > On 10/31/2017 05:25 PM, Romain Izard wrote: >> >> When using the rfc4543(gcm(aes))) mode, the registers of the hardware >> engine are not empty after use. If the engine is not reset before its >> next use, the following results will be in

Re: [PATCH v4] arm64: support __int128 on gcc 5+

2017-11-06 Thread Catalin Marinas
On Mon, Nov 06, 2017 at 10:31:51AM +0100, Jason A. Donenfeld wrote: > Versions of gcc prior to gcc 5 emitted a __multi3 function call when > dealing with TI types, resulting in failures when trying to link to > libgcc, and more generally, bad performance. However, since gcc 5, > the compiler suppor

[PATCH v6 2/2] staging: ion: create one device entry per heap

2017-11-06 Thread Benjamin Gaignard
Instead a getting only one common device "/dev/ion" for all the heaps this patch allow to create one device entry ("/dev/ionX") per heap. Getting an entry per heap could allow to set security rules per heap and global ones for all heaps. Allocation requests will be only allowed if the mask_id matc

[PATCH v6 1/2] staging: ion: reorder include

2017-11-06 Thread Benjamin Gaignard
Put include in alphabetic order Signed-off-by: Benjamin Gaignard --- drivers/staging/android/ion/ion.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c index a7d9b0e..fda9756 100644 --- a/dri

[PATCH v6 0/2] staging: ion: get one device per heap

2017-11-06 Thread Benjamin Gaignard
version 6: - add an ION bus so heap are show as devices in /sys/bus/ion/ instead of platform bus. - split the patch in two: one for include reordering and one for per heap device change - rebased on top of next-2017110 tag version 5: - create a configuration flag to keep legacy Ion misc device

Re: BUG: sleeping function called from invalid context at ./include/linux/uaccess.h:LINE

2017-11-06 Thread David Hildenbrand
On 06.11.2017 16:10, Nick Desaulniers wrote: > Does it have to be stack allocated? We can't use kmalloc and friends in emulate.c. We would have to introduce new emulator callbacks. a) for malloc and free. hmmm. b) for carrying out the fxrstr/fixup. Paolo, what do you suggest? > > On Nov 6, 201

Re: possible deadlock in generic_file_write_iter

2017-11-06 Thread Peter Zijlstra
On Mon, Nov 06, 2017 at 02:35:44PM +0100, Dmitry Vyukov wrote: > On Mon, Nov 6, 2017 at 2:33 PM, Al Viro wrote: > > On Mon, Nov 06, 2017 at 02:15:44PM +0100, Jan Kara wrote: > > > >> > Should we annotate these inodes with different lock types? Or use > >> > nesting annotations? > >> > >> Well, you

Re: [PATCH 0/4] Show cpu cgroup's nr_running and nr_iowait in cpu.stat file

2017-11-06 Thread Peter Zijlstra
On Mon, Nov 06, 2017 at 05:40:15PM +0300, Kirill Tkhai wrote: > The patchset exports numbers of cpu cgroup's running tasks and tasks in iowait > to userspace. This may be useful to get statistics of a separate container and > to analyse its load. NAK on the iowait thing. That should not be exposed

Re: [PATCH] net: usb: asix: fill null-ptr-deref in asix_suspend

2017-11-06 Thread Andrey Konovalov
On Mon, Nov 6, 2017 at 4:20 PM, Oliver Neukum wrote: > Am Montag, den 06.11.2017, 13:30 +0100 schrieb Andrey Konovalov: >> On Mon, Nov 6, 2017 at 10:49 AM, Oliver Neukum wrote: >> > >> > >> > 2. Will a device work after that? The appropriate fix may be to wait >> > until the device is properly in

Re: [PATCH] mm: filemap: remove include of hardirq.h

2017-11-06 Thread Yang Shi
On 11/4/17 6:47 AM, Matthew Wilcox wrote: On Sat, Nov 04, 2017 at 02:47:48AM +0800, Yang Shi wrote: in_atomic() has been moved to include/linux/preempt.h, and the filemap.c doesn't use in_atomic() directly at all, so it sounds unnecessary to include hardirq.h. With removing hardirq.h, around 3

Re: [PATCH 2/4] sched: Account per task_group nr_iowait

2017-11-06 Thread Peter Zijlstra
On Mon, Nov 06, 2017 at 05:40:32PM +0300, Kirill Tkhai wrote: > The patch makes number of task_group's tasks in iowait state > be tracked separately. This may be useful for containers to > check nr_iowait state of a single one. > > Signed-off-by: Kirill Tkhai > --- > kernel/sched/core.c | 45

Re: [PATCH 1/3] f2fs: avoid using __GFP_NOFAIL

2017-11-06 Thread Chao Yu
Hi Michal, On 2017/11/6 22:08, Michal Hocko wrote: > On Sun 05-11-17 21:53:28, Chao Yu wrote: >> From: Chao Yu >> >> We will keep __add_ino_entry success all the time, for ENOMEM failure >> case, we have already handled it with an opened loop code, so we don't >> have to use redundant __GFP_NOFAI

Re: [RFC PATCH] scripts: checkpatch.pl: remove obsolete in_atomic rule

2017-11-06 Thread Yang Shi
On 11/6/17 5:52 AM, Michal Hocko wrote: On Sat 04-11-17 03:08:06, Yang Shi wrote: checkpatch.pl still reports the below in_atomic warning: WARNING: use of in_atomic() is incorrect outside core kernel code + if (in_atomic()) But, in_atomic() has been used outside kernel dir for a long t

Re: [PATCH v7 2/5] x86/pvclock: add setter for pvclock_pvti_cpu0_va

2017-11-06 Thread Paolo Bonzini
On 19/10/2017 15:39, Joao Martins wrote: > Right now there is only a pvclock_pvti_cpu0_va() which is defined > on kvmclock since: > > commit dac16fba6fc5 > ("x86/vdso: Get pvclock data from the vvar VMA instead of the fixmap") > > The only user of this interface so far is kvm. This commit adds a

Re: [PATCH v2 2/2] devicetree: i2c-hid: Add reset property

2017-11-06 Thread Dmitry Torokhov
On November 6, 2017 1:06:30 AM PST, Benjamin Tissoires wrote: >Hi Rob, > >On Nov 01 2017 or thereabouts, Rob Herring wrote: >> On Tue, Oct 31, 2017 at 11:03:16AM +0800, Lin Huang wrote: >> > Document a "reset" and "assert-reset-us", it can be used for >> > driver control reset property. And reuse

Re: [PATCH 2/4] sched: Account per task_group nr_iowait

2017-11-06 Thread Kirill Tkhai
On 06.11.2017 19:06, Peter Zijlstra wrote: > On Mon, Nov 06, 2017 at 05:40:32PM +0300, Kirill Tkhai wrote: >> The patch makes number of task_group's tasks in iowait state >> be tracked separately. This may be useful for containers to >> check nr_iowait state of a single one. >> >> Signed-off-by: Ki

Re: BUG: sleeping function called from invalid context at ./include/linux/uaccess.h:LINE

2017-11-06 Thread Paolo Bonzini
On 06/11/2017 17:01, David Hildenbrand wrote: > On 06.11.2017 16:10, Nick Desaulniers wrote: >> Does it have to be stack allocated? > > We can't use kmalloc and friends in emulate.c. We would have to > introduce new emulator callbacks. > > a) for malloc and free. hmmm. > b) for carrying out the f

Re: [PATCH v4] arm64: support __int128 on gcc 5+

2017-11-06 Thread Catalin Marinas
On Mon, Nov 06, 2017 at 03:59:18PM +, Catalin Marinas wrote: > On Mon, Nov 06, 2017 at 10:31:51AM +0100, Jason A. Donenfeld wrote: > > Versions of gcc prior to gcc 5 emitted a __multi3 function call when > > dealing with TI types, resulting in failures when trying to link to > > libgcc, and mor

Re: [PATCH v2 1/2] selftests: bpf: test_kmod.sh: check if module is present in the path before insert

2017-11-06 Thread Shuah Khan
On 11/06/2017 08:23 AM, Naresh Kamboju wrote: > On 7 September 2017 at 14:46, Daniel Borkmann wrote: >> On 09/07/2017 10:19 AM, naresh.kamb...@linaro.org wrote: >>> >>> From: Naresh Kamboju >>> >>> The test script works when kernel source and build module test_bpf.ko >>> present on the machine. T

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