[PATCH 3/5] ARM: DTS: am33xx: Set pwmss ranges property to an empty value

2016-03-07 Thread Franklin S Cooper Jr
The eCAP and ePWM are in the same address space as the PWMSS. Therefore, no address translation is needed which means the ranges property should be empty. This mimics how the PWMSS nodes look in the AM4372.dtsi which is similar to AM335x. Signed-off-by: Franklin S Cooper Jr --- arch/arm/boot/dt

[PATCH 2/5] ARM: DTS: da850/am4372/am33xx: Use generic node name for ehrpwm

2016-03-07 Thread Franklin S Cooper Jr
When possible generic node names should be used. So change the node name from ehrpwm to pwm. Signed-off-by: Franklin S Cooper Jr --- arch/arm/boot/dts/am33xx.dtsi | 6 +++--- arch/arm/boot/dts/am4372.dtsi | 12 ++-- arch/arm/boot/dts/da850.dtsi | 4 ++-- 3 files changed, 11 insertions

[PATCH 5/5] pwm: pwm-tiehrpwm: Update dt binding document to use generic node name

2016-03-07 Thread Franklin S Cooper Jr
Now that the node name has been changed from ehrpwm to pwm the document should show this proper usage. Also change the unit address in the example from 0 to the proper physical address value that should be used. Signed-off-by: Franklin S Cooper Jr --- Documentation/devicetree/bindings/pwm/pwm-ti

[PATCH 1/5] clk: ti: am335x/am4372: Add tbclk to pwm node

2016-03-07 Thread Franklin S Cooper Jr
Add tblck to the pwm nodes. This insures that the ehrpwm driver has access to the time-based clk. Do not remove similar entries for ehrpwm node. Later patches will switch from using ehrpwm node name to pwm. But to maintain ABI compatibility we shouldn't remove the old entries. Signed-off-by: Fran

Re: [PATCH v2] sparc64: Add support for Application Data Integrity (ADI)

2016-03-07 Thread Andy Lutomirski
On Mon, Mar 7, 2016 at 11:44 AM, Khalid Aziz wrote: > On 03/07/2016 11:49 AM, Andy Lutomirski wrote: >> >> On Mon, Mar 7, 2016 at 10:22 AM, Khalid Aziz >> wrote: >>> >>> No, it changes the tag associated with the virtual address for the >>> caller. >>> Physical page backing this virtual address i

Re: [PATCH net] sctp: fix copying more bytes than expected in sctp_add_bind_addr

2016-03-07 Thread Dmitry Vyukov
I kept the patch applied. On Mon, Mar 7, 2016 at 8:51 PM, Marcelo Ricardo Leitner wrote: > On Mon, Mar 07, 2016 at 08:45:20PM +0100, Dmitry Vyukov wrote: >> Yes, it is. I never saw this bug again. Forgot to update this thread. Sorry. > > Cool, thanks. The patch isn't applied yet, so either some o

Re: [PATCH] documentation: Make sample code and documentation consistent

2016-03-07 Thread Paul E. McKenney
On Mon, Mar 07, 2016 at 04:02:14PM +0800, Yao Dongdong wrote: > In the chapter 'analogy with reader-writer locking', the sample > code uses spinlock_t in reader-writer case. Just correct it so > that we can read the document easily. > > Signed-off-by: Yao Dongdong Good catch, queued for review.

Re: pull-request: wireless-drivers 2016-03-04

2016-03-07 Thread David Miller
From: Kalle Valo Date: Fri, 04 Mar 2016 18:26:38 +0200 > three more fixes I would like to get to 4.5 still. It's getting late but > I think these are still justified and these have been in linux-next > almost a week. But if you think otherwise please let me know and I'll > pull these to wireless-

[PATCH 4/5] pwm: pwm-tipwmss: Update documentation to use empty range property

2016-03-07 Thread Franklin S Cooper Jr
Since the PWMSS and its subdevices (eCAP and ePWM) use the same address space then the range property should be empty. Update the documentation to show the correct usage. Signed-off-by: Franklin S Cooper Jr --- Documentation/devicetree/bindings/pwm/pwm-tipwmss.txt | 12 1 file chang

Re: [PATCH net] sctp: fix copying more bytes than expected in sctp_add_bind_addr

2016-03-07 Thread Marcelo Ricardo Leitner
On Mon, Mar 07, 2016 at 08:56:08PM +0100, Dmitry Vyukov wrote: > I kept the patch applied. Then Dave, please consider applying this patch. Thanks. > On Mon, Mar 7, 2016 at 8:51 PM, Marcelo Ricardo Leitner > wrote: > > On Mon, Mar 07, 2016 at 08:45:20PM +0100, Dmitry Vyukov wrote: > >> Yes, it i

Re: sigaltstack breaks swapcontext()

2016-03-07 Thread Stas Sergeev
09.01.2016 04:48, Andy Lutomirski пишет: On Fri, Jan 8, 2016 at 5:43 PM, Stas Sergeev wrote: 09.01.2016 02:24, Andy Lutomirski пишет: It's not sigaltstack that I'm thinking about. It's signal delivery. If you end up in DOS mode with SP coincidentally pointing to the sigaltstack (but with diff

Re: [PATCH v5 22/22] sound/usb: Use Media Controller API to share media resources

2016-03-07 Thread Shuah Khan
On 03/07/2016 07:16 AM, Shuah Khan wrote: > On 03/05/2016 03:00 AM, Mauro Carvalho Chehab wrote: >> Em Wed, 2 Mar 2016 09:50:31 -0700 >> Shuah Khan escreveu: >> >>> Change ALSA driver to use Media Controller API to >>> share media resources with DVB and V4L2 drivers >>> on a AU0828 media device.

Re: [PATCH v2 1/2] iio: core: introduce IIO_CHAN_INFO_SIGNED

