[PATCH 5.10 102/103] drm/panfrost: Remove unused variables in panfrost_job_close()

2021-01-15 Thread Greg Kroah-Hartman
From: Boris Brezillon commit 7d6763ab77b3c047cf7d31ca7c4b799808a684a6 upstream. Commit a17d609e3e21 ("drm/panfrost: Don't corrupt the queue mutex on open/close") left unused variables behind, thus generating a warning at compilation time. Remove those variables. Fixes: a17d609e3e21 ("drm/panfro

[PATCH 5.10 067/103] interconnect: qcom: fix rpmh link failures

2021-01-15 Thread Greg Kroah-Hartman
From: Arnd Bergmann commit 512d4a26abdbd11c6ffa03032740e5ab3c62c55b upstream. When CONFIG_COMPILE_TEST is set, it is possible to build some of the interconnect drivers into the kernel while their dependencies are loadable modules, which is bad: arm-linux-gnueabi-ld: drivers/interconnect/qcom/bc

[PATCH 5.10 070/103] dmaengine: xilinx_dma: check dma_async_device_register return value

2021-01-15 Thread Greg Kroah-Hartman
From: Shravya Kumbham commit 99974aedbd73523969afb09f33c6e3047cd0ddae upstream. dma_async_device_register() can return non-zero error code. Add condition to check the return value of dma_async_device_register function and handle the error path. Addresses-Coverity: Event check_return. Fixes: 9cd

[PATCH 5.10 071/103] dmaengine: xilinx_dma: fix incompatible param warning in _child_probe()

2021-01-15 Thread Greg Kroah-Hartman
From: Shravya Kumbham commit faeb0731be0a31e2246b21a85fa7dabbd750101d upstream. In xilinx_dma_child_probe function, the nr_channels variable is passed to of_property_read_u32() which expects an u32 return value pointer. Modify the nr_channels variable type from int to u32 to fix the incompatible

[PATCH 5.10 100/103] net: drop bogus skb with CHECKSUM_PARTIAL and offset beyond end of trimmed packet

2021-01-15 Thread Greg Kroah-Hartman
From: Vasily Averin commit 54970a2fbb673f090b7f02d7f57b10b2e0707155 upstream. syzbot reproduces BUG_ON in skb_checksum_help(): tun creates (bogus) skb with huge partial-checksummed area and small ip packet inside. Then ip_rcv trims the skb based on size of internal ip packet, after that csum off

[PATCH 5.10 101/103] regmap: debugfs: Fix a reversed if statement in regmap_debugfs_init()

2021-01-15 Thread Greg Kroah-Hartman
From: Dan Carpenter commit f6bcb4c7f366905b66ce8ffca7190118244bb642 upstream. This code will leak "map->debugfs_name" because the if statement is reversed so it only frees NULL pointers instead of non-NULL. In fact the if statement is not required and should just be removed because kfree() acce

[PATCH 5.10 063/103] i2c: i801: Fix the i2c-mux gpiod_lookup_table not being properly terminated

2021-01-15 Thread Greg Kroah-Hartman
From: Hans de Goede commit 0b3ea2a06de1f52ea30865e227e109a5fd3b6214 upstream. gpiod_add_lookup_table() expects the gpiod_lookup_table->table passed to it to be terminated with a zero-ed out entry. So we need to allocate one more entry then we will use. Fixes: d308dfbf62ef ("i2c: mux/i801: Swit

[PATCH 5.10 103/103] tools headers UAPI: Sync linux/fscrypt.h with the kernel sources

2021-01-15 Thread Greg Kroah-Hartman
From: Arnaldo Carvalho de Melo commit 4a443a51776ca9847942523cf987a330894d3a31 upstream. To pick the changes from: 3ceb6543e9cf6ed8 ("fscrypt: remove kernel-internal constants from UAPI header") That don't result in any changes in tooling, just addressing this perf build warning: Warning

[PATCH 5.10 097/103] block/rnbd-clt: avoid module unload race with close confirmation

2021-01-15 Thread Greg Kroah-Hartman
From: Jack Wang commit 3a21777c6ee99749bac10727b3c17e5bcfebe5c1 upstream. We had kernel panic, it is caused by unload module and last close confirmation. call trace: [1196029.743127] free_sess+0x15/0x50 [rtrs_client] [1196029.743128] rtrs_clt_close+0x4c/0x70 [rtrs_client] [1196029.743129] ?

[PATCH 5.10 096/103] xsk: Rollback reservation at NETDEV_TX_BUSY

2021-01-15 Thread Greg Kroah-Hartman
From: Magnus Karlsson commit b1b95cb5c0a9694d47d5f845ba97e226cfda957d upstream. Rollback the reservation in the completion ring when we get a NETDEV_TX_BUSY. When this error is received from the driver, we are supposed to let the user application retry the transmit again. And in order to do this

[PATCH 5.10 069/103] dmaengine: milbeaut-xdmac: Fix a resource leak in the error handling path of the probe function

2021-01-15 Thread Greg Kroah-Hartman
From: Christophe JAILLET commit d645148cc82ca7fbacaa601414a552184e9c6dd3 upstream. 'disable_xdmac()' should be called in the error handling path of the probe function to undo a previous 'enable_xdmac()' call, as already done in the remove function. Fixes: a6e9be055d47 ("dmaengine: milbeaut-xdma

[PATCH 5.10 066/103] interconnect: imx: Add a missing of_node_put after of_device_is_available

2021-01-15 Thread Greg Kroah-Hartman
From: Christophe JAILLET commit c6174c0e058fc0a54e0b9787c44cb24b0a8d0217 upstream. Add an 'of_node_put()' call when a tested device node is not available. Fixes: f0d8048525d7 ("interconnect: Add imx core driver") Signed-off-by: Christophe JAILLET Link: https://lore.kernel.org/r/20201206121304

Re: [PATCH v3 01/21] x86/fpu/xstate: Modify initialization helper to handle both static and dynamic buffers

2021-01-15 Thread Borislav Petkov
On Wed, Dec 23, 2020 at 07:56:57AM -0800, Chang S. Bae wrote: > In preparation for dynamic xstate buffer expansion, update the buffer > initialization function parameters to equally handle static in-line xstate > buffer, as well as dynamically allocated xstate buffer. > > init_fpstate is a special

[PATCH 5.10 099/103] block: fix use-after-free in disk_part_iter_next

2021-01-15 Thread Greg Kroah-Hartman
From: Ming Lei commit aebf5db917055b38f4945ed6d621d9f07a44ff30 upstream. Make sure that bdgrab() is done on the 'block_device' instance before referring to it for avoiding use-after-free. Cc: Reported-by: syzbot+825f0f9657d4e5280...@syzkaller.appspotmail.com Signed-off-by: Ming Lei Reviewed-b

[PATCH 5.10 087/103] wan: ds26522: select CONFIG_BITREVERSE

2021-01-15 Thread Greg Kroah-Hartman
From: Arnd Bergmann commit 69931e11288520c250152180ecf9b6ac5e6e40ed upstream. Without this, the driver runs into a link failure arm-linux-gnueabi-ld: drivers/net/wan/slic_ds26522.o: in function `slic_ds26522_probe': slic_ds26522.c:(.text+0x100c): undefined reference to `byte_rev_table' arm-lin

[PATCH 5.10 092/103] net: mvneta: fix error message when MTU too large for XDP

2021-01-15 Thread Greg Kroah-Hartman
From: Marek Behún commit 0d136f5cd9a7ba6ded7f8ff17e8b1ba680f37625 upstream. The error message says that "Jumbo frames are not supported on XDP", but the code checks for mtu > MVNETA_MAX_RX_BUF_SIZE, not mtu > 1500. Fix this error message. Signed-off-by: Marek Behún Fixes: 0db51da7a8e9 ("net:

[PATCH 5.10 090/103] net: mvpp2: disable force link UP during port init procedure

2021-01-15 Thread Greg Kroah-Hartman
From: Stefan Chulski commit 87508224485323ce2d4e7fb929ec80f51adcc238 upstream. Force link UP can be enabled by bootloader during tftpboot and breaks NFS support. Force link UP disabled during port init procedure. Fixes: f84bf386f395 ("net: mvpp2: initialize the GoP") Signed-off-by: Stefan Chuls

[PATCH 5.10 085/103] net/mlx5e: Fix two double free cases

2021-01-15 Thread Greg Kroah-Hartman
From: Dinghao Liu commit 7a6eb072a9548492ead086f3e820e9aac71c7138 upstream. mlx5e_create_ttc_table_groups() frees ft->g on failure of kvzalloc(), but such failure will be caught by its caller in mlx5e_create_ttc_table() and ft->g will be freed again in mlx5e_destroy_flow_table(). The same issue

[PATCH 5.10 089/103] regulator: qcom-rpmh-regulator: correct hfsmps515 definition

2021-01-15 Thread Greg Kroah-Hartman
From: Dmitry Baryshkov commit df6b92fa40050e59ea89784294bf6d04c0c47705 upstream. According to the datasheet pm8009's HFS515 regulators have 16mV resolution rather than declared 1.6 mV. Correct the resolution. Signed-off-by: Dmitry Baryshkov Fixes: 06369bcc15a1 ("regulator: qcom-rpmh: Add suppo

[PATCH 5.10 095/103] xsk: Fix race in SKB mode transmit with shared cq

2021-01-15 Thread Greg Kroah-Hartman
From: Magnus Karlsson commit f09ced4053bc0a2094a12b60b646114c966ef4c6 upstream. Fix a race when multiple sockets are simultaneously calling sendto() when the completion ring is shared in the SKB case. This is the case when you share the same netdev and queue id through the XDP_SHARED_UMEM bind f

[PATCH 5.10 098/103] can: isotp: isotp_getname(): fix kernel information leak

2021-01-15 Thread Greg Kroah-Hartman
From: Oliver Hartkopp commit b42b3a2744b3e8f427de79896720c72823af91ad upstream. Initialize the sockaddr_can structure to prevent a data leak to user space. Suggested-by: Cong Wang Reported-by: syzbot+057884e2f453e8afe...@syzkaller.appspotmail.com Fixes: e057dd3fc20f ("can: add ISO 15765-2:2016

[PATCH 5.10 081/103] iommu/intel: Fix memleak in intel_irq_remapping_alloc

2021-01-15 Thread Greg Kroah-Hartman
From: Dinghao Liu commit ff2b46d7cff80d27d82f7f3252711f4ca1666129 upstream. When irq_domain_get_irq_data() or irqd_cfg() fails at i == 0, data allocated by kzalloc() has not been freed before returning, which leads to memleak. Fixes: b106ee63abcc ("irq_remapping/vt-d: Enhance Intel IR driver to

[PATCH 5.10 072/103] dmaengine: xilinx_dma: fix mixed_enum_type coverity warning

2021-01-15 Thread Greg Kroah-Hartman
From: Shravya Kumbham commit 2d5efea64472469117dc1a9a39530069e95b21e9 upstream. Typecast the fls(width -1) with (enum dmaengine_alignment) in xilinx_dma_chan_probe function to fix the coverity warning. Addresses-Coverity: Event mixed_enum_type. Fixes: 9cd4360de609 ("dma: Add Xilinx AXI Video Di

[PATCH 5.10 068/103] dmaengine: mediatek: mtk-hsdma: Fix a resource leak in the error handling path of the probe function

2021-01-15 Thread Greg Kroah-Hartman
From: Christophe JAILLET commit 33cbd54dc515cc04b5a603603414222b4bb1448d upstream. 'mtk_hsdma_hw_deinit()' should be called in the error handling path of the probe function to undo a previous 'mtk_hsdma_hw_init()' call, as already done in the remove function. Fixes: 548c4597e984 ("dmaengine: me

[PATCH 5.10 079/103] zonefs: select CONFIG_CRC32

2021-01-15 Thread Greg Kroah-Hartman
From: Arnd Bergmann commit 4f8b848788f77c7f5c3bd98febce66b7aa14785f upstream. When CRC32 is disabled, zonefs cannot be linked: ld: fs/zonefs/super.o: in function `zonefs_fill_super': Add a Kconfig 'select' statement for it. Fixes: 8dcc1a9d90c1 ("fs: New zonefs file system") Signed-off-by: Arn

[PATCH 5.10 082/103] bpftool: Fix compilation failure for net.o with older glibc

2021-01-15 Thread Greg Kroah-Hartman
From: Alan Maguire commit 6f02b540d7597f357bc6ee711346761045d4e108 upstream. For older glibc ~2.17, #include'ing both linux/if.h and net/if.h fails due to complaints about redefinition of interface flags: CC net.o In file included from net.c:13:0: /usr/include/linux/if.h:71:2: error: re

Re: [PATCH 00/10] Fix documentation warnings at linux-next

2021-01-15 Thread Mauro Carvalho Chehab
Em Fri, 15 Jan 2021 13:36:23 +0100 Mauro Carvalho Chehab escreveu: > Em Fri, 15 Jan 2021 13:05:56 +0100 > Lukas Bulwahn escreveu: > > > On Fri, Jan 15, 2021 at 10:49 AM Mauro Carvalho Chehab > > wrote: > > > > > > Hi Lukas, > > > > > > Em Fri, 15 Jan 2021 07:12:38 +0100 > > > Lukas Bulwahn

[PATCH 5.10 083/103] nvme-tcp: Fix possible race of io_work and direct send

2021-01-15 Thread Greg Kroah-Hartman
From: Sagi Grimberg commit 5c11f7d9f843bdd24cd29b95401938bc3f168070 upstream. We may send a request (with or without its data) from two paths: 1. From our I/O context nvme_tcp_io_work which is triggered from: - queue_rq - r2t reception - socket data_ready and write_space callbacks

[PATCH 5.10 074/103] qed: select CONFIG_CRC32

2021-01-15 Thread Greg Kroah-Hartman
From: Arnd Bergmann commit 2860d45a589818dd8ffd90cdc4bcf77f36a5a6be upstream. Without this, the driver fails to link: lpc_eth.c:(.text+0x1934): undefined reference to `crc32_le' arm-linux-gnueabi-ld: drivers/net/ethernet/qlogic/qed/qed_debug.o: in function `qed_grc_dump': qed_debug.c:(.text+0x

[PATCH 5.10 084/103] net/mlx5e: Fix memleak in mlx5e_create_l2_table_groups

2021-01-15 Thread Greg Kroah-Hartman
From: Dinghao Liu commit 5b0bb12c58ac7d22e05b5bfdaa30a116c8c32e32 upstream. When mlx5_create_flow_group() fails, ft->g should be freed just like when kvzalloc() fails. The caller of mlx5e_create_l2_table_groups() does not catch this issue on failure, which leads to memleak. Fixes: 33cfaaa8f36f

[PATCH 5.10 064/103] i2c: mediatek: Fix apdma and i2c hand-shake timeout

2021-01-15 Thread Greg Kroah-Hartman
From: Qii Wang commit 05f6f7271a38c482c5021967433f7b698e102c45 upstream. With the apdma remove hand-shake signal, it requirs special operation timing to reset i2c manually, otherwise the interrupt will not be triggered, i2c transmission will be timeout. Fixes: 8426fe70cfa4("i2c: mediatek: Add a

[PATCH 5.10 078/103] lightnvm: select CONFIG_CRC32

2021-01-15 Thread Greg Kroah-Hartman
From: Arnd Bergmann commit 19cd3403cb0d522dd5e10188eef85817de29e26e upstream. Without CRC32 support, this fails to link: arm-linux-gnueabi-ld: drivers/lightnvm/pblk-init.o: in function `pblk_init': pblk-init.c:(.text+0x2654): undefined reference to `crc32_le' arm-linux-gnueabi-ld: drivers/light

[PATCH 5.10 058/103] can: kvaser_pciefd: select CONFIG_CRC32

2021-01-15 Thread Greg Kroah-Hartman
From: Arnd Bergmann commit 1d48595c786b1b9dc6be301e8d7f6fc74e9882aa upstream. Without crc32, this driver fails to link: arm-linux-gnueabi-ld: drivers/net/can/kvaser_pciefd.o: in function `kvaser_pciefd_probe': kvaser_pciefd.c:(.text+0x2b0): undefined reference to `crc32_be' Fixes: 26ad340e582

[PATCH 5.10 077/103] block: rsxx: select CONFIG_CRC32

2021-01-15 Thread Greg Kroah-Hartman
From: Arnd Bergmann commit 36a106a4c1c100d55ba3d32a21ef748cfcd4fa99 upstream. Without crc32, the driver fails to link: arm-linux-gnueabi-ld: drivers/block/rsxx/config.o: in function `rsxx_load_config': config.c:(.text+0x124): undefined reference to `crc32_le' Fixes: 8722ff8cdbfa ("block: IBM

[PATCH 5.10 035/103] chtls: Fix chtls resources release sequence

2021-01-15 Thread Greg Kroah-Hartman
From: Ayush Sawal [ Upstream commit 15ef6b0e30b354253e2c10b3836bc59767eb162b ] CPL_ABORT_RPL is sent after releasing the resources by calling chtls_release_resources(sk); and chtls_conn_done(sk); eventually causing kernel panic. Fixing it by calling release in appropriate order. Fixes: cc35c88a

[PATCH 5.10 053/103] i2c: sprd: use a specific timeout to avoid system hang up issue

2021-01-15 Thread Greg Kroah-Hartman
From: Chunyan Zhang commit 0b884fe71f9ee6a5df35e677154256ea2099ebb8 upstream. If the i2c device SCL bus being pulled up due to some exception before message transfer done, the system cannot receive the completing interrupt signal any more, it would not exit waiting loop until MAX_SCHEDULE_TIMEOU

[PATCH 5.10 060/103] cpufreq: powernow-k8: pass policy rather than use cpufreq_cpu_get()

2021-01-15 Thread Greg Kroah-Hartman
From: Colin Ian King commit 943bdd0cecad06da8392a33093230e30e501eccc upstream. Currently there is an unlikely case where cpufreq_cpu_get() returns a NULL policy and this will cause a NULL pointer dereference later on. Fix this by passing the policy to transition_frequency_fidvid() from the call

[PATCH 5.10 059/103] spi: spi-geni-qcom: Fail new xfers if xfer/cancel/abort pending

2021-01-15 Thread Greg Kroah-Hartman
From: Douglas Anderson commit 690d8b917bbe64772cb0b652311bcd50908aea6b upstream. If we got a timeout when trying to send an abort command then it means that we just got 3 timeouts in a row: 1. The original timeout that caused handle_fifo_timeout() to be called. 2. A one second timeout waitin

[PATCH 5.10 038/103] nexthop: Unlink nexthop group entry in error path

2021-01-15 Thread Greg Kroah-Hartman
From: Ido Schimmel [ Upstream commit 7b01e53eee6dce7a8a6736e06b99b68cd0cc7a27 ] In case of error, remove the nexthop group entry from the list to which it was previously added. Fixes: 430a049190de ("nexthop: Add support for nexthop groups") Signed-off-by: Ido Schimmel Reviewed-by: Petr Machata

[PATCH 5.10 034/103] chtls: Added a check to avoid NULL pointer dereference

2021-01-15 Thread Greg Kroah-Hartman
From: Ayush Sawal [ Upstream commit eade1e0a4fb31d48eeb1589d9bb859ae4dd6181d ] In case of server removal lookup_stid() may return NULL pointer, which is used as listen_ctx. So added a check before accessing this pointer. Fixes: cc35c88ae4db ("crypto : chtls - CPL handler definition") Signed-off

Re: [PATCH V2 10/11] coresight: sink: Add TRBE driver

2021-01-15 Thread Suzuki K Poulose
On 1/15/21 5:29 AM, Anshuman Khandual wrote: On 1/13/21 8:58 PM, Suzuki K Poulose wrote: Hi Anshuman, The driver looks overall good to me. Please find some minor comments below On 1/13/21 4:18 AM, Anshuman Khandual wrote: Trace Buffer Extension (TRBE) implements a trace buffer per CPU which

[PATCH 5.10 050/103] HID: wacom: Fix memory leakage caused by kfifo_alloc

2021-01-15 Thread Greg Kroah-Hartman
From: Ping Cheng commit 37309f47e2f5674f3e86cb765312ace42cfcedf5 upstream. As reported by syzbot below, kfifo_alloc'd memory would not be freed if a non-zero return value is triggered in wacom_probe. This patch creates and uses devm_kfifo_alloc to allocate and free itself. BUG: memory leak unre

[PATCH 5.10 033/103] chtls: Replace skb_dequeue with skb_peek

2021-01-15 Thread Greg Kroah-Hartman
From: Ayush Sawal [ Upstream commit a84b2c0d5fa23da6d6c8c0d5f5c93184a2744d3e ] The skb is unlinked twice, one in __skb_dequeue in function chtls_reset_synq() and another in cleanup_syn_rcv_conn(). So in this patch using skb_peek() instead of __skb_dequeue(), so that unlink will be handled only i

[PATCH 5.10 062/103] spi: stm32: FIFO threshold level - fix align packet size

2021-01-15 Thread Greg Kroah-Hartman
From: Roman Guskov commit a590370d918fc66c62df6620445791fbe840344a upstream. if cur_bpw <= 8 and xfer_len < 4 then the value of fthlv will be 1 and SPI registers content may have been lost. * If SPI data register is accessed as a 16-bit register and DSIZE <= 8bit, better to select FTHLV = 2,

[PATCH 5.10 037/103] nexthop: Fix off-by-one error in error path

2021-01-15 Thread Greg Kroah-Hartman
From: Ido Schimmel [ Upstream commit 07e61a979ca4dddb3661f59328b3cd109f6b0070 ] A reference was not taken for the current nexthop entry, so do not try to put it in the error path. Fixes: 430a049190de ("nexthop: Add support for nexthop groups") Signed-off-by: Ido Schimmel Reviewed-by: Petr Mach

[PATCH 5.10 057/103] can: m_can: m_can_class_unregister(): remove erroneous m_can_clk_stop()

2021-01-15 Thread Greg Kroah-Hartman
From: Marc Kleine-Budde commit c4aec381ab98c9189d47b935832541d520f1f67f upstream. In m_can_class_register() the clock is started, but stopped on exit. When calling m_can_class_unregister(), the clock is stopped a second time. This patch removes the erroneous m_can_clk_stop() in m_can_class_unr

[PATCH 5.10 032/103] chtls: Avoid unnecessary freeing of oreq pointer

2021-01-15 Thread Greg Kroah-Hartman
From: Ayush Sawal [ Upstream commit f8d15d29d6e6b32704c8fce9229716ca145a0de2 ] In chtls_pass_accept_request(), removing the chtls_reqsk_free() call to avoid oreq freeing twice. Here oreq is the pointer to struct request_sock. Fixes: cc35c88ae4db ("crypto : chtls - CPL handler definition") Signe

[PATCH 5.10 046/103] net/mlx5e: In skb build skip setting mark in switchdev mode

2021-01-15 Thread Greg Kroah-Hartman
From: Maor Dickman [ Upstream commit e13ed0ac064dd6ee964155ba9fdc2f3c3785934c ] sop_drop_qpn field in the cqe is used by two features, in SWITCHDEV mode to restore the chain id in case of a miss and in LEGACY mode to support skbedit mark action. In build RX skb, the skb mark field is set regardl

[PATCH 5.10 056/103] can: tcan4x5x: fix bittiming const, use common bittiming from m_can driver

2021-01-15 Thread Greg Kroah-Hartman
From: Marc Kleine-Budde commit aee2b3ccc8a63d1cd7da6a8a153d1f3712d40826 upstream. According to the TCAN4550 datasheet "SLLSF91 - DECEMBER 2018" the tcan4x5x has the same bittiming constants as a m_can revision 3.2.x/3.3.0. The tcan4x5x chip I'm using identifies itself as m_can revision 3.2.1, s

Re: [PATCH] mm/compaction: return proper state in should_proactive_compact_node

2021-01-15 Thread Vlastimil Babka
On 1/13/21 3:03 PM, Charan Teja Reddy wrote: > should_proactive_compact_node() returns true when sum of the > fragmentation score of all the zones in the node is greater than the > wmark_high of compaction which then triggers the proactive compaction > that operates on the individual zones of the n

[PATCH 5.10 045/103] net/mlx5e: ethtool, Fix restriction of autoneg with 56G

2021-01-15 Thread Greg Kroah-Hartman
From: Aya Levin [ Upstream commit b1c0aca3d3ddeebeec57ada9c2df9ed647939249 ] Prior to this patch, configuring speed to 50G with autoneg off over devices supporting 50G per lane failed. Support for 50G per lane introduced a new set of link-modes, on which driver always performed a speed validatio

[PATCH 5.10 055/103] selftests/bpf: Clarify build error if no vmlinux

2021-01-15 Thread Greg Kroah-Hartman
From: Kamal Mostafa commit 1a3449c19407a28f7019a887cdf0d6ba2444751a upstream. If Makefile cannot find any of the vmlinux's in its VMLINUX_BTF_PATHS list, it tries to run btftool incorrectly, with VMLINUX_BTF unset: bpftool btf dump file $(VMLINUX_BTF) format c Such that the keyword 'format

[PATCH 5.10 039/103] nexthop: Bounce NHA_GATEWAY in FDB nexthop groups

2021-01-15 Thread Greg Kroah-Hartman
From: Petr Machata [ Upstream commit b19218b27f3477316d296e8bcf4446aaf017aa69 ] The function nh_check_attr_group() is called to validate nexthop groups. The intention of that code seems to have been to bounce all attributes above NHA_GROUP_TYPE except for NHA_FDB. However instead it bounces all

Re: [PATCH] MAINTAINERS: add myself as slab allocators maintainer

2021-01-15 Thread Vlastimil Babka
On 1/15/21 10:03 AM, David Rientjes wrote: > On Thu, 14 Jan 2021, Vlastimil Babka wrote: > >> On 1/8/21 7:46 PM, Christoph Lameter wrote: >> > I am ok with you as a slab maintainer. I have seen some good work from >> > you. >> > >> > Acked-by: Christoph Lameter >> >> Thanks! >> > > Acked-by:

[PATCH 5.10 051/103] fanotify: Fix sys_fanotify_mark() on native x86-32

2021-01-15 Thread Greg Kroah-Hartman
From: Brian Gerst commit 2ca408d9c749c32288bc28725f9f12ba30299e8f upstream. Commit 121b32a58a3a ("x86/entry/32: Use IA32-specific wrappers for syscalls taking 64-bit arguments") converted native x86-32 which take 64-bit arguments to use the compat handlers to allow conversion to passing arg

[PATCH 5.10 009/103] scsi: ufs: Fix -Wsometimes-uninitialized warning

2021-01-15 Thread Greg Kroah-Hartman
From: Arnd Bergmann [ Upstream commit 4c60244dc37262023d24b167e245055c06bc0b77 ] clang complains about a possible code path in which a variable is used without an initialization: drivers/scsi/ufs/ufshcd.c:7690:3: error: variable 'sdp' is used uninitialized whenever 'if' condition is false [-We

[PATCH 5.10 000/103] 5.10.8-rc1 review

2021-01-15 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.10.8 release. There are 103 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 Sun, 17 Jan 2021 12:19:42 +. Anything rec

[PATCH 5.10 031/103] chtls: Fix panic when route to peer not configured

2021-01-15 Thread Greg Kroah-Hartman
From: Ayush Sawal [ Upstream commit 5a5fac9966bb6d513198634b0b1357be7e8447d2 ] If route to peer is not configured, we might get non tls devices from dst_neigh_lookup() which is invalid, adding a check to avoid it. Fixes: cc35c88ae4db ("crypto : chtls - CPL handler definition") Signed-off-by: Ro

[PATCH 5.10 043/103] net: dsa: lantiq_gswip: Exclude RMII from modes that report 1 GbE

2021-01-15 Thread Greg Kroah-Hartman
From: Aleksander Jan Bajkowski [ Upstream commit 3545454c7801e391b0d966f82c98614d45394770 ] Exclude RMII from modes that report 1 GbE support. Reduced MII supports up to 100 MbE. Fixes: 14fceff4771e ("net: dsa: Add Lantiq / Intel DSA driver for vrx200") Signed-off-by: Aleksander Jan Bajkowski

[PATCH 5.10 005/103] RDMA/hns: Avoid filling sl in high 3 bits of vlan_id

2021-01-15 Thread Greg Kroah-Hartman
From: Weihang Li [ Upstream commit 94a8c4dfcdb2b4fcb3dfafc39c1033a0b4637c86 ] Only the low 12 bits of vlan_id is valid, and service level has been filled in Address Vector. So there is no need to fill sl in vlan_id in Address Vector. Fixes: 7406c0036f85 ("RDMA/hns: Only record vlan info for HIP

[PATCH 5.10 003/103] io_uring: limit {io|sq}poll submit locking scope

2021-01-15 Thread Greg Kroah-Hartman
From: Pavel Begunkov commit 89448c47b8452b67c146dc6cad6f737e004c5caf upstream We don't need to take uring_lock for SQPOLL|IOPOLL to do io_cqring_overflow_flush() when cq_overflow_list is empty, remove it from the hot path. Signed-off-by: Pavel Begunkov Signed-off-by: Jens Axboe Signed-off-by:

[PATCH 5.10 047/103] net/mlx5: Check if lag is supported before creating one

2021-01-15 Thread Greg Kroah-Hartman
From: Mark Zhang [ Upstream commit abf8ef953a43e74aac3c54a94975f21bd483199b ] This patch fixes a memleak issue by preventing to create a lag and add PFs if lag is not supported. comm “python3”, pid 349349, jiffies 4296985507 (age 1446.976s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 0

[PATCH 5.10 044/103] net/mlx5: Use port_num 1 instead of 0 when delete a RoCE address

2021-01-15 Thread Greg Kroah-Hartman
From: Mark Zhang [ Upstream commit 0f2dcade69f2af56b74bce432e48ff3957830ce2 ] In multi-port mode, FW reports syndrome 0x2ea48 (invalid vhca_port_number) if the port_num is not 1 or 2. Fixes: 80f09dfc237f ("net/mlx5: Eswitch, enable RoCE loopback traffic") Signed-off-by: Mark Zhang Reviewed-by:

[PATCH 5.10 026/103] tools: selftests: add test for changing routes with PTMU exceptions

2021-01-15 Thread Greg Kroah-Hartman
From: Sean Tranchetti [ Upstream commit 5316a7c0130acf09bfc8bb0092407006010f ] Adds new 2 new tests to the PTMU script: pmtu_ipv4/6_route_change. These tests explicitly test for a recently discovered problem in the IPv6 routing framework where PMTU exceptions were not properly released when

[PATCH 5.10 030/103] chtls: Remove invalid set_tcb call

2021-01-15 Thread Greg Kroah-Hartman
From: Ayush Sawal [ Upstream commit 827d329105bfde6701f0077e34a09c4a86e27145 ] At the time of SYN_RECV, connection information is not initialized at FW, updating tcb flag over uninitialized connection causes adapter crash. We don't need to update the flag during SYN_RECV state, so avoid this. F

[PATCH 5.10 008/103] io_uring: Fix return value from alloc_fixed_file_ref_node

2021-01-15 Thread Greg Kroah-Hartman
From: Matthew Wilcox (Oracle) [ Upstream commit 3e2224c5867fead6c0b94b84727cc676ac6353a3 ] alloc_fixed_file_ref_node() currently returns an ERR_PTR on failure. io_sqe_files_unregister() expects it to return NULL and since it can only return -ENOMEM, it makes more sense to change alloc_fixed_file

Re: [PATCH 1/4] phy: qcom-qmp: Add SM8350 USB QMP PHYs

2021-01-15 Thread Vinod Koul
On 15-01-21, 12:54, Konrad Dybcio wrote: > Hi, > > > I might be wrong but it looks as if you forgot to add a compatible for the > "sm8350_usb3_uniphy_cfg" configuration. It seems to be documented in patch 2, ideally we should have the bindings patches first and this as patch 3... > > > Konra

[PATCH 5.10 022/103] net/sonic: Fix some resource leaks in error handling paths

2021-01-15 Thread Greg Kroah-Hartman
From: Christophe JAILLET [ Upstream commit 0f7ba7bc46fa0b574ccacf5672991b321e028492 ] A call to dma_alloc_coherent() is wrapped by sonic_alloc_descriptors(). This is correctly freed in the remove function, but not in the error handling path of the probe function. Fix this by adding the missing

[PATCH 5.10 019/103] net: stmmac: dwmac-sun8i: Balance internal PHY power

2021-01-15 Thread Greg Kroah-Hartman
From: Samuel Holland [ Upstream commit b8239638853e3e37b287e4bd4d57b41f14c78550 ] sun8i_dwmac_exit calls sun8i_dwmac_unpower_internal_phy, but sun8i_dwmac_init did not call sun8i_dwmac_power_internal_phy. This caused PHY power to remain off after a suspend/resume cycle. Fix this by recording if

[PATCH 5.10 023/103] net: bareudp: add missing error handling for bareudp_link_config()

2021-01-15 Thread Greg Kroah-Hartman
From: Jakub Kicinski [ Upstream commit 94bcfdbff0c210b17b27615f4952cc6ece7d5f5f ] .dellink does not get called after .newlink fails, bareudp_newlink() must undo what bareudp_configure() has done if bareudp_link_config() fails. v2: call bareudp_dellink(), like bareudp_dev_create() does Fixes: 5

[PATCH 5.10 017/103] net: stmmac: dwmac-sun8i: Fix probe error handling

2021-01-15 Thread Greg Kroah-Hartman
From: Samuel Holland [ Upstream commit 7eeecc4b1f480c7ba1932cb9a7693f8c452640f2 ] stmmac_pltfr_remove does three things in one function, making it inapproprate for unwinding the steps in the probe function. Currently, a failure before the call to stmmac_dvr_probe would leak OF node references du

[PATCH 5.10 013/103] net: cdc_ncm: correct overhead in delayed_ndp_size

2021-01-15 Thread Greg Kroah-Hartman
From: "Jouni K. Sepp�nen" [ Upstream commit 7a68d725e4ea384977445e0bcaed3d7de83ab5b3 ] Aligning to tx_ndp_modulus is not sufficient because the next align call can be cdc_ncm_align_tail, which can add up to ctx->tx_modulus + ctx->tx_remainder - 1 bytes. This used to lead to occasional crashes on

[PATCH 5.10 010/103] btrfs: skip unnecessary searches for xattrs when logging an inode

2021-01-15 Thread Greg Kroah-Hartman
From: Filipe Manana [ Upstream commit f2f121ab500d0457cc9c6f54269d21ffdf5bd304 ] Every time we log an inode we lookup in the fs/subvol tree for xattrs and if we have any, log them into the log tree. However it is very common to have inodes without any xattrs, so doing the search wastes times, bu

Re: [PATCH 00/10] Fix documentation warnings at linux-next

2021-01-15 Thread Mauro Carvalho Chehab
Em Fri, 15 Jan 2021 13:05:56 +0100 Lukas Bulwahn escreveu: > On Fri, Jan 15, 2021 at 10:49 AM Mauro Carvalho Chehab > wrote: > > > > Hi Lukas, > > > > Em Fri, 15 Jan 2021 07:12:38 +0100 > > Lukas Bulwahn escreveu: > > > > > [reduced the recipient list to the main responsible ones and list] >

[PATCH 5.10 001/103] powerpc/32s: Fix RTAS machine check with VMAP stack

2021-01-15 Thread Greg Kroah-Hartman
From: Christophe Leroy [ Upstream commit 98bf2d3f4970179c702ef64db658e0553bc6ef3a ] When we have VMAP stack, exception prolog 1 sets r1, not r11. When it is not an RTAS machine check, don't trash r1 because it is needed by prolog 1. Fixes: da7bb43ab9da ("powerpc/32: Fix vmap stack - Properly s

[PATCH 5.10 002/103] io_uring: synchronise IOPOLL on task_submit fail

2021-01-15 Thread Greg Kroah-Hartman
From: Pavel Begunkov commit 81b6d05ccad4f3d8a9dfb091fb46ad6978ee40e4 upstream io_req_task_submit() might be called for IOPOLL, do the fail path under uring_lock to comply with IOPOLL synchronisation based solely on it. Cc: sta...@vger.kernel.org # 5.5+ Signed-off-by: Pavel Begunkov Signed-off-

[PATCH 5.10 021/103] net: vlan: avoid leaks on register_vlan_dev() failures

2021-01-15 Thread Greg Kroah-Hartman
From: Jakub Kicinski [ Upstream commit 55b7ab1178cbf41f979ff83236d3321ad35ed2ad ] VLAN checks for NETREG_UNINITIALIZED to distinguish between registration failure and unregistration in progress. Since commit cb626bf566eb ("net-sysfs: Fix reference count leak") registration failure may, however,

[PATCH 5.10 015/103] net: hns3: fix the number of queues actually used by ARQ

2021-01-15 Thread Greg Kroah-Hartman
From: Yufeng Mo [ Upstream commit 65e61e3c2a619c4d4b873885b2d5394025ed117b ] HCLGE_MBX_MAX_ARQ_MSG_NUM is used to apply memory for the number of queues used by ARQ(Asynchronous Receive Queue), so the head and tail pointers should also use this macro. Fixes: 07a0556a3a73 ("net: hns3: Changes to

[PATCH 5.10 016/103] net: hns3: fix a phy loopback fail issue

2021-01-15 Thread Greg Kroah-Hartman
From: Yonglong Liu [ Upstream commit f04bbcbf1e38d192e94bbfa126731a52332c40b1 ] When phy driver does not implement the set_loopback interface, phy loopback test will return -EOPNOTSUPP, and the loopback test will fail. So when phy driver does not implement the set_loopback interface, don't do ph

Re: [PATCH v2 2/2] kasan, arm64: fix pointer tags in KASAN reports

2021-01-15 Thread Andrey Konovalov
On Fri, Jan 15, 2021 at 11:49 AM Catalin Marinas wrote: > > On Thu, Jan 14, 2021 at 08:33:57PM +0100, Andrey Konovalov wrote: > > As of the "arm64: expose FAR_EL1 tag bits in siginfo" patch, the address > > that is passed to report_tag_fault has pointer tags in the format of 0x0X, > > while KASAN

[PATCH 5.10 040/103] s390/qeth: fix deadlock during recovery

2021-01-15 Thread Greg Kroah-Hartman
From: Julian Wiedmann [ Upstream commit 0b9902c1fcc59ba75268386c0420a554f8844168 ] When qeth_dev_layer2_store() - holding the discipline_mutex - waits inside qeth_l*_remove_device() for a qeth_do_reset() thread to complete, we can hit a deadlock if qeth_do_reset() concurrently calls qeth_set_onl

[PATCH 5.4 57/62] regulator: qcom-rpmh-regulator: correct hfsmps515 definition

2021-01-15 Thread Greg Kroah-Hartman
From: Dmitry Baryshkov commit df6b92fa40050e59ea89784294bf6d04c0c47705 upstream. According to the datasheet pm8009's HFS515 regulators have 16mV resolution rather than declared 1.6 mV. Correct the resolution. Signed-off-by: Dmitry Baryshkov Fixes: 06369bcc15a1 ("regulator: qcom-rpmh: Add suppo

[PATCH 5.4 49/62] block: rsxx: select CONFIG_CRC32

2021-01-15 Thread Greg Kroah-Hartman
From: Arnd Bergmann commit 36a106a4c1c100d55ba3d32a21ef748cfcd4fa99 upstream. Without crc32, the driver fails to link: arm-linux-gnueabi-ld: drivers/block/rsxx/config.o: in function `rsxx_load_config': config.c:(.text+0x124): undefined reference to `crc32_le' Fixes: 8722ff8cdbfa ("block: IBM

Re: general protection fault in io_disable_sqo_submit

2021-01-15 Thread Pavel Begunkov
On 15/01/2021 09:33, Hillf Danton wrote: >> Thanks, but it was fixed the day before >> > It helps much if you can add a link to the fix next time. https://git.kernel.dk/cgit/linux-block/commit/?h=io_uring-5.11&id=b4411616c26f26c4017b8fa4d3538b1a02028733 https://git.kernel.dk/cgit/linux-block/commi

[PATCH 5.10 014/103] net: hns3: fix incorrect handling of sctp6 rss tuple

2021-01-15 Thread Greg Kroah-Hartman
From: Jian Shen [ Upstream commit ab6e32d2913a594bc8f822ce4a75c400190b2ecc ] For DEVICE_VERSION_V2, the hardware only supports src-ip, dst-ip and verification-tag for rss tuple set of sctp6 packet. For DEVICE_VERSION_V3, the hardware supports src-port and dst-port as well. Currently, when user

[PATCH 5.4 62/62] regmap: debugfs: Fix a reversed if statement in regmap_debugfs_init()

2021-01-15 Thread Greg Kroah-Hartman
From: Dan Carpenter commit f6bcb4c7f366905b66ce8ffca7190118244bb642 upstream. This code will leak "map->debugfs_name" because the if statement is reversed so it only frees NULL pointers instead of non-NULL. In fact the if statement is not required and should just be removed because kfree() acce

[PATCH 5.10 011/103] btrfs: fix deadlock when cloning inline extent and low on free metadata space

2021-01-15 Thread Greg Kroah-Hartman
From: Filipe Manana [ Upstream commit 3d45f221ce627d13e2e6ef3274f06750c84a6542 ] When cloning an inline extent there are cases where we can not just copy the inline extent from the source range to the target range (e.g. when the target range starts at an offset greater than zero). In such cases

[PATCH 5.4 48/62] wil6210: select CONFIG_CRC32

2021-01-15 Thread Greg Kroah-Hartman
From: Arnd Bergmann commit e186620d7bf11b274b985b839c38266d7918cc05 upstream. Without crc32, the driver fails to link: arm-linux-gnueabi-ld: drivers/net/wireless/ath/wil6210/fw.o: in function `wil_fw_verify': fw.c:(.text+0x74c): undefined reference to `crc32_le' arm-linux-gnueabi-ld: drivers/n

[PATCH 5.4 47/62] qed: select CONFIG_CRC32

2021-01-15 Thread Greg Kroah-Hartman
From: Arnd Bergmann commit 2860d45a589818dd8ffd90cdc4bcf77f36a5a6be upstream. Without this, the driver fails to link: lpc_eth.c:(.text+0x1934): undefined reference to `crc32_le' arm-linux-gnueabi-ld: drivers/net/ethernet/qlogic/qed/qed_debug.o: in function `qed_grc_dump': qed_debug.c:(.text+0x

[PATCH 5.4 60/62] block: fix use-after-free in disk_part_iter_next

2021-01-15 Thread Greg Kroah-Hartman
From: Ming Lei commit aebf5db917055b38f4945ed6d621d9f07a44ff30 upstream. Make sure that bdgrab() is done on the 'block_device' instance before referring to it for avoiding use-after-free. Cc: Reported-by: syzbot+825f0f9657d4e5280...@syzkaller.appspotmail.com Signed-off-by: Ming Lei Reviewed-b

Re: general protection fault in xsk_recvmsg

2021-01-15 Thread Björn Töpel
#syz fix: xsk: Validate socket state in xsk_recvmsg, prior touching socket members

[PATCH 5.4 53/62] net/mlx5e: Fix memleak in mlx5e_create_l2_table_groups

2021-01-15 Thread Greg Kroah-Hartman
From: Dinghao Liu commit 5b0bb12c58ac7d22e05b5bfdaa30a116c8c32e32 upstream. When mlx5_create_flow_group() fails, ft->g should be freed just like when kvzalloc() fails. The caller of mlx5e_create_l2_table_groups() does not catch this issue on failure, which leads to memleak. Fixes: 33cfaaa8f36f

[PATCH 5.4 51/62] iommu/intel: Fix memleak in intel_irq_remapping_alloc

2021-01-15 Thread Greg Kroah-Hartman
From: Dinghao Liu commit ff2b46d7cff80d27d82f7f3252711f4ca1666129 upstream. When irq_domain_get_irq_data() or irqd_cfg() fails at i == 0, data allocated by kzalloc() has not been freed before returning, which leads to memleak. Fixes: b106ee63abcc ("irq_remapping/vt-d: Enhance Intel IR driver to

[PATCH 5.4 50/62] lightnvm: select CONFIG_CRC32

2021-01-15 Thread Greg Kroah-Hartman
From: Arnd Bergmann commit 19cd3403cb0d522dd5e10188eef85817de29e26e upstream. Without CRC32 support, this fails to link: arm-linux-gnueabi-ld: drivers/lightnvm/pblk-init.o: in function `pblk_init': pblk-init.c:(.text+0x2654): undefined reference to `crc32_le' arm-linux-gnueabi-ld: drivers/light

[PATCH 5.4 46/62] dmaengine: xilinx_dma: fix mixed_enum_type coverity warning

2021-01-15 Thread Greg Kroah-Hartman
From: Shravya Kumbham commit 2d5efea64472469117dc1a9a39530069e95b21e9 upstream. Typecast the fls(width -1) with (enum dmaengine_alignment) in xilinx_dma_chan_probe function to fix the coverity warning. Addresses-Coverity: Event mixed_enum_type. Fixes: 9cd4360de609 ("dma: Add Xilinx AXI Video Di

[PATCH 5.4 20/62] net/mlx5e: ethtool, Fix restriction of autoneg with 56G

2021-01-15 Thread Greg Kroah-Hartman
From: Aya Levin [ Upstream commit b1c0aca3d3ddeebeec57ada9c2df9ed647939249 ] Prior to this patch, configuring speed to 50G with autoneg off over devices supporting 50G per lane failed. Support for 50G per lane introduced a new set of link-modes, on which driver always performed a speed validatio

[PATCH net-next 0/7] net: ipa: interconnect improvements

2021-01-15 Thread Alex Elder
The main outcome of this series is to allow the number of interconnects used by the IPA to differ from the three that are implemented now. With this series in place, any number of interconnects can now be used, all specified in the configuration data for a specific platform. A few minor interconn

[PATCH net-next 7/7] net: ipa: allow arbitrary number of interconnects

2021-01-15 Thread Alex Elder
Currently we assume that the IPA hardware has exactly three interconnects. But that won't be guaranteed for all platforms, so allow any number of interconnects to be specified in the configuration data. For each platform, define an array of interconnect data entries (still associated with the IPA

[PATCH net-next 2/7] net: ipa: don't return an error from ipa_interconnect_disable()

2021-01-15 Thread Alex Elder
If disabling interconnects fails there's not a lot we can do. The only two callers of ipa_interconnect_disable() ignore the return value, so just give the function a void return type. Print an error message if disabling any of the interconnects is not successful. Return (and print) only the firs

[PATCH v6 3/5] mm: hugetlb: fix a race between freeing and dissolving the page

2021-01-15 Thread Muchun Song
There is a race condition between __free_huge_page() and dissolve_free_huge_page(). CPU0: CPU1: // page_count(page) == 1 put_page(page) __free_huge_page(page) dissolve_free_huge_page(page) spin_lock(&hugetlb_l

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