[PATCH 0/8] [media] tvp5150: add HW input connectors support

2016-02-05 Thread Javier Martinez Canillas
Hello, One of my test machines for MC is an IGEPv2 board that has a tvp5151 decoder attached to the OMAP3 ISP bridge. The board has 2 composite RCA input connectors on it but I've no way to switch those using the MC framework. The driver currently uses the s_routing callback to change the input

[PATCH 5/8] [media] tvp5150: add internal signal generator to HW input list

2016-02-05 Thread Javier Martinez Canillas
Some tvp5150 variants, have an internal generator that can generate a black screen output. Since this is a HW block, it should be in the HW inputs list. Signed-off-by: Javier Martinez Canillas --- include/media/i2c/tvp5150.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/media/i2c/

[PATCH 8/8] [media] tvp5150: add HW input connectors support

2016-02-05 Thread Javier Martinez Canillas
The tvp5150 decoder has different input connectors. The actual list of HW inputs depends on the device version but all have at least these 3: 1) Composite0 2) Composite1 3) S-Video and some variants have a 4th possible input connector: 4) Signal generator The driver currently uses the .s_routin

[PATCH 4/8] [media] tvp5150: store dev id and rom version

2016-02-05 Thread Javier Martinez Canillas
Not all tvp5150 variants support the same, for example some have an internal signal generator that can output a black screen. So the device id and rom version have to be stored in the driver's state to know what variant is a given device. While being there, remove some redundant comments about th

[PATCH 2/8] [media] v4l2-async: call registered_async after subdev registration

2016-02-05 Thread Javier Martinez Canillas
V4L2 sub-devices might need to do initialization that depends on being registered with a V4L2 device. As an example, sub-devices with Media Controller support may need to register entities and create pad links. Execute the registered_async callback after the sub-device has been registered with the

[PATCH 7/8] [media] tvp5150: document input connectors DT bindings

2016-02-05 Thread Javier Martinez Canillas
The tvp5150 decoder has different input connectors so extend the device tree binding to allow device tree source files to define the connectors that are available on a given board. Signed-off-by: Javier Martinez Canillas --- .../devicetree/bindings/media/i2c/tvp5150.txt | 43 ++

[PATCH V1 2/6] ras: acpi/apei: cper: generic error data entry v3 per ACPI 6.1

2016-02-05 Thread Tyler Baicar
Currently when a RAS error is reported it is not timestamped. The ACPI 6.1 spec adds the timestamp field to the generic error data entry v3 structure. The timestamp of when the firmware generated the error is now being reported. Signed-off-by: Jonathan (Zhixiong) Zhang Signed-off-by: Richard Ruig

[PATCH V1 1/6] acpi: apei: read ack upon ghes record consumption

2016-02-05 Thread Tyler Baicar
A RAS (Reliability, Availability, Serviceability) controller may be a separate processor running in parallel with OS execution, and may generate error records for consumption by the OS. If the RAS controller produces multiple error records, then they may be overwritten before the OS has consumed th

[PATCH 1/8] [media] v4l2-subdev: add registered_async subdev core operation

2016-02-05 Thread Javier Martinez Canillas
V4L2 sub-devices that are registered asynchronously have no way to know when they have been registration with a V4L2 device but they might need to take some action after this. So let's add a callback that can be executed by the V4L2 async core to allow sub-devices drivers to do any needed initiali

Re: [PATCH v3 3/3] portman2x4 - use new parport device model

2016-02-05 Thread Takashi Iwai
On Fri, 05 Feb 2016 18:21:46 +0100, Sudip Mukherjee wrote: > > On Friday 05 February 2016 10:36 PM, Takashi Iwai wrote: > > On Fri, 05 Feb 2016 18:01:16 +0100, > > Takashi Iwai wrote: > >> > >> On Fri, 05 Feb 2016 17:50:51 +0100, > >> Sudip Mukherjee wrote: > >>> > >>> On Friday 05 February 2016 0

[PATCH 6/8] [media] tvp5150: move input definition header to dt-bindings

2016-02-05 Thread Javier Martinez Canillas
Add a header file for the tvp5150 input connectors constants that can be shared between the driver and Device Tree source files. Signed-off-by: Javier Martinez Canillas --- drivers/media/i2c/tvp5150.c| 2 +- include/{media/i2c => dt-bindings/media}/tvp5150.h | 6 +++---

[PATCH V1 5/6] arm64: exception: handle instruction abort at current EL

2016-02-05 Thread Tyler Baicar
Add a handler for instruction aborts at the current EL (ESR_ELx_EC_IABT_CUR) so they are no longer handled in el1_inv. This allows firmware first handling for possible SEA (Synchronous External Abort) caused instruction abort at current EL. Signed-off-by: Tyler Baicar Signed-off-by: Naveen Kaje

Re: [PATCH 2/2] devicetree: Add DTS file to support the Nexus7 2013 (flo) device.

2016-02-05 Thread John Stultz
On Fri, Feb 5, 2016 at 11:01 AM, Rob Herring wrote: > On Fri, Feb 5, 2016 at 12:06 PM, John Stultz wrote: >> This patch adds a dts file to support the Nexus7 2013 >> device. Its based off of the qcom-apq8064-ifc6410.dts >> which is similar hardware. >> >> Also includes some comments and context f

[PATCH V1 0/6] Add UEFI 2.6 and ACPI 6.1 updates for RAS on ARM64

