[PATCH 5.8 37/85] drivers/net/wan/lapbether: Make skb->protocol consistent with the header

2020-10-05 Thread Greg Kroah-Hartman
From: Xie He [ Upstream commit 83f9a9c8c1edc222846dc1bde6e3479703e8e5a3 ] This driver is a virtual driver stacked on top of Ethernet interfaces. When this driver transmits data on the Ethernet device, the skb->protocol setting is inconsistent with the Ethernet header prepended to the skb. This

[PATCH 5.8 48/85] nvme-fc: fail new connections to a deleted host or remote port

2020-10-05 Thread Greg Kroah-Hartman
From: James Smart [ Upstream commit 9e0e8dac985d4bd07d9e62922b9d189d3ca2fccf ] The lldd may have made calls to delete a remote port or local port and the delete is in progress when the cli then attempts to create a new controller. Currently, this proceeds without error although it can't be very

[PATCH 5.8 34/85] nvme-pci: disable the write zeros command for Intel 600P/P3100

2020-10-05 Thread Greg Kroah-Hartman
From: David Milburn [ Upstream commit ce4cc3133dc72c31bd49ddcf22d0f9eeff47a761 ] The write zeros command does not work with 4k range. bash-4.4# ./blkdiscard /dev/nvme0n1p2 bash-4.4# strace -efallocate xfs_io -c "fzero 536895488 2048" /dev/nvme0n1p2 fallocate(3, FALLOC_FL_ZERO_RANGE, 536895488,

[PATCH 5.8 29/85] Revert "wlcore: Adding suppoprt for IGTK key in wlcore driver"

2020-10-05 Thread Greg Kroah-Hartman
From: Mauro Carvalho Chehab [ Upstream commit 1264c1e0cfe55e2d6c35e869244093195529af37 ] This patch causes a regression betwen Kernel 5.7 and 5.8 at wlcore: with it applied, WiFi stops working, and the Kernel starts printing this message every second: wlcore: PHY firmware version: Rev 8.2.0.

[PATCH 5.8 59/85] clk: samsung: exynos4: mark chipid clock as CLK_IGNORE_UNUSED

2020-10-05 Thread Greg Kroah-Hartman
From: Marek Szyprowski [ Upstream commit f3bb0f796f5ffe32f0fbdce5b1b12eb85511158f ] The ChipID IO region has it's own clock, which is being disabled while scanning for unused clocks. It turned out that some CPU hotplug, CPU idle or even SOC firmware code depends on the reads from that area. Fix

[PATCH 5.8 45/85] spi: fsl-espi: Only process interrupts for expected events

2020-10-05 Thread Greg Kroah-Hartman
From: Chris Packham [ Upstream commit b867eef4cf548cd9541225aadcdcee644669b9e1 ] The SPIE register contains counts for the TX FIFO so any time the irq handler was invoked we would attempt to process the RX/TX fifos. Use the SPIM value to mask the events so that we only process interrupts that we

[PATCH 5.8 65/85] gpio: aspeed: fix ast2600 bank properties

2020-10-05 Thread Greg Kroah-Hartman
From: Tao Ren [ Upstream commit 3e640b1eec38e4c8eba160f26cba4f592e657f3d ] GPIO_U is mapped to the least significant byte of input/output mask, and the byte in "output" mask should be 0 because GPIO_U is input only. All the other bits need to be 1 because GPIO_V/W/X support both input and output

[PATCH 5.8 43/85] io_uring: mark statx/files_update/epoll_ctl as non-SQPOLL

2020-10-05 Thread Greg Kroah-Hartman
From: Jens Axboe [ Upstream commit 6ca56f845955e325033758f90a2cffe150f31bc8 ] These will naturally fail when attempted through SQPOLL, but either with -EFAULT or -EBADF. Make it explicit that these are not workable through SQPOLL and return -EINVAL, just like other ops that need to use ->files.

[PATCH 5.8 42/85] tools/io_uring: fix compile breakage

2020-10-05 Thread Greg Kroah-Hartman
From: Douglas Gilbert [ Upstream commit 72f04da48a9828ba3ae8ac77bea648bda8b7d0ff ] It would seem none of the kernel continuous integration does this: $ cd tools/io_uring $ make Otherwise it may have noticed: cc -Wall -Wextra -g -D_GNU_SOURCE -c -o io_uring-bench.o io_uring

Re: [PATCH v4] kvm,x86: Exit to user space in case page fault error

2020-10-05 Thread Vivek Goyal
On Fri, Oct 02, 2020 at 02:13:14PM -0700, Sean Christopherson wrote: > On Fri, Oct 02, 2020 at 04:02:14PM -0400, Vivek Goyal wrote: > > On Fri, Oct 02, 2020 at 12:45:18PM -0700, Sean Christopherson wrote: > > > On Fri, Oct 02, 2020 at 03:27:34PM -0400, Vivek Goyal wrote: > > > > On Fri, Oct 02, 202

[PATCH 5.8 64/85] gpio/aspeed-sgpio: dont enable all interrupts by default

2020-10-05 Thread Greg Kroah-Hartman
From: Jeremy Kerr [ Upstream commit bf0d394e885015941ed2d5724c0a6ed8d42dd95e ] Currently, the IRQ setup for the SGPIO driver enables all interrupts in dual-edge trigger mode. Since the default handler is handle_bad_irq, any state change on input GPIOs will trigger bad IRQ warnings. This change

[PATCH 5.8 40/85] mac80211: do not allow bigger VHT MPDUs than the hardware supports

2020-10-05 Thread Greg Kroah-Hartman
From: Felix Fietkau [ Upstream commit 3bd5c7a28a7c3aba07a2d300d43f8e988809e147 ] Limit maximum VHT MPDU size by local capability. Signed-off-by: Felix Fietkau Link: https://lore.kernel.org/r/20200917125031.45009-1-...@nbd.name Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin --- net/

