[PATCH 4.9 017/105] USB: devio: Dont corrupt user memory

2017-10-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter commit fa1ed74eb1c233be6131ec92df21ab46499a15b6 upstream. The user buffer has "uurb->buffer_length" bytes. If the kernel has more information than that, we should truncate it ins

[PATCH 4.9 016/105] USB: dummy-hcd: Fix erroneous synchronization change

2017-10-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Alan Stern commit 7dbd8f4cabd96db5a50513de9d83a8105a5ffc81 upstream. A recent change to the synchronization in dummy-hcd was incorrect. The issue was that dummy_udc_stop() contained no locking

[PATCH 4.9 012/105] usb: pci-quirks.c: Corrected timeout values used in handshake

2017-10-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Jim Dickerson commit 114ec3a6f9096d211a4aff4277793ba969a62c73 upstream. Servers were emitting failed handoff messages but were not waiting the full 1 second as designated in section 4.22.1 of t

RE: [PATCH 03/10] perf tool: new iterfaces to read event from ring buffer

2017-10-10 Thread Liang, Kan
> On 2017/10/11 3:17, Arnaldo Carvalho de Melo wrote: > > Em Wed, Oct 11, 2017 at 03:10:37AM +0800, Wangnan (F) escreveu: > >> > >> On 2017/10/11 3:00, Arnaldo Carvalho de Melo wrote: > >>> Em Tue, Oct 10, 2017 at 03:36:28PM -0300, Arnaldo Carvalho de Melo > escreveu: > Em Tue, Oct 10, 2017 at

[PATCH 4.9 011/105] ALSA: usb-audio: Check out-of-bounds access by corrupted buffer descriptor

2017-10-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit bfc81a8bc18e3c4ba0cbaa7666ff76be2f998991 upstream. When a USB-audio device receives a maliciously adjusted or corrupted buffer descriptor, the USB-audio driver may access an

Re: [PATCH] rtl8xxxu: mark expected switch fall-throughs

2017-10-10 Thread Florian Fainelli
On 10/10/2017 12:35 PM, Jes Sorensen wrote: > On 10/10/2017 03:30 PM, Gustavo A. R. Silva wrote: >> In preparation to enabling -Wimplicit-fallthrough, mark switch cases >> where we are expecting to fall through. > > While this isn't harmful, to me this looks like pointless patch churn > for zero g

[PATCH 4.9 001/105] USB: gadgetfs: Fix crash caused by inadequate synchronization

2017-10-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Alan Stern commit 520b72fc64debf8a86c3853b8e486aa5982188f0 upstream. The gadgetfs driver (drivers/usb/gadget/legacy/inode.c) was written before the UDC and composite frameworks were adopted; it

[PATCH 4.4 37/47] iio: adc: mcp320x: Fix readout of negative voltages

2017-10-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Lukas Wunner commit e6f4794371ee7cce1339e7ca9542f1e703c5f84a upstream. Commit f686a36b4b79 ("iio: adc: mcp320x: Add support for mcp3301") returns a signed voltage from mcp320x_adc_conversion()

[PATCH 4.4 35/47] iio: core: Return error for failed read_reg

