Re: memory leak in bpf

2021-03-01 Thread Rustam Kovhaev
On Mon, Mar 01, 2021 at 08:05:42PM +0100, Dmitry Vyukov wrote: > On Mon, Mar 1, 2021 at 5:21 PM Rustam Kovhaev wrote: > > > > On Wed, Dec 09, 2020 at 10:58:10PM -0800, syzbot wrote: > > > syzbot has found a reproducer for the following issue on: > > > > > > HEAD commit:a68a0262 mm/madvise:

[PATCH] drivers/media/usb: fix memory leak in zr364xx_probe

2021-03-01 Thread Pavel Skripkin
syzbot reported memory leak in zr364xx_probe()[1]. The problem was in invalid error handling order. All error conditions rigth after v4l2_ctrl_handler_init() must call v4l2_ctrl_handler_free(). Reported-by: syzbot+efe9aefc31ae1e6f7...@syzkaller.appspotmail.com Signed-off-by: Pavel Skripkin ---

[PATCH 5.4 000/338] 5.4.102-rc2 review

2021-03-01 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.102 release. There are 338 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, 03 Mar 2021 19:43:25 +. Anything

Re: [GIT PULL] Kmap conversions for 5.12, take 2

2021-03-01 Thread pr-tracker-bot
The pull request you sent on Mon, 1 Mar 2021 17:50:13 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git > kmap-conversion-for-5.12 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/7a7fd0de4a9804299793e564a555a49c1fc924cb Thank you! --

Re: [GIT PULL] Btrfs updates for 5.12-rc2

2021-03-01 Thread pr-tracker-bot
The pull request you sent on Mon, 1 Mar 2021 14:44:16 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git for-5.12-rc1-tag has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/c608aca57dd034d09f307b109b670d1cfb829279 Thank you! -- Deet-doot-dot, I am

[PATCH 5.11 000/774] 5.11.3-rc2 review

2021-03-01 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.11.3 release. There are 774 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, 03 Mar 2021 19:35:23 +. Anything

Re: [PATCH v3 01/25] mm: Introduce struct folio

2021-03-01 Thread Zi Yan
On 28 Jan 2021, at 2:03, Matthew Wilcox (Oracle) wrote: > We have trouble keeping track of whether we've already called > compound_head() to ensure we're not operating on a tail page. Further, > it's never clear whether we intend a struct page to refer to PAGE_SIZE > bytes or

[PATCH 5.10 000/661] 5.10.20-rc2 review

2021-03-01 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.10.20 release. There are 661 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, 03 Mar 2021 19:34:53 +. Anything

[PATCH 5.4 000/338] 5.4.102-rc1 review

2021-03-01 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.102 release. There are 338 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, 03 Mar 2021 19:35:07 +. Anything

Re: [PATCH 5.4 000/338] 5.4.102-rc1 review

2021-03-01 Thread Greg Kroah-Hartman
On Mon, Mar 01, 2021 at 08:36:57PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.4.102 release. > There are 338 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

Re: [PATCH 1/7] dt-bindings: regulator: Convert regulator bindings to YAML format

2021-03-01 Thread Rob Herring
On Wed, Feb 24, 2021 at 2:34 AM satya priya wrote: > > Convert regulator bindings from .txt to .yaml format. > > Signed-off-by: satya priya > --- > .../bindings/regulator/qcom,rpmh-regulator.txt | 180 > - > .../bindings/regulator/qcom,rpmh-regulator.yaml| 147

Re: [PATCH mvebu v3 00/10] Armada 37xx: Fix cpufreq changing base CPU speed to 800 MHz from 1000 MHz

2021-03-01 Thread Pali Rohár
Hello Gregory! Patches are the for almost two months and more people have tested them. They are marked with Fixed/CC-stable tags, they should go also into stable trees as they are fixing CPU scaling and instability issues. Are there any issues with these patches? If not, could you please merge

[PATCH 4.19 000/246] 4.19.178-rc2 review

2021-03-01 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.19.178 release. There are 246 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, 03 Mar 2021 19:35:01 +. Anything

[PATCH 4.14 000/175] 4.14.223-rc2 review

2021-03-01 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.14.223 release. There are 175 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, 03 Mar 2021 19:34:58 +. Anything

Re: [PATCH V3 XRT Alveo 04/18] fpga: xrt: xrt-lib platform driver manager

2021-03-01 Thread Max Zhen
Hi Moritz, On 2/21/21 12:39 PM, Moritz Fischer wrote: CAUTION: This message has originated from an External Source. Please use proper judgment and caution when opening attachments, clicking links, or responding to this email. Lizhi, On Wed, Feb 17, 2021 at 10:40:05PM -0800, Lizhi Hou

[PATCH 5.11 765/775] dm era: Reinitialize bitset cache before digesting a new writeset

2021-03-01 Thread Greg Kroah-Hartman
From: Nikos Tsironis commit 2524933307fd0036d5c32357c693c021ab09a0b0 upstream. In case of devices with at most 64 blocks, the digestion of consecutive eras uses the writeset of the first era as the writeset of all eras to digest, leading to lost writes. That is, we lose the information about

[PATCH 5.11 766/775] dm era: only resize metadata in preresume

2021-03-01 Thread Greg Kroah-Hartman
From: Nikos Tsironis commit cca2c6aebe86f68103a8615074b3578e854b5016 upstream. Metadata resize shouldn't happen in the ctr. The ctr loads a temporary (inactive) table that will only become active upon resume. That is why resize should always be done in terms of resume. Otherwise a load (ctr)