2016-03-07 Thread Lars-Peter Clausen
On 03/07/2016 03:29 PM, Ludovic Desroches wrote: > The same channel can be used to perform a signed or an unsigned > conversion. Add a new infomask element to be able to select the type of > conversion wanted: a raw one or a signed raw one. If this is the difference between offset binary and two's

Re: [PATCH v2 2/2] iio:adc:at91-sama5d2: add support for signed conversion

2016-03-07 Thread Lars-Peter Clausen
On 03/07/2016 03:29 PM, Ludovic Desroches wrote: > The at91-sama5d2 ADC controller can achieve unsigned and signed > conversions. For each channel, a signed and an unsigned variant are > created. > Sign mode is a global configuration, it is not tied to a specific > channel. For this reason, the con

Re: bluetooth: use-after-free in vhci_send_frame

2016-03-07 Thread Marcel Holtmann
Hi Jiri, >>> I've got the following use-after-free reports while running syzkaller >>> fuzzer. Unfortunately no reproducer. But this happened when system was >>> busy reacting on sysrq t, so probably some unexpected delay happended. >>> >>> On commit 92e963f50fc74041b5e9e744c330dca48e04f08d. >>>

Re: [PATCH RESEND] xhci:Remove unused marco definitions from the file xhci-hub.c

2016-03-07 Thread Greg KH
On Mon, Mar 07, 2016 at 02:20:03PM -0500, Nicholas Krause wrote: > This removes the unneeded marco definitions for the marcos > of XHCI_PORT_RW1S, XHCI_PORT_RW1C, XHCI_PORT_RWand > XHCI_PORT_RZ due to no uses of these marcos in the file > xhci-hub.c or any other related kernel source code f

Re: bluetooth: use-after-free in vhci_send_frame

2016-03-07 Thread Dmitry Vyukov
On Mon, Mar 7, 2016 at 9:10 PM, Marcel Holtmann wrote: > Hi Jiri, > I've got the following use-after-free reports while running syzkaller fuzzer. Unfortunately no reproducer. But this happened when system was busy reacting on sysrq t, so probably some unexpected delay happended. >>>

Re: [PATCH net] sctp: fix copying more bytes than expected in sctp_add_bind_addr

2016-03-07 Thread David Miller
From: Marcelo Ricardo Leitner Date: Mon, 7 Mar 2016 17:00:08 -0300 > On Mon, Mar 07, 2016 at 08:56:08PM +0100, Dmitry Vyukov wrote: >> I kept the patch applied. > > Then Dave, please consider applying this patch. Please submit the patch properly, as a fresh mailing list posting, and integrating

Re: [PATCH 0/4] serial: omap: robustify for high speed transfers

2016-03-07 Thread Peter Hurley
On 02/24/2016 07:37 AM, Sekhar Nori wrote: > On Wednesday 24 February 2016 08:50 AM, Peter Hurley wrote: >> Just to follow-up on what Sebastian wrote. >> >> As he pointed out, these spurious interrupts are not timeout interrupts. >> Since IIR_UART[0] == 1, no uart interrupt is pending. >> >> As he

Re: [PATCH] udp6: fix UDP/IPv6 encap resubmit path

2016-03-07 Thread David Miller
From: Bill Sommerfeld Date: Fri, 4 Mar 2016 14:47:21 -0800 > IPv4 interprets a negative return value from a protocol handler as a > request to redispatch to a new protocol. In contrast, IPv6 interprets a > negative value as an error, and interprets a positive value as a request > for redispatch

Re: [PATCH 2/3] perf/x86/pebs: add workaround for broken OVFL status on HSW

2016-03-07 Thread Peter Zijlstra
On Mon, Mar 07, 2016 at 07:27:31PM +0100, Jiri Olsa wrote: > On Mon, Mar 07, 2016 at 01:18:40PM +0100, Peter Zijlstra wrote: > > On Mon, Mar 07, 2016 at 11:24:13AM +0100, Peter Zijlstra wrote: > > > > > I suspect Andi is having something along: > > > > > > lkml.kernel.org/r/1445458568-16956-1-gi

[GIT PULL rcu/next] RCU commits for 4.6

2016-03-07 Thread Paul E. McKenney
Hello, Ingo, Note that this series conflicts with some commits in Thomas Gleixner's hotplug series and in Daniel Wagner's swait series, both of which are in -tip. I have suggested conflict-resolution commits for Daniel's commits (25f0d48a4299 "Merge commit 'abedf8e2419fb873d919dd74de2e84b51025933

Re: drivers/video/fbdev/aty/atyfb_base.c:3461:2: error: implicit declaration of function 'ioremap_uc'

2016-03-07 Thread Luis R. Rodriguez
I'll send a fix. I have it written. Luis On Sun, Mar 06, 2016 at 08:14:07PM +0800, kbuild test robot wrote: > Hi Luis, > > FYI, the error/warning still remains. > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > master > head: 67944024c1cdd897e49a09b0d6af3ea3

Re: [PATCH] dma: sun4i: expose block size and wait cycle configuration to DMA users

2016-03-07 Thread Maxime Ripard
On Mon, Mar 07, 2016 at 04:08:57PM +0100, Boris Brezillon wrote: > Hi Vinod, > > On Mon, 7 Mar 2016 20:24:29 +0530 > Vinod Koul wrote: > > > On Mon, Mar 07, 2016 at 10:59:31AM +0100, Boris Brezillon wrote: > > > +/* Dedicated DMA parameter register layout */ > > > +#define SUN4I_DDMA_PARA_DST_DA

Re: [PATCH v4 4/7] Documentation: fsl-quadspi: Add fsl,ls2080a-dspi compatible string