2016-02-05 Thread Tyler Baicar
Add support for Generic Hardware Error Source (GHES) v2, which introduces the capability for the OS to acknowledge the consumption of the error record generated by the Reliability, Availability and Serviceability (RAS) controller. This eliminates potential race conditions between the OS and the RAS

[PATCH 3/8] [media] tvp5150: put endpoint node on error

2016-02-05 Thread Javier Martinez Canillas
If the parallel mbus configuration is not correct, the endpoint device node isn't currently put again in the error path. Fix it. Signed-off-by: Javier Martinez Canillas --- drivers/media/i2c/tvp5150.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/tv

[PATCH V1 6/6] acpi: apei: handle SEA notification type for ARMv8

2016-02-05 Thread Tyler Baicar
ARM APEI extension proposal added SEA (Synchrounous External Abort) notification type for ARMv8. Add a new GHES error source handling function for SEA. If an error source's notification type is SEA, then this function can be registered into the SEA exception handler. That way GHES will parse and r

[PATCH V1 4/6] arm64: exception: handle Synchronous External Abort

2016-02-05 Thread Tyler Baicar
SEA exceptions are often caused by an uncorrected hardware error and are handled when data abort and instruction abort exception classes have specific values for their Fault Status Code. When SEA occurs, before killing the process, go through the handlers registered in the notification list. Upda

[PATCH V1 3/6] efi: parse ARMv8 processor error

2016-02-05 Thread Tyler Baicar
Add support for ARMv8 Common Platform Error Record (CPER). UEFI 2.6 specification adds support for ARMv8 specific processor error information to be reported as part of the CPER records. This provides more detail on for processor error logs. Signed-off-by: Jonathan (Zhixiong) Zhang Signed-off-by:

[PATCH] usb: phy: msm: Trigger USB state detection work in DRD mode

2016-02-05 Thread Srinivas Kandagatla
From: "Ivan T. Ivanov" When working in Dual Role Device mode, USB state machine is not kicked, when host or gadget drivers are loaded. Fix this be explicitly triggering state detection on client driver load. Issue is that if the board is booted without micro usb cable and usb device attached, ke

[PATCH 2/2 v2] devicetree: Add DTS file to support the Nexus7 2013 (flo) device.

2016-02-05 Thread John Stultz
This patch adds a dts file to support the Nexus7 2013 device. Its based off of the qcom-apq8064-ifc6410.dts which is similar hardware. Also includes some comments and context folded in from Vinay Simha BN Cc: Rob Herring Cc: Arnd Bergmann Cc: Pawel Moll Cc: Mark Rutland Cc: Ian Campbell Cc:

Re: [GIT PULL] sound fixes for 4.5-rc3

2016-02-05 Thread Linus Torvalds
On Fri, Feb 5, 2016 at 3:32 AM, Takashi Iwai wrote: > > please pull sound fixes for v4.5-rc3 from: > > git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git > tags/sound-4.5-rc3 Hmm. fatal: Couldn't find remote ref tags/sound-4.5-rc3 and looking at that repository, I don't see an

Re: [PATCH v4] iio: adc: Add TI ADS1015 ADC driver support

2016-02-05 Thread Daniel Baluta
On Fri, Feb 5, 2016 at 7:25 PM, Michael Welling wrote: > On Fri, Feb 05, 2016 at 03:17:18PM +0200, Daniel Baluta wrote: >> The driver has sysfs readings with runtime PM support for power saving. >> It also offers buffer support that can be used together with IIO software >> triggers. >> >> Datashe

Re: [PATCH v2 3/4] ARM: LG Optimus Black (P970) codename sniper support, with basic features

2016-02-05 Thread Paul Kocialkowski
Hi, Le vendredi 05 février 2016 à 19:42 +0100, Paul Kocialkowski a écrit : > The LG Optimus Black (P970) codename sniper is a smartphone that was designed > and manufactured by LG Electronics (LGE) and released back in 2011. > It is using an OMAP3630 SoC, GP version. > > This adds devicetree supp

Re: [PATCH v4 2/2] pci, pci-thunder-pem: Add PCIe host driver for ThunderX processors.

2016-02-05 Thread Bjorn Helgaas
On Fri, Feb 05, 2016 at 09:12:50AM -0800, David Daney wrote: > On 02/04/2016 07:10 PM, Bjorn Helgaas wrote: > >On Thu, Feb 04, 2016 at 04:28:29PM -0800, David Daney wrote: > >>On 02/04/2016 04:04 PM, Bjorn Helgaas wrote: > >>>On Tue, Jan 26, 2016 at 01:46:21PM -0800, David Daney wrote: > From:

Re: [PATCH v4] iio: adc: Add TI ADS1015 ADC driver support

2016-02-05 Thread Michael Welling
On Fri, Feb 05, 2016 at 09:32:34PM +0200, Daniel Baluta wrote: > On Fri, Feb 5, 2016 at 7:25 PM, Michael Welling wrote: > > On Fri, Feb 05, 2016 at 03:17:18PM +0200, Daniel Baluta wrote: > >> The driver has sysfs readings with runtime PM support for power saving. > >> It also offers buffer support

Re: [PATCH -v2] x86: Add an archinfo dumper module

2016-02-05 Thread Luck, Tony
Patch on top of your v2 that defines a register priting function based on a single string format descriptor. CR4 changed to use it. arch/x86/kernel/archinfo.c | 135 ++--- 1 file changed, 114 insertions(+), 21 deletions(-) We could break even on code lin

Re: [PATCH 2/6] arm64: dts: qcom: apq8016-sbc: add usb support

