[PATCH] staging: atomisp: gc2235: constify acpi_device_id.

2017-07-06 Thread Arvind Yadav
acpi_device_id are not supposed to change at runtime. All functions working with acpi_device_id provided by work with const acpi_device_id. So mark the non-const structs as const. File size before: textdata bss dec hex filename 107541360 4 121182f56

Re: [PATCH] fpga manager: add notifier for manager register and unregister events

2017-07-06 Thread Alan Tull
On Thu, Jul 6, 2017 at 11:02 AM, Anatolij Gustschin wrote: > Add API functions for registering and removing a notifier for FPGA > manager register/unregister events. Notify when a new FPGA manager > has been registered or when an existing manager is being removed. > This will help

Re: [PATCH] ARM: sunxi: h3/h5: Correct emac register size

2017-07-06 Thread Corentin Labbe
On Thu, Jul 06, 2017 at 08:52:05PM +0200, Maxime Ripard wrote: > On Thu, Jul 06, 2017 at 10:53:34AM +0200, Corentin Labbe wrote: > > The datasheet said that emac register size is 0x1000 not 0x104 > > > > Signed-off-by: Corentin Labbe > > --- > >

Re: [PATCH v4] staging: lustre: lnet: remove dead code and crc32_le() wrapper

2017-07-06 Thread Dmitriy Cherkasov
On 06/29/2017 10:50 PM, Dmitriy Cherkasov wrote: After removing code which was permanently disabled with ifdefs, the function ksocknal_csum() becomes just a wrapper for crc32_le(). Remove this useless wrapper and instead call crc32_le() directly. Any feedback on v4 please?

Re: [PATCH v3 1/2] drivers/watchdog: Add optional ASPEED device tree properties

2017-07-06 Thread Christopher Bostic
On 7/6/17 9:35 AM, Rob Herring wrote: On Thu, Jun 29, 2017 at 08:04:17AM -0700, Guenter Roeck wrote: On Thu, Jun 29, 2017 at 08:39:59AM -0500, Christopher Bostic wrote: On 6/28/17 10:33 PM, Guenter Roeck wrote: On 06/28/2017 05:28 PM, Christopher Bostic wrote: Describe device tree

Re: [PATCH][ext4-next] ext4: ensure error return ret is zero on successful return

2017-07-06 Thread Theodore Ts'o
On Fri, Jun 23, 2017 at 03:58:40PM +0100, Colin King wrote: > From: Colin Ian King > > The error return ret is not set on a successful return path and > so it returns a garbage value. Ensure it is is set to zero on > a successful return. > > Detected by CoverityScan,

Re: [PATCH v2 0/9] Remove spin_unlock_wait()

2017-07-06 Thread Alan Stern
On Thu, 6 Jul 2017, Peter Zijlstra wrote: > On Thu, Jul 06, 2017 at 12:49:12PM -0400, Alan Stern wrote: > > On Thu, 6 Jul 2017, Paul E. McKenney wrote: > > > > > On Thu, Jul 06, 2017 at 06:10:47PM +0200, Peter Zijlstra wrote: > > > > On Thu, Jul 06, 2017 at 08:21:10AM -0700, Paul E. McKenney

Re: ath10k: ret used but uninitialized (was: Re: ath10k: add initial SDIO support)