2016-03-07 Thread Brian Norris
On Tue, Jan 26, 2016 at 03:23:58PM +0800, Yuan Yao wrote: > new compatible string: "fsl,ls2080a-qspi". ^^ This line doesn't match the subject or the content of the patch. > Signed-off-by: Yuan Yao > Acked-by: Rob Herring > --- > Changed in v4: > No changes. > > Changed in v3: > Add the modifie

Re: [PATCH] arch/microblaze: export isa_io_base to modules

2016-03-07 Thread Bjorn Helgaas
On Mon, Mar 07, 2016 at 08:29:24PM +0100, Nicolai Stange wrote: > As discovered by the kbuild test robot, an allmodconfig build on > microblaze bails out with > > ERROR: "isa_io_base" [sound/pci/vx222/snd-vx222.ko] undefined! > ERROR: "isa_io_base" [sound/pci/trident/snd-trident.ko] undefined!

Re: [PATCH v4 1/7] mtd: spi-nor: fsl-quadspi: add big-endian support

2016-03-07 Thread Brian Norris
On Tue, Jan 26, 2016 at 03:23:55PM +0800, Yuan Yao wrote: > Add R/W functions for big- or little-endian registers: > The qSPI controller's endian is independent of the CPU core's endian. > So far, the qSPI have two versions for big-endian and little-endian. > > Signed-off-by: Yuan Yao > Acked-by:

[PATCH] ia64: define ioremap_uc()

2016-03-07 Thread Luis R. Rodriguez
All architectures now need ioremap_uc(), ia64 seems defines this already through its ioremap_nocache() and it already ensures it *only* uses UC. Reported-by: 0 day bot Signed-off-by: Luis R. Rodriguez --- Note, this is actually needed since v4.3 to complete an allyesconfig compile on ia64, there

Re: [PATCH net-next] hv_netvsc: Move subchannel waiting to rndis_filter_device_remove()

2016-03-07 Thread David Miller
From: Haiyang Zhang Date: Fri, 4 Mar 2016 15:07:43 -0800 > During hot add, vmbus_device_register() is called from vmbus_onoffer(), on > the same workqueue as the subchannel offer message work-queue, so > subchannel offer won't be processed until the vmbus_device_register()/... > /netvsc_probe()

[Patch v4 0/6] ARM: am335x/am437x/dra7: Add PWM support for DRA7

2016-03-07 Thread Franklin S Cooper Jr
This patch series adds support for PWM for DRA7. The IP is same as that present in AM33XX and AM437XX. However, before doing so remove unnecessary hwmod entries for eCAP, ePWM and eQEP. This series was tested on AM335x GP, AM437x GP and X15 + LCD screen for PWM based backlight. This series was a

[Patch v4 2/6] ARM: dts: am437x/am33xx: Remove eCAP and ePWM hwmod properties

2016-03-07 Thread Franklin S Cooper Jr
ECAP and ePWM do not have OCP integration registers, have L3/L4 ports, etc. Therefore, they shouldn't be using hwmod at all. Remove their hwmod properties. For ePWM add the tbclk to the node rather than depending on hwmod to do so. Signed-off-by: Franklin S Cooper Jr --- arch/arm/boot/dts/am33x

[Patch v4 3/6] ARM: AM335x/AM437x: hwmod: Remove eQEP, ePWM and eCAP hwmod entries

2016-03-07 Thread Franklin S Cooper Jr
Devices that utilize the OCP registers and/or PRCM registers and register bit fields should be modelled using hwmod. Since eQEP, ePWM and eCAP don't fall under this category, remove their hwmod entries. Instead these clocks simply use the clock that is pass through by its parent PWMSS. Therefore,

[Patch v4 6/6] ARM: dts: DRA7: Add dt nodes for PWMSS

2016-03-07 Thread Franklin S Cooper Jr
From: Vignesh R Add PWMSS device tree nodes for DRA7 SoC family and add documentation for dt bindings. Signed-off-by: Vignesh R [fcoo...@ti.com: Use updated bindings for PWMSS and ePWM] Signed-off-by: Franklin S Cooper Jr --- Version 4 changes: Remove hwmod entries. Add clocks/clock-names to p

[Patch v4 1/6] pwms: pwm-ti*: Get the clock from the PWMSS (parent)

2016-03-07 Thread Franklin S Cooper Jr
The eCAP and ePWM doesn't have their own separate clocks. They simply utilize the clock provided directly by the PWMSS. Therefore, they simply need to grab a reference to their parent's clock. Signed-off-by: Franklin S Cooper Jr --- drivers/pwm/pwm-tiecap.c | 2 +- drivers/pwm/pwm-tiehrpwm.c |

[Patch v4 5/6] ARM: dts: DRA7: Add TBCLK for PWMSS

2016-03-07 Thread Franklin S Cooper Jr
From: Vignesh R tbclk is used by ehrpwm to generate PWM waveform on DRA7 SoC. Add Linux clock to control ehrpwm tbclk. The TRM says, tbclk is derived from SYSCLKOUT. SYSCLKOUT is nothing but ehrpwm functional clock derived from the gateable interface and functional clock of PWMSS(l4_root_clk_div)

[Patch v4 4/6] ARM: OMAP2+: DRA7: Add hwmod entries for PWMSS

2016-03-07 Thread Franklin S Cooper Jr
From: Vignesh R Add hwmod entries for the PWMSS on DRA7. Set l4_root_clk_div as the main_clk of PWMSS. It is fixed-factored clock equal to L4PER2_L3_GICLK/2(l3_iclk_div/2). Signed-off-by: Vignesh R [fcoo...@ti.com: Do not add eQEP, ePWM and eCAP hwmod entries] Signed-off-by: Franklin S Cooper

Re: [PATCH v2] sparc64: Add support for Application Data Integrity (ADI)