[PATCH 5.11 627/775] selinux: fix inconsistency between inode_getxattr and inode_listsecurity

2021-03-01 Thread Greg Kroah-Hartman
From: Amir Goldstein commit a9ffe682c58aaff643764547f5420e978b6e0830 upstream. When inode has no listxattr op of its own (e.g. squashfs) vfs_listxattr calls the LSM inode_listsecurity hooks to list the xattrs that LSMs will intercept in inode_getxattr hooks. When selinux LSM is installed but

[PATCH 5.11 415/775] perf vendor events arm64: Fix Ampere eMag event typo

2021-03-01 Thread Greg Kroah-Hartman
From: John Garry [ Upstream commit 2bf797be81fa808f05f1a7a65916619132256a27 ] The "briefdescription" for event 0x35 has a typo - fix it. Fixes: d35c595bf005 ("perf vendor events arm64: Revise core JSON events for eMAG") Signed-off-by: John Garry Acked-by: Will Deacon Cc: James Clark Cc:

Re: [PATCH] crypto: expose needs_key in procfs

2021-03-01 Thread Eric Biggers
On Mon, Mar 01, 2021 at 05:59:17PM +0100, Christoph Böhmwalder wrote: > Currently, it is not apparent for userspace users which hash algorithms > require a key and which don't. We have /proc/crypto, so add a field > with this information there. > > Signed-off-by: Christoph Böhmwalder > > --- >

Re: [PATCH v2] misc: fastrpc: restrict user apps from sending kernel RPC messages

2021-03-01 Thread Greg Kroah-Hartman
On Mon, Mar 01, 2021 at 08:45:34PM +0300, Dmitry Baryshkov wrote: > On Mon, 1 Mar 2021 at 18:48, Greg Kroah-Hartman > wrote: > > > > On Mon, Mar 01, 2021 at 06:34:10PM +0300, Dmitry Baryshkov wrote: > > > On Sat, 13 Feb 2021 at 11:25, Greg Kroah-Hartman > > > wrote: > > > > > > > > On Fri, Feb

[PATCH 5.10 524/663] selinux: fix inconsistency between inode_getxattr and inode_listsecurity

2021-03-01 Thread Greg Kroah-Hartman
From: Amir Goldstein commit a9ffe682c58aaff643764547f5420e978b6e0830 upstream. When inode has no listxattr op of its own (e.g. squashfs) vfs_listxattr calls the LSM inode_listsecurity hooks to list the xattrs that LSMs will intercept in inode_getxattr hooks. When selinux LSM is installed but

[PATCH 5.4 178/340] perf vendor events arm64: Fix Ampere eMag event typo

2021-03-01 Thread Greg Kroah-Hartman
From: John Garry [ Upstream commit 2bf797be81fa808f05f1a7a65916619132256a27 ] The "briefdescription" for event 0x35 has a typo - fix it. Fixes: d35c595bf005 ("perf vendor events arm64: Revise core JSON events for eMAG") Signed-off-by: John Garry Acked-by: Will Deacon Cc: James Clark Cc:

[PATCH 5.10 344/663] perf vendor events arm64: Fix Ampere eMag event typo

2021-03-01 Thread Greg Kroah-Hartman
From: John Garry [ Upstream commit 2bf797be81fa808f05f1a7a65916619132256a27 ] The "briefdescription" for event 0x35 has a typo - fix it. Fixes: d35c595bf005 ("perf vendor events arm64: Revise core JSON events for eMAG") Signed-off-by: John Garry Acked-by: Will Deacon Cc: James Clark Cc:

Re: [PATCH v2] drm/bridge: lt9611: Fix handling of 4k panels

2021-03-01 Thread John Stultz
On Thu, Jan 21, 2021 at 1:50 AM Robert Foss wrote: > +Sam Ravnborg > > I think this patch is ready to get pulled into the drm-misc tree. > > On Thu, 17 Dec 2020 at 15:09, Robert Foss wrote: > > > > 4k requires two dsi pipes, so don't report MODE_OK when only a > > single pipe is configured. But

[PATCH 5.4 202/340] phy: rockchip-emmc: emmc_phy_init() always return 0

2021-03-01 Thread Greg Kroah-Hartman
From: Chris Ruehl [ Upstream commit 39961bd6b70e5a5d7c4b5483ad8e1db6b5765c60 ] rockchip_emmc_phy_init() return variable is not set with the error value if clk_get() failed. 'emmcclk' is optional, thus use clk_get_optional() and if the return value != NULL make error processing and set the

[PATCH 5.11 757/775] dm writecache: fix performance degradation in ssd mode

2021-03-01 Thread Greg Kroah-Hartman
From: Mikulas Patocka commit cb728484a7710c202f02b96aa0962ce9b07aa5c2 upstream. Fix a thinko in ssd_commit_superblock. region.count is in sectors, not bytes. This bug doesn't corrupt data, but it causes performance degradation. Signed-off-by: Mikulas Patocka Fixes: dc8a01ae1dbd ("dm

[PATCH 5.11 764/775] dm era: Use correct value size in equality function of writeset tree

2021-03-01 Thread Greg Kroah-Hartman
From: Nikos Tsironis commit 64f2d15afe7b336aafebdcd14cc835ecf856df4b upstream. Fix the writeset tree equality test function to use the right value size when comparing two btree values. Fixes: eec40579d84873 ("dm: add era target") Cc: sta...@vger.kernel.org # v3.15+ Signed-off-by: Nikos

