[PATCH 4.19 118/133] intel_th: pci: Add Tiger Lake PCH-H support

2020-07-20 Thread Greg Kroah-Hartman
From: Alexander Shishkin commit 6227585dc7b6a5405fc08dc322f98cb95e2f0eb4 upstream. This adds support for the Trace Hub in Tiger Lake PCH-H. Signed-off-by: Alexander Shishkin Reviewed-by: Andy Shevchenko Cc: sta...@vger.kernel.org # v4.14+ Link: https://lore.kernel.org/r/20200706161339.55468-

[PATCH 4.19 121/133] dmaengine: fsl-edma: Fix NULL pointer exception in fsl_edma_tx_handler

2020-07-20 Thread Greg Kroah-Hartman
From: Krzysztof Kozlowski commit f5e5677c420346b4e9788051c2e4d750996c428c upstream. NULL pointer exception happens occasionally on serial output initiated by login timeout. This was reproduced only if kernel was built with significant debugging options and EDMA driver is used with serial consol

[PATCH 4.19 131/133] libceph: dont omit recovery_deletes in target_copy()

2020-07-20 Thread Greg Kroah-Hartman
From: Ilya Dryomov commit 2f3fead62144002557f322c2a7c15e1255df0653 upstream. Currently target_copy() is used only for sending linger pings, so this doesn't come up, but generally omitting recovery_deletes can result in unneeded resends (force_resend in calc_target()). Fixes: ae78dd8139ce ("libc

[PATCH v4 00/24] seqlock: Extend seqcount API with associated locks

2020-07-20 Thread Ahmed S. Darwish
Hi, This is v4 of the seqlock patch series: [PATCH v1 00/25] https://lore.kernel.org/lkml/20200519214547.352050-1-a.darw...@linutronix.de [PATCH v2 00/06] (bugfixes-only, merged) https://lore.kernel.org/lkml/20200603144949.1122421-1-a.darw...@linutronix.de [PATCH v2 00/18] htt

[PATCH 4.19 129/133] genirq/affinity: Handle affinity setting on inactive interrupts correctly

2020-07-20 Thread Greg Kroah-Hartman
From: Thomas Gleixner commit baedb87d1b53532f81b4bd0387f83b05d4f7eb9a upstream. Setting interrupt affinity on inactive interrupts is inconsistent when hierarchical irq domains are enabled. The core code should just store the affinity and not call into the irq chip driver for inactive interrupts

[PATCH 4.19 103/133] ovl: inode reference leak in ovl_is_inuse true case.

