Re: [PATCH 4.4 26/28] x86, pmem: fix broken __copy_user_nocache cache-bypass assumptions

2017-05-09 Thread Dan Williams
On Tue, May 9, 2017 at 10:00 AM, Ben Hutchings wrote: > On Tue, 2017-04-25 at 16:08 +0100, Greg Kroah-Hartman wrote: >> 4.4-stable review patch. If anyone has any objections, please let me know. >> >> -- >> >> From: Dan Williams >> >> commit 11e63f6d920d6f2dfd3cd421e939a4aec9a58d

Re: [PATCH v1 2/3] platform/x86: thinkpad_acpi: Join string literals back

2017-05-09 Thread Henrique de Moraes Holschuh
On Tue, 09 May 2017, Andy Shevchenko wrote: > There is no point to keep string literal split. It even makes slightly > harder to maintain and debug. Ooold code, from a time when random people would annoy others over 80-column instead of doing useful reviews... > Join string literals back to be on

Re: [PATCH] irq_bcm2836: Send event when onlining sleeping cores

2017-05-09 Thread Marc Zyngier
On 09/05/17 17:59, Eric Anholt wrote: > Phil Elwell writes: > >> In order to reduce power consumption and bus traffic, it is sensible >> for secondary cores to enter a low-power idle state when waiting to >> be started. The wfe instruction causes a core to wait until an event >> or interrupt arri

Re: [PATCH v3 2/2] x86/refcount: Implement fast refcount overflow protection

2017-05-09 Thread Josh Poimboeuf
On Mon, May 08, 2017 at 08:58:29PM -0500, Josh Poimboeuf wrote: > On Mon, May 08, 2017 at 04:31:11PM -0700, Kees Cook wrote: > > On Mon, May 8, 2017 at 3:53 PM, Josh Poimboeuf wrote: > > > On Mon, May 08, 2017 at 12:32:52PM -0700, Kees Cook wrote: > > >> +#define REFCOUNT_EXCEPTION

[PATCH v1] tty/vt/keyboard: Remove AVR32 bits from the driver

2017-05-09 Thread Andy Shevchenko
AVR32 is gone. Now it's time to clean up the driver by removing leftovers that was used by AVR32 related code. Signed-off-by: Andy Shevchenko --- drivers/tty/vt/keyboard.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/tty/vt/keyboard.c b/drivers/tty/vt/keyboard.c

Re: [PATCH] perf, tools, script: Allow adding and removing fields