[PATCH 5.8 62/85] gpio: pca953x: Fix uninitialized pending variable

2020-10-05 Thread Greg Kroah-Hartman
From: Ye Li [ Upstream commit e43c26e12dd49a41cf5a4cd5c5b59a1eb98ed11e ] When pca953x_irq_pending returns false, the pending parameter won't be set. But pca953x_irq_handler continues using this uninitialized variable as pending irqs and will cause problem. Fix the issue by initializing pending t

[PATCH 5.8 63/85] gpio/aspeed-sgpio: enable access to all 80 input & output sgpios

2020-10-05 Thread Greg Kroah-Hartman
From: Jeremy Kerr [ Upstream commit ac67b07e268d46eba675a60c37051bb3e59fd201 ] Currently, the aspeed-sgpio driver exposes up to 80 GPIO lines, corresponding to the 80 status bits available in hardware. Each of these lines can be configured as either an input or an output. However, each of these

[PATCH 5.8 60/85] scsi: target: Fix lun lookup for TARGET_SCF_LOOKUP_LUN_FROM_TAG case

2020-10-05 Thread Greg Kroah-Hartman
From: Sudhakar Panneerselvam [ Upstream commit 149415586243bd0ea729760fb6dd7b3c50601871 ] transport_lookup_tmr_lun() uses "orig_fe_lun" member of struct se_cmd for the lookup. Hence, update this field directly for the TARGET_SCF_LOOKUP_LUN_FROM_TAG case. Link: https://lore.kernel.org/r/1600300

[PATCH 5.8 44/85] cpuidle: psci: Fix suspicious RCU usage

