Re: [PATCH] PCI: xilinx: Remove platform/architecture restrictions

2017-07-31 Thread Paul Burton
On Monday, 31 July 2017 16:36:08 PDT Bjorn Helgaas wrote: > On Mon, Jul 31, 2017 at 04:19:13PM -0700, Paul Burton wrote: > > Hi Bjorn, > > > > On Monday, 31 July 2017 15:58:22 PDT Bjorn Helgaas wrote: > > > On Mon, Jul 24, 2017 at 11:49:22AM +0100, Paul Burton wrote: > > > > Hi Guenter & all, > >

[PATCH v4 06/15] smack: Refactor to remove bprm_secureexec hook

2017-07-31 Thread Kees Cook
The Smack bprm_secureexec hook can be merged with the bprm_set_creds hook since it's dealing with the same information, and all of the details are finalized during the first call to the bprm_set_creds hook via prepare_binprm() (subsequent calls due to binfmt_script, etc, are ignored via bprm->calle

[PATCH v4 00/15] exec: Use sane stack rlimit under secureexec

2017-07-31 Thread Kees Cook
As discussed with Linus and Andy, we need to reset the stack rlimit before we do memory layouts when execing a privilege-gaining (e.g. setuid) program. To do this, we need to know the results of the bprm_secureexec hook before memory layouts. As it turns out, this can be made _mostly_ trivial by co

[PATCH v4 05/15] selinux: Refactor to remove bprm_secureexec hook

2017-07-31 Thread Kees Cook
The SELinux bprm_secureexec hook can be merged with the bprm_set_creds hook since it's dealing with the same information, and all of the details are finalized during the first call to the bprm_set_creds hook via prepare_binprm() (subsequent calls due to binfmt_script, etc, are ignored via bprm->cal

[PATCH v4 14/15] exec: Use sane stack rlimit under secureexec

2017-07-31 Thread Kees Cook
For a secureexec, before memory layout selection has happened, reset the stack rlimit to something sane to avoid the caller having control over the resulting layouts. $ ulimit -s 8192 $ ulimit -s unlimited $ /bin/sh -c 'ulimit -s' unlimited $ sudo /bin/sh -c 'ulimit -s' 8192 Cc: Linus Torvalds S

RE:

2017-07-31 Thread TD CREDIT
DO YOU NEED ANY KIND OF LOAN CREDIT ASSISTANCE? IF YES,EMAIL US FOR MORE INFO. --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com

[PATCH v4 11/15] exec: Use secureexec for clearing pdeath_signal

2017-07-31 Thread Kees Cook
Like dumpability, clearing pdeath_signal happens both in setup_new_exec() and later in commit_creds(). The test in setup_new_exec() is different from all other privilege comparisons, though: it is checking the new cred (bprm) uid vs the old cred (current) euid. This appears to be a bug, introduced

[PATCH v4 15/15] exec: Consolidate pdeath_signal clearing

2017-07-31 Thread Kees Cook
Instead of an additional secureexec check for pdeath_signal, just move it up into the initial secureexec test. Neither perf nor arch code touches pdeath_signal, so the relocation shouldn't change anything. Signed-off-by: Kees Cook Acked-by: Serge Hallyn --- fs/exec.c | 7 +++ 1 file changed

[PATCH v4 12/15] smack: Remove redundant pdeath_signal clearing

2017-07-31 Thread Kees Cook
This removes the redundant pdeath_signal clearing in Smack: the check in smack_bprm_committing_creds() matches the check in smack_bprm_set_creds() (which used to be in the now-removed smack_bprm_securexec() hook) and since secureexec is now being checked for clearing pdeath_signal, this is redundan

[PATCH v4 09/15] LSM: drop bprm_secureexec hook

2017-07-31 Thread Kees Cook
This removes the bprm_secureexec hook since the logic has been folded into the bprm_set_creds hook for all LSMs now. Cc: Eric W. Biederman Signed-off-by: Kees Cook Reviewed-by: John Johansen Acked-by: James Morris Acked-by: Serge Hallyn --- fs/exec.c | 2 -- include/linux/ls

[PATCH v4 13/15] exec: Consolidate dumpability logic

2017-07-31 Thread Kees Cook
Since it's already valid to set dumpability in the early part of setup_new_exec(), we can consolidate the logic into a single place. The BINPRM_FLAGS_ENFORCE_NONDUMP is set during would_dump() calls before setup_new_exec(), so its test is safe to move as well. Signed-off-by: Kees Cook Acked-by: S

[PATCH v4 08/15] commoncap: Move cap_elevated calculation into bprm_set_creds

2017-07-31 Thread Kees Cook
Instead of a separate function, open-code the cap_elevated test, which lets us entirely remove bprm->cap_effective (to use the local "effective" variable instead), and more accurately examine euid/egid changes via the existing local "is_setid". The following LTP tests were run to validate the chan

[PATCH v4 07/15] commoncap: Refactor to remove bprm_secureexec hook

2017-07-31 Thread Kees Cook
The commoncap implementation of the bprm_secureexec hook is the only LSM that depends on the final call to its bprm_set_creds hook (since it may be called for multiple files, it ignores bprm->called_set_creds). As a result, it cannot safely _clear_ bprm->secureexec since other LSMs may have set it.

[PATCH v4 10/15] exec: Use secureexec for setting dumpability

2017-07-31 Thread Kees Cook
The examination of "current" to decide dumpability is wrong. This was a check of and euid/uid (or egid/gid) mismatch in the existing process, not the newly created one. This appears to stretch back into even the "history.git" tree. Luckily, dumpability is later set in commit_creds(). In earlier ker