2020-07-20 Thread Greg Kroah-Hartman
From: youngjun commit 24f14009b8f1754ec2ae4c168940c01259b0f88a upstream. When "ovl_is_inuse" true case, trap inode reference not put. plus adding the comment explaining sequence of ovl_is_inuse after ovl_setup_trap. Fixes: 0be0bfd2de9d ("ovl: fix regression caused by overlapping layers detect

[PATCH v4 02/24] seqlock: Properly format kernel-doc code samples

2020-07-20 Thread Ahmed S. Darwish
Align the code samples and note sections inside kernel-doc comments with tabs. This way they can be properly parsed and rendered by Sphinx. It also makes the code samples easier to read from text editors. Signed-off-by: Ahmed S. Darwish --- include/linux/seqlock.h | 108 +

[PATCH 4.19 100/133] virt: vbox: Fix guest capabilities mask check

2020-07-20 Thread Greg Kroah-Hartman
From: Hans de Goede commit 59d1d2e8e1e7c50d2657d5e4812b53f71f507968 upstream. Check the passed in capabilities against VMMDEV_GUEST_CAPABILITIES_MASK instead of against VMMDEV_EVENT_VALID_EVENT_MASK. This tightens the allowed mask from 0x7ff to 0x7. Fixes: 0ba002bc4393 ("virt: Add vboxguest dri

[PATCH 4.19 104/133] ovl: relax WARN_ON() when decoding lower directory file handle

2020-07-20 Thread Greg Kroah-Hartman
From: Amir Goldstein commit 124c2de2c0aee96271e4ddab190083d8aa7aa71a upstream. Decoding a lower directory file handle to overlay path with cold inode/dentry cache may go as follows: 1. Decode real lower file handle to lower dir path 2. Check if lower dir is indexed (was copied up) 3. If indexed

[PATCH 5.4 001/215] crypto: atmel - Fix selection of CRYPTO_AUTHENC

2020-07-20 Thread Greg Kroah-Hartman
From: Tudor Ambarus commit d158367682cd822aca811971e988be6a8d8f679f upstream. The following error is raised when CONFIG_CRYPTO_DEV_ATMEL_AES=y and CONFIG_CRYPTO_DEV_ATMEL_AUTHENC=m: drivers/crypto/atmel-aes.o: In function `atmel_aes_authenc_setkey': atmel-aes.c:(.text+0x9bc): undefined reference

[PATCH 4.19 106/133] fuse: Fix parameter for FS_IOC_{GET,SET}FLAGS

2020-07-20 Thread Greg Kroah-Hartman
From: Chirantan Ekbote commit 31070f6ccec09f3bd4f1e28cd1e592fa4f3ba0b6 upstream. The ioctl encoding for this parameter is a long but the documentation says it should be an int and the kernel drivers expect it to be an int. If the fuse driver treats this as a long it might end up scribbling over

[PATCH 5.4 016/215] sched: consistently handle layer3 header accesses in the presence of VLANs

2020-07-20 Thread Greg Kroah-Hartman
From: "Toke H�iland-J�rgensen" [ Upstream commit d7bf2ebebc2bd61ab95e2a8e33541ef282f303d4 ] There are a couple of places in net/sched/ that check skb->protocol and act on the value there. However, in the presence of VLAN tags, the value stored in skb->protocol can be inconsistent based on whethe

[PATCH 5.4 018/215] tcp: make sure listeners dont initialize congestion-control state

2020-07-20 Thread Greg Kroah-Hartman
From: Christoph Paasch [ Upstream commit ce69e563b325f620863830c246a8698ccea52048 ] syzkaller found its way into setsockopt with TCP_CONGESTION "cdg". tcp_cdg_init() does a kcalloc to store the gradients. As sk_clone_lock just copies all the memory, the allocated pointer will be copied as well,

[PATCH 5.4 010/215] l2tp: remove skb_dst_set() from l2tp_xmit_skb()

2020-07-20 Thread Greg Kroah-Hartman
From: Xin Long [ Upstream commit 27d53323664c549b5bb2dfaaf6f7ad6e0376a64e ] In the tx path of l2tp, l2tp_xmit_skb() calls skb_dst_set() to set skb's dst. However, it will eventually call inet6_csk_xmit() or ip_queue_xmit() where skb's dst will be overwritten by: skb_dst_set_noref(skb, dst);

[PATCH 5.4 017/215] tcp: fix SO_RCVLOWAT possible hangs under high mem pressure

2020-07-20 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit ba3bb0e76ccd464bb5a1941fabe55dadb3ba ] Whenever tcp_try_rmem_schedule() returns an error, we are under trouble and should make sure to wakeup readers so that they can drain socket queues and eventually make room. Fixes: 03f45c883c6f ("tcp: avoid extra wa

[PATCH v4 09/24] seqlock: Extend seqcount API with associated locks

2020-07-20 Thread Ahmed S. Darwish
A sequence counter write side critical section must be protected by some form of locking to serialize writers. If the serialization primitive is not disabling preemption implicitly, preemption has to be explicitly disabled before entering the write side critical section. There is no built-in debug

[PATCH 5.4 028/215] arm64: arch_timer: Allow an workaround descriptor to disable compat vdso

2020-07-20 Thread Greg Kroah-Hartman
From: Marc Zyngier commit c1fbec4ac0d701f350a581941d35643d5a9cd184 upstream. As we are about to disable the vdso for compat tasks in some circumstances, let's allow a workaround descriptor to express exactly that. Signed-off-by: Marc Zyngier Acked-by: Mark Rutland Cc: sta...@vger.kernel.org L

[PATCH v4 05/24] seqlock: Add kernel-doc for seqcount_t and seqlock_t APIs

2020-07-20 Thread Ahmed S. Darwish
seqlock.h is now included by kernel's RST documentation, but a small number of the the exported seqlock.h functions are kernel-doc annotated. Add kernel-doc for all seqlock.h exported APIs. Signed-off-by: Ahmed S. Darwish --- include/linux/seqlock.h | 425 ---

[PATCH 5.4 011/215] llc: make sure applications use ARPHRD_ETHER

2020-07-20 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit a9b1110162357689a34992d5c925852948e5b9fd ] syzbot was to trigger a bug by tricking AF_LLC with non sensible addr->sllc_arphrd It seems clear LLC requires an Ethernet device. Back in commit abf9d537fea2 ("llc: add support for SO_BINDTODEVICE") Octavian Purdi

[PATCH 5.4 025/215] cgroup: Fix sock_cgroup_data on big-endian.

2020-07-20 Thread Greg Kroah-Hartman
From: Cong Wang [ Upstream commit 14b032b8f8fce03a546dcf365454bec8c4a58d7d ] In order for no_refcnt and is_data to be the lowest order two bits in the 'val' we have to pad out the bitfield of the u8. Fixes: ad0f75e5f57c ("cgroup: fix cgroup_sk_alloc() for sk_clone_lock()") Reported-by: Guenter

[PATCH v4 06/24] seqlock: Implement raw_seqcount_begin() in terms of raw_read_seqcount()

2020-07-20 Thread Ahmed S. Darwish
raw_seqcount_begin() has the same code as raw_read_seqcount(), with the exception of masking the sequence counter's LSB before returning it to the caller. Note, raw_seqcount_begin() masks the counter's LSB before returning it to the caller so that read_seqcount_retry() can fail if the counter is o

[PATCH 5.4 012/215] net: Added pointer check for dst->ops->neigh_lookup in dst_neigh_lookup_skb

2020-07-20 Thread Greg Kroah-Hartman
From: Martin Varghese [ Upstream commit 394de110a73395de2ca4516b0de435e91b11b604 ] The packets from tunnel devices (eg bareudp) may have only metadata in the dst pointer of skb. Hence a pointer check of neigh_lookup is needed in dst_neigh_lookup_skb Kernel crashes when packets from bareudp devi

[PATCH v4 04/24] seqlock: Reorder seqcount_t and seqlock_t API definitions

2020-07-20 Thread Ahmed S. Darwish
The seqlock.h seqcount_t and seqlock_t API definitions are presented in the chronological order of their development rather than the order that makes most sense to readers. This makes it hard to follow and understand the header file code. Group and reorder all of the exported seqlock.h functions a

[PATCH v4 08/24] seqlock: lockdep assert non-preemptibility on seqcount_t write

2020-07-20 Thread Ahmed S. Darwish
Preemption must be disabled before entering a sequence count write side critical section. Failing to do so, the seqcount read side can preempt the write side section and spin for the entire scheduler tick. If that reader belongs to a real-time scheduling class, it can spin forever and the kernel

[PATCH 5.4 020/215] tcp: md5: do not send silly options in SYNCOOKIES

2020-07-20 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit e114e1e8ac9d31f25b9dd873bab5d80c1fc482ca ] Whenever cookie_init_timestamp() has been used to encode ECN,SACK,WSCALE options, we can not remove the TS option in the SYNACK. Otherwise, tcp_synack_options() will still advertize options like WSCALE that we can n

[PATCH 5.4 024/215] cgroup: fix cgroup_sk_alloc() for sk_clone_lock()

2020-07-20 Thread Greg Kroah-Hartman
From: Cong Wang [ Upstream commit ad0f75e5f57ccbceec13274e1e242f2b5a6397ed ] When we clone a socket in sk_clone_lock(), its sk_cgrp_data is copied, so the cgroup refcnt must be taken too. And, unlike the sk_alloc() path, sock_update_netprioidx() is not called here. Therefore, it is safe and nece

[PATCH v4 24/24] hrtimer: Use sequence counter with associated raw spinlock

2020-07-20 Thread Ahmed S. Darwish
A sequence counter write side critical section must be protected by some form of locking to serialize writers. A plain seqcount_t does not contain the information of which lock must be held when entering a write side critical section. Use the new seqcount_raw_spinlock_t data type, which allows to

[PATCH 5.4 050/215] iio: mma8452: Add missed iio_device_unregister() call in mma8452_probe()

2020-07-20 Thread Greg Kroah-Hartman
From: Chuhong Yuan commit d7369ae1f4d7cffa7574d15e1f787dcca184c49d upstream. The function iio_device_register() was called in mma8452_probe(). But the function iio_device_unregister() was not called after a call of the function mma8452_set_freefall_mode() failed. Thus add the missed function cal

[PATCH 5.4 045/215] arm64/alternatives: dont patch up internal branches

2020-07-20 Thread Greg Kroah-Hartman
From: Ard Biesheuvel [ Upstream commit 5679b28142193a62f6af93249c0477be9f0c669b ] Commit f7b93d42945c ("arm64/alternatives: use subsections for replacement sequences") moved the alternatives replacement sequences into subsections, in order to keep the as close as possible to the code that they r

[PATCH v4 21/24] NFSv4: Use sequence counter with associated spinlock

2020-07-20 Thread Ahmed S. Darwish
A sequence counter write side critical section must be protected by some form of locking to serialize writers. A plain seqcount_t does not contain the information of which lock must be held when entering a write side critical section. Use the new seqcount_spinlock_t data type, which allows to asso

[PATCH 5.4 044/215] i2c: eg20t: Load module automatically if ID matches

2020-07-20 Thread Greg Kroah-Hartman
From: Andy Shevchenko [ Upstream commit 5f90786b31fb7d1e199a8999d46c4e3aea672e11 ] The driver can't be loaded automatically because it misses module alias to be provided. Add corresponding MODULE_DEVICE_TABLE() call to the driver. Signed-off-by: Andy Shevchenko Signed-off-by: Wolfram Sang Sig

[PATCH 5.4 031/215] drm/msm/dpu: allow initialization of encoder locks during encoder init

2020-07-20 Thread Greg Kroah-Hartman
From: Krishna Manikandan [ Upstream commit 2e7ec6b5297157efabb50e5f82adc628cf90296c ] In the current implementation, mutex initialization for encoder mutex locks are done during encoder setup. This can lead to scenarios where the lock is used before it is initialized. Move mutex_init to dpu_enco

Re: [Freedreno] arm64: Internal error: Oops: qcom_iommu_tlb_inv_context free_io_pgtable_ops on db410c

2020-07-20 Thread Rob Clark
On Mon, Jul 20, 2020 at 4:28 AM Robin Murphy wrote: > > On 2020-07-20 08:17, Arnd Bergmann wrote: > > On Mon, Jul 20, 2020 at 8:36 AM Naresh Kamboju > > wrote: > >> > >> This kernel oops while boot linux mainline kernel on arm64 db410c device. > >> > >> metadata: > >>git branch: master > >>

[PATCH v4 19/24] raid5: Use sequence counter with associated spinlock

2020-07-20 Thread Ahmed S. Darwish
A sequence counter write side critical section must be protected by some form of locking to serialize writers. A plain seqcount_t does not contain the information of which lock must be held when entering a write side critical section. Use the new seqcount_spinlock_t data type, which allows to asso

[PATCH 5.4 029/215] arm64: arch_timer: Disable the compat vdso for cores affected by ARM64_WORKAROUND_1418040

2020-07-20 Thread Greg Kroah-Hartman
From: Marc Zyngier commit 4b661d6133c5d3a7c9aca0b4ee5a78c7766eff3f upstream. ARM64_WORKAROUND_1418040 requires that AArch32 EL0 accesses to the virtual counter register are trapped and emulated by the kernel. This makes the vdso pretty pointless, and in some cases livelock prone. Provide a work

[PATCH 5.4 048/215] iio: magnetometer: ak8974: Fix runtime PM imbalance on error

2020-07-20 Thread Greg Kroah-Hartman
From: Dinghao Liu commit 0187294d227dfc42889e1da8f8ce1e44fc25f147 upstream. When devm_regmap_init_i2c() returns an error code, a pairing runtime PM usage counter decrement is needed to keep the counter balanced. For error paths after ak8974_set_power(), ak8974_detect() and ak8974_reset(), things

[PATCH 5.4 008/215] ipv6: fib6_select_path can not use out path for nexthop objects

2020-07-20 Thread Greg Kroah-Hartman
From: David Ahern [ Upstream commit 34fe5a1cf95c3f114068fc16d919c9cf4b00e428 ] Brian reported a crash in IPv6 code when using rpfilter with a setup running FRR and external nexthop objects. The root cause of the crash is fib6_select_path setting fib6_nh in the result to NULL because of an improp

[PATCH 5.4 051/215] iio: pressure: zpa2326: handle pm_runtime_get_sync failure

2020-07-20 Thread Greg Kroah-Hartman
From: Navid Emamdoost commit d88de040e1df38414fc1e4380be9d0e997ab4d58 upstream. Calling pm_runtime_get_sync increments the counter even in case of failure, causing incorrect ref count. Call pm_runtime_put if pm_runtime_get_sync fails. Signed-off-by: Navid Emamdoost Fixes: 03b262f2bbf4 ("iio:pr

[PATCH v4 18/24] vfs: Use sequence counter with associated spinlock

2020-07-20 Thread Ahmed S. Darwish
A sequence counter write side critical section must be protected by some form of locking to serialize writers. A plain seqcount_t does not contain the information of which lock must be held when entering a write side critical section. Use the new seqcount_spinlock_t data type, which allows to asso

[PATCH 5.4 003/215] net: atlantic: fix ip dst and ipv6 address filters

2020-07-20 Thread Greg Kroah-Hartman
From: Dmitry Bogdanov commit a42e6aee7f47a8a68d09923c720fc8f605a04207 upstream. This patch fixes ip dst and ipv6 address filters. There were 2 mistakes in the code, which led to the issue: * invalid register was used for ipv4 dst address; * incorrect write order of dwords for ipv6 addresses. Fi

[PATCH 5.4 004/215] net: rmnet: fix lower interface leak

2020-07-20 Thread Greg Kroah-Hartman
From: Taehee Yoo commit 2a762e9e8cd1cf1242e4269a2244666ed02eecd1 upstream. There are two types of the lower interface of rmnet that are VND and BRIDGE. Each lower interface can have only one type either VND or BRIDGE. But, there is a case, which uses both lower interface types. Due to this unexp

[PATCH 5.4 005/215] bridge: mcast: Fix MLD2 Report IPv6 payload length check

2020-07-20 Thread Greg Kroah-Hartman
From: "Linus L�ssing" [ Upstream commit 5fc6266af7b427243da24f3443a50cd4584aac06 ] Commit e57f61858b7c ("net: bridge: mcast: fix stale nsrcs pointer in igmp3/mld2 report handling") introduced a bug in the IPv6 header payload length check which would potentially lead to rejecting a valid MLD2 Rep

[PATCH 5.4 037/215] m68k: nommu: register start of the memory with memblock

2020-07-20 Thread Greg Kroah-Hartman
From: Mike Rapoport [ Upstream commit d63bd8c81d8ab64db506ffde569cc8ff197516e2 ] The m68k nommu setup code didn't register the beginning of the physical memory with memblock because it was anyway occupied by the kernel. However, commit fa3354e4ea39 ("mm: free_area_init: use maximal zone PFNs rat

[PATCH 5.4 033/215] drm/exynos: fix ref count leak in mic_pre_enable

2020-07-20 Thread Greg Kroah-Hartman
From: Navid Emamdoost [ Upstream commit d4f5a095daf0d25f0b385e1ef26338608433a4c5 ] in mic_pre_enable, pm_runtime_get_sync is called which increments the counter even in case of failure, leading to incorrect ref count. In case of failure, decrement the ref count before returning. Signed-off-by:

[PATCH 5.4 030/215] drm/msm: fix potential memleak in error branch

2020-07-20 Thread Greg Kroah-Hartman
From: Bernard Zhao [ Upstream commit 177d3819633cd520e3f95df541a04644aab4c657 ] In function msm_submitqueue_create, the queue is a local variable, in return -EINVAL branch, queue didn`t add to ctx`s list yet, and also didn`t kfree, this maybe bring in potential memleak. Signed-off-by: Bernard Z

[PATCH 5.4 072/215] drm/sun4i: tcon: Separate quirks for tcon0 and tcon1 on A20

2020-07-20 Thread Greg Kroah-Hartman
From: Andrey Lebedev [ Upstream commit cd0ecabdc953397ed0378022b3b90e0c0871c2eb ] Timing controllers on A20 are not equivalent: tcon0 on A20 supports LVDS output and tcon1 does not. Separate the capabilities by introducing independent set of quirks for each of the tcons. Signed-off-by: Andrey L

[PATCH 5.4 059/215] net: ethernet: mvneta: Do not error out in non serdes modes

2020-07-20 Thread Greg Kroah-Hartman
From: Sascha Hauer [ Upstream commit d3d239dcb8aae6d7b10642d292b404e57604f7ea ] In mvneta_config_interface() the RGMII modes are catched by the default case which is an error return. The RGMII modes are valid modes for the driver, so instead of returning an error add a break statement to return

[PATCH 5.4 054/215] iio:health:afe4403 Fix timestamp alignment and prevent data leak.

2020-07-20 Thread Greg Kroah-Hartman
From: Jonathan Cameron commit 3f9c6d38797e9903937b007a341dad0c251765d6 upstream. One of a class of bugs pointed out by Lars in a recent review. iio_push_to_buffers_with_timestamp assumes the buffer used is aligned to the size of the timestamp (8 bytes). This is not guaranteed in this driver whi

[PATCH 5.4 036/215] blk-mq-debugfs: update blk_queue_flag_name[] accordingly for new flags

2020-07-20 Thread Greg Kroah-Hartman
From: Hou Tao [ Upstream commit bfe373f608cf81b7626dfeb904001b0e867c5110 ] Else there may be magic numbers in /sys/kernel/debug/block/*/state. Signed-off-by: Hou Tao Reviewed-by: Bart Van Assche Signed-off-by: Jens Axboe Signed-off-by: Sasha Levin --- block/blk-mq-debugfs.c | 3 +++ includ

[PATCH 5.4 074/215] bus: ti-sysc: Rename clk related quirks to pre_reset and post_reset quirks

2020-07-20 Thread Greg Kroah-Hartman
From: Tony Lindgren [ Upstream commit e64c021fd92467e34b9d970a651bcaa8f326f3f2 ] The clk_disable_quirk and clk_enable_quirk should really be called pre_reset_quirk and post_reset_quirk to avoid confusion like we had with hdq1w reset. Let's also rename the related functions so the code is easier

[PATCH 5.4 058/215] net: macb: call pm_runtime_put_sync on failure path

2020-07-20 Thread Greg Kroah-Hartman
[ Upstream commit 0eaf228d574bd82a9aed73e3953bfb81721f4227 ] Call pm_runtime_put_sync() on failure path of at91ether_open. Fixes: e6a41c23df0d ("net: macb: ensure interface is not suspended on at91rm9200") Signed-off-by: Claudiu Beznea Signed-off-by: David S. Miller Signed-off-by: Sasha Levin

[PATCH 5.4 043/215] gfs2: read-only mounts should grab the sd_freeze_gl glock

2020-07-20 Thread Greg Kroah-Hartman
From: Bob Peterson [ Upstream commit b780cc615ba4795a7ef0e93b19424828a5ad456a ] Before this patch, only read-write mounts would grab the freeze glock in read-only mode, as part of gfs2_make_fs_rw. So the freeze glock was never initialized. That meant requests to freeze, which request the glock i

[PATCH 5.4 063/215] Revert "usb/xhci-plat: Set PM runtime as active on resume"

2020-07-20 Thread Greg Kroah-Hartman
This reverts commit 57a1cd87efb9279ab58aae2e5c41920150e31873. Eugeniu Rosca writes: On Thu, Jul 09, 2020 at 09:00:23AM +0200, Eugeniu Rosca wrote: >After integrating v4.14.186 commit 5410d158ca2a50 ("usb/ehci-platform: >Set PM runtime as active on resume") into downstream v4.14.x, we started >to

[PATCH 5.4 039/215] dt-bindings: mailbox: zynqmp_ipi: fix unit address

2020-07-20 Thread Greg Kroah-Hartman
From: Kangmin Park [ Upstream commit 35b9c0fdb9f28ecda02b1fc44306933a2d97 ] Fix unit address to match the first address specified in the reg property of the node in example. Signed-off-by: Kangmin Park Link: https://lore.kernel.org/r/20200625135158.5861-1-l4stpr0g...@gmail.com Signed-off-b

[PATCH 5.4 060/215] net: ethernet: mvneta: Add back interface mode validation

2020-07-20 Thread Greg Kroah-Hartman
From: Sascha Hauer [ Upstream commit 41c2b6b4f0f807803bb49f65835d136941a70f85 ] When writing the serdes configuration register was moved to mvneta_config_interface() the whole code block was removed from mvneta_port_power_up() in the assumption that its only purpose was to write the serdes confi

[PATCH 5.4 057/215] of: of_mdio: Correct loop scanning logic

2020-07-20 Thread Greg Kroah-Hartman
From: Florian Fainelli [ Upstream commit 5a8d7f126c97d04d893f5e5be2b286437a0d01b0 ] Commit 209c65b61d94 ("drivers/of/of_mdio.c:fix of_mdiobus_register()") introduced a break of the loop on the premise that a successful registration should exit the loop. The premise is correct but not to code, be

[PATCH 5.4 061/215] Revert "usb/ohci-platform: Fix a warning when hibernating"

2020-07-20 Thread Greg Kroah-Hartman
This reverts commit fbf719e5da126c6b391ea7b1f38d4493582d8aaf. Eugeniu Rosca writes: On Thu, Jul 09, 2020 at 09:00:23AM +0200, Eugeniu Rosca wrote: >After integrating v4.14.186 commit 5410d158ca2a50 ("usb/ehci-platform: >Set PM runtime as active on resume") into downstream v4.14.x, we started >to

[PATCH 5.4 073/215] scsi: sr: remove references to BLK_DEV_SR_VENDOR, leave it enabled

2020-07-20 Thread Greg Kroah-Hartman
From: Diego Elio Pettenò [ Upstream commit 679b2ec8e060ca7a90441aff5e7d384720a41b76 ] This kernel configuration is basically enabling/disabling sr driver quirks detection. While these quirks are for fairly rare devices (very old CD burners, and a glucometer), the additional detection of these mo

[PATCH 5.4 080/215] ALSA: usb-audio: Add support for MOTU MicroBook IIc

2020-07-20 Thread Greg Kroah-Hartman
From: Alexander Tsoy [ Upstream commit 2edb84e3047b93da2f2b234219cdc304df042d9e ] MicroBook IIc operates in UAC2 mode by default. This patch addresses several issues with it: - MicroBook II and IIc shares the same USB ID. We can distinguish them by interface class. - MaxPacketsOnly attribute

[PATCH 5.4 034/215] x86/fpu: Reset MXCSR to default in kernel_fpu_begin()

2020-07-20 Thread Greg Kroah-Hartman
From: Petteri Aimonen [ Upstream commit 7ad816762f9bf89e940e618ea40c43138b479e10 ] Previously, kernel floating point code would run with the MXCSR control register value last set by userland code by the thread that was active on the CPU core just before kernel call. This could affect calculation

[PATCH 5.4 081/215] Input: goodix - fix touch coordinates on Cube I15-TC

2020-07-20 Thread Greg Kroah-Hartman
From: Sergei A. Trusov [ Upstream commit 1dd5ddc125b4625c3beb8e644ae872445d739bbc ] The touchscreen on the Cube I15-TC don't match the default display, with 0,0 touches being reported when touching at the top-right of the screen. Add a quirk to invert the x coordinate. Reported-and-tested-by:

[PATCH 5.4 075/215] bus: ti-sysc: Consider non-existing registers too when matching quirks

2020-07-20 Thread Greg Kroah-Hartman
From: Tony Lindgren [ Upstream commit 590e15c76f1231329d1543570a54058dba2e4ff6 ] We are currently setting -1 for non-existing sysconfig related registers for quirks, but setting -ENODEV elsewhere. And for matching the quirks, we're now just ignoring the non-existing registers. This will cause is

[PATCH 04/24] fs: move the putname from filename_create to the callers

2020-07-20 Thread Christoph Hellwig
This allows reusing the struct filename for retries, and will also allow pushing the getname up the stack for a few places to allower for better handling of kernel space filenames. Signed-off-by: Christoph Hellwig --- fs/namei.c | 16 1 file changed, 12 insertions(+), 4 deletion

[PATCH 05/24] fs: move the putname from filename_lookup to the callers

2020-07-20 Thread Christoph Hellwig
This allows reusing the struct filename for retries, and will also allow pushing the getname up the stack for a few places to allower for better handling of kernel space filenames. Signed-off-by: Christoph Hellwig --- fs/fs_parser.c | 1 + fs/namei.c | 28 2 fil

Re: [PATCH net] net: bcmgenet: add missed clk_disable_unprepare in bcmgenet_probe

2020-07-20 Thread Doug Berger
On 7/20/2020 2:36 AM, Zhang Changzhong wrote: > The driver forgets to call clk_disable_unprepare() in error path after > a success calling for clk_prepare_enable(). > > Fix to goto err_clk_disable if clk_prepare_enable() is successful. > > Fixes: c80d36ff63a5 ("net: bcmgenet: Use devm_clk_get_opt

[PATCH 16/24] fs: add a kern_symlink helper

2020-07-20 Thread Christoph Hellwig
Add a simple helper perform a symlink with a kernel space file name and use it in the early init code instead of relying on the implicit set_fs(KERNEL_DS) there. To do so push the getname from do_symlinkat into the callers. Remove the now unused ksys_symlink. Signed-off-by: Christoph Hellwig --

[PATCH 11/24] fs: add a kern_chmod helper

2020-07-20 Thread Christoph Hellwig
Add a simple helper to chown with a kernel space name and use it in the early init code instead of relying on the implicit set_fs(KERNEL_DS) there. Remove the now unused ksys_chmod. Signed-off-by: Christoph Hellwig --- fs/internal.h| 1 - fs/open.c| 28 +

[PATCH 08/24] fs: add a kern_access helper

2020-07-20 Thread Christoph Hellwig
Add a simple helper for a access with a kernelspace name and use it in the early init code instead of relying on the implicit set_fs(KERNEL_DS) there. Remove the now unused ksys_access. Signed-off-by: Christoph Hellwig --- fs/open.c| 37 + inc

[PATCH 12/24] fs: add a kern_utimes helper

2020-07-20 Thread Christoph Hellwig
Add a simple helper to set timestamps with a kernel space name and use it in the early init code instead of relying on the implicit set_fs(KERNEL_DS) there. Signed-off-by: Christoph Hellwig --- fs/utimes.c| 19 ++- include/linux/fs.h | 1 + init/initramfs.c | 2 +- 3

[PATCH 5.4 097/215] arm64: dts: meson: add missing gxl rng clock

2020-07-20 Thread Greg Kroah-Hartman
From: Jerome Brunet [ Upstream commit 95ca6f06dd4827ff63be5154120c7a8511cd9a41 ] The peripheral clock of the RNG is missing for gxl while it is present for gxbb. Fixes: 1b3f6d148692 ("ARM64: dts: meson-gx: add clock CLKID_RNG0 to hwrng node") Signed-off-by: Jerome Brunet Signed-off-by: Kevin H

[PATCH 5.4 117/215] keys: asymmetric: fix error return code in software_key_query()

2020-07-20 Thread Greg Kroah-Hartman
From: Wei Yongjun [ Upstream commit 6cbba1f9114a8134cff9138c79add15012fd52b9 ] Fix to return negative error code -ENOMEM from kmalloc() error handling case instead of 0, as done elsewhere in this function. Fixes: f1774cb8956a ("X.509: parse public key parameters from x509 for akcipher") Signed

[PATCH 5.4 107/215] staging: comedi: verify array index is correct before using it

2020-07-20 Thread Greg Kroah-Hartman
From: Dan Carpenter [ Upstream commit ef75e14a6c935eec82abac07ab68e388514e39bc ] This code reads from the array before verifying that "trig" is a valid index. If the index is wildly out of bounds then reading from an invalid address could lead to an Oops. Fixes: a8c66b684efa ("staging: comedi:

[PATCH 5.4 112/215] ARM: dts: Fix dcan driver probe failed on am437x platform

2020-07-20 Thread Greg Kroah-Hartman
From: dillon min [ Upstream commit 2a4117df9b436a0e4c79d211284ab2097bcd00dc ] Got following d_can probe errors with kernel 5.8-rc1 on am437x [ 10.730822] CAN device driver interface Starting Wait for Network to be Configured... [ OK ] Reached target Network. [ 10.787363] c_can_platform 48

[PATCH 5.4 109/215] clk: AST2600: Add mux for EMMC clock

2020-07-20 Thread Greg Kroah-Hartman
From: Eddie James [ Upstream commit c2407ab3bd55064d459bc822efd1c134e852798c ] The EMMC clock can be derived from either the HPLL or the MPLL. Register a clock mux so that the rate is calculated correctly based upon the parent. Signed-off-by: Eddie James Reviewed-by: Andrew Jeffery Link: http

[PATCH 5.4 096/215] phy: sun4i-usb: fix dereference of pointer phy0 before it is null checked

2020-07-20 Thread Greg Kroah-Hartman
From: Colin Ian King [ Upstream commit 38b1927e5bf9bcad4a2e33189ef1c5569f9599ba ] Currently pointer phy0 is being dereferenced via the assignment of phy on the call to phy_get_drvdata before phy0 is null checked, this can lead to a null pointer dereference. Fix this by performing the null check

[PATCH 5.4 114/215] xprtrdma: fix incorrect header size calculations

2020-07-20 Thread Greg Kroah-Hartman
From: Colin Ian King [ Upstream commit 912288442cb2f431bf3c8cb097a5de83bc6dbac1 ] Currently the header size calculations are using an assignment operator instead of a += operator when accumulating the header size leading to incorrect sizes. Fix this by using the correct operator. Addresses-Cov

[PATCH 18/24] fs: add a kern_rmdir helper

2020-07-20 Thread Christoph Hellwig
Add a simple helper to rmdir with a kernel space file name and switch the early init code over to it. Remove the now unused ksys_rmdir. Signed-off-by: Christoph Hellwig --- fs/internal.h| 1 - fs/namei.c | 17 ++--- include/linux/fs.h | 1 + include

[PATCH 5.4 071/215] ARM: at91: pm: add quirk for sam9x60s ulp1

2020-07-20 Thread Greg Kroah-Hartman
From: Claudiu Beznea [ Upstream commit bb1a0e87e1c54cd884e9b92b1cec06b186edc7a0 ] On SAM9X60 2 nop operations has to be introduced after setting WAITMODE bit in CKGR_MOR. Signed-off-by: Claudiu Beznea Signed-off-by: Alexandre Belloni Link: https://lore.kernel.org/r/1579522208-19523-9-git-sen

[PATCH 5.4 111/215] fuse: dont ignore errors from fuse_writepages_fill()

2020-07-20 Thread Greg Kroah-Hartman
From: Vasily Averin [ Upstream commit 7779b047a57f6824a43d0e1f70de2741b7426b9d ] fuse_writepages() ignores some errors taken from fuse_writepages_fill() I believe it is a bug: if .writepages is called with WB_SYNC_ALL it should either guarantee that all data was successfully saved or return erro

[PATCH 5.4 120/215] arm: dts: mt7623: add phy-mode property for gmac2

2020-07-20 Thread Greg Kroah-Hartman
From: Sean Wang commit ff5b89c2858f28006f9f9c0a88c55a679488192c upstream. Add phy-mode property required by phylink on gmac2 Fixes: b8fc9f30821e ("net: ethernet: mediatek: Add basic PHYLINK support") Signed-off-by: Sean Wang Link: https://lore.kernel.org/r/70e3eff31ecd500ed4862d9de28325a4dbd1

[PATCH 5.4 121/215] soc: qcom: socinfo: add missing soc_id sysfs entry

2020-07-20 Thread Greg Kroah-Hartman
From: Srinivas Kandagatla commit 27a344139c186889d742764d3c2a62b395949cef upstream. Looks like SoC ID is not exported to sysfs for some reason. This patch adds it! This is mostly used by userspace libraries like Snapdragon Neural Processing Engine (SNPE) SDK for checking supported SoC info. Fi

[PATCH 5.4 067/215] ARM: OMAP2+: Add workaround for DRA7 DSP MStandby errata i879

2020-07-20 Thread Greg Kroah-Hartman
From: Suman Anna [ Upstream commit 2f14101a1d760db72393910d481fbf7768c44530 ] Errata Title: i879: DSP MStandby requires CD_EMU in SW_WKUP Description: The DSP requires the internal emulation clock to be actively toggling in order to successfully enter a low power mode via execution of the IDLE

[PATCH 17/24] fs: add a kern_unlink helper

2020-07-20 Thread Christoph Hellwig
Add a simple helper to unlink with a kernel space file name and switch the early init and coredump code over to it. Remove the now unused ksys_unlink. Signed-off-by: Christoph Hellwig --- fs/coredump.c| 2 +- fs/internal.h| 1 - fs/namei.c | 7 ++- incl

[PATCH 5.4 115/215] ARM: dts: socfpga: Align L2 cache-controller nodename with dtschema

2020-07-20 Thread Greg Kroah-Hartman
From: Krzysztof Kozlowski [ Upstream commit d7adfe5ffed9faa05f8926223086b101e14f700d ] Fix dtschema validator warnings like: l2-cache@f000: $nodename:0: 'l2-cache@f000' does not match '^(cache-controller|cpu)(@[0-9a-f,]+)*$' Fixes: 475dc86d08de ("arm: dts: socfpga: Add a ba

[PATCH 5.4 065/215] net: sfp: add some quirks for GPON modules

2020-07-20 Thread Greg Kroah-Hartman
From: Russell King [ Upstream commit b0eae33b2583dceb36224619f9fd85e6140ae594 ] Marc Micalizzi reports that Huawei MA5671A and Alcatel/Lucent G-010S-P modules are capable of 2500base-X, but incorrectly report their capabilities in the EEPROM. It seems rather common that GPON modules mis-report.

[PATCH 5.4 106/215] usb: gadget: udc: atmel: fix uninitialized read in debug printk

2020-07-20 Thread Greg Kroah-Hartman
From: Michał Mirosław [ Upstream commit 30517ffeb3bff842e1355cbc32f1959d9dbb5414 ] Fixed commit moved the assignment of 'req', but did not update a reference in the DBG() call. Use the argument as it was renamed. Fixes: 5fb694f96e7c ("usb: gadget: udc: atmel: fix possible oops when unloading m

[PATCH 5.4 108/215] clk: mvebu: ARMADA_AP_CPU_CLK needs to select ARMADA_AP_CP_HELPER

2020-07-20 Thread Greg Kroah-Hartman
From: Nathan Chancellor [ Upstream commit 8e3709d7e3a67e2d3f42bd1fc2052353a5678944 ] When building arm32 allmodconfig: ld.lld: error: undefined symbol: ap_cp_unique_name >>> referenced by ap-cpu-clk.c >>> clk/mvebu/ap-cpu-clk.o:(ap_cpu_clock_probe) in archive >>> drivers/built-in

[PATCH 24/24] fs: add a kern_stat helper

2020-07-20 Thread Christoph Hellwig
Add a simple helper to stat/lstat with a kernel space file name and switch the early init code over to it. Signed-off-by: Christoph Hellwig --- drivers/md/md-autodetect.c | 2 +- fs/stat.c | 32 ++-- include/linux/fs.h | 1 + init/initramfs.

[PATCH 5.4 101/215] bus: ti-sysc: Do not disable on suspend for no-idle

2020-07-20 Thread Greg Kroah-Hartman
From: Tony Lindgren [ Upstream commit a55de412228cc5a2b4bf8d2a09849898102633e2 ] If we have "ti,no-idle" specified for a module we must not disable the the module on suspend to keep things backwards compatible. Fixes: 386cb76681ca ("bus: ti-sysc: Handle missed no-idle property in addition to n

[PATCH 5.4 102/215] iio: adc: ad7780: Fix a resource handling path in ad7780_probe()

2020-07-20 Thread Greg Kroah-Hartman
From: Christophe JAILLET [ Upstream commit b0536f9826a5ed3328d527b4fc1686867a9f3041 ] If 'ad7780_init_gpios()' fails, we must not release some resources that have not been allocated yet. Return directly instead. Fixes: 5bb30e7daf00 ("staging: iio: ad7780: move regulator to after GPIO init") Fix

[PATCH 5.4 125/215] perf stat: Zero all the ena and run array slot stats for interval mode

2020-07-20 Thread Greg Kroah-Hartman
From: Jin Yao commit 0e0bf1ea1147fcf74eab19c2d3c853cc3740a72f upstream. As the code comments in perf_stat_process_counter() say, we calculate counter's data every interval, and the display code shows ps->res_stats avg value. We need to zero the stats for interval mode. But the current code only

Re: [PATCH net] net: bcmgenet: fix error returns in bcmgenet_probe()

2020-07-20 Thread Doug Berger
On 7/20/2020 12:18 AM, Zhang Changzhong wrote: > The driver forgets to call clk_disable_unprepare() in error path after > a success calling for clk_prepare_enable(). > > Fix to goto err_clk_disable if clk_prepare_enable() is successful. > > Fixes: 99d55638d4b0 ("net: bcmgenet: enable NETIF_F_HIGH

[PATCH 5.4 128/215] soc: qcom: rpmh-rsc: Clear active mode configuration for wake TCS

2020-07-20 Thread Greg Kroah-Hartman
From: Raju P.L.S.S.S.N commit 15b3bf61b8d48f8e0ccd9d7f1bcb468b543da396 upstream. For RSCs that have sleep & wake TCS but no dedicated active TCS, wake TCS can be re-purposed to send active requests. Once the active requests are sent and response is received, the active mode configuration needs t

[PATCH 5.4 100/215] bus: ti-sysc: Fix sleeping function called from invalid context for RTC quirk

2020-07-20 Thread Greg Kroah-Hartman
From: Tony Lindgren [ Upstream commit afe6f1eeb08f85e57f0a02b71efb5a0839606aac ] With CONFIG_DEBUG_ATOMIC_SLEEP enabled we can see the following with RTC probe: BUG: sleeping function called from invalid context at drivers/bus/ti-sysc.c:1736 ... (sysc_quirk_rtc) from [] (sysc_write_sysconfig+0x

[PATCH 5.4 104/215] dmaengine: dmatest: stop completed threads when running without set channel

2020-07-20 Thread Greg Kroah-Hartman
From: Peter Ujfalusi [ Upstream commit fd17d1abce426b4224a916a242b57be94272771b ] The completed threads were not cleared and consequent run would result threads accumulating: echo 80 > /sys/module/dmatest/parameters/test_buf_size echo 2000 > /sys/module/dmatest/parameters/timeout echo 50 >

[PATCH 5.4 103/215] dmaengine: dw: Initialize channel before each transfer

2020-07-20 Thread Greg Kroah-Hartman
From: Andy Shevchenko [ Upstream commit 99ba8b9b0d9780e9937eb1d488d120e9e5c2533d ] In some cases DMA can be used only with a consumer which does runtime power management and on the platforms, that have DMA auto power gating logic (see comments in the drivers/acpi/acpi_lpss.c), may result in DMA

[PATCH 5.4 095/215] dmaengine: sh: usb-dmac: set tx_result parameters

2020-07-20 Thread Greg Kroah-Hartman
From: Yoshihiro Shimoda [ Upstream commit 466257d9968ac79575831250b039dc07566c7b13 ] A client driver (renesas_usbhs) assumed that dmaengine_tx_status() could return the residue even if the transfer was completed. However, this was not correct usage [1] and this caused to break getting the residu

[PATCH 5.4 122/215] apparmor: ensure that dfa state tables have entries

2020-07-20 Thread Greg Kroah-Hartman
From: John Johansen commit c27c6bd2c4d6b6bb779f9b722d5607993e1d5e5c upstream. Currently it is possible to specify a state machine table with 0 length, this is not valid as optional tables are specified by not defining the table as present. Further this allows by-passing the base tables range che

[PATCH 5.4 099/215] bus: ti-sysc: Fix wakeirq sleeping function called from invalid context

2020-07-20 Thread Greg Kroah-Hartman
From: Tony Lindgren [ Upstream commit 9f9113925018d500a95df539014d9ff11ac2c02d ] With CONFIG_DEBUG_ATOMIC_SLEEP enabled we can see the following with wakeirqs and serial console idled: BUG: sleeping function called from invalid context at drivers/bus/ti-sysc.c:242 ... (sysc_wait_softreset) from

[PATCH 5.4 140/215] clk: qcom: gcc: Add GPU and NPU clocks for SM8150

2020-07-20 Thread Greg Kroah-Hartman
From: Vinod Koul commit f73a4230d5bbc8fc7e1a2479ac997f786111c7bb upstream. Add the GPU and NPU clocks for SM8150. They were missed in earlier addition of clock driver. Fixes: 2a1d7eb854bb ("clk: qcom: gcc: Add global clock controller driver for SM8150") Signed-off-by: Vinod Koul Link: https:/

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