[PATCH 5.11 763/775] dm era: Fix bitset memory leaks

2021-03-01 Thread Greg Kroah-Hartman
From: Nikos Tsironis commit 904e6b266619c2da5c58b5dce14ae30629e39645 upstream. Deallocate the memory allocated for the in-core bitsets when destroying the target and in error paths. Fixes: eec40579d84873 ("dm: add era target") Cc: sta...@vger.kernel.org # v3.15+ Signed-off-by: Nikos Tsironis

[PATCH 5.11 761/775] dm era: Update in-core bitset after committing the metadata

2021-03-01 Thread Greg Kroah-Hartman
From: Nikos Tsironis commit 2099b145d77c1d53f5711f029c37cc537897cee6 upstream. In case of a system crash, dm-era might fail to mark blocks as written in its metadata, although the corresponding writes to these blocks were passed down to the origin device and completed successfully. Consider

[PATCH 5.11 759/775] dm writecache: fix writing beyond end of underlying device when shrinking

2021-03-01 Thread Greg Kroah-Hartman
From: Mikulas Patocka commit 4134455f2aafdfeab50cabb4cccb35e916034b93 upstream. Do not attempt to write any data beyond the end of the underlying data device while shrinking it. The DM writecache device must be suspended when the underlying data device is shrunk. Signed-off-by: Mikulas

[PATCH 5.11 762/775] dm era: Verify the data block size hasnt changed

2021-03-01 Thread Greg Kroah-Hartman
From: Nikos Tsironis commit c8e846ff93d5eaa5384f6f325a1687ac5921aade upstream. dm-era doesn't support changing the data block size of existing devices, so check explicitly that the requested block size for a new target matches the one stored in the metadata. Fixes: eec40579d84873 ("dm: add era

[PATCH 5.11 775/775] net_sched: fix RTNL deadlock again caused by request_module()

2021-03-01 Thread Greg Kroah-Hartman
From: Cong Wang commit d349f997686887906b1183b5be96933c5452362a upstream. tcf_action_init_1() loads tc action modules automatically with request_module() after parsing the tc action names, and it drops RTNL lock and re-holds it before and after request_module(). This causes a lot of troubles,

[PATCH 5.11 760/775] dm era: Recover committed writeset after crash

2021-03-01 Thread Greg Kroah-Hartman
From: Nikos Tsironis commit de89afc1e40fdfa5f8b666e5d07c43d21a1d3be0 upstream. Following a system crash, dm-era fails to recover the committed writeset for the current era, leading to lost writes. That is, we lose the information about what blocks were written during the affected era. dm-era

[PATCH 5.11 773/775] net: sched: fix police ext initialization

2021-03-01 Thread Greg Kroah-Hartman
From: Vlad Buslov commit 396d7f23adf9e8c436dd81a69488b5b6a865acf8 upstream. When police action is created by cls API tcf_exts_validate() first conditional that calls tcf_action_init_1() directly, the action idr is not updated according to latest changes in action API that require caller to

[PATCH 5.11 774/775] net: qrtr: Fix memory leak in qrtr_tun_open

2021-03-01 Thread Greg Kroah-Hartman
From: Takeshi Misawa commit fc0494ead6398609c49afa37bc949b61c5c16b91 upstream. If qrtr_endpoint_register() failed, tun is leaked. Fix this, by freeing tun in error path. syzbot report: BUG: memory leak unreferenced object 0x88811848d680 (size 64): comm "syz-executor684", pid 10171,

[PATCH 5.11 772/775] wireguard: queueing: get rid of per-peer ring buffers

2021-03-01 Thread Greg Kroah-Hartman
From: Jason A. Donenfeld commit 8b5553ace83cced775eefd0f3f18b5c6214ccf7a upstream. Having two ring buffers per-peer means that every peer results in two massive ring allocations. On an 8-core x86_64 machine, this commit reduces the per-peer allocation from 18,688 bytes to 1,856 bytes, which is

[PATCH 5.11 758/775] dm writecache: return the exact table values that were set

2021-03-01 Thread Greg Kroah-Hartman
From: Mikulas Patocka commit 054bee16163df023e2589db09fd27d81f7ad9e72 upstream. LVM doesn't like it when the target returns different values from what was set in the constructor. Fix dm-writecache so that the returned table values are exactly the same as requested values. Signed-off-by:

[PATCH 5.11 771/775] wireguard: selftests: test multiple parallel streams

2021-03-01 Thread Greg Kroah-Hartman
From: Jason A. Donenfeld commit d5a49aa6c3e264a93a7d08485d66e346be0969dd upstream. In order to test ndo_start_xmit being called in parallel, explicitly add separate tests, which should all run on different cores. This should help tease out bugs associated with queueing up packets from different

[PATCH 5.11 769/775] ipv6: silence compilation warning for non-IPV6 builds