[PATCH v4 04/15] apparmor: Refactor to remove bprm_secureexec hook

2017-07-31 Thread Kees Cook
The AppArmor bprm_secureexec hook can be merged with the bprm_set_creds hook since it's dealing with the same information, and all of the details are finalized during the first call to the bprm_set_creds hook via prepare_binprm() (subsequent calls due to binfmt_script, etc, are ignored via bprm->ca

Re: Issue with commit de3ef1eb1cd - PM / core: Drop run_wake flag from struct dev_pm_info [Was: MEI-related WARN_ON() triggered during resume-from-sleep on v4.13-rc2+]

2017-07-31 Thread Rafael J. Wysocki
Hi, On Tue, Aug 1, 2017 at 12:16 AM, Dominik Brodowski wrote: > Rafael, Mika, Bjorn and Tomas, > > can't explain exactly what causes breakage between MEI and PM first seen on > v4.13-rc2 (ther was a typo in the orignal message), but I was able to bisect > it down to commit > > [de3ef1eb1cd0cc3a75

[PATCH v4 01/15] exec: Rename bprm->cred_prepared to called_set_creds

2017-07-31 Thread Kees Cook
The cred_prepared bprm flag has a misleading name. It has nothing to do with the bprm_prepare_cred hook, and actually tracks if bprm_set_creds has been called. Rename this flag and improve its comment. Cc: David Howells Cc: John Johansen Cc: Paul Moore Cc: Stephen Smalley Cc: Casey Schaufler

[PATCH v4 02/15] exec: Correct comments about "point of no return"

