Re: [PATCH v14 6/9] acpi/arm64: Add memory-mapped timer support in GTDT driver

2016-10-21 Thread Mark Rutland
On Thu, Sep 29, 2016 at 02:17:14AM +0800, fu@linaro.org wrote: > From: Fu Wei > > On platforms booting with ACPI, architected memory-mapped timers' > configuration data is provided by firmware through the ACPI GTDT > static table. > > The clocksource architected timer kernel driver requires

Re: [PATCH v14 5/9] clocksource/drivers/arm_arch_timer: Simplify ACPI support code.

2016-10-21 Thread Mark Rutland
On Fri, Oct 21, 2016 at 12:14:01PM +0100, Mark Rutland wrote: > On Thu, Oct 20, 2016 at 05:58:17PM +0100, Mark Rutland wrote: > > On Thu, Sep 29, 2016 at 02:17:13AM +0800, fu@linaro.org wrote: > > > + arch_timer_ppi[PHYS_NONSECURE_PPI] = > > > acpi_gtdt_map_ppi(PHYS_NONSECURE_PPI); > > > + arc

RE: [PATCH v5 9/9] Documentation: virtual: kvm: Support vcpu preempted check

2016-10-21 Thread David Laight
From: Pan Xinhui > Sent: 20 October 2016 22:28 > Commit ("x86, kvm: support vcpu preempted check") add one field "__u8 > preempted" into struct kvm_steal_time. This field tells if one vcpu is > running or not. > > It is zero if 1) some old KVM deos not support this filed. 2) the vcpu is > preempte

Re: [PATCH v14 7/9] clocksource/drivers/arm_arch_timer: Refactor the timer init code to prepare for GTDT

2016-10-21 Thread Mark Rutland
On Thu, Sep 29, 2016 at 02:17:15AM +0800, fu@linaro.org wrote: > From: Fu Wei > > The patch refactor original memory-mapped timer init code: > (1) extract some subfunction for reusing some common code > a. get_cnttidr > b. is_best_frame > (2) move base address and irq code for arch_ti

Re: [PATCH] mm, mempolicy: clean up __GFP_THISNODE confusion in policy_zonelist

2016-10-21 Thread Aneesh Kumar K.V
Michal Hocko writes: > From: Michal Hocko > > __GFP_THISNODE is documented to enforce the allocation to be satisified > from the requested node with no fallbacks or placement policy > enforcements. policy_zonelist seemingly breaks this semantic if the > current policy is MPOL_MBIND and instead o

Re: [PATCH] net: sched: make default fifo qdiscs appear in the dump

