Re: [RESEND v5 4/5] clk: imx: add imx composite clock

2018-08-20 Thread Sascha Hauer
On Mon, Aug 20, 2018 at 10:16:06AM +0300, Abel Vesa wrote: > Since a lot of clocks on imx8 are formed by a mux, gate, predivider and > divider, the idea here is to combine all of those into one more complex > clock type, therefore moving the complexity inside the composite clock and > outside of th

[PATCH] ASoC: AMD: Set constraints for DMIC and MAX98357a codec

2018-08-20 Thread Akshu Agrawal
We support dual channel, 48Khz. This constraint was set only for da7219. It is being extended to DMIC and MAX98357a. Signed-off-by: Akshu Agrawal --- sound/soc/amd/acp-da7219-max98357a.c | 33 + 1 file changed, 33 insertions(+) diff --git a/sound/soc/amd/acp-da72

[PATCH] clk: x86: Set default parent to 48Mhz

2018-08-20 Thread Akshu Agrawal
System clk provided in ST soc can be set to: 48Mhz, non-spread 25Mhz, spread To get accurate rate, we need it to set it at non-spread option which is 48Mhz. Signed-off-by: Akshu Agrawal --- drivers/clk/x86/clk-st.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/x

Re: [PATCH v2 01/32] tracing: Allow gcov profiling on only ftrace subsystem

2018-08-20 Thread Masami Hiramatsu
Hi Steve, On Mon, 20 Aug 2018 11:33:49 -0400 Steven Rostedt wrote: > On Mon, 20 Aug 2018 11:32:13 -0400 > Steven Rostedt wrote: > > > Other than that, it looks fine to me. > > This patch also seems out of place for the series. Yes, this one is the patch for ftrace, not ftracetest. > Want to