2021-03-01 Thread Greg Kroah-Hartman
From: Leon Romanovsky commit 1faba27f11c8da244e793546a1b35a9b1da8208e upstream. The W=1 compilation of allmodconfig generates the following warning: net/ipv6/icmp.c:448:6: warning: no previous prototype for 'icmp6_send' [-Wmissing-prototypes] 448 | void icmp6_send(struct sk_buff *skb, u8

[PATCH 5.11 770/775] net: icmp: pass zeroed opts from icmp{,v6}_ndo_send before sending

2021-03-01 Thread Greg Kroah-Hartman
From: Jason A. Donenfeld commit ee576c47db60432c37e54b1e2b43a8ca6d3a8dca upstream. The icmp{,v6}_send functions make all sorts of use of skb->cb, casting it with IPCB or IP6CB, assuming the skb to have come directly from the inet layer. But when the packet comes from the ndo layer, especially

[PATCH 5.11 768/775] kgdb: fix to kill breakpoints on initmem after boot

2021-03-01 Thread Greg Kroah-Hartman
From: Sumit Garg commit d54ce6158e354f5358a547b96299ecd7f3725393 upstream. Currently breakpoints in kernel .init.text section are not handled correctly while allowing to remove them even after corresponding pages have been freed. Fix it via killing .init.text section breakpoints just prior to

[PATCH 5.11 733/775] virtio/s390: implement virtio-ccw revision 2 correctly

2021-03-01 Thread Greg Kroah-Hartman
From: Cornelia Huck commit 182f709c5cff683e6732d04c78e328de0532284f upstream. CCW_CMD_READ_STATUS was introduced with revision 2 of virtio-ccw, and drivers should only rely on it being implemented when they negotiated at least that revision with the device. However, virtio_ccw_get_status()

[PATCH 5.11 724/775] exfat: fix shift-out-of-bounds in exfat_fill_super()

2021-03-01 Thread Greg Kroah-Hartman
From: Namjae Jeon commit 78c276f5495aa53a8beebb627e5bf6a54f0af34f upstream. syzbot reported a warning which could cause shift-out-of-bounds issue. Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x183/0x22e lib/dump_stack.c:120 ubsan_epilogue lib/ubsan.c:148 [inline]

[PATCH 5.11 767/775] drm/i915: Reject 446-480MHz HDMI clock on GLK

2021-03-01 Thread Greg Kroah-Hartman
From: Ville Syrjälä commit 7a6c6243b44a439bda4bf099032be35ebcf53406 upstream. The BXT/GLK DPLL can't generate certain frequencies. We already reject the 233-240MHz range on both. But on GLK the DPLL max frequency was bumped from 300MHz to 594MHz, so now we get to also worry about the 446-480MHz

[PATCH 5.11 732/775] s390/vtime: fix inline assembly clobber list

2021-03-01 Thread Greg Kroah-Hartman
From: Heiko Carstens commit b29c5093820d333eef22f58cd04ec0d089059c39 upstream. The stck/stckf instruction used within the inline assembly within do_account_vtime() changes the condition code. This is not reflected with the clobber list, and therefore might result in incorrect code generation.

[PATCH 5.11 730/775] cpufreq: intel_pstate: Get per-CPU max freq via MSR_HWP_CAPABILITIES if available

2021-03-01 Thread Greg Kroah-Hartman
From: Chen Yu commit 6f67e060083a84a4cc364eab6ae40c717165fb0c upstream. Currently, when turbo is disabled (either by BIOS or by the user), the intel_pstate driver reads the max non-turbo frequency from the package-wide MSR_PLATFORM_INFO(0xce) register. However, on asymmetric platforms it is

[PATCH 5.11 731/775] proc: dont allow async path resolution of /proc/thread-self components

2021-03-01 Thread Greg Kroah-Hartman
From: Jens Axboe commit 0d4370cfe36b7f1719123b621a4ec4d9c7a25f89 upstream. If this is attempted by an io-wq kthread, then return -EOPNOTSUPP as we don't currently support that. Once we can get task_pid_ptr() doing the right thing, then this can go away again. Use PF_IO_WORKER for this to

[PATCH 5.11 744/775] cifs: fix handling of escaped , in the password mount argument

2021-03-01 Thread Greg Kroah-Hartman
From: Ronnie Sahlberg commit d08395a3f2f473c6ceeb316a1aeb7fad5b43014f upstream. Passwords can contain ',' which are also used as the separator between mount options. Mount.cifs will escape all ',' characters as the string ",,". Update parsing of the mount options to detect ",," and treat it as

[PATCH 5.11 726/775] kcmp: Support selection of SYS_kcmp without CHECKPOINT_RESTORE

2021-03-01 Thread Greg Kroah-Hartman
From: Chris Wilson commit bfe3911a91047557eb0e620f95a370aee6a248c7 upstream. Userspace has discovered the functionality offered by SYS_kcmp and has started to depend upon it. In particular, Mesa uses SYS_kcmp for os_same_file_description() in order to identify when two fd (e.g. device or

[PATCH 5.11 746/775] perf stat: Use nftw() instead of ftw()

2021-03-01 Thread Greg Kroah-Hartman
From: Paul Cercueil commit a81fbb8771a3810a58d657763fde610bf2c33286 upstream. ftw() has been obsolete for about 12 years now. Committer notes: Further notes provided by the patch author: "NOTE: Not runtime-tested, I have no idea what I need to do in perf to test this. But at least

[PATCH 5.11 743/775] cifs: fix nodfs mount option

2021-03-01 Thread Greg Kroah-Hartman
From: Paulo Alcantara commit d01132ae50207bb6fd94e08e80c2d7b839408086 upstream. Skip DFS resolving when mounting with 'nodfs' even if CONFIG_CIFS_DFS_UPCALL is enabled. Signed-off-by: Paulo Alcantara (SUSE) Cc: sta...@vger.kernel.org # 5.11 Reviewed-by: Shyam Prasad N Signed-off-by: Steve

[PATCH 5.11 745/775] sparc32: fix a user-triggerable oops in clear_user()

2021-03-01 Thread Greg Kroah-Hartman
From: Al Viro commit 7780918b36489f0b2f9a3749d7be00c2ceaec513 upstream. Back in 2.1.29 the clear_user() guts (__bzero()) had been merged with memset(). Unfortunately, while all exception handlers had been copied, one of the exception table entries got lost. As the result, clear_user()

[PATCH 5.11 748/775] spi: spi-synquacer: fix set_cs handling

2021-03-01 Thread Greg Kroah-Hartman
From: Masahisa Kojima commit 1c9f1750f0305bf605ff22686fc0ac89c06deb28 upstream. When the slave chip select is deasserted, DMSTOP bit must be set. Fixes: b0823ee35cf9 ("spi: Add spi driver for Socionext SynQuacer platform") Signed-off-by: Masahisa Kojima Signed-off-by: Jassi Brar Cc:

[PATCH 5.11 747/775] spi: fsl: invert spisel_boot signal on MPC8309

2021-03-01 Thread Greg Kroah-Hartman
From: Rasmus Villemoes commit 9d2aa6dbf87af89c13cac2d1b4cccad83fb14a7e upstream. Commit 7a2da5d7960a ("spi: fsl: Fix driver breakage when SPI_CS_HIGH is not set in spi->mode") broke our MPC8309 board by effectively inverting the boolean value passed to fsl_spi_cs_control. The SPISEL_BOOT signal

[PATCH 5.11 729/775] cpufreq: intel_pstate: Change intel_pstate_get_hwp_max() argument

2021-03-01 Thread Greg Kroah-Hartman
From: Rafael J. Wysocki commit a45ee4d4e13b0e35a8ec7ea0bf9267243d57b302 upstream. All of the callers of intel_pstate_get_hwp_max() access the struct cpudata object that corresponds to the given CPU already and the function itself needs to access that object (in order to update hwp_cap_cached),

[PATCH 5.11 756/775] dm table: fix zoned iterate_devices based device capability checks

2021-03-01 Thread Greg Kroah-Hartman
From: Jeffle Xu commit 24f6b6036c9eec21191646930ad42808e6180510 upstream. Fix dm_table_supports_zoned_model() and invert logic of both iterate_devices_callout_fn so that all devices' zoned capabilities are properly checked. Add one more parameter to dm_table_any_dev_attr(), which is actually

[PATCH 5.11 727/775] thermal: cpufreq_cooling: freq_qos_update_request() returns < 0 on error

2021-03-01 Thread Greg Kroah-Hartman
From: Viresh Kumar commit a51afb13311cd85b2f638c691b2734622277d8f5 upstream. freq_qos_update_request() returns 1 if the effective constraint value has changed, 0 if the effective constraint value has not changed, or a negative error code on failures. The frequency constraints for CPUs can be

[PATCH 5.11 755/775] dm table: fix DAX iterate_devices based device capability checks

2021-03-01 Thread Greg Kroah-Hartman
From: Jeffle Xu commit 5b0fab508992c2e120971da658ce80027acbc405 upstream. Fix dm_table_supports_dax() and invert logic of both iterate_devices_callout_fn so that all devices' DAX capabilities are properly checked. Fixes: 545ed20e6df6 ("dm: add infrastructure for DAX support") Cc:

[PATCH 5.11 754/775] dm table: fix iterate_devices based device capability checks

2021-03-01 Thread Greg Kroah-Hartman
From: Jeffle Xu commit a4c8dd9c2d0987cf542a2a0c42684c9c6d78a04e upstream. According to the definition of dm_iterate_devices_fn: * This function must iterate through each section of device used by the * target until it encounters a non-zero return code, which it then returns. * Returns zero

[PATCH 5.11 751/775] gfs2: Lock imbalance on error path in gfs2_recover_one

2021-03-01 Thread Greg Kroah-Hartman
From: Andreas Gruenbacher commit 834ec3e1ee65029029225a86c12337a6cd385af7 upstream. In gfs2_recover_one, fix a sd_log_flush_lock imbalance when a recovery pass fails. Fixes: c9ebc4b73799 ("gfs2: allow journal replay to hold sd_log_flush_lock") Cc: sta...@vger.kernel.org # v5.7+ Signed-off-by:

[PATCH 5.11 749/775] gfs2: fix glock confusion in function signal_our_withdraw

2021-03-01 Thread Greg Kroah-Hartman
From: Bob Peterson commit f5f02fde9f52b2d769c1c2ddfd3d9c4a1fe739a7 upstream. If go_free is defined, function signal_our_withdraw is supposed to synchronize on the GLF_FREEING flag of the inode glock, but it accidentally does that on the live glock. Fix that and disambiguate the glock variables.

[PATCH 5.11 728/775] cpufreq: qcom-hw: drop devm_xxx() calls from init/exit hooks

2021-03-01 Thread Greg Kroah-Hartman
From: Shawn Guo commit 67fc209b527d023db4d087c68e44e9790aa089ef upstream. Commit f17b3e44320b ("cpufreq: qcom-hw: Use devm_platform_ioremap_resource() to simplify code") introduces a regression on platforms using the driver, by failing to initialise a policy, when one is created post hotplug.

[PATCH 5.11 752/775] gfs2: Recursive gfs2_quota_hold in gfs2_iomap_end

2021-03-01 Thread Greg Kroah-Hartman
From: Andreas Gruenbacher commit 7009fa9cd9a5262944b30eb7efb1f0561d074b68 upstream. When starting an iomap write, gfs2_quota_lock_check -> gfs2_quota_lock -> gfs2_quota_hold is called from gfs2_iomap_begin. At the end of the write, before unlocking the quotas, punch_hole -> gfs2_quota_hold can

[PATCH 5.11 753/775] dm: fix deadlock when swapping to encrypted device

2021-03-01 Thread Greg Kroah-Hartman
From: Mikulas Patocka commit a666e5c05e7c4aaabb2c5d58117b0946803d03d2 upstream. The system would deadlock when swapping to a dm-crypt device. The reason is that for each incoming write bio, dm-crypt allocates memory that holds encrypted data. These excessive allocations exhaust all the memory

[PATCH 5.11 750/775] gfs2: Dont skip dlm unlock if glock has an lvb

2021-03-01 Thread Greg Kroah-Hartman
From: Bob Peterson commit 78178ca844f0eb88f21f31c7fde969384be4c901 upstream. Patch fb6791d100d1 was designed to allow gfs2 to unmount quicker by skipping the step where it tells dlm to unlock glocks in EX with lvbs. This was done because when gfs2 unmounts a file system, it destroys the dlm

linux-next: Fixes tag needs some work in the tip tree

2021-03-01 Thread Stephen Rothwell
Hi all, In commit 05f7fcc675f5 ("hrtimer: Update softirq_expires_next correctly after __hrtimer_get_next_event()") Fixes tag Fixes: da70160462e ("hrtimer: Implement support for softirq based hrtimers") has these problem(s): - Target SHA1 does not exist Maybe you meant Fixes:

[PATCH 5.11 696/775] mtd: spi-nor: core: Add erase size check for erase command initialization

2021-03-01 Thread Greg Kroah-Hartman
From: Takahiro Kuwano commit 58fa22f68fcaff20ce4d08a6adffa64f65ccd37d upstream. Even if erase type is same as previous region, erase size can be different if the previous region is overlaid region. Since 'region->size' is assigned to 'cmd->size' for overlaid region, comparing 'erase->size' and

[PATCH 5.11 742/775] cifs: introduce helper for finding referral server to improve DFS target resolution

2021-03-01 Thread Greg Kroah-Hartman
From: Paulo Alcantara commit 5ff2836ed3a5c24420a7235be25a462594cdc4ea upstream. Some servers seem to mistakenly report different values for capabilities and share flags, so we can't always rely on those values to decide whether the resolved target can handle any new DFS referrals. Add a new

[PATCH 5.11 740/775] cifs: fix DFS failover

2021-03-01 Thread Greg Kroah-Hartman
From: Paulo Alcantara commit 8513222b9ef2709ba40cbda07b55d5fbcfdd4bc7 upstream. In do_dfs_failover(), the mount_get_conns() function requires the full fs context in order to get new connection to server, so clone the original context and change it accordingly when retrying the DFS targets in

[PATCH 5.11 741/775] cifs: check all path components in resolved dfs target

2021-03-01 Thread Greg Kroah-Hartman
From: Paulo Alcantara commit ff2c54a04097dee0b8899c485360719844d923f8 upstream. Handle the case where a resolved target share is like //server/users/dir, and the user "foo" has no read permission to access the parent folder "users" but has access to the final path component "dir".

[PATCH 5.11 695/775] mtd: spi-nor: core: Fix erase type discovery for overlaid region

2021-03-01 Thread Greg Kroah-Hartman
From: Takahiro Kuwano commit 969b276718de37dfe66fce3a5633f611e8cd58fd upstream. In case of overlaid regions in which their biggest erase size command overpasses in size the region's size, only the non-overlaid portion of the sector gets erased. For example, if a Sector Erase command is applied

[PATCH 5.11 737/775] f2fs: fix out-of-repair __setattr_copy()

2021-03-01 Thread Greg Kroah-Hartman
From: Chao Yu commit 2562515f0ad7342bde6456602c491b64c63fe950 upstream. __setattr_copy() was copied from setattr_copy() in fs/attr.c, there is two missing patches doesn't cover this inner function, fix it. Commit 7fa294c8991c ("userns: Allow chown and setgid preservation") Commit 23adbe12ef7d

[PATCH 5.11 738/775] f2fs: enforce the immutable flag on open files

2021-03-01 Thread Greg Kroah-Hartman
From: Chao Yu commit e0fcd01510ad025c9bbce704c5c2579294056141 upstream. This patch ports commit 02b016ca7f99 ("ext4: enforce the immutable flag on open files") to f2fs. According to the chattr man page, "a file with the 'i' attribute cannot be modified..." Historically, this was only enforced

[PATCH 5.11 691/775] watchdog: mei_wdt: request stop on unregister

2021-03-01 Thread Greg Kroah-Hartman
From: Alexander Usyskin commit 740c0a57b8f1e36301218bf549f3c9cc833a60be upstream. The MEI bus has a special behavior on suspend it destroys all the attached devices, this is due to the fact that also firmware context is not persistent across power flows. If watchdog on MEI bus is ticking

Re: [PATCH v2 3/3] mm: use PF_ONLY_HEAD for PG_active and PG_unevictable

2021-03-01 Thread Matthew Wilcox
On Mon, Mar 01, 2021 at 12:16:19PM -0800, Hugh Dickins wrote: > On Mon, 1 Mar 2021, Yu Zhao wrote: > > On Mon, Mar 01, 2021 at 02:50:07PM +0300, Kirill A. Shutemov wrote: > > > On Fri, Feb 26, 2021 at 12:13:14PM +, Matthew Wilcox wrote: > > > > On Fri, Feb 26, 2021 at 02:17:18AM -0700, Yu Zhao

[PATCH 5.11 736/775] irqchip/loongson-pch-msi: Use bitmap_zalloc() to allocate bitmap

2021-03-01 Thread Greg Kroah-Hartman
From: Huacai Chen commit c1f664d2400e73d5ca0fcd067fa5847d2c789c11 upstream. Currently we use bitmap_alloc() to allocate msi bitmap which should be initialized with zero. This is obviously wrong but it works because msi can fallback to legacy interrupt mode. So use bitmap_zalloc() instead.

[PATCH 5.11 739/775] f2fs: flush data when enabling checkpoint back

2021-03-01 Thread Greg Kroah-Hartman
From: Jaegeuk Kim commit b0ff4fe746fd028eef920ddc8c7b0361c1ede6ec upstream. During checkpoint=disable period, f2fs bypasses all the synchronous IOs such as sync and fsync. So, when enabling it back, we must flush all of them in order to keep the data persistent. Otherwise, suddern power-cut

[PATCH 5.11 735/775] um: defer killing userspace on page table update failures

2021-03-01 Thread Greg Kroah-Hartman
From: Johannes Berg commit a7d48886cacf8b426e0079bca9639d2657cf2d38 upstream. In some cases we can get to fix_range_common() with mmap_sem held, and in others we get there without it being held. For example, we get there with it held from sys_mprotect(), and without it held from fork_handler().

[PATCH 5.11 734/775] um: mm: check more comprehensively for stub changes

2021-03-01 Thread Greg Kroah-Hartman
From: Johannes Berg commit 47da29763ec9a153b9b685bff9db659e4e09e494 upstream. If userspace tries to change the stub, we need to kill it, because otherwise it can escape the virtual machine. In a few cases the stub checks weren't good, e.g. if userspace just tries to mmap(0x10 -

[PATCH 5.11 725/775] zonefs: Fix file size of zones in full condition

2021-03-01 Thread Greg Kroah-Hartman
From: Shin'ichiro Kawasaki commit 059c01039c0185dbee7ed080f1f2bd22cb1e4dab upstream. Per ZBC/ZAC/ZNS specifications, write pointers may not have valid values when zones are in full condition. However, when zonefs mounts a zoned block device, zonefs refers write pointers to set file size even

[PATCH 5.11 697/775] mtd: spi-nor: hisi-sfc: Put child node np on error path

2021-03-01 Thread Greg Kroah-Hartman
From: Pan Bian commit fe6653460ee7a7dbe0cd5fd322992af862ce5ab0 upstream. Put the child node np when it fails to get or register device. Fixes: e523f11141bd ("mtd: spi-nor: add hisilicon spi-nor flash controller driver") Cc: sta...@vger.kernel.org Signed-off-by: Pan Bian [ta: Add Fixes tag

[PATCH 5.11 698/775] fs/affs: release old buffer head on error path

2021-03-01 Thread Greg Kroah-Hartman
From: Pan Bian commit 70779b897395b330ba5a47bed84f94178da599f9 upstream. The reference count of the old buffer head should be decremented on path that fails to get the new buffer head. Fixes: 6b4657667ba0 ("fs/affs: add rename exchange") CC: sta...@vger.kernel.org # 4.14+ Signed-off-by: Pan

[PATCH 5.11 721/775] gpio: pcf857x: Fix missing first interrupt

2021-03-01 Thread Greg Kroah-Hartman
From: Maxim Kiselev commit a8002a35935aaefcd6a42ad3289f62bab947f2ca upstream. If no n_latch value will be provided at driver probe then all pins will be used as an input: gpio->out = ~n_latch; In that case initial state for all pins is "one": gpio->status = gpio->out; So if pcf857x

[PATCH 5.11 700/775] x86: fix seq_file iteration for pat/memtype.c

2021-03-01 Thread Greg Kroah-Hartman
From: NeilBrown commit 3d2fc4c082448e9c05792f9b2a11c1d5db408b85 upstream. The memtype seq_file iterator allocates a buffer in the ->start and ->next functions and frees it in the ->show function. The preferred handling for such resources is to free them in the subsequent ->next or ->stop

[PATCH 5.11 699/775] seq_file: document how per-entry resources are managed.

2021-03-01 Thread Greg Kroah-Hartman
From: NeilBrown commit b3656d8227f4c45812c6b40815d8f4e446ed372a upstream. Patch series "Fix some seq_file users that were recently broken". A recent change to seq_file broke some users which were using seq_file in a non-"standard" way ... though the "standard" isn't documented, so they can be

[PATCH 5.11 722/775] mfd: gateworks-gsc: Fix interrupt type

2021-03-01 Thread Greg Kroah-Hartman
From: Tim Harvey commit 8d9bf3c3e1451fc8de7b590040a868ade26d6b22 upstream. The Gateworks System Controller has an active-low interrupt. Fix the interrupt request type. Cc: Fixes: d85234994b2f ("mfd: Add Gateworks System Controller core driver") Signed-off-by: Tim Harvey Signed-off-by: Lee

[PATCH 5.11 723/775] printk: fix deadlock when kernel panic

2021-03-01 Thread Greg Kroah-Hartman
From: Muchun Song commit 8a8109f303e25a27f92c1d8edd67d7cbbc60a4eb upstream. printk_safe_flush_on_panic() caused the following deadlock on our server: CPU0: CPU1: panic rcu_dump_cpu_stacks kdump_nmi_shootdown_cpus

Re: [PATCH v2] binfmt_misc: Fix possible deadlock in bm_register_write

2021-03-01 Thread Helge Deller
On 2/28/21 11:44 PM, Lior Ribak wrote: There is a deadlock in bm_register_write: First, in the beggining of the function, a lock is taken on the binfmt_misc root inode with inode_lock(d_inode(root)) Then, if the user used the MISC_FMT_OPEN_FILE flag, the function will call open_exec on the

[PATCH 5.11 720/775] mei: me: add adler lake point LP DID

2021-03-01 Thread Greg Kroah-Hartman
From: Alexander Usyskin commit 930c922a987a02936000f15ea62988b7a39c27f5 upstream. Add Adler Lake LP device id. Cc: Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler Link: https://lore.kernel.org/r/20210129120752.850325-7-tomas.wink...@intel.com Signed-off-by: Greg Kroah-Hartman

[PATCH 5.11 694/775] mtd: spi-nor: sfdp: Fix wrong erase type bitmask for overlaid region

2021-03-01 Thread Greg Kroah-Hartman
From: Takahiro Kuwano commit abdf5a5ef9652bad4d58058bc22ddf23543ba3e1 upstream. At the time spi_nor_region_check_overlay() is called, the erase types are sorted in ascending order of erase size. The 'erase_type' should be masked with 'BIT(erase[i].idx)' instead of 'BIT(i)'. Fixes: b038e8e3be72

[PATCH 5.11 719/775] mei: me: add adler lake point S DID

2021-03-01 Thread Greg Kroah-Hartman
From: Alexander Usyskin commit f7545efaf7950b240de6b8a20b9c3ffd7278538e upstream. Add Adler Lake S device id. Cc: Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler Link: https://lore.kernel.org/r/20210129120752.850325-6-tomas.wink...@intel.com Signed-off-by: Greg Kroah-Hartman

[PATCH 5.11 717/775] mei: fix transfer over dma with extended header

2021-03-01 Thread Greg Kroah-Hartman
From: Alexander Usyskin commit 1309ecc90f16ee9cc3077761e7f4474369747e6e upstream. The size in header field for packet transferred over DMA includes size of the extended header. Include extended header in size check. Add size and sanity checks on extended header. Cc: # v5.10+ Signed-off-by:

[PATCH 5.11 718/775] mei: me: emmitsburg workstation DID

2021-03-01 Thread Greg Kroah-Hartman
From: Tomas Winkler commit 372726cb3957dbd69ded9a4e3419d5c6c3bc648e upstream. Add Emmitsburg workstation DID. Cc: Signed-off-by: Tomas Winkler Link: https://lore.kernel.org/r/20210129120752.850325-5-tomas.wink...@intel.com Signed-off-by: Greg Kroah-Hartman --- drivers/misc/mei/hw-me-regs.h

[PATCH 5.11 716/775] mei: bus: block send with vtag on non-conformat FW

2021-03-01 Thread Greg Kroah-Hartman
From: Alexander Usyskin commit b398d53cd421454d64850f8b1f6d609ede9042d9 upstream. Block data send with vtag if either transport layer or FW client are not supporting vtags. Cc: # v5.10+ Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler Link:

[PATCH 5.11 715/775] spmi: spmi-pmic-arb: Fix hw_irq overflow

2021-03-01 Thread Greg Kroah-Hartman
From: Subbaraman Narayanamurthy commit d19db80a366576d3ffadf2508ed876b4c1faf959 upstream. Currently, when handling the SPMI summary interrupt, the hw_irq number is calculated based on SID, Peripheral ID, IRQ index and APID. This is then passed to irq_find_mapping() to see if a mapping exists

[PATCH 5.11 714/775] powerpc/32s: Add missing call to kuep_lock on syscall entry

2021-03-01 Thread Greg Kroah-Hartman
From: Christophe Leroy commit 57fdfbce89137ae85cd5cef48be168040a47dd13 upstream. Userspace Execution protection and fast syscall entry were implemented independently from each other and were both merged in kernel 5.2, leading to syscall entry missing userspace execution protection. On syscall

[PATCH 5.11 711/775] mmc: sdhci-pci-o2micro: Bug fix for SDR104 HW tuning failure

2021-03-01 Thread Greg Kroah-Hartman
From: Shirley Her commit 1ad9f88014ae1d5abccb6fe930bc4c5c311bdc05 upstream. Force chip enter L0 power state during SDR104 HW tuning to avoid tuning failure Signed-off-by: Shirley Her Link: https://lore.kernel.org/r/20210206014051.3418-1-shirley@bayhubtech.com Fixes: 7b7d897e8898 ("mmc:

[PATCH 5.11 713/775] powerpc/kexec_file: fix FDT size estimation for kdump kernel

2021-03-01 Thread Greg Kroah-Hartman
From: Hari Bathini commit 2377c92e37fe97bc5b365f55cf60f56dfc4849f5 upstream. On systems with large amount of memory, loading kdump kernel through kexec_file_load syscall may fail with the below error: "Failed to update fdt with linux,drconf-usable-memory property" This happens because the

[PATCH 5.11 712/775] powerpc/32: Preserve cr1 in exception prolog stack check to fix build error

2021-03-01 Thread Greg Kroah-Hartman
From: Christophe Leroy commit 3642eb21256a317ac14e9ed560242c6d20cf06d9 upstream. THREAD_ALIGN_SHIFT = THREAD_SHIFT + 1 = PAGE_SHIFT + 1 Maximum PAGE_SHIFT is 18 for 256k pages so THREAD_ALIGN_SHIFT is 19 at the maximum. No need to clobber cr1, it can be preserved when moving r1 into CR when we

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