2016-02-05 Thread Stephen Boyd
On 02/05/2016 11:01 AM, Srinivas Kandagatla wrote: > + > + usb2513 { > + compatible = "smsc,usb3503"; > + reset-gpios = <&pm8916_gpios 3 GPIO_ACTIVE_LOW>; > + initial-mode = <1>; > + }; > + > + usb_id: u

Re: [PATCH 4/6] arm64: dts: qcom: add lpass node

2016-02-05 Thread Stephen Boyd
On 02/05/2016 11:01 AM, Srinivas Kandagatla wrote: > diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi > b/arch/arm64/boot/dts/qcom/msm8916.dtsi > index c1592d4..cdda026 100644 > --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi > +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi > @@ -343,6 +343,32 @@ >

[PATCH v3] synopsys pcie rc generic platform driver update

2016-02-05 Thread Joao Pinto
This patch tries to improve the host/pcie-synopsys branch including a new driver name, more accurate documentation and centralized link up validation. Other platform drivers were also updated to include the new centralized link up validation function. Signed-off-by: Joao Pinto --- Changes v2->v3:

[PATCH RESEND] bufferhead: Force inlining of buffer head flag operations

2016-02-05 Thread Denys Vlasenko
With both gcc 4.7.2 and 4.9.2, sometimes gcc mysteriously doesn't inline very small functions we expect to be inlined. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66122 With this .config: http://busybox.net/~vda/kernel_config_OPTIMIZE_INLINING_and_Os, set_buffer_foo(), clear_buffer_foo()

[GIT PULL for v4.5-rc3] media fixes

2016-02-05 Thread Mauro Carvalho Chehab
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media tags/media/v4.5-3 For the following fixes: * vb2: fix a vb2_thread regression and DVB read() breakages; * vsp1: fix compilation and links creation; * s5k6a3: Fix VIDIOC_SUBDEV_G_FMT ioctl for TR

Re: [V4.4-rc6 Regression] af_unix: Revert 'lock_interruptible' in stream receive code

2016-02-05 Thread Rainer Weikusat
Joseph Salisbury writes: > Hi Rainer, > > A kernel bug report was opened against Ubuntu [0]. After a kernel > bisect, it was found that reverting the following commit resolved this bug: > > commit 3822b5c2fc62e3de8a0f33806ff279fb7df92432 > Author: Rainer Weikusat > Date: Wed Dec 16 20:09:25 20

Re: [V4.4-rc6 Regression] af_unix: Revert 'lock_interruptible' in stream receive code

2016-02-05 Thread Joseph Salisbury
On 02/05/2016 02:59 PM, Rainer Weikusat wrote: > Joseph Salisbury writes: >> Hi Rainer, >> >> A kernel bug report was opened against Ubuntu [0]. After a kernel >> bisect, it was found that reverting the following commit resolved this bug: >> >> commit 3822b5c2fc62e3de8a0f33806ff279fb7df92432 >> A

Re: [PATCH] prctl: Add PR_SET_TIMERSLACK_PID for setting timer slack of an arbitrary thread.

2016-02-05 Thread Kees Cook
On Fri, Feb 5, 2016 at 10:08 AM, John Stultz wrote: > From: Ruchi Kandoi > > This allows power/performance management software to set timer > slack for other threads according to its policy for the thread > (such as when the thread is designated foreground vs. background > activity) > > Second ar

Re: [PATCH] prctl: Add PR_SET_TIMERSLACK_PID for setting timer slack of an arbitrary thread.

2016-02-05 Thread Andrew Morton
On Fri, 5 Feb 2016 10:08:43 -0800 John Stultz wrote: > From: Ruchi Kandoi > > This allows power/performance management software to set timer > slack for other threads according to its policy for the thread > (such as when the thread is designated foreground vs. background > activity) > > Seco

Re: [PATCH] prctl: Add PR_SET_TIMERSLACK_PID for setting timer slack of an arbitrary thread.