2016-03-07 Thread Khalid Aziz
On 03/07/2016 12:54 PM, Andy Lutomirski wrote: On Mon, Mar 7, 2016 at 11:44 AM, Khalid Aziz wrote: Consider this scenario: 1. Process A creates a shm and attaches to it. 2. Process A fills shm with data it wants to share with only known processes. It enables ADI and sets tags on the shm. 3. H

Re: [PATCH 2/4] nmi_backtrace: generate one-line reports for idle cpus

2016-03-07 Thread Peter Zijlstra
On Mon, Mar 07, 2016 at 12:38:16PM -0500, Chris Metcalf wrote: > On 03/07/2016 04:48 AM, Peter Zijlstra wrote: > I'm a little skeptical that a single percpu write is going to add much > measurable overhead to this path. So that write is almost guaranteed to be a cacheline miss, those things hurt

Re: Oops in 3.10.99 -- NULL pointer dereference in radeon_fence_ref

2016-03-07 Thread Greg Kroah-Hartman
On Sun, Mar 06, 2016 at 07:50:14PM -0700, Erik Andersen wrote: > The following patch to radeon_sa_bo_new that > went into 3.10.99 > > commit 8d5e1e5af0c667545c202e8f4051f77aa3bf31b7 > Author: Nicolai Hähnle > Date: Fri Feb 5 14:35:53 2016 -0500 > drm/radeon: hold reference to fences

Re: [PATCH RESEND] qib:Fix concurrent access in the function, qib_init_iba6120_funcs

2016-03-07 Thread Leon Romanovsky
On Mon, Mar 07, 2016 at 04:34:04PM +, Marciniszyn, Mike wrote: > > This fixes concurrent access in the function, qib_init_iba6120_funcs by > > locking > > around the calls to when setting up f_sendctrl and f_set_armlauch function > > pointers to the functions, sendctrl_6120_mod qib_set_6120_ar

Re: [PATCH v10 09/12] arch/x86: enable task isolation functionality

2016-03-07 Thread Chris Metcalf
On 03/03/2016 06:46 PM, Andy Lutomirski wrote: On Thu, Mar 3, 2016 at 11:52 AM, Chris Metcalf wrote: On 03/02/2016 07:36 PM, Andy Lutomirski wrote: On Mar 2, 2016 12:10 PM, "Chris Metcalf" wrote: In prepare_exit_to_usermode(), call task_isolation_ready() when we are checking the thread-info

[ANNOUNCE] 4.1.15-rt18

2016-03-07 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 4.1.15-rt18 stable release. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git branch: v4.1-rt Head SHA1: 609a831b25ff68704219f035ae514e2a57647d29 Or to build 4.1.15-rt18 directl

[ANNOUNCE] 3.18.27-rt27

2016-03-07 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 3.18.27-rt27 stable release. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git branch: v3.18-rt Head SHA1: a69d68687e04e6f5e9b79a5ac8dacc9d86f195c7 Or to build 3.18.27-rt27 dire

[ANNOUNCE] 3.14.61-rt64

2016-03-07 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 3.14.61-rt64 stable release. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git branch: v3.14-rt Head SHA1: 26566adce1dda105c97b5ce9ecbee66b2e7bc8a9 Or to build 3.14.61-rt64 dire

[ANNOUNCE] 3.10.97-rt107

2016-03-07 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 3.10.97-rt107 stable release. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git branch: v3.10-rt Head SHA1: c443dcfea9e25bfbf12b6648d7b8fb77d9546be2 Or to build 3.10.97-rt107 di

[ANNOUNCE] 3.12.54-rt74

2016-03-07 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 3.12.54-rt74 stable release. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git branch: v3.12-rt Head SHA1: 0efaf4ef1aa98dc06ff6deaf1d4dbcfd6e8cb5c0 Or to build 3.12.54-rt74 dire

[ANNOUNCE] 3.4.110-rt140

2016-03-07 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 3.4.110-rt140 stable release. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git branch: v3.4-rt Head SHA1: 644c33135750aabfc5af32719fe700aa3ed015c8 Or to build 3.4.110-rt140 dir

[ANNOUNCE] 3.2.77-rt112

2016-03-07 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 3.2.77-rt112 stable release. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git branch: v3.2-rt Head SHA1: 5f0ad001127d6f44a362d494c6b515a74cf27cfc Or to build 3.2.77-rt112 direc

Re: [PATCH v10 09/12] arch/x86: enable task isolation functionality

2016-03-07 Thread Andy Lutomirski
On Mon, Mar 7, 2016 at 12:51 PM, Chris Metcalf wrote: > On 03/03/2016 06:46 PM, Andy Lutomirski wrote: >> >> On Thu, Mar 3, 2016 at 11:52 AM, Chris Metcalf >> wrote: >>> >>> On 03/02/2016 07:36 PM, Andy Lutomirski wrote: On Mar 2, 2016 12:10 PM, "Chris Metcalf" wrote: > > In pr

Re: [PATCH v2] sparc64: Add support for Application Data Integrity (ADI)

2016-03-07 Thread David Miller
From: Khalid Aziz Date: Mon, 7 Mar 2016 13:41:39 -0700 > Shared data may not always be backed by a file. My understanding is > one of the use cases is for in-memory databases. This shared space > could also be used to hand off transactions in flight to other > processes. These transactions in fli

Re: [PATCH v2] sparc64: Add support for Application Data Integrity (ADI)

2016-03-07 Thread Andy Lutomirski
On Mon, Mar 7, 2016 at 12:58 PM, David Miller wrote: > From: Khalid Aziz > Date: Mon, 7 Mar 2016 13:41:39 -0700 > >> Shared data may not always be backed by a file. My understanding is >> one of the use cases is for in-memory databases. This shared space >> could also be used to hand off transact

Re: [PATCH v5 1/5] Shared library support