2020-10-05 Thread Greg Kroah-Hartman
From: Ulf Hansson [ Upstream commit 36050d8984ab743f9990a2eb97a0062fdc3d7bbd ] The commit eb1f00237aca ("lockdep,trace: Expose tracepoints"), started to expose us for tracepoints. This lead to the following RCU splat on an ARM64 Qcom board. [5.529634] WARNING: suspicious RCU usage [5.53

[PATCH 5.8 66/85] i2c: cpm: Fix i2c_ram structure

2020-10-05 Thread Greg Kroah-Hartman
From: Nicolas VINCENT [ Upstream commit a2bd970aa62f2f7f80fd0d212b1d4ccea5df4aed ] the i2c_ram structure is missing the sdmatmp field mentionned in datasheet for MPC8272 at paragraph 36.5. With this field missing, the hardware would write past the allocated memory done through cpm_muram_alloc fo

[PATCH 5.8 58/85] dmaengine: dmatest: Prevent to run on misconfigured channel

2020-10-05 Thread Greg Kroah-Hartman
From: Vladimir Murzin [ Upstream commit ce65d55f92a67e247f4d799e581cf9fed677871c ] Andy reported that commit 6b41030fdc79 ("dmaengine: dmatest: Restore default for channel") broke his scripts for the case where "busy" channel is used for configuration with expectation that run command would do n

[PATCH 5.8 61/85] iommu/exynos: add missing put_device() call in exynos_iommu_of_xlate()

2020-10-05 Thread Greg Kroah-Hartman
From: Yu Kuai [ Upstream commit 1a26044954a6d1f4d375d5e62392446af663be7a ] if of_find_device_by_node() succeed, exynos_iommu_of_xlate() doesn't have a corresponding put_device(). Thus add put_device() to fix the exception handling for this function implementation. Fixes: aa759fd376fb ("iommu/ex

Re: [RFC PATCH v2 00/30] 1GB PUD THP support on x86_64

2020-10-05 Thread Zi Yan
On 2 Oct 2020, at 3:50, David Hildenbrand wrote: - huge page sizes controllable by the userspace? >>> >>> It might be good to allow advanced users to choose the page sizes, so they >>> have better control of their applications. >> >> Could you elaborate more? Those advanced users can use huge

[PATCH 5.8 76/85] pipe: remove pipe_wait() and fix wakeup race with splice

2020-10-05 Thread Greg Kroah-Hartman
From: Linus Torvalds [ Upstream commit 472e5b056f000a778abb41f1e443de58eb259783 ] The pipe splice code still used the old model of waiting for pipe IO by using a non-specific "pipe_wait()" that waited for any pipe event to happen, which depended on all pipe IO being entirely serialized by the pi

[PATCH 5.8 72/85] pinctrl: qcom: sm8250: correct sdc2_clk

2020-10-05 Thread Greg Kroah-Hartman
From: Dmitry Baryshkov [ Upstream commit 5d8ff95a52c36740bf4e61202d08549e7a9caf20 ] Correct sdc2_clk pin definition (register offset is wrong, verified by the msm-4.19 driver). Fixes: 4e3ec9e407ad ("pinctrl: qcom: Add sm8250 pinctrl driver.") Signed-off-by: Dmitry Baryshkov Reviewed-by: Bjorn

[PATCH 5.8 82/85] epoll: do not insert into poll queues until all sanity checks are done

2020-10-05 Thread Greg Kroah-Hartman
From: Al Viro commit f8d4f44df056c5b504b0d49683fb7279218fd207 upstream. Signed-off-by: Al Viro Signed-off-by: Greg Kroah-Hartman --- fs/eventpoll.c | 37 ++--- 1 file changed, 18 insertions(+), 19 deletions(-) --- a/fs/eventpoll.c +++ b/fs/eventpoll.c @@ -1

Re: [PATCH 2/2] driver core: platform: provide devm_platform_iounremap_resource

2020-10-05 Thread Greg KH
On Mon, Oct 05, 2020 at 11:23:18PM +0800, pierre kuo wrote: > hi Greg: > > Why are you adding new functions but not actually calling them anywhere? > > Below patch introduce a single helper, devm_platform_ioremap_resource, > which combines > platform_get_resource() and devm_ioremap_resource(). But

[PATCH 5.8 47/85] nvme-pci: fix NULL req in completion handler

2020-10-05 Thread Greg Kroah-Hartman
From: Xianting Tian [ Upstream commit 50b7c24390a53c78de546215282fb52980f1d7b7 ] Currently, we use nvmeq->q_depth as the upper limit for a valid tag in nvme_handle_cqe(), it is not correct. Because the available tag number is recorded in tagset, which is not equal to nvmeq->q_depth. The nvme dr

Re: Is usb_hcd_giveback_urb() allowed in task context?

2020-10-05 Thread Greg Kroah-Hartman
On Mon, Oct 05, 2020 at 11:22:18AM -0400, Alan Stern wrote: > On Mon, Oct 05, 2020 at 05:08:11PM +0200, Andrey Konovalov wrote: > > Dear USB and USB/IP maintainers, > > > > While fuzzing the USB/IP stack with syzkaller we've stumbled upon an issue. > > > > Currently kcov (the subsystem that is us

[PATCH 5.8 74/85] gpio: pca953x: Correctly initialize registers 6 and 7 for PCA957x

2020-10-05 Thread Greg Kroah-Hartman
From: Andy Shevchenko [ Upstream commit 8c1f1c34777bddb633d4a068a9c812d29974c6bd ] When driver has been converted to the bitmap API the non-bitmap functions started behaving differently on 32-bit BE architectures since the bytes in two consequent unsigned longs are in different order in comparis

[PATCH 5.8 71/85] autofs: use __kernel_write() for the autofs pipe writing

2020-10-05 Thread Greg Kroah-Hartman
From: Linus Torvalds [ Upstream commit 90fb702791bf99b959006972e8ee7bb4609f441b ] autofs got broken in some configurations by commit 13c164b1a186 ("autofs: switch to kernel_write") because there is now an extra LSM permission check done by security_file_permission() in rw_verify_area(). autofs

[PATCH 5.8 81/85] scsi: sd: sd_zbc: Fix ZBC disk initialization

2020-10-05 Thread Greg Kroah-Hartman
From: Damien Le Moal commit 6c5dee18756b4721ac8518c69b22ee8ac0c9c442 upstream. Make sure to call sd_zbc_init_disk() when the sdkp->zoned field is known, that is, once sd_read_block_characteristics() is executed in sd_revalidate_disk(), so that host-aware disks also get initialized. To do so, mo

[PATCH 5.8 77/85] random32: Restore __latent_entropy attribute on net_rand_state

2020-10-05 Thread Greg Kroah-Hartman
From: Thibaut Sautereau [ Upstream commit 09a6b0bc3be793ca8cba580b7992d73e9f68f15d ] Commit f227e3ec3b5c ("random32: update the net random state on interrupt and activity") broke compilation and was temporarily fixed by Linus in 83bdc7275e62 ("random32: remove net_rand_state from the latent entr

[PATCH 5.8 73/85] pinctrl: mediatek: check mtk_is_virt_gpio input parameter

2020-10-05 Thread Greg Kroah-Hartman
From: Hanks Chen [ Upstream commit 39c4dbe4cc363accd676162c24b264f44c581490 ] check mtk_is_virt_gpio input parameter, virtual gpio need to support eint mode. add error handler for the ko case to fix this boot fail: pc : mtk_is_virt_gpio+0x20/0x38 [pinctrl_mtk_common_v2] lr : mtk_gpio_get_direct

[PATCH 5.8 85/85] ep_create_wakeup_source(): dentry name can change under you...

2020-10-05 Thread Greg Kroah-Hartman
From: Al Viro commit 3701cb59d892b88d569427586f01491552f377b1 upstream. or get freed, for that matter, if it's a long (separately stored) name. Signed-off-by: Al Viro Signed-off-by: Greg Kroah-Hartman --- fs/eventpoll.c |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) --- a/

[PATCH 5.8 75/85] iommu/amd: Fix the overwritten field in IVMD header

2020-10-05 Thread Greg Kroah-Hartman
From: Adrian Huang [ Upstream commit 0bbe4ced53e36786eafc2ecbf9a1761f55b4a82e ] Commit 387caf0b759a ("iommu/amd: Treat per-device exclusion ranges as r/w unity-mapped regions") accidentally overwrites the 'flags' field in IVMD (struct ivmd_header) when the I/O virtualization memory definition is

[PATCH 5.8 70/85] scripts/dtc: only append to HOST_EXTRACFLAGS instead of overwriting

2020-10-05 Thread Greg Kroah-Hartman
From: Uwe Kleine-König [ Upstream commit efe84d408bf41975db8506d3a1cc02e794e2309c ] When building with $ HOST_EXTRACFLAGS=-g make the expectation is that host tools are built with debug informations. This however doesn't happen if the Makefile assigns a new value to the HOST_EXTRACFLAG

[PATCH 5.8 68/85] Input: trackpoint - enable Synaptics trackpoints

2020-10-05 Thread Greg Kroah-Hartman
From: Vincent Huang [ Upstream commit 996d585b079ad494a30cac10e08585bcd5345125 ] Add Synaptics IDs in trackpoint_start_protocol() to mark them as valid. Signed-off-by: Vincent Huang Fixes: 6c77545af100 ("Input: trackpoint - add new trackpoint variant IDs") Reviewed-by: Harry Cutts Tested-by:

[PATCH 5.8 78/85] gpiolib: Fix line event handling in syscall compatible mode

2020-10-05 Thread Greg Kroah-Hartman
From: Andy Shevchenko [ Upstream commit 5ad284ab3a01e2d6a89be2a8663ae76f4e617549 ] The introduced line event handling ABI in the commit 61f922db7221 ("gpio: userspace ABI for reading GPIO line events") missed the fact that 64-bit kernel may serve for 32-bit applications. In such case the ver

[PATCH 5.8 69/85] blk-mq: call commit_rqs while list empty but error happen

2020-10-05 Thread Greg Kroah-Hartman
From: yangerkun [ Upstream commit 632bfb6323799c087fcb4108dfe59518609667a7 ] Blk-mq should call commit_rqs once 'bd.last != true' and no more request will come(so virtscsi can kick the virtqueue, e.g.). We already do that in 'blk_mq_dispatch_rq_list/blk_mq_try_issue_list_directly' while list not

[PATCH 5.8 84/85] epoll: EPOLL_CTL_ADD: close the race in decision to take fast path

2020-10-05 Thread Greg Kroah-Hartman
From: Al Viro commit fe0a916c1eae8e17e86c3753d13919177d63ed7e upstream. Checking for the lack of epitems refering to the epoll we want to insert into is not enough; we might have an insertion of that epoll into another one that has already collected the set of files to recheck for excessive reve

[PATCH 5.8 83/85] epoll: replace ->visited/visited_list with generation count

2020-10-05 Thread Greg Kroah-Hartman
From: Al Viro commit 18306c404abe18a0972587a6266830583c60c928 upstream. removes the need to clear it, along with the races. Signed-off-by: Al Viro Signed-off-by: Greg Kroah-Hartman --- fs/eventpoll.c | 27 --- 1 file changed, 8 insertions(+), 19 deletions(-) --- a

[PATCH 5.8 80/85] scsi: sd: sd_zbc: Fix handling of host-aware ZBC disks

2020-10-05 Thread Greg Kroah-Hartman
From: Damien Le Moal commit 27ba3e8ff3ab86449e63d38a8d623053591e65fa upstream. When CONFIG_BLK_DEV_ZONED is disabled, allow using host-aware ZBC disks as regular disks. In this case, ensure that command completion is correctly executed by changing sd_zbc_complete() to return good_bytes instead o

[PATCH 5.8 38/85] drivers/net/wan/hdlc: Set skb->protocol before transmitting

2020-10-05 Thread Greg Kroah-Hartman
From: Xie He [ Upstream commit 9fb030a70431a2a2a1b292dbf0b2f399cc072c16 ] This patch sets skb->protocol before transmitting frames on the HDLC device, so that a user listening on the HDLC device with an AF_PACKET socket will see outgoing frames' sll_protocol field correctly set and consistent wi

[PATCH 5.8 46/85] net: dsa: felix: fix some key offsets for IP4_TCP_UDP VCAP IS2 entries

2020-10-05 Thread Greg Kroah-Hartman
From: Xiaoliang Yang [ Upstream commit 8b9e03cd08250c60409099c791e858157838d9eb ] Some of the IS2 IP4_TCP_UDP keys are not correct, like L4_DPORT, L4_SPORT and other L4 keys. This prevents offloaded tc-flower rules from matching on src_port and dst_port for TCP and UDP packets. Signed-off-by: X

Re: [PATCH] leds: lm3697: Fix out-of-bound access

2020-10-05 Thread ultracoolguy
Well, the major benefit I see is that it makes the driver slightly more readable. However I'm fine with whatever you guys decide. I'll attach the patch with the struct renaming removed just in case. Oct 5, 2020, 14:41 by dmur...@ti.com: > Gabriel > > On 10/5/20 9:38 AM, ultracool...@tutanota.

[PATCH 5.8 41/85] tracing: Make the space reserved for the pid wider

2020-10-05 Thread Greg Kroah-Hartman
From: Sebastian Andrzej Siewior [ Upstream commit 795d6379a47bcbb88bd95a69920e4acc52849f88 ] For 64bit CONFIG_BASE_SMALL=0 systems PID_MAX_LIMIT is set by default to 4194304. During boot the kernel sets a new value based on number of CPUs but no lower than 32768. It is 1024 per CPU so with 128 C

[PATCH 5.8 79/85] drm/i915/gvt: Fix port number for BDW on EDID region setup

2020-10-05 Thread Greg Kroah-Hartman
From: Zhenyu Wang commit 28284943ac94014767ecc2f7b3c5747c4a5617a0 upstream. Current BDW virtual display port is initialized as PORT_B, so need to use same port for VFIO EDID region, otherwise invalid EDID blob pointer is assigned which caused kernel null pointer reference. We might evaluate actu

Re: Litmus test for question from Al Viro

2020-10-05 Thread Peter Zijlstra
On Mon, Oct 05, 2020 at 11:16:39AM -0400, Alan Stern wrote: > On Mon, Oct 05, 2020 at 04:13:13PM +0100, Will Deacon wrote: > > > The failure to recognize the dependency in P0 should be considered a > > > combined limitation of the memory model and herd7. It's not a simple > > > mistake that can

[PATCH 5.8 67/85] i2c: npcm7xx: Clear LAST bit after a failed transaction.

2020-10-05 Thread Greg Kroah-Hartman
From: Tali Perry [ Upstream commit 8947efc077168c53b84d039881a7c967086a248a ] Due to a HW issue, in some scenarios the LAST bit might remain set. This will cause an unexpected NACK after reading 16 bytes on the next read. Example: if user tries to read from a missing device, get a NACK, then if

[PATCH 5.8 12/85] gpio: amd-fch: correct logic of GPIO_LINE_DIRECTION

2020-10-05 Thread Greg Kroah-Hartman
From: Ed Wildgoose commit d25e8fdebdad84219b498873300b7f11dd915b88 upstream. The original commit appears to have the logic reversed in amd_fch_gpio_get_direction. Also confirmed by observing the value of "direction" in the sys tree. Signed-off-by: Ed Wildgoose Fixes: e09d168f13f0 ("gpio: AMD G

[PATCH 5.8 13/85] clk: samsung: Keep top BPLL mux on Exynos542x enabled

2020-10-05 Thread Greg Kroah-Hartman
From: Marek Szyprowski commit 0212a0483b0a36cc94cfab882b3edbb41fcfe1cd upstream. BPLL clock must not be disabled because it is needed for proper DRAM operation. This is normally handled by respective memory devfreq driver, but when that driver is not yet probed or its probe has been deferred the

[PATCH 5.8 14/85] clk: socfpga: stratix10: fix the divider for the emac_ptp_free_clk

2020-10-05 Thread Greg Kroah-Hartman
From: Dinh Nguyen commit b02cf0c4736c65c6667f396efaae6b5521e82abf upstream. The fixed divider the emac_ptp_free_clk should be 2, not 4. Fixes: 07afb8db7340 ("clk: socfpga: stratix10: add clock driver for Stratix10 platform") Cc: sta...@vger.kernel.org Signed-off-by: Dinh Nguyen Link: https://l

[PATCH 5.8 53/85] nfs: Fix security label length not being reset

2020-10-05 Thread Greg Kroah-Hartman
From: Jeffrey Mitchell [ Upstream commit d33030e2ee3508d65db5644551435310df86010e ] nfs_readdir_page_filler() iterates over entries in a directory, reusing the same security label buffer, but does not reset the buffer's length. This causes decode_attr_security_label() to return -ERANGE if an ent

[PATCH 5.8 50/85] gpio: sprd: Clear interrupt when setting the type as edge

2020-10-05 Thread Greg Kroah-Hartman
From: Taiping Lai [ Upstream commit 5fcface659aab7eac4bd65dd116d98b8f7bb88d5 ] The raw interrupt status of GPIO maybe set before the interrupt is enabled, which would trigger the interrupt event once enabled it from user side. This is the case for edge interrupts only. Adding a clear operation w

[PATCH v16 14/15] mtd: spi-nor: spansion: add support for Cypress Semper flash

2020-10-05 Thread Pratyush Yadav
The Cypress Semper flash is an xSPI compliant octal DTR flash. Add support for using it in octal DTR mode. The flash by default boots in a hybrid sector mode. But the sector map table on the part I had was programmed incorrectly and the SMPT values on the flash don't match the public datasheet. Sp

[PATCH 5.8 05/85] Revert "usbip: Implement a match function to fix usbip"

2020-10-05 Thread Greg Kroah-Hartman
From: M. Vefa Bicakci commit d6407613c1e2ef90213dee388aa16b6e1bd08cbc upstream. This commit reverts commit 7a2f2974f265 ("usbip: Implement a match function to fix usbip"). In summary, commit d5643d2249b2 ("USB: Fix device driver race") inadvertently broke usbip functionality, which I resolved i

[PATCH v16 15/15] mtd: spi-nor: micron-st: allow using MT35XU512ABA in Octal DTR mode

2020-10-05 Thread Pratyush Yadav
Since this flash doesn't have a Profile 1.0 table, the Octal DTR capabilities are enabled in the post SFDP fixup, along with the 8D-8D-8D fast read settings. Enable Octal DTR mode with 20 dummy cycles to allow running at the maximum supported frequency of 200Mhz. The flash supports the soft reset

[PATCH 5.8 56/85] clk: tegra: Always program PLL_E when enabled

2020-10-05 Thread Greg Kroah-Hartman
From: Thierry Reding [ Upstream commit 5105660ee80862b85f7769626d0f936c18ce1885 ] Commit bff1cef5f23a ("clk: tegra: Don't enable already enabled PLLs") added checks to avoid enabling PLLs that have already been enabled by the bootloader. However, the PLL_E configuration inherited from the bootlo

[PATCH v16 06/15] mtd: spi-nor: core: use dummy cycle and address width info from SFDP

2020-10-05 Thread Pratyush Yadav
The xSPI Profile 1.0 table specifies how many dummy cycles and address bytes are needed for the Read Status Register command in octal DTR mode. Use that information to send the correct Read SR command. Signed-off-by: Pratyush Yadav Reviewed-by: Tudor Ambarus --- drivers/mtd/spi-nor/core.c | 10

[PATCH v16 13/15] mtd: spi-nor: core: disable Octal DTR mode on suspend.

2020-10-05 Thread Pratyush Yadav
On resume, the init procedure will be run that will re-enable it. Signed-off-by: Pratyush Yadav Reviewed-by: Tudor Ambarus --- drivers/mtd/spi-nor/core.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/mtd/spi-nor/core.c b/drivers/mtd/spi-nor/core.c index feb4310ff6

[PATCH 5.8 09/85] gpio: siox: explicitly support only threaded irqs

2020-10-05 Thread Greg Kroah-Hartman
From: Ahmad Fatoum commit 45ccf6556720293323c20cda717756014ff63007 upstream. The gpio-siox driver uses handle_nested_irq() to implement its interrupt support. This is only capable of handling threaded irq actions. For a hardirq action it triggers a NULL pointer oops. (It calls action->thread_fn

[PATCH v16 10/15] mtd: spi-nor: core: enable octal DTR mode when possible

2020-10-05 Thread Pratyush Yadav
Allow flashes to specify a hook to enable octal DTR mode. Use this hook whenever possible to get optimal transfer speeds. Signed-off-by: Pratyush Yadav Reviewed-by: Tudor Ambarus --- drivers/mtd/spi-nor/core.c | 38 ++ drivers/mtd/spi-nor/core.h | 2 ++ 2 fi

[PATCH 5.8 28/85] drivers/net/wan/hdlc_fr: Add needed_headroom for PVC devices

2020-10-05 Thread Greg Kroah-Hartman
From: Xie He [ Upstream commit 44a049c42681de71c783d75cd6e56b4e339488b0 ] PVC devices are virtual devices in this driver stacked on top of the actual HDLC device. They are the devices normal users would use. PVC devices have two types: normal PVC devices and Ethernet-emulating PVC devices. When

[PATCH v16 00/15] mtd: spi-nor: add xSPI Octal DTR support

2020-10-05 Thread Pratyush Yadav
Hi, This series adds support for Octal DTR flashes in the SPI NOR framework, and then adds hooks for the Cypress Semper and Micron Xcella flashes to allow running them in Octal DTR mode. This series assumes that the flash is handed to the kernel in Legacy SPI mode. Tested on Micron MT35X and S28H

[PATCH 5.8 24/85] clocksource/drivers/timer-gx6605s: Fixup counter reload

2020-10-05 Thread Greg Kroah-Hartman
From: Guo Ren [ Upstream commit bc6717d55d07110d8f3c6d31ec2af50c11b07091 ] When the timer counts to the upper limit, an overflow interrupt is generated, and the count is reset with the value in the TIME_INI register. But the software expects to start counting from 0 when the count overflows, so

[PATCH 5.8 31/85] hv_netvsc: Cache the current data path to avoid duplicate call and message

2020-10-05 Thread Greg Kroah-Hartman
From: Dexuan Cui [ Upstream commit da26658c3d7005aa67a706dceff7b2807b59e123 ] The previous change "hv_netvsc: Switch the data path at the right time during hibernation" adds the call of netvsc_vf_changed() upon NETDEV_CHANGE, so it's necessary to avoid the duplicate call and message when the VF

[PATCH v16 01/15] mtd: spi-nor: core: use EOPNOTSUPP instead of ENOTSUPP

2020-10-05 Thread Pratyush Yadav
ENOTSUPP is not a SUSV4 error code. Using EOPNOTSUPP is preferred in its stead. Signed-off-by: Pratyush Yadav Reviewed-by: Tudor Ambarus --- drivers/mtd/spi-nor/core.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/mtd/spi-nor/core.c b/drivers/mtd/spi-nor

[PATCH v16 08/15] mtd: spi-nor: Introduce SNOR_F_IO_MODE_EN_VOLATILE

2020-10-05 Thread Pratyush Yadav
From: Tudor Ambarus We don't want to enter a stateful mode, where a X-X-X I/O mode is entered by setting a non-volatile bit, because in case of a reset or a crash, once in the non-volatile mode, we may not be able to recover in bootloaders and we may break the SPI NOR boot. Forbid by default the

[PATCH 5.8 25/85] vboxsf: Fix the check for the old binary mount-arguments struct

2020-10-05 Thread Greg Kroah-Hartman
From: Hans de Goede [ Upstream commit 9d682ea6bcc76b8b2691c79add59f7d99c881635 ] Fix the check for the mainline vboxsf code being used with the old mount.vboxsf mount binary from the out-of-tree vboxsf version doing a comparison between signed and unsigned data types. This fixes the following s

[PATCH v16 03/15] mtd: spi-nor: add support for DTR protocol

2020-10-05 Thread Pratyush Yadav
Double Transfer Rate (DTR) is SPI protocol in which data is transferred on each clock edge as opposed to on each clock cycle. Make framework-level changes to allow supporting flashes in DTR mode. Right now, mixed DTR modes are not supported. So, for example a mode like 4S-4D-4D will not work. All

[PATCH v16 02/15] mtd: spi-nor: add spi_nor_controller_ops_{read_reg,write_reg,erase}()

2020-10-05 Thread Pratyush Yadav
They are thin wrappers around nor->controller_ops->{read_reg,write_reg,erase}(). In a future commit DTR support will be added. These ops can not be supported by the controller_ops hooks and these helpers will make it easier to reject those calls. Signed-off-by: Pratyush Yadav Reviewed-by: Tudor A

[PATCH v16 07/15] mtd: spi-nor: core: do 2 byte reads for SR and FSR in DTR mode

2020-10-05 Thread Pratyush Yadav
Some controllers, like the cadence qspi controller, have trouble reading only 1 byte in DTR mode. So, do 2 byte reads for SR and FSR commands in DTR mode, and then discard the second byte. Signed-off-by: Pratyush Yadav Reviewed-by: Tudor Ambarus --- drivers/mtd/spi-nor/core.c | 15 +

[PATCH 5.8 32/85] net: dec: de2104x: Increase receive ring size for Tulip

2020-10-05 Thread Greg Kroah-Hartman
From: Lucy Yan [ Upstream commit ee460417d254d941dfea5fb7cff841f589643992 ] Increase Rx ring size to address issue where hardware is reaching the receive work limit. Before: [ 102.223342] de2104x :17:00.0 eth0: rx work limit reached [ 102.245695] de2104x :17:00.0 eth0: rx work limit

[PATCH 5.8 07/85] usbcore/driver: Fix incorrect downcast

2020-10-05 Thread Greg Kroah-Hartman
From: M. Vefa Bicakci commit 4df30e7603432704380b12fe40a604ee7f66746d upstream. This commit resolves a minor bug in the selection/discovery of more specific USB device drivers for devices that are currently bound to generic USB device drivers. The bug is related to the way a candidate USB devic

[PATCH v16 04/15] mtd: spi-nor: sfdp: get command opcode extension type from BFPT

2020-10-05 Thread Pratyush Yadav
Some devices in DTR mode expect an extra command byte called the extension. The extension can either be same as the opcode, bitwise inverse of the opcode, or another additional byte forming a 16-byte opcode. Get the extension type from the BFPT. For now, only flashes with "repeat" and "inverse" ext

[PATCH 5.8 35/85] nvme-core: get/put ctrl and transport module in nvme_dev_open/release()

2020-10-05 Thread Greg Kroah-Hartman
From: Chaitanya Kulkarni [ Upstream commit 52a3974feb1a3eec25d8836d37a508b67b0a9cd0 ] Get and put the reference to the ctrl in the nvme_dev_open() and nvme_dev_release() before and after module get/put for ctrl in char device file operations. Introduce char_dev relase function, get/put the cont

[PATCH 5.8 08/85] usbcore/driver: Accommodate usbip

2020-10-05 Thread Greg Kroah-Hartman
From: M. Vefa Bicakci commit 3fce39601a1a34d940cf62858ee01ed9dac5d459 upstream. Commit 88b7381a939d ("USB: Select better matching USB drivers when available") inadvertently broke usbip functionality. The commit in question allows USB device drivers to be explicitly matched with USB devices via t

[PATCH 5.8 36/85] fuse: fix the ->direct_IO() treatment of iov_iter

2020-10-05 Thread Greg Kroah-Hartman
From: Al Viro [ Upstream commit 933a3752babcf6513117d5773d2b70782d6ad149 ] the callers rely upon having any iov_iter_truncate() done inside ->direct_IO() countered by iov_iter_reexpand(). Reported-by: Qian Cai Tested-by: Qian Cai Signed-off-by: Al Viro Signed-off-by: Sasha Levin --- fs/fus

[PATCH 5.8 33/85] rndis_host: increase sleep time in the query-response loop

2020-10-05 Thread Greg Kroah-Hartman
From: Olympia Giannou [ Upstream commit 4202c9fdf03d79dedaa94b2c4cf574f25793d669 ] Some WinCE devices face connectivity issues via the NDIS interface. They fail to register, resulting in -110 timeout errors and failures during the probe procedure. In this kind of WinCE devices, the Windows-side

[PATCH 5.8 00/85] 5.8.14-rc1 review

2020-10-05 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.8.14 release. There are 85 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 Wed, 07 Oct 2020 14:20:55 +. Anything rece

[PATCH 5.8 03/85] mmc: sdhci: Workaround broken command queuing on Intel GLK based IRBIS models

2020-10-05 Thread Greg Kroah-Hartman
From: Hans de Goede commit afd7f30886b0b445a4240a99020458a9772f2b89 upstream. Commit bedf9fc01ff1 ("mmc: sdhci: Workaround broken command queuing on Intel GLK"), disabled command-queuing on Intel GLK based LENOVO models because of it being broken due to what is believed to be a bug in the BIOS.

[PATCH 5.8 19/85] ftrace: Move RCU is watching check after recursion check

2020-10-05 Thread Greg Kroah-Hartman
From: Steven Rostedt (VMware) commit b40341fad6cc2daa195f8090fd3348f18fff640a upstream. The first thing that the ftrace function callback helper functions should do is to check for recursion. Peter Zijlstra found that when "rcu_is_watching()" had its notrace removed, it caused perf function trac

[PATCH 5.8 02/85] btrfs: fix filesystem corruption after a device replace

2020-10-05 Thread Greg Kroah-Hartman
From: Filipe Manana commit 4c8f353272dd1262013873990c0fafd0e3c8f274 upstream. We use a device's allocation state tree to track ranges in a device used for allocated chunks, and we set ranges in this tree when allocating a new chunk. However after a device replace operation, we were not setting t

[PATCH 5.8 16/85] i2c: i801: Exclude device from suspend direct complete optimization

2020-10-05 Thread Greg Kroah-Hartman
From: Jean Delvare commit 845b89127bc5458d0152a4d63f165c62a22fcb70 upstream. By default, PCI drivers with runtime PM enabled will skip the calls to suspend and resume on system PM. For this driver, we don't want that, as we need to perform additional steps for system PM to work properly on all s

[PATCH 5.8 01/85] io_uring: always delete double poll wait entry on match

2020-10-05 Thread Greg Kroah-Hartman
From: Jens Axboe commit 8706e04ed7d6c95004d42b22a4db97d5b2eb73b2 upstream. syzbot reports a crash with tty polling, which is using the double poll handling: general protection fault, probably for non-canonical address 0xdc09: [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in ran

[PATCH 5.4 50/57] nvme: Cleanup and rename nvme_block_nr()

2020-10-05 Thread Greg Kroah-Hartman
From: Damien Le Moal commit 314d48dd224897e35ddcaf5a1d7d133b5adddeb7 upstream. Rename nvme_block_nr() to nvme_sect_to_lba() and use SECTOR_SHIFT instead of its hard coded value 9. Also add a comment to decribe this helper. Reviewed-by: Johannes Thumshirn Reviewed-by: Christoph Hellwig Signed-

[PATCH 5.4 51/57] nvme: Introduce nvme_lba_to_sect()

2020-10-05 Thread Greg Kroah-Hartman
From: Damien Le Moal commit e08f2ae850929d40e66268ee47e443e7ea56eeb7 upstream. Introduce the new helper function nvme_lba_to_sect() to convert a device logical block number to a 512B sector number. Use this new helper in obvious places, cleaning up the code. Reviewed-by: Johannes Thumshirn Rev

[PATCH 5.4 57/57] netfilter: ctnetlink: add a range check for l3/l4 protonum

2020-10-05 Thread Greg Kroah-Hartman
From: Will McVicker commit 1cc5ef91d2ff94d2bf2de3b3585423e8a1051cb6 upstream. The indexes to the nf_nat_l[34]protos arrays come from userspace. So check the tuple's family, e.g. l3num, when creating the conntrack in order to prevent an OOB memory access during setup. Here is an example kernel p

[PATCH 5.4 45/57] scripts/dtc: only append to HOST_EXTRACFLAGS instead of overwriting

2020-10-05 Thread Greg Kroah-Hartman
From: Uwe Kleine-König [ Upstream commit efe84d408bf41975db8506d3a1cc02e794e2309c ] When building with $ HOST_EXTRACFLAGS=-g make the expectation is that host tools are built with debug informations. This however doesn't happen if the Makefile assigns a new value to the HOST_EXTRACFLAG

[PATCH 5.4 56/57] ep_create_wakeup_source(): dentry name can change under you...

2020-10-05 Thread Greg Kroah-Hartman
From: Al Viro commit 3701cb59d892b88d569427586f01491552f377b1 upstream. or get freed, for that matter, if it's a long (separately stored) name. Signed-off-by: Al Viro Signed-off-by: Greg Kroah-Hartman --- fs/eventpoll.c |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) --- a/

[PATCH 5.4 48/57] mm: replace memmap_context by meminit_context

2020-10-05 Thread Greg Kroah-Hartman
From: Laurent Dufour commit c1d0da83358a2316d9be7f229f26126dbaa07468 upstream. Patch series "mm: fix memory to node bad links in sysfs", v3. Sometimes, firmware may expose interleaved memory layout like this: Early memory node ranges node 1: [mem 0x-0x00011fff]

[PATCH 5.4 49/57] mm: dont rely on system state to detect hot-plug operations

2020-10-05 Thread Greg Kroah-Hartman
From: Laurent Dufour commit f85086f95fa36194eb0db5cd5c12e56801b98523 upstream. In register_mem_sect_under_node() the system_state's value is checked to detect whether the call is made during boot time or during an hot-plug operation. Unfortunately, that check against SYSTEM_BOOTING is wrong bec

Re: [PATCH] Documentation: kvm: fix a typo

2020-10-05 Thread Jonathan Corbet
On Fri, 2 Oct 2020 08:04:22 -0700 Li Qiang wrote: > Fixes: 9824c83f92bc8 ("Documentation: kvm: document CPUID bit for > MSR_KVM_POLL_CONTROL") > Signed-off-by: Li Qiang > --- > Documentation/virt/kvm/cpuid.rst | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documenta

[PATCH 5.4 55/57] epoll: EPOLL_CTL_ADD: close the race in decision to take fast path

2020-10-05 Thread Greg Kroah-Hartman
From: Al Viro commit fe0a916c1eae8e17e86c3753d13919177d63ed7e upstream. Checking for the lack of epitems refering to the epoll we want to insert into is not enough; we might have an insertion of that epoll into another one that has already collected the set of files to recheck for excessive reve

[PATCH 5.4 35/57] pinctrl: mvebu: Fix i2c sda definition for 98DX3236

2020-10-05 Thread Greg Kroah-Hartman
From: Chris Packham [ Upstream commit 63c3212e7a37d68c89a13bdaebce869f4e064e67 ] Per the datasheet the i2c functions use MPP_Sel=0x1. They are documented as using MPP_Sel=0x4 as well but mixing 0x1 and 0x4 is clearly wrong. On the board tested 0x4 resulted in a non-functioning i2c bus so stick w

[PATCH 5.4 31/57] nvme-pci: fix NULL req in completion handler

2020-10-05 Thread Greg Kroah-Hartman
From: Xianting Tian [ Upstream commit 50b7c24390a53c78de546215282fb52980f1d7b7 ] Currently, we use nvmeq->q_depth as the upper limit for a valid tag in nvme_handle_cqe(), it is not correct. Because the available tag number is recorded in tagset, which is not equal to nvmeq->q_depth. The nvme dr

[PATCH 5.4 42/57] gpio: aspeed: fix ast2600 bank properties

2020-10-05 Thread Greg Kroah-Hartman
From: Tao Ren [ Upstream commit 3e640b1eec38e4c8eba160f26cba4f592e657f3d ] GPIO_U is mapped to the least significant byte of input/output mask, and the byte in "output" mask should be 0 because GPIO_U is input only. All the other bits need to be 1 because GPIO_V/W/X support both input and output

Re: [PATCH] dt-bindings: Another round of adding missing 'additionalProperties'

2020-10-05 Thread Sebastian Reichel
On Fri, Oct 02, 2020 at 06:41:43PM -0500, Rob Herring wrote: > Another round of wack-a-mole. The json-schema default is additional > unknown properties are allowed, but for DT all properties should be > defined. > > Signed-off-by: Rob Herring > --- > > I'll take this thru the DT tree. > > [...

[PATCH 5.4 14/57] memstick: Skip allocating card when removing host

2020-10-05 Thread Greg Kroah-Hartman
From: Kai-Heng Feng commit 62c59a8786e6bb75569cee91dab66e9da3ff4b68 upstream. After commit 6827ca573c03 ("memstick: rtsx_usb_ms: Support runtime power management"), removing module rtsx_usb_ms will be stuck. The deadlock is caused by powering on and powering off at the same time, the former one

[PATCH 5.4 54/57] epoll: replace ->visited/visited_list with generation count

2020-10-05 Thread Greg Kroah-Hartman
From: Al Viro commit 18306c404abe18a0972587a6266830583c60c928 upstream. removes the need to clear it, along with the races. Signed-off-by: Al Viro Signed-off-by: Greg Kroah-Hartman --- fs/eventpoll.c | 26 +++--- 1 file changed, 7 insertions(+), 19 deletions(-) --- a/

[PATCH 5.4 39/57] iommu/exynos: add missing put_device() call in exynos_iommu_of_xlate()

2020-10-05 Thread Greg Kroah-Hartman
From: Yu Kuai [ Upstream commit 1a26044954a6d1f4d375d5e62392446af663be7a ] if of_find_device_by_node() succeed, exynos_iommu_of_xlate() doesn't have a corresponding put_device(). Thus add put_device() to fix the exception handling for this function implementation. Fixes: aa759fd376fb ("iommu/ex

[PATCH 5.4 34/57] phy: ti: am654: Fix a leak in serdes_am654_probe()

2020-10-05 Thread Greg Kroah-Hartman
From: Dan Carpenter [ Upstream commit 850280156f6421a404f2351bee07a0e7bedfd4c6 ] If devm_phy_create() fails then we need to call of_clk_del_provider(node) to undo the call to of_clk_add_provider(). Fixes: 71e2f5c5c224 ("phy: ti: Add a new SERDES driver for TI's AM654x SoC") Signed-off-by: Dan C

<    4   5   6   7   8   9   10   11   12   13   >