2016-02-05 Thread John Stultz
On Fri, Feb 5, 2016 at 12:10 PM, Kees Cook wrote: > On Fri, Feb 5, 2016 at 10:08 AM, John Stultz wrote: >> From: Ruchi Kandoi >> >> This allows power/performance management software to set timer >> slack for other threads according to its policy for the thread >> (such as when the thread is desi

Re: [PATCH] prctl: Add PR_SET_TIMERSLACK_PID for setting timer slack of an arbitrary thread.

2016-02-05 Thread John Stultz
On Fri, Feb 5, 2016 at 12:13 PM, Andrew Morton wrote: > On Fri, 5 Feb 2016 10:08:43 -0800 John Stultz wrote: >> @@ -2218,6 +,27 @@ SYSCALL_DEFINE5(prctl, int, option, unsigned long, >> arg2, unsigned long, arg3, >> case PR_GET_TID_ADDRESS: >> error = prctl_get_tid_addres

Re: [GIT PULL] sound fixes for 4.5-rc3

2016-02-05 Thread Takashi Iwai
On Fri, 05 Feb 2016 20:30:53 +0100, Linus Torvalds wrote: > > On Fri, Feb 5, 2016 at 3:32 AM, Takashi Iwai wrote: > > > > please pull sound fixes for v4.5-rc3 from: > > > > git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git > > tags/sound-4.5-rc3 > > Hmm. > > fatal: Couldn't f

Re: [PATCH] prctl: Add PR_SET_TIMERSLACK_PID for setting timer slack of an arbitrary thread.

2016-02-05 Thread Andrew Morton
On Fri, 5 Feb 2016 12:23:13 -0800 John Stultz wrote: > On Fri, Feb 5, 2016 at 12:13 PM, Andrew Morton > wrote: > > On Fri, 5 Feb 2016 10:08:43 -0800 John Stultz > > wrote: > >> @@ -2218,6 +,27 @@ SYSCALL_DEFINE5(prctl, int, option, unsigned long, > >> arg2, unsigned long, arg3, > >>

Re: [PATCH] PCI: layerscape: add ls2085a compatible

2016-02-05 Thread Bjorn Helgaas
[+cc Rob, et al] On Wed, Jan 27, 2016 at 09:32:05AM -0800, Yang Shi wrote: > The layerscape PCI host driver needs recognize ls2085a compatible when using > firmware with ls2085a compatible property, otherwise the PCI bus won't be > detected even though ls2085a compatible is included by the dts. >

Re: [PATCH] prctl: Add PR_SET_TIMERSLACK_PID for setting timer slack of an arbitrary thread.

2016-02-05 Thread John Stultz
On Fri, Feb 5, 2016 at 12:32 PM, Andrew Morton wrote: > On Fri, 5 Feb 2016 12:23:13 -0800 John Stultz wrote: >> On Fri, Feb 5, 2016 at 12:13 PM, Andrew Morton >> wrote: >>> >>> IOW, it would be more consistent to add sys_set_timer_slack()? >> >> I'm fine with moving this way. >> >> Ruchi/Rom: An

[PATCH v4 1/3] rtc: Add functions to set and read rtc offset

2016-02-05 Thread Joshua Clayton
A number of rtc devices, such as the NXP pcf2123 include a facility to adjust the clock in order to compensate for temperature or a crystal, capacitor, etc, that results in the rtc clock not running at exactly 32.768 kHz. Data sheets I have seen refer to this as a clock offset, and measure it in p

[PATCH v4 2/3] rtc: implement a sysfs interface for clock offset

2016-02-05 Thread Joshua Clayton
clock offset may be set and read in decimal parts per billion attribute is /sys/class/rtc/rtcN/offset The attribute is only visible for rtcs that have set_offset implemented. Signed-off-by: Joshua Clayton --- Documentation/rtc.txt | 6 ++ drivers/rtc/rtc-sysfs.c | 35 +

[PATCH v4 3/3] rtc-pcf2123: implement read_offset and set_offset

2016-02-05 Thread Joshua Clayton
pcf2123 has an offset register, which can be used to make minor adjustments to the clock rate to compensate for temperature or a crystal that is not exactly right. Signed-off-by: Joshua Clayton --- drivers/rtc/rtc-pcf2123.c | 57 +++ 1 file changed, 57

Re: [PATCH] prctl: Add PR_SET_TIMERSLACK_PID for setting timer slack of an arbitrary thread.

2016-02-05 Thread Kees Cook
On Fri, Feb 5, 2016 at 12:39 PM, John Stultz wrote: > On Fri, Feb 5, 2016 at 12:32 PM, Andrew Morton > wrote: >> On Fri, 5 Feb 2016 12:23:13 -0800 John Stultz wrote: >>> On Fri, Feb 5, 2016 at 12:13 PM, Andrew Morton >>> wrote: IOW, it would be more consistent to add sys_set_timer_sla

Re: [PATCH] PCI: layerscape: add ls2085a compatible

2016-02-05 Thread Shi, Yang
On 2/5/2016 12:38 PM, Bjorn Helgaas wrote: [+cc Rob, et al] On Wed, Jan 27, 2016 at 09:32:05AM -0800, Yang Shi wrote: The layerscape PCI host driver needs recognize ls2085a compatible when using firmware with ls2085a compatible property, otherwise the PCI bus won't be detected even though ls208

Re: [PATCH] vsprintf: kptr_restrict is okay in IRQ when 2

2016-02-05 Thread Kees Cook
On Fri, Feb 5, 2016 at 5:45 AM, Jason A. Donenfeld wrote: > The kptr_restrict flag, when set to 1, only prints the kernel > address when the user has CAP_SYSLOG. When it is set to 2, the > kernel address is always printed as zero. When set to 1, this > needs to check whether or not we're in IRQ. H

Re: Crashes with 874bbfe600a6 in 3.18.25

2016-02-05 Thread Mike Galbraith
On Fri, 2016-02-05 at 11:49 -0500, Tejun Heo wrote: > Hello, Mike. > > On Thu, Feb 04, 2016 at 03:00:17AM +0100, Mike Galbraith wrote: > > Isn't it the case that, currently at least, each and every spot that > > requires execution on a specific CPU yet does not take active measures > > to deal wit

Re: [PATCH] prctl: Add PR_SET_TIMERSLACK_PID for setting timer slack of an arbitrary thread.

2016-02-05 Thread Andrew Morton
On Fri, 5 Feb 2016 12:44:04 -0800 Kees Cook wrote: > On Fri, Feb 5, 2016 at 12:39 PM, John Stultz wrote: > > On Fri, Feb 5, 2016 at 12:32 PM, Andrew Morton > > wrote: > >> On Fri, 5 Feb 2016 12:23:13 -0800 John Stultz > >> wrote: > >>> On Fri, Feb 5, 2016 at 12:13 PM, Andrew Morton > >>> wro

Re: [PATCH v2 1/4] lib: move strtobool to kstrtobool

2016-02-05 Thread Kees Cook
On Thu, Feb 4, 2016 at 3:55 PM, Rasmus Villemoes wrote: > On Thu, Feb 04 2016, Kees Cook wrote: > >> Create the kstrtobool_from_user helper and moves strtobool logic into >> the new kstrtobool (matching all the other kstrto* functions). Provides >> an inline wrapper for existing strtobool callers

Re: Crashes with 874bbfe600a6 in 3.18.25

2016-02-05 Thread Tejun Heo
Hello, Mike. On Fri, Feb 05, 2016 at 09:47:11PM +0100, Mike Galbraith wrote: > That very point is what makes it wrong for the workqueue code to ever > target a work item. The instant it does target selection, correctness > may be at stake, it doesn't know, thus it must assume the full onus, > whi

Re: Crashes with 874bbfe600a6 in 3.18.25

2016-02-05 Thread Mike Galbraith
On Fri, 2016-02-05 at 15:54 -0500, Tejun Heo wrote: > What are you suggesting? That 874bbfe6 should die. -Mike

ALERT!

2016-02-05 Thread Admin Support
Dear User, This is to inform you that on the 1st February 2016, we updated our webmail display framework with the all new Display and Network EPM. We’ve temporarily limited what you can do with your email account as you are still using the old server. Update your email to gain full access to al

Re: Crashes with 874bbfe600a6 in 3.18.25

2016-02-05 Thread Tejun Heo
On Fri, Feb 05, 2016 at 09:59:49PM +0100, Mike Galbraith wrote: > On Fri, 2016-02-05 at 15:54 -0500, Tejun Heo wrote: > > > What are you suggesting? > > That 874bbfe6 should die. Yeah, it's gonna be killed. The commit is there because the behavior change broke things. We don't want to guarante

[3.13.y-ckt stable] Linux 3.13.11-ckt34

2016-02-05 Thread Kamal Mostafa
I am announcing the release of the Linux 3.13.11-ckt34 kernel. The updated 3.13.y-ckt tree can be found at: git://kernel.ubuntu.com/ubuntu/linux.git linux-3.13.y and can be browsed at: http://kernel.ubuntu.com/git/ubuntu/linux.git/log/?h=linux-3.13.y The diff from v3.13.11-ckt33 is poste

Re: [3.13.y-ckt stable] Linux 3.13.11-ckt34

2016-02-05 Thread Kamal Mostafa
diff --git a/Makefile b/Makefile index 03edcd7..85fc0f0 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ VERSION = 3 PATCHLEVEL = 13 SUBLEVEL = 11 -EXTRAVERSION = -ckt33 +EXTRAVERSION = -ckt34 NAME = King of Alienated Frog Porn # *DOCUMENTATION* diff --git a/arch/arm64/kernel/ptrace.c b/

fs: NULL deref in atime_needs_update

2016-02-05 Thread Dmitry Vyukov
Hello, I've hit the following GPF while running syzkaller fuzzer: general protection fault: [#1] SMP DEBUG_PAGEALLOC KASAN Modules linked in: CPU: 1 PID: 5178 Comm: syz-executor Not tainted 4.5.0-rc2+ #65 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 task:

[PATCH v3 4/4] param: convert some "on"/"off" users to strtobool

2016-02-05 Thread Kees Cook
This changes several users of manual "on"/"off" parsing to use strtobool. Some side-effects: - these uses will now parse y/n/1/0 meaningfully too - the early_param uses will now bubble up parse errors Signed-off-by: Kees Cook Acked-by: Heiko Carstens Acked-by: Michael Ellerman Cc: x...@kernel.

RE: [PATCH] PCI: layerscape: add ls2085a compatible

2016-02-05 Thread Yang-Leo Li
> On Fri, Feb 05, 2016 at 06:07:10AM +, Minghuan Lian wrote: > > The patch is ok to me. > > Thanks, I'll transform that into an ack. Also Acked-by: Li Yang > > Who's going to post a patch to update MAINTAINERS to fix the @freescale.com > addresses? If we can get that in for v4.5, it will

[PATCH v3 3/4] lib: add "on"/"off" support to kstrtobool

2016-02-05 Thread Kees Cook
Add support for "on" and "off" when converting to boolean. Signed-off-by: Kees Cook --- v3: - add dropped descripion change, andy.shevchenko --- lib/kstrtox.c | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/lib/kstrtox.c b/lib/kstrtox.c index e8ba4a013e8

[PATCH v3 0/4] lib: add "on" and "off" to strtobool

2016-02-05 Thread Kees Cook
This consolidates logic for handling "on"/"off" parsing for bools into the strtobool function, by way of moving it into kstrtobool (with helpers), and updating various callers. v3: - removed unused "base" argument - fixed missing description change - retained inverted __setup return values - remov

[PATCH v3 1/4] lib: move strtobool to kstrtobool

2016-02-05 Thread Kees Cook
Create the kstrtobool_from_user helper and moves strtobool logic into the new kstrtobool (matching all the other kstrto* functions). Provides an inline wrapper for existing strtobool callers. Signed-off-by: Kees Cook --- v3: - drop needless "base" argument, rasmus --- include/linux/kernel.h | 2

[PATCH v3 2/4] lib: update single-char callers of strtobool

2016-02-05 Thread Kees Cook
Some callers of strtobool were passing a pointer to unterminated strings. In preparation of adding multi-character processing to kstrtobool, update the callers to not pass single-character pointers, and switch to using the new kstrtobool_from_user helper where possible. Signed-off-by: Kees Cook C

Re: [PATCH v4] iio: adc: Add TI ADS1015 ADC driver support

2016-02-05 Thread Lucas De Marchi
Hi Daniel, On Fri, Feb 5, 2016 at 11:17 AM, Daniel Baluta wrote: > + > +static const struct i2c_device_id ads1015_id[] = { > + {"ads1015", 0}, > + {} > +}; Since this module is not 100% compatible with the hwmon version, wouldn't it be better to use another id? Other than that, I te

Re: [PATCH v2] floppy: refactor open() flags handling (was Re: mm: uninterruptable tasks hanged on mmap_sem)

2016-02-05 Thread Dmitry Vyukov
On Fri, Feb 5, 2016 at 5:40 PM, Jiri Kosina wrote: > On Fri, 5 Feb 2016, Dmitry Vyukov wrote: > >> I don't have any objections. And I agree that it does not make sense >> to spend any considerable time on optimizing this driver. > > Yeah, on a second thought this definitely is the way how to deal

Re: [PATCH v2 2/4] lib: update single-char callers of strtobool

2016-02-05 Thread Kees Cook
On Fri, Feb 5, 2016 at 2:46 AM, David Laight wrote: > From: Kees Cook >> Sent: 04 February 2016 21:01 >> Some callers of strtobool were passing a pointer to unterminated strings. >> In preparation of adding multi-character processing to kstrtobool, update >> the callers to not pass single-characte

Re: [V4.4-rc6 Regression] af_unix: Revert 'lock_interruptible' in stream receive code

2016-02-05 Thread Rainer Weikusat
Joseph Salisbury writes: > On 02/05/2016 02:59 PM, Rainer Weikusat wrote: [recvmsg w/o iovecs returning ENOTSUP for CMSG requests] >> Funny little problem :-). The code using the interruptible lock cleared >> err as side effect hence the >> >> out: >> return copied ? : err; >> >> at the end

Re: tty: deadlock between n_tracerouter_receivebuf and flush_to_ldisc

2016-02-05 Thread Dmitry Vyukov
On Thu, Feb 4, 2016 at 7:48 PM, Dmitry Vyukov wrote: > Hopefully, once the problem with the bad stacktraces are fixed, the > actual circular lock dependencies will be clear. >> >>> Found a bug in lockdep. Yes, the first stack is correct, and the saved >>> stack is just a random, unrelated

Re: [PATCH] arm64: reenable interrupt when handling ptrace breakpoint

2016-02-05 Thread Shi, Yang
On 1/13/2016 10:10 AM, Shi, Yang wrote: On 1/13/2016 9:23 AM, Will Deacon wrote: On Wed, Jan 13, 2016 at 09:17:46AM -0800, Shi, Yang wrote: On 1/13/2016 2:26 AM, Will Deacon wrote: On Tue, Jan 12, 2016 at 11:59:54AM -0800, Shi, Yang wrote: This might be buried in email storm during the holida

Re: gigaset: memory leak in gigaset_initcshw

2016-02-05 Thread Dmitry Vyukov
On Fri, Feb 5, 2016 at 7:36 PM, Paul Bolle wrote: > On vr, 2016-02-05 at 17:06 +0100, Paul Bolle wrote: >> If that would happen, then cs can be reused while the previous >> > cs->hw.ser is not freed yet. Just a guess. >> >> I'll have to ponder on that a bit, sorry. > > This is from the hit-the-cod

[PATCH v16 0/6] Device Tree support for FPGA programming

2016-02-05 Thread atull
From: Alan Tull v16 Refactors the FPGA Area and FPGA Bus into single thing called an FPGA Region and eliminates using simple-bus. I'm using the word "region" as it's a term is used in the literature of both the major FPGA manufacturors. Changes for v16: * Refactor the FPGA Area and FPGA Bus int

[PATCH v16 2/6] add sysfs document for fpga bridge class

2016-02-05 Thread atull
From: Alan Tull Add documentation for new FPGA bridge class's sysfs interface. Signed-off-by: Alan Tull -- v15: Document added in v15 of patch set v16: No change to this patch in v16 of patch set --- Documentation/ABI/testing/sysfs-class-fpga-bridge | 11 +++ 1 file changed, 11 inser

[PATCH v16 5/6] fpga: fpga-region: device tree control for FPGA

2016-02-05 Thread atull
From: Alan Tull FPGA Regions support programming FPGA under control of the Device Tree. Signed-off-by: Alan Tull --- v9: initial version (this patch added during rest of patchset's v9) v10: request deferral if fpga mgr or bridges not available yet cleanup as fpga manager core goes into th

[PATCH v16 4/6] fpga: add fpga bridge framework

2016-02-05 Thread atull
From: Alan Tull This framework adds API functions for enabling/ disabling FPGA bridges under kernel control. This allows the Linux kernel to disable FPGA bridges during FPGA reprogramming and to enable FPGA bridges when FPGA reprogramming is done. This framework is be manufacturer-agnostic, all

[PATCH v16 6/6] ARM: socfpga: fpga bridge driver support

2016-02-05 Thread atull
From: Alan Tull Supports Altera SOCFPGA bridges: * fpga2sdram * fpga2hps * hps2fpga * lwhps2fpga Allows enabling/disabling the bridges through the FPGA Bridge Framework API functions. The fpga2sdram driver only supports enabling and disabling of the ports that been configured early on. Thi

[PATCH v16 3/6] ARM: socfpga: add bindings document for fpga bridge drivers

2016-02-05 Thread atull
From: Alan Tull Add bindings documentation for Altera SOCFPGA bridges: * fpga2sdram * fpga2hps * hps2fpga * lwhps2fpga Signed-off-by: Alan Tull Signed-off-by: Matthew Gerlach Signed-off-by: Dinh Nguyen --- v2: separate into 2 documents for the 2 drivers v12: bump version to line up with

[PATCH v16 1/6] fpga: add bindings document for fpga region

2016-02-05 Thread atull
From: Alan Tull New bindings document for FPGA Region to support programming FPGA's under Device Tree control Signed-off-by: Alan Tull Signed-off-by: Moritz Fischer --- v9: initial version added to this patchset v10: s/fpga/FPGA/g replace DT overlay example with slightly more complicated

Re: [PATCH v4] iio: adc: Add TI ADS1015 ADC driver support

2016-02-05 Thread Daniel Baluta
On Fri, Feb 5, 2016 at 11:02 PM, Lucas De Marchi wrote: > Hi Daniel, > > On Fri, Feb 5, 2016 at 11:17 AM, Daniel Baluta > wrote: >> + >> +static const struct i2c_device_id ads1015_id[] = { >> + {"ads1015", 0}, >> + {} >> +}; > > Since this module is not 100% compatible with the hwmon

Re: [PATCH] net: smc911x: convert pxa dma to dmaengine

2016-02-05 Thread Robert Jarzmik
Robert Jarzmik writes: > David Miller writes: > >> From: Robert Jarzmik >> Date: Mon, 30 Nov 2015 22:40:28 +0100 >> >>> Convert the dma transfers to be dmaengine based, now pxa has a dmaengine >>> slave driver. This makes this driver a bit more PXA agnostic. >>> >>> The driver was only compile

Re: [V4.4-rc6 Regression] af_unix: Revert 'lock_interruptible' in stream receive code

2016-02-05 Thread Rainer Weikusat
The present unix_stream_read_generic contains various code sequences of the form err = -EDISASTER; if () goto out; This has the unfortunate side effect of possibly causing the error code to bleed through to the final out: return copied ? : err; and then to be wrongly returned if

Re: [PATCH v2] ARM: mm: flip priority of CONFIG_DEBUG_RODATA

2016-02-05 Thread Kees Cook
On Mon, Jan 4, 2016 at 2:07 PM, Russell King - ARM Linux wrote: > On Mon, Jan 04, 2016 at 12:34:28PM -0800, Kees Cook wrote: >> On Wed, Dec 23, 2015 at 4:34 PM, Russell King - ARM Linux >> wrote: >> > On Wed, Dec 23, 2015 at 04:11:22PM -0800, Tony Lindgren wrote: >> >> * Nicolas Pitre [151223 13

Re: [PATCH V2] i2c: i801: Adding Intel Lewisburg support for iTCO

2016-02-05 Thread Alexandra Yates
Hi Wolfram, On 02/04/2016 03:27 PM, Wolfram Sang wrote: On Thu, Feb 04, 2016 at 03:06:55PM -0800, Alexandra Yates wrote: Starting from Intel Sunrisepoint (Skylake PCH) the iTCO watchdog resources have been moved to reside under the i801 SMBus host controller whereas previously they were under t

Re: [PATCH] vsprintf: kptr_restrict is okay in IRQ when 2

2016-02-05 Thread Jason A. Donenfeld
On Fri, Feb 5, 2016 at 9:46 PM, Kees Cook wrote: > > Instead of doing a double-check of kptr_restrict, how about moving > this logic down into the "case 1" test? I think that would be more > readable in the end. Good thinking. Will roll v2.

Re: [REGRESSION] mm: filemap_map_pages NULL pointer dereference

2016-02-05 Thread Andrew Morton
On Fri, 5 Feb 2016 10:05:02 -0800 Jeremiah Mahler wrote: > all, > > On a Lenovo X1 Carbon running -next (20160201+, 20160203+) I have > experienced several system hangs. I usually notice it first when > my browser (Chrome) stops responding but then other programs will stop > responding as well.

[PATCH v2] vsprintf: kptr_restrict is okay in IRQ when 2

2016-02-05 Thread Jason A. Donenfeld
The kptr_restrict flag, when set to 1, only prints the kernel address when the user has CAP_SYSLOG. When it is set to 2, the kernel address is always printed as zero. When set to 1, this needs to check whether or not we're in IRQ. However, when set to 2, this check is unneccessary, and produces con

Re: [V4.4-rc6 Regression] af_unix: Revert 'lock_interruptible' in stream receive code

2016-02-05 Thread Rainer Weikusat
Rainer Weikusat writes: > Joseph Salisbury writes: >> On 02/05/2016 02:59 PM, Rainer Weikusat wrote: > > [recvmsg w/o iovecs returning ENOTSUP for CMSG requests] [...] > There are more problems wrt handling control-message only reads in this > code. [...] > it will return without an error but

Re: [PATCH V2] i2c: i801: Adding Intel Lewisburg support for iTCO

2016-02-05 Thread Alexandra Yates
Hi Jean, Thank you for your review and feedback. On 02/05/2016 01:48 AM, Jean Delvare wrote: On Fri, 5 Feb 2016 00:27:46 +0100, Wolfram Sang wrote: On Thu, Feb 04, 2016 at 03:06:55PM -0800, Alexandra Yates wrote: Starting from Intel Sunrisepoint (Skylake PCH) the iTCO watchdog resources have

Re: [PATCH v2] vsprintf: kptr_restrict is okay in IRQ when 2

2016-02-05 Thread Kees Cook
On Fri, Feb 5, 2016 at 2:03 PM, Jason A. Donenfeld wrote: > The kptr_restrict flag, when set to 1, only prints the kernel > address when the user has CAP_SYSLOG. When it is set to 2, the > kernel address is always printed as zero. When set to 1, this > needs to check whether or not we're in IRQ. H

Re: [REGRESSION] mm: filemap_map_pages NULL pointer dereference

2016-02-05 Thread Andrew Morton
On Fri, 5 Feb 2016 10:05:02 -0800 Jeremiah Mahler wrote: > On a Lenovo X1 Carbon running -next (20160201+, 20160203+) I have > experienced several system hangs. I usually notice it first when > my browser (Chrome) stops responding but then other programs will stop > responding as well. The only

RE: [PATCH -v2] x86: Add an archinfo dumper module

2016-02-05 Thread Luck, Tony
+ show_reg_bits(m, "CR4", cr4_format, cr4); Can %pXX formats use more than one argument? If so, we might be able to move all my code to lib/vsprintf.c and just write: seq_printf(m, "CR4: %pBITS: 0x%lx\n", cr4_format, cr4, cr4); If they can't, we could bundle the format and value

Re: [PATCH 2/2] dax: fix bdev NULL pointer dereferences

2016-02-05 Thread Ross Zwisler
On Thu, Feb 04, 2016 at 09:29:57PM +0100, Jan Kara wrote: > I think changes aren't very intrusive so we can feed them in during RC > phase and frankly, you have to move to using ->writepages() anyway to make > sync(2) work reliably. I've been looking into this a bit more, and I don't think we actu

Re: [PATCH] PCI: layerscape: add ls2085a compatible

2016-02-05 Thread Bjorn Helgaas
On Fri, Feb 05, 2016 at 12:45:25PM -0800, Shi, Yang wrote: > On 2/5/2016 12:38 PM, Bjorn Helgaas wrote: > >[+cc Rob, et al] > > > >On Wed, Jan 27, 2016 at 09:32:05AM -0800, Yang Shi wrote: > >>The layerscape PCI host driver needs recognize ls2085a compatible when using > >>firmware with ls2085a com

Re: Bisected Regression 4.3.5 => 4.4.1 booting HP ZBook in EFI mode

2016-02-05 Thread Greg Kroah-Hartman
On Fri, Feb 05, 2016 at 04:48:52PM -0500, Phil Turmel wrote: > Hello all, > > I tried to get off of v4.3.x today by moving to v4.4.1. > My laptop failed to boot -- stuck with the BIOS boot logo still > showing. I'm direct-booting a merged kernel & initramfs in > EFI mode. > > I bisected to badc6

[PATCH] af_unix: Don't set err in unix_stream_read_generic unless there was an error

2016-02-05 Thread Rainer Weikusat
The present unix_stream_read_generic contains various code sequences of the form err = -EDISASTER; if () goto out; This has the unfortunate side effect of possibly causing the error code to bleed through to the final out: return copied ? : err; and then to be wrongly returned if

Re: [PATCH] net: smc911x: convert pxa dma to dmaengine

2016-02-05 Thread David Miller
From: Robert Jarzmik Date: Fri, 05 Feb 2016 22:44:56 +0100 > Apart from Alberto who answered he cannot test it by lack of hardware, the > others didn't answer. > > So how can I move forward ? Would you want me to amend the KConfig to add a > "&& > !ARCH_PXA" on the "depend" line ? Please just

Re: [PATCH] prctl: Add PR_SET_TIMERSLACK_PID for setting timer slack of an arbitrary thread.

2016-02-05 Thread John Stultz
On Fri, Feb 5, 2016 at 12:50 PM, Andrew Morton wrote: > On Fri, 5 Feb 2016 12:44:04 -0800 Kees Cook wrote: >> Could this be exposed as a writable /proc entry instead? Like the oom_* >> stuff? > > /proc//timer_slack_ns, guarded by ptrace_may_access(), documented > under Documentation/? Yup, that

Re: [PATCH 0/3] PCI: Clean up warnings

2016-02-05 Thread Bjorn Helgaas
On Tue, Feb 02, 2016 at 01:20:28PM -0600, Bjorn Helgaas wrote: > I'm on a quest to clean up compiler warnings in drivers/pci. I'd like to > be able to treat warnings as errors, at least for the 0day build robot. > > --- > > Bjorn Helgaas (3): > PCI: Check device_attach() return value alway

Re: [PATCH 0/5] Clean up warnings (part 2, asm/pci-bridge.h)

2016-02-05 Thread Bjorn Helgaas
On Tue, Feb 02, 2016 at 01:38:26PM -0600, Bjorn Helgaas wrote: > We've had some non-arch-specific stuff (pci_has_flag() and associated > definitions like PCI_PROBE_ONLY) in asm/pci-bridge.h. This leads to > warnings like: > > drivers/pci/host/pcie-designware.c:562:20: error: 'PCI_PROBE_ONLY' >

Re: [PATCH v16 1/6] fpga: add bindings document for fpga region

2016-02-05 Thread Josh Cartwright
Hey Alan- First off, thanks for all of your (and others') work on this. On Fri, Feb 05, 2016 at 03:29:58PM -0600, at...@opensource.altera.com wrote: > From: Alan Tull > > New bindings document for FPGA Region to support programming > FPGA's under Device Tree control > > Signed-off-by: Alan Tul

Re: [PATCH v2 9/10] cpufreq: governor: Rearrange governor data structures

2016-02-05 Thread Rafael J. Wysocki
On Friday, February 05, 2016 02:43:57 PM Viresh Kumar wrote: > On 05-02-16, 03:21, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > The struct policy_dbs_info objects representing per-policy governor > > data are not accessible directly from the corresponding policy > > objects. To a

<    1   2   3   4   5   6   7   8   >