Re: [PATCH] usb-serial:cp210x: add support to software flow control

2020-07-30 Thread Greg KH
On Thu, Jul 30, 2020 at 03:59:22PM +0800, Sheng Long Wang wrote: > From: Wang Sheng Long > > When data is transmitted between two serial ports, > the phenomenon of data loss often occurs. The two kinds > of flow control commonly used in serial communication > are hardware flow control and

[PATCH 4.4 33/54] serial: 8250_mtk: Fix high-speed baud rates clamping

2020-07-30 Thread Greg Kroah-Hartman
From: Serge Semin commit 551e553f0d4ab623e2a6f424ab5834f9c7b5229c upstream. Commit 7b668c064ec3 ("serial: 8250: Fix max baud limit in generic 8250 port") fixed limits of a baud rate setting for a generic 8250 port. In other words since that commit the baud rate has been permitted to be within

[PATCH 4.4 54/54] perf probe: Fix to check blacklist address correctly

2020-07-30 Thread Greg Kroah-Hartman
From: Masami Hiramatsu commit 80526491c2ca6abc028c0f0dbb0707a1f35fb18a upstream. Fix to check kprobe blacklist address correctly with relocated address by adjusting debuginfo address. Since the address in the debuginfo is same as objdump, it is different from relocated kernel address with

[PATCH 4.4 53/54] perf annotate: Use asprintf when formatting objdump command line

2020-07-30 Thread Greg Kroah-Hartman
From: Arnaldo Carvalho de Melo commit 6810158d526e483868e519befff407b91e76b3db upstream. We were using a local buffer with an arbitrary size, that would have to get increased to avoid truncation as warned by gcc 8: util/annotate.c: In function 'symbol__disassemble': util/annotate.c:1488:4:

[PATCH rdma-next 0/3] Cleanups to flow creation paths

2020-07-30 Thread Leon Romanovsky
From: Leon Romanovsky Very straightforward cleanup. Thanks Leon Romanovsky (3): RDMA/mlx5: Simplify multiple else-if cases with switch keyword RDMA/mlx5: Replace open-coded offsetofend() macro RDMA: Remove constant domain argument from flow creation call

[PATCH 4.4 49/54] xfs: set format back to extents if xfs_bmap_extents_to_btree

2020-07-30 Thread Greg Kroah-Hartman
From: Eric Sandeen commit 2c4306f719b083d17df2963bc761777576b8ad1b upstream. If xfs_bmap_extents_to_btree fails in a mode where we call xfs_iroot_realloc(-1) to de-allocate the root, set the format back to extents. Otherwise we can assume we can dereference ifp->if_broot based on the

[PATCH 4.4 37/54] ath9k: Fix regression with Atheros 9271

2020-07-30 Thread Greg Kroah-Hartman
From: Mark O'Donovan commit 92f53e2fda8bb9a559ad61d57bfb397ce67ed0ab upstream. This fix allows ath9k_htc modules to connect to WLAN once again. Fixes: 2bbcaaee1fcb ("ath9k: Fix general protection fault in ath9k_hif_usb_rx_cb") Link: https://bugzilla.kernel.org/show_bug.cgi?id=208251

[PATCH 4.4 06/54] drivers/net/wan/lapbether: Fixed the value of hard_header_len

2020-07-30 Thread Greg Kroah-Hartman
From: Xie He [ Upstream commit 9dc829a135fb5927f1519de11286e2bbb79f5b66 ] When this driver transmits data, first this driver will remove a pseudo header of 1 byte, then the lapb module will prepend the LAPB header of 2 or 3 bytes, then this driver will prepend a length field of 2 bytes,

[PATCH 4.4 50/54] tools/lib/subcmd/pager.c: do not alias select() params

2020-07-30 Thread Greg Kroah-Hartman
From: Sergey Senozhatsky commit dfbc3c6cb747c074aa2ba0a10bbeea588d6dfda6 upstream. [ Change applied file from tools/lib/subcmd/pager.c to tools/perf/util/pager.c ] Use a separate fd set for select()-s exception fds param to fix the following gcc warning: pager.c:36:12: error: passing

[PATCH 4.4 08/54] drm/nouveau/i2c/g94-: increase NV_PMGR_DP_AUXCTL_TRANSACTREQ timeout

2020-07-30 Thread Greg Kroah-Hartman
From: Ben Skeggs [ Upstream commit 0156e76d388310a490aeb0f2fbb5b284ded3aecc ] Tegra TRM says worst-case reply time is 1216us, and this should fix some spurious timeouts that have been popping up. Signed-off-by: Ben Skeggs Signed-off-by: Sasha Levin ---

[PATCH 4.4 07/54] net: sky2: initialize return of gm_phy_read

2020-07-30 Thread Greg Kroah-Hartman
From: Tom Rix [ Upstream commit 28b18e4eb515af7c6661c3995c6e3c34412c2874 ] clang static analysis flags this garbage return drivers/net/ethernet/marvell/sky2.c:208:2: warning: Undefined or garbage value returned to caller [core.uninitialized.UndefReturn] return v; ^~~~

[PATCH 4.4 09/54] SUNRPC reverting d03727b248d0 ("NFSv4 fix CLOSE not waiting for direct IO compeletion")

2020-07-30 Thread Greg Kroah-Hartman
From: Olga Kornievskaia commit 65caafd0d2145d1dd02072c4ced540624daeab40 upstream. Reverting commit d03727b248d0 "NFSv4 fix CLOSE not waiting for direct IO compeletion". This patch made it so that fput() by calling inode_dio_done() in nfs_file_release() would wait uninterruptably for any

[PATCH 4.4 00/54] 4.4.232-rc1 review

2020-07-30 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.4.232 release. There are 54 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 Sat, 01 Aug 2020 07:44:05 +. Anything

[PATCH 4.4 25/54] x86: math-emu: Fix up cmp insn for clang ias

