[PATCH] watchdog: constify watchdog_ops structures

2017-01-27 Thread Bhumika Goyal
Declare watchdog_ops structures as const as they are only stored in the ops field of a watchdog_device structure. This field is of type const, so watchdog_ops structures having this property can be made const too. Done using Coccinelle: @r disable optional_qualifier@ identifier x; position p; @@ s

WARNING: CPU: 1 PID: 15 at kernel/sched/sched.h:804 assert_clock_updated.isra.62.part.63+0x25/0x27

2017-01-27 Thread Mike Galbraith
Running Steven's hotplug stress script in tip.today. Config is NOPREEMPT, tune for maximum build time (enterprise default-ish). [ 75.268049] x86: Booting SMP configuration: [ 75.268052] smpboot: Booting Node 0 Processor 1 APIC 0x2 [ 75.279994] smpboot: Booting Node 0 Processor 2 APIC 0x4 [

Re: [PATCH] IB/cma: Fix reversed test

2017-01-27 Thread Dan Carpenter
On Fri, Jan 27, 2017 at 07:05:52PM -0500, Doug Ledford wrote: > > Do you think this patch needs "Fixes:" and "Cc: stable" tags? > > It does not. We always should have fixes tags. When I'm reviewing, I try to look up the patch which introduced the bug so I can figure out what the intent was. Hav

[PATCH v2] Staging: speakup - syle fix permissions to octal

2017-01-27 Thread Derek Robson
A style fix across whole driver. changed permissions to octal style, found using checkpatch Signed-off-by: Derek Robson --- First version had spaces before praenthesis, now fixed in this version. drivers/staging/speakup/main.c | 4 ++-- drivers/staging/speakup/speakup.h| 4

Re: [PATCH] prctl.2: Document new PR_SET_CHILD_SUBREAPER semantics

2017-01-27 Thread Pavel Tikhomirov
On 01/28/2017 01:47 AM, Michael Kerrisk (man-pages) wrote: Hello Pavel, On 27 January 2017 at 23:11, Pavel Tikhomirov wrote: old semantics was non deterministic and worked differently depending on the external factors, but nothing changes if process first sets itself subreaper and only after f

Re: [PATCH] Staging: speakup - syle fix permissions to octal