2017-10-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Matt Fornero commit 3d62c78a6eb9a7d67bace9622b66ad51e81c5f9b upstream. If an IIO device returns an error code for a read access via debugfs, it is currently ignored by the IIO core (other than

[PATCH 4.4 31/47] iio: adc: twl4030: Fix an error handling path in twl4030_madc_probe()

2017-10-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Christophe JAILLET commit 245a396a9b1a67ac5c3228737c261b3e48708a2a upstream. If 'devm_regulator_get()' fails, we should go through the existing error handling path instead of returning directly

[PATCH 4.4 33/47] iio: ad_sigma_delta: Implement a dedicated reset function

2017-10-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Dragos Bogdan commit 7fc10de8d49a748c476532c9d8e8fe19e548dd67 upstream. Since most of the SD ADCs have the option of reseting the serial interface by sending a number of SCLKs with CS = 0 and D

Re: [PATCH 09/12] of: overlay: avoid race condition between applying multiple overlays

2017-10-10 Thread Rob Herring
On Tue, Oct 10, 2017 at 2:39 PM, Frank Rowand wrote: > On 10/10/17 11:40, Rob Herring wrote: >> On Wed, Oct 04, 2017 at 08:29:59PM -0700, Frank Rowand wrote: >>> On 10/04/17 08:19, Rob Herring wrote: On Mon, Oct 2, 2017 at 10:53 PM, wrote: > From: Frank Rowand > > The process o

Re: [PATCH 2/3] perf/ftrace: Fix function trace events

2017-10-10 Thread Peter Zijlstra
On Tue, Oct 10, 2017 at 03:43:59PM -0400, Steven Rostedt wrote: > On Tue, 10 Oct 2017 18:31:26 +0200 > Peter Zijlstra wrote: > > --- a/kernel/trace/trace_event_perf.c > > +++ b/kernel/trace/trace_event_perf.c > > @@ -240,27 +240,31 @@ void perf_trace_destroy(struct perf_even > > int perf_trace_a

[PATCH 4.4 47/47] ext4: dont allow encrypted operations without keys

2017-10-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Theodore Ts'o commit 173b8439e1ba362007315868928bf9d26e5cc5a6 upstream. While we allow deletes without the key, the following should not be permitted: # cd /vdc/encrypted-dir-without-key # ls

[PATCH 4.4 44/47] sched/cpuset/pm: Fix cpuset vs. suspend-resume bugs

2017-10-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Peter Zijlstra commit 50e76632339d4655859523a39249dd95ee5e93e7 upstream. Cpusets vs. suspend-resume is _completely_ broken. And it got noticed because it now resulted in non-cpuset usage breaki

[PATCH 4.4 45/47] ext4: fix data corruption for mmap writes

2017-10-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Jan Kara commit a056bdaae7a181f7dcc876cfab2f94538e508709 upstream. mpage_submit_page() can race with another process growing i_size and writing data via mmap to the written-back page. As mpage_

[PATCH 4.4 41/47] brcmfmac: setup passive scan if requested by user-space

2017-10-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Arend Van Spriel commit 35f62727df0ed8e5e4857e162d94fd46d861f1cf upstream. The driver was not properly configuring firmware with regard to the type of scan. It always performed an active scan e

[PATCH 4.4 38/47] iio: adc: mcp320x: Fix oops on module unload

2017-10-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Lukas Wunner commit 0964e40947a630a2a6f724e968246992f97bcf1c upstream. The driver calls spi_get_drvdata() in its ->remove hook even though it has never called spi_set_drvdata(). Stack trace fo

[PATCH 4.4 00/47] 4.4.92-stable review

2017-10-10 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.4.92 release. There are 47 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Thu Oct 12 19:50:01 UTC 2017. Anything receive

[PATCH 4.4 09/47] usb: pci-quirks.c: Corrected timeout values used in handshake

2017-10-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Jim Dickerson commit 114ec3a6f9096d211a4aff4277793ba969a62c73 upstream. Servers were emitting failed handoff messages but were not waiting the full 1 second as designated in section 4.22.1 of t

[PATCH] rtl8xxxu: mark expected switch fall-throughs

2017-10-10 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Cc: Jes Sorensen Cc: Kalle Valo Cc: linux-wirel...@vger.kernel.org Cc: net...@vger.kernel.org Signed-off-by: Gustavo A. R. Silva --- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.

[PATCH 4.4 06/47] usb: renesas_usbhs: fix the BCLR setting condition for non-DCP pipe

2017-10-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Yoshihiro Shimoda commit 6124607acc88fffeaadf3aacfeb3cc1304c87387 upstream. This patch fixes an issue that the driver sets the BCLR bit of {C,Dn}FIFOCTR register to 1 even when it's non-DCP pip

[PATCH 4.4 07/47] usb: renesas_usbhs: fix usbhsf_fifo_clear() for RX direction

2017-10-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Yoshihiro Shimoda commit 0a2ce62b61f2c76d0213edf4e37aaf54a8ddf295 upstream. This patch fixes an issue that the usbhsf_fifo_clear() is possible to cause 10 msec delay if the pipe is RX direction

[PATCH 4.4 05/47] usb-storage: unusual_devs entry to fix write-access regression for Seagate external drives

2017-10-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Alan Stern commit 113f6eb6d50cfa5e2a1cdcf1678b12661fa272ab upstream. Kris Lindgren reports that without the NO_WP_DETECT flag, his Seagate external disk drive fails all write accesses. This re

Re: [PATCH 1/3] perf/ftrace: Revert ("perf/ftrace: Fix double traces of perf on ftrace:function")

2017-10-10 Thread Peter Zijlstra
On Tue, Oct 10, 2017 at 03:26:44PM -0400, Steven Rostedt wrote: > On Tue, 10 Oct 2017 18:31:25 +0200 > Peter Zijlstra wrote: > > > Revert commit: > > > > 75e8387685f6 ("perf/ftrace: Fix double traces of perf on ftrace:function") > > > > The reason I insta stumbled on that patch is that it onl

[PATCH 4.4 04/47] usb: gadget: udc: atmel: set vbus irqflags explicitly

2017-10-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Nicolas Ferre commit 6baeda120d90aa637b08f7604de104ab00ce9126 upstream. The driver triggers actions on both edges of the vbus signal. The former PIO controller was triggering IRQs on both fall

[PATCH 4.4 27/47] USB: core: harden cdc_parse_cdc_header

2017-10-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Greg Kroah-Hartman commit 2e1c42391ff2556387b3cb6308b24f6f65619feb upstream. Andrey Konovalov reported a possible out-of-bounds problem for the cdc_parse_cdc_header function. He writes:

[PATCH 4.4 15/47] USB: g_mass_storage: Fix deadlock when driver is unbound

2017-10-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Alan Stern commit 1fbbb78f25d1291274f320462bf6908906f538db upstream. As a holdover from the old g_file_storage gadget, the g_mass_storage legacy gadget driver attempts to unregister itself when

[PATCH 4.4 21/47] stm class: Fix a use-after-free

2017-10-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Alexander Shishkin commit fd085bb1766d6a598f53af2308374a546a49775a upstream. For reasons unknown, the stm_source removal path uses device_destroy() to kill the underlying device object. Because

[PATCH 4.4 26/47] USB: uas: fix bug in handling of alternate settings

2017-10-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Alan Stern commit 786de92b3cb26012d3d0f00ee37adf14527f35c4 upstream. The uas driver has a subtle bug in the way it handles alternate settings. The uas_find_uas_alt_setting() routine returns an

[PATCH 4.4 18/47] ALSA: usx2y: Suppress kernel warning at page allocation failures

2017-10-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 7682e399485fe19622b6fd82510b1f4551e48a25 upstream. The usx2y driver allocates the stream read/write buffers in continuous pages depending on the stream setup, and this may s

[PATCH 4.4 16/47] lsm: fix smack_inode_removexattr and xattr_getsecurity memleak

2017-10-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Casey Schaufler commit 57e7ba04d422c3d41c8426380303ec9b7533ded9 upstream. security_inode_getsecurity() provides the text string value of a security attribute. It does not provide a "secctx". Th

[PATCH 4.4 25/47] scsi: sd: Do not override max_sectors_kb sysfs setting

2017-10-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Martin K. Petersen commit 77082ca503bed061f7fbda7cfd7c93beda967a41 upstream. A user may lower the max_sectors_kb setting in sysfs to accommodate certain workloads. Previously we would always se

[PATCH 4.4 02/47] USB: gadgetfs: Fix crash caused by inadequate synchronization

2017-10-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Alan Stern commit 520b72fc64debf8a86c3853b8e486aa5982188f0 upstream. The gadgetfs driver (drivers/usb/gadget/legacy/inode.c) was written before the UDC and composite frameworks were adopted; it

[PATCH 4.4 20/47] Drivers: hv: fcopy: restore correct transfer length

2017-10-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Olaf Hering commit 549e658a0919e355a2b2144dc380b3729bef7f3e upstream. Till recently the expected length of bytes read by the daemon did depend on the context. It was either hv_start_fcopy or hv

Re: [v11 3/6] mm, oom: cgroup-aware OOM killer

2017-10-10 Thread David Rientjes
On Tue, 10 Oct 2017, Roman Gushchin wrote: > > This seems to unfairly bias the root mem cgroup depending on process size. > > It isn't treated fairly as a leaf mem cgroup if they are being compared > > based on different criteria: the root mem cgroup as (mostly) the largest > > rss of a single

[PATCH 4.4 19/47] driver core: platform: Dont read past the end of "driver_override" buffer

2017-10-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Nicolai Stange commit bf563b01c2895a4bfd1a29cc5abc67fe706ecffd upstream. When printing the driver_override parameter when it is 4095 and 4094 bytes long, the printing code would access invalid

[PATCH 4.4 23/47] HID: i2c-hid: allocate hid buffers for real worst case

2017-10-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Adrian Salido commit 8320caeeffdefec3b58b9d4a7ed8e1079492fe7b upstream. The buffer allocation is not currently accounting for an extra byte for the report id. This can cause an out of bounds ac

[PATCH 4.4 17/47] ALSA: compress: Remove unused variable

2017-10-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Guneshwor Singh commit a931b9ce93841a5b66b709ba5a244276e345e63b upstream. Commit 04c5d5a430fc ("ALSA: compress: Embed struct device") removed the statement that used 'str' but didn't remove the

[PATCH 4.4 22/47] ftrace: Fix kmemleak in unregister_ftrace_graph

2017-10-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Shu Wang commit 2b0b8499ae75df91455bbeb7491d45affc384fb0 upstream. The trampoline allocated by function tracer was overwriten by function_graph tracer, and caused a memory leak. The save_global

[PATCH 4.4 14/47] usb: gadget: mass_storage: set msg_registered after msg registered

2017-10-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Li Jun commit 8e55d30322c6a0ef746c256a1beda9c73ecb27a6 upstream. If there is no UDC available, the msg register will fail and this flag will not be set, but the driver is already added into pen

[PATCH 4.4 12/47] USB: dummy-hcd: Fix erroneous synchronization change

2017-10-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Alan Stern commit 7dbd8f4cabd96db5a50513de9d83a8105a5ffc81 upstream. A recent change to the synchronization in dummy-hcd was incorrect. The issue was that dummy_udc_stop() contained no locking

[PATCH 4.4 13/47] USB: devio: Dont corrupt user memory

2017-10-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter commit fa1ed74eb1c233be6131ec92df21ab46499a15b6 upstream. The user buffer has "uurb->buffer_length" bytes. If the kernel has more information than that, we should truncate it ins

[PATCH 3.18 18/32] iio: core: Return error for failed read_reg

2017-10-10 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Matt Fornero commit 3d62c78a6eb9a7d67bace9622b66ad51e81c5f9b upstream. If an IIO device returns an error code for a read access via debugfs, it is currently ignored by the IIO core (other than

[PATCH 4.4 11/47] USB: dummy-hcd: fix infinite-loop resubmission bug

2017-10-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Alan Stern commit 0173a68bfb0ad1c72a6ee39cc485aa2c97540b98 upstream. The dummy-hcd HCD/UDC emulator tries not to do too much work during each timer interrupt. But it doesn't try very hard; cur

[PATCH 4.4 01/47] usb: gadget: inode.c: fix unbalanced spin_lock in ep0_write

2017-10-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: David Eccher commit b7bd98b7db9fc8fe19da1a5ff0215311c6b95e46 upstream. Fix bad unlock balance: ep0_write enter with the locks locked from inode.c:1769, hence it must exit with spinlock held to

[PATCH 3.18 24/32] ALSA: usx2y: Suppress kernel warning at page allocation failures

2017-10-10 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 7682e399485fe19622b6fd82510b1f4551e48a25 upstream. The usx2y driver allocates the stream read/write buffers in continuous pages depending on the stream setup, and this may

[PATCH 3.18 32/32] ext4: validate s_first_meta_bg at mount time

2017-10-10 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Eryu Guan commit 3a4b77cd47bb837b8557595ec7425f281f2ca1fe upstream. Ralf Spenneberg reported that he hit a kernel crash when mounting a modified ext4 image. And it turns out that kernel crashe

[PATCH 3.18 21/32] uwb: properly check kthread_run return value

2017-10-10 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Andrey Konovalov commit bbf26183b7a6236ba602f4d6a2f7cade35bba043 upstream. uwbd_start() calls kthread_run() and checks that the return value is not NULL. But the return value is not NULL in ca

[PATCH 3.18 28/32] ext4: only call ext4_truncate when size <= isize

2017-10-10 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Josef Bacik commit 3da40c7b089810ac9cf2bb1e59633f619f3a7312 upstream. At LSF we decided that if we truncate up from isize we shouldn't trim fallocated blocks that were fallocated with KEEP_SIZ

[PATCH 3.18 20/32] iio: adc: mcp320x: Fix oops on module unload

2017-10-10 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Lukas Wunner commit 0964e40947a630a2a6f724e968246992f97bcf1c upstream. The driver calls spi_get_drvdata() in its ->remove hook even though it has never called spi_set_drvdata(). Stack trace f

[PATCH 3.18 31/32] ext4: Dont clear SGID when inheriting ACLs

2017-10-10 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Jan Kara commit a3bb2d5587521eea6dab2d05326abb0afb460abd upstream. When new directory 'DIR1' is created in a directory 'DIR0' with SGID bit set, DIR1 is expected to have SGID bit set (and owni

[PATCH 3.18 00/32] 3.18.75-stable review

2017-10-10 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 3.18.75 release. There are 32 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Thu Oct 12 18:48:11 UTC 2017. Anything receiv

[PATCH 3.18 08/32] usb: pci-quirks.c: Corrected timeout values used in handshake

2017-10-10 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Jim Dickerson commit 114ec3a6f9096d211a4aff4277793ba969a62c73 upstream. Servers were emitting failed handoff messages but were not waiting the full 1 second as designated in section 4.22.1 of

RE: [PATCH v4 13/14] platform/x86: dell-smbios-wmi: introduce userspace interface

2017-10-10 Thread Mario.Limonciello
Alan, > -Original Message- > From: Alan Cox [mailto:gno...@lxorguk.ukuu.org.uk] > Sent: Tuesday, October 10, 2017 2:41 PM > To: Limonciello, Mario > Cc: gre...@linuxfoundation.org; pali.ro...@gmail.com; dvh...@infradead.org; > andy.shevche...@gmail.com; linux-kernel@vger.kernel.org; platf

[PATCH 3.18 04/32] usb-storage: unusual_devs entry to fix write-access regression for Seagate external drives

2017-10-10 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Alan Stern commit 113f6eb6d50cfa5e2a1cdcf1678b12661fa272ab upstream. Kris Lindgren reports that without the NO_WP_DETECT flag, his Seagate external disk drive fails all write accesses. This r

[PATCH 3.18 06/32] usb: renesas_usbhs: fix usbhsf_fifo_clear() for RX direction

2017-10-10 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Yoshihiro Shimoda commit 0a2ce62b61f2c76d0213edf4e37aaf54a8ddf295 upstream. This patch fixes an issue that the usbhsf_fifo_clear() is possible to cause 10 msec delay if the pipe is RX directio

[PATCH 3.18 05/32] usb: renesas_usbhs: fix the BCLR setting condition for non-DCP pipe

2017-10-10 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Yoshihiro Shimoda commit 6124607acc88fffeaadf3aacfeb3cc1304c87387 upstream. This patch fixes an issue that the driver sets the BCLR bit of {C,Dn}FIFOCTR register to 1 even when it's non-DCP pi

Re: PROBLEM: Kernel BUG in mfgpt_tick (cs5535-clockevt.c) on ALIX 2c3 - null call

2017-10-10 Thread David Kozub
On Tue, 10 Oct 2017, Daniel Lezcano wrote: On 09/10/2017 21:33, David Kozub wrote: On Mon, 9 Oct 2017, Daniel Lezcano wrote: On 07/10/2017 23:26, David Kozub wrote: Hi all, booting up kernel 4.14-rc3 with CS5535_CLOCK_EVENT_SRC on an ALIX 2c3 (http://pcengines.ch/alix2c3.htm) dies with: [ 

[PATCH 3.18 17/32] staging: iio: ad7192: Fix - use the dedicated reset function avoiding dma from stack.

2017-10-10 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Stefan Popa commit f790923f146140a261ad211e5baf75d169f16fb2 upstream. Depends on: 691c4b95d1 ("iio: ad_sigma_delta: Implement a dedicated reset function") SPI host drivers can use DMA to tra

[PATCH 3.18 15/32] xhci: fix finding correct bus_state structure for USB 3.1 hosts

2017-10-10 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Mathias Nyman commit 5a838a13c9b4e5dd188b7a6eaeb894e9358ead0c upstream. xhci driver keeps a bus_state structure for each hcd (usb2 and usb3) The structure is picked based on hcd speed, but dr

[PATCH 3.18 02/32] USB: gadgetfs: Fix crash caused by inadequate synchronization

2017-10-10 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Alan Stern commit 520b72fc64debf8a86c3853b8e486aa5982188f0 upstream. The gadgetfs driver (drivers/usb/gadget/legacy/inode.c) was written before the UDC and composite frameworks were adopted; i

[PATCH 3.18 14/32] USB: fix out-of-bounds in usb_set_configuration

2017-10-10 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Greg Kroah-Hartman commit bd7a3fe770ebd8391d1c7d072ff88e9e76d063eb upstream. Andrey Konovalov reported a possible out-of-bounds problem for a USB interface association descriptor. He writes:

[PATCH 3.18 12/32] USB: uas: fix bug in handling of alternate settings

2017-10-10 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Alan Stern commit 786de92b3cb26012d3d0f00ee37adf14527f35c4 upstream. The uas driver has a subtle bug in the way it handles alternate settings. The uas_find_uas_alt_setting() routine returns a

Re: [PATCH] arm64: kdump: Avoid to power off nonpanic CPUs

2017-10-10 Thread Mathieu Poirier
On 8 October 2017 at 09:35, Mark Rutland wrote: > Hi Leo, > > On Sun, Oct 08, 2017 at 10:12:46PM +0800, Leo Yan wrote: >> commit a88ce63b642c ("arm64: kexec: have own crash_smp_send_stop() for >> crash dump for nonpanic cores") introduces ARM64 architecture function >> crash_smp_send_stop() to rep

[PATCH 3.18 10/32] USB: dummy-hcd: fix infinite-loop resubmission bug

2017-10-10 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Alan Stern commit 0173a68bfb0ad1c72a6ee39cc485aa2c97540b98 upstream. The dummy-hcd HCD/UDC emulator tries not to do too much work during each timer interrupt. But it doesn't try very hard; cu

Re: [PATCH v4 19/20] x86/mm: Add speculative pagefault handling

2017-10-10 Thread Andrew Morton
On Mon, 9 Oct 2017 12:07:51 +0200 Laurent Dufour wrote: > +/* > + * Advertise that we call the Speculative Page Fault handler. > + */ > +#if defined(CONFIG_X86_64) && defined(CONFIG_SMP) > +#define __HAVE_ARCH_CALL_SPF > +#endif Here's where I mess up your life ;) It would be more idiomatic t

[PATCH 2/2] arm64: dts: stratix10: enable gpio and leds

2017-10-10 Thread Alan Tull
Enable gpio and leds for socdk OOBE daughtercard. pushbutton PB_SW0 = gpio1.io4 pushbutton PB_SW1 = gpio1.io5 LED HPS_LED0 = gpio1.io20 LED HPS_LED1 = gpio1.io19 LED HPS_LED2 = gpio1.io21 Signed-off-by: Alan Tull --- .../boot/dts/altera/socfpga_stratix10_socdk.dts| 22 +++

[PATCH 1/2] arm64: dts: stratix10: add gpio header

2017-10-10 Thread Alan Tull
Add the gpio header to the base stratix10 dtsi. Signed-off-by: Alan Tull --- arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi b/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi index 6804936.

[PATCH] gpio: gpio-dwapb: add optional reset

2017-10-10 Thread Alan Tull
Some platforms require reset to be released to allow register access. Signed-off-by: Alan Tull --- drivers/gpio/gpio-dwapb.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/gpio/gpio-dwapb.c b/drivers/gpio/gpio-dwapb.c index 5cdb7bc..f7ac625 100644 --- a/drivers/gpio/

[PATCH 0/2] Add support for ZSTD-compressed kernel

2017-10-10 Thread Nick Terrell
Hi, This patch set adds support for a ZSTD-compressed kernel and ramdisk images in the kernel boot process. It only integrates the support with x86, though the first patch is generic to all architectures. Zstandard requires slightly more memory during the kernel decompression on x86 (192 KB vs 64

[PATCH 1/2] lib: Add support for ZSTD-compressed kernel

2017-10-10 Thread Nick Terrell
Add support for extracting ZSTD-compressed kernel images, as well as ZSTD-compressed ramdisk images in the kernel boot process. When neither `fill' nor `flush' are used, the decompression function requires a constant amount of memory (192 KB is sufficient). When either is used the decompression fu

[PATCH 2/2] x86: Add support for ZSTD-compressed kernel

2017-10-10 Thread Nick Terrell
Integrates the ZSTD decompression code to the x86 pre-boot code. Zstandard requires slightly more memory during the kernel decompression on x86 (192 KB vs 64 KB), and the memory usage is independent of the window size. Zstandard requires memory proportional to the window size used during compress

Re: [PATCH v2 01/16] iommu: introduce bind_pasid_table API function

2017-10-10 Thread Jacob Pan
On Tue, 10 Oct 2017 15:14:33 +0200 Joerg Roedel wrote: > Hi Jacob, > > On Thu, Oct 05, 2017 at 04:03:29PM -0700, Jacob Pan wrote: > > +int iommu_unbind_pasid_table(struct iommu_domain *domain, struct > > device *dev) +{ > > + if (unlikely(!domain->ops->unbind_pasid_table)) > > + retu

Re: [PATCH v2] dts: display5: Device tree description of LWN's DISPLAY5 board

2017-10-10 Thread Lukasz Majewski
Hi Fabio, > Hi Lukasz, > > Usually the Subject should have the ARM prefix: ARM: dts: Ok. I will change this, no problem. > > On Mon, Sep 25, 2017 at 12:37 PM, Lukasz Majewski > wrote: > > > + backlight_lvds: backlight { > > + compatible = "pwm-backlight"; > > +

Re: [PATCH v3] mm, sysctl: make NUMA stats configurable

2017-10-10 Thread Andrew Morton
On Tue, 10 Oct 2017 19:51:43 +0200 Michal Hocko wrote: > On Tue 10-10-17 08:39:47, Dave Hansen wrote: > > On 10/10/2017 07:57 AM, Michal Hocko wrote: > > >> But, let's be honest, this leaves us with an option that nobody is ever > > >> going to turn on. IOW, nobody except a very small portion of

Re: [PATCH v2] xdp: Sample xdp program implementing ip forward

2017-10-10 Thread David Daney
On 10/10/2017 10:19 AM, Stephen Hemminger wrote: On Tue, 10 Oct 2017 12:58:52 +0530 Christina Jacob wrote: +/* Get the mac address of the interface given interface name */ +static long *getmac(char *iface) +{ + int fd; + struct ifreq ifr; + long *mac = NULL; + + fd = so

Re: [PATCH v2 01/16] iommu: introduce bind_pasid_table API function

2017-10-10 Thread Jacob Pan
On Tue, 10 Oct 2017 17:45:53 +0100 Jean-Philippe Brucker wrote: > On 06/10/17 00:03, Jacob Pan wrote: > > Virtual IOMMU was proposed to support Shared Virtual Memory (SVM) > > use in the guest: > > https://lists.gnu.org/archive/html/qemu-devel/2016-11/msg05311.html > > > > As part of the propose

Re: [PATCH 1/8] Documentation: fix driver-api doc refs

2017-10-10 Thread Rafael J. Wysocki
On Tue, Oct 10, 2017 at 7:36 PM, Tom Saeger wrote: > Make driver-api document refs valid. > > Signed-off-by: Tom Saeger Acked-by: Rafael J. Wysocki > --- > Documentation/power/pci.txt | 10 +- > Documentation/power/runtime_pm.txt | 2 +- > Documentation/pro

Re: [PATCH 2/8] Documentation: fix admin-guide doc refs

2017-10-10 Thread Rafael J. Wysocki
On Tue, Oct 10, 2017 at 7:36 PM, Tom Saeger wrote: > Make admin-guide document refs valid. > > Signed-off-by: Tom Saeger Acked-by: Rafael J. Wysocki > --- > Documentation/ABI/stable/sysfs-devices | 2 +- > Documentation/ABI/testing/sysfs-devices-system-cpu | 6 -- > Documentat

Re: [PATCH v2 08/16] iommu: introduce device fault data

2017-10-10 Thread Jacob Pan
On Tue, 10 Oct 2017 20:29:29 +0100 Jean-Philippe Brucker wrote: > > +enum iommu_model { > > + IOMMU_MODEL_INTEL = 1, > > + IOMMU_MODEL_AMD, > > + IOMMU_MODEL_SMMU3, > > +}; > > Now unused, I guess? right, missed it. thanks

Re: [PATCH 2/3] srcu: queue work without holding the lock

2017-10-10 Thread Paul E. McKenney
On Thu, Sep 28, 2017 at 06:10:46PM -0700, Paul E. McKenney wrote: > On Thu, Sep 28, 2017 at 06:03:57PM +0200, Sebastian Andrzej Siewior wrote: > > On 2017-09-22 11:46:10 [-0700], Paul E. McKenney wrote: > > > On Fri, Sep 22, 2017 at 05:28:05PM +0200, Sebastian Andrzej Siewior wrote: > > > > On RT w

Re: [PATCH v2] mm/page_alloc.c: inline __rmqueue()

2017-10-10 Thread Andrew Morton
On Tue, 10 Oct 2017 13:43:43 +0800 Aaron Lu wrote: > On Mon, Oct 09, 2017 at 10:19:52PM -0700, Dave Hansen wrote: > > On 10/09/2017 07:56 PM, Aaron Lu wrote: > > > This patch adds inline to __rmqueue() and vmlinux' size doesn't have any > > > change after this patch according to size(1). > > > >

Re: [PATCH] lib/vsprintf: add default case to 'i' specifier

2017-10-10 Thread Tobin C. Harding
On Tue, Oct 10, 2017 at 12:09:35AM -0700, Joe Perches wrote: > On Mon, 2017-10-09 at 13:59 +1100, Tobin C. Harding wrote: > > %pi leaks kernel addresses if incorrectly specified. > > Are there any uses that are incorrectly specified? > grep doesn't show any. You are correct I don't see any. > >

Re: [PATCH] KVM: remove printing of token address

2017-10-10 Thread Tobin C. Harding
On Tue, Oct 10, 2017 at 10:31:11AM +0200, Paolo Bonzini wrote: > On 10/10/2017 01:51, Tobin C. Harding wrote: > > On Mon, Oct 09, 2017 at 12:58:12PM +0200, Paolo Bonzini wrote: > >> On 09/10/2017 12:04, Tobin C. Harding wrote: > >>> On Mon, Oct 09, 2017 at 03:49:38AM -0400, Paolo Bonzini wrote: > >

[PATCH v2 4/6] tuner-simple: allow setting mono radio mode

2017-10-10 Thread Maciej S. Szmigiero
For some types of tuners (Philips FMD1216ME(X) MK3 currently) we know that letting TDA9887 output port 1 remain high (inactive) will switch FM radio to mono mode. Let's make use of this functionality - nothing changes for the default stereo radio mode. Tested on a Medion 95700 board which has a FM

[PATCH v2 0/6] [media] Add analog mode support for Medion MD95700

2017-10-10 Thread Maciej S. Szmigiero
This series adds support for analog part of Medion 95700 in the cxusb driver. What works: * Video capture at various sizes with sequential fields, * Input switching (TV Tuner, Composite, S-Video), * TV and radio tuning, * Video standard switching and auto detection, * Radio mode switching (stereo

[PATCH v2 6/6] [media] cxusb: add analog mode support for Medion MD95700

2017-10-10 Thread Maciej S. Szmigiero
This patch adds support for analog part of Medion 95700 in the cxusb driver. What works: * Video capture at various sizes with sequential fields, * Input switching (TV Tuner, Composite, S-Video), * TV and radio tuning, * Video standard switching and auto detection, * Radio mode switching (stereo /

[PATCH v2 2/6] cx25840: describe standard for 0b1100 value in AFD_FMT_STAT bits

2017-10-10 Thread Maciej S. Szmigiero
A 0b1100 value in 4 LSBs of "General Status 1" register (AFD_FMT_STAT) has known meaning for CX2584x-series chips - it means that a SECAM signal is currently detected by the chip. Use this opportunity to also fix wrong binary values that were present as comments attached to some entries in an arra

Re: [PATCH v2 2/3] Makefile: support flag -fsanitizer-coverage=trace-cmp

2017-10-10 Thread kbuild test robot
Hi Victor, [auto build test ERROR on linus/master] [also build test ERROR on v4.14-rc4] [cannot apply to next-20171009] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Alexander-Potapenko/kcov-su

[PATCH v2 5/6] [media] cxusb: implement Medion MD95700 digital / analog coexistence

2017-10-10 Thread Maciej S. Szmigiero
This patch prepares cxusb driver for supporting the analog part of Medion 95700 (previously only the digital - DVB - mode was supported). Specifically, it adds support for: * switching the device between analog and digital modes of operation, * enforcing that only one mode is active at the same ti

Re: [PATCH] scsi: be2iscsi: Use kasprintf

2017-10-10 Thread Kyle Fortin
Hi Himanshu, On Oct 6, 2017, at 2:57 PM, Himanshu Jha wrote: > > Use kasprintf instead of combination of kmalloc and sprintf. > > Signed-off-by: Himanshu Jha > --- > drivers/scsi/be2iscsi/be_main.c | 12 +--- > 1 file changed, 5 insertions(+), 7 deletions(-) > > diff --git a/drivers/sc

[PATCH v2 1/6] cx25840: add pin to pad mapping and output format configuration

2017-10-10 Thread Maciej S. Szmigiero
This commit adds pin to pad mapping and output format configuration support in CX2584x-series chips to cx25840 driver. This functionality is then used to allow disabling ivtv-specific hacks (called a "generic mode"), so cx25840 driver can be used for other devices not needing them without risking

[PATCH v2 3/6] cx25840: fix a possible divide by zero in set_fmt callback

2017-10-10 Thread Maciej S. Szmigiero
If set_fmt callback is called with format->width or format->height set to zero and HACTIVE_CNT or VACTIVE_CNT bits (respectively) in chip are zero we will divide by zero later in this callback when we try to calculate HSC or VSC values. Fix this by explicitly rejecting these values. Signed-off-by

[PATCH] Bluetooth: Add support for advertising intervals

2017-10-10 Thread Thierry Escande
From: Joseph Hwang This patch adds support for specification of advertising intervals in bluetooth kernel subsystem. A new mgmt handler named set_advertising_intervals is added to support the new mgmt opcode MGMT_OP_SET_ADVERTISING_INTERVALS. The min_interval and max_interval values are stored i

Re: [PATCH 0/2] Add support for ZSTD-compressed kernel

2017-10-10 Thread hpa
On October 10, 2017 2:22:42 PM PDT, Nick Terrell wrote: >Hi, > >This patch set adds support for a ZSTD-compressed kernel and ramdisk >images in the kernel boot process. It only integrates the support with >x86, though the first patch is generic to all architectures. > >Zstandard requires slightly

Re: [PATCH v2 1/2] ARM: cpuidle: Correct driver unregistration if init fails

2017-10-10 Thread Rafael J. Wysocki
On Tue, Oct 10, 2017 at 7:47 AM, Leo Yan wrote: > If cpuidle init fails, the code misses to unregister the driver for > current CPU. Furthermore, we also need to rollback to cancel all > previous CPUs registration; but the code retrieves driver handler by > using function cpuidle_get_driver(), thi

[PATCH] mips: ip22/32: Convert timers to use timer_setup()

2017-10-10 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Adds a static variable to hold timeout value. Cc: Ralf Baechle Cc: Paul Gortmaker Cc: Ingo Molnar Cc: Jam

Re: [v11 3/6] mm, oom: cgroup-aware OOM killer

2017-10-10 Thread Roman Gushchin
On Tue, Oct 10, 2017 at 02:13:00PM -0700, David Rientjes wrote: > On Tue, 10 Oct 2017, Roman Gushchin wrote: > > > > This seems to unfairly bias the root mem cgroup depending on process > > > size. > > > It isn't treated fairly as a leaf mem cgroup if they are being compared > > > based on dif

[PATCH] scsi: ibmvscsi: Convert timers to use timer_setup()

2017-10-10 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: "Martin K. Petersen" Cc: Tyrel Datwyler Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael El

<    7   8   9   10   11   12   13   14   15   16   >