2020-07-30 Thread Greg Kroah-Hartman
From: Arnd Bergmann [ Upstream commit 81e96851ea32deb2c921c870eecabf335f598aeb ] The clang integrated assembler requires the 'cmp' instruction to have a length prefix here: arch/x86/math-emu/wm_sqrt.S:212:2: error: ambiguous instructions require an explicit suffix (could be 'cmpb', 'cmpw', or

Re: [PATCH 1/4] drivers/perf: Add support for ARMv8.3-SPE

2020-07-30 Thread Leo Yan
Hi Suzuki, On Wed, Jul 29, 2020 at 10:12:50AM +0100, Suzuki Kuruppassery Poulose wrote: > On 07/24/2020 10:16 AM, Wei Li wrote: > > Armv8.3 extends the SPE by adding: > > - Alignment field in the Events packet, and filtering on this event > >using PMSEVFR_EL1. > > - Support for the Scalable

[PATCH 4.4 32/54] serial: 8250: fix null-ptr-deref in serial8250_start_tx()

2020-07-30 Thread Greg Kroah-Hartman
From: Yang Yingliang commit f4c23a140d80ef5e6d3d1f8f57007649014b60fa upstream. I got null-ptr-deref in serial8250_start_tx(): [ 78.114630] Unable to handle kernel NULL pointer dereference at virtual address [ 78.123778] Mem abort info: [ 78.126560] ESR = 0x8607 [

[PATCH 4.4 34/54] mm/memcg: fix refcount error while moving and swapping

2020-07-30 Thread Greg Kroah-Hartman
From: Hugh Dickins commit 8d22a9351035ef2ff12ef163a1091b8b8cf1e49c upstream. It was hard to keep a test running, moving tasks between memcgs with move_charge_at_immigrate, while swapping: mem_cgroup_id_get_many()'s refcount is discovered to be 0 (supposedly impossible), so it is then forced to

[PATCH 4.4 43/54] tcp: allow at most one TLP probe per flight

2020-07-30 Thread Greg Kroah-Hartman
From: Yuchung Cheng [ Upstream commit 76be93fc0702322179bb0ea87295d820ee46ad14 ] Previously TLP may send multiple probes of new data in one flight. This happens when the sender is cwnd limited. After the initial TLP containing new data is sent, the sender receives another ACK that acks partial

[PATCH 4.4 51/54] perf: Make perf able to build with latest libbfd

2020-07-30 Thread Greg Kroah-Hartman
From: Changbin Du commit 0ada120c883d4f1f6aafd01cf0fbb10d8bbba015 upstream. libbfd has changed the bfd_section_* macros to inline functions bfd_section_ since 2019-09-18. See below two commits: o http://www.sourceware.org/ml/gdb-cvs/2019-09/msg00064.html o

[PATCH 4.4 36/54] ath9k: Fix general protection fault in ath9k_hif_usb_rx_cb

2020-07-30 Thread Greg Kroah-Hartman
From: Qiujun Huang commit 2bbcaaee1fcbd83272e29f31e2bb7e70d8c49e05 upstream. In ath9k_hif_usb_rx_cb interface number is assumed to be 0. usb_ifnum_to_if(urb->dev, 0) But it isn't always true. The case reported by syzbot: https://lore.kernel.org/linux-usb/666c9c05a1c05...@google.com

[PATCH 4.4 26/54] Revert "cifs: Fix the target file was deleted when rename failed."

2020-07-30 Thread Greg Kroah-Hartman
From: Steve French commit 0e6705182d4e1b77248a93470d6d7b3013d59b30 upstream. This reverts commit 9ffad9263b467efd8f8dc7ae1941a0a655a2bab2. Upon additional testing with older servers, it was found that the original commit introduced a regression when using the old SMB1 dialect and rsyncing over

[PATCH 4.4 03/54] scsi: scsi_transport_spi: Fix function pointer check

2020-07-30 Thread Greg Kroah-Hartman
From: Tom Rix [ Upstream commit 5aee52c44d9170591df65fafa1cd408acc1225ce ] clang static analysis flags several null function pointer problems. drivers/scsi/scsi_transport_spi.c:374:1: warning: Called function pointer is null (null dereference) [core.CallAndMessage]

[PATCH 4.4 28/54] staging: comedi: addi_apci_1032: check INSN_CONFIG_DIGITAL_TRIG shift

2020-07-30 Thread Greg Kroah-Hartman
From: Ian Abbott commit 0bd0db42a030b75c20028c7ba6e327b9cb554116 upstream. The `INSN_CONFIG` comedi instruction with sub-instruction code `INSN_CONFIG_DIGITAL_TRIG` includes a base channel in `data[3]`. This is used as a right shift amount for other bitmask values without being checked. Shift

Re: [Linux-kernel-mentees] [PATCH v3] media/v4l2-core: Fix kernel-infoleak in video_put_user()

2020-07-30 Thread Arnd Bergmann
On Thu, Jul 30, 2020 at 10:07 AM Bartosz Golaszewski wrote: > > On Tue, Jul 28, 2020 at 3:58 PM Arnd Bergmann wrote: > > > > On Tue, Jul 28, 2020 at 3:06 PM Dan Carpenter > > wrote: > > Something like > > > > static int lineevent_put_data(void __user *uptr, struct gpioevent_data *ge) > > { > >

[PATCH 4.4 31/54] staging: comedi: addi_apci_1564: check INSN_CONFIG_DIGITAL_TRIG shift

2020-07-30 Thread Greg Kroah-Hartman
From: Ian Abbott commit 926234f1b8434c4409aa4c53637aa3362ca07cea upstream. The `INSN_CONFIG` comedi instruction with sub-instruction code `INSN_CONFIG_DIGITAL_TRIG` includes a base channel in `data[3]`. This is used as a right shift amount for other bitmask values without being checked. Shift

[PATCH 4.4 30/54] staging: comedi: addi_apci_1500: check INSN_CONFIG_DIGITAL_TRIG shift

2020-07-30 Thread Greg Kroah-Hartman
From: Ian Abbott commit fc846e9db67c7e808d77bf9e2ef3d49e3820ce5d upstream. The `INSN_CONFIG` comedi instruction with sub-instruction code `INSN_CONFIG_DIGITAL_TRIG` includes a base channel in `data[3]`. This is used as a right shift amount for other bitmask values without being checked. Shift

[PATCH 4.4 22/54] regmap: dev_get_regmap_match(): fix string comparison

2020-07-30 Thread Greg Kroah-Hartman
From: Marc Kleine-Budde [ Upstream commit e84861fec32dee8a2e62bbaa52cded6b05a2a456 ] This function is used by dev_get_regmap() to retrieve a regmap for the specified device. If the device has more than one regmap, the name parameter can be used to specify one. The code here uses a pointer

[PATCH] usb-serial:cp210x: add support to software flow control

2020-07-30 Thread Sheng Long Wang
From: Wang Sheng Long When data is transmitted between two serial ports, the phenomenon of data loss often occurs. The two kinds of flow control commonly used in serial communication are hardware flow control and software flow control. In serial communication, If you only use RX/TX/GND Pins,

[PATCH 4.4 27/54] staging: wlan-ng: properly check endpoint types

2020-07-30 Thread Greg Kroah-Hartman
From: Rustam Kovhaev commit faaff9765664009c1c7c65551d32e9ed3b1dda8f upstream. As syzkaller detected, wlan-ng driver does not do sanity check of endpoints in prism2sta_probe_usb(), add check for xfer direction and type Reported-and-tested-by:

[PATCH 4.9 49/61] net-sysfs: add a newline when printing tx_timeout by sysfs

2020-07-30 Thread Greg Kroah-Hartman
From: Xiongfeng Wang [ Upstream commit 9bb5fbea59f36a589ef886292549ca4052fe676c ] When I cat 'tx_timeout' by sysfs, it displays as follows. It's better to add a newline for easy reading. root@syzkaller:~# cat /sys/devices/virtual/net/lo/queues/tx-0/tx_timeout 0root@syzkaller:~# Signed-off-by:

[PATCH 4.9 48/61] dev: Defer free of skbs in flush_backlog

2020-07-30 Thread Greg Kroah-Hartman
From: Subash Abhinov Kasiviswanathan [ Upstream commit 7df5cb75cfb8acf96c7f2342530eb41e0c11f4c3 ] IRQs are disabled when freeing skbs in input queue. Use the IRQ safe variant to free skbs here. Fixes: 145dd5f9c88f ("net: flush the softnet backlog in process context") Signed-off-by: Subash

[PATCH 4.9 53/61] tcp: allow at most one TLP probe per flight

2020-07-30 Thread Greg Kroah-Hartman
From: Yuchung Cheng [ Upstream commit 76be93fc0702322179bb0ea87295d820ee46ad14 ] Previously TLP may send multiple probes of new data in one flight. This happens when the sender is cwnd limited. After the initial TLP containing new data is sent, the sender receives another ACK that acks partial

[PATCH 4.4 21/54] scripts/decode_stacktrace: strip basepath from all paths

2020-07-30 Thread Greg Kroah-Hartman
From: Pi-Hsun Shih [ Upstream commit d178770d8d21489abf5bafefcbb6d5243b482e9a ] Currently the basepath is removed only from the beginning of the string. When the symbol is inlined and there's multiple line outputs of addr2line, only the first line would have basepath removed. Change to remove

Re: [Linux-kernel-mentees] [PATCH v2] block/floppy: Prevent kernel-infoleak in raw_cmd_copyout()

2020-07-30 Thread Arnd Bergmann
> On Wed, Jul 29, 2020 at 3:22 PM Denis Efremov wrote: > And checked for leaks on x86_64 with the script test.sh > $ cat test.sh > #!/bin/bash > > for i in 4.8 5 6 7 8 9 10 > do > ./run_container.sh gcc-$i $(pwd)/src $(pwd)/out bash -c 'gcc test.c; ./a.out' > ./run_container.sh gcc-$i $(pwd)/src

[PATCH 4.9 19/61] net: smc91x: Fix possible memory leak in smc_drv_probe()

2020-07-30 Thread Greg Kroah-Hartman
From: Wang Hai [ Upstream commit bca9749b1aa23d964d3ab930938af66dbf887f15 ] If try_toggle_control_gpio() failed in smc_drv_probe(), free_netdev(ndev) should be called to free the ndev created earlier. Otherwise, a memleak will occur. Fixes: 7d2911c43815 ("net: smc91x: Fix gpios for device tree

[PATCH 4.9 57/61] xfs: set format back to extents if xfs_bmap_extents_to_btree

2020-07-30 Thread Greg Kroah-Hartman
From: Eric Sandeen commit 2c4306f719b083d17df2963bc761777576b8ad1b upstream. If xfs_bmap_extents_to_btree fails in a mode where we call xfs_iroot_realloc(-1) to de-allocate the root, set the format back to extents. Otherwise we can assume we can dereference ifp->if_broot based on the

[PATCH 4.9 51/61] rxrpc: Fix sendmsg() returning EPIPE due to recvmsg() returning ENODATA

2020-07-30 Thread Greg Kroah-Hartman
From: David Howells [ Upstream commit 639f181f0ee20d3249dbc55f740f0167267180f0 ] rxrpc_sendmsg() returns EPIPE if there's an outstanding error, such as if rxrpc_recvmsg() indicating ENODATA if there's nothing for it to read. Change rxrpc_recvmsg() to return EAGAIN instead if there's nothing to

[PATCH 4.9 14/61] btrfs: fix mount failure caused by race with umount

2020-07-30 Thread Greg Kroah-Hartman
From: Boris Burkov [ Upstream commit 48cfa61b58a1fee0bc49eef04f8ccf31493b7cdd ] It is possible to cause a btrfs mount to fail by racing it with a slow umount. The crux of the sequence is generic_shutdown_super not yet calling sop->put_super before btrfs_mount_root calls btrfs_open_devices. If

[PATCH 4.4 12/54] ALSA: info: Drop WARN_ON() from buffer NULL sanity check

2020-07-30 Thread Greg Kroah-Hartman
From: Takashi Iwai commit 60379ba08532eca861e933b389526a4dc89e0c42 upstream. snd_info_get_line() has a sanity check of NULL buffer -- both buffer itself being NULL and buffer->buffer being NULL. Basically both checks are valid and necessary, but the problem is that it's with snd_BUG_ON() macro

[PATCH 4.9 58/61] perf probe: Fix to check blacklist address correctly

2020-07-30 Thread Greg Kroah-Hartman
From: Masami Hiramatsu commit 80526491c2ca6abc028c0f0dbb0707a1f35fb18a upstream. Fix to check kprobe blacklist address correctly with relocated address by adjusting debuginfo address. Since the address in the debuginfo is same as objdump, it is different from relocated kernel address with

[PATCH 4.9 60/61] perf tools: Fix snprint warnings for gcc 8

2020-07-30 Thread Greg Kroah-Hartman
From: Jiri Olsa commit 77f18153c080855e1c3fb520ca31a4e61530121d upstream. [Add an additional sprintf replacement in tools/perf/builtin-script.c] With gcc 8 we get new set of snprintf() warnings that breaks the compilation, one example: tests/mem.c: In function ‘check’: tests/mem.c:19:48:

[PATCH 4.4 11/54] uprobes: Change handle_swbp() to send SIGTRAP with si_code=SI_KERNEL, to fix GDB regression

2020-07-30 Thread Greg Kroah-Hartman
From: Oleg Nesterov commit fe5ed7ab99c656bd2f5b79b49df0e9ebf2cead8a upstream. If a tracee is uprobed and it hits int3 inserted by debugger, handle_swbp() does send_sig(SIGTRAP, current, 0) which means si_code == SI_USER. This used to work when this code was written, but then GDB started to

[PATCH 4.4 16/54] btrfs: fix mount failure caused by race with umount

2020-07-30 Thread Greg Kroah-Hartman
From: Boris Burkov [ Upstream commit 48cfa61b58a1fee0bc49eef04f8ccf31493b7cdd ] It is possible to cause a btrfs mount to fail by racing it with a slow umount. The crux of the sequence is generic_shutdown_super not yet calling sop->put_super before btrfs_mount_root calls btrfs_open_devices. If

[PATCH 4.9 37/61] serial: 8250: fix null-ptr-deref in serial8250_start_tx()

2020-07-30 Thread Greg Kroah-Hartman
From: Yang Yingliang commit f4c23a140d80ef5e6d3d1f8f57007649014b60fa upstream. I got null-ptr-deref in serial8250_start_tx(): [ 78.114630] Unable to handle kernel NULL pointer dereference at virtual address [ 78.123778] Mem abort info: [ 78.126560] ESR = 0x8607 [

[PATCH 4.9 38/61] serial: 8250_mtk: Fix high-speed baud rates clamping

2020-07-30 Thread Greg Kroah-Hartman
From: Serge Semin commit 551e553f0d4ab623e2a6f424ab5834f9c7b5229c upstream. Commit 7b668c064ec3 ("serial: 8250: Fix max baud limit in generic 8250 port") fixed limits of a baud rate setting for a generic 8250 port. In other words since that commit the baud rate has been permitted to be within

[PATCH 4.9 35/61] staging: comedi: addi_apci_1500: check INSN_CONFIG_DIGITAL_TRIG shift

2020-07-30 Thread Greg Kroah-Hartman
From: Ian Abbott commit fc846e9db67c7e808d77bf9e2ef3d49e3820ce5d upstream. The `INSN_CONFIG` comedi instruction with sub-instruction code `INSN_CONFIG_DIGITAL_TRIG` includes a base channel in `data[3]`. This is used as a right shift amount for other bitmask values without being checked. Shift

[PATCH 4.9 28/61] x86: math-emu: Fix up cmp insn for clang ias

2020-07-30 Thread Greg Kroah-Hartman
From: Arnd Bergmann [ Upstream commit 81e96851ea32deb2c921c870eecabf335f598aeb ] The clang integrated assembler requires the 'cmp' instruction to have a length prefix here: arch/x86/math-emu/wm_sqrt.S:212:2: error: ambiguous instructions require an explicit suffix (could be 'cmpb', 'cmpw', or

[PATCH 4.9 43/61] parisc: Add atomic64_set_release() define to avoid CPU soft lockups

2020-07-30 Thread Greg Kroah-Hartman
From: John David Anglin commit be6577af0cef934ccb036445314072e8cb9217b9 upstream. Stalls are quite frequent with recent kernels. I enabled CONFIG_SOFTLOCKUP_DETECTOR and I caught the following stall: watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [cc1:22803] CPU: 0 PID: 22803 Comm: cc1 Not

[PATCH 4.9 44/61] ath9k: Fix general protection fault in ath9k_hif_usb_rx_cb

2020-07-30 Thread Greg Kroah-Hartman
From: Qiujun Huang commit 2bbcaaee1fcbd83272e29f31e2bb7e70d8c49e05 upstream. In ath9k_hif_usb_rx_cb interface number is assumed to be 0. usb_ifnum_to_if(urb->dev, 0) But it isn't always true. The case reported by syzbot: https://lore.kernel.org/linux-usb/666c9c05a1c05...@google.com

[PATCH 4.9 42/61] io-mapping: indicate mapping failure

2020-07-30 Thread Greg Kroah-Hartman
From: Michael J. Ruhl commit e0b3e0b1a04367fc15c07f44e78361545b55357c upstream. The !ATOMIC_IOMAP version of io_maping_init_wc will always return success, even when the ioremap fails. Since the ATOMIC_IOMAP version returns NULL when the init fails, and callers check for a NULL return on error

[PATCH 4.9 15/61] bnxt_en: Fix race when modifying pause settings.

2020-07-30 Thread Greg Kroah-Hartman
From: Vasundhara Volam [ Upstream commit 163e9ef63641a02de4c95cd921577265c52e1ce2 ] The driver was modified to not rely on rtnl lock to protect link settings about 2 years ago. The pause setting was missed when making that change. Fix it by acquiring link_lock mutex before calling

[PATCH 4.9 34/61] staging: comedi: ni_6527: fix INSN_CONFIG_DIGITAL_TRIG support

2020-07-30 Thread Greg Kroah-Hartman
From: Ian Abbott commit f07804ec77d77f8a9dcf570a24154e17747bc82f upstream. `ni6527_intr_insn_config()` processes `INSN_CONFIG` comedi instructions for the "interrupt" subdevice. When `data[0]` is `INSN_CONFIG_DIGITAL_TRIG` it is configuring the digital trigger. When `data[2]` is

[PATCH 4.9 27/61] arm64: Use test_tsk_thread_flag() for checking TIF_SINGLESTEP

2020-07-30 Thread Greg Kroah-Hartman
From: Will Deacon [ Upstream commit 5afc78551bf5d53279036e0bf63314e35631d79f ] Rather than open-code test_tsk_thread_flag() at each callsite, simply replace the couple of offenders with calls to test_tsk_thread_flag() directly. Signed-off-by: Will Deacon Signed-off-by: Sasha Levin ---

[PATCH 4.9 31/61] Revert "cifs: Fix the target file was deleted when rename failed."

2020-07-30 Thread Greg Kroah-Hartman
From: Steve French commit 0e6705182d4e1b77248a93470d6d7b3013d59b30 upstream. This reverts commit 9ffad9263b467efd8f8dc7ae1941a0a655a2bab2. Upon additional testing with older servers, it was found that the original commit introduced a regression when using the old SMB1 dialect and rsyncing over

[PATCH 4.9 26/61] usb: gadget: udc: gr_udc: fix memleak on error handling path in gr_ep_init()

2020-07-30 Thread Greg Kroah-Hartman
From: Evgeny Novikov [ Upstream commit c8f8529e2c4141afa2ebb487ad48e8a6ec3e8c99 ] gr_ep_init() does not assign the allocated request anywhere if allocation of memory for the buffer fails. This is a memory leak fixed by the given patch. Found by Linux Driver Verification project

[PATCH 4.9 25/61] dmaengine: ioat setting ioat timeout as module parameter

2020-07-30 Thread Greg Kroah-Hartman
From: Leonid Ravich [ Upstream commit 87730ccbddcb48478b1b88e88b14e73424130764 ] DMA transaction time to completion is a function of PCI bandwidth, transaction size and a queue depth. So hard coded value for timeouts might be wrong for some scenarios. Signed-off-by: Leonid Ravich

[PATCH v2 1/2] ASoC: intel: atom: Add period size constraint

2020-07-30 Thread Brent Lu
Use constraint to enforce the period sizes which are validated in Android BSP. Signed-off-by: Brent Lu --- sound/soc/intel/atom/sst-mfld-platform-pcm.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/sound/soc/intel/atom/sst-mfld-platform-pcm.c

[PATCH 4.9 12/61] ASoC: rt5670: Correct RT5670_LDO_SEL_MASK

2020-07-30 Thread Greg Kroah-Hartman
From: Hans de Goede commit 5cacc6f5764e94fa753b2c1f5f7f1f3f74286e82 upstream. The RT5670_PWR_ANLG1 register has 3 bits to select the LDO voltage, so the correct mask is 0x7 not 0x3. Because of this wrong mask we were programming the ldo bits to a setting of binary 001 (0x05 & 0x03) instead of

[PATCH 4.9 10/61] uprobes: Change handle_swbp() to send SIGTRAP with si_code=SI_KERNEL, to fix GDB regression

2020-07-30 Thread Greg Kroah-Hartman
From: Oleg Nesterov commit fe5ed7ab99c656bd2f5b79b49df0e9ebf2cead8a upstream. If a tracee is uprobed and it hits int3 inserted by debugger, handle_swbp() does send_sig(SIGTRAP, current, 0) which means si_code == SI_USER. This used to work when this code was written, but then GDB started to

[PATCH v2 0/2] Add period size constraint for Atom Chromebook

2020-07-30 Thread Brent Lu
Two different constraints are implemented: one is in platform's CPU DAI to enforce period sizes which are already used in Android BSP. The other is in Atom Chromebook's machine driver to use 240 as period size. Changes since v1: -Add comma at the end of media_period_size array declaration. Brent

RE: [EXT] Re: [PATCH V3 3/3] pci: imx: Select RESET_IMX7 by default

2020-07-30 Thread Richard Zhu
> -Original Message- > From: Lorenzo Pieralisi > Sent: 2020年7月28日 18:51 > To: Anson Huang ; Richard Zhu > ; Lucas Stach > Cc: catalin.mari...@arm.com; w...@kernel.org; r...@kernel.org; > bhelg...@google.com; p.za...@pengutronix.de; shawn...@kernel.org; > s.ha...@pengutronix.de;

[PATCH 4.9 11/61] ALSA: info: Drop WARN_ON() from buffer NULL sanity check

2020-07-30 Thread Greg Kroah-Hartman
From: Takashi Iwai commit 60379ba08532eca861e933b389526a4dc89e0c42 upstream. snd_info_get_line() has a sanity check of NULL buffer -- both buffer itself being NULL and buffer->buffer being NULL. Basically both checks are valid and necessary, but the problem is that it's with snd_BUG_ON() macro

[PATCH 4.9 00/61] 4.9.232-rc1 review

2020-07-30 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.9.232 release. There are 61 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 Sat, 01 Aug 2020 07:44:05 +. Anything

[PATCH] thermal: intel: intel_pch_thermal: Add Cannon Lake Low Power PCH support

2020-07-30 Thread Sumeet Pawnikar
Add LP (Low Power) PCH id for Cannon Lake (CNL) based platforms. Signed-off-by: Sumeet Pawnikar --- drivers/thermal/intel/intel_pch_thermal.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/thermal/intel/intel_pch_thermal.c b/drivers/thermal/intel/intel_pch_thermal.c index

[PATCH 4.9 13/61] btrfs: fix double free on ulist after backref resolution failure

2020-07-30 Thread Greg Kroah-Hartman
From: Filipe Manana commit 580c079b5766ac706f56eec5c79aee4bf929fef6 upstream. At btrfs_find_all_roots_safe() we allocate a ulist and set the **roots argument to point to it. However if later we fail due to an error returned by find_parent_nodes(), we free that ulist but leave a dangling pointer

[PATCH v2 2/2] ASoC: Intel: Add period size constraint on strago board

2020-07-30 Thread Brent Lu
From: Yu-Hsuan Hsu The CRAS server does not set the period size in hw_param so ALSA will calculate a value for period size which is based on the buffer size and other parameters. The value may not always be aligned with Atom's dsp design so a constraint is added to make sure the board always has

[PATCH 4.9 05/61] xtensa: update *pos in cpuinfo_op.next

2020-07-30 Thread Greg Kroah-Hartman
From: Max Filippov [ Upstream commit 0d5ab144429e8bd80889b856a44d56ab4a5cd59b ] Increment *pos in the cpuinfo_op.next to fix the following warning triggered by cat /proc/cpuinfo: seq_file: buggy .next function c_next did not update position index Signed-off-by: Max Filippov Signed-off-by:

[PATCH 4.9 04/61] xtensa: fix __sync_fetch_and_{and,or}_4 declarations

2020-07-30 Thread Greg Kroah-Hartman
From: Max Filippov [ Upstream commit 73f9941306d5ce030f3ffc7db425c7b2a798cf8e ] Building xtensa kernel with gcc-10 produces the following warnings: arch/xtensa/kernel/xtensa_ksyms.c:90:15: warning: conflicting types for built-in function ‘__sync_fetch_and_and_4’; expected ‘unsigned

[PATCH 4.19 14/17] udp: Copy has_conns in reuseport_grow().

2020-07-30 Thread Greg Kroah-Hartman
From: Kuniyuki Iwashima [ Upstream commit f2b2c55e512879a05456eaf5de4d1ed2f7757509 ] If an unconnected socket in a UDP reuseport group connect()s, has_conns is set to 1. Then, when a packet is received, udp[46]_lib_lookup2() scans all sockets in udp_hslot looking for the connected socket with

[PATCH 4.19 13/17] sctp: shrink stream outq when fails to do addstream reconf

2020-07-30 Thread Greg Kroah-Hartman
From: Xin Long [ Upstream commit 3ecdda3e9ad837cf9cb41b6faa11b1af3a5abc0c ] When adding a stream with stream reconf, the new stream firstly is in CLOSED state but new out chunks can still be enqueued. Then once gets the confirmation from the peer, the state will change to OPEN. However, if the

[PATCH 4.14 12/14] mm/page_owner.c: remove drain_all_pages from init_early_allocated_pages

2020-07-30 Thread Greg Kroah-Hartman
From: Oscar Salvador commit 6bec6ad77fac3d29aed0d8e0b7526daedc964970 upstream. When setting page_owner = on, the following warning can be seen in the boot log: WARNING: CPU: 0 PID: 0 at mm/page_alloc.c:2537 drain_all_pages+0x171/0x1a0 Modules linked in: CPU: 0 PID: 0 Comm: swapper/0 Not

[PATCH 4.14 02/14] AX.25: Prevent out-of-bounds read in ax25_sendmsg()

2020-07-30 Thread Greg Kroah-Hartman
From: Peilin Ye [ Upstream commit 8885bb0621f01a6c82be60a91e5fc0f6e2f71186 ] Checks on `addr_len` and `usax->sax25_ndigis` are insufficient. ax25_sendmsg() can go out of bounds when `usax->sax25_ndigis` equals to 7 or 8. Fix it. It is safe to remove `usax->sax25_ndigis > AX25_MAX_DIGIS`, since

[PATCH 4.14 05/14] net-sysfs: add a newline when printing tx_timeout by sysfs

2020-07-30 Thread Greg Kroah-Hartman
From: Xiongfeng Wang [ Upstream commit 9bb5fbea59f36a589ef886292549ca4052fe676c ] When I cat 'tx_timeout' by sysfs, it displays as follows. It's better to add a newline for easy reading. root@syzkaller:~# cat /sys/devices/virtual/net/lo/queues/tx-0/tx_timeout 0root@syzkaller:~# Signed-off-by:

[PATCH 4.14 07/14] rxrpc: Fix sendmsg() returning EPIPE due to recvmsg() returning ENODATA

2020-07-30 Thread Greg Kroah-Hartman
From: David Howells [ Upstream commit 639f181f0ee20d3249dbc55f740f0167267180f0 ] rxrpc_sendmsg() returns EPIPE if there's an outstanding error, such as if rxrpc_recvmsg() indicating ENODATA if there's nothing for it to read. Change rxrpc_recvmsg() to return EAGAIN instead if there's nothing to

Re: [Linux-kernel-mentees] [PATCH v3] media/v4l2-core: Fix kernel-infoleak in video_put_user()

2020-07-30 Thread Bartosz Golaszewski
On Tue, Jul 28, 2020 at 3:58 PM Arnd Bergmann wrote: > > On Tue, Jul 28, 2020 at 3:06 PM Dan Carpenter > wrote: > > > > On Tue, Jul 28, 2020 at 02:22:29PM +0200, Linus Walleij wrote: > > > On Mon, Jul 27, 2020 at 3:17 PM Dan Carpenter > > > wrote: > > > > > > > Here are my latest warnings on

[RFC PATCH 2/3] opp: Set required OPPs in reverse order when scaling down

2020-07-30 Thread Stephan Gerhold
The OPP core already has well-defined semantics to ensure required OPPs/regulators are set before/after the frequency change, depending on if we scale up or down. Similar requirements might exist for the order of required OPPs when multiple power domains need to be scaled for a frequency change.

[PATCH 4.14 03/14] dev: Defer free of skbs in flush_backlog

2020-07-30 Thread Greg Kroah-Hartman
From: Subash Abhinov Kasiviswanathan [ Upstream commit 7df5cb75cfb8acf96c7f2342530eb41e0c11f4c3 ] IRQs are disabled when freeing skbs in input queue. Use the IRQ safe variant to free skbs here. Fixes: 145dd5f9c88f ("net: flush the softnet backlog in process context") Signed-off-by: Subash

[PATCH 4.14 04/14] drivers/net/wan/x25_asy: Fix to make it work

2020-07-30 Thread Greg Kroah-Hartman
From: Xie He [ Upstream commit 8fdcabeac39824fe67480fd9508d80161c541854 ] This driver is not working because of problems of its receiving code. This patch fixes it to make it work. When the driver receives an LAPB frame, it should first pass the frame to the LAPB module to process. After

[PATCH 4.19 07/17] net: udp: Fix wrong clean up for IS_UDPLITE macro

2020-07-30 Thread Greg Kroah-Hartman
From: Miaohe Lin [ Upstream commit b0a422772fec29811e293c7c0e6f991c0fd9241d ] We can't use IS_UDPLITE to replace udp_sk->pcflag when UDPLITE_RECV_CC is checked. Fixes: b2bf1e2659b1 ("[UDP]: Clean up for IS_UDPLITE macro") Signed-off-by: Miaohe Lin Signed-off-by: David S. Miller

[PATCH 4.19 00/17] 4.19.136-rc1 review

2020-07-30 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.19.136 release. There are 17 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 Sat, 01 Aug 2020 07:44:05 +. Anything

[PATCH 4.19 06/17] net-sysfs: add a newline when printing tx_timeout by sysfs

2020-07-30 Thread Greg Kroah-Hartman
From: Xiongfeng Wang [ Upstream commit 9bb5fbea59f36a589ef886292549ca4052fe676c ] When I cat 'tx_timeout' by sysfs, it displays as follows. It's better to add a newline for easy reading. root@syzkaller:~# cat /sys/devices/virtual/net/lo/queues/tx-0/tx_timeout 0root@syzkaller:~# Signed-off-by:

[PATCH 4.14 14/14] xfs: set format back to extents if xfs_bmap_extents_to_btree

2020-07-30 Thread Greg Kroah-Hartman
From: Eric Sandeen commit 2c4306f719b083d17df2963bc761777576b8ad1b upstream. If xfs_bmap_extents_to_btree fails in a mode where we call xfs_iroot_realloc(-1) to de-allocate the root, set the format back to extents. Otherwise we can assume we can dereference ifp->if_broot based on the

[PATCH 4.19 05/17] ip6_gre: fix null-ptr-deref in ip6gre_init_net()

2020-07-30 Thread Greg Kroah-Hartman
From: Wei Yongjun [ Upstream commit 46ef5b89ec0ecf290d74c4aee844f063933c4da4 ] KASAN report null-ptr-deref error when register_netdev() failed: KASAN: null-ptr-deref in range [0x03c0-0x03c7] CPU: 2 PID: 422 Comm: ip Not tainted 5.8.0-rc4+ #12 Call Trace:

[PATCH 5.7 00/20] 5.7.12-rc1 review

2020-07-30 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.7.12 release. There are 20 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 Sat, 01 Aug 2020 07:44:05 +. Anything

[PATCH 5.7 09/20] qrtr: orphan socket in qrtr_release()

2020-07-30 Thread Greg Kroah-Hartman
From: Cong Wang [ Upstream commit af9f691f0f5bdd1ade65a7b84927639882d7c3e5 ] We have to detach sock from socket in qrtr_release(), otherwise skb->sk may still reference to this socket when the skb is released in tun->queue, particularly sk->sk_wq still points to >wq, which leads to a UAF.

[PATCH 5.4 11/19] tcp: allow at most one TLP probe per flight

2020-07-30 Thread Greg Kroah-Hartman
From: Yuchung Cheng [ Upstream commit 76be93fc0702322179bb0ea87295d820ee46ad14 ] Previously TLP may send multiple probes of new data in one flight. This happens when the sender is cwnd limited. After the initial TLP containing new data is sent, the sender receives another ACK that acks partial

[PATCH 5.4 01/19] AX.25: Fix out-of-bounds read in ax25_connect()

2020-07-30 Thread Greg Kroah-Hartman
From: Peilin Ye [ Upstream commit 2f2a7ffad5c6cbf3d438e813cfdc88230e185ba6 ] Checks on `addr_len` and `fsa->fsa_ax25.sax25_ndigis` are insufficient. ax25_connect() can go out of bounds when `fsa->fsa_ax25.sax25_ndigis` equals to 7 or 8. Fix it. This issue has been reported as a KMSAN

[PATCH 5.4 14/19] sctp: shrink stream outq when fails to do addstream reconf

2020-07-30 Thread Greg Kroah-Hartman
From: Xin Long [ Upstream commit 3ecdda3e9ad837cf9cb41b6faa11b1af3a5abc0c ] When adding a stream with stream reconf, the new stream firstly is in CLOSED state but new out chunks can still be enqueued. Then once gets the confirmation from the peer, the state will change to OPEN. However, if the

[PATCH 4.19 04/17] drivers/net/wan/x25_asy: Fix to make it work

2020-07-30 Thread Greg Kroah-Hartman
From: Xie He [ Upstream commit 8fdcabeac39824fe67480fd9508d80161c541854 ] This driver is not working because of problems of its receiving code. This patch fixes it to make it work. When the driver receives an LAPB frame, it should first pass the frame to the LAPB module to process. After

[PATCH 5.4 08/19] qrtr: orphan socket in qrtr_release()

2020-07-30 Thread Greg Kroah-Hartman
From: Cong Wang [ Upstream commit af9f691f0f5bdd1ade65a7b84927639882d7c3e5 ] We have to detach sock from socket in qrtr_release(), otherwise skb->sk may still reference to this socket when the skb is released in tun->queue, particularly sk->sk_wq still points to >wq, which leads to a UAF.

[PATCH 5.7 08/20] net: udp: Fix wrong clean up for IS_UDPLITE macro

2020-07-30 Thread Greg Kroah-Hartman
From: Miaohe Lin [ Upstream commit b0a422772fec29811e293c7c0e6f991c0fd9241d ] We can't use IS_UDPLITE to replace udp_sk->pcflag when UDPLITE_RECV_CC is checked. Fixes: b2bf1e2659b1 ("[UDP]: Clean up for IS_UDPLITE macro") Signed-off-by: Miaohe Lin Signed-off-by: David S. Miller

[PATCH][next] habanalabs: fix incorrect check on failed workqueue create

2020-07-30 Thread Colin King
From: Colin Ian King The null check on a failed workqueue create is currently null checking hdev->cq_wq rather than the pointer hdev->cq_wq[i] and so the test will never be true on a failed workqueue create. Fix this by checking hdev->cq_wq[i]. Addresses-Coverity: ("Dereference before null

[PATCH 5.7 20/20] regmap: debugfs: check count when read regmap file

2020-07-30 Thread Greg Kroah-Hartman
From: Peng Fan commit 74edd08a4fbf51d65fd8f4c7d8289cd0f392bd91 upstream. When executing the following command, we met kernel dump. dmesg -c > /dev/null; cd /sys; for i in `ls /sys/kernel/debug/regmap/* -d`; do echo "Checking regmap in $i"; cat $i/registers; done && grep -ri

[RFC PATCH 0/3] opp: required_opps: Power on genpd, scale down in reverse order

2020-07-30 Thread Stephan Gerhold
I'm trying to get CPR (Core Power Reduction, AVS) working for MSM8916 on mainline. Shortly said there are two power domains that must be scaled with the CPU OPP table: - (VDD)MX - CPR My idea for this was to add both as "required-opps" to the CPR OPP table and let the OPP core take care of

[PATCH 5.7 18/20] tipc: allow to build NACK message in link timeout function

2020-07-30 Thread Greg Kroah-Hartman
From: Tung Nguyen [ Upstream commit 6ef9dcb78046b346b5508ca1659848b136a343c2 ] Commit 02288248b051 ("tipc: eliminate gap indicator from ACK messages") eliminated sending of the 'gap' indicator in regular ACK messages and only allowed to build NACK message with enabled probe/probe_reply.

[PATCH 5.7 06/20] net/sched: act_ct: fix restore the qdisc_skb_cb after defrag

2020-07-30 Thread Greg Kroah-Hartman
From: wenxu [ Upstream commit ae372cb1750f6c95370f92fe5f5620e0954663ba ] The fragment packets do defrag in tcf_ct_handle_fragments will clear the skb->cb which make the qdisc_skb_cb clear too. So the qdsic_skb_cb should be store before defrag and restore after that. It also update the pkt_len

[PATCH 5.7 05/20] ip6_gre: fix null-ptr-deref in ip6gre_init_net()

2020-07-30 Thread Greg Kroah-Hartman
From: Wei Yongjun [ Upstream commit 46ef5b89ec0ecf290d74c4aee844f063933c4da4 ] KASAN report null-ptr-deref error when register_netdev() failed: KASAN: null-ptr-deref in range [0x03c0-0x03c7] CPU: 2 PID: 422 Comm: ip Not tainted 5.8.0-rc4+ #12 Call Trace:

[PATCH 5.7 16/20] udp: Copy has_conns in reuseport_grow().

2020-07-30 Thread Greg Kroah-Hartman
From: Kuniyuki Iwashima [ Upstream commit f2b2c55e512879a05456eaf5de4d1ed2f7757509 ] If an unconnected socket in a UDP reuseport group connect()s, has_conns is set to 1. Then, when a packet is received, udp[46]_lib_lookup2() scans all sockets in udp_hslot looking for the connected socket with

[PATCH 5.7 17/20] udp: Improve load balancing for SO_REUSEPORT.

2020-07-30 Thread Greg Kroah-Hartman
From: Kuniyuki Iwashima [ Upstream commit efc6b6f6c3113e8b203b9debfb72d81e0f3dcace ] Currently, SO_REUSEPORT does not work well if connected sockets are in a UDP reuseport group. Then reuseport_has_conns() returns true and the result of reuseport_select_sock() is discarded. Also, unconnected

[PATCH 5.7 19/20] io_uring: ensure double poll additions work with both request types

2020-07-30 Thread Greg Kroah-Hartman
From: Jens Axboe commit 807abcb0883439af5ead73f3308310453b97b624 upstream. The double poll additions were centered around doing POLL_ADD on file descriptors that use more than one waitqueue (typically one for read, one for write) when being polled. However, it can also end up being triggered

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