2017-05-09 Thread Jiri Olsa
On Tue, May 09, 2017 at 07:36:37AM -0700, Andi Kleen wrote: SNIP > + } else { > + if (change == REMOVE) > + output[j].fields &= > ~all_output_options[i].field; > +

[PATCH v2 2/8] drm: Add drm_crtc_mode_valid()

2017-05-09 Thread Jose Abreu
Add a new helper to call crtc->mode_valid callback. Suggested-by: Ville Syrjälä Signed-off-by: Jose Abreu Cc: Carlos Palminha Cc: Alexey Brodkin Cc: Ville Syrjälä Cc: Daniel Vetter Cc: Dave Airlie Cc: Andrzej Hajda Cc: Archit Taneja --- drivers/gpu/drm/drm_crtc.c | 22 ++

Re: [PATCH v1 3/3] platform/x86: thinkpad_acpi: Add a comment about 0 in module_param_call()

2017-05-09 Thread Henrique de Moraes Holschuh
On Tue, 09 May 2017, Andy Shevchenko wrote: > As per discussion [1] there are only few users of module_param_call() in > kernel which prevent to read module parameters back. > > It thinkpad_acpi driver there is even no method do so. Thus, for now, > add just a comment to explain why 0 is used as p

[PATCH v2 5/8] drm: Use new mode_valid() helpers in connector probe helper

2017-05-09 Thread Jose Abreu
This changes the connector probe helper function to use the new encoder->mode_valid() and crtc->mode_valid() helper callbacks to validate the modes. The new callbacks are optional so the behaviour remains the same if they are not implemented. If they are, then the code loops through all the connec

Re: [PATCH v1 1/3] platform/x86: thinkpad_acpi: Make logic straight in hotkey_exit()

2017-05-09 Thread Henrique de Moraes Holschuh
On Tue, 09 May 2017, Andy Shevchenko wrote: > The commit 4be73005e4dc > > ("thinkpad-acpi: remove uneeded tp_features.hotkey tests in > hotkey_exit") > > adds a complex logic behind hotkey status check in a way > it started mixing logical operations with bitwise ones. > > Refactor the cod

[PATCH v2 8/8] drm: arc: Use crtc->mode_valid() callback

2017-05-09 Thread Jose Abreu
Now that we have a callback to check if crtc supports a given mode we can use it in arcpgu so that we restrict the number of probbed modes to the ones we can actually display. This is specially useful because arcpgu crtc is responsible to set a clock value in the commit() stage but unfortunatelly

Re: [PATCH v4] Introduce v3 namespaced file capabilities

2017-05-09 Thread Eric W. Biederman
"Serge E. Hallyn" writes: > Changelog: [snip] >May 8, 2017: > . fix leaking dentry refcount in cap_inode_getsecurity > [snip] > +/* > + * getsecurity: We are called for security.* before any attempt to read the > + * xattr from the inode itself. > + * > + * This gives us a chance to read

Re: [PATCH 4.4 26/28] x86, pmem: fix broken __copy_user_nocache cache-bypass assumptions

2017-05-09 Thread Ben Hutchings
On Tue, 2017-04-25 at 16:08 +0100, Greg Kroah-Hartman wrote: > 4.4-stable review patch. If anyone has any objections, please let me know. > > -- > > From: Dan Williams > > commit 11e63f6d920d6f2dfd3cd421e939a4aec9a58dcd upstream. [...] > + if (iter_is_iovec(i)) { > +

[PATCH v2 3/8] drm: Add drm_encoder_mode_valid()

2017-05-09 Thread Jose Abreu
Add a new helper to call encoder->mode_valid callback. Suggested-by: Ville Syrjälä Signed-off-by: Jose Abreu Cc: Carlos Palminha Cc: Alexey Brodkin Cc: Ville Syrjälä Cc: Daniel Vetter Cc: Dave Airlie Cc: Andrzej Hajda Cc: Archit Taneja --- drivers/gpu/drm/drm_crtc_internal.h | 2 ++ dri

[PATCH v2 4/8] drm: Add drm_connector_mode_valid()

2017-05-09 Thread Jose Abreu
Add a new helper to call connector->mode_valid callback. Suggested-by: Ville Syrjälä Signed-off-by: Jose Abreu Cc: Carlos Palminha Cc: Alexey Brodkin Cc: Ville Syrjälä Cc: Daniel Vetter Cc: Dave Airlie Cc: Andrzej Hajda Cc: Archit Taneja --- TODO: function prototype should receive a cons

[PATCH v2 0/8] Introduce new mode validation callbacks

2017-05-09 Thread Jose Abreu
This series is a follow up from the discussion at [1]. We start by introducing crtc->mode_valid(), encoder->mode_valid() and bridge->mode_valid() callbacks which will be used in followup patches. We proceed by introducing new helpers to call this new callbacks at 2/8, 3/8 and 4/8. Next, at 5/8 we

[PATCH v2 6/8] drm: Introduce drm_bridge_mode_valid()

2017-05-09 Thread Jose Abreu
Introduce a new helper function which calls mode_valid() callback for all bridges in an encoder chain. Signed-off-by: Jose Abreu Cc: Carlos Palminha Cc: Alexey Brodkin Cc: Ville Syrjälä Cc: Daniel Vetter Cc: Dave Airlie Cc: Andrzej Hajda Cc: Archit Taneja --- drivers/gpu/drm/drm_bridge.c

[PATCH v2 7/8] drm: Use mode_valid() in atomic modeset

2017-05-09 Thread Jose Abreu
This patches makes use of the new mode_valid() callbacks introduced previously to validate the full video pipeline when modesetting. This calls the connector->mode_valid(), encoder->mode_valid(), bridge->mode_valid() and crtc->mode_valid() so that we can make sure that the mode will be accepted in

[PATCH v2 1/8] drm: Add crtc/encoder/bridge->mode_valid() callbacks

2017-05-09 Thread Jose Abreu
This adds a new callback to crtc, encoder and bridge helper functions called mode_valid(). This callback shall be implemented if the corresponding component has some sort of restriction in the modes that can be displayed. A NULL callback implicates that the component can display all the modes. We

Re: [PATCH] irq_bcm2836: Send event when onlining sleeping cores

2017-05-09 Thread Eric Anholt
Phil Elwell writes: > In order to reduce power consumption and bus traffic, it is sensible > for secondary cores to enter a low-power idle state when waiting to > be started. The wfe instruction causes a core to wait until an event > or interrupt arrives before continuing to the next instruction.

[PATCH net-next] net: stmmac: use correct pointer when printing normal descriptor ring

2017-05-09 Thread Niklas Cassel
From: Niklas Cassel Signed-off-by: Niklas Cassel --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index cd8c60132390..a

[PATCH] staging: ccree: ssi_aead.c: Fix blank lines coding style issue

2017-05-09 Thread Alex
Checkpatch emits CHECK: Please don't use multiple blank lines. Remove multiple blank lines. Signed-off-by: Alexander Mazyrin --- drivers/staging/ccree/ssi_aead.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/ccree/ssi_aead.c b/drivers/staging/ccree/ssi_aead.c index 03829

Re: [PATCH V2] ARM: dts: bcm283x: Reserve first page for firmware

2017-05-09 Thread Florian Fainelli
On 05/09/2017 09:48 AM, Eric Anholt wrote: > Phil Elwell writes: > >> The Raspberry Pi startup stub files for multi-core BCM27XX processors >> make the secondary CPUs spin until the corresponding mailbox is >> written. These stubs are loaded at physical address 0x0xxx (as seen >> by the ARMs)

Re: get/put_cpu() usage in block/blk-mq.c

2017-05-09 Thread Mike Galbraith
On Tue, 2017-05-09 at 10:32 -0600, Jens Axboe wrote: > > Sure, but s/get_cpu_var/get_cpu_ptr first. > > Doh. Ditto, box OTOH spotted the booboo instantly :) -Mike

Re: [kernel-hardening] Re: [PATCH v9 1/4] syscalls: Verify address limit before returning to user-mode

2017-05-09 Thread Kees Cook
On Tue, May 9, 2017 at 9:03 AM, Christoph Hellwig wrote: > On Tue, May 09, 2017 at 06:02:50AM -0700, Christoph Hellwig wrote: >> On Tue, May 09, 2017 at 06:00:01AM -0700, Andy Lutomirski wrote: >> > fs/splice.c has some, ahem, interesting uses that have been the source >> > of nasty exploits in th

Re: [PATCH V2] ARM: dts: bcm283x: Reserve first page for firmware

2017-05-09 Thread Eric Anholt
Phil Elwell writes: > The Raspberry Pi startup stub files for multi-core BCM27XX processors > make the secondary CPUs spin until the corresponding mailbox is > written. These stubs are loaded at physical address 0x0xxx (as seen > by the ARMs), but this page will be reused by the kernel unless

sparse on scripts/kconfig/*.c

2017-05-09 Thread Randy Dunlap
Hi, I've been attempting to run sparse on the kconfig/ C files -- without success. The kbuild files don't try to support CHECK in scripts/kconfig/ AFAICT, and just running sparse on the C files has issues with not being able to find header files. Has anyone done this? Any clues about how to do

Re: [PATCH 00/10] fujitsu-laptop: use device-specific data instead of module-wide globals

2017-05-09 Thread Darren Hart
On Tue, May 09, 2017 at 11:35:24AM +0200, Michał Kępień wrote: > > On Sat, May 06, 2017 at 02:45:16PM +0200, Michał Kępień wrote: > > > > Just to make sure we are all on the same page here, choosing the "two > > > > separate modules, each with one driver for one ACPI device" approach > > > > would

fs/fs-writeback.c:1433:20: sparse: context imbalance in 'writeback_single_inode' - different lock contexts for basic block

2017-05-09 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 2868b2513aa732a99ea4a0a6bf10dc93c1f3dac2 commit: d7b627277b57370223d682cede979a279284b12a radix-tree: Fix __rcu annotations date: 3 months ago reproduce: # apt-get install sparse git checko

Re: [PATCH 7/7] DWARF: add the config option

2017-05-09 Thread H.J. Lu
On Tue, May 9, 2017 at 7:58 AM, Josh Poimboeuf wrote: > On Tue, May 09, 2017 at 03:00:45AM -0700, h...@zytor.com wrote: >> I'm, ahem, highly skeptical to creating our own unwinding data format >> unless there is *documented, supported, and tested* way to force the >> compiler to *automatically* fa

Re: [PATCH v4 3/5] soc: qcom: Introduce APCS IPC driver

2017-05-09 Thread Jassi Brar
On Tue, May 9, 2017 at 12:41 AM, Bjorn Andersson wrote: > On Sun 07 May 23:47 PDT 2017, Jassi Brar wrote: > >> On Mon, May 8, 2017 at 11:24 AM, Bjorn Andersson >> wrote: >> > On Fri 05 May 21:48 PDT 2017, Jassi Brar wrote: >> > >> > The APCS IPC register serves the basis for all inter-processor >

Re: [PATCH 2/3] livepatch/rcu: Warn when system consistency is broken in RCU code

2017-05-09 Thread Paul E. McKenney
On Tue, May 09, 2017 at 11:18:35AM -0500, Josh Poimboeuf wrote: > On Mon, May 08, 2017 at 03:36:00PM -0700, Paul E. McKenney wrote: > > On Mon, May 08, 2017 at 05:16:09PM -0500, Josh Poimboeuf wrote: > > > On Mon, May 08, 2017 at 02:07:54PM -0700, Paul E. McKenney wrote: > > > > This would be a pro

Re: [PATCH] mfd: cros-ec: Add cros_ec_readmem() helpers for I2C/SPI based ECs

2017-05-09 Thread Moritz Fischer
om/0day-ci/linux/commits/Moritz-Fischer/mfd-cros-ec-Add-cros_ec_readmem-helpers-for-I2C-SPI-based-ECs/20170509-040606 > base: https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git > for-mfd-next > config: tile-allmodconfig > compiler: tilegx-linux-gcc (GCC) 4.6.2

Re: get/put_cpu() usage in block/blk-mq.c

2017-05-09 Thread Jens Axboe
On 05/09/2017 10:26 AM, Mike Galbraith wrote: > On Tue, 2017-05-09 at 09:45 -0600, Jens Axboe wrote: > >>> Is it from this_cpu_ptr() in blk_stat_add()? >> >> Yeah. > > So why is this complaining, doesn't rcu_read_lock() disable > preemption? Ah, I guess it doesn't

Re: [kernel-hardening] Re: [PATCH v9 1/4] syscalls: Verify address limit before returning to user-mode

2017-05-09 Thread Kees Cook
On Mon, May 8, 2017 at 11:56 PM, Ingo Molnar wrote: > > * Kees Cook wrote: > >> > There's the option of using GCC plugins now that the infrastructure was >> > upstreamed from grsecurity. It can be used as part of the regular build >> > process and as long as the analysis is pretty simple it shoul

Re: Updating kernel.org cross compilers?

2017-05-09 Thread Guenter Roeck
On Tue, May 09, 2017 at 03:59:27PM +0100, Andre Przywara wrote: > On 30/04/17 06:29, Segher Boessenkool wrote: > > Hi, > > > On Wed, Apr 26, 2017 at 03:14:16PM +0100, Andre Przywara wrote: > >> It seems that many people (even outside the Linux kernel community) use > >> the cross compilers provid

Re: get/put_cpu() usage in block/blk-mq.c

2017-05-09 Thread Mike Galbraith
On Tue, 2017-05-09 at 09:45 -0600, Jens Axboe wrote: > > > > > > Is it from this_cpu_ptr() in blk_stat_add()? > > > > > > > > > > Yeah. > > > > > > > > So why is this complaining, doesn't rcu_read_lock() disable > > > > preemption? > > > > > > Ah, I guess it doesn't if PREEMPT_RCU is set. How a

Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures

2017-05-09 Thread Lorenzo Pieralisi
On Mon, May 08, 2017 at 10:33:25PM +0200, Peter Senna Tschudin wrote: > On Mon, May 08, 2017 at 06:55:36PM +0100, Lorenzo Pieralisi wrote: > > On Mon, May 08, 2017 at 06:34:08PM +0200, Lucas Stach wrote: > > > Am Montag, den 08.05.2017, 17:02 +0200 schrieb Peter Senna Tschudin: > > > > Hello Kishon

Re: [PATCH V2] ARM: dts: bcm283x: Reserve first page for firmware

2017-05-09 Thread Florian Fainelli
On 05/09/2017 02:04 AM, Phil Elwell wrote: > The Raspberry Pi startup stub files for multi-core BCM27XX processors > make the secondary CPUs spin until the corresponding mailbox is > written. These stubs are loaded at physical address 0x0xxx (as seen > by the ARMs), but this page will be reused

Re: [PATCH v4 25/27] Documentation: flesh out the section in vfs.txt on storing and reporting writeback errors

2017-05-09 Thread Jeff Layton
On Tue, 2017-05-09 at 11:49 -0400, Jeff Layton wrote: > I waxed a little loquacious here, but I figured that more detail was > better, and writeback error handling is so hard to get right. > > Cc: Jan Kara > Signed-off-by: Jeff Layton > --- > Documentation/filesystems/vfs.txt | 54 > ++

[PATCH v2 2/2] dmaengine: dw: Remove AVR32 bits from the driver

2017-05-09 Thread Andy Shevchenko
AVR32 is gone. Now it's time to clean up the driver by removing leftovers that was used by AVR32 related code. Signed-off-by: Andy Shevchenko --- drivers/dma/dw/Kconfig | 7 +- drivers/dma/dw/core.c | 332 + drivers/dma/dw/regs.h | 50 ++--

[PATCH] netxen_nic: set rcode to the return status from the call to netxen_issue_cmd

2017-05-09 Thread Colin King
From: Colin Ian King Currently rcode is being initialized to NX_RCODE_SUCCESS and later it is checked to see if it is not NX_RCODE_SUCCESS which is never true. It appears that there is an unintentional missing assignment of rcode from the return of the call to netxen_issue_cmd() that was dropped

[PATCH v2 0/2] ALSA, dmaengine: dw: Remove AVR32 bits in drivers

2017-05-09 Thread Andy Shevchenko
AVR32 is gone. Remove bits in sound/atmel and drivers/dma/dw folders related to it. Sound part hasn't been tested anyhow. Changes since v1: - fix kbuild bot complainings - append Nicolas' Ack - don't forget to send to all TWIMC Andy Shevchenko (2): ALSA: atmel: Remove AVR32 bits from the dr

[PATCH v2 1/2] ALSA: atmel: Remove AVR32 bits from the driver

2017-05-09 Thread Andy Shevchenko
AVR32 is gone. Now it's time to clean up the driver by removing leftovers that was used by AVR32 related code. Acked-by: Nicolas Ferre Signed-off-by: Andy Shevchenko --- sound/atmel/Kconfig | 13 +- sound/atmel/Makefile | 2 - sound/atmel/abdac.c | 610 -

Re: [PATCH 2/3] livepatch/rcu: Warn when system consistency is broken in RCU code

2017-05-09 Thread Josh Poimboeuf
On Mon, May 08, 2017 at 03:36:00PM -0700, Paul E. McKenney wrote: > On Mon, May 08, 2017 at 05:16:09PM -0500, Josh Poimboeuf wrote: > > On Mon, May 08, 2017 at 02:07:54PM -0700, Paul E. McKenney wrote: > > > This would be a problem if step 2's NMI hit rcu_irq_enter(), > > > rcu_irq_exit(), and frie

[PATCH v2 for-4.12-fixes 2/2] sched/fair: Fix O(# total cgroups) in load balance path

2017-05-09 Thread Tejun Heo
Currently, rq->leaf_cfs_rq_list is a traversal ordered list of all live cfs_rqs which have ever been active on the CPU; unfortunately, this makes update_blocked_averages() O(# total cgroups) which isn't scalable at all. This shows up as a small CPU consumption and scheduling latency increase in th

[PATCH v2 for-4.12-fixes 1/2] sched/fair: Use task_groups instead of leaf_cfs_rq_list to walk all cfs_rqs

2017-05-09 Thread Tejun Heo
Currently, rq->leaf_cfs_rq_list is a traversal ordered list of all live cfs_rqs which have ever been active on the CPU; unfortunately, this makes update_blocked_averages() O(total number of CPU cgroups) which isn't scalable at all. The next patch will make rq->leaf_cfs_rq_list only contain the cfs

[xfstests PATCH v2 1/3] generic: add a writeback error handling test

2017-05-09 Thread Jeff Layton
I'm working on a set of kernel patches to change how writeback errors are handled and reported in the kernel. Instead of reporting a writeback error to only the first fsync caller on the file, I aim to make the kernel report them once on every file description. This patch adds a test for the new b

[xfstests PATCH v2 2/3] ext4: allow ext4 to use $SCRATCH_LOGDEV

2017-05-09 Thread Jeff Layton
The writeback error handling test requires that you put the journal on a separate device. This allows us to use dmerror to simulate data writeback failure, without affecting the journal. xfs already has infrastructure for this (a'la $SCRATCH_LOGDEV), so wire up the ext4 code so that it can do the

[PATCH v3] dt-bindings: add vendor prefix for bananapi

2017-05-09 Thread sean.wang
From: Sean Wang Add BIPAI KEJI LIMITED which is a company dedicating to design and manufacture bananapi open hardware. Website: http://www.banana-pi.org/ Signed-off-by: Sean Wang --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Docu

[xfstests PATCH v2 3/3] btrfs: allow it to use $SCRATCH_LOGDEV

2017-05-09 Thread Jeff Layton
With btrfs, we can't really put the log on a separate device. What we can do however is mirror the metadata across two devices and put the data on a single device. When we turn on dmerror then the metadata can fall back to using the other mirror while the data errors out. Signed-off-by: Jeff Layto

Re: [PATCH] key: Convert big_key payload.data to struct

2017-05-09 Thread Kees Cook
On Tue, May 9, 2017 at 1:11 AM, David Howells wrote: > Kees Cook wrote: > >> This doesn't protect you against changes in struct path size, >> though... the existing code (and this proposal) will break if that >> ever happens... > > True - in which case you should kmalloc() it as Eric suggests. >

[xfstests PATCH v2 0/3] xfstest for updated writeback error handling

2017-05-09 Thread Jeff Layton
I've numbered the new test as 999 for the moment so as not to collide with tests being added while I've been working on this. I can change that and resend if this should go in. I'm working on a set of kernel patches to change how writeback errors are handled and reported in the kernel. Instead of

Re: [PATCH v3 0/7] Cavium ThunderX2 SMMUv3 errata workarounds

2017-05-09 Thread Robert Richter
On 08.05.17 20:45:36, Linu Cherian wrote: > On Sat May 06, 2017 at 12:22:50AM +0200, Robert Richter wrote: > > On 05.05.17 17:38:04, Geetha sowjanya wrote: > > > From: Linu Cherian > > > > > > Cavium ThunderX2 SMMUv3 implementation has two Silicon Erratas. > > > 1. Errata ID #74 > > >SMMU reg

[PATCH 2/7] staging: typec: fusb302: Fix module autoload

2017-05-09 Thread Guenter Roeck
From: Javier Martinez Canillas If the driver is built as a module, autoload won't work because the module alias information is not filled. So user-space can't match the registered device with the corresponding module. Export the OF and I2C device ID table entries as module aliases, using the MOD

[PATCH 1/7] staging: typec: tcpci: declare private structure as static

2017-05-09 Thread Guenter Roeck
From: Olivier Leveque This fixes a sparse warning regarding an undeclared symbol. Since the structure tcpci_tcpc_config is private to tcpci.c, it should be declared as static. Signed-off-by: Olivier Leveque Signed-off-by: Guenter Roeck --- drivers/staging/typec/tcpci.c | 2 +- 1 file changed,

[PATCH 6/7] staging: typec: tcpm: Respond to Discover Identity commands

2017-05-09 Thread Guenter Roeck
If the lower level driver provided a list of VDOs in its configuration data, send it to the partner as response to a Discover Identity command if in device mode (UFP). Cc: Yueyao Zhu Originally-from: Puma Hsu Signed-off-by: Guenter Roeck --- drivers/staging/typec/pd_vdo.h | 4 +++- drivers/st

arch/x86/include/asm/qspinlock.h:17:9: sparse: context imbalance in 'wake_futex_pi' - unexpected unlock

2017-05-09 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 2868b2513aa732a99ea4a0a6bf10dc93c1f3dac2 commit: bebe5b514345f09be2c15e414d076b02ecb9cce8 futex: Futex_unlock_pi() determinism date: 7 weeks ago reproduce: # apt-get install sparse git chec

[PATCH 4/7] staging: typec: tcpm: Drop duplicate PD messages

2017-05-09 Thread Guenter Roeck
Per USB PD standard, we have to drop duplicate PD messages. We can not expect lower protocol layers to drop such messages, since lower layers don't know if a message was dropped somewhere else in the stack. Originally-from: Puma Hsu Cc: Yueyao Zhu Signed-off-by: Guenter Roeck --- drivers/stagi

[PATCH 5/7] staging: typec: tcpm: Set correct flags in PD request messages

2017-05-09 Thread Guenter Roeck
We do support USB PD communication, and devices supported by this driver typically use USB power for purposes other than USB communication. Originally-from: Puma Hsu Cc: Yueyao Zhu Signed-off-by: Guenter Roeck --- drivers/staging/typec/tcpm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletion

Re: [kernel-hardening] Re: [PATCH v9 1/4] syscalls: Verify address limit before returning to user-mode

2017-05-09 Thread Brian Gerst
On Tue, May 9, 2017 at 9:00 AM, Andy Lutomirski wrote: > On Tue, May 9, 2017 at 1:56 AM, Christoph Hellwig wrote: >> On Tue, May 09, 2017 at 08:45:22AM +0200, Ingo Molnar wrote: >>> We only have ~115 code blocks in the kernel that set/restore KERNEL_DS, it >>> would >>> be a pity to add a runtim

[PATCH 7/7] staging: typec: tcpm: Fix Port Power Role field in PS_RDY messages

2017-05-09 Thread Guenter Roeck
PS_RDY messages sent during power swap sequences are expected to reflect the new power role. Signed-off-by: Guenter Roeck --- drivers/staging/typec/tcpm.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/drivers/staging/typec/tcpm.c b/drivers/staging/typec/

[PATCH 3/7] staging: typec: fusb302: Fix chip->vbus_present init value

2017-05-09 Thread Guenter Roeck
From: Yueyao Zhu FUSB_REG_STATUS0 & FUSB_REG_STATUS0_VBUSOK = 0x40 & 0x80 is always zero. Fix the code to what it is intended to be: check the VBUSOK bit of the value read from address FUSB_REG_STATUS0. Reported-by: Dan Carpenter Cc: Guenter Roeck Signed-off-by: Yueyao Zhu Signed-off-by: Guen

Re: [kernel-hardening] Re: [PATCH v9 1/4] syscalls: Verify address limit before returning to user-mode

2017-05-09 Thread Christoph Hellwig
On Tue, May 09, 2017 at 06:02:50AM -0700, Christoph Hellwig wrote: > On Tue, May 09, 2017 at 06:00:01AM -0700, Andy Lutomirski wrote: > > fs/splice.c has some, ahem, interesting uses that have been the source > > of nasty exploits in the past. Converting them to use iov_iter > > properly would be

Re: [PATCH] staging: typec: Make undeclared symbol static

2017-05-09 Thread Guenter Roeck
On Tue, May 09, 2017 at 01:48:53AM -0700, Guru Das Srinagesh wrote: > Fix sparse warning: > drivers/staging/typec/tcpci.c:428:26: warning: symbol 'tcpci_tcpc_config' > was not declared. Should it be static? > > Signed-off-by: Guru Das Srinagesh Olivier Leveque already sent a similar patch la

Re: [PATCH v2 0/3] nVMX: Emulated Page Modification Logging for Nested Virtualization

2017-05-09 Thread Bandan Das
Paolo Bonzini writes: > On 05/05/2017 21:25, Bandan Das wrote: >> v2: >> 2/3: Clear out all bits except bit 12 >> 3/3: Slightly modify an existing comment, honor L0's >> PML setting when clearing it for L1 >> >> v1: >> http://www.spinics.net/lists/kvm/msg149247.html >> >> These patches implemen

[GIT PULL] dmaengine updates

2017-05-09 Thread Vinod Koul
Hey Linus, Here is the dmaengine update for 4.12. The following changes since commit c1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201: Linux 4.11-rc1 (2017-03-05 12:59:56 -0800) are available in the git repository at: git://git.infradead.org/users/vkoul/slave-dma.git tags/dmaengine-4.12-rc1 for y

[PATCH v4 02/27] mm: drop "wait" parameter from write_one_page

2017-05-09 Thread Jeff Layton
The callers all set it to 1. Also, make it clear that this function will not set any sort of AS_* error, and that the caller must do so if necessary. No existing caller uses this on normal files, so none of them need it. Also, add __must_check here since, in general, the callers need to handle an

Re: [PATCH] mm, vmalloc: fix vmalloc users tracking properly

2017-05-09 Thread kbuild test robot
Hi Michal, [auto build test ERROR on mmotm/master] [also build test ERROR on next-20170509] [cannot apply to v4.11] [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/Michal-Hocko/mm-vmalloc-fix

Re: [PATCH v2] platform/x86: peaq-wmi: Add new peaq-wmi driver

2017-05-09 Thread Darren Hart
On Tue, May 09, 2017 at 09:54:31AM +0200, Hans de Goede wrote: > PEAQ is a new European OEM, I've bought one of their 2-in-1 x86 > devices, which is actually quite a nice device. Under Windows it has > Dolby software for "better" sound and you can select different equalizer > presets using a specia

Re: [PATCH v10 1/3] DT add arctic to vendor prefix for ArcticSand

2017-05-09 Thread Jingoo Han
On Tuesday, May 9, 2017 8:50 AM, Olimpiu Dejeu wrote: > > dt-bindings: vendor-prefixes: add arctic to vendor prefix > > Acked-by: Rob Herring > Signed-off-by: Olimpiu Dejeu I cannot find any reason to reject this patch. Reviewed-by: Jingoo Han Best regards, Jingoo Han > --- > v9 => v10: >

[PATCH v4 00/27] fs: introduce new writeback error reporting and convert existing API as a wrapper around it

2017-05-09 Thread Jeff Layton
v4: several more cleanup patches documentation and kerneldoc comment updates fix bugs in gfs2 patches make sync_file_range use same error reporting semantics bugfixes in buffer.c convert nfs to new scheme (maybe bogus, can be dropped) v3: wb_err_t -> errseq_t conversion cle

[PATCH v4 03/27] mm: fix mapping_set_error call in me_pagecache_dirty

2017-05-09 Thread Jeff Layton
The error code should be negative. Since this ends up in the default case anyway, this is harmless, but it's less confusing to negate it. Also, later patches will require a negative error code here. Signed-off-by: Jeff Layton Reviewed-by: Ross Zwisler Reviewed-by: Jan Kara Reviewed-by: Matthew

[GIT PULL] pwm: Changes for v4.12-rc1

2017-05-09 Thread Thierry Reding
Hi Linus, The following changes since commit c1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201: Linux 4.11-rc1 (2017-03-05 12:59:56 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm.git tags/pwm/for-4.12-rc1 for you to fetch chang

[PATCH v4 07/27] orangefs: don't call filemap_write_and_wait from fsync

2017-05-09 Thread Jeff Layton
Orangefs doesn't do buffered writes yet, so there's no point in initiating and waiting for writeback. Signed-off-by: Jeff Layton Reviewed-by: Christoph Hellwig Acked-by: Mike Marshall --- fs/orangefs/file.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/fs/orangefs/fil

[PATCH v4 09/27] nilfs2: set the mapping error when calling SetPageError on writeback

2017-05-09 Thread Jeff Layton
In a later patch, we're going to want to make the fsync codepath not do a TestClearPageError call as that can override the error set in the address space. To do that though, we need to ensure that filesystems that are relying on the PG_error bit for reporting writeback errors also set an error in t

[PATCH v4 06/27] fs: check for writeback errors after syncing out buffers in generic_file_fsync

2017-05-09 Thread Jeff Layton
ext2 currently does a test+clear of the AS_EIO flag, which is is problematic for some coming changes. What we really need to do instead is call filemap_check_errors in __generic_file_fsync after syncing out the buffers. That will be sufficient for this case, and help other callers detect these err

[PATCH v4 05/27] btrfs: btrfs_wait_tree_block_writeback can be void return

2017-05-09 Thread Jeff Layton
Nothing checks its return value. Signed-off-by: Jeff Layton --- fs/btrfs/disk-io.c | 6 +++--- fs/btrfs/disk-io.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index eb1ee7b6f532..8c479bd5534a 100644 --- a/fs/btrfs/disk-io.c +++ b/

[PATCH v4 12/27] cifs: set mapping error when page writeback fails in writepage or launder_pages

2017-05-09 Thread Jeff Layton
Signed-off-by: Jeff Layton Reviewed-by: Christoph Hellwig --- fs/cifs/file.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/fs/cifs/file.c b/fs/cifs/file.c index 21d404535739..0bee7f8d91ad 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c @@ -2234,14 +2234,16 @@

[PATCH v4 10/27] 9p: set mapping error when writeback fails in launder_page

2017-05-09 Thread Jeff Layton
launder_page is just writeback under the page lock. We still need to mark the mapping for errors there when they occur. Signed-off-by: Jeff Layton Reviewed-by: Jan Kara Reviewed-by: Christoph Hellwig --- fs/9p/vfs_addr.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/f

[PATCH v4 14/27] fs: new infrastructure for writeback error handling and reporting

2017-05-09 Thread Jeff Layton
Most filesystems currently use mapping_set_error and filemap_check_errors for setting and reporting/clearing writeback errors at the mapping level. filemap_check_errors is indirectly called from most of the filemap_fdatawait_* functions and from filemap_write_and_wait*. These functions are called f

[PATCH v4 13/27] lib: add errseq_t type and infrastructure for handling it

2017-05-09 Thread Jeff Layton
An errseq_t is a way of recording errors in one place, and allowing any number of "subscribers" to tell whether an error has been set again since a previous time. It's implemented as an unsigned 32-bit value that is managed with atomic operations. The low order bits are designated to hold an error

[PATCH v4 21/27] mm: clean up error handling in write_one_page

2017-05-09 Thread Jeff Layton
Don't try to check PageError since that's potentially racy and not necessarily going to be set after writepage errors out. Instead, sample the mapping error early on, and use that value to tell us whether we got a writeback error since then. Signed-off-by: Jeff Layton --- mm/page-writeback.c |

[PATCH v4 17/27] mm: remove AS_EIO and AS_ENOSPC flags

2017-05-09 Thread Jeff Layton
They're no longer used. Signed-off-by: Jeff Layton --- include/linux/pagemap.h | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index 32512ffc15fa..9593eac41499 100644 --- a/include/linux/pagemap.h +++ b/include/linu

[PATCH v4 19/27] buffer: set errors in mapping at the time that the error occurs

2017-05-09 Thread Jeff Layton
I noticed on xfs that I could still sometimes get back an error on fsync on a fd that was opened after the error condition had been cleared. The problem is that the buffer code sets the write_io_error flag and then later checks that flag to set the error in the mapping. That flag perisists for qui

[PATCH v4 18/27] mm: don't TestClearPageError in __filemap_fdatawait_range

2017-05-09 Thread Jeff Layton
The -EIO returned here can end up overriding whatever error is marked in the address space, and be returned at fsync time, even when there is a more appropriate error stored in the mapping. Read errors are also sometimes tracked on a per-page level using PG_error. Suppose we have a read error on a

[PATCH v4 20/27] cifs: cleanup writeback handling errors and comments

2017-05-09 Thread Jeff Layton
Now that writeback errors are handled on a per-file basis using the new sequence counter method at the vfs layer, we no longer need to re-set errors in the mapping after doing writeback in non-fsync codepaths. Also, fix up some bogus comments. Signed-off-by: Jeff Layton --- fs/cifs/cifsfs.c |

[PATCH v4 22/27] jbd2: don't reset error in journal_finish_inode_data_buffers

2017-05-09 Thread Jeff Layton
Now that we don't clear writeback errors after fetching them, there is no need to reset them. This is also potentially racy. Signed-off-by: Jeff Layton --- fs/jbd2/commit.c | 13 ++--- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/fs/jbd2/commit.c b/fs/jbd2/commit.c inde

[PATCH v4 25/27] Documentation: flesh out the section in vfs.txt on storing and reporting writeback errors

2017-05-09 Thread Jeff Layton
I waxed a little loquacious here, but I figured that more detail was better, and writeback error handling is so hard to get right. Cc: Jan Kara Signed-off-by: Jeff Layton --- Documentation/filesystems/vfs.txt | 54 --- 1 file changed, 45 insertions(+), 9 dele

[PATCH v4 24/27][RFC] nfs: convert to new errseq_t based error tracking for writeback errors

2017-05-09 Thread Jeff Layton
Drop the ERROR_WRITE flag and convert the error field in the context to a errseq_t. Add a new wb_err_cursor to track the reporting of the errseq_t. In principle, we could use the f_wb_err field in struct file for that, but that's problematic with the stock reporting in call_fsync. Signed-off-by: J

[PATCH v4 27/27] mm: clean up comments in me_pagecache_dirty

2017-05-09 Thread Jeff Layton
This no longer applies with the new writeback error tracking and reporting infrastructure. Signed-off-by: Jeff Layton --- mm/memory-failure.c | 35 +-- 1 file changed, 5 insertions(+), 30 deletions(-) diff --git a/mm/memory-failure.c b/mm/memory-failure.c index 4

[PATCH v4 26/27] mm: flesh out comments over mapping_set_error

2017-05-09 Thread Jeff Layton
Signed-off-by: Jeff Layton --- include/linux/pagemap.h | 14 ++ 1 file changed, 14 insertions(+) diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index 9593eac41499..9b453eae0aa1 100644 --- a/include/linux/pagemap.h +++ b/include/linux/pagemap.h @@ -27,6 +27,20 @@ enum

[PATCH v4 23/27] gfs2: clean up some filemap_* calls

2017-05-09 Thread Jeff Layton
In some places, it's trying to reset the mapping error after calling filemap_fdatawait. That's no longer required. Also, turn several filemap_fdatawrite+filemap_fdatawait calls into filemap_write_and_wait. That will at least return writeback errors that occur during the write phase. Signed-off-by:

[PATCH v4 15/27] fs: retrofit old error reporting API onto new infrastructure

2017-05-09 Thread Jeff Layton
Now that we have a better way to store and report errors that occur during writeback, we need to convert the existing codebase to use it. We could just adapt all of the filesystem code and related infrastructure to the new API, but that's a lot of churn. When it comes to setting errors in the mapp

[PATCH v4 16/27] fs: adapt sync_file_range to new reporting infrastructure

2017-05-09 Thread Jeff Layton
Since it returns errors in a way similar to fsync, have it use the same method for returning previously-reported writeback errors. Signed-off-by: Jeff Layton --- fs/sync.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/fs/sync.c b/fs/sync.c index 11ba023434b1..

[PATCH v4 11/27] fuse: set mapping error in writepage_locked when it fails

2017-05-09 Thread Jeff Layton
This ensures that we see errors on fsync when writeback fails. Signed-off-by: Jeff Layton Reviewed-by: Christoph Hellwig --- fs/fuse/file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/fuse/file.c b/fs/fuse/file.c index ec238fb5a584..07d0efcb050c 100644 --- a/fs/fuse/file.c +++ b/fs/f

[PATCH v4 04/27] buffer: use mapping_set_error instead of setting the flag

2017-05-09 Thread Jeff Layton
Signed-off-by: Jeff Layton Reviewed-by: Jan Kara Reviewed-by: Matthew Wilcox Reviewed-by: Christoph Hellwig --- fs/buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/buffer.c b/fs/buffer.c index 9196f2a270da..70638941066d 100644 --- a/fs/buffer.c +++ b/fs/buffer.c

[PATCH v4 08/27] dax: set errors in mapping when writeback fails

2017-05-09 Thread Jeff Layton
Jan's description for this patch is much better than mine, so I'm quoting it verbatim here: DAX currently doesn't set errors in the mapping when cache flushing fails in dax_writeback_mapping_range(). Since this function can get called only from fsync(2) or sync(2), this is actually as good as it c

[PATCH v4 01/27] fs: remove unneeded forward definition of mm_struct from fs.h

2017-05-09 Thread Jeff Layton
Signed-off-by: Jeff Layton --- include/linux/fs.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/fs.h b/include/linux/fs.h index 7251f7bb45e8..38adefd8e2a0 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1252,8 +1252,6 @@ extern void f_delown(struct file *filp);

Re: [PATCH 0/2] net: Set maximum receive packet size on veth interfaces

2017-05-09 Thread Stephen Hemminger
On Tue, 9 May 2017 14:44:36 +0200 Fredrik Markstrom wrote: > Currently veth drops all packets larger then the mtu set on the receiving > end of the pair. This is inconsistent with most hardware ethernet drivers. There is no guarantee that packets larger than MTU + VLAN tag will be received by h

<    1   2   3   4   5   6   7   8   >