Re: Regression: 18996f2db918 ("ACPICA: Events: Stop unconditionally clearing ACPI IRQs during suspend/resume" breaks resume from suspend

2018-08-20 Thread Rafael J. Wysocki
On Mon, Aug 20, 2018 at 6:29 PM Michal Suchánek wrote: > > Hello, > > after commit 18996f2db918 ("ACPICA: Events: Stop unconditionally > clearing ACPI IRQs during suspend/resume") I am no longer able to > resume from suspend. > > Reported in bugzilla https://bugzilla.kernel.org/show_bug.cgi?id=200

[PATCH] compiler-gcc: get back Clang build

2018-08-20 Thread Masahiro Yamada
Commit cafa0010cd51 ("Raise the minimum required gcc version to 4.6") missed the fact that is included by Clang as well as by GCC. Clang actually defines __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__ and it looks like GCC 4.2.1. $ scripts/gcc-version.sh -p clang 040201 If you try to build t

Re: [RFC RFT PATCH v4 1/4] gpiolib: Pass bitmaps, not integer arrays, to get/set array

2018-08-20 Thread Peter Rosin
On 2018-08-21 01:43, Janusz Krzysztofik wrote: > Most users of get/set array functions iterate consecutive bits of data, > usually a single integer, while or processing array of results obtained > from or building an array of values to be passed to those functions. > Save time wasted on those itera

Re: [PATCH] kobject: Access kobject name with caution if state is not initialized

2018-08-20 Thread Srikar Dronamraju
* Dmitry Torokhov [2018-08-20 12:33:50]: > On Mon, Aug 20, 2018 at 12:22 PM Greg Kroah-Hartman > wrote: > > > > On Mon, Aug 20, 2018 at 10:39:47PM +0530, Srikar Dronamraju wrote: > > Lots of stupid modules can do dumb things. Just don't do that. The > > kernel is not built to keep you from doi

RE: [LINUX PATCH v10 2/2] mtd: rawnand: arasan: Add support for Arasan NAND Flash Controller

2018-08-20 Thread Naga Sureshkumar Relli
Hi Boris, Thanks for the review. > -Original Message- > From: Boris Brezillon [mailto:boris.brezil...@bootlin.com] > Sent: Monday, August 20, 2018 10:10 PM > To: Naga Sureshkumar Relli > Cc: miquel.ray...@bootlin.com; rich...@nod.at; dw...@infradead.org; > computersforpe...@gmail.com; ma

[PATCH 4.14 03/29] llc: use refcount_inc_not_zero() for llc_sap_find()

2018-08-20 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Cong Wang [ Upstream commit 0dcb82254d65f72333aa50ad626d1e9665ad093b ] llc_sap_put() decreases the refcnt before deleting sap from the global list. Therefore, there is a chance llc_sap_find()

[PATCH 4.14 29/29] cls_matchall: fix tcf_unbind_filter missing

2018-08-20 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Hangbin Liu [ Upstream commit a51c76b4dfb30496dc65396a957ef0f06af7fb22 ] Fix tcf_unbind_filter missing in cls_matchall as this will trigger WARN_ON() in cbq_destroy_class(). Fixes: fd62d9f5c5

[PATCH 4.4 22/22] isdn: Disable IIOCDBGVAR

2018-08-20 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Kees Cook [ Upstream commit 5e22002aa8809e2efab2da95855f73f63e14a36c ] It was possible to directly leak the kernel address where the isdn_dev structure pointer was stored. This is a kernel ASLR

[PATCH 4.4 03/22] llc: use refcount_inc_not_zero() for llc_sap_find()

2018-08-20 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Cong Wang [ Upstream commit 0dcb82254d65f72333aa50ad626d1e9665ad093b ] llc_sap_put() decreases the refcnt before deleting sap from the global list. Therefore, there is a chance llc_sap_find() c

[PATCH 4.4 05/22] vsock: split dwork to avoid reinitializations

2018-08-20 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Cong Wang [ Upstream commit 455f05ecd2b219e9a216050796d30c830d9bc393 ] syzbot reported that we reinitialize an active delayed work in vsock_stream_connect(): ODEBUG: init active (activ

[PATCH 4.4 06/22] net_sched: fix NULL pointer dereference when delete tcindex filter

2018-08-20 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Hangbin Liu [ Upstream commit 2df8bee5654bb2b7312662ca6810d4dc16b0b67f ] Li Shuang reported the following crash: [ 71.267724] BUG: unable to handle kernel NULL pointer dereference at 00

[PATCH 4.4 07/22] ALSA: hda - Sleep for 10ms after entering D3 on Conexant codecs

2018-08-20 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Park Ju Hyung commit f59cf9a0551dd954ad8b752461cf19d9789f4b1d upstream. On rare occasions, we are still noticing that the internal speaker spitting out spurious noises even after adding the pro

[PATCH 4.4 09/22] ALSA: vx222: Fix invalid endian conversions

2018-08-20 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit fff71a4c050ba46e305d910c837b99ba1728135e upstream. The endian conversions used in vx2_dma_read() and vx2_dma_write() are superfluous and even wrong on big-endian machines, a

[PATCH 4.4 04/22] net_sched: Fix missing res info when create new tc_index filter

2018-08-20 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Hangbin Liu [ Upstream commit 008369dcc5f7bfba526c98054f8525322acf0ea3 ] Li Shuang reported the following warn: [ 733.484610] WARNING: CPU: 6 PID: 21123 at net/sched/sch_cbq.c:1418 cbq_destr

[PATCH 4.4 08/22] ALSA: hda - Turn CX8200 into D3 as well upon reboot

2018-08-20 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Park Ju Hyung commit d77a4b4a5b0b2ebcbc9840995d91311ef28302ab upstream. As an equivalent codec with CX20724, CX8200 is also subject to the reboot bug. Late 2017 and 2018 LG Gram and some HP Sp

[PATCH 4.4 00/22] 4.4.151-stable review

2018-08-20 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.4.151 release. There are 22 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 Aug 23 05:51:31 UTC 2018. Anything receiv

[PATCH 4.4 21/22] Bluetooth: avoid killing an already killed socket

2018-08-20 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Sudip Mukherjee commit 4e1a720d0312fd510699032c7694a362a010170f upstream. slub debug reported: [ 440.648642] = [

[PATCH 4.4 18/22] ACPI / PM: save NVS memory for ASUS 1025C laptop

2018-08-20 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Willy Tarreau commit 231f9415001138a000cd0f881c46654b7ea3f8c5 upstream. Every time I tried to upgrade my laptop from 3.10.x to 4.x I faced an issue by which the fan would run at full speed upon

[PATCH 4.4 19/22] serial: 8250_dw: always set baud rate in dw8250_set_termios

2018-08-20 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Chen Hu commit dfcab6ba573445c703235ab6c83758eec12d7f28 upstream. dw8250_set_termios() doesn't set baud rate if the arg "old ktermios" is NULL. This happens during resume. Call Trace: ... [ 5

[PATCH 4.4 02/22] l2tp: use sk_dst_check() to avoid race on sk->sk_dst_cache

2018-08-20 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Wei Wang [ Upstream commit 6d37fa49da1e8db8fb1995be22ac837ca41ac8a8 ] In l2tp code, if it is a L2TP_UDP_ENCAP tunnel, tunnel->sk points to a UDP socket. User could call sendmsg() on both this t

[PATCH 4.4 15/22] USB: serial: sierra: fix potential deadlock at close

2018-08-20 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: John Ogness commit e60870012e5a35b1506d7b376fddfb30e9da0b27 upstream. The portdata spinlock can be taken in interrupt context (via sierra_outdat_callback()). Disable interrupts when taking the

[PATCH 4.4 17/22] ACPI: save NVS memory for Lenovo G50-45

2018-08-20 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Zhang Rui commit cbc00c1310d34139a63946482b40a6b261a03fb9 upstream. In commit 821d6f0359b0 (ACPI / sleep: Do not save NVS for new machines to accelerate S3), to optimize S3 suspend/resume speed

[PATCH 4.4 16/22] USB: option: add support for DW5821e

2018-08-20 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Aleksander Morgado commit 7bab01ecc6c43da882333c6db39741cb43677004 upstream. The device exposes AT, NMEA and DIAG ports in both USB configurations. The patch explicitly ignores interfaces 0 an

[PATCH 4.4 01/22] dccp: fix undefined behavior with cwnd shift in ccid2_cwnd_restart()

2018-08-20 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Alexey Kodanev [ Upstream commit 61ef4b07fcdc30535889990cf4229766502561cf ] The shift of 'cwnd' with '(now - hc->tx_lsndtime) / hc->tx_rto' value can lead to undefined behavior [1]. In order t

[PATCH 4.9 09/25] ALSA: hda - Turn CX8200 into D3 as well upon reboot

2018-08-20 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Park Ju Hyung commit d77a4b4a5b0b2ebcbc9840995d91311ef28302ab upstream. As an equivalent codec with CX20724, CX8200 is also subject to the reboot bug. Late 2017 and 2018 LG Gram and some HP Sp

[PATCH 4.4 10/22] ALSA: virmidi: Fix too long output trigger loop

2018-08-20 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 50e9ffb1996a5d11ff5040a266585bad4ceeca0a upstream. The virmidi output trigger tries to parse the all available bytes and process sequencer events as much as possible. In a

[PATCH 4.4 14/22] ALSA: vxpocket: Fix invalid endian conversions

2018-08-20 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 3acd3e3bab95ec3622ff98da313290ee823a0f68 upstream. The endian conversions used in vxp_dma_read() and vxp_dma_write() are superfluous and even wrong on big-endian machines, a

[PATCH 4.4 11/22] ALSA: cs5535audio: Fix invalid endian conversion

2018-08-20 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 69756930f2de0457d51db7d505a1e4f40e9fd116 upstream. One place in cs5535audio_build_dma_packets() does an extra conversion via cpu_to_le32(); namely jmpprd_addr is passed to s

[PATCH 4.4 13/22] ALSA: memalloc: Dont exceed over the requested size

2018-08-20 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit dfef01e150824b0e6da750cacda8958188d29aea upstream. snd_dma_alloc_pages_fallback() tries to allocate pages again when the allocation fails with reduced size. But the first t

[PATCH 4.4 12/22] ALSA: hda: Correct Asrock B85M-ITX power_save blacklist entry

2018-08-20 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Hans de Goede commit 8e82a728792bf66b9f0a29c9d4c4b0630f7b9c79 upstream. I added the subsys product-id for the HDMI HDA device rather then for the PCH one, this commit fixes this. BugLink: http

[PATCH 4.9 08/25] ALSA: hda - Sleep for 10ms after entering D3 on Conexant codecs

2018-08-20 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Park Ju Hyung commit f59cf9a0551dd954ad8b752461cf19d9789f4b1d upstream. On rare occasions, we are still noticing that the internal speaker spitting out spurious noises even after adding the pro

[PATCH 4.9 07/25] net_sched: fix NULL pointer dereference when delete tcindex filter

2018-08-20 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Hangbin Liu [ Upstream commit 2df8bee5654bb2b7312662ca6810d4dc16b0b67f ] Li Shuang reported the following crash: [ 71.267724] BUG: unable to handle kernel NULL pointer dereference at 00

[PATCH 4.9 00/25] 4.9.123-stable review

2018-08-20 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.9.123 release. There are 25 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 Aug 23 05:51:15 UTC 2018. Anything receiv

[PATCH 4.9 03/25] llc: use refcount_inc_not_zero() for llc_sap_find()

2018-08-20 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Cong Wang [ Upstream commit 0dcb82254d65f72333aa50ad626d1e9665ad093b ] llc_sap_put() decreases the refcnt before deleting sap from the global list. Therefore, there is a chance llc_sap_find() c

[PATCH 4.9 23/25] serial: 8250_dw: Add ACPI support for uart on Broadcom SoC

2018-08-20 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Srinath Mannam commit 784c29eda5b4e28c3a56aa90b3815f9a1b0cfdc1 upstream. Add ACPI identifier HID for UART DW 8250 on Broadcom SoCs to match the HID passed through ACPI tables to enable UART con

[PATCH 4.9 22/25] serial: 8250_dw: always set baud rate in dw8250_set_termios

2018-08-20 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Chen Hu commit dfcab6ba573445c703235ab6c83758eec12d7f28 upstream. dw8250_set_termios() doesn't set baud rate if the arg "old ktermios" is NULL. This happens during resume. Call Trace: ... [ 5

[PATCH 4.9 04/25] vsock: split dwork to avoid reinitializations

2018-08-20 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Cong Wang [ Upstream commit 455f05ecd2b219e9a216050796d30c830d9bc393 ] syzbot reported that we reinitialize an active delayed work in vsock_stream_connect(): ODEBUG: init active (activ

[PATCH 4.9 02/25] l2tp: use sk_dst_check() to avoid race on sk->sk_dst_cache

2018-08-20 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Wei Wang [ Upstream commit 6d37fa49da1e8db8fb1995be22ac837ca41ac8a8 ] In l2tp code, if it is a L2TP_UDP_ENCAP tunnel, tunnel->sk points to a UDP socket. User could call sendmsg() on both this t

[PATCH 4.9 25/25] Bluetooth: avoid killing an already killed socket

2018-08-20 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Sudip Mukherjee commit 4e1a720d0312fd510699032c7694a362a010170f upstream. slub debug reported: [ 440.648642] = [

[PATCH 4.9 21/25] tty: serial: 8250: Revert NXP SC16C2552 workaround

2018-08-20 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Mark commit 47ac76662ca9c5852fd353093f19de3ae85f2e66 upstream. Revert commit ecb988a3b7985913d1f0112f7cdd15e40711: tty: serial: 8250: 8250_core: NXP SC16C2552 workaround The above commit c

[PATCH 4.9 20/25] ACPI / PM: save NVS memory for ASUS 1025C laptop

2018-08-20 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Willy Tarreau commit 231f9415001138a000cd0f881c46654b7ea3f8c5 upstream. Every time I tried to upgrade my laptop from 3.10.x to 4.x I faced an issue by which the fan would run at full speed upon

[PATCH 4.9 06/25] net_sched: Fix missing res info when create new tc_index filter

2018-08-20 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Hangbin Liu [ Upstream commit 008369dcc5f7bfba526c98054f8525322acf0ea3 ] Li Shuang reported the following warn: [ 733.484610] WARNING: CPU: 6 PID: 21123 at net/sched/sch_cbq.c:1418 cbq_destr

[PATCH 4.9 05/25] ip6_tunnel: use the right value for ipv4 min mtu check in ip6_tnl_xmit

2018-08-20 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Xin Long [ Upstream commit 82a40777de12728dedf4075453b694f0d1baee80 ] According to RFC791, 68 bytes is the minimum size of IPv4 datagram every device must be able to forward without further fra

[PATCH 4.9 19/25] USB: option: add support for DW5821e

2018-08-20 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Aleksander Morgado commit 7bab01ecc6c43da882333c6db39741cb43677004 upstream. The device exposes AT, NMEA and DIAG ports in both USB configurations. The patch explicitly ignores interfaces 0 an

[PATCH 4.9 18/25] USB: serial: sierra: fix potential deadlock at close

2018-08-20 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: John Ogness commit e60870012e5a35b1506d7b376fddfb30e9da0b27 upstream. The portdata spinlock can be taken in interrupt context (via sierra_outdat_callback()). Disable interrupts when taking the

[PATCH 4.9 17/25] cls_matchall: fix tcf_unbind_filter missing

2018-08-20 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Hangbin Liu [ Upstream commit a51c76b4dfb30496dc65396a957ef0f06af7fb22 ] Fix tcf_unbind_filter missing in cls_matchall as this will trigger WARN_ON() in cbq_destroy_class(). Fixes: fd62d9f5c57

[PATCH 4.14 09/29] net: aquantia: Fix IFF_ALLMULTI flag functionality

2018-08-20 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Dmitry Bogdanov [ Upstream commit 11ba961c916127651e12af6cad3891f8aeb25aa9 ] It was noticed that NIC always pass all multicast traffic to the host regardless of IFF_ALLMULTI flag on the interf

[PATCH 4.9 16/25] isdn: Disable IIOCDBGVAR

2018-08-20 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Kees Cook [ Upstream commit 5e22002aa8809e2efab2da95855f73f63e14a36c ] It was possible to directly leak the kernel address where the isdn_dev structure pointer was stored. This is a kernel ASLR

[PATCH 4.9 12/25] ALSA: cs5535audio: Fix invalid endian conversion

2018-08-20 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 69756930f2de0457d51db7d505a1e4f40e9fd116 upstream. One place in cs5535audio_build_dma_packets() does an extra conversion via cpu_to_le32(); namely jmpprd_addr is passed to s

[PATCH 4.14 06/29] net_sched: Fix missing res info when create new tc_index filter

2018-08-20 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Hangbin Liu [ Upstream commit 008369dcc5f7bfba526c98054f8525322acf0ea3 ] Li Shuang reported the following warn: [ 733.484610] WARNING: CPU: 6 PID: 21123 at net/sched/sch_cbq.c:1418 cbq_dest

[PATCH 4.9 11/25] ALSA: virmidi: Fix too long output trigger loop

2018-08-20 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 50e9ffb1996a5d11ff5040a266585bad4ceeca0a upstream. The virmidi output trigger tries to parse the all available bytes and process sequencer events as much as possible. In a

[PATCH 4.9 15/25] ALSA: vxpocket: Fix invalid endian conversions

2018-08-20 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 3acd3e3bab95ec3622ff98da313290ee823a0f68 upstream. The endian conversions used in vxp_dma_read() and vxp_dma_write() are superfluous and even wrong on big-endian machines, a

[PATCH 4.9 01/25] dccp: fix undefined behavior with cwnd shift in ccid2_cwnd_restart()

2018-08-20 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Alexey Kodanev [ Upstream commit 61ef4b07fcdc30535889990cf4229766502561cf ] The shift of 'cwnd' with '(now - hc->tx_lsndtime) / hc->tx_rto' value can lead to undefined behavior [1]. In order t

[PATCH 4.14 07/29] vhost: reset metadata cache when initializing new IOTLB

2018-08-20 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Jason Wang [ Upstream commit b13f9c6364373a1b9f71e9846dc4fb199296f926 ] We need to reset metadata cache during new IOTLB initialization, otherwise the stale pointers to previous IOTLB may be s

[PATCH 4.9 14/25] ALSA: memalloc: Dont exceed over the requested size

2018-08-20 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit dfef01e150824b0e6da750cacda8958188d29aea upstream. snd_dma_alloc_pages_fallback() tries to allocate pages again when the allocation fails with reduced size. But the first t

[PATCH 4.14 04/29] net_sched: fix NULL pointer dereference when delete tcindex filter

2018-08-20 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Hangbin Liu [ Upstream commit 2df8bee5654bb2b7312662ca6810d4dc16b0b67f ] Li Shuang reported the following crash: [ 71.267724] BUG: unable to handle kernel NULL pointer dereference at 0

[PATCH 4.14 00/29] 4.14.66-stable review

2018-08-20 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.14.66 release. There are 29 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 Aug 23 05:50:58 UTC 2018. Anything receiv

[PATCH 4.14 08/29] ip6_tunnel: use the right value for ipv4 min mtu check in ip6_tnl_xmit

2018-08-20 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Xin Long [ Upstream commit 82a40777de12728dedf4075453b694f0d1baee80 ] According to RFC791, 68 bytes is the minimum size of IPv4 datagram every device must be able to forward without further fr

[PATCH 4.9 10/25] ALSA: vx222: Fix invalid endian conversions

2018-08-20 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit fff71a4c050ba46e305d910c837b99ba1728135e upstream. The endian conversions used in vx2_dma_read() and vx2_dma_write() are superfluous and even wrong on big-endian machines, a

[PATCH 4.9 13/25] ALSA: hda: Correct Asrock B85M-ITX power_save blacklist entry

2018-08-20 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Hans de Goede commit 8e82a728792bf66b9f0a29c9d4c4b0630f7b9c79 upstream. I added the subsys product-id for the HDMI HDA device rather then for the PCH one, this commit fixes this. BugLink: http

[PATCH 4.14 05/29] vsock: split dwork to avoid reinitializations

2018-08-20 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Cong Wang [ Upstream commit 455f05ecd2b219e9a216050796d30c830d9bc393 ] syzbot reported that we reinitialize an active delayed work in vsock_stream_connect(): ODEBUG: init active (acti

[GIT PULL] arch/microblaze patches for 4.19-rc1

2018-08-20 Thread Michal Simek
Hi, please pull the following patches to your tree. Thanks, Michal The following changes since commit 021c91791a5e7e85c567452f1be3e4c2c6cb6063: Linux 4.18-rc3 (2018-07-01 16:04:53 -0700) are available in the git repository at: git://git.monstr.eu/linux-2.6-microblaze.git tags/microblaze-

[RFC][PATCH] lib/string: introduce sysfs_strncpy() and sysfs_strlcpy()

2018-08-20 Thread Sergey Senozhatsky
In sysfs ->store() callbacks we usually need to remember that a supplied sysfs input string might or might not contain whitespaces and a trailing new-line symbol, which we need to take care of. Examples: echo "newline" > /sys/.../attr echo -n "no_newine" > /sys/.../attr That's why

Re: [PATCH] ubifs: remove unnecessary check in ubifs_log_start_commit

2018-08-20 Thread Richard Weinberger
Liu Song, Am Dienstag, 21. August 2018, 05:17:22 CEST schrieb Liu Song: > The value of c->lhead_offs cannot exceed max_len which much > smaller than c->leb_size. So the check will never be true. > Just remove it. Please explain in more detail why this case is never ever possible. Removing such co

[PATCH 4.14 25/29] serial: 8250_dw: Add ACPI support for uart on Broadcom SoC

2018-08-20 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Srinath Mannam commit 784c29eda5b4e28c3a56aa90b3815f9a1b0cfdc1 upstream. Add ACPI identifier HID for UART DW 8250 on Broadcom SoCs to match the HID passed through ACPI tables to enable UART co

[PATCH 4.14 28/29] isdn: Disable IIOCDBGVAR

2018-08-20 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Kees Cook [ Upstream commit 5e22002aa8809e2efab2da95855f73f63e14a36c ] It was possible to directly leak the kernel address where the isdn_dev structure pointer was stored. This is a kernel ASL

[PATCH 4.14 26/29] misc: sram: fix resource leaks in probe error path

2018-08-20 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit f294d00961d1d869ecffa60e280e1ccf9a49 upstream. Make sure to disable clocks and deregister any exported partitions before returning on late probe errors. Note that sinc

[PATCH 4.14 24/29] serial: 8250_dw: always set baud rate in dw8250_set_termios

2018-08-20 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Chen Hu commit dfcab6ba573445c703235ab6c83758eec12d7f28 upstream. dw8250_set_termios() doesn't set baud rate if the arg "old ktermios" is NULL. This happens during resume. Call Trace: ... [

[PATCH 4.14 27/29] Bluetooth: avoid killing an already killed socket

2018-08-20 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Sudip Mukherjee commit 4e1a720d0312fd510699032c7694a362a010170f upstream. slub debug reported: [ 440.648642] = [

[PATCH 4.14 22/29] tty: serial: 8250: Revert NXP SC16C2552 workaround

2018-08-20 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Mark commit 47ac76662ca9c5852fd353093f19de3ae85f2e66 upstream. Revert commit ecb988a3b7985913d1f0112f7cdd15e40711: tty: serial: 8250: 8250_core: NXP SC16C2552 workaround The above commit

[PATCH 4.14 23/29] serial: 8250_exar: Read INT0 from slave device, too

2018-08-20 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Aaron Sierra commit 60ab0fafc4b652fcaf7cbc3bb8555a0cf1149c28 upstream. The sleep wake-up refactoring that I introduced in commit c7e1b4059075 ("tty: serial: exar: Relocate sleep wake-up han

[PATCH 4.14 19/29] USB: serial: pl2303: add a new device id for ATEN

2018-08-20 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Movie Song commit 29c692c96b3a39cd1911fb79cd2505af8d070f07 upstream. Signed-off-by: Movie Song Cc: Johan Hovold Cc: stable Signed-off-by: Greg Kroah-Hartman --- drivers/usb/serial/pl2303

[PATCH 4.14 18/29] USB: serial: sierra: fix potential deadlock at close

2018-08-20 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: John Ogness commit e60870012e5a35b1506d7b376fddfb30e9da0b27 upstream. The portdata spinlock can be taken in interrupt context (via sierra_outdat_callback()). Disable interrupts when taking the

[PATCH 4.14 21/29] ACPI / PM: save NVS memory for ASUS 1025C laptop

2018-08-20 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Willy Tarreau commit 231f9415001138a000cd0f881c46654b7ea3f8c5 upstream. Every time I tried to upgrade my laptop from 3.10.x to 4.x I faced an issue by which the fan would run at full speed upo

[PATCH 4.14 17/29] ALSA: vxpocket: Fix invalid endian conversions

2018-08-20 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 3acd3e3bab95ec3622ff98da313290ee823a0f68 upstream. The endian conversions used in vxp_dma_read() and vxp_dma_write() are superfluous and even wrong on big-endian machines,

[PATCH 4.14 02/29] l2tp: use sk_dst_check() to avoid race on sk->sk_dst_cache

2018-08-20 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Wei Wang [ Upstream commit 6d37fa49da1e8db8fb1995be22ac837ca41ac8a8 ] In l2tp code, if it is a L2TP_UDP_ENCAP tunnel, tunnel->sk points to a UDP socket. User could call sendmsg() on both this

[PATCH 4.14 20/29] USB: option: add support for DW5821e

2018-08-20 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Aleksander Morgado commit 7bab01ecc6c43da882333c6db39741cb43677004 upstream. The device exposes AT, NMEA and DIAG ports in both USB configurations. The patch explicitly ignores interfaces 0 a

[PATCH 4.14 14/29] ALSA: cs5535audio: Fix invalid endian conversion

2018-08-20 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 69756930f2de0457d51db7d505a1e4f40e9fd116 upstream. One place in cs5535audio_build_dma_packets() does an extra conversion via cpu_to_le32(); namely jmpprd_addr is passed to

[PATCH 4.14 15/29] ALSA: hda: Correct Asrock B85M-ITX power_save blacklist entry

2018-08-20 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Hans de Goede commit 8e82a728792bf66b9f0a29c9d4c4b0630f7b9c79 upstream. I added the subsys product-id for the HDMI HDA device rather then for the PCH one, this commit fixes this. BugLink: htt

[PATCH 4.14 16/29] ALSA: memalloc: Dont exceed over the requested size

2018-08-20 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit dfef01e150824b0e6da750cacda8958188d29aea upstream. snd_dma_alloc_pages_fallback() tries to allocate pages again when the allocation fails with reduced size. But the first

[PATCH 4.14 13/29] ALSA: virmidi: Fix too long output trigger loop

2018-08-20 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 50e9ffb1996a5d11ff5040a266585bad4ceeca0a upstream. The virmidi output trigger tries to parse the all available bytes and process sequencer events as much as possible. In a

[PATCH 4.14 10/29] ALSA: hda - Sleep for 10ms after entering D3 on Conexant codecs

2018-08-20 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Park Ju Hyung commit f59cf9a0551dd954ad8b752461cf19d9789f4b1d upstream. On rare occasions, we are still noticing that the internal speaker spitting out spurious noises even after adding the pr

[PATCH 4.14 12/29] ALSA: vx222: Fix invalid endian conversions

2018-08-20 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit fff71a4c050ba46e305d910c837b99ba1728135e upstream. The endian conversions used in vx2_dma_read() and vx2_dma_write() are superfluous and even wrong on big-endian machines,

[PATCH 4.17 23/42] ALSA: memalloc: Dont exceed over the requested size

2018-08-20 Thread Greg Kroah-Hartman
4.17-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit dfef01e150824b0e6da750cacda8958188d29aea upstream. snd_dma_alloc_pages_fallback() tries to allocate pages again when the allocation fails with reduced size. But the first

[PATCH 4.17 28/42] USB: option: add support for DW5821e

2018-08-20 Thread Greg Kroah-Hartman
4.17-stable review patch. If anyone has any objections, please let me know. -- From: Aleksander Morgado commit 7bab01ecc6c43da882333c6db39741cb43677004 upstream. The device exposes AT, NMEA and DIAG ports in both USB configurations. The patch explicitly ignores interfaces 0 a

[PATCH 4.17 29/42] ACPI / PM: save NVS memory for ASUS 1025C laptop

2018-08-20 Thread Greg Kroah-Hartman
4.17-stable review patch. If anyone has any objections, please let me know. -- From: Willy Tarreau commit 231f9415001138a000cd0f881c46654b7ea3f8c5 upstream. Every time I tried to upgrade my laptop from 3.10.x to 4.x I faced an issue by which the fan would run at full speed upo

[PATCH 4.17 32/42] serial: 8250_dw: always set baud rate in dw8250_set_termios

2018-08-20 Thread Greg Kroah-Hartman
4.17-stable review patch. If anyone has any objections, please let me know. -- From: Chen Hu commit dfcab6ba573445c703235ab6c83758eec12d7f28 upstream. dw8250_set_termios() doesn't set baud rate if the arg "old ktermios" is NULL. This happens during resume. Call Trace: ... [

[PATCH 4.17 25/42] ALSA: seq: Fix poll() error return

2018-08-20 Thread Greg Kroah-Hartman
4.17-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit a49a71f6e25da2acc637fcd31e73debd96ca18f8 upstream. The sanity checks in ALSA sequencer and OSS sequencer emulation codes return falsely -ENXIO from poll callback. They sho

[PATCH 4.14 11/29] ALSA: hda - Turn CX8200 into D3 as well upon reboot

2018-08-20 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Park Ju Hyung commit d77a4b4a5b0b2ebcbc9840995d91311ef28302ab upstream. As an equivalent codec with CX20724, CX8200 is also subject to the reboot bug. Late 2017 and 2018 LG Gram and some HP S

[PATCH 4.17 42/42] net: mvneta: fix mvneta_config_rss on armada 3700

2018-08-20 Thread Greg Kroah-Hartman
4.17-stable review patch. If anyone has any objections, please let me know. -- From: Jisheng Zhang [ Upstream commit 0f5c6c30a0f8c629b92ecdaef61b315c43fde10a ] The mvneta Ethernet driver is used on a few different Marvell SoCs. Some SoCs have per cpu interrupts for Ethernet ev

[PATCH 4.14 01/29] dccp: fix undefined behavior with cwnd shift in ccid2_cwnd_restart()

2018-08-20 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Alexey Kodanev [ Upstream commit 61ef4b07fcdc30535889990cf4229766502561cf ] The shift of 'cwnd' with '(now - hc->tx_lsndtime) / hc->tx_rto' value can lead to undefined behavior [1]. In order

[PATCH 4.17 30/42] tty: serial: 8250: Revert NXP SC16C2552 workaround

2018-08-20 Thread Greg Kroah-Hartman
4.17-stable review patch. If anyone has any objections, please let me know. -- From: Mark commit 47ac76662ca9c5852fd353093f19de3ae85f2e66 upstream. Revert commit ecb988a3b7985913d1f0112f7cdd15e40711: tty: serial: 8250: 8250_core: NXP SC16C2552 workaround The above commit

[PATCH 4.17 31/42] serial: 8250_exar: Read INT0 from slave device, too

2018-08-20 Thread Greg Kroah-Hartman
4.17-stable review patch. If anyone has any objections, please let me know. -- From: Aaron Sierra commit 60ab0fafc4b652fcaf7cbc3bb8555a0cf1149c28 upstream. The sleep wake-up refactoring that I introduced in commit c7e1b4059075 ("tty: serial: exar: Relocate sleep wake-up han

[PATCH 4.17 27/42] USB: serial: pl2303: add a new device id for ATEN

2018-08-20 Thread Greg Kroah-Hartman
4.17-stable review patch. If anyone has any objections, please let me know. -- From: Movie Song commit 29c692c96b3a39cd1911fb79cd2505af8d070f07 upstream. Signed-off-by: Movie Song Cc: Johan Hovold Cc: stable Signed-off-by: Greg Kroah-Hartman --- drivers/usb/serial/pl2303

[PATCH 4.17 26/42] USB: serial: sierra: fix potential deadlock at close

2018-08-20 Thread Greg Kroah-Hartman
4.17-stable review patch. If anyone has any objections, please let me know. -- From: John Ogness commit e60870012e5a35b1506d7b376fddfb30e9da0b27 upstream. The portdata spinlock can be taken in interrupt context (via sierra_outdat_callback()). Disable interrupts when taking the

[PATCH 4.17 39/42] ip_vti: fix a null pointer deferrence when create vti fallback tunnel

2018-08-20 Thread Greg Kroah-Hartman
4.17-stable review patch. If anyone has any objections, please let me know. -- From: Haishuang Yan [ Upstream commit cd1aa9c2c665cafbd05b83507d3f1096f3912aa4 ] After set fb_tunnels_only_for_init_net to 1, the itn->fb_tunnel_dev will be NULL and will cause following crash: [ 2

  1   2   3   4   5   6   >