2017-07-31 Thread Kees Cook
In commit 221af7f87b97 ("Split 'flush_old_exec' into two functions"), the comment about the point of no return should have stayed in flush_old_exec() since it refers to "bprm->mm = NULL;" line, but prior changes in commits c89681ed7d0e ("remove steal_locks()"), and fd8328be874f ("sanitize handling

[PATCH v4 03/15] binfmt: Introduce secureexec flag

2017-07-31 Thread Kees Cook
The bprm_secureexec hook can be moved earlier. Right now, it is called during create_elf_tables(), via load_binary(), via search_binary_handler(), via exec_binprm(). Nearly all (see exception below) state used by bprm_secureexec is created during the bprm_set_creds hook, called from prepare_binprm(

mmotm 2017-07-31-16-56 uploaded

2017-07-31 Thread akpm
The mm-of-the-moment snapshot 2017-07-31-16-56 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You wi

Re: linux-next: manual merge of the rcu tree with the tip tree

2017-07-31 Thread Mathieu Desnoyers
- On Jul 31, 2017, at 12:13 PM, Paul E. McKenney paul...@linux.vnet.ibm.com wrote: > On Mon, Jul 31, 2017 at 01:50:29PM +1000, Stephen Rothwell wrote: >> Hi Paul, >> >> Today's linux-next merge of the rcu tree got a conflict in: >> >> arch/x86/mm/tlb.c >> >> between commit: >> >> 94b1

Re: Issue with commit de3ef1eb1cd - PM / core: Drop run_wake flag from struct dev_pm_info [Was: MEI-related WARN_ON() triggered during resume-from-sleep on v4.13-rc2+]

2017-07-31 Thread Rafael J. Wysocki
On Tue, Aug 1, 2017 at 1:55 AM, Rafael J. Wysocki wrote: > Hi, > > On Tue, Aug 1, 2017 at 12:16 AM, Dominik Brodowski > wrote: >> Rafael, Mika, Bjorn and Tomas, >> >> can't explain exactly what causes breakage between MEI and PM first seen on >> v4.13-rc2 (ther was a typo in the orignal message),

[PATCH] Removing Check Errors with checkpatch.pl, Converting from macro to function call

2017-07-31 Thread Ashish Kalra
--- drivers/staging/ks7010/ks7010_sdio.c | 47 +--- 1 file changed, 33 insertions(+), 14 deletions(-) diff --git a/drivers/staging/ks7010/ks7010_sdio.c b/drivers/staging/ks7010/ks7010_sdio.c index 9b28ee1..274fed8 100644 --- a/drivers/staging/ks7010/ks7010_sdio.c

Re: [PATCH] apparmor: Fix logical error in verify_header()

2017-07-31 Thread John Johansen
On 07/08/2017 12:50 PM, Christos Gkekas wrote: > verify_header() is currently checking whether interface version is less > than 5 *and* greater than 7, which always evaluates to false. Instead it > should check whether it is less than 5 *or* greater than 7. > > Signed-off-by: Christos Gkekas sig

Re: [PATCH v4 03/15] binfmt: Introduce secureexec flag

2017-07-31 Thread Kees Cook
On Mon, Jul 31, 2017 at 4:51 PM, Kees Cook wrote: > diff --git a/include/linux/binfmts.h b/include/linux/binfmts.h > index 3cd98e8bc9dc..6cfd36a27d4e 100644 > --- a/include/linux/binfmts.h > +++ b/include/linux/binfmts.h > @@ -34,6 +34,12 @@ struct linux_binprm { > cap_effective:1;

Re: [PATCH] hysdn: fix to a race condition in put_log_buffer

2017-07-31 Thread David Miller
From: Anton Volkov Date: Fri, 28 Jul 2017 17:53:51 +0300 > The synchronization type that was used earlier to guard the loop that > deletes unused log buffers may have lead to a situation that prevents > any thread from going through the loop. > > The patch deletes previously used synchronization

Re: [PATCH] Removing Check Errors with checkpatch.pl, Converting from macro to function call

2017-07-31 Thread Joe Perches
On Mon, 2017-07-31 at 03:20 +0100, Ashish Kalra wrote: You should not use checkpatch in the commit subject and should use a commit message. You also need a "Signed-off-by:" line with your legal name and email address. > diff --git a/drivers/staging/ks7010/ks7010_sdio.c > b/drivers/staging/ks701

Re: [PATCH v4 0/3] Add support for the s6e63j0x03 panel on Rinato board

2017-07-31 Thread Hoegeun Kwon
Dear Thierry, Could you please check these patches. Best regards, Hoegeun On 07/13/2017 11:20 AM, Hoegeun Kwon wrote: Hi Andrzej, Thank you for your review. The purpose of this patch is add support for s6e63j0x03 AMOLED panel on the rinato board(Samsung Galaxy Gear 2). Changes for V4: - Ad

Re: [PATCH v4 00/15] exec: Use sane stack rlimit under secureexec

2017-07-31 Thread Kees Cook
Ugh, please ignore this v4. There's a typo that snuck in. I'll send a v5 soon... -Kees On Mon, Jul 31, 2017 at 4:51 PM, Kees Cook wrote: > As discussed with Linus and Andy, we need to reset the stack rlimit > before we do memory layouts when execing a privilege-gaining (e.g. > setuid) program. T

Re: [RFC PATCH v2] membarrier: expedited private command

2017-07-31 Thread Nicholas Piggin
On Mon, 31 Jul 2017 23:20:59 +1000 Michael Ellerman wrote: > Peter Zijlstra writes: > > > On Fri, Jul 28, 2017 at 10:55:32AM +0200, Peter Zijlstra wrote: > >> diff --git a/kernel/sched/core.c b/kernel/sched/core.c > >> index e9785f7aed75..33f34a201255 100644 > >> --- a/kernel/sched/core.c > >

Re: [PATCH] genirq: Provide IRQCHIP_ONESHOT_EDGE_SAFE

2017-07-31 Thread Benjamin Herrenschmidt
On Mon, 2017-07-31 at 21:33 +0200, Thomas Gleixner wrote: > If an interrupt chip is marked IRQCHIP_ONESHOT_SAFE it signals that the > interrupt chip does not require the ONESHOT mode for threaded > interrupts. Unfortunately this is applied independent of the interrupt type > (edge/level). > > The

Re: [PATCH 2/3] fs, xfs: introduce FALLOC_FL_SEAL_BLOCK_MAP

2017-07-31 Thread Dave Chinner
On Mon, Jul 31, 2017 at 11:25:34AM -0700, Dan Williams wrote: > On Mon, Jul 31, 2017 at 10:09 AM, Darrick J. Wong > wrote: > >> index 93e955262d07..c4fc79a0704f 100644 > >> --- a/fs/xfs/xfs_bmap_util.c > >> +++ b/fs/xfs/xfs_bmap_util.c > >> @@ -1387,6 +1387,92 @@ xfs_zero_file_space( > >> > >> }

Re: [PATCH v2 3/3] ACPI / PCI / PM: Rework acpi_pci_propagate_wakeup()

2017-07-31 Thread Rafael J. Wysocki
On Mon, Jul 31, 2017 at 11:59 PM, Bjorn Helgaas wrote: > On Fri, Jul 21, 2017 at 11:30:24PM +0200, Rafael J. Wysocki wrote: >> From: Rafael J. Wysocki >> >> The acpi_pci_propagate_wakeup() routine is there to handle cases in >> which PCI bridges (or PCIe ports) are expected to signal wakeup >> fo

Re: [PATCH v4 03/15] binfmt: Introduce secureexec flag

2017-07-31 Thread James Morris
On Mon, 31 Jul 2017, Kees Cook wrote: > Cc: David Howells > Signed-off-by: Kees Cook > Reviewed-by: John Johansen > Acked-by: Serge Hallyn > --- > fs/binfmt_elf.c | 2 +- > fs/binfmt_elf_fdpic.c | 2 +- > fs/exec.c | 2 ++ > include/linux/binfmts.h | 6 ++ > 4 file

Re: [PATCH] f2fs: provide f2fs_balance_fs to __write_data_page for dentry pages

2017-07-31 Thread Jaegeuk Kim
Hi Yunlong, On 07/29, Yunlong Song wrote: > f2fs_balance_fs of dentry pages is skipped in __write_data_page due to > deadlock > of gc_mutex in write_checkpoint flow. This patch enables f2fs_balance_fs for > normal dentry page writeback to ensure there are always enough free segments. So, how abo

Re: [PATCH 3/3] xfs: persist S_IOMAP_IMMUTABLE in di_flags2

2017-07-31 Thread Dave Chinner
On Sat, Jul 29, 2017 at 12:43:46PM -0700, Dan Williams wrote: > Record the immutable state in the on-disk inode so that on the next boot > the protections against reflink and hole punch etc are automatically > restored. Keep in mind we can't do this without all the userspace side support for the a

Re: [PATCH v4 05/15] selinux: Refactor to remove bprm_secureexec hook

2017-07-31 Thread James Morris
On Mon, 31 Jul 2017, Kees Cook wrote: > The SELinux bprm_secureexec hook can be merged with the bprm_set_creds > hook since it's dealing with the same information, and all of the details > are finalized during the first call to the bprm_set_creds hook via > prepare_binprm() (subsequent calls due t

Re: [PATCH v4 06/15] smack: Refactor to remove bprm_secureexec hook

2017-07-31 Thread James Morris
On Mon, 31 Jul 2017, Kees Cook wrote: > The Smack bprm_secureexec hook can be merged with the bprm_set_creds > hook since it's dealing with the same information, and all of the details > are finalized during the first call to the bprm_set_creds hook via > prepare_binprm() (subsequent calls due to

Re: [PATCH v4 10/15] exec: Use secureexec for setting dumpability

2017-07-31 Thread James Morris
On Mon, 31 Jul 2017, Kees Cook wrote: > The examination of "current" to decide dumpability is wrong. This was a > check of and euid/uid (or egid/gid) mismatch in the existing process, > not the newly created one. This appears to stretch back into even the > "history.git" tree. Luckily, dumpability

Re: [PATCH v4 11/15] exec: Use secureexec for clearing pdeath_signal

2017-07-31 Thread James Morris
On Mon, 31 Jul 2017, Kees Cook wrote: > Cc: David Howells > Signed-off-by: Kees Cook > Acked-by: Serge Hallyn > --- > fs/exec.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) Reviewed-by: James Morris -- James Morris

Re: [PATCH v4 12/15] smack: Remove redundant pdeath_signal clearing

2017-07-31 Thread James Morris
On Mon, 31 Jul 2017, Kees Cook wrote: > This removes the redundant pdeath_signal clearing in Smack: the check in > smack_bprm_committing_creds() matches the check in smack_bprm_set_creds() > (which used to be in the now-removed smack_bprm_securexec() hook) and > since secureexec is now being check

Re: [PATCH v4 15/15] exec: Consolidate pdeath_signal clearing

2017-07-31 Thread James Morris
On Mon, 31 Jul 2017, Kees Cook wrote: > Instead of an additional secureexec check for pdeath_signal, just move it > up into the initial secureexec test. Neither perf nor arch code touches > pdeath_signal, so the relocation shouldn't change anything. > > Signed-off-by: Kees Cook > Acked-by: Serge

Re: [PATCH v4 00/15] exec: Use sane stack rlimit under secureexec

2017-07-31 Thread James Morris
On Mon, 31 Jul 2017, Kees Cook wrote: > Ugh, please ignore this v4. There's a typo that snuck in. I'll send a v5 > soon... Aside from that, it's looking good. This touches a lot of stuff in security/ so it may make sense for it to go in via my tree. -- James Morris

Re: [PATCH] net-next: stmmac: dwmac-sun8i: fix of_table.cocci warnings

2017-07-31 Thread David Miller
From: Julia Lawall Date: Sat, 29 Jul 2017 17:54:10 +0200 (CEST) > Make sure (of/i2c/platform)_device_id tables are NULL terminated > > Generated by: scripts/coccinelle/misc/of_table.cocci > > Fixes: d5dbe1976d52 ("net-next: stmmac: dwmac-sun8i: choose internal PHY via > compatible") > CC: Core

Re: [PATCH] Bluetooth: btusb: add ID for LiteOn 04ca:3016

2017-07-31 Thread Brian Norris
On Sat, Jul 29, 2017 at 08:32:45AM +0300, Johan Hedberg wrote: > Hi Brian, > > On Fri, Jul 28, 2017, Brian Norris wrote: > > Contains a QCA6174A-5 chipset, with USB BT. Let's support loading > > firmware on it. > > > > Signed-off-by: Brian Norris > > --- > > drivers/bluetooth/btusb.c | 1 + > >

Re: [PATCH v2] cpufreq: x86: Make scaling_cur_freq behave more as expected

2017-07-31 Thread Rafael J. Wysocki
On Monday, July 31, 2017 04:46:42 PM Doug Smythies wrote: > On 2017.07.28 05:45 Rafael J. Wysocki wrote: > > > From: Rafael J. Wysocki > > > > After commit f8475cef9008 "x86: use common aperfmperf_khz_on_cpu() to > > calculate KHz using APERF/MPERF" the scaling_cur_freq policy attribute > > in sy

[PATCH v2] Bluetooth: btusb: add ID for LiteOn 04ca:3016

2017-07-31 Thread Brian Norris
Contains a QCA6174A-5 chipset, with USB BT. Let's support loading firmware on it. >From usb-devices: T: Bus=02 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 3 Spd=12 MxCh= 0 D: Ver= 2.01 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs= 1 P: Vendor=04ca ProdID=3016 Rev=00.01 C: #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr

[PATCH v7 14/15] RISC-V: User-facing API

2017-07-31 Thread Palmer Dabbelt
This patch contains code that is in some way visible to the user: including via system calls, the VDSO, module loading and signal handling. It also contains some generic code that is ABI visible. Signed-off-by: Palmer Dabbelt --- arch/riscv/include/asm/mmu.h | 26 +++ arch/riscv/i

[PATCH v7 08/15] RISC-V: Atomic and Locking Code

2017-07-31 Thread Palmer Dabbelt
This contains all the code that directly interfaces with the RISC-V memory model. While this code corforms to the current RISC-V ISA specifications (user 2.2 and priv 1.10), the memory model is somewhat underspecified in those documents. There is a working group that hopes to produce a formal mem

[PATCH v7 06/15] tty: New RISC-V SBI console driver

2017-07-31 Thread Palmer Dabbelt
The RISC-V ISA defines a simple console that is availiable via SBI calls on all systems. This patch adds a driver for this console interface that can act as both a target for early printk and as the system console. Signed-off-by: Palmer Dabbelt --- drivers/tty/hvc/Kconfig | 11 + dr

RISC-V Linux Port v7

2017-07-31 Thread Palmer Dabbelt
It's been a while since my last patch set, but the changes han been fairly minimal: * The PCI cleanup patches have been dropped, we'll do them as a separate patch set later. * We've the Kconfig entries from CONFIG_ISA_* to CONFIG_RISCV_ISA_*, to make grep easier. * There have been a handf

[PATCH v7 01/15] MAINTAINERS: Add RISC-V

2017-07-31 Thread Palmer Dabbelt
From: Jonathan Neuschäfer RISC-V needs a MAINTAINERS entry. Let's add one. Signed-off-by: Jonathan Neuschäfer Signed-off-by: Palmer Dabbelt --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 196bbc4613c7..651b9ad5cd68 100644 --- a/MAIN

[PATCH v7 15/15] RISC-V: Build Infastructure

2017-07-31 Thread Palmer Dabbelt
This patch contains all the build infastructure that actually enables the RISC-V port. This includes Makefiles, linker scripts, and Kconfig files. It also contains the only top-level change, which adds RISC-V to the list of architectures that need a sed run to produce the ARCH variable when build

[PATCH v7 13/15] RISC-V: Paging and MMU

2017-07-31 Thread Palmer Dabbelt
This patch contains code to manage the RISC-V MMU, including definitions of the page tables and the page walking code. Signed-off-by: Palmer Dabbelt --- arch/riscv/include/asm/mmu_context.h | 69 ++ arch/riscv/include/asm/page.h | 134 +++ arch/riscv/include/asm/pgalloc.h

[PATCH v7 10/15] RISC-V: ELF and module implementation

2017-07-31 Thread Palmer Dabbelt
This patch contains the code that interfaces with ELF objects on RISC-V systems, the vast majority of which is present to load kernel modules. Signed-off-by: Palmer Dabbelt --- arch/riscv/include/asm/compat.h | 29 ++ arch/riscv/include/asm/elf.h| 84 +

[PATCH v7 09/15] RISC-V: Generic library routines and assembly

2017-07-31 Thread Palmer Dabbelt
This patch contains code that is more specific to the RISC-V ISA than it is to Linux. It contains string and math operations, C wrappers for various assembly instructions, stack walking code, and uaccess. Signed-off-by: Palmer Dabbelt --- arch/riscv/include/asm/asm.h| 76 + arc

[PATCH v7 11/15] RISC-V: Task implementation

2017-07-31 Thread Palmer Dabbelt
This patch contains the implementation of tasks on RISC-V, most of which is involved in task switching. Signed-off-by: Palmer Dabbelt --- arch/riscv/include/asm/asm-offsets.h | 1 + arch/riscv/include/asm/current.h | 45 arch/riscv/include/asm/kprobes.h | 22 ++ arch/riscv/inclu

[PATCH v7 12/15] RISC-V: Device, timer, IRQs, and the SBI

2017-07-31 Thread Palmer Dabbelt
This patch contains code that interfaces with devices that are mandated by the RISC-V supervisor specification and that don't have explicit drivers anywhere else in the tree. This includes the staticly defined interrupts, the CSR-mapped timer, and virtualized SBI devices. Signed-off-by: Palmer Da

[PATCH v7 03/15] clocksource: New RISC-V SBI timer driver

2017-07-31 Thread Palmer Dabbelt
The RISC-V ISA defines a per-hart real-time clock and timer, which is present on all systems. The clock is accessed via the 'rdtime' pseudo-instruction (which reads a CSR), and the timer is set via an SBI call. This driver attempts to split out the RISC-V ISA specific mechanisms of accessing the

[PATCH v7 07/15] RISC-V: Init and Halt Code

2017-07-31 Thread Palmer Dabbelt
This contains the various __init C functions, the initial assembly kernel entry point, and the code to reset the system. When a file was init-related this patch contains the entire file. Signed-off-by: Palmer Dabbelt --- arch/riscv/include/asm/bug.h | 88 ++ arch/riscv/include/as

[PATCH v7 05/15] irqchip: New RISC-V PLIC Driver

2017-07-31 Thread Palmer Dabbelt
This patch adds a driver for the Platform Level Interrupt Controller (PLIC) specified as part of the RISC-V supervisor level ISA manual. The PLIC connocts global interrupt sources to the local interrupt controller on each hart. A PLIC is present on all RISC-V systems. Signed-off-by: Palmer Dabbel

[PATCH v7 04/15] irqchip: RISC-V Local Interrupt Controller Driver

2017-07-31 Thread Palmer Dabbelt
This patch adds a driver that manages the local interrupts on each RISC-V hart, as specifiec by the RISC-V supervisor level ISA manual. The local interrupt controller manages software interrupts, timer interrupts, and hardware interrupts (which are routed via the platform level interrupt controller

[PATCH v3 3/3] ACPI / PCI / PM: Rework acpi_pci_propagate_wakeup()

2017-07-31 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The acpi_pci_propagate_wakeup() routine is there to handle cases in which PCI bridges (or PCIe ports) are expected to signal wakeup for devices below them, but currently it doesn't do that correctly. The problem is that acpi_pci_propagate_wakeup() uses acpi_pm_set_device_

[PATCH v7 02/15] lib: Add shared copies of some GCC library routines

2017-07-31 Thread Palmer Dabbelt
Many ports (m32r, microblaze, mips, parisc, score, and sparc) use functionally identical copies of various GCC library routine files, which came up as we were submitting the RISC-V port (which also uses some of these). This patch adds a new copy of these library routine files, which are functional

[PATCH] staging: ks7010: fix styling WARNINGs

2017-07-31 Thread Ashish Kalra
Signed-off-by: Ashish Kalra --- Trivial style changes. There are still "line over 80 characters" checkpatch.pl warnings, but I think they are best left alone as breaking these could hurt readability drivers/staging/ks7010/ks7010_sdio.c | 53 +++- 1 file changed, 4

[PATCH v4 1/2] clk: rockchip: rk3128: modify rk3128 clk driver to support rk3126

2017-07-31 Thread Elaine Zhang
rk3128 and rk3126 have some gate registers describe differences. So need to make some distinctions. The RK3126 and RK3128 Same clock description we move it to the common clock branches. And the different clks description use the own clock branches. Signed-off-by: Elaine Zhang --- drivers/clk/roc

[PATCH v4 0/2] clk: rockchip: support clk drivers for RK3126 SoC.

2017-07-31 Thread Elaine Zhang
changed in V4: modify the document description for rk3126 clock. changed in V3: add documentation for rk3126 clock Elaine Zhang (2): clk: rockchip: rk3128: modify rk3128 clk driver to support rk3126 dt-bindings: add documentation for rk3126 clock .../bindings/clock/rockchip,rk3128-cru.txt

[PATCH v4 2/2] dt-bindings: add documentation for rk3126 clock

2017-07-31 Thread Elaine Zhang
This add bindings documentation for rk3126 SoCs. Signed-off-by: Elaine Zhang --- Documentation/devicetree/bindings/clock/rockchip,rk3128-cru.txt | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/clock/rockchip,rk3128-cru.txt b/Document

Re: [PATCH 05/17] clocksource: New RISC-V SBI timer driver

2017-07-31 Thread Palmer Dabbelt
Sorry, I missed this before submitting our v7. I'll respond properly in a bit... On Mon, 31 Jul 2017 04:00:26 PDT (-0700), daniel.lezc...@linaro.org wrote: > On 11/07/2017 03:39, Palmer Dabbelt wrote: >> The RISC-V ISA defines a per-hart real-time clock and timer, which is >> present on all syste

Re: [PATCH] ipc: optimize semget/shmget/msgget for lots of keys

2017-07-31 Thread Guillaume Knispel
On Mon, Jul 31, 2017 at 08:45:58AM -0700, Davidlohr Bueso wrote: > On Mon, 31 Jul 2017, Guillaume Knispel wrote: > >ipc_findkey() scanned all objects to look for the wanted key. This is > >slow when using a high number of keys, for example on an i5 laptop the > >following loop took 17 s, with last

Re: [PATCH] staging: ks7010: fix styling WARNINGs

2017-07-31 Thread Greg KH
On Mon, Jul 31, 2017 at 04:15:21AM +0100, Ashish Kalra wrote: > Signed-off-by: Ashish Kalra > --- I can't accept patches without any changelog comments at all, sorry

Re: [PATCH v2] serio: PS2 gpio bit banging driver for the serio bus

2017-07-31 Thread kbuild test robot
Hi Danilo, [auto build test WARNING on input/next] [also build test WARNING on v4.13-rc3 next-20170731] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Danilo-Krummrich/serio-PS2-gpio-bit

Re: [RFC PATCH v2] membarrier: expedited private command

2017-07-31 Thread Mathieu Desnoyers
- On Jul 31, 2017, at 8:35 PM, Nicholas Piggin npig...@gmail.com wrote: > On Mon, 31 Jul 2017 23:20:59 +1000 > Michael Ellerman wrote: > >> Peter Zijlstra writes: >> >> > On Fri, Jul 28, 2017 at 10:55:32AM +0200, Peter Zijlstra wrote: >> >> diff --git a/kernel/sched/core.c b/kernel/sched/c

Re: [RFC 2/5] i3c: Add core I3C infrastructure

2017-07-31 Thread Greg Kroah-Hartman
On Mon, Jul 31, 2017 at 06:24:47PM +0200, Boris Brezillon wrote: > Add core infrastructure to support I3C in Linux and document it. > > This infrastructure is not complete yet and will be extended over > time. > > There are a few design choices that are worth mentioning because they > impact the

[RESEND PATCH v3 0/2] userfaultfd: selftest: Add tests for UFFD_FEATURE_SIGBUS feature

2017-07-31 Thread Prakash Sangappa
Resending, Andrew asked if I could resend the whole set. Just added 'Reviewed-by' to commit log for 1/2, no other changes. v3 patch for 2/2 as before http://marc.info/?l=linux-mm&m=150148267803458&w=2 Previous patch set here: http://marc.info/?l=linux-mm&m=150095815413275&w=2 Prakash Sangappa (2

[RESEND PATCH v3 1/2] userfaultfd: Add feature to request for a signal delivery

2017-07-31 Thread Prakash Sangappa
In some cases, userfaultfd mechanism should just deliver a SIGBUS signal to the faulting process, instead of the page-fault event. Dealing with page-fault event using a monitor thread can be an overhead in these cases. For example applications like the database could use the signaling mechanism for

[RESEND PATCH v3 2/2] userfaultfd: selftest: Add tests for UFFD_FEATURE_SIGBUS feature

2017-07-31 Thread Prakash Sangappa
This patch adds tests for UFFD_FEATURE_SIGBUS feature. The tests will verify signal delivery instead of userfault events. Also, test use of UFFDIO_COPY to allocate memory and retry accessing monitored area after signal delivery. This patch also fixes a bug in uffd_poll_thread() where 'uffd' is lea

[PATCH] Fix missing PCI ID (thanks to CoolStar); Necessary for Lenovo Yoga 720-15 Touchpad

2017-07-31 Thread Hoeze
--- This patch fixes a missing PCI ID which is necessary for the Lenovo Yoga 720-15 Touchpad to work. See this bug report on Launchpad: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1700657 Many thanks to CoolStar, who found this solution! drivers/mfd/intel-lpss-pci.c | 1 + 1 file chang

Re: [RFC PATCH v2] membarrier: expedited private command

2017-07-31 Thread Nicholas Piggin
On Tue, 1 Aug 2017 01:33:09 + (UTC) Mathieu Desnoyers wrote: > - On Jul 31, 2017, at 8:35 PM, Nicholas Piggin npig...@gmail.com wrote: > > > On Mon, 31 Jul 2017 23:20:59 +1000 > > Michael Ellerman wrote: > > > >> Peter Zijlstra writes: > >> > >> > On Fri, Jul 28, 2017 at 10:55:32

Re: [PATCH 6/6] drm/rockchip: fix race with kms hotplug and fbdev

2017-07-31 Thread Mark yao
On 2017年07月31日 20:28, Daniel Vetter wrote: On Mon, Jul 31, 2017 at 1:57 PM, Emil Velikov wrote: On 31 July 2017 at 10:50, Mark Yao wrote: Since fb_helper is not a pointer on rockchip_drm_private, it's no need to check pointer. Kms hotplug event may race into fbdev helper initial, and fb_help

RE: [PATCH v1 1/6] dma: fsl-dma: add devicetree documentation for qdma driver.

2017-07-31 Thread Jiaheng Fan
Redraw this patch, thanks. Jiaheng -Original Message- From: jiaheng.fan [mailto:jiaheng@nxp.com] Sent: Tuesday, August 01, 2017 9:47 AM To: vinod.k...@intel.com; robh...@kernel.org; dan.j.willi...@intel.com; mark.rutl...@arm.com; li...@armlinux.org.uk; shawn...@kernel.org Cc: Leo Li

Re: [PATCH V2] ACPI, APEI: Fixup incorrect 16-bit access width firmware bug

2017-07-31 Thread Liwei Song
On 07/31/2017 10:09 AM, Zheng, Lv wrote: > Hi, > >> From: linux-acpi-ow...@vger.kernel.org >> [mailto:linux-acpi-ow...@vger.kernel.org] On Behalf Of Song >> liwei >> Subject: [PATCH V2] ACPI, APEI: Fixup incorrect 16-bit access width firmware >> bug >> >> From: Liwei Song >> >> This is a foll

Re: [RFC][PATCH v3]: documentation,atomic: Add new documents

2017-07-31 Thread Boqun Feng
On Mon, Jul 31, 2017 at 10:43:45AM -0700, Paul E. McKenney wrote: > On Mon, Jul 31, 2017 at 07:04:03PM +0800, Boqun Feng wrote: > > On Mon, Jul 31, 2017 at 11:05:35AM +0200, Peter Zijlstra wrote: > > > On Wed, Jul 26, 2017 at 08:47:50PM +0800, Boqun Feng wrote: > > > > > > > > + > > > > > +Further

[PATCH] sched: fix NULL pointer issue in pick_next_entity()

2017-07-31 Thread Yafang Shao
When we select CFQ as the scheduler, in function pick_next_task_fair it will pass NULL as the 2nd argument to pick_next_entity: pick_next_entity(cfs_rq, NULL); And once __pick_first_entity() is called, it could return NULL as well. So in function pick_next_entity(), the local variable 'left'

Re: [PATCH 1/3] fs, xfs: introduce S_IOMAP_IMMUTABLE

2017-07-31 Thread Colin Walters
On Mon, Jul 31, 2017, at 02:23 PM, Darrick J. Wong wrote: > I don't think F_SEAL_{SHRINK,GROW} prevents reflinking or CoW of file data, > which are two things that cannot happen under S_IOMAP_IMMUTABLE that > aren't size changes. From the implementation it looks like shrink and > grow are only su

Re: [linux-sunxi] Re: [PATCH 0/4] clk: sunxi-ng: Fix issues with fractional mode

2017-07-31 Thread Chen-Yu Tsai
On Tue, Aug 1, 2017 at 12:50 AM, Jernej Škrabec wrote: > Hi Chen-Yu, > > Dne ponedeljek, 31. julij 2017 ob 07:13:34 CEST je Chen-Yu Tsai napisal(a): >> Hi Jernej, >> >> On Mon, Jul 31, 2017 at 12:41 AM, Jernej Skrabec >> >> wrote: >> > During development of H3 HDMI driver, I found some issues wit

Re: [PATCH 3/3] mm/sched: memdelay: memory health interface for systems and workloads

2017-07-31 Thread Mike Galbraith
On Mon, 2017-07-31 at 16:38 -0400, Johannes Weiner wrote: > On Mon, Jul 31, 2017 at 09:49:39PM +0200, Mike Galbraith wrote: > > On Mon, 2017-07-31 at 14:41 -0400, Johannes Weiner wrote: > > > > > > Adding an rq counter for tasks inside memdelay sections should be > > > straight-forward as well (ex

[PATCH v2] KVM: nVMX: Fix attempting to emulate "Acknowledge interrupt on exit" when there is no interrupt which L1 requires to inject to L2

2017-07-31 Thread Wanpeng Li
From: Wanpeng Li [ cut here ] WARNING: CPU: 5 PID: 2288 at arch/x86/kvm/vmx.c:11124 nested_vmx_vmexit+0xd64/0xd70 [kvm_intel] CPU: 5 PID: 2288 Comm: qemu-system-x86 Not tainted 4.13.0-rc2+ #7 RIP: 0010:nested_vmx_vmexit+0xd64/0xd70 [kvm_intel] Call Trace: vmx_check_n

Re: [RFC] KVM: optimize the kvm_vcpu_on_spin

2017-07-31 Thread Longpeng (Mike)
On 2017/7/31 21:22, Christoffer Dall wrote: > On Sat, Jul 29, 2017 at 02:22:57PM +0800, Longpeng(Mike) wrote: >> We had disscuss the idea here: >> https://www.spinics.net/lists/kvm/msg140593.html > > This is not a very nice way to start a commit description. > > Please provide the necessary ba

[PATCHv4 0/3] Intel FPGA VIP Frame Buffer II drm driver

2017-07-31 Thread Hean Loong, Ong
From: Ong Hean Loong The FPGA FrameBuffer Soft IP could be seen as the GPU and the DRM driver patch here is allocating memory for information to be streamed from the ARM/Linux to the display port. Basically the driver just wraps the information such as the pixels to be drawn by the FPGA Fra

[PATCHv4 1/3] ARM:dt-bindings Intel FPGA Video and Image Processing Suite

2017-07-31 Thread Hean Loong, Ong
From: Ong Hean Loong Device tree binding for Intel FPGA Video and Image Processing Suite. The binding involved would be generated from the Altera (Intel) Qsys system. The bindings would set the max width, max height, buts per pixel and memory port width. The device tree binding only supports the

[PATCHv4 2/3] ARM:socfpga-defconfig Intel FPGA Video and Image Processing Suite

2017-07-31 Thread Hean Loong, Ong
From: Ong Hean Loong Intel FPGA Video and Image Processing Suite Frame Buffer II driver config for Arria 10 devkit and its variants Signed-off-by: Ong, Hean Loong --- arch/arm/configs/socfpga_defconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/configs/socfpga_defconfig

[PATCHv4 3/3] DRM:ivip Intel FPGA Video and Image Processing Suite

2017-07-31 Thread Hean Loong, Ong
From: Ong Hean Loong Driver for Intel FPGA Video and Image Processing Suite Frame Buffer II. The driver only supports the Intel Arria10 devkit and its variants. This driver can be either loaded staticlly or in modules. The OF device tree binding is located at: Documentation/devicetree/bindings/di

Re: [PATCH 1/3] fs, xfs: introduce S_IOMAP_IMMUTABLE

2017-07-31 Thread Dave Chinner
On Mon, Jul 31, 2017 at 10:15:12PM -0400, Colin Walters wrote: > On Mon, Jul 31, 2017, at 02:23 PM, Darrick J. Wong wrote: > > > I don't think F_SEAL_{SHRINK,GROW} prevents reflinking or CoW of file data, > > which are two things that cannot happen under S_IOMAP_IMMUTABLE that > > aren't size chan

Re: [RFC V2] printk: add warning while drop partial text in msg

2017-07-31 Thread Sergey Senozhatsky
On (07/30/17 21:37), pierre Kuo wrote: > If the buffer pass to msg_print_text is not big enough to put both all > prefixes and log_text(msg), kernel will quietly break. > That means the user may not have the chance to know whether the > log_text(msg) is fully printed into buffer or not. > > In thi

"BUG: unable to handle kernel NULL pointer dereference" in swapping shmem

2017-07-31 Thread Naoya Horiguchi
Hi, I found the following bug when testing mmotm-2017-07-31-16-56. The triggering testcase just swaps in/out shmem pages. It seems to me related to thp swapping improvement patchset, so let me report this to the relevant people. Thanks, Naoya Horiguchi --- [ 112.690842] ===> testcase 'mm/shmem_s

Re: [linux-sunxi] [PATCH v3 01/12] ASoC: sun4i-i2s: Extend quirks scope

2017-07-31 Thread Chen-Yu Tsai
On Sat, Jul 29, 2017 at 10:17 PM, wrote: > From: Marcus Cooper > > In preparation for the changes required to support newer SoCs then typo? > quirks has been moved and also added to the device structure. > > Signed-off-by: Marcus C

Re: [linux-sunxi] [PATCH v3 02/12] ASoC: sun4i-i2s: Add clkdiv offsets to quirks

2017-07-31 Thread Chen-Yu Tsai
On Sat, Jul 29, 2017 at 10:17 PM, wrote: > From: Marcus Cooper > > The BCLKDIV and MCLKDIV found on newer SoCs start from an offset of 1. > Add the functionality to adjust the division values according to the > needs to the device being used. > > Signed-off-by: Marcus Cooper > --- > sound/soc/

Re: [PATCH v4 00/15] exec: Use sane stack rlimit under secureexec

2017-07-31 Thread Kees Cook
On Mon, Jul 31, 2017 at 5:54 PM, James Morris wrote: > On Mon, 31 Jul 2017, Kees Cook wrote: > >> Ugh, please ignore this v4. There's a typo that snuck in. I'll send a v5 >> soon... > > Aside from that, it's looking good. This touches a lot of stuff in > security/ so it may make sense for it to g

Re: [PATCH] iio: accel: Bugfix to enbale and allow different events to work parallely.

2017-07-31 Thread Harinath Nampally
Thanks for doing that work. I have had it on my list for a long time and you seem to fix it. Although I'd happily review and possibly test it, unfortunately I can't do so before the week of August 21st. If this might go in quick, nothing will stop me from reviewing either, so, whatever. Thanks

<    4   5   6   7   8   9   10   >