2017-07-06 Thread Erik Stromdahl
With gcc 4.1.2: drivers/net/wireless/ath/ath10k/sdio.c: In function ‘ath10k_sdio_mbox_rxmsg_pending_handler’: drivers/net/wireless/ath/ath10k/sdio.c:676: warning: ‘ret’ may be used uninitialized in this function + + *done = true; + + /* Copy the lookahead obtained from the HTC

Re: [PATCH] mm: make allocation counters per-order

2017-07-06 Thread Mel Gorman
On Thu, Jul 06, 2017 at 02:00:00PM -0400, Debabrata Banerjee wrote: > On Thu, Jul 6, 2017 at 1:16 PM, Mel Gorman > wrote: > > > > I'm still struggling to see how counters help when an agent that monitors > > for high CPU usage could be activated > > > > I suspect

Re: [PATCH v2 0/9] Remove spin_unlock_wait()

2017-07-06 Thread Peter Zijlstra
On Thu, Jul 06, 2017 at 09:20:24AM -0700, Paul E. McKenney wrote: > On Thu, Jul 06, 2017 at 06:05:55PM +0200, Peter Zijlstra wrote: > > On Thu, Jul 06, 2017 at 02:12:24PM +, David Laight wrote: > > > From: Paul E. McKenney > > [ . . . ] > > > Now on the one hand I feel like Oleg that it

[PATCH] nfc: nxp-nci: constify acpi_device_id.

2017-07-06 Thread Arvind Yadav
acpi_device_id are not supposed to change at runtime. All functions working with acpi_device_id provided by work with const acpi_device_id. So mark the non-const structs as const. File size before: textdata bss dec hex filename 2208 400 02608 a30

Re: [RFC][PATCH] exec: Use init rlimits for setuid exec

2017-07-06 Thread Linus Torvalds
On Thu, Jul 6, 2017 at 9:34 AM, Linus Torvalds wrote: > > (a) minimal: just use our existing default stack (and stack _only_) > limit value for suid binaries that actually get extra permissions: { > _STK_LIM, RLIM_INFINITY }. > > (c) perhaps encourage people to

Re: [PATCH v2] mwifiex: uninit wakeup info in the error handling

2017-07-06 Thread Brian Norris
On Thu, Jul 06, 2017 at 03:55:28PM +0800, Jeffy Chen wrote: > We inited wakeup info at the beginning of mwifiex_add_card, so we need > to uninit it in the error handling. > > It's much the same as what we did in: > 36908c4 mwifiex: uninit wakeup info when removing device > > Signed-off-by: Jeffy

Re: [PATCH] mm: make allocation counters per-order

2017-07-06 Thread Mel Gorman
On Thu, Jul 06, 2017 at 05:43:04PM +0100, Roman Gushchin wrote: > > At the time I used a page allocator microbenchmark from mmtests to call > > the allocator directly without zeroing pages. Triggering allocations from > > userspace generally mask the overhead by the zeroing costs. It's just a few

Re: [PATCH] ARM: owl: smp: Drop owl_secondary_boot()

2017-07-06 Thread Mark Rutland
On Thu, Jul 06, 2017 at 07:17:28PM +0200, Andreas Färber wrote: > Am 05.07.2017 um 04:36 schrieb Florian Fainelli: > > On July 4, 2017 4:32:18 PM PDT, "Andreas Färber" wrote: > >> Commit 18cfd9429d8a82c49add8f3ca9d366599bfcac45 ("ARM: owl: smp: Drop > >> bogus holding pen")

[PATCH] drivers: crypto: geode-aes: fixed coding style warnings and error

2017-07-06 Thread Chris Gorman
fixed WARNING: Block comments should align the * on each line fixed WARNINGs: Missing a blank line after declarations fixed ERROR: space prohibited before that ',' (ctx:WxE) Signed-off-by: Chris Gorman --- drivers/crypto/geode-aes.c | 17 ++--- 1 file

Re: [PATCH v2 2/2] memory: ti-emif-sram: introduce relocatable suspend/resume handlers

2017-07-06 Thread Dave Gerlach
On 07/03/2017 11:17 AM, Johan Hovold wrote: > On Fri, May 19, 2017 at 12:57:08PM -0500, Dave Gerlach wrote: >> Certain SoCs like Texas Instruments AM335x and AM437x require parts >> of the EMIF PM code to run late in the suspend sequence from SRAM, >> such as saving and restoring the EMIF context

Re: [PATCH 3/3] drm: Add CRTC_GET_SEQUENCE and CRTC_QUEUE_SEQUENCE ioctls

2017-07-06 Thread Ville Syrjälä
On Thu, Jul 06, 2017 at 11:22:43AM -0700, Keith Packard wrote: > Ville Syrjälä writes: > > > I was mostly thinking of the 'seq = query(); wait(seq + n);' pattern > > where we can avoid doing the full update more than once if we enable > > the interrupt already

Re: [PATCH v9 0/3] Tango PCIe controller support

2017-07-06 Thread Bjorn Helgaas
On Thu, Jul 06, 2017 at 02:26:44PM +0200, Mason wrote: > On 06/07/2017 05:39, Bjorn Helgaas wrote: > > > On Wed, Jul 05, 2017 at 11:59:33PM +0200, Mason wrote: > > > >> There were a few nits I wanted to address: > >> > >> - Since we added suppress_bind_attrs = true, probe() > >> can only be

Re: [PATCH 3/3] drm: Add CRTC_GET_SEQUENCE and CRTC_QUEUE_SEQUENCE ioctls

2017-07-06 Thread Keith Packard
Ville Syrjälä writes: > With the disable_immediate thing we only wait until the next vblank > before disabling the irq again. Ok, still sounds like we'll be doing fine if the application does a get immediately followed by a queue event. At least most of the time.

[GIT PULL] DeviceTree for 4.13

2017-07-06 Thread Rob Herring
Hi Linus, Please pull DT updates for 4.13. There's one conflict with your tree in Documentation/devicetree/bindings/net/ethernet.txt. The conflict is just context lines, and the correct resolution is in -next. Rob The following changes since commit 2ea659a9ef488125eb46da6eb571de5eae5c43f6:

[GIT PULL] Kselftest update for 4.13-rc1

2017-07-06 Thread Shuah Khan
Hi Linus, Please pull the following update for 4.13-rc1 This update consists of: -- TAP13 framework and changes to some tests to convert to TAP13. Converting kselftest output to standard format will help identify run to run differences and pin point failures easily. TAP13 format has

Re: [PATCH] audit: Reduce overhead using a coarse clock

2017-07-06 Thread Paul Moore
On Tue, Jul 4, 2017 at 3:41 PM, Deepa Dinamani wrote: > On Tue, Jul 4, 2017 at 12:20 PM, Arnd Bergmann wrote: >> On Tue, Jul 4, 2017 at 2:11 PM, Mel Gorman >> wrote: >>> >>> Signed-off-by: Mel Gorman

Re: [PATCH v2 0/9] Remove spin_unlock_wait()

2017-07-06 Thread Peter Zijlstra
On Thu, Jul 06, 2017 at 09:24:12AM -0700, Paul E. McKenney wrote: > On Thu, Jul 06, 2017 at 06:10:47PM +0200, Peter Zijlstra wrote: > > On Thu, Jul 06, 2017 at 08:21:10AM -0700, Paul E. McKenney wrote: > > > And yes, there are architecture-specific optimizations for an > > > empty

Re: [git pull] vfs.git part 3

2017-07-06 Thread Christoph Hellwig
On Thu, Jul 06, 2017 at 04:51:13PM +0100, Al Viro wrote: > On Thu, Jul 06, 2017 at 04:46:02PM +0100, Al Viro wrote: > > > That - on #work.read_write, as in vfs.git at the moment... > > ... and for COMPAT_SYSCALL you need > #define __SC_DELOUSE(t,v) ((__force t)(unsigned long)(v)) > in

Re: [PATCH 1/5] pwm: rockchip: Add APB and function both clocks support

2017-07-06 Thread Rob Herring
On Thu, Jun 29, 2017 at 08:27:47PM +0800, David Wu wrote: > New PWM module provides two individual clocks of APB clock > and function clock. > > Signed-off-by: David Wu > --- > .../devicetree/bindings/pwm/pwm-rockchip.txt | 8 +++- Acked-by: Rob Herring

Re: [RFC][PATCH] exec: Use init rlimits for setuid exec

2017-07-06 Thread Linus Torvalds
On Thu, Jul 6, 2017 at 10:29 AM, Kees Cook wrote: >> >> (a) minimal: just use our existing default stack (and stack _only_) >> limit value for suid binaries that actually get extra permissions: { >> _STK_LIM, RLIM_INFINITY }. > > This would look a lot like the existing

[PATCH] tpm: tpm_tis: constify acpi_device_id.

2017-07-06 Thread Arvind Yadav
acpi_device_id are not supposed to change at runtime. All functions working with acpi_device_id provided by work with const acpi_device_id. So mark the non-const structs as const. File size before: textdata bss dec hex filename 27581089 103857 f11

Re: [Drbd-dev] [PATCH] drbd: rename "usermode_helper" to "drbd_usermode_helper"

2017-07-06 Thread Greg KH
On Thu, Jul 06, 2017 at 07:56:07PM +0200, Roland Kammerer wrote: > On Mon, Jun 05, 2017 at 11:26:23AM +0200, Greg KH wrote: > > From: Greg Kroah-Hartman > > > > Nothing like having a very generic global variable in a tiny driver > > subsystem to make a mess of the

Re: v4.13-rc0 on nokia n900: spinlock bad magic

2017-07-06 Thread Pali Rohár
On Thursday 06 July 2017 20:03:37 Pavel Machek wrote: > Hi! > > I don't think this is new in v4.13, but perhaps someone knows how to > debug it? > > [ 5611.801147] g_ether gadget: packet filter 0e > [ 5611.801177] g_ether gadget: ecm req21.43 v000e i l0 > [ 5668.771453] BUG: spinlock bad

[PATCH v3 16/16] fpga: region: move device tree support to of-fpga-region.c

2017-07-06 Thread Alan Tull
Create of-fpga-region.c and ove the following functions without modification from fpga-region.c. * of_fpga_region_find * of_fpga_region_get_mgr * of_fpga_region_get_bridges * child_regions_with_firmware * of_fpga_region_parse_ov * of_fpga_region_notify_pre_apply *

[PATCH v3 08/16] fpga: region: check for child regions before allocing image info

2017-07-06 Thread Alan Tull
During a device tree overlay pre-apply notification, the check for child FPGA regions can happen slightly earlier. This saves us from allocating the FPGA image info that just gets thrown away. This is a baby step in refactoring the FPGA region code to separate out common FPGA region code from

[PATCH v3 14/16] fpga: region: add register/unregister functions

2017-07-06 Thread Alan Tull
Another step in separating common code from device tree specific code for FPGA regions. * add FPGA region register/unregister functions. * add the register/unregister functions to the header * use devm_kzalloc to alloc the region. * add a method for getting bridges to the region struct * add priv

[PATCH v3 12/16] fpga: region: add fpga-region.h header

2017-07-06 Thread Alan Tull
* Create fpga-region.h. * Export fpga_region_program_fpga. * Move struct fpga_region and other things to the header. This is a step in separating FPGA region common code from Device Tree support. Signed-off-by: Alan Tull --- drivers/fpga/fpga-region.c | 24

[PATCH v3 13/16] fpga: region: rename some functions prior to moving

2017-07-06 Thread Alan Tull
Rename some functions that will be moved to of-fpga-region.c. Also change some parameters and export a function to help with refactoring. This is a step towards the larger goal of separating device tree support from FPGA region common code. * fpga_region_get_manager -> of_fpga_region_get_mgr *

[PATCH v3 09/16] fpga: region: fix slow warning with more than one overlay

2017-07-06 Thread Alan Tull
When DT overlays are applied, each FPGA region keeps track of the fpga image info as region->info. This pointer is assigned only if an overlay causes the FPGA to be programmed. As it stands, this pointer can be overwritten, causing a slow warning later when overlays are removed. This patch

[PATCH v3 15/16] fpga: region: add fpga_region_class_find

2017-07-06 Thread Alan Tull
Add a function for searching the fpga-region class. This will be useful when device tree code is no longer in the same file that declares the fpga-region class. Another step in separating common FPGA region code from device tree support. Signed-off-by: Alan Tull Acked-by:

Re: [PATCH] staging: rts5208: Replace embedded function names with "%s: ", __func__

2017-07-06 Thread kbuild test robot
Hi Gaurav, [auto build test ERROR on staging/staging-testing] [also build test ERROR on v4.12 next-20170706] [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/Gaurav-Pathak/staging-rts5208-Replace

Re: [PATCH v2 5/5] ARM: OMAP2+: Create dummy platform_device for pm33xx

2017-07-06 Thread Dave Gerlach
On 07/03/2017 11:58 AM, Johan Hovold wrote: > On Fri, May 19, 2017 at 03:04:38PM -0500, Dave Gerlach wrote: >> Add amx3_common_pm_init to create a dummy platform_device for >> pm33xx so that our pm33xx module can probe and am335x and am437x >> platforms to enable basic suspend to mem and standby

Re: [PATCH v2 1/9] net/netfilter/nf_conntrack_core: Fix net_conntrack_lock()

2017-07-06 Thread Paul E. McKenney
On Thu, Jul 06, 2017 at 08:45:59PM +0200, Manfred Spraul wrote: > Hi Paul, > > On 07/06/2017 01:31 AM, Paul E. McKenney wrote: > >From: Manfred Spraul > > > >As we want to remove spin_unlock_wait() and replace it with explicit > >spin_lock()/spin_unlock() calls, we can

[PATCH] extcon: int3496: constify acpi_device_id.

2017-07-06 Thread Arvind Yadav
acpi_device_id are not supposed to change at runtime. All functions working with acpi_device_id provided by work with const acpi_device_id. So mark the non-const structs as const. File size before: textdata bss dec hex filename 1733 352 02085 825

Re: [PATCH v3] drivers/misc: (aspeed-lpc-snoop): Add ast2400 to compat

2017-07-06 Thread Patrick Venture
On Thu, Jul 6, 2017 at 10:00 AM, Patrick Venture wrote: > On Wed, Jul 5, 2017 at 2:51 PM, Patrick Venture wrote: >> This driver can be used on the aspeed ast2400 with minor >> modifications. >> >> Tested: ast2400 on quanta-q71l >> >> Signed-off-by: Patrick

Re: [PATCH v2 0/9] Remove spin_unlock_wait()

2017-07-06 Thread Paul E. McKenney
On Thu, Jul 06, 2017 at 06:41:34PM +0200, Peter Zijlstra wrote: > On Thu, Jul 06, 2017 at 09:24:12AM -0700, Paul E. McKenney wrote: > > On Thu, Jul 06, 2017 at 06:10:47PM +0200, Peter Zijlstra wrote: > > > On Thu, Jul 06, 2017 at 08:21:10AM -0700, Paul E. McKenney wrote: > > > > And yes, there are

Re: [RFC][PATCH] exec: Use init rlimits for setuid exec

2017-07-06 Thread Kees Cook
On Thu, Jul 6, 2017 at 9:34 AM, Linus Torvalds wrote: > On Wed, Jul 5, 2017 at 9:32 PM, Kees Cook wrote: >> In an attempt to provide sensible rlimit defaults for setuid execs, this >> inherits the namespace's init rlimits: > > Yeah, so I have

Re: [PATCH v2 0/9] Remove spin_unlock_wait()

2017-07-06 Thread Paul E. McKenney
On Thu, Jul 06, 2017 at 06:08:50PM +0100, Will Deacon wrote: > On Thu, Jul 06, 2017 at 06:50:36PM +0200, Peter Zijlstra wrote: > > On Thu, Jul 06, 2017 at 09:20:24AM -0700, Paul E. McKenney wrote: > > > On Thu, Jul 06, 2017 at 06:05:55PM +0200, Peter Zijlstra wrote: > > > > On Thu, Jul 06, 2017 at

Re: [PATCH] ARM: owl: smp: Drop owl_secondary_boot()

2017-07-06 Thread Alexandre Belloni
On 06/07/2017 at 19:17:28 +0200, Andreas Färber wrote: > Am 05.07.2017 um 04:36 schrieb Florian Fainelli: > > On July 4, 2017 4:32:18 PM PDT, "Andreas Färber" wrote: > >> Commit 18cfd9429d8a82c49add8f3ca9d366599bfcac45 ("ARM: owl: smp: Drop > >> bogus holding pen") simplified

Re: [PATCH 12/18] drivers: s390: Move static and inline before return type

2017-07-06 Thread Julian Wiedmann
On 07/06/2017 02:25 PM, Heiko Carstens wrote: > On Thu, Jul 06, 2017 at 03:57:19AM -0700, Joe Perches wrote: >> On Thu, 2017-07-06 at 12:29 +0200, Heiko Carstens wrote: >>> On Wed, Jul 05, 2017 at 01:02:21PM -0700, Joe Perches wrote: Make the code like the rest of the kernel. >> [] diff

v4.13-rc0 on nokia n900: spinlock bad magic

2017-07-06 Thread Pavel Machek
Hi! I don't think this is new in v4.13, but perhaps someone knows how to debug it? [ 5611.801147] g_ether gadget: packet filter 0e [ 5611.801177] g_ether gadget: ecm req21.43 v000e i l0 [ 5668.771453] BUG: spinlock bad magic on CPU#0, kworker/u2:3/9745 [ 5668.771850] lock: 0xce63ef20,

Re: [PATCH v2 1/4] dt-bindings: pwm-backlight: add pwm-delay-us property

2017-07-06 Thread Enric Balletbo Serra
Hi Rob, 2017-07-06 19:07 GMT+02:00 Rob Herring : > On Fri, Jun 30, 2017 at 6:21 AM, Enric Balletbo i Serra > wrote: >> From: huang lin >> >> Add a pwm-delay-us property to specify the delay between setting an >> initial

Re: [PATCH 3/3] drm: Add CRTC_GET_SEQUENCE and CRTC_QUEUE_SEQUENCE ioctls

2017-07-06 Thread Keith Packard
Ville Syrjälä writes: > I was mostly thinking of the 'seq = query(); wait(seq + n);' pattern > where we can avoid doing the full update more than once if we enable > the interrupt already during the query. Don't we still wait 5 seconds before disabling vblank? In

Re: [PATCH v2 2/6] Documentation: devicetree: add bindings to support ARM MHU doorbells

2017-07-06 Thread Jassi Brar
On Thu, Jul 6, 2017 at 10:14 PM, Sudeep Holla wrote: > > On 06/07/17 15:37, Jassi Brar wrote: >> On Thu, Jul 6, 2017 at 3:03 PM, Sudeep Holla wrote: > >> I see no reason why you must have SCPI and SCMI both running. >> > > We can still have 2

[PATCH v3 10/16] fpga: region: use image info as parameter for programming region

2017-07-06 Thread Alan Tull
Use FPGA image info (region->info) when region code is programming the FPGA to pass in multiple paramaters. This is a baby step in refactoring the FPGA region code to separate out common FPGA region code from FPGA region Device Tree overlay support. Signed-off-by: Alan Tull

[PATCH v3 03/16] fpga: mgr: API change to replace fpga load functions with single function

2017-07-06 Thread Alan Tull
fpga-mgr has three methods for programming FPGAs, depending on whether the image is in a scatter gather list, a contiguous buffer, or a firmware file. This makes it difficult to write upper layers as the caller has to assume whether the FPGA image is in a sg table, as a single buffer, or a

Re: [PATCH v2 1/9] net/netfilter/nf_conntrack_core: Fix net_conntrack_lock()

2017-07-06 Thread Manfred Spraul
Hi Paul, On 07/06/2017 01:31 AM, Paul E. McKenney wrote: From: Manfred Spraul As we want to remove spin_unlock_wait() and replace it with explicit spin_lock()/spin_unlock() calls, we can use this to simplify the locking. In addition: - Reading nf_conntrack_locks_all

Re: [PATCH] integrity: get rid of unneeded initializations in integrity_iint_cache entries

2017-07-06 Thread Mimi Zohar
On Thu, 2017-07-06 at 10:04 -0500, Serge E. Hallyn wrote: > Quoting Jeff Layton (jlay...@kernel.org): > > From: Jeff Layton > > > > The init_once routine memsets the whole object to 0, and then > > explicitly sets some of the fields to 0 again. Just remove the explicit > >

[PATCH] stm32-dcmi: constify vb2_ops structure

2017-07-06 Thread Gustavo A. R. Silva
Check for vb2_ops structures that are only stored in the ops field of a vb2_queue structure. That field is declared const, so vb2_ops structures that have this property can be declared as const also. This issue was detected using Coccinelle and the following semantic patch: @r disable

Re: [PATCH] staging: rts5208: Replace embedded function names with "%s: ", __func__

2017-07-06 Thread kbuild test robot
Hi Gaurav, [auto build test ERROR on staging/staging-testing] [also build test ERROR on v4.12 next-20170706] [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/Gaurav-Pathak/staging-rts5208-Replace

Re: [PATCH v2 0/9] Remove spin_unlock_wait()

2017-07-06 Thread Alan Stern
On Thu, 6 Jul 2017, Paul E. McKenney wrote: > On Thu, Jul 06, 2017 at 06:10:47PM +0200, Peter Zijlstra wrote: > > On Thu, Jul 06, 2017 at 08:21:10AM -0700, Paul E. McKenney wrote: > > > And yes, there are architecture-specific optimizations for an > > > empty spin_lock()/spin_unlock() critical

UBSAN: Undefined behaviour in fs/fs-writeback.c:1586:18

2017-07-06 Thread Toralf Förster
Got that at a hardened Gentoo Linux server with 4.12.0 (for the first time) at a BTRFS logical volume occuping about 4/9 of a 5 TB volume group after an uptime of about 2 days : Had issues with processes accessing files at that volume now too. Jul 6 15:33:53 mr-fox kernel: [158695.417132]

Re: [PATCH 4/5] pwm: rockchip: Add atomic updated feature for rk3328

2017-07-06 Thread Rob Herring
On Thu, Jun 29, 2017 at 08:27:50PM +0800, David Wu wrote: > The rk3328 soc supports atomic update, we could lock the configuration > of period and duty at first, after unlock is configured, the period and > duty are effective at the same time. > > If the polarity, period and duty need to be

Re: [PATCH] ARM: owl: smp: Drop owl_secondary_boot()

2017-07-06 Thread Andreas Färber
Am 05.07.2017 um 04:36 schrieb Florian Fainelli: > On July 4, 2017 4:32:18 PM PDT, "Andreas Färber" wrote: >> Commit 18cfd9429d8a82c49add8f3ca9d366599bfcac45 ("ARM: owl: smp: Drop >> bogus holding pen") simplified the S500 SMP code by removing a loop for >> pen_release in

Re: [PATCH v2 0/9] Remove spin_unlock_wait()

2017-07-06 Thread Paul E. McKenney
On Thu, Jul 06, 2017 at 06:50:36PM +0200, Peter Zijlstra wrote: > On Thu, Jul 06, 2017 at 09:20:24AM -0700, Paul E. McKenney wrote: > > On Thu, Jul 06, 2017 at 06:05:55PM +0200, Peter Zijlstra wrote: > > > On Thu, Jul 06, 2017 at 02:12:24PM +, David Laight wrote: > > > > From: Paul E. McKenney

Re: [PATCH v6 0/3] Add new PCI_DEV_FLAGS_NO_RELAXED_ORDERING flag

2017-07-06 Thread Bjorn Helgaas
On Thu, Jul 06, 2017 at 08:58:51PM +0800, Ding Tianhong wrote: > Hi Bjorn: > > Could you please give some feedback about this patchset, it looks like no > more comments for more than a week, > thanks. :) I was on vacation when you posted it, but don't worry, it's still in the queue:

[PATCH 2/2] kokr/memory-barriers.txt: Fix obsolete link to atomic_ops.txt

2017-07-06 Thread SeongJae Park
Obsolete links to atomic_ops.txt exist in ko_KR/memory-barriers.txt though the file has moved to core-api/atomic_ops.rst. This commit fixes the obsolete links. Signed-off-by: SeongJae Park --- Documentation/translations/ko_KR/memory-barriers.txt | 14 +++--- 1 file

[PATCH v3 01/16] doc: fpga: update documents for the FPGA API

2017-07-06 Thread Alan Tull
The FPGA manager has been simplified to have a single fpga_mgr_load function which replaces the three fpga_mgr_*load* functions. The parameters presenting the FPGA image have been added to struct fpga_image_info. Additional functions have been added to alloc/free fpga_image_info. Getting a FPGA

[PATCH v3 00/16] Enable upper layers using FPGA region w/o device tree

2017-07-06 Thread Alan Tull
* Change the fpga-mgr API to have one fpga_mgr_load function instead of three. * Expose API functions for FPGA region * Separate common FPGA region code from Device Tree support * Add API functions for bridges where DT is not used. This is needed because the current FPGA layer has a couple

Re: [PATCH v3] mm: Add SLUB free list pointer obfuscation

2017-07-06 Thread Kees Cook
On Thu, Jul 6, 2017 at 10:53 AM, Rik van Riel wrote: > On Thu, 2017-07-06 at 10:55 -0500, Christoph Lameter wrote: >> On Thu, 6 Jul 2017, Kees Cook wrote: >> > That requires a series of arbitrary reads. This is protecting >> > against >> > attacks that use an adjacent slab object

[PATCH v3 04/16] fpga: mgr: separate getting/locking FPGA manager

2017-07-06 Thread Alan Tull
This commit makes it straightforward to save a reference to an FPGA manager and only lock it when programming the FPGA. Add functions that get an FPGA manager's mutex for exclusive use: * fpga_mgr_lock * fpga_mgr_unlock The following functions no longer lock an FPGA manager's mutex: *

[PATCH v3 02/16] fpga: bridge: support getting bridge from device

2017-07-06 Thread Alan Tull
Add two functions for getting the FPGA bridge from the device rather than device tree node. This is to enable writing code that will support using FPGA bridges without device tree. Rename one old function to make it clear that it is device tree-ish. This leaves us with 3 functions for getting a

Re: [PATCH v2 3/5] ARM: OMAP2+: pm33xx-core: Add platform code needed for PM

2017-07-06 Thread Dave Gerlach
On 07/04/2017 08:14 AM, Johan Hovold wrote: > On Fri, May 19, 2017 at 03:04:36PM -0500, Dave Gerlach wrote: >> Most of the PM code needed for am335x and am437x can be moved into a >> module under drivers but some core code must remain in mach-omap2 at the >> moment. This includes some internal

Re: [RFC][PATCH] exec: Use init rlimits for setuid exec

2017-07-06 Thread Kees Cook
On Thu, Jul 6, 2017 at 10:52 AM, Linus Torvalds wrote: > On Thu, Jul 6, 2017 at 10:29 AM, Kees Cook wrote: >>> >>> (a) minimal: just use our existing default stack (and stack _only_) >>> limit value for suid binaries that actually get extra

Re: [PATCH v2 tip/perf/core 1/6] perf symbols: find symbols in different mount namespace

2017-07-06 Thread Arnaldo Carvalho de Melo
Em Wed, Jul 05, 2017 at 06:48:08PM -0700, Krister Johansen escreveu: > Teach perf how to resolve symbols from binaries that are in a different > mount namespace from the tool. This allows perf to generate meaningful > stack traces even if the binary resides in a different mount namespace > from

Re: [PATCH] ext4: fix spelling mistake: "prellocated" -> "preallocated"

2017-07-06 Thread Theodore Ts'o
On Tue, Jun 27, 2017 at 02:33:22PM +0100, Colin King wrote: > From: Colin Ian King > > Trivial fix to spelling mistake in mb_debug debug message > > Signed-off-by: Colin Ian King Thanks, applied. -

Re: [git pull] vfs.git pile 11

2017-07-06 Thread Al Viro
On Thu, Jul 06, 2017 at 12:45:36PM -0700, Kees Cook wrote: > > + if (unlikely(!check_copy_size(addr, bytes, false))) > + return false; > + else > + return _copy_from_iter_full(addr, bytes, i); > > Can these be rewritten to avoid the double-negative? Matter of taste - I've no

Re: [PATCH] mm: make allocation counters per-order

2017-07-06 Thread Mel Gorman
On Thu, Jul 06, 2017 at 12:12:47PM -0400, Debabrata Banerjee wrote: > On Thu, Jul 6, 2017 at 11:51 AM, Mel Gorman > wrote: > > > > These counters do not actually help you solve that particular problem. > > Knowing how many allocations happened since the system booted

Re: [PATCH v2 2/6] Documentation: devicetree: add bindings to support ARM MHU doorbells

2017-07-06 Thread Sudeep Holla
On 06/07/17 15:37, Jassi Brar wrote: > On Thu, Jul 6, 2017 at 3:03 PM, Sudeep Holla wrote: [...] >> >> I said it *may not be used*, currently it is used. >> > SCPI provides more than what SCMI currently does - dvfs, clock, sensor. Not sure what you mean by that, but

Re: [PATCH] mm: make allocation counters per-order

2017-07-06 Thread Roman Gushchin
On Thu, Jul 06, 2017 at 04:47:05PM +0100, Mel Gorman wrote: > On Thu, Jul 06, 2017 at 03:46:34PM +0100, Roman Gushchin wrote: > > > The alloc counter updates are themselves a surprisingly heavy cost to > > > the allocation path and this makes it worse for a debugging case that is > > > relatively

[PATCH v4] drivers/misc: (aspeed-lpc-snoop): Add ast2400 to compat

2017-07-06 Thread Patrick Venture
This driver can be used on the aspeed ast2400 with minor modifications. Tested: ast2400 on quanta-q71l Signed-off-by: Patrick Venture --- v4: fix the 2400/2500 data as they were backwards. v3: added .data object to determine behavior difference between ast2400 and

[PATCH] tpm: tpm_crb: constify acpi_device_id.

2017-07-06 Thread Arvind Yadav
acpi_device_id are not supposed to change at runtime. All functions working with acpi_device_id provided by work with const acpi_device_id. So mark the non-const structs as const. File size before: textdata bss dec hex filename 4198 608 0480612c6

Re: [Drbd-dev] [PATCH] drbd: rename "usermode_helper" to "drbd_usermode_helper"

2017-07-06 Thread Roland Kammerer
On Mon, Jun 05, 2017 at 11:26:23AM +0200, Greg KH wrote: > From: Greg Kroah-Hartman > > Nothing like having a very generic global variable in a tiny driver > subsystem to make a mess of the global namespace... Thanks for the patch. As this did not happen magically in

[PATCH] mbcache: initialize entry->e_referenced in mb_cache_entry_create()

2017-07-06 Thread Alexander Potapenko
KMSAN reported use of uninitialized |entry->e_referenced| in a condition in mb_cache_shrink(): == BUG: KMSAN: use of uninitialized memory in mb_cache_shrink+0x3b4/0xc50 fs/mbcache.c:287 CPU: 2 PID: 816 Comm: kswapd1 Not tainted

Re: [PATCH v3 net-next 00/12] bpf: rewrite value tracking in verifier

2017-07-06 Thread Edward Cree
On 04/07/17 23:28, Daniel Borkmann wrote: > Have you tried with cilium's BPF code? The kernel selftests are quite small, > so not really pushing processed insns too far. I can send you a BPF obj file > if that's easier for testing. Results from the next (in-progress) version of the patch series,

Re: [PATCH 2/2] afs: Add metadata xattrs

2017-07-06 Thread Andreas Dilger
On Jul 6, 2017, at 10:14 AM, David Howells wrote: > > Christoph Hellwig wrote: > >> NAK. Don't overload xattrs with magic behavior just to avoid the need >> to do proper syscalls or ioctls. > > How? This has to work on non-files, files you can't open

Re: [PATCH v2] [media] uvcvideo: Prevent heap overflow in uvc driver

2017-07-06 Thread Guenter Roeck
On Fri, Jun 30, 2017 at 09:21:56AM -0700, Guenter Roeck wrote: > The size of uvc_control_mapping is user controlled leading to a > potential heap overflow in the uvc driver. This adds a check to verify > the user provided size fits within the bounds of the defined buffer > size. > >

Re: [PATCH RFC 01/26] netfilter: Replace spin_unlock_wait() with lock/unlock pair

2017-07-06 Thread Manfred Spraul
Hi Alan, On 07/03/2017 09:57 PM, Alan Stern wrote: (Alternatively, you could make nf_conntrack_all_unlock() do a lock+unlock on all the locks in the array, just like nf_conntrack_all_lock(). But of course, that would be a lot less efficient.) H. Someone with a weakly ordered system who

Re: [PATCH] ARM: sunxi: h3/h5: Correct emac register size

2017-07-06 Thread Maxime Ripard
On Thu, Jul 06, 2017 at 10:53:34AM +0200, Corentin Labbe wrote: > The datasheet said that emac register size is 0x1000 not 0x104 > > Signed-off-by: Corentin Labbe > --- > arch/arm/boot/dts/sunxi-h3-h5.dtsi | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >

Re: [git pull] vfs.git part 3

2017-07-06 Thread Al Viro
On Thu, Jul 06, 2017 at 06:58:37PM +0200, Christoph Hellwig wrote: > On Thu, Jul 06, 2017 at 04:51:13PM +0100, Al Viro wrote: > > On Thu, Jul 06, 2017 at 04:46:02PM +0100, Al Viro wrote: > > > > > That - on #work.read_write, as in vfs.git at the moment... > > > > ... and for COMPAT_SYSCALL you

Re: [Drbd-dev] [PATCH] drbd: rename "usermode_helper" to "drbd_usermode_helper"

2017-07-06 Thread Roland Kammerer
On Thu, Jul 06, 2017 at 08:02:41PM +0200, Greg KH wrote: > On Thu, Jul 06, 2017 at 07:56:07PM +0200, Roland Kammerer wrote: > > On Mon, Jun 05, 2017 at 11:26:23AM +0200, Greg KH wrote: > > > From: Greg Kroah-Hartman > > > > > > Nothing like having a very generic

Re: v4.13-rc0 on nokia n900: spinlock bad magic

2017-07-06 Thread Pavel Machek
Hi! > On Thursday 06 July 2017 20:03:37 Pavel Machek wrote: > > Hi! > > > > I don't think this is new in v4.13, but perhaps someone knows how to > > debug it? > > > > [ 5611.801147] g_ether gadget: packet filter 0e > > [ 5611.801177] g_ether gadget: ecm req21.43 v000e i l0 > > [

Re: [git pull] vfs.git pile 11

2017-07-06 Thread Kees Cook
On Thu, Jul 6, 2017 at 2:12 AM, Al Viro wrote: > iov_iter/uaccess/hardening pile. For one thing, it trims the > inline part of copy_to_user/copy_from_user to the minimum that *does* > need to be inlined - object size checks, basically. For another, > it

[PATCH] pxa_camera: constify vb2_ops structure

2017-07-06 Thread Gustavo A. R. Silva
Check for vb2_ops structures that are only stored in the ops field of a vb2_queue structure. That field is declared const, so vb2_ops structures that have this property can be declared as const also. This issue was detected using Coccinelle and the following semantic patch: @r disable

Re: [git pull] vfs.git pile 11

2017-07-06 Thread Al Viro
On Thu, Jul 06, 2017 at 09:18:26PM +0100, Al Viro wrote: > On Thu, Jul 06, 2017 at 12:45:36PM -0700, Kees Cook wrote: > > > > + if (unlikely(!check_copy_size(addr, bytes, false))) > > + return false; > > + else > > + return _copy_from_iter_full(addr, bytes, i); > > > > Can these

Re: [PATCH v6 4/4] dt-bindings: media: Document Synopsys Designware HDMI RX

2017-07-06 Thread Sylwester Nawrocki
On 07/06/2017 12:24 PM, Jose Abreu wrote: >>> +- edid-phandle: phandle to the EDID handler block. >> >> Could you make this property optional and when it is missing assume that >> device >> corresponding to the parent node of this node handles EDID? This way we could >> avoid having property

[PATCH] mediatek: constify vb2_ops structure

2017-07-06 Thread Gustavo A. R. Silva
Check for vb2_ops structures that are only stored in the ops field of a vb2_queue structure. That field is declared const, so vb2_ops structures that have this property can be declared as const also. This issue was detected using Coccinelle and the following semantic patch: @r disable

[PATCH] atmel-isc: constify vb2_ops structure

2017-07-06 Thread Gustavo A. R. Silva
Check for vb2_ops structures that are only stored in the ops field of a vb2_queue structure. That field is declared const, so vb2_ops structures that have this property can be declared as const also. This issue was detected using Coccinelle and the following semantic patch: @r disable

Re: [PATCH 1/2] amd: uncore: Rename cpufeatures macro for cache counters

2017-07-06 Thread Natarajan, Janakarajan
On 6/6/2017 11:31 AM, Borislav Petkov wrote: On Mon, Jun 05, 2017 at 11:13:18AM -0500, Janakarajan Natarajan wrote: In Family 17h, L3 is the last level cache as opposed to L2 in previous families. Avoid this name confusion and rename X86_FEATURE_PERFCT_L2 to X86_FEATURE_PERFCTR_LLC to indicate

Re: [PATCH] integrity: track ctime in addition to i_version for assessment

2017-07-06 Thread Mimi Zohar
Hi Jeff, On Thu, 2017-07-06 at 12:23 -0400, Jeff Layton wrote: > From: Jeff Layton > > The IMA assessment code tries to use the i_version counter to detect > when changes to a file have occurred. Many filesystems don't increment > it properly (or at all) so detecting changes

[PATCH V4] PCI: handle CRS returned by device after FLR

2017-07-06 Thread Sinan Kaya
An endpoint is allowed to issue Configuration Request Retry Status (CRS) following a Function Level Reset (FLR) request to indicate that it is not ready to accept new requests. Seen a timeout message with Intel 750 NVMe drive and FLR reset. Kernel enables CRS visibility in pci_enable_crs()

Re: [PATCH 09/21] x86/intel_rdt: Simplify info and base file lists

2017-07-06 Thread Shivappa Vikas
On Sun, 2 Jul 2017, Thomas Gleixner wrote: On Mon, 26 Jun 2017, Vikas Shivappa wrote: @@ -82,6 +82,7 @@ struct rdt_resource rdt_resources_all[] = { }, .parse_ctrlval = parse_cbm, .format_str = "%d=%0*x", +

Re: [PATCH 12/21] x86/intel_rdt/cqm: Add tasks file support

2017-07-06 Thread Shivappa Vikas
On Sun, 2 Jul 2017, Thomas Gleixner wrote: On Mon, 26 Jun 2017, Vikas Shivappa wrote: @@ -866,6 +866,7 @@ struct task_struct { #endif #ifdef CONFIG_INTEL_RDT int closid; + u32 rmid; Can you please make a preparatory

  1   2   3   4   5   6   7   8   9   10   >