2016-03-07 Thread Kees Cook
On Sun, Mar 6, 2016 at 3:03 PM, Emese Revfy wrote: > Infrastructure for building independent shared library targets. > This effectively also reverts commit 62e2210798ed38928ab24841e8b4878a > (Masahiro Yamada, kbuild: drop shared library support from Makefile.host). Should this literally be a reve

Re: Oops in 3.10.99 -- NULL pointer dereference in radeon_fence_ref

2016-03-07 Thread Christian König
Am 07.03.2016 um 21:46 schrieb Greg Kroah-Hartman: On Sun, Mar 06, 2016 at 07:50:14PM -0700, Erik Andersen wrote: The following patch to radeon_sa_bo_new that went into 3.10.99 commit 8d5e1e5af0c667545c202e8f4051f77aa3bf31b7 Author: Nicolai Hähnle Date: Fri Feb 5 14:35:53 2016 -050

Re: [PATCH v2] sparc64: Add support for Application Data Integrity (ADI)

2016-03-07 Thread Khalid Aziz
On 03/07/2016 10:46 AM, Dave Hansen wrote: On 03/07/2016 08:06 AM, Khalid Aziz wrote: Top 4-bits of sparc64 virtual address are used for version tag only when a process has its PSTATE.mcde bit set and it is accessing a memory region that has ADI enabled on it (TTE.mcd set) and a version tag was

Re: [PATCH v5 5/5] Add sancov plugin

2016-03-07 Thread Kees Cook
On Sun, Mar 6, 2016 at 3:07 PM, Emese Revfy wrote: > The sancov gcc plugin inserts a __sanitizer_cov_trace_pc() call > at the start of basic blocks. > > This plugin is a helper plugin for the kcov feature. It supports > all gcc versions with plugin support (from gcc-4.5 on). > It is based on the g

Re: sigaltstack breaks swapcontext()

2016-03-07 Thread Andy Lutomirski
On Mon, Mar 7, 2016 at 12:02 PM, Stas Sergeev wrote: > 09.01.2016 04:48, Andy Lutomirski пишет: >> >> On Fri, Jan 8, 2016 at 5:43 PM, Stas Sergeev wrote: >>> >>> 09.01.2016 02:24, Andy Lutomirski пишет: It's not sigaltstack that I'm thinking about. It's signal delivery. If you end

Re: [PATCH v2] sparc64: Add support for Application Data Integrity (ADI)

2016-03-07 Thread Khalid Aziz
On 03/07/2016 01:58 PM, David Miller wrote: From: Khalid Aziz Date: Mon, 7 Mar 2016 13:41:39 -0700 Shared data may not always be backed by a file. My understanding is one of the use cases is for in-memory databases. This shared space could also be used to hand off transactions in flight to oth

Re: perf, tools: Refactor and support interval and CSV metrics

2016-03-07 Thread Andi Kleen
On Mon, Mar 07, 2016 at 07:48:39PM +0100, Jiri Olsa wrote: > On Mon, Mar 07, 2016 at 07:22:27PM +0100, Andi Kleen wrote: > > On Mon, Mar 07, 2016 at 11:08:42AM +0100, Jiri Olsa wrote: > > > On Thu, Mar 03, 2016 at 03:57:31PM -0800, Andi Kleen wrote: > > > > > > SNIP > > > > > > > > > > > % perf

Re: [PATCH] mtd: bcm63xxpart: give width specifier an 'int', not 'size_t'