2016-10-21 Thread Eric Dumazet
On Fri, 2016-10-21 at 10:45 +0200, Jiri Kosina wrote: > The original reason [1] for having hidden qdiscs (potential scalability > issues in qdisc_match_from_root() with single linked list in case of large > amount of qdiscs) has been invalidated by 59cc1f61f0 ("net: sched: convert > qdisc linked

Re: [PATCH v3 net-next 8/8] net: qualcomm: add QCA7000 UART driver

2016-10-21 Thread Stefan Wahren
Am 18.10.2016 um 20:30 schrieb David Miller: > From: Stefan Wahren > Date: Tue, 18 Oct 2016 13:27:34 +0200 > >> +void >> +qca_tty_receive(struct tty_struct *tty, const unsigned char *cp, char *fp, >> +int count) >> +{ >> +struct qcauart *qca = tty->disc_data; >> +struct net_dev

Re: [STLinux Kernel] [PATCH v2 1/6] ARM: dts: STiH407: DT fix s/interrupts-names/interrupt-names/

2016-10-21 Thread Patrice Chotard
On 10/21/2016 12:11 PM, Peter Griffin wrote: > On Fri, 21 Oct 2016, Geert Uytterhoeven wrote: > >> Signed-off-by: Geert Uytterhoeven >> Acked-by: Rob Herring >> --- >> v2: >> - Add Acked-by. >> --- > > Acked-by: Peter Griffin > applied with Peter Acked-by Thanks Geert

Re: Improving software around DMA API usage?

2016-10-21 Thread SF Markus Elfring
> If you want to do something that might be useful, you could look into the > problem of missing checks for dma mapping failure. There is nice slide > presenatation about the issue: > > http://www.slideshare.net/SamsungOSG/shuah-khan-dmamaperror Thanks for your suggestion about the software dev

[PATCH 1/2] perf_event_open.2: Document PERF_EVENT_IOC_PAUSE_OUTPUT

2016-10-21 Thread Wang Nan
Linux 4.7 (86e7972f690c1017fd086cdfe53d8524e68c661c) introduces PERF_EVENT_IOC_PAUSE_OUTPUT feature. Document it. Signed-off-by: Wang Nan Cc: Michael Kerrisk --- man2/perf_event_open.2 | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/man2/perf_event_open.2 b/man

[PATCH 2/2] perf_event_open.2: Document write_backward

2016-10-21 Thread Wang Nan
Linux 4.7 (9ecda41acb971ebd07c8fb35faf24005c0baea12) introduces write_backward attribute to perf_event_attr. Document this feature. Signed-off-by: Wang Nan Cc: Michael Kerrisk --- man2/perf_event_open.2 | 56 +++--- 1 file changed, 53 insertions(+), 3

Re: [PATCH] mm, mempolicy: clean up __GFP_THISNODE confusion in policy_zonelist

2016-10-21 Thread Michal Hocko
On Fri 21-10-16 17:04:50, Aneesh Kumar K.V wrote: > Michal Hocko writes: > > > From: Michal Hocko > > > > __GFP_THISNODE is documented to enforce the allocation to be satisified > > from the requested node with no fallbacks or placement policy > > enforcements. policy_zonelist seemingly breaks t

Re: [PATCH] net: stmmac: Add OXNAS Glue Driver

2016-10-21 Thread Giuseppe CAVALLARO
Hello some my minor cents below On 10/21/2016 12:20 PM, Joachim Eastwood wrote: Hi Neil, On 21 October 2016 at 10:44, Neil Armstrong wrote: Add Synopsys Designware MAC Glue layer for the Oxford Semiconductor OX820. Signed-off-by: Neil Armstrong --- .../devicetree/bindings/net/oxnas-dwmac.

Re: UBIFS with dma on 4.6 kernel is not working

2016-10-21 Thread Cyrille Pitchen
Hi all, Le 21/10/2016 à 11:29, Richard Weinberger a écrit : > Hi! > > On 21.10.2016 11:21, Naga Sureshkumar Relli wrote: >> Hi, >> >> This is regarding UBIFS on 4.6 kernel. >> We have tested UBIFS on our ZynqMP SOC QSPI Controller, the UBIFS is not >> working with dma on this kernel. >> Controll

[PATCH 3/5] s390: make cpu_relax a barrier again

2016-10-21 Thread Christian Borntraeger
stop_machine seems to be the only important place for yielding during cpu_relax. This was fixed by using cpu_relax_yield. Therefore, we can now redefine cpu_relax to be a barrier instead. (With the option to do some SMT tuning later on) Signed-off-by: Christian Borntraeger --- arch/s390/include/

[PATCH 1/5] processor.h: introduce cpu_relax_yield

2016-10-21 Thread Christian Borntraeger
For spinning loops people did often use barrier() or cpu_relax(). For most architectures cpu_relax and barrier are the same, but on some architectures cpu_relax can add some latency. For example on s390 cpu_relax gives up the time slice to the hypervisor. On power cpu_relax tries to give some of th

[PATCH/RFC 0/5] cpu_relax: introduce yield, remove lowlatency

2016-10-21 Thread Christian Borntraeger
For spinning loops people did often use barrier() or cpu_relax(). For most architectures cpu_relax and barrier are the same, but on some architectures cpu_relax can add some latency. For example on s390 cpu_relax gives up the time slice to the hypervisor. On power cpu_relax tries to give some of th

[PATCH 2/5] stop_machine: yield CPU during stop machine

2016-10-21 Thread Christian Borntraeger
stop_machine can take a very long time if the hypervisor does overcommitment for guest CPUs. When waiting for "the one", lets give up our CPU by using the new cpu_relax_yield. Signed-off-by: Christian Borntraeger --- kernel/stop_machine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

[PATCH 4/5] Remove cpu_relax_lowlatency users

2016-10-21 Thread Christian Borntraeger
With the s390 special case of a yielding cpu_relax implementation gone, we can now remove all users of cpu_relax_lowlatency. Signed-off-by: Christian Borntraeger --- drivers/gpu/drm/i915/i915_gem_request.c | 2 +- drivers/vhost/net.c | 4 ++-- kernel/locking/mcs_spinlock.h

[PATCH 5/5] remove cpu_relax_lowlatency

2016-10-21 Thread Christian Borntraeger
As there are no users left, we can remove cpu_relax_lowlatency. Signed-off-by: Christian Borntraeger --- arch/alpha/include/asm/processor.h | 1 - arch/arm/include/asm/processor.h| 1 - arch/arm64/include/asm/processor.h | 1 - arch/avr32/include/asm/processor.h | 1 - arc

Re: [PATCH net-next 3/6] net: use core MTU range checking in WAN drivers

2016-10-21 Thread Krzysztof Hałasa
Jarod Wilson writes: > - set min/max_mtu in all hdlc drivers, remove hdlc_change_mtu > - sent max_mtu in lec driver, remove lec_change_mtu > drivers/net/wan/c101.c| 1 - > drivers/net/wan/hdlc.c| 11 ++- > drivers/net/wan/hdlc_fr.c | 3 ++- > drivers/ne

Re: [PATCH 2/5] stop_machine: yield CPU during stop machine

2016-10-21 Thread Peter Zijlstra
On Fri, Oct 21, 2016 at 01:58:55PM +0200, Christian Borntraeger wrote: > stop_machine can take a very long time if the hypervisor does > overcommitment for guest CPUs. When waiting for "the one", lets > give up our CPU by using the new cpu_relax_yield. This seems something that would apply to most

Re: [PATCH/RFC 0/5] cpu_relax: introduce yield, remove lowlatency

2016-10-21 Thread Peter Zijlstra
On Fri, Oct 21, 2016 at 01:58:53PM +0200, Christian Borntraeger wrote: > Christian Borntraeger (5): > processor.h: introduce cpu_relax_yield > stop_machine: yield CPU during stop machine > s390: make cpu_relax a barrier again > Remove cpu_relax_lowlatency users > remove cpu_relax_lowlaten

Re: [PATCH] mm, mempolicy: clean up __GFP_THISNODE confusion in policy_zonelist

2016-10-21 Thread Vlastimil Babka
On 10/21/2016 01:34 PM, Aneesh Kumar K.V wrote: Michal Hocko writes: For both MPOL_PREFERED and MPOL_INTERLEAVE we pick the zone list from the node other than the current running node. Why don't we do that for MPOL_BIND ?ie, if the current node is not part of the policy node mask why are we

Re: [PATCH V7 1/3] tracing: add a possibility of exporting function trace to other places instead of ring buffer only

2016-10-21 Thread Chunyan Zhang
On 18 October 2016 at 23:44, Steven Rostedt wrote: > On Tue, 18 Oct 2016 16:08:58 +0800 > Chunyan Zhang wrote: > >> Currently Function traces can be only exported to ring buffer, this >> patch added trace_export concept which can process traces and export >> them to a registered destination as an

[PATCH] net: sctp, forbid negative length

2016-10-21 Thread Jiri Slaby
Most of getsockopt handlers in net/sctp/socket.c check len against sizeof some structure like: if (len < sizeof(int)) return -EINVAL; On the first look, the check seems to be correct. But since len is int and sizeof returns size_t, int gets promoted to unsigned size_t too.

Re: [PATCH V7 2/3] stm class: ftrace: Add ftrace-export-over-stm driver

2016-10-21 Thread Chunyan Zhang
On 19 October 2016 at 00:29, Steven Rostedt wrote: > On Tue, 18 Oct 2016 16:08:59 +0800 > Chunyan Zhang wrote: > >> This patch adds a driver that models itself as an stm_source called >> stm_ftrace. Once the stm device and stm_ftrace have been linked via >> sysfs, the driver registers itself as a

RE: Device or HBA level QD throttling creates randomness in sequetial workload

2016-10-21 Thread Kashyap Desai
Hi - I found below conversation and it is on the same line as I wanted some input from mailing list. http://marc.info/?l=linux-kernel&m=147569860526197&w=2 I can do testing on any WIP item as Omar mentioned in above discussion. https://github.com/osandov/linux/tree/blk-mq-iosched Is there any w

Re: [PATCH] ARM: sti: stih407-clocks: Identify critical clocks

2016-10-21 Thread Patrice Chotard
On 10/21/2016 11:08 AM, Peter Griffin wrote: > Lots of platforms contain clocks which if turned off would prove fatal. > The only way to recover is to restart the board(s). This driver takes > references to clocks which are required to be always-on. The Common > Clk Framework will then take refer

Re: [PATCH 4/6 v5] sched: propagate load during synchronous attach/detach

2016-10-21 Thread Dietmar Eggemann
On 10/17/2016 10:14 AM, Vincent Guittot wrote: When a task moves from/to a cfs_rq, we set a flag which is then used to propagate the change at parent level (sched_entity and cfs_rq) during next update. If the cfs_rq is throttled, the flag will stay pending until the cfs_rw is unthrottled. minor

Re: [PATCH]"drm: change DRM_MIPI_DSI module type from "bool" to "tristate".

2016-10-21 Thread Daniel Vetter
On Thu, Oct 20, 2016 at 04:44:49PM +0300, Jani Nikula wrote: > On Thu, 20 Oct 2016, Andrzej Hajda wrote: > > Hi Jani, > > > > Forgive me late response. > > > > On 12.10.2016 16:28, Jani Nikula wrote: > >> On Wed, 12 Oct 2016, Emil Velikov wrote: > >>> On 11 October 2016 at 10:33, Jani Nikula >

Re: [PATCH] [media] c8sectpfe: Remove clk_disable_unprepare hacks

2016-10-21 Thread Patrice Chotard
On 10/21/2016 10:55 AM, Peter Griffin wrote: > Now that CLK_PROC_STFE is defined as a critical clock in > DT, we can remove the commented clk_disable_unprepare from > the c8sectpfe driver. This means we now have balanced > clk*enable/disable calls in the driver, but on STiH407 > family the clock in

Re: [PATCH] mm, mempolicy: clean up __GFP_THISNODE confusion in policy_zonelist

2016-10-21 Thread Aneesh Kumar K.V
Vlastimil Babka writes: > On 10/21/2016 01:34 PM, Aneesh Kumar K.V wrote: >> Michal Hocko writes: >>> >> >> For both MPOL_PREFERED and MPOL_INTERLEAVE we pick the zone list from >> the node other than the current running node. Why don't we do that for >> MPOL_BIND ?ie, if the current node is not

Re: [RFC][PATCH 4/4] futex: Rewrite FUTEX_UNLOCK_PI

2016-10-21 Thread Peter Zijlstra
On Mon, Oct 10, 2016 at 12:17:48PM +0200, Thomas Gleixner wrote: > I fear, we need to rethink this whole locking/protection scheme from > scratch. Here goes... as discussed at ELCE this serializes the {uval, pi_state} state using pi_mutex->wait_lock. I did my best to reason about requeue_pi, but

Re: [PATCH] drm/fb-helper: Don't call dirty callback for untouched clips

2016-10-21 Thread Daniel Vetter
On Thu, Oct 20, 2016 at 05:00:35PM +0200, Takashi Iwai wrote: > On Thu, 20 Oct 2016 16:56:04 +0200, > Ville Syrjälä wrote: > > > > On Thu, Oct 20, 2016 at 04:39:52PM +0200, Takashi Iwai wrote: > > > Since 4.7 kernel, we've seen the error messages like > > > > > > kernel: [TTM] Buffer eviction fa

Re: [tip:x86/asm] x86/mm/64: Enable vmapped stacks (CONFIG_HAVE_ARCH_VMAP_STACK=y)

2016-10-21 Thread Matt Fleming
On Wed, 24 Aug, at 06:03:04AM, tip-bot for Andy Lutomirski wrote: > Commit-ID: e37e43a497d5a8b7c0cc1736d56986f432c394c9 > Gitweb: http://git.kernel.org/tip/e37e43a497d5a8b7c0cc1736d56986f432c394c9 > Author: Andy Lutomirski > AuthorDate: Thu, 11 Aug 2016 02:35:23 -0700 > Committer: Ingo M

Re: gpiolib-of: Cannot request gpio with multiple chips

2016-10-21 Thread Sylvain Lemieux
Hi Alex, On Thu, 2016-10-20 at 17:22 +0200, Axel Haslam wrote: > Hi Linus, > > I have recently started testing a omap-lcdk board which uses the > davinci gpio driver, > and im running into an issue when i try to request a gpio larger than 31, > which > i think might be a regression of gpiolib-o

[RFC 00/14] SoundWire bus driver

2016-10-21 Thread Hardik Shah
Following RFC series adds SoundWire bus driver interface based on the MIPI SoundWire specification 1.1 The SoundWire protocol is a robust, scalable, low complexity, low power, low latency, two-pin (clock and data) multi-drop bus that allows for the transfer of multiple audio streams and embedded c

[RFC 02/14] SoundWire: Add SoundWire stream documentation

2016-10-21 Thread Hardik Shah
This patch adds stream documentation describing SoundWire stream and stream states. Signed-off-by: Hardik Shah Signed-off-by: Sanyog Kale Reviewed-by: Pierre-Louis Bossart --- Documentation/sound/alsa/sdw/stream.txt | 346 +++ 1 file changed, 346 insertions(+) cre

Re: [PATCH] net: sctp, forbid negative length

2016-10-21 Thread Neil Horman
On Fri, Oct 21, 2016 at 02:13:24PM +0200, Jiri Slaby wrote: > Most of getsockopt handlers in net/sctp/socket.c check len against > sizeof some structure like: > if (len < sizeof(int)) > return -EINVAL; > > On the first look, the check seems to be correct. But since len is i

[RFC 07/14] SoundWire: Add SoundWire Slaves register definitions

2016-10-21 Thread Hardik Shah
Add register definitions for the SoundWire Slave. This is as per MIPI SoundWire spec 1.1. Signed-off-by: Hardik Shah Signed-off-by: Sanyog Kale Reviewed-by: Pierre-Louis Bossart --- include/sound/sdw/sdw_registers.h | 277 + 1 file changed, 277 insertions(+

[RFC 13/14] SoundWire: Add stream and port configuration

2016-10-21 Thread Hardik Shah
From: Sanyog Kale This patch adds APIs for stream and port configurations for SoundWire bus driver. Signed-off-by: Hardik Shah Signed-off-by: Sanyog Kale Reviewed-by: Pierre-Louis Bossart --- sound/sdw/sdw.c | 774 ++ sound/sdw/sdw_priv.h

[RFC 12/14] regmap: SoundWire: Add regmap support for SoundWire bus

2016-10-21 Thread Hardik Shah
Signed-off-by: Hardik Shah Signed-off-by: Sanyog Kale Reviewed-by: Pierre-Louis Bossart --- drivers/base/regmap/Kconfig |3 + drivers/base/regmap/Makefile |1 + drivers/base/regmap/regmap-sdw.c | 240 ++ include/linux/regmap.h |

[RFC 10/14] SoundWire: Add support for clock stop

2016-10-21 Thread Hardik Shah
This patch adds support for clock stop prepare, clock stop and clock resume. As a part of SoundWire clock stop sequence, Master driver needs to call APIs for. 1. Prepare Slaves for Clock Stop. 2. Broadcast ClockStopNow to all Slaves. As part of SoundWire clock stop resume sequence, Maste

[RFC 08/14] SoundWire: Add API for Slave registers read/write

2016-10-21 Thread Hardik Shah
This API is used by: 1. Bus driver to read/write MIPI defined registers. 2. Slave driver to read/write SoundWire Slave implementation defined registers. Slave driver should use regmap driver to access implementation defined registers, regmap driver uses read/

[RFC 09/14] SoundWire: Add support to handle Slave status change

2016-10-21 Thread Hardik Shah
This patch adds the support for updating the Slave status to bus driver. Master driver updates Slave status change to the bus driver. Bus driver takes appropriate action on Slave status change like. 1. Registering new device if new Slave got enumerated on bus. 2. Assigning the devi

[RFC 05/14] SoundWire: Add SoundWire bus driver interfaces

2016-10-21 Thread Hardik Shah
This patch adds the SoundWire bus driver interfaces for following. 1. APIs to register/unregister SoundWire Master device and driver. 2. APIs to register/unregister SoundWire Slave driver. 3. API to Read/Write Slave registers. 4. API for Master driver to update Slave status to bus driver. 5. APIs

[RFC 14/14] SoundWire: Add support for SoundWire stream management

2016-10-21 Thread Hardik Shah
From: Sanyog Kale This patch adds following changes: 1. Prepare and De-prepare operation for stream. 2. Enable and Disable operation for stream. 3. Computation of Bus and Transport parameters. 4. Programming of Bus and Transport Parameters. Signed-off-by: Hardik S

[RFC 11/14] SoundWire: Add tracing for Slave register read/write

2016-10-21 Thread Hardik Shah
Signed-off-by: Hardik Shah Signed-off-by: Sanyog Kale Reviewed-by: Pierre-Louis Bossart --- include/sound/sdw_bus.h|7 ++ include/trace/events/sdw.h | 209 sound/sdw/sdw.c| 37 3 files changed, 253 insertions(+) creat

Re: [PATCH 2/5] stop_machine: yield CPU during stop machine

2016-10-21 Thread Juergen Gross
On 21/10/16 14:05, Peter Zijlstra wrote: > On Fri, Oct 21, 2016 at 01:58:55PM +0200, Christian Borntraeger wrote: >> stop_machine can take a very long time if the hypervisor does >> overcommitment for guest CPUs. When waiting for "the one", lets >> give up our CPU by using the new cpu_relax_yield.

[RFC 04/14] SoundWire: Add device_id table for SoundWire bus

2016-10-21 Thread Hardik Shah
Add device_id table for the SoundWire Master and Slave devices and driver registration. Signed-off-by: Hardik Shah Signed-off-by: Sanyog Kale Reviewed-by: Pierre-Louis Bossart --- include/linux/mod_devicetable.h | 13 + 1 file changed, 13 insertions(+) diff --git a/include/linux

[RFC 01/14] SoundWire: Add SoundWire bus driver documentation

2016-10-21 Thread Hardik Shah
This patch adds summary documentation of SoundWire bus driver support in Linux. Signed-off-by: Hardik Shah Signed-off-by: Sanyog Kale Reviewed-by: Pierre-Louis Bossart --- Documentation/sound/alsa/sdw/summary.txt | 253 ++ 1 file changed, 253 insertions(+) create

[driver core] bea5b158ff: BUG: unable to handle kernel NULL pointer dereference at 00000000000002ac

2016-10-21 Thread Fengguang Wu
Greetings, 0day kernel testing robot got the below dmesg and the first bad commit is https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master commit bea5b158ff0da9c7246ff391f754f5f38e34577a Author: Rob Herring AuthorDate: Thu Aug 11 10:20:58 2016 -0500 Commit: Greg Kroa

[RFC 06/14] SoundWire: Add register/unregister APIs

2016-10-21 Thread Hardik Shah
This patch adds following SoundWire bus driver APIs. 1. Register SoundWire Master device and driver. 2. Register SoundWire Slave driver. 3. Register Slave device capabilities. Signed-off-by: Hardik Shah Signed-off-by: Sanyog Kale Reviewed-by: Pierre-Louis Bossart --- sound/Kconfig

[PATCH] Staging:wlan-ng:hfa384x: fixed 80 character line limit coding style issue

2016-10-21 Thread Nadim Almas
Fixed coding style issue Signed-off-by: Nadim Almas --- drivers/staging/wlan-ng/hfa384x.h | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/staging/wlan-ng/hfa384x.h b/drivers/staging/wlan-ng/hfa384x.h index 6337b1d..cca2652 100644 --- a/drivers/staging/wlan-ng

[RFC 03/14] SoundWire: Add error handling and locking documentation

2016-10-21 Thread Hardik Shah
This patch adds following documentation: 1. Bus driver locking mechanism. 2. Bus driver error handling. Signed-off-by: Hardik Shah Signed-off-by: Sanyog Kale Reviewed-by: Pierre-Louis Bossart --- Documentation/sound/alsa/sdw/error_handling.txt | 71 +++ Documentat

4.9 regression/bisection - 761ed4a94582 tty: serial_core: convert uart_close to use tty_port_close

2016-10-21 Thread Mike Galbraith
Greetings, My old DL980 G7 is exploding on reboot with master, with only the first couple lines actually making it to the console. Once (and only once) during bisection it did manage to get the below emitted. [ 358.315713] BUG: unable to handle kernel NULL pointer dereference at 01

Re: [PATCH v2] proc: fix NULL dereference when reading /proc//auxv

2016-10-21 Thread Leon Yu
On Fri, Oct 21, 2016 at 3:21 AM, Michal Hocko wrote: > On Thu 20-10-16 19:04:39, Oleg Nesterov wrote: >> On 10/20, Leon Yu wrote: >> > >> > --- a/fs/proc/base.c >> > +++ b/fs/proc/base.c >> > @@ -1014,6 +1014,9 @@ static ssize_t auxv_read(struct file *file, char >> > __user *buf, >> > { >> >

Re: [PATCH 2/2] cpuidle: governors: Move the files to the upper directory

2016-10-21 Thread Rafael J. Wysocki
On Wed, Oct 5, 2016 at 9:33 AM, Daniel Lezcano wrote: > Currently the different governors are stored in the subdir > 'governors'. That is not a problem. > > However, that forces to declare some private structure in the > include/linux/cpuidle.h header because these governor files > don't have acce

Re: [PATCH] drm/fb-helper: Don't call dirty callback for untouched clips

2016-10-21 Thread Takashi Iwai
On Fri, 21 Oct 2016 14:30:32 +0200, Daniel Vetter wrote: > > On Thu, Oct 20, 2016 at 05:00:35PM +0200, Takashi Iwai wrote: > > On Thu, 20 Oct 2016 16:56:04 +0200, > > Ville Syrjälä wrote: > > > > > > On Thu, Oct 20, 2016 at 04:39:52PM +0200, Takashi Iwai wrote: > > > > Since 4.7 kernel, we've see

[PATCH 1/8] CaitSith: Add header file.

2016-10-21 Thread Tetsuo Handa
This file defines data structures, prototypes and inlined functions used by CaitSith. In TOMOYO, the policy syntax requires positional mandatory parameters (e.g. pathname when opening a pathname, pathname and DAC permission mode when creating a pathname), and is using a dedicated data structure fo

[PATCH 05/26] ubifs: Define UBIFS crypto context xattr

2016-10-21 Thread Richard Weinberger
Like ext4 UBIFS will store the crypto context in a xattr attribute. Signed-off-by: Richard Weinberger --- fs/ubifs/ubifs-media.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/fs/ubifs/ubifs-media.h b/fs/ubifs/ubifs-media.h index e24380cf46ed..d47e9569b3de 100644 --- a/fs/ubifs/ubifs

[PATCH 10/26] ubifs: Enforce crypto policy in ->link and ->rename

2016-10-21 Thread Richard Weinberger
When a file is moved or linked into another directory its current crypto policy has to be compatible with the target policy. Signed-off-by: Richard Weinberger --- fs/ubifs/dir.c | 9 + 1 file changed, 9 insertions(+) diff --git a/fs/ubifs/dir.c b/fs/ubifs/dir.c index e80de3852c3e..a77ed

Re: [PATCH v5 1/4] drm/fence: add in-fences support

2016-10-21 Thread Daniel Vetter
On Thu, Oct 20, 2016 at 12:50:02PM -0200, Gustavo Padovan wrote: > From: Gustavo Padovan > > There is now a new property called FENCE_FD attached to every plane > state that receives the sync_file fd from userspace via the atomic commit > IOCTL. > > The fd is then translated to a fence (that may

[PATCH 1/2] kdb: Properly synchronize vkdb_printf() calls with other CPUs

2016-10-21 Thread Petr Mladek
kdb_printf_lock does not prevent other CPUs from entering the critical section because it is ignored when KDB_STATE_PRINTF_LOCK is set. The problematic situation might look like: CPU0CPU1 vkdb_printf() if (!KDB_STATE(PRINTF_LOCK)) KDB_STATE_SET(PRINTF_LO

[PATCH 3/8] CaitSith: Add policy I/O functions.

2016-10-21 Thread Tetsuo Handa
This file corresponds to security/tomoyo/common.c . There are 4 major policy files ("domain_policy", "exception_policy", "profile" and "manager") in TOMOYO while there is only 1 major policy file ("policy") in CaitSith. Signed-off-by: Tetsuo Handa --- security/caitsith/policy_io.c | 1553 +++

[PATCH 7/8] CaitSith: Add garbage collector functions.

2016-10-21 Thread Tetsuo Handa
This file corresponds to security/tomoyo/gc.c . Since CaitSith uses a common variable length data structure, garbage collector became simpler than TOMOYO. Signed-off-by: Tetsuo Handa --- security/caitsith/gc.c | 373 + 1 file changed, 373 insertion

[PATCH 6/8] CaitSith: Add policy loader functions.

2016-10-21 Thread Tetsuo Handa
This file allows userspace tools to load policy configuration unless CONFIG_SECURITY_CAITSITH_OMIT_USERSPACE_LOADER is defined. If CONFIG_SECURITY_CAITSITH_OMIT_USERSPACE_LOADER is defined, only built-in policy configuration which is generated as security/caitsith/builtin-policy.h at compilation t

[PATCH 4/8] CaitSith: Add permission check functions.

2016-10-21 Thread Tetsuo Handa
This file corresponds to security/tomoyo/condition.c and security/tomoyo/file.c . Compared to TOMOYO, a new wildcard /\(dir\)/ has been introduced for helping converting from (e.g.) "/tmp/\{\*\}/" to "/tmp/\(\*\)/\*", for directory's pathname (except the root directory itself) no longer ends with

[PATCH 26/26] ubifs: Raise write version to 5

2016-10-21 Thread Richard Weinberger
Starting with version 5 the following properties change: - UBIFS_FLG_DOUBLE_HASH is mandatory - UBIFS_FLG_ENCRYPTION is optional but depdens on UBIFS_FLG_DOUBLE_HASH - Filesystems with unknown super block flags will be rejected, this allows us in future to add new features without raising the

[PATCH 2/2] kdb: Call vkdb_printf() from vprintk_default() only when wanted

2016-10-21 Thread Petr Mladek
kdb_trap_printk allows to pass normal printk() messages to kdb via vkdb_printk(). For example, it is used to get backtrace using the classic show_stack(), see kdb_show_stack(). vkdb_printf() tries to avoid a potential infinite loop by disabling the trap. But this approach is racy, for example: CP

[PATCH 0/8] CaitSith LSM module

2016-10-21 Thread Tetsuo Handa
CaitSith (acronym for "Characteristic action inspection tool. See if this helps.") is an LSM based access control implementation which uses action check list (acl) as policy syntax. Syntax of an acl block is shown below. acl "Action" "Whether to check Action or not" "Decision1" "Whether to

[PATCH 8/8] CaitSith: Add Kconfig and Makefile

2016-10-21 Thread Tetsuo Handa
CaitSith uses LSM hooks and securityfs support. For now, CaitSith is not using security blobs (i.e. "void *security" field in data structures) so that you can enable CaitSith using Multiple Concurrent LSMs. Signed-off-by: Tetsuo Handa --- security/Kconfig | 6 ++ security/Makefile

Re: UBIFS with dma on 4.6 kernel is not working

2016-10-21 Thread Christoph Hellwig
On Fri, Oct 21, 2016 at 11:29:16AM +0200, Richard Weinberger wrote: > DMA to vmalloced memory not good, it may work by chance if you transfer > less than PAGE_SIZE. > Especially on ARM. DMA to vmalloc'ed or vmap memory is perfectly fine, you just have to be very careful. I would suggest to not ex

[PATCH 25/26] ubifs: Implement UBIFS_FLG_ENCRYPTION

2016-10-21 Thread Richard Weinberger
This feature flag indicates that the filesystem contains encrypted files. Signed-off-by: Richard Weinberger --- fs/ubifs/ioctl.c | 5 + fs/ubifs/sb.c | 40 fs/ubifs/ubifs-media.h | 2 ++ fs/ubifs/ubifs.h | 3 +++ 4 files change

[PATCH 2/8] CaitSith: Add pathname calculation functions.

2016-10-21 Thread Tetsuo Handa
This is a simplified version of security/tomoyo/realpath.c , except two changes listed below. A "\" character (0x5C) in TOMOYO is represented as "\\" while it in CaitSith is represented as "\134". This allows us to tell whether a "\" character at any position is a literal "\" character wit

[PATCH 5/8] CaitSith: Add LSM adapter functions.

2016-10-21 Thread Tetsuo Handa
This version implements only execve() related LSM hooks. Signed-off-by: Tetsuo Handa --- security/caitsith/lsm.c | 60 + 1 file changed, 60 insertions(+) create mode 100644 security/caitsith/lsm.c diff --git a/security/caitsith/lsm.c b/security/c

[PATCH 0/2] kdb: Fix locking in vkdb_printf()

2016-10-21 Thread Petr Mladek
I have been asked whether it is safe to call vkdb_printf() from vprintk_nmi() in NMI context. It seems that it is not safe. Well, is not a big deal. But I have noticed suspicious patterns when looking at the vkdb_printf() locking code and prepared two patches that should avoid some possible races.

Re: [PATCH v5 2/4] drm/fence: release fence reference when canceling event

2016-10-21 Thread Daniel Vetter
On Thu, Oct 20, 2016 at 12:50:03PM -0200, Gustavo Padovan wrote: > From: Gustavo Padovan > > If the event gets canceled we also need to put away the fence > reference it holds. > > Signed-off-by: Gustavo Padovan Reviewed-by: Daniel Vetter I've broken my local dim scripts right now, so can't

Re: [PATCH v2] drm/fb-helper: Don't call dirty callback for untouched clips

2016-10-21 Thread Ville Syrjälä
On Thu, Oct 20, 2016 at 05:05:30PM +0200, Takashi Iwai wrote: > Since 4.7 kernel, we've seen the error messages like > > kernel: [TTM] Buffer eviction failed > kernel: qxl :00:02.0: object_init failed for (4026540032, 0x0001) > kernel: [drm:qxl_alloc_bo_reserved [qxl]] *ERROR* failed to

[PATCH 24/26] ubifs: Implement UBIFS_FLG_DOUBLE_HASH

2016-10-21 Thread Richard Weinberger
This feature flag indicates that all directory entry nodes have a 32bit cookie set and therefore UBIFS is allowed to perform lookups by hash. Signed-off-by: Richard Weinberger --- fs/ubifs/journal.c | 14 +++--- fs/ubifs/sb.c | 2 ++ fs/ubifs/tnc.c | 3 +++ fs/ubif

[PATCH 19/26] ubifs: Implement encrypted filenames

2016-10-21 Thread Richard Weinberger
Signed-off-by: Richard Weinberger --- fs/ubifs/debug.c | 14 +-- fs/ubifs/dir.c | 284 +++-- fs/ubifs/journal.c | 76 +++--- fs/ubifs/key.h | 19 ++-- fs/ubifs/replay.c | 8 +- fs/ubifs/tnc.c | 54 +- fs/ubifs/ub

[PATCH 18/26] ubifs: Constify struct inode pointer in ubifs_crypt_is_encrypted()

2016-10-21 Thread Richard Weinberger
...and provide a non const variant for fscrypto Signed-off-by: Richard Weinberger --- fs/ubifs/crypto.c | 2 +- fs/ubifs/ubifs.h | 7 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/fs/ubifs/crypto.c b/fs/ubifs/crypto.c index 160c31479e0c..d19a097435f0 100644 --- a/fs/ubi

Re: [PATCH v5 3/4] drm/fence: add fence timeline to drm_crtc

2016-10-21 Thread Daniel Vetter
On Thu, Oct 20, 2016 at 12:50:04PM -0200, Gustavo Padovan wrote: > From: Gustavo Padovan > > Create one timeline context for each CRTC to be able to handle out-fences > and signal them. It adds a few members to struct drm_crtc: fence_context, > where we store the context we get from fence_context

[PATCH 22/26] ubifs: Add full hash lookup support

2016-10-21 Thread Richard Weinberger
UBIFS stores a 32bit hash of every file, for traditional lookups by name this scheme is fine since UBIFS can first try to find the file by the hash of the filename and upon collisions it can walk through all entries with the same hash and do a string compare. When filesnames are encrypted fscrypto

[PATCH 21/26] ubifs: Rename tnc_read_node_nm

2016-10-21 Thread Richard Weinberger
tnc_read_hashed_node() is a better name since we read a node by a given hash, not a name. Signed-off-by: Richard Weinberger --- fs/ubifs/tnc.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fs/ubifs/tnc.c b/fs/ubifs/tnc.c index 0d0030461cb4..0d751297873e 100644

Re: [PATCH] net: sched: make default fifo qdiscs appear in the dump

2016-10-21 Thread Jiri Kosina
On Fri, 21 Oct 2016, Eric Dumazet wrote: > Some of us are dealing with huge HTB hierarchies, so adding default fifo > in the dump will add more data pumped from the kernel. > > BwE [1] for instance dumps qdisc/classes every 5 seconds. > > I guess we'll need to not pull this patch in our kernels.

[PATCH 00/26] UBIFS File Encryption

2016-10-21 Thread Richard Weinberger
This patch series implements file level encryption for UBIFS. It makes use of the generic fscrypto framework as used by ext4 and f2fs. Among file contents also file names are encrypted, for more details on fscrypto please see [0] and [1]. To support encrypted files in UBIFS multiple preparations w

[PATCH 17/26] ubifs: Make r5 hash binary string aware

2016-10-21 Thread Richard Weinberger
As of now all filenames known by UBIFS are strings with a NUL terminator. With encrypted filenames a filename can be any binary string and the r5 function cannot search for the NUL terminator. UBIFS always knows how long a filename is, therefore we can change the hash function to iterate over the f

[PATCH 14/26] ubifs: Introduce new data node field, compr_size

2016-10-21 Thread Richard Weinberger
When data of a data node is compressed and encrypted we need to store the size of the compressed data because before encryption we may have to add padding bytes. For the new field we consume the last two padding bytes in struct ubifs_data_node. Two bytes are fine because the data length is at most

[PATCH 13/26] ubifs: Enforce crypto policy in mmap

2016-10-21 Thread Richard Weinberger
We need this extra check in mmap because a process could gain an already opened fd. Signed-off-by: Richard Weinberger --- fs/ubifs/file.c | 9 + 1 file changed, 9 insertions(+) diff --git a/fs/ubifs/file.c b/fs/ubifs/file.c index fc79278969e5..bd0049788e24 100644 --- a/fs/ubifs/file.c +

[PATCH 02/26] fscrypto: Constify struct inode pointer

2016-10-21 Thread Richard Weinberger
Some filesystems, such as UBIFS, maintain a const pointer for struct inode. Signed-off-by: Richard Weinberger --- fs/crypto/crypto.c | 12 +++- include/linux/fscrypto.h | 12 +++- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/fs/crypto/crypto.c b/fs/crypt

[PATCH 20/26] ubifs: Add support for encrypted symlinks

2016-10-21 Thread Richard Weinberger
Signed-off-by: Richard Weinberger --- fs/ubifs/dir.c | 81 +--- fs/ubifs/file.c | 55 +- fs/ubifs/super.c | 1 - 3 files changed, 125 insertions(+), 12 deletions(-) diff --git a/fs/ubifs/dir.c b/fs/ubifs/

[PATCH 15/26] ubifs: Implement encrypt/decrypt for all IO

2016-10-21 Thread Richard Weinberger
Signed-off-by: Richard Weinberger --- fs/ubifs/file.c| 36 ++ fs/ubifs/journal.c | 105 +++-- fs/ubifs/super.c | 6 ++- fs/ubifs/ubifs.h | 6 +++ 4 files changed, 131 insertions(+), 22 deletions(-) diff --git a/fs/ubifs

Re: [PATCH v5 4/4] drm/fence: add out-fences support

2016-10-21 Thread Daniel Vetter
On Thu, Oct 20, 2016 at 10:15:20PM +0300, Ville Syrjälä wrote: > On Thu, Oct 20, 2016 at 07:34:44PM +0300, Ville Syrjälä wrote: > > On Thu, Oct 20, 2016 at 01:55:38PM -0200, Gustavo Padovan wrote: > > > 2016-10-20 Ville Syrjälä : > > > > > > > On Thu, Oct 20, 2016 at 12:50:05PM -0200, Gustavo Pado

Re: [PATCH] drm/fb-helper: Don't call dirty callback for untouched clips

2016-10-21 Thread Ville Syrjälä
On Fri, Oct 21, 2016 at 02:48:49PM +0200, Takashi Iwai wrote: > On Fri, 21 Oct 2016 14:30:32 +0200, > Daniel Vetter wrote: > > > > On Thu, Oct 20, 2016 at 05:00:35PM +0200, Takashi Iwai wrote: > > > On Thu, 20 Oct 2016 16:56:04 +0200, > > > Ville Syrjälä wrote: > > > > > > > > On Thu, Oct 20, 201

[PATCH 23/26] ubifs: Use a random number for cookies

2016-10-21 Thread Richard Weinberger
Signed-off-by: Richard Weinberger --- fs/ubifs/journal.c | 3 +++ fs/ubifs/ubifs.h | 1 + 2 files changed, 4 insertions(+) diff --git a/fs/ubifs/journal.c b/fs/ubifs/journal.c index 50696c6e0ae2..dcecfbfbf40e 100644 --- a/fs/ubifs/journal.c +++ b/fs/ubifs/journal.c @@ -589,6 +589,7 @@ int ubif

Re: [PATCH] drm/fb-helper: Don't call dirty callback for untouched clips

2016-10-21 Thread Chris Wilson
On Fri, Oct 21, 2016 at 02:30:32PM +0200, Daniel Vetter wrote: > On Thu, Oct 20, 2016 at 05:00:35PM +0200, Takashi Iwai wrote: > > On Thu, 20 Oct 2016 16:56:04 +0200, > > Ville Syrjälä wrote: > > > > > > On Thu, Oct 20, 2016 at 04:39:52PM +0200, Takashi Iwai wrote: > > > > Since 4.7 kernel, we've

Re: [PATCH 2/2] gpio: ts4800: Fix module autoload

2016-10-21 Thread Linus Walleij
On Tue, Oct 18, 2016 at 10:44 PM, Javier Martinez Canillas wrote: > 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 module alias informatio

[PATCH 16/26] ubifs: Relax checks in ubifs_validate_entry()

2016-10-21 Thread Richard Weinberger
With encrypted filenames we store raw binary data, doing string tests is no longer possible. Signed-off-by: Richard Weinberger --- fs/ubifs/replay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ubifs/replay.c b/fs/ubifs/replay.c index 3ca4540130b5..f02adc49425b 100644 -

<    1   2   3   4   5   6   7   8   9   10   >