[PATCH v3] drivers/char: kmem: disable on arm64

2017-06-19 Thread Ard Biesheuvel
As it turns out, arm64 deviates from other architectures in the way it maps the VMALLOC region: on most (all?) other architectures, it resides strictly above the kernel's direct mapping of DRAM, but on arm64, this is the other way around. For instance, for a 48-bit VA configuration, we have modu

Re: [patch 19/55] genirq: Provide irq_fixup_move_pending()

2017-06-19 Thread Thomas Gleixner
On Tue, 20 Jun 2017, Dou Liyang wrote: > At 06/20/2017 07:37 AM, Thomas Gleixner wrote: > [...] > > > > +/** > > + * irq_fixup_move_pending - Cleanup irq move pending from a dying CPU > > + * @desc: Interrupt descpriptor to clean up > > + * @force_clear: If set clear the move pending bi

Re: um: PTRACE_SETREGSET failure with XSTATE on Kabylake CPU

2017-06-19 Thread Richard Weinberger
Thomas, Am 20.06.2017 um 03:56 schrieb Thomas Meyer: > Hi, > > I finally did figure out where in the host kernel the ptrace syscall > fails with -EFAULT. Nice! Thanks a lot for digging into this. I still had no chance to setup Ipv6 to connect to your host and figure myself. ;-\ > In arch/x86/ke

Re: [PATCH 3/4] randstruct: Disable randomization of ACPICA structs

2017-06-19 Thread Christoph Hellwig
On Mon, Jun 19, 2017 at 01:56:40PM -0700, Kees Cook wrote: > Since the ACPICA source is maintained externally to the kernel, we can > neither switch it to designated initializers nor mark it > __no_randomize_layout. Until ACPICA-upstream changes[1] land to handle the > designated initialization, ex

Re: [RFC v2 09/12] powerpc: Deliver SEGV signal on pkey violation.

2017-06-19 Thread Anshuman Khandual
On 06/17/2017 09:22 AM, Ram Pai wrote: > The value of the AMR register at the time of exception > is made available in gp_regs[PT_AMR] of the siginfo. > > This field can be used to reprogram the permission bits of > any valid pkey. > > Similarly the value of the pkey, whose protection got violate

Re: [PATCH v2] drivers/kmem: disable on arm64

2017-06-19 Thread Ard Biesheuvel
On 19 June 2017 at 17:03, Will Deacon wrote: > On Mon, Jun 19, 2017 at 04:37:24PM +0200, Ard Biesheuvel wrote: >> On arm64, the /dev/kmem driver barely works, given that it assumes that >> VMALLOC_START > PAGE_OFFSET, which is not the case on arm64. Due to the > > Probably worth being explicit abo

Re: [RFC v2 10/12] powerpc: Read AMR only if pkey-violation caused the exception.

2017-06-19 Thread Anshuman Khandual
On 06/19/2017 11:29 PM, Ram Pai wrote: > On Mon, Jun 19, 2017 at 09:06:13PM +1000, Michael Ellerman wrote: >> Ram Pai writes: >> >>> Signed-off-by: Ram Pai >>> --- >>> arch/powerpc/kernel/exceptions-64s.S | 16 ++-- >>> 1 file changed, 10 insertions(+), 6 deletions(-) >>> >>> diff --

Re: [PATCH v2 1/2] kernel/module.c: Invert add_usage_link and del_usage_link functions

2017-06-19 Thread Corentin Labbe
On Mon, Jun 19, 2017 at 06:26:23PM +0200, Jessica Yu wrote: > +++ Corentin Labbe [06/06/17 14:17 +0200]: > >This patch just swap del_usage_link() before add_usage_link(). > > > >Signed-off-by: Corentin Labbe > > Could you combine this with the 2nd patch? By itself this patch > doesn't tell us muc

Re: [PATCH] random: silence compiler warnings and fix race

2017-06-19 Thread Sebastian Andrzej Siewior
On 2017-06-19 22:55:37 [+0200], Jason A. Donenfeld wrote: > On Mon, Jun 19, 2017 at 9:45 AM, Sebastian Andrzej Siewior > wrote: > > ehm. You sure? I simply delayed the lock-dropping _after_ the state > > variable was been modified. So it was basically what your patch did > > except it was unlocked

Re: [PATCH 1/2] mmc: sdhci-of-at91: factor out clks and presets setting

2017-06-19 Thread Adrian Hunter
On 16/06/17 10:29, Quentin Schulz wrote: > The setting of clocks and presets is currently done in probe only but > once deep PM support is added, it'll be needed in the resume function. > > Let's create a function for this setting. > > Signed-off-by: Quentin Schulz Apart from cosmetic comment b

Re: [PATCH v6 4/4] ARM: imx6ul: add "fsl,imx6ul-snvs-lpgpr" node

2017-06-19 Thread Stefan Wahren
Am 20.06.2017 um 06:40 schrieb Oleksij Rempel: > snvs_lpgpr confirmed to work with imx6ul as well. > > Signed-off-by: Oleksij Rempel > Tested-by: Guy Shapiro > --- > Documentation/devicetree/bindings/nvmem/snvs-lpgpr.txt | 3 ++- > arch/arm/boot/dts/imx6ul.dtsi | 4

Re: [PATCH V17 00/11] Add UEFI 2.6 and ACPI 6.1 updates for RAS on ARM64

2017-06-19 Thread Robert Richter
Will, On 07.06.17 12:50:12, Will Deacon wrote: > Thanks, I've pushed this out as: > > git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git > for-next/ras-apei > > which I'll merge into for-next/core (and therefore linux-next) either the > end of this week or the beginning of next week

Re: [PATCH 2/2] mmc: sdhci-of-at91: set clocks and presets after resume from deepest PM

2017-06-19 Thread Ludovic Desroches
On Fri, Jun 16, 2017 at 09:29:29AM +0200, Quentin Schulz wrote: > This adds deepest (Backup+Self-Refresh) PM support to the ATMEL SAMA5D2 > SoC's SDHCI controller. > > When resuming from deepest state, it is required to restore preset > registers as the registers are lost since VDD core has been s

Re: [PATCH] cfg80211: Fix a memory leak in error handling path in 'brcmf_cfg80211_attach'

2017-06-19 Thread Kalle Valo
Christophe JAILLET writes: > If 'wiphy_new()' fails, we leak 'ops'. Add a new label in the error > handling path to free it in such a case. > > Fixes: 5c22fb85102a7 ("brcmfmac: add wowl gtk rekeying offload support") > Signed-off-by: Christophe JAILLET The prefix should be "brcmfmac:", like in

Re: [PATCH 1/2] mmc: sdhci-of-at91: factor out clks and presets setting

2017-06-19 Thread Ludovic Desroches
On Fri, Jun 16, 2017 at 09:29:28AM +0200, Quentin Schulz wrote: > The setting of clocks and presets is currently done in probe only but > once deep PM support is added, it'll be needed in the resume function. > > Let's create a function for this setting. > > Signed-off-by: Quentin Schulz Acked-b

Re: [kernel-hardening] Re: [PATCH] random: silence compiler warnings and fix race

2017-06-19 Thread Joel Stanley
ANDOM so that the answer is 'n'. It *is* spammy > for PowerPC, because they aren't getting their CRNG initialized > quickly enough, so several userspace processes are getting > fork/exec'ed with an uninitialized CRNG. It's very spammy for ARM as well. I booted next-2

Re: [RFC v2 12/12]selftest: Updated protection key selftest

2017-06-19 Thread Anshuman Khandual
On 06/17/2017 09:22 AM, Ram Pai wrote: > Added test support for PowerPC implementation off protection keys. > > Signed-off-by: Ram Pai First of all, there are a lot of instances where we use *pkru* named functions on power even the real implementations have taken care of doing appropriate things

Re: [PATCH v4] Introduce v3 namespaced file capabilities

2017-06-19 Thread Serge E. Hallyn
On Sun, Jun 18, 2017 at 09:13:28PM -0400, Stefan Berger wrote: > Can you adapt your test cases. I haven't tried them, but having > them would be important. branch nsfscaps of github.com/hallyn/ltp now has a patch on top which makes it work with your capabilities. Tests are passing. thanks, -ser

[PATCH] cfg80211: Fix a memory leak in error handling path in 'brcmf_cfg80211_attach'

2017-06-19 Thread Christophe JAILLET
If 'wiphy_new()' fails, we leak 'ops'. Add a new label in the error handling path to free it in such a case. Fixes: 5c22fb85102a7 ("brcmfmac: add wowl gtk rekeying offload support") Signed-off-by: Christophe JAILLET --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 3 ++- 1 file

[PATCH 3/7] userfaultfd: shmem: add shmem_mfill_zeropage_pte for userfaultfd support

2017-06-19 Thread Mike Rapoport
shmem_mfill_zeropage_pte is the low level routine that implements the userfaultfd UFFDIO_ZEROPAGE command. Since for shmem mappings zero pages are always allocated and accounted, the new method is a slight extension of the existing shmem_mcopy_atomic_pte. Signed-off-by: Mike Rapoport --- include

[PATCH 6/7] userfaultfd: report UFFDIO_ZEROPAGE as available for shmem VMAs

2017-06-19 Thread Mike Rapoport
Now when shmem VMAs can be filled with zero page via userfaultfd we can report that UFFDIO_ZEROPAGE is available for those VMAs Signed-off-by: Mike Rapoport --- fs/userfaultfd.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fs/userfaultfd.c b/fs/userfaultfd.c ind

[PATCH 7/7] userfaultfd: selftest: enable testing of UFFDIO_ZEROPAGE for shmem

2017-06-19 Thread Mike Rapoport
Signed-off-by: Mike Rapoport --- tools/testing/selftests/vm/userfaultfd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/vm/userfaultfd.c b/tools/testing/selftests/vm/userfaultfd.c index 1eae79a..b0c9263 100644 --- a/tools/testing/selftests/vm/userfau

[PATCH 4/7] userfaultfd: mcopy_atomic: introduce mfill_atomic_pte helper

2017-06-19 Thread Mike Rapoport
Shuffle the code a bit to improve readability. Signed-off-by: Mike Rapoport --- mm/userfaultfd.c | 46 ++ 1 file changed, 30 insertions(+), 16 deletions(-) diff --git a/mm/userfaultfd.c b/mm/userfaultfd.c index 8bcb501..48c015c 100644 --- a/mm/userfau

[PATCH 0/7] userfaultfd: enable zeropage support for shmem

2017-06-19 Thread Mike Rapoport
Hi, These patches enable support for UFFDIO_ZEROPAGE for shared memory. The first two patches are not strictly related to userfaultfd, they are just minor refactoring to reduce amount of code duplication. Mike Rapoport (7): shmem: shmem_charge: verify max_block is not exceeded before inode upd

[PATCH 2/7] shmem: introduce shmem_inode_acct_block

2017-06-19 Thread Mike Rapoport
The shmem_acct_block and the update of used_blocks are following one another in all the places they are used. Combine these two into a helper function. Signed-off-by: Mike Rapoport --- mm/shmem.c | 102 - 1 file changed, 46 insertions(+

[PATCH 5/7] userfaultfd: shmem: wire up shmem_mfill_zeropage_pte

2017-06-19 Thread Mike Rapoport
For shmem VMAs we can use shmem_mfill_zeropage_pte for UFFDIO_ZEROPAGE Signed-off-by: Mike Rapoport --- mm/userfaultfd.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mm/userfaultfd.c b/mm/userfaultfd.c index 48c015c..8119270 100644 --- a/mm/userfaultfd.c +++ b/mm/use

[PATCH 1/7] shmem: shmem_charge: verify max_block is not exceeded before inode update

2017-06-19 Thread Mike Rapoport
Currently we update inode and shmem_inode_info before verifying that used_blocks will not exceed max_blocks. In case it will, we undo the update. Let's switch the order and move the verification of the blocks count before the inode and shmem_inode_info update. Signed-off-by: Mike Rapoport --- mm

[PATCH] video: fbdev: fsl-diu-fb: constify mfb_template and fsl_diu_match.

2017-06-19 Thread Arvind Yadav
File size before: textdata bss dec hex filename 24691552 244045 fcd drivers/video/fbdev/fsl-diu-fb.o File size After adding 'const': textdata bss dec hex filename 3821 200 244045 fcd drivers/video/fbdev/fsl-diu-fb.o Sig

Re: [RFC v2 11/12]Documentation: Documentation updates.

2017-06-19 Thread Anshuman Khandual
On 06/17/2017 09:22 AM, Ram Pai wrote: > The Documentaton file is moved from x86 into the generic area, > since this feature is now supported by more than one archs. > > Signed-off-by: Ram Pai > --- > Documentation/vm/protection-keys.txt | 110 > ++ > Documentat

Re: [PATCH 3.10 000/268] 3.10.107-stable review

2017-06-19 Thread Willy Tarreau
Hi Guenter, On Tue, Jun 20, 2017 at 12:51:46AM +0200, Willy Tarreau wrote: > Hi Guenter, > > On Mon, Jun 19, 2017 at 03:46:36PM -0700, Guenter Roeck wrote: > > Build results: > > total: 121 pass: 118 fail: 3 > > Failed builds: > > arm:at91_dt_defconfig > > arm:sama5_defconfig > >

Re: [PATCH 2/6] drivers base/arch_topology: frequency-invariant load-tracking support

2017-06-19 Thread Viresh Kumar
On Thu, Jun 8, 2017 at 1:25 PM, Dietmar Eggemann wrote: > diff --git a/drivers/base/arch_topology.c b/drivers/base/arch_topology.c > static int > init_cpu_capacity_callback(struct notifier_block *nb, > @@ -185,6 +192,7 @@ init_cpu_capacity_callback(struct notifier_block *nb, >

Re: [PATCH 3.10 162/268] bcma: use (get|put)_device when probing/removing device driver

2017-06-19 Thread Willy Tarreau
On Tue, Jun 20, 2017 at 08:12:26AM +0300, Kalle Valo wrote: > Willy Tarreau writes: > > > From: Rafał Miłecki > > > > commit a971df0b9d04674e325346c17de9a895425ca5e1 upstream. > > > > This allows tracking device state and e.g. makes devm work as expected. > > > > Signed-off-by: Rafał Miłecki

Re: [alsa-devel] [PATCH 1/2] ALSA: line6: add support for POD HD500X

2017-06-19 Thread Takashi Iwai
On Mon, 19 Jun 2017 01:15:22 +0200, Hans Peter Möller wrote: > > If you can do it, I would appreciate it. > Thanks. OK, applied both patches now. Thanks. Takashi > > brgds > HPM > > On Sat, Jun 17, 2017 at 5:20 PM, Takashi Iwai wrote: > > > On Sat, 17 Jun 2017 21:03:40 +0200, > > Hans Pet

Re: [RFC v2 00/12] powerpc: Memory Protection Keys

2017-06-19 Thread Anshuman Khandual
On 06/20/2017 10:40 AM, Balbir Singh wrote: > On Fri, 2017-06-16 at 20:52 -0700, Ram Pai wrote: >> Memory protection keys enable applications to protect its >> address space from inadvertent access or corruption from >> itself. > > I presume by itself you mean protection between threads? Between

Re: [PATCH] random: silence compiler warnings and fix race

2017-06-19 Thread Theodore Ts'o
On Mon, Jun 19, 2017 at 10:57:18PM +0200, Jason A. Donenfeld wrote: > > With rc6 already released and rc7 coming up, I'd really appreciate you > stepping in here and either ACKing the above commit, or giving your > two cents about it in case I need to roll something different. I actually had set

linux-next: Tree for Jun 20

2017-06-19 Thread Stephen Rothwell
Hi all, Changes since 20170619: The arm64 tree lost its complex conflicts. The block tree gained conflicts against the btrfs-kdave. The tty tree gained a conflict against the arm-soc tree. The kspp tree gained a build failure for which I applied a merge fix patch. The akpm-current tree lost

[PATCH] phy: qcom-qmp: Fix failure path in phy_init functions

2017-06-19 Thread Vivek Gautam
Fixing the clk enable failure path in qcom_qmp_phy_init() and cleanup the reset control deassertion failure path in qcom_qmp_phy_com_init(). Fixes: e78f3d15e115 ("phy: qcom-qmp: new qmp phy driver for qcom-chipsets") Cc: Kishon Vijay Abraham I Signed-off-by: Vivek Gautam --- drivers/phy/qualco

Re: [PATCH 0/2] ALSA: add const to snd_ratnum structures

2017-06-19 Thread Takashi Iwai
On Mon, 19 Jun 2017 20:41:52 +0200, Bhumika Goyal wrote: > > Declare snd_ratnum structures as const as their reference is only > stored in the rate field of a snd_pcm_hw_constraint_ratnums structure. > This field is of type const, so snd_ratnum structures can be made const. > > Bhumika Goyal (2):

Re: [RFC PATCH 2/2] mm, fs: daxfile, an interface for byte-addressable updates to pmem

2017-06-19 Thread Andy Lutomirski
On Mon, Jun 19, 2017 at 5:46 PM, Dave Chinner wrote: > On Mon, Jun 19, 2017 at 08:22:10AM -0700, Andy Lutomirski wrote: >> On Mon, Jun 19, 2017 at 6:21 AM, Dave Chinner wrote: >> > On Sat, Jun 17, 2017 at 10:05:45PM -0700, Andy Lutomirski wrote: >> >> On Sat, Jun 17, 2017 at 8:15 PM, Dan Williams

[patch v3 1/3] tty: add function to convert device name to number

2017-06-19 Thread Okash Khawaja
The function converts strings like ttyS0 and ttyUSB0 to dev_t like (4, 64) and (188, 0). It does this by scanning tty_drivers list for corresponding device name and index. If the driver is not registered, this function returns -ENODEV. It also acquires tty_mutex. Signed-off-by: Okash Khawaja ---

[patch v3 3/3] staging: speakup: make ttyio synths use device name

2017-06-19 Thread Okash Khawaja
This patch introduces new module parameter, dev, which takes a string representing the device that the external synth is connected to, e.g. ttyS0, ttyUSB0 etc. This is then used to communicate with the synth. That way, speakup can support more than ttyS*. As of this patch, it only supports ttyS*, t

[patch v3 0/3] staging: speakup: support more than ttyS*

2017-06-19 Thread Okash Khawaja
Hi, I have updated the patches based on feedback. For patch 1, In favour of consistency, I've updated the code which extracts trailing digits so that it is like similar code in tty_find_polling_driver. Also fixed checkpatch warnings. Here's summary of the patches Patch 1 adds functionality to co

[patch v3 2/3] staging: speakup: check and convert dev name or ser to dev_t

2017-06-19 Thread Okash Khawaja
This patch adds functionality to validate and convert either a device name or 'ser' memmber of synth into dev_t. Subsequent patch in this set will call it to convert user-specified device into device number. For device name, this patch does some basic sanity checks on the string passed in. It curre

[PATCH] PCI: xilinx: make of_device_ids const.

2017-06-19 Thread Arvind Yadav
of_device_ids are not supposed to change at runtime. All functions working with of_device_ids provided by work with const of_device_ids. So mark the non-const structs as const. File size before: textdata bss dec hex filename 195 600 0 795 31b drivers/pci/h

[PATCH] drm: dw-hdmi-i2s: add missing company name on Copyright

2017-06-19 Thread Kuninori Morimoto
From: Kuninori Morimoto This driver's Copyright is under Renesas Solutions Corp Signed-off-by: Kuninori Morimoto --- drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c b

[PATCH v2] serial: 8250: 8250_omap: Fix race b/w dma completion and RX timeout

2017-06-19 Thread Vignesh R
DMA RX completion handler for UART is called from a tasklet and hence may be delayed depending on the system load. In meanwhile, there may be RX timeout interrupt which can get serviced first before DMA RX completion handler is executed for the completed transfer. omap_8250_rx_dma_flush() which is

Re: [PATCH v4] Introduce v3 namespaced file capabilities

2017-06-19 Thread Amir Goldstein
On Tue, Jun 20, 2017 at 12:34 AM, Eric W. Biederman wrote: > "Serge E. Hallyn" writes: > >> Quoting Stefan Berger (stef...@linux.vnet.ibm.com): >>> On 06/14/2017 11:05 PM, Serge E. Hallyn wrote: >>> >On Wed, Jun 14, 2017 at 08:27:40AM -0400, Stefan Berger wrote: >>> >>On 06/13/2017 07:55 PM, Serg

Re: linux-next: build failure after merge of the kspp tree

2017-06-19 Thread John Johansen
On 06/19/2017 10:39 PM, Kees Cook wrote: > On Mon, Jun 19, 2017 at 9:56 PM, Stephen Rothwell > wrote: >> Hi all, >> >> After merging the kspp tree, today's linux-next build (x86_64 >> allmodconfig) failed like this: >> >> security/apparmor/file.c: In function 'aa_path_link': >> security/apparmor/

Re: linux-next: build failure after merge of the kspp tree

2017-06-19 Thread Kees Cook
On Mon, Jun 19, 2017 at 9:56 PM, Stephen Rothwell wrote: > Hi all, > > After merging the kspp tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > security/apparmor/file.c: In function 'aa_path_link': > security/apparmor/file.c:475:23: error: positional initialization of fi

Re: linux-next: build failure after merge of the kspp tree

2017-06-19 Thread John Johansen
On 06/19/2017 09:56 PM, Stephen Rothwell wrote: > Hi all, > > After merging the kspp tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > security/apparmor/file.c: In function 'aa_path_link': > security/apparmor/file.c:475:23: error: positional initialization of field in

Re: [PATCH 3.10 060/268] xen/gntdev: Use VM_MIXEDMAP instead of VM_IO to avoid NUMA balancing

2017-06-19 Thread Willy Tarreau
On Mon, Jun 19, 2017 at 07:57:27PM -0700, Hugh Dickins wrote: > On Mon, 19 Jun 2017, Willy Tarreau wrote: > > > From: Boris Ostrovsky > > > > commit 30faaafdfa0c754c91bac60f216c9f34a2bfdf7e upstream. > > > > Commit 9c17d96500f7 ("xen/gntdev: Grant maps should not be subject to > > NUMA balancin

[PATCH] watchdog: cadence_wdt: make of_device_ids const.

2017-06-19 Thread Arvind Yadav
of_device_ids are not supposed to change at runtime. All functions working with of_device_ids provided by work with const of_device_ids. So mark the non-const structs as const. File size before: textdata bss dec hex filename 1962 612 42578 a12 drivers/watch

[PATCH] staging: rtl8723bs: hal: Use (true/false) in assignment to bool

2017-06-19 Thread simran singhal
This patch assigns (true/false) to boolean EDCCA_State instead of (1/0). And, there is no need of comparing EDCCA_State explicitly with constant 1. Signed-off-by: simran singhal --- drivers/staging/rtl8723bs/hal/odm_DIG.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

Re: [RFC PATCH 2/2] mm, fs: daxfile, an interface for byte-addressable updates to pmem

2017-06-19 Thread Darrick J. Wong
[add linux-xfs to the fray] On Fri, Jun 16, 2017 at 06:15:35PM -0700, Dan Williams wrote: > To date, the full promise of byte-addressable access to persistent > memory has only been half realized via the filesystem-dax interface. The > current filesystem-dax mechanism allows an application to cons

[PATCH 10/11] Fix ERROR: else should follow close brace '}'

2017-06-19 Thread Jhih-Ming Huang
From: Jhih-Ming Hunag Fixied "ERROR: else should follow close brace '}'". Signed-off-by: Jhih-Ming Hunag --- drivers/staging/ccree/ssi_aead.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/ccree/ssi_aead.c b/drivers/staging/ccree/ssi_aead.c index d697244.

[PATCH 11/11] Fix ERROR: "foo* bar" should be "foo *bar"

2017-06-19 Thread Jhih-Ming Huang
From: Jhih-Ming Hunag Fixed 'ERROR: "foo* bar" should be "foo *bar"'. Signed-off-by: Jhih-Ming Hunag --- drivers/staging/ccree/ssi_aead.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ccree/ssi_aead.c b/drivers/staging/ccree/ssi_aead.c index c148d81..c70e4

[PATCH 07/11] Fix ERROR: open brace '{' following function declarations go on the next line

2017-06-19 Thread Jhih-Ming Huang
From: Jhih-Ming Hunag Fixed "ERROR: open brace '{' following function declarations go on the next line". Signed-off-by: Jhih-Ming Hunag --- drivers/staging/ccree/ssi_aead.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/staging/ccree/ssi_aead.c b/drivers/sta

[PATCH 08/11] Fix ERROR: space prohibited before open square bracket '['

2017-06-19 Thread Jhih-Ming Huang
From: Jhih-Ming Hunag Fixied "ERROR: space prohibited before open square bracket '['". Signed-off-by: Jhih-Ming Hunag --- drivers/staging/ccree/ssi_aead.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ccree/ssi_aead.c b/drivers/staging/ccree/ssi_aead.c ind

[PATCH 09/11] Fix ERROR: space prohibited before that ','

2017-06-19 Thread Jhih-Ming Huang
From: Jhih-Ming Hunag Fixed "ERROR: space prohibited before that ','". Signed-off-by: Jhih-Ming Hunag --- drivers/staging/ccree/ssi_aead.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/ccree/ssi_aead.c b/drivers/staging/ccree/ssi_aead.c index 6d2c0

[PATCH 06/11] Fix ERROR: space prohibited before that close parenthesis ')'

2017-06-19 Thread Jhih-Ming Huang
From: Jhih-Ming Hunag Fixed "ERROR: space prohibited before that close parenthesis ')'". Signed-off-by: Jhih-Ming Hunag --- drivers/staging/ccree/ssi_aead.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/staging/ccree/ssi_aead.c b/d

[PATCH 05/11] Fix ERROR: space prohibited after that open parenthesis '('

2017-06-19 Thread Jhih-Ming Huang
From: Jhih-Ming Hunag Fixed "ERROR: space prohibited after that open parenthesis '('". Signed-off-by: Jhih-Ming Hunag --- drivers/staging/ccree/ssi_aead.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/ccree/ssi_aead.c b/drivers/staging/ccr

[PATCH 03/11] Fix ERROR: space required before the open brace

2017-06-19 Thread Jhih-Ming Huang
From: Jhih-Ming Hunag Fixed 'ERROR: space required before the open brace'. Signed-off-by: Jhih-Ming Hunag --- drivers/staging/ccree/ssi_aead.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/ccree/ssi_aead.c b/drivers/staging/ccree/ssi_aead.c index 0f9

[PATCH 04/11] Fix ERROR: that open brace { should be on the previous line

2017-06-19 Thread Jhih-Ming Huang
From: Jhih-Ming Hunag Fixed 'ERROR: that open brace { should be on the previous line'. Signed-off-by: Jhih-Ming Hunag --- drivers/staging/ccree/ssi_aead.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/ccree/ssi_aead.c b/drivers/staging/ccree/ssi_aead

[PATCH 02/11] Fix ERROR: spaces required around that

2017-06-19 Thread Jhih-Ming Huang
From: Jhih-Ming Hunag Fixed 'ERROR: spaces required around that' Signed-off-by: Jhih-Ming Hunag --- drivers/staging/ccree/ssi_aead.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/ccree/ssi_aead.c b/drivers/staging/ccree/ssi_aead.c index 5bc3a5

[PATCH 01/11] Fix coding style of driver/staging/ccree/ssi_aead.c ERROR: space required after that

2017-06-19 Thread Jhih-Ming Huang
From: Jhih-Ming Hunag In this series patches, I fix all of the coding style error in driver/staging/ccree/ssi_aead.c from 54 errors to 0 error. The first patch fixed 'ERROR: space required after that'. Signed-off-by: Jhih-Ming Hunag --- drivers/staging/ccree/ssi_aead.c | 22 +++--

linux-next: manual merge of the akpm-current tree with the kspp tree

2017-06-19 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: include/linux/ipc.h between commit: 1a12979f61e4 ("randstruct: Mark various structs for randomization") from the kspp tree and commit: 893106d6be17 ("ipc: merge ipc_rcu and kern_ipc_perm") from the akpm-curren

[git pull] ufs fixes

2017-06-19 Thread Al Viro
More UFS fixes, unfortunately including build regression fix for the 64bit s_dsize commit. Fixed in this pile: * trivial bug in signedness of 32bit timestamps on ufs1 * ESTALE instead of ufs_error() when doing open-by-fhandle on something deleted * build regression

linux-next: manual merge of the akpm-current tree with the kspp tree

2017-06-19 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: include/linux/sem.h between commit: 1a12979f61e4 ("randstruct: Mark various structs for randomization") from the kspp tree and commit: 337e62a32a54 ("ipc/sem.c: remove sem_base, embed struct sem") from the akp

[PATCH] drm: armada: make of_device_ids const.

2017-06-19 Thread Arvind Yadav
of_device_ids are not supposed to change at runtime. All functions working with of_device_ids provided by work with const of_device_ids. So mark the non-const structs as const. File size before: textdata bss dec hex filename 8836 744 09580256c drivers/gpu/d

Re: [PATCH 3.10 162/268] bcma: use (get|put)_device when probing/removing device driver

2017-06-19 Thread Kalle Valo
Willy Tarreau writes: > From: Rafał Miłecki > > commit a971df0b9d04674e325346c17de9a895425ca5e1 upstream. > > This allows tracking device state and e.g. makes devm work as expected. > > Signed-off-by: Rafał Miłecki > Signed-off-by: Kalle Valo > Signed-off-by: Willy Tarreau UTF-8 characte

Re: [RFC v2 00/12] powerpc: Memory Protection Keys

2017-06-19 Thread Balbir Singh
On Fri, 2017-06-16 at 20:52 -0700, Ram Pai wrote: > Memory protection keys enable applications to protect its > address space from inadvertent access or corruption from > itself. I presume by itself you mean protection between threads? > > The overall idea: > > A process allocates a key and

[PATCH] ARM: dts: am437x-gp-evm: Add support for buzzer

2017-06-19 Thread Faiz Abbas
Add support for onboard gpio buzzer. It works using the gpio-beeper driver. Pinmux entries for GPIO controlling the buzzer are also added. Signed-off-by: Faiz Abbas --- arch/arm/boot/dts/am437x-gp-evm.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/am437

[PATCH V2 1/2] hwmon: (ibmpowernv) introduce a legacy_compatibles array

2017-06-19 Thread Shilpasri G Bhat
From: Cédric Le Goater Today, the type of a PowerNV sensor system is determined with the "compatible" property for legacy Firmwares and with the "sensor-type" for newer ones. The same array of strings is used for both to do the matching and this raises some issue to introduce new sensor types. L

[PATCH V2 2/2] hwmon: (ibmpowernv) Add current(A) sensor

2017-06-19 Thread Shilpasri G Bhat
This patch exports current(A) sensors in inband sensors copied to main memory by OCC. Signed-off-by: Shilpasri G Bhat --- Changes from V1: - Rebased on top of Cedric's patch to remove legay-compatible type for the current(A) sensor. drivers/hwmon/ibmpowernv.c | 4 +++- 1 file changed, 3 inser

[PATCH V2 0/2] hwmon: (ibmpowernv) Add support for current(A) sensors

2017-06-19 Thread Shilpasri G Bhat
The first patch from Cedric in the patchset cleans up the driver to provide a neater way to define new sensor types. The second patch adds current sensor. Cédric Le Goater (1): hwmon: (ibmpowernv) introduce a legacy_compatibles array Shilpasri G Bhat (1): hwmon: (ibmpowernv) Add current(A) se

[PATCH] drm: sti: sti_hqvdp: make of_device_ids const.

2017-06-19 Thread Arvind Yadav
of_device_ids are not supposed to change at runtime. All functions working with of_device_ids provided by work with const of_device_ids. So mark the non-const structs as const. File size before: textdata bss dec hex filename 15845 640 0 164854065 drivers/gpu/d

Re: [PATCH v2 3/9] vfio: New external user group/file match

2017-06-19 Thread kbuild test robot
Hi Alex, [auto build test ERROR on vfio/next] [also build test ERROR on v4.12-rc6 next-20170619] [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/Alex-Williamson/vfio-Fix-release-ordering-races

Re: [PATCH v5 3/6] kernel/reboot.c: export pm_power_off_prepare

2017-06-19 Thread Oleksij Rempel
On 19.06.2017 13:35, Leonard Crestez wrote: On Mon, 2017-06-19 at 07:02 +0200, Oleksij Rempel wrote: Export pm_power_off_prepare. It is needed to implement power off on Freescale/NXP iMX6 based boards with external power management integrated circuit (PMIC). Signed-off-by: Oleksij Rempel ---

linux-next: build failure after merge of the kspp tree

2017-06-19 Thread Stephen Rothwell
Hi all, After merging the kspp tree, today's linux-next build (x86_64 allmodconfig) failed like this: security/apparmor/file.c: In function 'aa_path_link': security/apparmor/file.c:475:23: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=de

Re: [PATCH v5 2/6] ARM: imx6: register pm_power_off handler if "fsl,pmic-stby-poweroff" is set

2017-06-19 Thread Oleksij Rempel
Hi Leonard, On 19.06.2017 13:35, Leonard Crestez wrote: On Mon, 2017-06-19 at 07:02 +0200, Oleksij Rempel wrote: One of the Freescale recommended sequences for power off with external PMIC is the following: ... 3. SoC is programming PMIC for power off when standby is asserted. 4. In CCM STOP

[PATCH] drm: sti: sti_hqvdp: Fix compilation warning.

2017-06-19 Thread Arvind Yadav
Replace '%d' by '%zu' and '%lu' to fix the following compilation warning:- drivers/gpu/drm/sti/sti_hqvdp.c: In function ‘sti_hqvdp_start_xp70’: drivers/gpu/drm/sti/sti_hqvdp.c:925:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat=] DRM_ERROR("In

Re: [PATCH v2] drm/exynos/dsi: Remove error handling for bridge_node DT parsing

2017-06-19 Thread Hoegeun Kwon
Hello Tobias, Sorry for late reply. On 06/14/2017 09:30 PM, Tobias Jakobi wrote: Hello Hoegeun, my last question (does this regress the case "node required, but absent") still stands. Hoegeun Kwon wrote: Remove the error handling of bridge_node because the bridge_node is required optionally

Re: [PATCH] hwmon: (ibmpowernv) Add current(A) sensors

2017-06-19 Thread Shilpasri G Bhat
Hi Cedric, On 06/19/2017 06:22 PM, Cédric Le Goater wrote: > On 06/19/2017 11:25 AM, Shilpasri G Bhat wrote: >> This patch exports current(A) sensors in inband sensors copied to >> main memory by OCC. >> >> Signed-off-by: Shilpasri G Bhat >> --- >> drivers/hwmon/ibmpowernv.c | 4 +++- >> 1 file

[PATCH v3] selftests: lib: Skip tests on missing test modules

2017-06-19 Thread Sumit Semwal
With older kernels, printf.sh and bitmap.sh fail because they can't find the respective test modules they are looking for. Use modprobe dry run to check for missing test_XXX module. Error out with the same error code as prime_numbers.sh. v3: As pointed out by Kees, modules can be in-built too, so

Re: [PATCH v2] refcount: Create unchecked atomic_t implementation

2017-06-19 Thread Kees Cook
On Wed, Jun 7, 2017 at 10:56 PM, Greg KH wrote: > On Wed, Jun 07, 2017 at 07:58:31PM -0700, Kees Cook wrote: >> Many subsystems will not use refcount_t unless there is a way to build the >> kernel so that there is no regression in speed compared to atomic_t. This >> adds CONFIG_REFCOUNT_FULL to en

Re: [kernel-hardening] [PATCH 22/23] usercopy: split user-controlled slabs to separate caches

2017-06-19 Thread Eric Biggers
On Mon, Jun 19, 2017 at 04:36:36PM -0700, Kees Cook wrote: > From: David Windsor > > Some userspace APIs (e.g. ipc, seq_file) provide precise control over > the size of kernel kmallocs, which provides a trivial way to perform > heap overflow attacks where the attacker must control neighboring > a

[PATCH] drm: sti: sti_dvo: make of_device_ids const.

2017-06-19 Thread Arvind Yadav
of_device_ids are not supposed to change at runtime. All functions working with of_device_ids provided by work with const of_device_ids. So mark the non-const structs as const. File size before: textdata bss dec hex filename 4222 664 048861316 drivers/gpu/d

[PATCH v6 3/4] ARM: dts: imx6qdl.dtsi: add "fsl,imx6q-snvs-lpgpr" node

2017-06-19 Thread Oleksij Rempel
This node is for Low Power General Purpose Register which can be used as Non-Volatile Storage. Signed-off-by: Oleksij Rempel --- arch/arm/boot/dts/imx6qdl.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi index e426faa9c2

[PATCH v6 0/4] nvmem: upstream snvs_lpgpr driver

2017-06-19 Thread Oleksij Rempel
changes v6: - check if device is writable by reading GPR_SL and GPR_HL bits - use regmap_bulk_* functions instead of while() { regmap_read/write } - add patch for imx6ul changes v5: - use dcfg->offset instead of priv->offset. changes v4: - change dependencies in Kconfig - remove unused incl

[PATCH v6 4/4] ARM: imx6ul: add "fsl,imx6ul-snvs-lpgpr" node

2017-06-19 Thread Oleksij Rempel
snvs_lpgpr confirmed to work with imx6ul as well. Signed-off-by: Oleksij Rempel Tested-by: Guy Shapiro --- Documentation/devicetree/bindings/nvmem/snvs-lpgpr.txt | 3 ++- arch/arm/boot/dts/imx6ul.dtsi | 4 drivers/nvmem/snvs_lpgpr.c | 1

[PATCH v6 2/4] nvmem: add snvs_lpgpr driver

2017-06-19 Thread Oleksij Rempel
This is a driver for Low Power General Purpose Register (LPGPR) available on i.MX6 SoCs in Secure Non-Volatile Storage (SNVS) of this chip. It is a 32-bit read/write register located in the low power domain. Since LPGPR is located in the battery-backed power domain, LPGPR can be used by any applic

[PATCH v6 1/4] nvmem: dt: document SNVS LPGPR binding

2017-06-19 Thread Oleksij Rempel
Documentation bindings for the Low Power General Purpose Register available on i.MX6 SoCs in the Secure Non-Volatile Storage. Signed-off-by: Oleksij Rempel --- .../devicetree/bindings/nvmem/snvs-lpgpr.txt | 19 +++ 1 file changed, 19 insertions(+) create mode 100644 Doc

Re: Linux 4.12-rc6

2017-06-19 Thread Hugh Dickins
On Mon, 19 Jun 2017, Hugh Dickins wrote: > On Tue, 20 Jun 2017, Linus Torvalds wrote: > > On Tue, Jun 20, 2017 at 8:26 AM, Dave Jones wrote: > > > > Hugh Dickins (1): > > > > mm: larger stack guard gap, between vmas > > > > > > This seems to be buggered. ... > > > > So maybe that "goto fo

Re: [PATCH v2 2/4] drm/panel: Add support for s6e63j0x03 panel driver

2017-06-19 Thread Hoegeun Kwon
On 06/19/2017 06:14 PM, Andrzej Hajda wrote: On 15.06.2017 12:03, Hoegeun Kwon wrote: This patch adds MIPI-DSI based S6E63J0X03 AMOLED LCD panel driver which uses mipi_dsi bus to communicate with panel. The panel has 320×320 resolution in 1.63" physical panel. This panel is used in Samsung Gala

Re: [kernel-hardening] [PATCH 23/23] mm: Allow slab_nomerge to be set at build time

2017-06-19 Thread Eric Biggers
On Mon, Jun 19, 2017 at 04:36:37PM -0700, Kees Cook wrote: > Some hardened environments want to build kernels with slab_nomerge > already set (so that they do not depend on remembering to set the kernel > command line option). This is desired to reduce the risk of kernel heap > overflows being able

Re: [kernel-hardening] [PATCH 22/23] usercopy: split user-controlled slabs to separate caches

2017-06-19 Thread Eric Biggers
On Mon, Jun 19, 2017 at 04:36:36PM -0700, Kees Cook wrote: > From: David Windsor > > Some userspace APIs (e.g. ipc, seq_file) provide precise control over > the size of kernel kmallocs, which provides a trivial way to perform > heap overflow attacks where the attacker must control neighboring > a

Re: [patch 19/55] genirq: Provide irq_fixup_move_pending()

2017-06-19 Thread Dou Liyang
Hi Thomas, At 06/20/2017 07:37 AM, Thomas Gleixner wrote: [...] +/** + * irq_fixup_move_pending - Cleanup irq move pending from a dying CPU + * @desc: Interrupt descpriptor to clean up + * @force_clear: If set clear the move pending bit unconditionally. + *

Re: [kernel-hardening] [PATCH 23/23] mm: Allow slab_nomerge to be set at build time

2017-06-19 Thread Daniel Micay
On Mon, 2017-06-19 at 16:36 -0700, Kees Cook wrote: > Some hardened environments want to build kernels with slab_nomerge > already set (so that they do not depend on remembering to set the > kernel > command line option). This is desired to reduce the risk of kernel > heap > overflows being able to

Re: [kernel-hardening] [PATCH 17/23] dcache: define usercopy region in dentry_cache slab cache

2017-06-19 Thread Eric Biggers
On Mon, Jun 19, 2017 at 04:36:31PM -0700, Kees Cook wrote: > From: David Windsor > > When a dentry name is short enough, it can be stored directly in > the dentry itself. These dentry short names, stored in struct > dentry.d_iname and therefore contained in the dentry_cache slab cache, > need to

Re: [kernel-hardening] [PATCH 21/23] usercopy: Restrict non-usercopy caches to size 0

2017-06-19 Thread Eric Biggers
Hi David + Kees, On Mon, Jun 19, 2017 at 04:36:35PM -0700, Kees Cook wrote: > With all known usercopied cache whitelists now defined in the kernel, switch > the default usercopy region of kmem_cache_create() to size 0. Any new caches > with usercopy regions will now need to use kmem_cache_create_u

  1   2   3   4   5   6   7   8   9   10   >