2017-01-27 Thread Joe Perches
On Sat, 2017-01-28 at 19:05 +1300, Derek Robson wrote: > A style fix across whole driver. > changed permissions to octal style, found using checkpatch [] > diff --git a/drivers/staging/speakup/main.c b/drivers/staging/speakup/main.c [] > @@ -58,8 +58,8 @@ MODULE_LICENSE("GPL"); > MODULE_VERSION(SP

[PATCH] Staging: speakup - syle fix permissions to octal

2017-01-27 Thread Derek Robson
A style fix across whole driver. changed permissions to octal style, found using checkpatch Signed-off-by: Derek Robson --- drivers/staging/speakup/main.c | 4 ++-- drivers/staging/speakup/speakup.h| 4 ++-- drivers/staging/speakup/speakup_acntpc.c | 26 +-

Re: [HMM v17 00/14] HMM (Heterogeneous Memory Management) v17

2017-01-27 Thread John Hubbard
On 01/27/2017 02:52 PM, Jérôme Glisse wrote: Cliff note: HMM offers 2 things (each standing on its own). First it allows to use device memory transparently inside any process without any modifications to process program code. Second it allows to mirror process address space on a device. Change s

Re: ibmvtpm byteswapping inconsistency

2017-01-27 Thread Benjamin Herrenschmidt
On Fri, 2017-01-27 at 12:32 -0800, Tyrel Datwyler wrote: > Its possible being the end of the week I'm just a little dense, but > wouldn't be64_to_cpu() imply that we are byte-swapping something that is > already, or supposedly already, in BE format to cpu endianness? Which on > a BE cpu I would exp

[PATCH] hwmon: Relax name attribute validation for new APIs

2017-01-27 Thread Guenter Roeck
While invalid name attributes are really not desirable and do mess up libsensors, enforcing valid names has the detrimental effect of driving users away from using the new hardware monitoring API, especially those registering name attributes violating the ABI restrictions. Another undesirable side

Re: [PATCH v9] fs: clear file privilege bits when mmap writing

2017-01-27 Thread Andy Lutomirski
On Wed, May 25, 2016 at 2:49 PM, Al Viro wrote: > On Wed, May 25, 2016 at 02:36:57PM -0700, Kees Cook wrote: > >> Hm, this didn't end up getting picked up. (This jumped out at me again >> because i_mutex just vanished...) >> >> Al, what's the right way to update the locking in this patch? > > ->i_

Re: [PATCH] doc: convert UIO howto from docbook to sphinx

2017-01-27 Thread kbuild test robot
Hi Alexander, [auto build test ERROR on linus/master] [also build test ERROR on v4.10-rc5] [cannot apply to next-20170125] [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/Alexander-Dahl/doc-conve

Re: [RFC] [PATCH] audit: log module name on init_module

2017-01-27 Thread Rusty Russell
Hi RGB! This should get acked by the new module maintainer (and your RH peer!) Jeyu, cc'd. Cheers, Rusty. Richard Guy Briggs writes: > This adds a new auxiliary record MODULE_INIT to the SYSCALL event. > > We get finit_module for free since it made most sense to hook this in to

[PATCH v2 1/2] fs: Check f_cred as well as of current's creds in should_remove_suid()

2017-01-27 Thread Andy Lutomirski
If an unprivileged program opens a setgid file for write and passes the fd to a privileged program and the privileged program writes to it, we currently fail to clear the setgid bit. Fix it by checking f_cred in addition to current's creds whenever a struct file is involved. I'm checking both bec

[PATCH v2 0/2] setgid hardening

2017-01-27 Thread Andy Lutomirski
The kernel has some dangerous behavior involving the creation and modification of setgid executables. These issues aren't kernel security bugs per se, but they have been used to turn various filesystem permission oddities into reliably privilege escalation exploits. See http://www.halfdog.net/Sec

[PATCH v2 2/2] fs: Harden against open(..., O_CREAT, 02777) in a setgid directory

2017-01-27 Thread Andy Lutomirski
Currently, if you open("foo", O_WRONLY | O_CREAT | ..., 02777) in a directory that is setgid and owned by a different gid than current's fsgid, you end up with an SGID executable that is owned by the directory's GID. This is a Bad Thing (tm). Exploiting this is nontrivial because most ways of cre

Re: [PATCH 1/2] dt-bindings: Document the VC4 DSI module nodes.

2017-01-27 Thread Eric Anholt
Rob Herring writes: > Need to cc DT list if you want it in my queue. > > On Mon, Jan 23, 2017 at 6:38 PM, Eric Anholt wrote: >> These are part of the vc4 display pipeline. >> >> Signed-off-by: Eric Anholt >> --- >> .../devicetree/bindings/display/brcm,bcm-vc4.txt | 35 >> +++

[PATCH 08/10] perf, tools: Add a simple expression parser for JSON

2017-01-27 Thread Andi Kleen
From: Andi Kleen Add a simple expression parser good enough to parse JSON relation expressions. The parser is implemented using bison. Signed-off-by: Andi Kleen --- tools/perf/tests/Build | 1 + tools/perf/tests/builtin-test.c | 4 ++ tools/perf/tests/expr.c | 48

[PATCH 05/10] perf, tools: Add debug support for outputing alias string

2017-01-27 Thread Andi Kleen
From: Andi Kleen For debugging and testing it is useful to see the converted alias string. Add support to perf stat/record and perf list to print the alias conversion. The text string is saved in the alias structure. For perf stat/record it is folded into the normal -v. For perf list -v was taken

[PATCH 07/10] perf, tools: Expand PMU events by prefix match

2017-01-27 Thread Andi Kleen
From: Andi Kleen When the user specifies a pmu directly, expand it automatically with a prefix match, similar as we do for the normal aliases now. This allows to specify attributes for duplicated boxes quickly. For example uncore_cbox_{0,6}/.../ can be now specified as cbox/.../ and it gets auto

[PATCH 10/10] perf, tools, stat: Output JSON MetricExpr metric

2017-01-27 Thread Andi Kleen
From: Andi Kleen Add generic infrastructure to perf stat to output ratios for "MetricExpr" entries in the event lists. Many events are more useful as ratios than in raw form, typically some count in relation to total ticks. Transfer the MetricExpr information from the alias to the evsel. We mar

[PATCH 09/10] perf, tools: Support MetricExpr header in JSON event list

2017-01-27 Thread Andi Kleen
From: Andi Kleen Add support for parsing the MetricExpr header in the JSON event lists and storing them in the alias structure. Used in the next patch. v2: Change DividedBy to MetricExpr Signed-off-by: Andi Kleen --- tools/perf/pmu-events/jevents.c| 18 ++ tools/perf/pmu-e

[PATCH 06/10] perf, tools: Collapse identically named events in perf stat

2017-01-27 Thread Andi Kleen
From: Andi Kleen The uncore PMU has a lot of duplicated PMUs for different subsystems. When expanding an uncore alias we usually end up with a large number of identically named aliases, which makes perf stat output difficult to read. Automatically sum them up in perf stat, unless --no-merge is s

[PATCH 02/10] perf, tools: Add support for parsing uncore json files

2017-01-27 Thread Andi Kleen
From: Andi Kleen Handle the Unit field, which is needed to find the right PMU for an event. We call it "pmu" and convert it to the perf pmu name with an uncore prefix. Handle the ExtSel field, which just extends the event mask with an additional bit. Handle the Filter field which adds parameter

[PATCH 03/10] perf, tools: Support per pmu json aliases

2017-01-27 Thread Andi Kleen
From: Andi Kleen Add support for registering json aliases per PMU. Any alias with an unit matching the prefix is registered to the PMU. Uncore has multiple instances of most units, so all these aliases get registered for each individual PMU (this is important later to run the event on every insta

[PATCH 01/10] perf, tools: Parse eventcode as number in jevents

2017-01-27 Thread Andi Kleen
From: Andi Kleen The next patch needs to modify event code. Previously eventcode was just passed through as a string. Now parse it as a number. v2: Don't special case 0 Acked-by: Jiri Olsa Signed-off-by: Andi Kleen --- tools/perf/pmu-events/jevents.c | 10 +- 1 file changed, 9 inserti

[PATCH 04/10] perf, tools: Support event aliases for non cpu// pmus

2017-01-27 Thread Andi Kleen
From: Andi Kleen The code for handling pmu aliases without specifying the PMU hardcoded only supported the cpu PMU. This patch extends it to work for all PMUs. We always duplicate the event for all PMUs that have an matching alias. This allows to automatically expand an alias for all instances o

Support Intel uncore event lists

2017-01-27 Thread Andi Kleen
This adds uncore support on top of the recently merged JSON event list infrastructure for core events. Uncore is everything outside the core, including memory controllers, PCI, interconnect etc. Uncore is more complicated to handle than core events because it uses many duplicated PMUs, which leads

Re: net: suspicious RCU usage in nf_hook

2017-01-27 Thread Eric Dumazet
On Fri, 2017-01-27 at 17:00 -0800, Cong Wang wrote: > On Fri, Jan 27, 2017 at 3:35 PM, Eric Dumazet wrote: > > Oh well, I forgot to submit the official patch I think, Jan 9th. > > > > https://groups.google.com/forum/#!topic/syzkaller/BhyN5OFd7sQ > > > > Hmm, but why only fragments need skb_orphan

[PATCH 0/2] Add session handling to tpm spaces

2017-01-27 Thread James Bottomley
Here's round two of the session handling patches. I folded in the review feedback (really all to patch 1) and tidied up a few parts of patch 2. James --- James Bottomley (2): tpm2: add session handle context saving and restoring to the space code tpm2-space: add handling for global session

Re: [PATCH v2 4/4] mfd: cros_ec: add RTC as mfd subdevice

2017-01-27 Thread Benson Leung
Hi Enric, On Thu, Jan 19, 2017 at 01:30:32PM +0100, Enric Balletbo i Serra wrote: > From: Stephen Barber > > If the EC supports RTC host commands, expose an RTC device. > > Signed-off-by: Stephen Barber > Signed-off-by: Enric Balletbo i Serra Acked-by: Benson Leung Sorry for the delay on t

[PATCH V2 1/1] percpu-refcount: fix reference leak during percpu-atomic transition

2017-01-27 Thread Douglas Miller
percpu_ref_tryget() and percpu_ref_tryget_live() should return "true" IFF they acquire a reference. But the return value from atomic_long_inc_not_zero() is a long and may have high bits set, e.g. PERCPU_COUNT_BIAS, and the return value of the tryget routines is bool so the reference may actually be

[GIT PULL][PATCH 0/3] Timekeeping items for 4.11

2017-01-27 Thread John Stultz
Hey Thomas, Ingo, Just a few items I have queued for 4.11. Let me know if you have any objections thanks -john Cc: Thomas Gleixner Cc: Richard Cochran Cc: Prarit Bhargava Cc: Ingo Molnar The following changes since commit 0c744ea4f77d72b3dcebb7a8f2684633ec79be88: Linux 4.10-rc2 (2017-

Re: net: suspicious RCU usage in nf_hook

2017-01-27 Thread Cong Wang
On Fri, Jan 27, 2017 at 3:35 PM, Eric Dumazet wrote: > Oh well, I forgot to submit the official patch I think, Jan 9th. > > https://groups.google.com/forum/#!topic/syzkaller/BhyN5OFd7sQ > Hmm, but why only fragments need skb_orphan()? It seems like any kfree_skb() inside a nf hook needs to have a

[PATCH 3/3] timers: Omit POSIX timer stuff from task_struct when disabled

2017-01-27 Thread John Stultz
From: Nicolas Pitre When CONFIG_POSIX_TIMERS is disabled, it is preferable to remove related structures from struct task_struct and struct signal_struct as they won't contain anything useful and shouldn't be relied upon by mistake. Code still referencing those structures is also disabled here. C

[PATCH 2/3] delay: Add explanation of udelay() inaccuracy

2017-01-27 Thread John Stultz
From: Russell King There seems to be some misunderstanding that udelay() and friends will always guarantee the specified delay. This is a false understanding. When udelay() is based on CPU cycles, it can return early for many reasons which are detailed by Linus' reply to me in a thread in 2011:

[PATCH 1/3] timekeeping: Remove unused timekeeping_{get,set}_tai_offset()

2017-01-27 Thread John Stultz
From: Stephen Boyd The last caller to timekeeping_set_tai_offset() was in commit 0b5154fb9040 (timekeeping: Simplify tai updating from do_adjtimex, 2013-03-22) and the last caller to timekeeping_get_tai_offset() was in commit 76f4108892d9 (hrtimer: Cleanup hrtimer accessors to the timekepeing sta

[PATCH V2 0/1] percpu-refcount: fix reference leak during percpu-atomic transition

2017-01-27 Thread Douglas Miller
Removed extraneous parentheses. Did not switch to "bool" as that would necessitate more testing and raises the question whether other platforms might have a different definition for "bool" that would not fix this problem.

Re: ibmvtpm byteswapping inconsistency

2017-01-27 Thread Tyrel Datwyler
On 01/27/2017 01:03 AM, Michal Suchanek wrote: > On 27 January 2017 at 02:50, Benjamin Herrenschmidt > wrote: >> On Thu, 2017-01-26 at 17:42 -0800, Tyrel Datwyler wrote: >>> On 01/26/2017 12:22 PM, Michal Suchánek wrote: Hello, building ibmvtpm I noticed gcc warning complaining that

[GIT PULL] ARM: at91: drivers for 4.11 #2

2017-01-27 Thread Alexandre Belloni
Arnd, Olof The EBI was requiring more fixing than expected in preparation of the NAND driver rework for 4.12. The following changes since commit ee194289502a6901cc77dc9a893bf2afd351ac5e: memory/atmel-ebi: Fix ns <-> cycles conversions (2017-01-10 16:01:34 +0100) are available in the git repos

Re: ibmvtpm byteswapping inconsistency

2017-01-27 Thread msuchanek
Hello, On 2017-01-27 21:32, Tyrel Datwyler wrote: On 01/27/2017 11:58 AM, Benjamin Herrenschmidt wrote: On Fri, 2017-01-27 at 10:02 -0800, Tyrel Datwyler wrote: The problem is that we are packing an in-memory structure into 2 registers and it's expected that this structure is laid out in the r

[PATCH 2/2] tpm2-space: add handling for global session exhaustion

2017-01-27 Thread James Bottomley
In a TPM2, sessions can be globally exhausted once there are TPM_PT_ACTIVE_SESSION_MAX of them (even if they're all context saved). The Strategy for handling this is to keep a global count of all the sessions along with their creation time. Then if we see the TPM run out of sessions (via the TPM_R

[PATCH v2 1/2] tpm2: add session handle context saving and restoring to the space code

2017-01-27 Thread James Bottomley
sessions are different from transient objects in that their handles may not be virtualized (because they're used for some hmac calculations). Additionally when a session is context saved, a vestigial memory remains in the TPM and if it is also flushed, that will be lost and the session context wil

Re: [PATCH] platform: chrome: Add Tablet Switch ACPI driver

2017-01-27 Thread Benson Leung
Hi Gwendal, Thanks for sending this! On Mon, Jan 23, 2017 at 03:39:55PM -0800, Gwendal Grignou wrote: > Add a kernel driver for GOOG0006, an ACPI driver reporting an event when > the tablet switch status changes. > > On an ACPI based convertible chromebook check evtest display tablet mode > swit

Re: [PATCH V2 0/1] percpu-refcount: fix reference leak during percpu-atomic transition

2017-01-27 Thread Douglas Miller
I will re-test and post the patch using "bool" when finished. On 01/27/2017 06:13 PM, Tejun Heo wrote: On Fri, Jan 27, 2017 at 05:32:15PM -0600, Douglas Miller wrote: Removed extraneous parentheses. Did not switch to "bool" as that would necessitate more testing and raises the question whether

Re: [PATCH V2 0/1] percpu-refcount: fix reference leak during percpu-atomic transition

2017-01-27 Thread Tejun Heo
On Fri, Jan 27, 2017 at 05:32:15PM -0600, Douglas Miller wrote: > Removed extraneous parentheses. Did not switch to "bool" as that would > necessitate > more testing and raises the question whether other platforms might have a > different > definition for "bool" that would not fix this problem.

Re: [PATCH] IB/cma: Fix reversed test

2017-01-27 Thread Doug Ledford
On Fri, 2017-01-27 at 21:31 +, Bart Van Assche wrote: > On Fri, 2017-01-27 at 14:15 +0100, Christophe JAILLET wrote: > > > > This test looks reverted. > > We should log an error message only if 'ib_attach_mcast()' fails. > > > > Signed-off-by: Christophe JAILLET > > --- > >  drivers/infiniba

[PATCH 3/6] ARCv2: IRQ: Add macro for the first external interrupt number

2017-01-27 Thread Yuriy Kolerov
Signed-off-by: Yuriy Kolerov --- arch/arc/include/asm/irq.h | 1 + arch/arc/kernel/intc-arcv2.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arc/include/asm/irq.h b/arch/arc/include/asm/irq.h index c0fa0d2..e61ad30 100644 --- a/arch/arc/include/asm/irq.h +++ b/arch

[PATCH 1/6] ARCv2: IRQ: Move structures for core intc to the header

2017-01-27 Thread Yuriy Kolerov
Also add new macro ARC_REG_STATUS32 for the address of STATUS32 auxiliary register. It is better to use it instead of magic numbers. Signed-off-by: Yuriy Kolerov --- arch/arc/include/asm/arcregs.h | 26 ++ arch/arc/kernel/intc-arcv2.c | 23 +++ 2 fil

[PATCH 0/6] Use build registers for getting numbers of interrupts

2017-01-27 Thread Yuriy Kolerov
A summary: * Use build registers for getting numbers of interrupts both for core interrupt controller and for IDU interrupt controller. * Set a default priority for all core interrupt to prevent unexpected switching of banks of registers. * Remove option for setting number of interru

[PATCH 4/6] ARCv2: IRQ: Remove option for setting number of interrupts

2017-01-27 Thread Yuriy Kolerov
When you set a value of ARC_NUMBER_OF_INTERRUPTS option it affects only a size of the interrupts table but macros for number of virtual interrupts (NR_IRQS) and for number of hardware interrupts (NR_CPU_IRQS) remain unchanged. Moreover usage of ARC_NUMBER_OF_INTERRUPTS is bad for portability since

[PATCH 6/6] ARCv2: IRQ: Set a default priority for all core interrupts

2017-01-27 Thread Yuriy Kolerov
After reset all interrupts in the core interrupt controller has the highest priority P0. If the platform supports Fast IRQs and has more than 1 banks of registers then CPU automatically switch banks of registers when P0 interrupt comes. The problem is that the kernel expects that by default switch

[PATCH 2/6] ARCv2: MCIP: Add structure for build register of IDU

2017-01-27 Thread Yuriy Kolerov
This structure is necessary for retrieving of supported number of common interrupts in IDU interrupt controller. Signed-off-by: Yuriy Kolerov --- include/soc/arc/mcip.h | 17 + 1 file changed, 17 insertions(+) diff --git a/include/soc/arc/mcip.h b/include/soc/arc/mcip.h index 69

Re: [PATCH 1/1] percpu-refcount: fix reference leak during percpu-atomic transition

2017-01-27 Thread Douglas Miller
I'd like to request this be flagged for "stable". Thanks, Doug On 01/27/2017 02:59 PM, Douglas Miller wrote: percpu_ref_tryget() and percpu_ref_tryget_live() should return "true" IFF they acquire a reference. But the return value from atomic_long_inc_not_zero() is a long and may have high bi

[PATCH 5/6] ARCv2: IRQ: Use build registers for getting numbers of interrupts

2017-01-27 Thread Yuriy Kolerov
This enhancement allows to mask all available common interrupts in IDU interrupt controller in boot time since the kernel can discover a number of them from the build register. Also now there is no need to specify in device tree a list of used core interrupts by IDU. E.g. before: idu_intc: idu

Re: [PATCH v4] net: ethernet: faraday: To support device tree usage.

2017-01-27 Thread Rob Herring
On Wed, Jan 25, 2017 at 10:09:20PM +0100, Arnd Bergmann wrote: > On Wed, Jan 25, 2017 at 6:34 PM, David Miller wrote: > > From: Greentime Hu > > Date: Tue, 24 Jan 2017 16:46:14 +0800 > >> We also use the same binding document to describe the same faraday ethernet > >> controller and add faraday t

[PATCH] docs: Convert the regulator docbook to RST

2017-01-27 Thread Jonathan Corbet
A fairly straightforward conversion to RST; the document is then added to the driver-api manual. Of course, this document has seen no substantive changes since 2008, so chances are it needs work in other areas as well. Cc: Mark Brown Signed-off-by: Jonathan Corbet --- The formatted version of t

Re: [tpmdd-devel] [RFC] tpm2-space: add handling for global session exhaustion

2017-01-27 Thread James Bottomley
On Fri, 2017-01-27 at 16:35 -0700, Jason Gunthorpe wrote: > On Fri, Jan 27, 2017 at 02:04:59PM -0800, James Bottomley wrote: > > > if I look at the code I've written, I don't know what the session > > number is, I just save sessionHandle in a variable for later use > > (lets say to v1). If I got

Re: [tpmdd-devel] [RFC] tpm2-space: add handling for global session exhaustion

2017-01-27 Thread Jason Gunthorpe
On Fri, Jan 27, 2017 at 02:04:59PM -0800, James Bottomley wrote: > if I look at the code I've written, I don't know what the session > number is, I just save sessionHandle in a variable for later use (lets > say to v1). If I got the same session number returned at a later time > and placed it in

Re: v4.9 to v4.10 regression: oops when USB cable is plugged in.

2017-01-27 Thread Sebastian Reichel
Hi, On Fri, Jan 27, 2017 at 10:55:12PM +0100, Pavel Machek wrote: > Ok, I can try. But so far even -rc1 is a lot of fun. But... I consider > phone calls core feature of a phone. I'd very much like to get that to > work. Unfortunately, that means real-time audio, and a lot of > fun. Plus, as it is

Re: [PATCH v8 09/12] dt-bindings: mux-adg792a: document devicetree bindings for ADG792A/G mux

2017-01-27 Thread Peter Rosin
On 2017-01-27 20:50, Rob Herring wrote: > On Wed, Jan 18, 2017 at 04:57:12PM +0100, Peter Rosin wrote: >> Analog Devices ADG792A/G is a triple 4:1 mux. >> >> Acked-by: Jonathan Cameron >> Signed-off-by: Peter Rosin >> --- >> .../devicetree/bindings/mux/mux-adg792a.txt| 79 >> +++

Re: net: suspicious RCU usage in nf_hook

2017-01-27 Thread Eric Dumazet
On Fri, 2017-01-27 at 22:15 +0100, Dmitry Vyukov wrote: > Hello, > > I've got the following report while running syzkaller fuzzer on > fd694aaa46c7ed811b72eb47d5eb11ce7ab3f7f1: > > [ INFO: suspicious RCU usage. ] > 4.10.0-rc5+ #192 Not tainted > --- > ./include/linux/r

Re: ibmvtpm byteswapping inconsistency

2017-01-27 Thread Tyrel Datwyler
On 01/27/2017 11:58 AM, Benjamin Herrenschmidt wrote: > On Fri, 2017-01-27 at 10:02 -0800, Tyrel Datwyler wrote: >>> The problem is that we are packing an in-memory structure into 2 >>> registers and it's expected that this structure is laid out in the >>> registers as if it had been loaded by a BE

Re: [PATCH V3 net-next 02/14] net/ena: fix error handling when probe fails

2017-01-27 Thread Lino Sanfilippo
Hi, On 26.01.2017 23:18, Netanel Belgazal wrote: When driver fails in probe, it will release all resources, including adapter. In case of probe failure, ena_remove should not try to free the adapter resources. Signed-off-by: Netanel Belgazal --- drivers/net/ethernet/amazon/ena/ena_netdev.c |

Re: net: suspicious RCU usage in nf_hook

2017-01-27 Thread Cong Wang
On Fri, Jan 27, 2017 at 3:22 PM, Cong Wang wrote: > On Fri, Jan 27, 2017 at 1:15 PM, Dmitry Vyukov wrote: >> stack backtrace: >> CPU: 2 PID: 23111 Comm: syz-executor14 Not tainted 4.10.0-rc5+ #192 >> Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 >> Call Trace: >> _

[PATCH] x86: Improve documentation for low-level device I/O functions

2017-01-27 Thread Jonathan Corbet
Add kerneldoc comments for memcpy_{to,from}io() and memset_io(). The existing documentation for ioremap() was distant from the definition, causing kernel-doc to miss it; move it appropriately. Signed-off-by: Jonathan Corbet --- arch/x86/include/asm/io.h | 47

[PATCH] Convert the deviceio template to RST

2017-01-27 Thread Jonathan Corbet
Convert deviceiobook.tmpl to RST and incorporate it into the driver API manual. Like the rest of our documentation, this one could use some work. There's no mention of ioremap() and friends, no mention of io_read*() and friends. But we have nice documentation for all those folks writing new drive

Re: net: suspicious RCU usage in nf_hook

2017-01-27 Thread Cong Wang
On Fri, Jan 27, 2017 at 1:15 PM, Dmitry Vyukov wrote: > stack backtrace: > CPU: 2 PID: 23111 Comm: syz-executor14 Not tainted 4.10.0-rc5+ #192 > Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 > Call Trace: > __dump_stack lib/dump_stack.c:15 [inline] > dump_stack+0x2

ATENCIÓN

2017-01-27 Thread administrador
ATENCIÓN; Su buzón ha superado el límite de almacenamiento, que es de 5 GB definidos por el administrador, quien actualmente está ejecutando en 10.9GB, no puede ser capaz de enviar o recibir correo nuevo hasta que vuelva a validar su buzón de correo electrónico. Para revalidar su buzón de corre

[PATCH v2 5/5] userfaultfd_copy: return -ENOSPC in case mm has gone

2017-01-27 Thread Mike Rapoport
In the non-cooperative userfaultfd case, the process exit may race with outstanding mcopy_atomic called by the uffd monitor. Returning -ENOSPC instead of -EINVAL when mm is already gone will allow uffd monitor to distinguish this case from other error conditions. Signed-off-by: Mike Rapoport Acke

Re: [PATCH 1/2] dt-bindings: Document the VC4 DSI module nodes.

2017-01-27 Thread Rob Herring
Need to cc DT list if you want it in my queue. On Mon, Jan 23, 2017 at 6:38 PM, Eric Anholt wrote: > These are part of the vc4 display pipeline. > > Signed-off-by: Eric Anholt > --- > .../devicetree/bindings/display/brcm,bcm-vc4.txt | 35 > ++ > 1 file changed, 35 inserti

Re: [PATCH] wd719x: add check for dma mapping errors

2017-01-27 Thread James Bottomley
On Sat, 2017-01-28 at 01:30 +0300, Alexey Khoroshilov wrote: > wd719x_queuecommand() doesn't check if mapping dma memory succeed. > The patch adds the check and failure handling. > > Found by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Alexey Khoroshilov > --- > dri

[PATCH v2 4/5] userfaultfd: mcopy_atomic: return -ENOENT when no compatible VMA found

2017-01-27 Thread Mike Rapoport
The memory mapping of a process may change between #PF event and the call to mcopy_atomic that comes to resolve the page fault. In such case, there will be no VMA covering the range passed to mcopy_atomic or the VMA will not have userfaultfd context. To allow uffd monitor to distinguish those case

[PATCH v2 1/5] mm: call vm_munmap in munmap syscall instead of using open coded version

2017-01-27 Thread Mike Rapoport
The commit dc0ef0df7b6a (mm: make mmap_sem for write waits killable for mm syscalls) replaced call to vm_munmap in munmap syscall with open coded version to allow different waits on mmap_sem in munmap syscall and vm_munmap. Now both functions use down_write_killable, so we can restore the call to v

Re: [PATCH] prctl.2: Document new PR_SET_CHILD_SUBREAPER semantics

2017-01-27 Thread Michael Kerrisk (man-pages)
Hello Pavel, On 27 January 2017 at 23:11, Pavel Tikhomirov wrote: > old semantics was non deterministic and worked differently > depending on the external factors, but nothing changes if > process first sets itself subreaper and only after forks When did the kernel behavior change? Cheers, Mic

Extra messages from Makefile.sphinx

2017-01-27 Thread Jim Davis
On a sphinx-free Ubuntu system with 4.10-rc5, make installmandocs works just fine, but the garrulous Makefile.sphinx twice tells me I don't have sphinx-build installed: Documentation/Makefile.sphinx:22: The 'sphinx-build' command was not found. Make sure you have Sphinx installed and in PATH, or

Re: [PATCH v2 1/2] Documentation: mtk-quadspi: update DT bindings

2017-01-27 Thread Rob Herring
On Wed, Jan 25, 2017 at 11:38:34AM +0800, Guochun Mao wrote: > Add "mediatek,mt2701-nor" for nor flash node's compatible. > > Signed-off-by: Guochun Mao > --- > .../devicetree/bindings/mtd/mtk-quadspi.txt|8 +++- > 1 file changed, 7 insertions(+), 1 deletion(-) Acked-by: Rob Her

Re: [REGRESSION] EFI mixed mode patch triggers boot failure

2017-01-27 Thread Matt Fleming
On Mon, 24 Oct, at 12:54:11PM, Laura Abbott wrote: > > Was out for a few days, reporter says the below patch does not work. > There was some confusion with secure boot so I've asked them to re-test > with efi=old_map and secure boot off. FYI, you may want to ask the reporter to try out Jiri's pat

[PATCH] wd719x: add check for dma mapping errors

2017-01-27 Thread Alexey Khoroshilov
wd719x_queuecommand() doesn't check if mapping dma memory succeed. The patch adds the check and failure handling. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/scsi/wd719x.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/

Re: [PATCH v9 1/3] doc: dt: add cyclone-ps-spi binding document

2017-01-27 Thread Rob Herring
On Tue, Jan 24, 2017 at 02:19:32PM -0800, Joshua Clayton wrote: > Describe a cyclone-ps-spi devicetree entry, required features > > Signed-off-by: Joshua Clayton > --- > .../bindings/fpga/altera-passive-serial.txt| 29 > ++ > 1 file changed, 29 insertions(+) > creat

Re: [PATCH 6/6] staging: bcm2835-v4l2: Apply spelling fixes from checkpatch.

2017-01-27 Thread Joe Perches
On Fri, 2017-01-27 at 13:55 -0800, Eric Anholt wrote: > Generated with checkpatch.pl --fix-inplace and git add -p out of the > results. Maybe another. > diff --git a/drivers/staging/media/platform/bcm2835/mmal-vchiq.c > b/drivers/staging/media/platform/bcm2835/mmal-vchiq.c [] > @@ -239,7 +239,7

[PATCH] x86/efi: Always map first physical page into EFI pagetables

2017-01-27 Thread Matt Fleming
From: Jiri Kosina Commit 129766708 ("x86/efi: Only map RAM into EFI page tables if in mixed-mode") stopped creating 1:1 mapping for all RAM in case of running in native 64bit mode. It turns out though that there are 64bit EFI implementations in the wild (this particular problem has been reported

[GIT PULL] ARC updates for 4.10-rc6

2017-01-27 Thread Vineet Gupta
Hi Linus, Hopefully last set of changes for ARC for 4.10. Please pull. Thx, -Vineet ---> The following changes since commit 7a308bb3016f57e5be11a677d15b821536419d36: Linux 4.10-rc5 (2017-01-22 12:54:15 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/lin

Re: [PATCH 1/1] percpu-refcount: fix reference leak during percpu-atomic transition

2017-01-27 Thread Jens Axboe
On 01/27/2017 01:59 PM, Douglas Miller wrote: > percpu_ref_tryget() and percpu_ref_tryget_live() should return > "true" IFF they acquire a reference. But the return value from > atomic_long_inc_not_zero() is a long and may have high bits set, > e.g. PERCPU_COUNT_BIAS, and the return value of the tr

Re: [PATCH v3 fpga 3/4] fpga: Add scatterlist based programming

2017-01-27 Thread Jason Gunthorpe
On Mon, Jan 09, 2017 at 04:13:38PM -0600, Alan Tull wrote: > On Mon, Jan 9, 2017 at 10:12 AM, Jason Gunthorpe > wrote: > > On Mon, Jan 09, 2017 at 10:04:36AM -0600, Alan Tull wrote: > > > >> > diff --git a/drivers/fpga/fpga-mgr.c b/drivers/fpga/fpga-mgr.c > >> > index f0a69d3e60a584..30f9778d0632d

Re: [PATCH 1/4] efi/x86: make efi_memmap_reserve only insert into boot mem areas

2017-01-27 Thread Ard Biesheuvel
On 27 January 2017 at 22:13, Matt Fleming wrote: > On Fri, 27 Jan, at 05:04:50PM, Ard Biesheuvel wrote: >> On 27 January 2017 at 14:48, Matt Fleming wrote: >> > On Fri, 13 Jan, at 05:29:52AM, Dave Young wrote: >> >> >> >> It sounds reasonable though I'm still not sure about EFI_LOADER*. >> >> >>

Re: [PATCH 1/1] percpu-refcount: fix reference leak during percpu-atomic transition

2017-01-27 Thread Tejun Heo
Hello, Douglas. On Fri, Jan 27, 2017 at 02:59:08PM -0600, Douglas Miller wrote: > @@ -212,7 +212,7 @@ static inline bool percpu_ref_tryget(struct percpu_ref > *ref) > this_cpu_inc(*percpu_count); > ret = true; > } else { > - ret = atomic_long_inc_not_

Re: [PATCH V6 4/5] LPC: Support the device-tree LPC host on Hip06/Hip07

2017-01-27 Thread Rob Herring
On Tue, Jan 24, 2017 at 03:05:24PM +0800, zhichang.yuan wrote: > The low-pin-count(LPC) interface of Hip06/Hip07 accesses the peripherals in > I/O port addresses. This patch implements the LPC host controller driver which > perform the I/O operations on the underlying hardware. > We don't want to t

Re: [PATCH 1/4] efi/x86: make efi_memmap_reserve only insert into boot mem areas

2017-01-27 Thread Matt Fleming
On Fri, 27 Jan, at 05:04:50PM, Ard Biesheuvel wrote: > On 27 January 2017 at 14:48, Matt Fleming wrote: > > On Fri, 13 Jan, at 05:29:52AM, Dave Young wrote: > >> > >> It sounds reasonable though I'm still not sure about EFI_LOADER*. > >> > >> The main purpose of this patch is to address the invali

net: suspicious RCU usage in nf_hook

2017-01-27 Thread Dmitry Vyukov
Hello, I've got the following report while running syzkaller fuzzer on fd694aaa46c7ed811b72eb47d5eb11ce7ab3f7f1: [ INFO: suspicious RCU usage. ] 4.10.0-rc5+ #192 Not tainted --- ./include/linux/rcupdate.h:561 Illegal context switch in RCU read-side critical section! o

[PATCH v2] net: adaptec: starfire: add checks for dma mapping errors

2017-01-27 Thread Alexey Khoroshilov
init_ring(), refill_rx_ring() and start_tx() don't check if mapping dma memory succeed. The patch adds the checks and failure handling. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/net/ethernet/adaptec/starfire.c | 45 +

[GIT PULL] EFI urgent fix

2017-01-27 Thread Matt Fleming
Folks, please pull the below fix from Jiri which fixes a triple fault affecting the Lenovo Yogas since v4.8. The following changes since commit 7a308bb3016f57e5be11a677d15b821536419d36: Linux 4.10-rc5 (2017-01-22 12:54:15 -0800) are available in the git repository at: git://git.kernel.org/p

Re: [tpmdd-devel] [RFC] tpm2-space: add handling for global session exhaustion

2017-01-27 Thread James Bottomley
On Fri, 2017-01-27 at 16:20 -0500, Ken Goldman wrote: > On 1/19/2017 7:41 AM, Jarkko Sakkinen wrote: > > > > I actually think that the very best solution would be such that > > sessions would be *always* lease based. So when you create a > > session you would always loose within a time limit. > >

[PATCH v6 4/5] fs/pstore: fs/squashfs: Change usage of LZ4 to work with new LZ4 version

2017-01-27 Thread Sven Schmidt
This patch updates fs/pstore and fs/squashfs to use the updated functions from the new LZ4 module. Signed-off-by: Sven Schmidt <4ssch...@informatik.uni-hamburg.de> --- fs/pstore/platform.c | 22 +- fs/squashfs/lz4_wrapper.c | 12 ++-- 2 files changed, 19 insertion

[PATCH v6 1/5] lib: Update LZ4 compressor module

2017-01-27 Thread Sven Schmidt
This patch updates LZ4 kernel module to LZ4 v1.7.3 by Yann Collet. The kernel module is inspired by the previous work by Chanho Min. The updated LZ4 module will not break existing code since the patchset contains appropriate changes. API changes: New method LZ4_compress_fast which differs from th

Re: [tpmdd-devel] [RFC] tpm2-space: add handling for global session exhaustion

2017-01-27 Thread James Bottomley
On Fri, 2017-01-27 at 16:42 -0500, Ken Goldman wrote: > On 1/18/2017 3:48 PM, James Bottomley wrote: > > In a TPM2, sessions can be globally exhausted once there are > > TPM_PT_ACTIVE_SESSION_MAX of them (even if they're all context > > saved). > > The Strategy for handling this is to keep a global

[PATCH v6 3/5] crypto: Change LZ4 modules to work with new LZ4 module version

2017-01-27 Thread Sven Schmidt
This patch updates the crypto modules using LZ4 compression to work with the new LZ4 module version. Signed-off-by: Sven Schmidt <4ssch...@informatik.uni-hamburg.de> --- crypto/lz4.c | 21 - crypto/lz4hc.c | 21 - 2 files changed, 16 insertions(+), 26 del

[PATCH 5/6] staging: bcm2835-v4l2: Apply many whitespace fixes from checkpatch.

2017-01-27 Thread Eric Anholt
Generated with checkpatch.pl --fix-inplace, some manual fixes for cases where checkpatch fixed one out of multiple lines of mis-indented function parameters, and then git add -p out of the results. I skipped some fixes that should probably instead be replaced with the BIT() macro. Signed-off-by:

[PATCH v6 5/5] lib/lz4: Remove back-compat wrappers

2017-01-27 Thread Sven Schmidt
This patch removes the functions introduced as wrappers for providing backwards compatibility to the prior LZ4 version. They're not needed anymore since there's no callers left. Signed-off-by: Sven Schmidt <4ssch...@informatik.uni-hamburg.de> --- include/linux/lz4.h | 73

[PATCH v6 0/5] Update LZ4 compressor module

2017-01-27 Thread Sven Schmidt
This patchset is for updating the LZ4 compression module to a version based on LZ4 v1.7.3 allowing to use the fast compression algorithm aka LZ4 fast which provides an "acceleration" parameter as a tradeoff between high compression ratio and high compression speed. We want to use LZ4 fast in orde

  1   2   3   4   5   6   7   8   9   10   >