[PATCH 12/12] net: mediatek: remove superfluous queue wake up call

2016-06-05 Thread John Crispin
The code checks if the queue should be stopped because we are below the threshold of free descriptors only to check if it should be started again. If we do end up in a state where we are at the threshold limit, it makes more sense to just stop the queue and wait for the next IRQ to trigger the TX h

[PATCH 11/12] net: mediatek: only wake the queue if it is stopped

2016-06-05 Thread John Crispin
The current code unconditionally wakes up the queue at the end of each tx_poll action. Change the code to only wake up the queues if any of them have actually been stopped before. Signed-off-by: John Crispin --- drivers/net/ethernet/mediatek/mtk_eth_soc.c | 17 - 1 file changed

[PATCH 10/12] net: mediatek: fix off by one in the TX ring allocation

2016-06-05 Thread John Crispin
The TX ring setup has an off by one error causing it to not utilise all descriptors. This has the side effect that we need to reset the next pointer at runtime to make it work. Fix the off by one and remove the code fixing the ring at runtime. Signed-off-by: John Crispin --- drivers/net/ethernet

Re: [PATCH v7 0/4] i2c-smbus: add support for HOST NOTIFY

2016-06-05 Thread Wolfram Sang
Hi Benjamin, > this is mostly a resubmission of the v6 with the acks, tested-by and few typos > here and there. I actually reviewed v6 but got an NMI so writing the mails fell through the cracks :( Sorry about that! Good news is that the code is fine from my point of view, some documentation upda

Re: [PATCH v7 1/4] i2c: add a protocol parameter to the alert callback

2016-06-05 Thread Wolfram Sang
On Tue, May 31, 2016 at 12:03:02PM +0200, Benjamin Tissoires wrote: > .alert() is meant to be generic, but there is currently no way > for the device driver to know which protocol generated the alert. > Add a parameter in .alert() to help the device driver to understand > what is given in data. >

Re: [PATCH v7 2/4] i2c-smbus: add SMBus Host Notify support

2016-06-05 Thread Wolfram Sang
> diff --git a/Documentation/i2c/smbus-protocol > b/Documentation/i2c/smbus-protocol > index 6012b12..4e07848 100644 > --- a/Documentation/i2c/smbus-protocol > +++ b/Documentation/i2c/smbus-protocol > @@ -199,6 +199,9 @@ alerting device's address. > > [S] [HostAddr] [Wr] A [DevAddr] A [DataLow]

Re: [PATCH v7 3/4] i2c: i801: add support of Host Notify

2016-06-05 Thread Wolfram Sang
On Tue, May 31, 2016 at 12:03:04PM +0200, Benjamin Tissoires wrote: > The i801 chip can handle the Host Notify feature since ICH 3 as mentioned > in > http://www.intel.com/content/dam/doc/datasheet/82801ca-io-controller-hub-3-datasheet.pdf > > Enable the functionality unconditionally and propagat

Re: [PATCH 01/12] net: mediatek: fix DQL support

2016-06-05 Thread David Miller
From: John Crispin Date: Sun, 5 Jun 2016 08:32:54 +0200 > @@ -625,7 +625,16 @@ static int mtk_tx_map(struct sk_buff *skb, struct > net_device *dev, > WRITE_ONCE(itxd->txd3, (TX_DMA_SWC | TX_DMA_PLEN0(skb_headlen(skb)) | > (!nr_frags * TX_DMA_LS0))); > > -

Re: [PATCH net-next 1/3] arm64: bpf: implement bpf_tail_call() helper

2016-06-05 Thread Daniel Borkmann
On 06/05/2016 01:46 AM, kbuild test robot wrote: Hi, [auto build test ERROR on net-next/master] url: https://github.com/0day-ci/linux/commits/Zi-Shen-Lim/arm64-bpf-implement-bpf_tail_call-helper/20160605-060435 config: arm64-defconfig (attached as .config) compiler: aarch64-linux-gnu-gcc

[PATCH] mfd: max77620: Constify resources tables

2016-06-05 Thread Axel Lin
These tables are never modified, so declare them as const. Signed-off-by: Axel Lin --- drivers/mfd/max77620.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mfd/max77620.c b/drivers/mfd/max77620.c index 199d261..e831422 100644 --- a/drivers/mfd/max77620.c +++

Free Gift

2016-06-05 Thread Bernard Arnault
I intend to give to you a portion of my Wealth as a free-will financial donation to you. Respond now to partake. Regards. Bernard Arnault Philanthropic Email: bena12...@qq.com

RE: [PATCH v10 2/7] usb: mux: add generic code for dual role port mux

2016-06-05 Thread Jun Li
Hi > -Original Message- > From: linux-usb-ow...@vger.kernel.org [mailto:linux-usb- > ow...@vger.kernel.org] On Behalf Of Lu Baolu > Sent: Sunday, June 05, 2016 2:56 PM > To: Peter Chen > Cc: felipe.ba...@linux.intel.com; Mathias Nyman ; > Greg Kroah-Hartman ; Lee Jones > ; Heikki Krogerus

[PATCH RESEND -trivial] init/Kconfig: Spelling s/compuation/computation/, double "the"

2016-06-05 Thread Geert Uytterhoeven
Signed-off-by: Geert Uytterhoeven --- Sent before on 2014-08-08. --- init/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/Kconfig b/init/Kconfig index f755a602d4a176e0..fa0ab926aa8a150a 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -851,7 +851,7 @@ config LOG_CP

Re: [PATCH v10 2/7] usb: mux: add generic code for dual role port mux

2016-06-05 Thread Lu Baolu
Hi, On 06/05/2016 04:33 PM, Jun Li wrote: >> Port mux is part of dual role switch, but not the whole thing. >> > >> > Dual role switch includes at least below things: >> > - ID or type-C event detection >> > - port mux >> > - VBUS management >> > - start/stop host/device controllers >> > >>

Re: [PATCH v2] ION: Sys_heap: Add cached pool to spead up cached buffer alloc

2016-06-05 Thread Chen Feng
Hi Greg, Can you take this patch? Thanks On 2016年05月24日 06:32, Laura Abbott wrote: > On 05/18/2016 08:03 PM, Chen Feng wrote: >> Add ion cached pool in system heap. This patch add a cached pool >> in system heap. It has a great improvement of alloc for cached >> buffer. >> >> With memory pressue

[PATCH v2] NFC: fdp: Detect errors from fdp_nci_create_conn()

2016-06-05 Thread Geert Uytterhoeven
drivers/nfc/fdp/fdp.c: In function ‘fdp_nci_patch_otp’: drivers/nfc/fdp/fdp.c:373: warning: comparison is always false due to limited range of data type drivers/nfc/fdp/fdp.c: In function ‘fdp_nci_patch_ram’: drivers/nfc/fdp/fdp.c:444: warning: comparison is always false due to limited range of d

[PATCH] nfds: Fix NFSD_MDS_PR_KEY on 32-bit by adding ULL postfix

2016-06-05 Thread Geert Uytterhoeven
On 32-bit: fs/nfsd/blocklayout.c: In function ‘nfsd4_block_get_device_info_scsi’: fs/nfsd/blocklayout.c:337: warning: integer constant is too large for ‘long’ type fs/nfsd/blocklayout.c:344: warning: integer constant is too large for ‘long’ type fs/nfsd/blocklayout.c: In function

Re: [PATCH v2,3/5] dt-bindings: mtu3: add devicetree bindings

2016-06-05 Thread chunfeng yun
On Fri, 2016-06-03 at 15:34 +0200, Matthias Brugger wrote: > > On 31/05/16 07:52, Chunfeng Yun wrote: > > add a DT binding doc for MediaTek USB3 DRD driver > > > > Signed-off-by: Chunfeng Yun > > --- > > Documentation/devicetree/bindings/usb/mtu3.txt | 85 > > > > 1

[PATCH] rtc: efi: Fail probing if RTC reads don't work

2016-06-05 Thread Alexander Graf
While the EFI spec mandates an RTC, not every implementation actually adheres to that rule (or can adhere to it - some systems just don't have an RTC). For those, we really don't want to probe the EFI RTC driver at all, because if we do we'd get a non-functional driver that does nothing useful but

[PATCH v2] fpga: FPGA_MGR_ZYNQ_FPGA should depend on HAS_DMA

2016-06-05 Thread Geert Uytterhoeven
If NO_DMA=y: ERROR: "bad_dma_ops" [drivers/fpga/zynq-fpga.ko] undefined! Add a dependency on HAS_DMA to fix this. Signed-off-by: Geert Uytterhoeven Reviewed-by: Moritz Fischer --- v2: - Add Reviewed-by, - Updated error message for recent kernels, - Submit to Greg, as requested by Ala

[PATCH 3.10 024/143] USB: serial: cp210x: Adding GE Healthcare Device ID

2016-06-05 Thread Willy Tarreau
From: Martyn Welch commit cddc9434e3dcc37a85c4412fb8e277d3a582e456 upstream. The CP2105 is used in the GE Healthcare Remote Alarm Box, with the Manufacturer ID of 0x1901 and Product ID of 0x0194. Signed-off-by: Martyn Welch Cc: stable Signed-off-by: Johan Hovold Signed-off-by: Willy Tarreau

[PATCH 3.10 000/143] 3.10.102-stable review

2016-06-05 Thread Willy Tarreau
This is the start of the stable review cycle for the 3.10.102 release. All patches will be posted as a response to this one. If anyone has any issue with these being applied, please let me know. If anyone thinks some important patches are missing and should be added prior to the release, please rep

[PATCH 3.10 048/143] Input: ims-pcu - sanity check against missing interfaces

2016-06-05 Thread Willy Tarreau
From: Oliver Neukum commit a0ad220c96692eda76b2e3fd7279f3dcd1d8a8ff upstream. A malicious device missing interface can make the driver oops. Add sanity checking. Signed-off-by: Oliver Neukum CC: sta...@vger.kernel.org Signed-off-by: Dmitry Torokhov Signed-off-by: Willy Tarreau --- drivers/i

[PATCH 3.10 106/143] clk: versatile: sp810: support reentrance

2016-06-05 Thread Willy Tarreau
From: Linus Walleij commit ec7957a6aa0aaf981fb8356dc47a2cdd01cde03c upstream. Despite care take to allocate clocks state containers the SP810 driver actually just supports creating one instance: all clocks registered for every instance will end up with the exact same name and __clk_init() will f

[PATCH 3.10 030/143] bttv: Width must be a multiple of 16 when capturing planar formats

2016-06-05 Thread Willy Tarreau
From: Hans de Goede commit 5c915c68763889f0183a1cc61c84bb228b60124a upstream. On my bttv card "Hauppauge WinTV [card=10]" capturing in YV12 fmt at max size results in a solid green rectangle being captured (all colors 0 in YUV). This turns out to be caused by max-width (924) not being a multipl

[PATCH 3.10 046/143] tracing: Fix trace_printk() to print when not using bprintk()

2016-06-05 Thread Willy Tarreau
From: "Steven Rostedt (Red Hat)" commit 3debb0a9ddb16526de8b456491b7db60114f7b5e upstream. The trace_printk() code will allocate extra buffers if the compile detects that a trace_printk() is used. To do this, the format of the trace_printk() is saved to the __trace_printk_fmt section, and if tha

[PATCH 3.10 095/143] fbdev: da8xx-fb: fix videomodes of lcd panels

2016-06-05 Thread Willy Tarreau
From: Sushaanth Srirangapathi commit 713fced8d10fa1c759c8fb6bf9aaa681bae68cad upstream. Commit 028cd86b794f4a ("video: da8xx-fb: fix the polarities of the hsync/vsync pulse") fixes polarities of HSYNC/VSYNC pulse but forgot to update known_lcd_panels[] which had sync values according to old logi

linux-kernel@vger.kernel.org

2016-06-05 Thread Willy Tarreau
From: Julia Lawall commit 1b669e713f277a4d4b3cec84e13d16544ac8286d upstream. & is no longer allowed in column 0, since Coccinelle 1.0.4. Signed-off-by: Julia Lawall Tested-by: Nishanth Menon Cc: sta...@vger.kernel.org Signed-off-by: Michal Marek Signed-off-by: Willy Tarreau --- scripts/coc

[PATCH 3.10 060/143] sctp: lack the check for ports in sctp_v6_cmp_addr

2016-06-05 Thread Willy Tarreau
From: Xin Long commit 40b4f0fd74e46c017814618d67ec9127ff20f157 upstream. As the member .cmp_addr of sctp_af_inet6, sctp_v6_cmp_addr should also check the port of addresses, just like sctp_v4_cmp_addr, cause it's invoked by sctp_cmp_addr_exact(). Now sctp_v6_cmp_addr just check the port when two

[PATCH 3.10 140/143] USB: serial: io_edgeport: fix memory leaks in probe error path

2016-06-05 Thread Willy Tarreau
From: Johan Hovold commit c8d62957d450cc1a22ce3242908709fe367ddc8e upstream. URBs and buffers allocated in attach for Epic devices would never be deallocated in case of a later probe error (e.g. failure to allocate minor numbers) as disconnect is then never called. Fix by moving deallocation to

[PATCH 3.10 053/143] sched/cputime: Fix steal time accounting vs. CPU hotplug

2016-06-05 Thread Willy Tarreau
From: Thomas Gleixner commit e9532e69b8d1d1284e8ecf8d2586de34aec61244 upstream. On CPU hotplug the steal time accounting can keep a stale rq->prev_steal_time value over CPU down and up. So after the CPU comes up again the delta calculation in steal_account_process_tick() wreckages itself due to

[PATCH 3.10 061/143] ipv6: re-enable fragment header matching in ipv6_find_hdr

2016-06-05 Thread Willy Tarreau
From: Florian Westphal commit 5d150a985520bbe3cb2aa1ceef24a7e32f20c15f upstream. When ipv6_find_hdr is used to find a fragment header (caller specifies target NEXTHDR_FRAGMENT) we erronously return -ENOENT for all fragments with nonzero offset. Before commit 9195bb8e381d, when target was specif

[PATCH 3.10 124/143] packet: fix heap info leak in PACKET_DIAG_MCLIST sock_diag interface

2016-06-05 Thread Willy Tarreau
From: Mathias Krause commit 309cf37fe2a781279b7675d4bb7173198e532867 upstream. Because we miss to wipe the remainder of i->addr[] in packet_mc_add(), pdiag_put_mclist() leaks uninitialized heap bytes via the PACKET_DIAG_MCLIST netlink attribute. Fix this by explicitly memset(0)ing the remaining

[PATCH 3.10 128/143] VSOCK: do not disconnect socket when peer has shutdown SEND only

2016-06-05 Thread Willy Tarreau
From: Ian Campbell commit dedc58e067d8c379a15a8a183c5db318201295bb upstream. The peer may be expecting a reply having sent a request and then done a shutdown(SHUT_WR), so tearing down the whole socket at this point seems wrong and breaks for me with a client which does a SHUT_WR. Looking at oth

[PATCH 3.10 006/143] KVM: i8254: change PIT discard tick policy

2016-06-05 Thread Willy Tarreau
From: Radim Krčmář commit 7dd0fdff145c5be7146d0ac06732ae3613412ac1 upstream. Discard policy uses ack_notifiers to prevent injection of PIT interrupts before EOI from the last one. This patch changes the policy to always try to deliver the interrupt, which makes a difference when its vector i

[PATCH 3.10 076/143] usb: renesas_usbhs: disable TX IRQ before starting TX DMAC transfer

2016-06-05 Thread Willy Tarreau
From: Yoshihiro Shimoda commit 6490865c67825277b29638e839850882600b48ec upstream. This patch adds a code to surely disable TX IRQ of the pipe before starting TX DMAC transfer. Otherwise, a lot of unnecessary TX IRQs may happen in rare cases when DMAC is used. Fixes: e73a989 ("usb: renesas_usbhs

[PATCH 3.10 016/143] be2iscsi: set the boot_kset pointer to NULL in case of failure

2016-06-05 Thread Willy Tarreau
From: Maurizio Lombardi commit 84bd64993f916bcf86270c67686ecf4cea7b8933 upstream. In beiscsi_setup_boot_info(), the boot_kset pointer should be set to NULL in case of failure otherwise an invalid pointer dereference may occur later. Cc: Signed-off-by: Maurizio Lombardi Reviewed-by: Johannes T

[PATCH 3.10 107/143] lpfc: fix misleading indentation

2016-06-05 Thread Willy Tarreau
From: Arnd Bergmann commit aeb6641f8ebdd61939f462a8255b316f9bfab707 upstream. gcc-6 complains about the indentation of the lpfc_destroy_vport_work_array() call in lpfc_online(), which clearly doesn't look right: drivers/scsi/lpfc/lpfc_init.c: In function 'lpfc_online': drivers/scsi/lpfc/lpfc_in

[PATCH 3.10 132/143] ring-buffer: Use long for nr_pages to avoid overflow failures

2016-06-05 Thread Willy Tarreau
From: "Steven Rostedt (Red Hat)" commit 9b94a8fba501f38368aef6ac1b30e7335252a220 upstream. The size variable to change the ring buffer in ftrace is a long. The nr_pages used to update the ring buffer based on the size is int. On 64 bit machines this can cause an overflow problem. For example, t

[PATCH 3.10 105/143] nbd: ratelimit error msgs after socket close

2016-06-05 Thread Willy Tarreau
From: Dan Streetman commit da6ccaaa79caca4f38b540b651238f87215217a2 upstream. Make the "Attempted send on closed socket" error messages generated in nbd_request_handler() ratelimited. When the nbd socket is shutdown, the nbd_request_handler() function emits an error message for every request re

[PATCH 3.10 143/143] serial: samsung: Reorder the sequence of clock control when call s3c24xx_serial_set_termios()

2016-06-05 Thread Willy Tarreau
From: Chanwoo Choi commit b8995f527aac143e83d3900ff39357651ea4e0f6 upstream. This patch fixes the broken serial log when changing the clock source of uart device. Before disabling the original clock source, this patch enables the new clock source to protect the clock off state for a split second

[PATCH 3.10 134/143] mfd: omap-usb-tll: Fix scheduling while atomic BUG

2016-06-05 Thread Willy Tarreau
From: Roger Quadros commit b49b927f16acee626c56a1af4ab4cb062f75b5df upstream. We shouldn't be calling clk_prepare_enable()/clk_prepare_disable() in an atomic context. Fixes the following issue: [5.830970] ehci-omap: OMAP-EHCI Host Controller driver [5.830974] driver_register 'ehci-omap

[PATCH 3.10 118/143] get_rock_ridge_filename(): handle malformed NM entries

2016-06-05 Thread Willy Tarreau
From: Al Viro commit 99d825822eade8d827a1817357cbf3f889a552d6 upstream. Payloads of NM entries are not supposed to contain NUL. When we run into such, only the part prior to the first NUL goes into the concatenation (i.e. the directory entry name being encoded by a bunch of NM entries). We do

[PATCH 3.10 035/143] watchdog: rc32434_wdt: fix ioctl error handling

2016-06-05 Thread Willy Tarreau
From: "Michael S. Tsirkin" commit 10e7ac22cdd4d211cef99afcb9371b70cb175be6 upstream. Calling return copy_to_user(...) in an ioctl will not do the right thing if there's a pagefault: copy_to_user returns the number of bytes not copied in this case. Fix up watchdog/rc32434_wdt to do retur

[PATCH 3.10 049/143] Input: ati_remote2 - fix crashes on detecting device with invalid descriptor

2016-06-05 Thread Willy Tarreau
From: Vladis Dronov commit 950336ba3e4a1ffd2ca60d29f6ef386dd2c7351d upstream. The ati_remote2 driver expects at least two interfaces with one endpoint each. If given malicious descriptor that specify one interface or no endpoints, it will crash in the probe function. Ensure there is at least two

[PATCH 3.10 077/143] ext4: add lockdep annotations for i_data_sem

2016-06-05 Thread Willy Tarreau
From: Theodore Ts'o commit daf647d2dd58cec59570d7698a45b98e580f2076 upstream. With the internal Quota feature, mke2fs creates empty quota inodes and quota usage tracking is enabled as soon as the file system is mounted. Since quotacheck is no longer preallocating all of the blocks in the quota i

[PATCH 3.10 090/143] ASoC: s3c24xx: use const snd_soc_component_driver pointer

2016-06-05 Thread Willy Tarreau
From: Arnd Bergmann commit ba4bc32eaa39ba7687f0958ae90eec94da613b46 upstream. An older patch to convert the API in the s3c i2s driver ended up passing a const pointer into a function that takes a non-const pointer, so we now get a warning: sound/soc/samsung/s3c2412-i2s.c: In function 's3c2412_i

[PATCH 3.10 074/143] ip6_tunnel: set rtnl_link_ops before calling register_netdevice

2016-06-05 Thread Willy Tarreau
From: Thadeu Lima de Souza Cascardo commit b6ee376cb0b7fb4e7e07d6cd248bd40436fb9ba6 upstream. When creating an ip6tnl tunnel with ip tunnel, rtnl_link_ops is not set before ip6_tnl_create2 is called. When register_netdevice is called, there is no linkinfo attribute in the NEWLINK message because

[PATCH 3.10 081/143] usbvision: fix leak of usb_dev on failure paths in usbvision_probe()

2016-06-05 Thread Willy Tarreau
From: Alexey Khoroshilov commit afd270d1a45043cef14341bcceff62ed50e8dc9a upstream. There is no usb_put_dev() on failure paths in usbvision_probe(). Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov Signed-off-by: Hans Verkuil Signed-off-by: Maur

[PATCH 3.10 103/143] compiler-gcc: disable -ftracer for __noclone functions

2016-06-05 Thread Willy Tarreau
From: Paolo Bonzini commit 95272c29378ee7dc15f43fa2758cb28a5913a06d upstream. -ftracer can duplicate asm blocks causing compilation to fail in noclone functions. For example, KVM declares a global variable in an asm like asm("2: ... \n .pushsection data \n .global vmx_ret

[PATCH 3.10 054/143] perf/x86/intel: Fix PEBS data source interpretation on Nehalem/Westmere

2016-06-05 Thread Willy Tarreau
From: Andi Kleen commit e17dc65328057c00db7e1bfea249c8771a78b30b upstream. Jiri reported some time ago that some entries in the PEBS data source table in perf do not agree with the SDM. We investigated and the bits changed for Sandy Bridge, but the SDM was not updated. perf already implements t

[PATCH 3.10 050/143] ocfs2/dlm: fix race between convert and recovery

2016-06-05 Thread Willy Tarreau
From: Joseph Qi commit ac7cf246dfdbec3d8fed296c7bf30e16f5099dac upstream. There is a race window between dlmconvert_remote and dlm_move_lockres_to_recovery_list, which will cause a lock with OCFS2_LOCK_BUSY in grant list, thus system hangs. dlmconvert_remote { spin_lock(&res->spinlock);

[PATCH 3.10 058/143] ALSA: timer: Use mod_timer() for rearming the system timer

2016-06-05 Thread Willy Tarreau
From: Takashi Iwai commit 4a07083ed613644c96c34a7dd2853dc5d7c70902 upstream. ALSA system timer backend stops the timer via del_timer() without sync and leaves del_timer_sync() at the close instead. This is because of the restriction by the design of ALSA timer: namely, the stop callback may be

[PATCH 3.10 102/143] ARM: OMAP3: Add cpuidle parameters table for omap3430

2016-06-05 Thread Willy Tarreau
From: Pali Rohár commit 98f42221501353067251fbf11e732707dbb68ce3 upstream. Based on CPU type choose generic omap3 or omap3430 specific cpuidle parameters. Parameters for omap3430 were measured on Nokia N900 device and added by commit 5a1b1d3a9efa ("OMAP3: RX-51: Pass cpu idle parameters") which

[PATCH 3.10 059/143] net: jme: fix suspend/resume on JMC260

2016-06-05 Thread Willy Tarreau
From: Diego Viola commit ee50c130c82175eaa0820c96b6d3763928af2241 upstream. The JMC260 network card fails to suspend/resume because the call to jme_start_irq() was too early, moving the call to jme_start_irq() after the call to jme_reset_link() makes it work. Prior this change suspend/resume wo

[PATCH 3.10 023/143] USB: cypress_m8: add endpoint sanity check

2016-06-05 Thread Willy Tarreau
From: Oliver Neukum commit c55aee1bf0e6b6feec8b2927b43f7a09a6d5f754 upstream. An attack using missing endpoints exists. CVE-2016-3137 Signed-off-by: Oliver Neukum CC: sta...@vger.kernel.org Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman Signed-off-by: Willy Tarreau --- driv

[PATCH 3.10 022/143] USB: digi_acceleport: do sanity checking for the number of ports

2016-06-05 Thread Willy Tarreau
From: Oliver Neukum commit 5a07975ad0a36708c6b0a5b9fea1ff811d0b0c1f upstream. The driver can be crashed with devices that expose crafted descriptors with too few endpoints. See: http://seclists.org/bugtraq/2016/Mar/61 Signed-off-by: Oliver Neukum [johan: fix OOB endpoint check and add error m

[PATCH 3.10 036/143] splice: handle zero nr_pages in splice_to_pipe()

2016-06-05 Thread Willy Tarreau
From: Rabin Vincent commit d6785d9152147596f60234157da2b02540c3e60f upstream. Running the following command: busybox cat /sys/kernel/debug/tracing/trace_pipe > /dev/null with any tracing enabled pretty very quickly leads to various NULL pointer dereferences and VM BUG_ON()s, such as these:

[PATCH 3.10 020/143] USB: usb_driver_claim_interface: add sanity checking

2016-06-05 Thread Willy Tarreau
From: Oliver Neukum commit 0b818e3956fc1ad976bee791eadcbb3b5fec5bfd upstream. Attacks that trick drivers into passing a NULL pointer to usb_driver_claim_interface() using forged descriptors are known. This thwarts them by sanity checking. Signed-off-by: Oliver Neukum CC: sta...@vger.kernel.org

Re: [PATCH] net: ethernet: cavium: liquidio: request_manager: Remove create_workqueue

2016-06-05 Thread Tejun Heo
On Sat, Jun 04, 2016 at 08:54:00PM +0530, Bhaktipriya Shridhar wrote: > diff --git a/drivers/net/ethernet/cavium/liquidio/request_manager.c > b/drivers/net/ethernet/cavium/liquidio/request_manager.c > index a2a2465..9313915 100644 > --- a/drivers/net/ethernet/cavium/liquidio/request_manager.c > ++

[PATCH 3.10 114/143] USB: serial: cp210x: add Straizona Focusers device ids

2016-06-05 Thread Willy Tarreau
From: Jasem Mutlaq commit 613ac23a46e10d4d4339febdd534fafadd68e059 upstream. Adding VID:PID for Straizona Focusers to cp210x driver. Signed-off-by: Jasem Mutlaq Cc: stable Signed-off-by: Johan Hovold Signed-off-by: Willy Tarreau --- drivers/usb/serial/cp210x.c | 2 ++ 1 file changed, 2 ins

[PATCH 3.10 141/143] USB: serial: option: add support for Cinterion PH8 and AHxx

2016-06-05 Thread Willy Tarreau
From: Schemmel Hans-Christoph commit 444f94e9e625f6ec6bbe2cb232a6451c637f35a3 upstream. Added support for Gemalto's Cinterion PH8 and AHxx products with 2 RmNet Interfaces and products with 1 RmNet + 1 USB Audio interface. In addition some minor renaming and formatting. Signed-off-by: Hans-Chr

[PATCH 3.10 113/143] USB: serial: cp210x: add ID for Link ECU

2016-06-05 Thread Willy Tarreau
From: Mike Manning commit 1d377f4d690637a0121eac8701f84a0aa1e69a69 upstream. The Link ECU is an aftermarket ECU computer for vehicles that provides full tuning abilities as well as datalogging and displaying capabilities via the USB to Serial adapter built into the device. Signed-off-by: Mike M

Re: [PATCH] net: ethernet: cavium: liquidio: response_manager: Remove create_workqueue

2016-06-05 Thread Tejun Heo
On Sat, Jun 04, 2016 at 08:21:40PM +0530, Bhaktipriya Shridhar wrote: > alloc_workqueue replaces deprecated create_workqueue(). > > A dedicated workqueue has been used since the workitem viz > (&cwq->wk.work which maps to oct_poll_req_completion) is involved > in normal device operation. WQ_MEM_RE

[PATCH 3.10 089/143] EDAC: i7core, sb_edac: Don't return NOTIFY_BAD from mce_decoder callback

2016-06-05 Thread Willy Tarreau
From: Tony Luck commit c4fc1956fa31003bfbe4f597e359d751568e2954 upstream. Both of these drivers can return NOTIFY_BAD, but this terminates processing other callbacks that were registered later on the chain. Since the driver did nothing to log the error it seems wrong to prevent other interested

[PATCH 3.10 133/143] ring-buffer: Prevent overflow of size in ring_buffer_resize()

2016-06-05 Thread Willy Tarreau
From: "Steven Rostedt (Red Hat)" commit 59643d1535eb220668692a5359de22545af579f6 upstream. If the size passed to ring_buffer_resize() is greater than MAX_LONG - BUF_PAGE_SIZE then the DIV_ROUND_UP() will return zero. Here's the details: # echo 18014398509481980 > /sys/kernel/debug/tracing/b

include/linux/unaligned/access_ok.h:7:19: error: redefinition of 'get_unaligned_le16'

2016-06-05 Thread kbuild test robot
Hi, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 049ec1b5a76d34a6980cccdb7c0baeb4eed7a993 commit: 3194c6870158e305dac2af52f83681e9cb67280f NFC: nfcmrvl: add firmware download support date: 7 months ago config:

[PATCH 3.10 123/143] route: do not cache fib route info on local routes with oif

2016-06-05 Thread Willy Tarreau
From: Chris Friesen commit d6d5e999e5df67f8ec20b6be45e2229455ee3699 upstream. For local routes that require a particular output interface we do not want to cache the result. Caching the result causes incorrect behaviour when there are multiple source addresses on the interface. The end result

[PATCH 3.10 055/143] hwmon: (max1111) Return -ENODEV from max1111_read_channel if not instantiated

2016-06-05 Thread Willy Tarreau
From: Guenter Roeck commit 3c2e2266a5bd2d1cef258e6e54dca1d99946379f upstream. arm:pxa_defconfig can result in the following crash if the max driver is not instantiated. Unhandled fault: page domain fault (0x01b) at 0x pgd = c0004000 [] *pgd= Internal error: : 1b [#1]

[PATCH 3.10 056/143] parisc: Avoid function pointers for kernel exception routines

2016-06-05 Thread Willy Tarreau
From: Helge Deller commit e3893027a300927049efc1572f852201eb785142 upstream. We want to avoid the kernel module loader to create function pointers for the kernel fixup routines of get_user() and put_user(). Changing the external reference from function type to int type fixes this. This unbreaks

[PATCH 3.10 073/143] ipv6: l2tp: fix a potential issue in l2tp_ip6_recv

2016-06-05 Thread Willy Tarreau
From: Haishuang Yan commit be447f305494e019dfc37ea4cdf3b0e4200b4eba upstream. pskb_may_pull() can change skb->data, so we have to load ptr/optr at the right place. Signed-off-by: Haishuang Yan Signed-off-by: David S. Miller Signed-off-by: Willy Tarreau --- net/l2tp/l2tp_ip6.c | 8 +---

[PATCH 3.10 063/143] usbnet: cleanup after bind() in probe()

2016-06-05 Thread Willy Tarreau
From: Oliver Neukum commit 1666984c8625b3db19a9abc298931d35ab7bc64b upstream. In case bind() works, but a later error forces bailing in probe() in error cases work and a timer may be scheduled. They must be killed. This fixes an error case related to the double free reported in http://www.spinic

[PATCH 3.10 007/143] KVM: fix spin_lock_init order on x86

2016-06-05 Thread Willy Tarreau
From: Paolo Bonzini commit e9ad4ec8379ad1ba6f68b8ca1c26b50b5ae0a327 upstream. Moving the initialization earlier is needed in 4.6 because kvm_arch_init_vm is now using mmu_lock, causing lockdep to complain: [ 284.440294] INFO: trying to register non-static key. [ 284.445259] the code is fine b

[PATCH 3.10 028/143] net: irda: Fix use-after-free in irtty_open()

2016-06-05 Thread Willy Tarreau
From: Peter Hurley commit 401879c57f01cbf2da204ad2e8db910525c6dbea upstream. The N_IRDA line discipline may access the previous line discipline's closed and already-fre private data on open [1]. The tty->disc_data field _never_ refers to valid data on entry to the line discipline's open() metho

[PATCH 3.10 079/143] drm/radeon: hold reference to fences in radeon_sa_bo_new (3.17 and older)

2016-06-05 Thread Willy Tarreau
From: Nicolai Hähnle [Backport of upstream commit f6ff4f67cdf8455d0a4226eeeaf5af17c37d05eb, with an additional NULL pointer guard that is required for kernels 3.17 and older. To be precise, any kernel that does *not* have commit 954605ca3 "drm/radeon: use common fence implementation for fence

[PATCH 3.10 122/143] decnet: Do not build routes to devices without decnet private data.

2016-06-05 Thread Willy Tarreau
From: "David S. Miller" commit a36a0d4008488fa545c74445d69eaf56377d5d4e upstream. In particular, make sure we check for decnet private presence for loopback devices. Signed-off-by: David S. Miller Signed-off-by: Willy Tarreau --- net/decnet/dn_route.c | 9 - 1 file changed, 8 inserti

Re: [PATCH] nfds: Fix NFSD_MDS_PR_KEY on 32-bit by adding ULL postfix

2016-06-05 Thread Jeff Layton
On Sun, 2016-06-05 at 11:23 +0200, Geert Uytterhoeven wrote: > On 32-bit: > > fs/nfsd/blocklayout.c: In function ‘nfsd4_block_get_device_info_scsi’: > fs/nfsd/blocklayout.c:337: warning: integer constant is too large for > ‘long’ type > fs/nfsd/blocklayout.c:344: warning: integer cons

[PATCH 3.10 112/143] ACPICA: Dispatcher: Update thread ID for recursive method calls

2016-06-05 Thread Willy Tarreau
From: Prarit Bhargava commit 93d68841a23a5779cef6fb9aa0ef32e7c5bd00da upstream. ACPICA commit 7a3bd2d962f221809f25ddb826c9e551b916eb25 Set the mutex owner thread ID. Original patch from: Prarit Bhargava Link: https://bugzilla.kernel.org/show_bug.cgi?id=115121 Link: https://github.com/acpica/a

[PATCH 3.10 064/143] udp6: fix UDP/IPv6 encap resubmit path

2016-06-05 Thread Willy Tarreau
From: Bill Sommerfeld commit 59dca1d8a6725a121dae6c452de0b2611d5865dc upstream. 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 f

[PATCH 3.10 080/143] [media] usbvision-video: fix memory leak of alt_max_pkt_size

2016-06-05 Thread Willy Tarreau
From: Alexey Khoroshilov commit 090c65b694c362adb19ec9c27de216a808ee443c upstream. 1. usbvision->alt_max_pkt_size is not deallocated anywhere. 2. if allocation of usbvision->alt_max_pkt_size fails, there is no proper deallocation of already acquired resources. The patch adds kfree(usbvision->alt

[PATCH 3.10 104/143] ipvs: correct initial offset of Call-ID header search in SIP persistence engine

2016-06-05 Thread Willy Tarreau
From: Marco Angaroni commit 7617a24f83b5d67f4dab1844956be1cebc44aec8 upstream. The IPVS SIP persistence engine is not able to parse the SIP header "Call-ID" when such header is inserted in the first positions of the SIP message. When IPVS is configured with "--pe sip" option, like for example:

[PATCH 3.10 025/143] USB: option: add "D-Link DWM-221 B1" device id

2016-06-05 Thread Willy Tarreau
From: Bjørn Mork commit d48d5691ebf88a15d95ba96486917ffc79256536 upstream. Thomas reports: "Windows: 00 diagnostics 01 modem 02 at-port 03 nmea 04 nic Linux: T: Bus=02 Lev=01 Prnt=01 Port=03 Cnt=01 Dev#= 4 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vend

[PATCH 3.10 116/143] powerpc: scan_features() updates incorrect bits for REAL_LE

2016-06-05 Thread Willy Tarreau
From: Anton Blanchard commit 6997e57d693b07289694239e52a10d2f02c3a46f upstream. The REAL_LE feature entry in the ibm_pa_feature struct is missing an MMU feature value, meaning all the remaining elements initialise the wrong values. This means instead of checking for byte 5, bit 0, we check for

Re: [PATCH] net: wireless: marvell: libertas: Remove create_workqueue

2016-06-05 Thread Tejun Heo
On Sat, Jun 04, 2016 at 07:29:01PM +0530, Bhaktipriya Shridhar wrote: > alloc_workqueue replaces deprecated create_workqueue(). > > In if_sdio.c, the workqueue card->workqueue has workitem > &card->packet_worker, which is mapped to if_sdio_host_to_card_worker. > The workitem is involved in sending

[PATCH 3.10 027/143] Input: powermate - fix oops with malicious USB descriptors

2016-06-05 Thread Willy Tarreau
From: Josh Boyer commit 9c6ba456711687b794dcf285856fc14e2c76074f upstream. The powermate driver expects at least one valid USB endpoint in its probe function. If given malicious descriptors that specify 0 for the number of endpoints, it will crash. Validate the number of endpoints on the inter

[PATCH 3.10 121/143] ARM: OMAP3: Fix booting with thumb2 kernel

2016-06-05 Thread Willy Tarreau
From: Tony Lindgren commit d8a50941c91a68da202aaa96a3dacd471ea9c693 upstream. We get a NULL pointer dereference on omap3 for thumb2 compiled kernels: Internal error: Oops: 8005 [#1] SMP THUMB2 ... [] (_raw_spin_unlock_irqrestore) from [] (omap3_enter_idle_bm+0xc5/0x178) [] (omap3_enter_idle

[PATCH 3.10 088/143] i2c: cpm: Fix build break due to incompatible pointer types

2016-06-05 Thread Willy Tarreau
From: Michael Ellerman commit 609d5a1b2b35bb62b4b3750396e55453160c2a17 upstream. Since commit ea8daa7b9784 ("kbuild: Add option to turn incompatible pointer check into error"), assignments from an incompatible pointer types have become a hard error, eg: drivers/i2c/busses/i2c-cpm.c:545:91: er

[PATCH 3.10 120/143] asmlinkage, pnp: Make variables used from assembler code visible

2016-06-05 Thread Willy Tarreau
From: Andi Kleen commit a99aa42d0253f033cbb85096d3f2bd82201321e6 upstream. Mark variables referenced from assembler files visible. This fixes compile problems with LTO. Cc: Jaroslav Kysela Signed-off-by: Andi Kleen Link: http://lkml.kernel.org/r/1391845930-28580-4-git-send-email...@linux.in

[PATCH 3.10 115/143] Input: ads7846 - correct the value got from SPI

2016-06-05 Thread Willy Tarreau
From: Andrey Gelman commit 879f2fea8a5a748bcbf98d2cdce9139c045505d3 upstream. According to the touch controller spec, SPI return a 16 bit value, only 12 bits are valid, they are bit[14-3]. The value of MISO and MOSI can be configured when SPI is in idle mode. Currently this touch driver assumes

[PATCH 3.10 087/143] Input: gtco - fix crash on detecting device without endpoints

2016-06-05 Thread Willy Tarreau
From: Vladis Dronov commit 162f98dea487206d9ab79fc12ed64700667a894d upstream. The gtco driver expects at least one valid endpoint. If given malicious descriptors that specify 0 for the number of endpoints, it will crash in the probe function. Ensure there is at least one endpoint on the interfac

[PATCH 3.10 130/143] net: fix a kernel infoleak in x25 module

2016-06-05 Thread Willy Tarreau
From: Kangjie Lu commit 79e48650320e6fba48369fccf13fd045315b19b8 upstream. Stack object "dte_facilities" is allocated in x25_rx_call_request(), which is supposed to be initialized in x25_negotiate_facilities. However, 5 fields (8 bytes in total) are not initialized. This object is then copied to

[PATCH 3.10 051/143] ocfs2/dlm: fix BUG in dlm_move_lockres_to_recovery_list

2016-06-05 Thread Willy Tarreau
From: Joseph Qi commit be12b299a83fc807bbaccd2bcb8ec50cbb0cb55c upstream. When master handles convert request, it queues ast first and then returns status. This may happen that the ast is sent before the request status because the above two messages are sent by two threads. And right after the

[PATCH 3.10 083/143] usb: xhci: fix wild pointers in xhci_mem_cleanup

2016-06-05 Thread Willy Tarreau
From: Lu Baolu commit 71504062a7c34838c3fccd92c447f399d3cb5797 upstream. This patch fixes some wild pointers produced by xhci_mem_cleanup. These wild pointers will cause system crash if xhci_mem_cleanup() is called twice. Reported-and-tested-by: Pengcheng Li Signed-off-by: Lu Baolu Signed-off

[PATCH 3.10 098/143] drivers/misc/ad525x_dpot: AD5274 fix RDAC read back errors

2016-06-05 Thread Willy Tarreau
From: Michael Hennerich commit f3df53e4d70b5736368a8fe8aa1bb70c1cb1f577 upstream. Fix RDAC read back errors caused by a typo. Value must shift by 2. Fixes: a4bd394956f2 ("drivers/misc/ad525x_dpot.c: new features") Signed-off-by: Michael Hennerich Signed-off-by: Greg Kroah-Hartman Signed-off-b

[PATCH 3.10 109/143] proc: prevent accessing /proc//environ until it's ready

2016-06-05 Thread Willy Tarreau
From: Mathias Krause commit 8148a73c9901a8794a50f950083c00ccf97d43b3 upstream. If /proc//environ gets read before the envp[] array is fully set up in create_{aout,elf,elf_fdpic,flat}_tables(), we might end up trying to read more bytes than are actually written, as env_start will already be set b

[PATCH 3.10 138/143] USB: serial: keyspan: fix use-after-free in probe error path

2016-06-05 Thread Willy Tarreau
From: Johan Hovold commit 35be1a71d70775e7bd7e45fa6d2897342ff4c9d2 upstream. The interface instat and indat URBs were submitted in attach, but never unlinked in release before deallocating the corresponding transfer buffers. In the case of a late probe error (e.g. due to failed minor allocation

[PATCH 3.10 014/143] sg: fix dxferp in from_to case

2016-06-05 Thread Willy Tarreau
From: Douglas Gilbert commit 5ecee0a3ee8d74b6950cb41e8989b0c2174568d4 upstream. One of the strange things that the original sg driver did was let the user provide both a data-out buffer (it followed the sg_header+cdb) _and_ specify a reply length greater than zero. What happened was that the use

[PATCH 3.10 011/143] x86: Rename X86_CR4_RDWRGSFS to X86_CR4_FSGSBASE

2016-06-05 Thread Willy Tarreau
From: "H. Peter Anvin" commit afcbf13fa6d53d8a97eafaca1dcb344331d2ce0c upstream. Rename X86_CR4_RDWRGSFS to X86_CR4_FSGSBASE to match the SDM. Signed-off-by: H. Peter Anvin Cc: Marcelo Tosatti Cc: Gleb Natapov Link: http://lkml.kernel.org/n/tip-buq1evi5dpykxx7ak6ama...@git.kernel.org [wt: ba

[PATCH 3.10 096/143] misc/bmp085: Enable building as a module

2016-06-05 Thread Willy Tarreau
From: Ben Hutchings commit 50e6315dba721cbc24ccd6d7b299f1782f210a98 upstream. Commit 985087dbcb02 'misc: add support for bmp18x chips to the bmp085 driver' changed the BMP085 config symbol to a boolean. I see no reason why the shared code cannot be built as a module, so change it back to trista

[PATCH 3.10 101/143] perf stat: Document --detailed option

2016-06-05 Thread Willy Tarreau
From: Borislav Petkov commit f594bae08183fb6b57db55387794ece3e1edf6f6 upstream. I'm surprised this remained undocumented since at least 2011. And it is actually a very useful switch, as Steve and I came to realize recently. Add the text from 2cba3ffb9a9d ("perf stat: Add -d -d and -d -d -d o

  1   2   3   4   5   6   7   8   >