2016-03-07 Thread Brian Norris
On Fri, Feb 12, 2016 at 12:26:04PM -0800, Brian Norris wrote: > Fixes this warning: > > >> drivers/mtd/bcm63xxpart.c:175:4: note: in expansion of macro 'pr_err' >pr_err("invalid rootfs address: %*ph\n", >^ > >> include/linux/kern_levels.h:4:18: warning: field width specifier '*' >

RE: [PATCH RESEND] qib:Fix concurrent access in the function, qib_init_iba6120_funcs

2016-03-07 Thread Marciniszyn, Mike
> From: nick [mailto:xerofo...@gmail.com] > Sent: Monday, March 7, 2016 2:21 PM > To: Marciniszyn, Mike > Cc: dledf...@redhat.com; Hefty, Sean ; > hal.rosenst...@gmail.com; linux-r...@vger.kernel.org; linux- > ker...@vger.kernel.org > Subject: Re: [PATCH RESEND] qib:Fix concurrent access in the fu

[PATCH net] sctp: fix copying more bytes than expected in sctp_add_bind_addr

2016-03-07 Thread Marcelo Ricardo Leitner
Dmitry reported that sctp_add_bind_addr may read more bytes than expected in case the parameter is a IPv4 addr supplied by the user through calls such as sctp_bindx_add(), because it always copies sizeof(union sctp_addr) while the buffer may be just a struct sockaddr_in, which is smaller. This pat

Re: sigaltstack breaks swapcontext()

2016-03-07 Thread Stas Sergeev
08.03.2016 00:10, Andy Lutomirski пишет: On Mon, Mar 7, 2016 at 12:02 PM, Stas Sergeev wrote: 09.01.2016 04:48, Andy Lutomirski пишет: On Fri, Jan 8, 2016 at 5:43 PM, Stas Sergeev wrote: 09.01.2016 02:24, Andy Lutomirski пишет: It's not sigaltstack that I'm thinking about. It's signal deli

Re: [PATCH v2] sparc64: Add support for Application Data Integrity (ADI)

2016-03-07 Thread Khalid Aziz
On 03/07/2016 12:09 PM, David Miller wrote: From: Khalid Aziz Date: Mon, 7 Mar 2016 11:04:38 -0700 On 03/07/2016 09:56 AM, David Miller wrote: From: Khalid Aziz Date: Mon, 7 Mar 2016 08:07:53 -0700 PR_GET_SPARC_ADICAPS Put this into a new ELF auxiliary vector entry via ARCH_DLINFO. So n

Re: [RFT PATCH 2/2] Revert "usb: dwc2: Fix probe problem on bcm2835"

2016-03-07 Thread Doug Anderson
Stefan, On Mon, Mar 7, 2016 at 10:40 AM, Stefan Wahren wrote: > Hi Doug, > >> Douglas Anderson hat am 4. März 2016 um 19:23 >> geschrieben: >> >> >> This reverts commit 192cb07f7928 ("usb: dwc2: Fix probe problem on >> bcm2835") now that we've found the root cause. See the change >> titled ("usb

Re: [PATCH] rtc: ds1685: actually spin forever in poweroff error path

2016-03-07 Thread Joshua Kinard
On 03/07/2016 10:03, Josh Poimboeuf wrote: > objtool reports the following warnings: > > drivers/rtc/rtc-ds1685.o: warning: objtool: ds1685_rtc_work_queue()+0x0: > duplicate frame pointer save > drivers/rtc/rtc-ds1685.o: warning: objtool: ds1685_rtc_work_queue()+0x3: > duplicate frame pointe

Re: [PATCH v5 5/5] Add sancov plugin

2016-03-07 Thread Emese Revfy
On Mon, 7 Mar 2016 13:07:32 -0800 Kees Cook wrote: > > diff --git a/tools/gcc/sancov_plugin.c b/tools/gcc/sancov_plugin.c > > new file mode 100644 > > index 000..5a9179b > > --- /dev/null > > +++ b/tools/gcc/sancov_plugin.c > > @@ -0,0 +1,133 @@ > > +/* > > + * Copyright 2011-2016 by Emese Re

Re: sigaltstack breaks swapcontext()

2016-03-07 Thread Andy Lutomirski
On Mon, Mar 7, 2016 at 1:20 PM, Stas Sergeev wrote: > 08.03.2016 00:10, Andy Lutomirski пишет: >> >> On Mon, Mar 7, 2016 at 12:02 PM, Stas Sergeev wrote: >>> >>> 09.01.2016 04:48, Andy Lutomirski пишет: On Fri, Jan 8, 2016 at 5:43 PM, Stas Sergeev wrote: > > 09.01.2016 02:24, A

Re: [PATCH v5 1/5] Shared library support

2016-03-07 Thread Emese Revfy
On Mon, 7 Mar 2016 13:05:16 -0800 Kees Cook wrote: > On Sun, Mar 6, 2016 at 3:03 PM, Emese Revfy wrote: > > Infrastructure for building independent shared library targets. > > This effectively also reverts commit 62e2210798ed38928ab24841e8b4878a > > (Masahiro Yamada, kbuild: drop shared library

Re: [PATCH v2] sparc64: Add support for Application Data Integrity (ADI)

2016-03-07 Thread Khalid Aziz
On 03/07/2016 12:16 PM, David Miller wrote: From: Khalid Aziz Date: Mon, 7 Mar 2016 11:24:54 -0700 Tags can be cleared by user by setting tag to 0. Tags are automatically cleared by the hardware when the mapping for a virtual address is removed from TSB (which is why swappable pages are a prob

Re: [PATCH v2] sparc64: Add support for Application Data Integrity (ADI)

2016-03-07 Thread David Miller
From: Khalid Aziz Date: Mon, 7 Mar 2016 14:27:09 -0700 > I agree with your point of view. PSTATE.mcde and TTE.mcd are set in > response to request from userspace. If userspace asked for them to be > set, they already know but it was the database guys that asked for > these two functions and they

Re: [RFC PATCH 0/2] percpu_counter: Enable switching to global counter

2016-03-07 Thread Dave Chinner
On Mon, Mar 07, 2016 at 12:39:55PM -0500, Waiman Long wrote: > On 03/05/2016 01:34 AM, Dave Chinner wrote: > >On Fri, Mar 04, 2016 at 09:51:37PM -0500, Waiman Long wrote: > >>This patchset allows the degeneration of per-cpu counters back > >>to global counters when: > >> > >> 1) The number of CPUs

Re: [PATCH] ntb: perf test: fix address space confusion

2016-03-07 Thread Jon Mason
On Tue, Jan 26, 2016 at 1:20 PM, Jiang, Dave wrote: > On Tue, 2016-01-26 at 10:31 +0100, Arnd Bergmann wrote: >> The ntb driver assigns between pointers an __iomem tokens, and >> also casts them to 64-bit integers, which results in compiler >> warnings on 32-bit systems: >> >> drivers/ntb/test/ntb

Re: sigaltstack breaks swapcontext()

2016-03-07 Thread One Thousand Gnomes
> Anyway, maybe Linus or the x86 maintainers have some idea of how AC is > used. If there are people who use it for a whole program and if libc > can survive the experience, then they might expect even signal > handlers to run with AC set. But if they're sane and protect just > critical pieces of

Re: [PATCH v2] sparc64: Add support for Application Data Integrity (ADI)

2016-03-07 Thread David Miller
From: Khalid Aziz Date: Mon, 7 Mar 2016 14:33:56 -0700 > On 03/07/2016 12:16 PM, David Miller wrote: >> From: Khalid Aziz >> Date: Mon, 7 Mar 2016 11:24:54 -0700 >> >>> Tags can be cleared by user by setting tag to 0. Tags are >>> automatically cleared by the hardware when the mapping for a virt

slab-out-of-bounds in rpc/nfs

2016-03-07 Thread Alexei Starovoitov
seeing on ton of these errors on net-next with kasan on. Likely old bug though. [ 373.705691] BUG: KASAN: slab-out-of-bounds in memcpy+0x28/0x40 at addr 8811ada62cb0 [ 373.707137] Write of size 28 by task bash/7059 [ 373.708177] =

Re: DMAR error messages after 'shutdown -r'.

2016-03-07 Thread Valdis . Kletnieks
(Sorry for the delay, $DAYJOB took a lot of cycles. Adding AHCI maintainers to cc:) On Tue, 16 Feb 2016 17:47:45 +0100, Joerg Roedel said: > On Tue, Feb 09, 2016 at 02:59:00PM -0500, Valdis Kletnieks wrote: > > [0.027629] Freeing SMP alternatives memory: 28K (8e111000 - > >

Re: sigaltstack breaks swapcontext()

2016-03-07 Thread Stas Sergeev
08.03.2016 00:32, Andy Lutomirski пишет: On Mon, Mar 7, 2016 at 1:20 PM, Stas Sergeev wrote: 08.03.2016 00:10, Andy Lutomirski пишет: On Mon, Mar 7, 2016 at 12:02 PM, Stas Sergeev wrote: 09.01.2016 04:48, Andy Lutomirski пишет: On Fri, Jan 8, 2016 at 5:43 PM, Stas Sergeev wrote: 09.01.201

Re: [PATCH] mtd: nand: check status before reporting timeout

2016-03-07 Thread Brian Norris
On Fri, Mar 04, 2016 at 05:19:23PM -0800, Brian Norris wrote: > In commit b70af9bef49b ("mtd: nand: increase ready wait timeout and > report timeouts"), we increased the likelihood of scheduling during > nand_wait(). This makes us more likely to hit the time_before(...) > condition, since a lot of

[GIT] Networking

2016-03-07 Thread David Miller
1) Fix ordering of WEXT netlink messages so we don't see a newlink after a dellink, from Johannes Berg. 2) Out of bounds access in minstrel_ht_set_best_prob_rage, from Konstantin Khlebnikov. 3) Paging buffer memory leak in iwlwifi, from Matti Gottlieb. 4) Wrong units used to set initial T

[PATCH v2 1/5] drm/rockchip: dw_hdmi: Call drm_encoder_cleanup() in error path

2016-03-07 Thread Douglas Anderson
The drm_encoder_cleanup() was missing both from the error path of dw_hdmi_rockchip_bind(). This caused a crash when slub_debug was enabled and we ended up deferring probe of HDMI at boot. This call isn't needed from unbind() because if dw_hdmi_bind() returns no error then it takes over the job of

[PATCH v2 5/5] drm/imx: dw_hdmi: Don't call platform_set_drvdata()

2016-03-07 Thread Douglas Anderson
The IMX dw_hdmi driver just called platform_set_drvdata() to get your hopes up that maybe, somehow, you'd be able to retrieve the 'struct imx_hdmi' from a pointer to the 'struct device'. You can't. When we call dw_hdmi_bind() the main driver calls dev_set_drvdata(), which clobbers our setting. L

[PATCH v2 4/5] drm/rockchip: dw_hdmi: Don't call platform_set_drvdata()

2016-03-07 Thread Douglas Anderson
The Rockchip dw_hdmi driver just called platform_set_drvdata() to get your hopes up that maybe, somehow, you'd be able to retrieve the 'struct rockchip_hdmi' from a pointer to the 'struct device'. You can't. When we call dw_hdmi_bind() the main driver calls dev_set_drvdata(), which clobbers our s

[PATCH v2 2/5] drm/imx: dw_hdmi: Call drm_encoder_cleanup() in error path

2016-03-07 Thread Douglas Anderson
The drm_encoder_cleanup() was missing both from the error path of dw_hdmi_imx_bind(). This caused a crash when slub_debug was enabled and we ended up deferring probe of HDMI at boot. This call isn't needed from unbind() because if dw_hdmi_bind() returns no error then it takes over the job of free

[PATCH v2 3/5] drm/rockchip: vop: Fix vop crtc cleanup

2016-03-07 Thread Douglas Anderson
This fixes a few problems in the vop crtc cleanup (handling error paths and cleanup upon exit): * The vop_create_crtc() error path had an unsafe version of the iterator used for iterating over all planes (though it was destroying planes in the iterator so should have used the safe version)

Re: [PATCH v5 22/22] sound/usb: Use Media Controller API to share media resources

2016-03-07 Thread Shuah Khan
On 03/05/2016 03:00 AM, Mauro Carvalho Chehab wrote: > Em Wed, 2 Mar 2016 09:50:31 -0700 > Shuah Khan escreveu: > >> Change ALSA driver to use Media Controller API to >> share media resources with DVB and V4L2 drivers >> on a AU0828 media device. Media Controller specific >> initialization is do

Re: [PATCH v2-UPDATE 3/4] resource: Add device-managed insert/remove_resource()

2016-03-07 Thread Toshi Kani
On Mon, 2016-03-07 at 10:14 -0800, Dan Williams wrote:  : > > +/** > > + * devm_insert_resource() - insert an I/O or memory resource > > + * @dev: device for which to produce the resource > > + * @root: root of the resource tree > > + * @new: descriptor of the new resource > > + * > > + * This is a

Re: [PATCH v5 22/22] sound/usb: Use Media Controller API to share media resources

2016-03-07 Thread Shuah Khan
On 03/05/2016 03:00 AM, Mauro Carvalho Chehab wrote: > Em Wed, 2 Mar 2016 09:50:31 -0700 > Shuah Khan escreveu: > >> Change ALSA driver to use Media Controller API to >> share media resources with DVB and V4L2 drivers >> on a AU0828 media device. Media Controller specific >> initialization is do

Re: [PATCH] mm/hugetlb: use EOPNOTSUPP in hugetlb sysctl handlers

2016-03-07 Thread David Rientjes
On Thu, 3 Mar 2016, Jan Stancek wrote: > Replace ENOTSUPP with EOPNOTSUPP. If hugepages are not supported, > this value is propagated to userspace. EOPNOTSUPP is part of uapi > and is widely supported by libc libraries. > > Cc: Andrew Morton > Cc: Naoya Horiguchi > Cc: Mike Kravetz > Cc: Hillf

[PATCH 1/2] pci: add pci_unmap_iospace function for PCI_IOBASE

2016-03-07 Thread Sinan Kaya
The PCI_IOBASE needs to be released after hotplug removal so that it can be re-added back by the pci_remap_iospace function during insertion. Adding unmap function to follow IO remap function. Signed-off-by: Sinan Kaya --- drivers/pci/pci.c | 25 + include/linux/pci.h

[PATCH 2/2] pci, acpi: free IO resource during shutdown

2016-03-07 Thread Sinan Kaya
The ACPI PCI driver is leaking out memory mappings when a slot is removed. Upon insertion following a removal, we are hitting a BUG statement. Second call to the remap API hits a bug statement because the area is already mapped. This patch releases additional virtual memory mapped by pci_remap_iosp

Re: [PATCH v3 01/19] x86, kaslr: Remove not needed parameter for choose_kernel_location

2016-03-07 Thread Kees Cook
On Fri, Mar 4, 2016 at 8:24 AM, Baoquan He wrote: > From: Yinghai Lu > > real_mode is global variable, so we do not need to pass it around. > > Signed-off-by: Yinghai Lu Cool, this makes things cleaner. Acked-by: Kees Cook -Kees > --- > arch/x86/boot/compressed/aslr.c | 5 ++--- > arch/x86

Re: [PATCH v2] sparc64: Add support for Application Data Integrity (ADI)

2016-03-07 Thread Khalid Aziz
On 03/07/2016 02:34 PM, David Miller wrote: From: Khalid Aziz Date: Mon, 7 Mar 2016 14:27:09 -0700 I agree with your point of view. PSTATE.mcde and TTE.mcd are set in response to request from userspace. If userspace asked for them to be set, they already know but it was the database guys that

Re: [PATCH] Fix NULL ptr dereference in pci_bus_assign_domain_nr() on ARM

2016-03-07 Thread Bjorn Helgaas
[+cc Lorenzo] On Tue, Mar 01, 2016 at 07:07:18AM +0100, Krzysztof Hałasa wrote: > Many ARM platforms use a wrapper: > /* > * Compatibility wrapper for older platforms that do not care about > * passing the parent device. > */ > static inline void pci_common_init(struct hw_pci *hw) > { >

Re: [PATCH v3 02/19] x86, boot: Move compressed kernel to end of buffer before decompressing

2016-03-07 Thread Kees Cook
On Fri, Mar 4, 2016 at 8:25 AM, Baoquan He wrote: > From: Yinghai Lu > > For better understanding clarify what are VO and ZO firstly. They are > introduced in below commits by hpa. > 77d1a49 x86, boot: make symbols from the main vmlinux available > 37ba7ab x86, boot: make kernel_alignment adjusta

Re: [PATCH v2] sparc64: Add support for Application Data Integrity (ADI)

2016-03-07 Thread Dave Hansen
On 03/07/2016 11:46 AM, Khalid Aziz wrote: > On 03/07/2016 12:22 PM, David Miller wrote: >> Khalid, maybe you should share notes with the folks working on x86 >> protection keys. > > Good idea. Sparc ADI feature is indeed similar to x86 protection keys > sounds like. There are definitely some sim

Re: [PATCH] rtc: ds1685: actually spin forever in poweroff error path

2016-03-07 Thread Josh Poimboeuf
On Mon, Mar 07, 2016 at 04:30:50PM -0500, Joshua Kinard wrote: > On 03/07/2016 10:03, Josh Poimboeuf wrote: > > objtool reports the following warnings: > > > > drivers/rtc/rtc-ds1685.o: warning: objtool: ds1685_rtc_work_queue()+0x0: > > duplicate frame pointer save > > drivers/rtc/rtc-ds1685.

Re: [PATCH 01/11] rxrpc: Add a common object cache

2016-03-07 Thread David Howells
David Miller wrote: > I know you put a lot of time and effort into this, but I want to strongly > recommend against a garbage collected hash table for anything whatsoever. > > Especially if the given objects are in some way created/destroyed/etc. by > operations triggerable remotely. > > This c

Re: [PATCH] HID: multitouch: force retrieving of Win8 signature blob

2016-03-07 Thread Jiri Kosina
On Mon, 7 Mar 2016, Benjamin Tissoires wrote: > The Synaptics 0x11e5 over I2C found in the Asus T100-CHI requires to > fetch the signature blob to actually start sending events. > > With this patch, we should be close enough to the Windows driver which > checks the content of the blob at plugin t

Re: runtime regression with "x86/mm/pat: Emulate PAT when it is disabled"

2016-03-07 Thread Toshi Kani
On Mon, 2016-03-07 at 16:08 -0500, Paul Gortmaker wrote: > [dropping oe list and lkml since attaching dmesg files.] > > [Re: runtime regression with "x86/mm/pat: Emulate PAT when it is > disabled"] On 07/03/2016 (Mon 09:03) Toshi Kani wrote: > > > On Sun, 2016-03-06 at 19:35 -0500, Paul Gortmaker

[4.2.y-ckt stable] Linux 4.2.8-ckt5 stable review

2016-03-07 Thread Kamal Mostafa
This is the start of the review cycle for the Linux 4.2.8-ckt5 stable kernel. This version contains 273 new patches, summarized below. The new patches are posted as replies to this message and also available in this git branch: http://kernel.ubuntu.com/git/ubuntu/linux.git/log/?h=linux-4.2.y-rev

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