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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[PATCH 4.9 00/61] 4.9.232-rc1 review

2020-07-30 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.9.232 release. There are 61 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Sat, 01 Aug 2020 07:44:05 +. Anything rec

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[PATCH 4.19 00/17] 4.19.136-rc1 review

2020-07-30 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.19.136 release. There are 17 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Sat, 01 Aug 2020 07:44:05 +. Anything re

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

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

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

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

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

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

[PATCH 5.7 00/20] 5.7.12-rc1 review

2020-07-30 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.7.12 release. There are 20 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Sat, 01 Aug 2020 07:44:05 +. Anything rece

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Re: [PATCH v10 4/5] arm64: kdump: fix kdump broken with ZONE_DMA reintroduced

2020-07-30 Thread chenzhou
Hi Catalin, On 2020/7/29 23:20, Catalin Marinas wrote: > On Wed, Jul 29, 2020 at 10:14:32PM +0800, chenzhou wrote: >> On 2020/7/29 19:58, Catalin Marinas wrote: >>> On Wed, Jul 29, 2020 at 11:52:39AM +0800, chenzhou wrote: How about like this: 1. For ZONE_DMA issue, use Bhupesh's soluti

Re: [RFC PATCH] arm64: defconfig: Disable fine-grained task level IRQ time accounting

2020-07-30 Thread Vladimir Oltean
On Thu, Jul 30, 2020 at 09:23:44AM +0200, Kurt Kanzenbach wrote: > Hi Vladimir, > > On Wed Jul 29 2020, Vladimir Oltean wrote: > > For more context, here is my original report of the issue: > > https://lkml.org/lkml/2020/6/4/1062 > > > > Just like you, I could not reproduce the RCU stalls and syst

Re: [PATCH v2 stable-5.4.y] Revert "dpaa_eth: fix usage as DSA master, try 3"

2020-07-30 Thread Vladimir Oltean
On Thu, Jul 30, 2020 at 09:30:13AM +0200, Greg KH wrote: > > Now queued up, thanks. > > greg k-h Thanks Greg, I was wondering whether I should be reminding you or not. -Vladimir

[PATCH] x86/purgatory: strip debug info

2020-07-30 Thread Pingfan Liu
It is useless to keep debug info in purgatory. And discarding them saves about 200K space. Original: 259080 kexec-purgatory.o Stripped: 29152 kexec-purgatory.o Signed-off-by: Pingfan Liu Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: "H. Peter Anvin" Cc: Hans de Goede Cc

Re: [PATCH 09/24] m68k: use asm-generic/mmu_context.h for no-op implementations

2020-07-30 Thread kernel test robot
Hi Nicholas, I love your patch! Yet something to improve: [auto build test ERROR on openrisc/for-next] [also build test ERROR on sparc-next/master sparc/master linus/master asm-generic/master v5.8-rc7 next-20200729] [cannot apply to nios2/for-linus xtensa/for_next] [If your patch is applied to t

[PATCH 1/2] tracing/hwlat: Drop the duplicate assignment in start_kthread()

2020-07-30 Thread Kevin Hao
We have set 'current_mask' to '&save_cpumask' in its declaration, so there is no need to assign again. Signed-off-by: Kevin Hao --- kernel/trace/trace_hwlat.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/trace/trace_hwlat.c b/kernel/trace/trace_hwlat.c index e2be7bb7ef7e..ddb528a6cd

Re: [PATCH v18 3/3] Input: new da7280 haptic driver

2020-07-30 Thread Andy Shevchenko
On Thu, Jul 30, 2020 at 08:16:31AM +0200, Uwe Kleine-König wrote: > On Wed, Jul 29, 2020 at 10:06:53PM -0700, Dmitry Torokhov wrote: > > On Wed, Jul 29, 2020 at 09:21:45AM +0200, Uwe Kleine-König wrote: > > > On Tue, Jul 28, 2020 at 11:36:38PM -0700, Dmitry Torokhov wrote: ... > > Maybe we should

[PATCH rdma-rc 0/3] Simple fixes to DIM and mlx5

2020-07-30 Thread Leon Romanovsky
From: Leon Romanovsky Hi, First patch fixes an issue observed after auto-PID series was merged, but because the bug that not-initialized mutex existed before, the patch is sent to -rc. Other two patches are fixing unwind flows and appropriate for -rc. Thanks Leon Romanovsky (3): RDMA/mlx5:

[PATCH 2/2] tracing/hwlat: Honor the tracing_cpumask

2020-07-30 Thread Kevin Hao
In calculation of the cpu mask for the hwlat kernel thread, the wrong cpu mask is used instead of the tracing_cpumask, this causes the tracing/tracing_cpumask useless for hwlat tracer. Fixes it. Fixes: 0330f7aa8ee6 ("tracing: Have hwlat trace migrate across tracing_cpumask CPUs") Signed-off-by: K

[PATCH net-next v1 0/2] hinic: mailbox channel enhancement

2020-07-30 Thread Luo bin
add support to generate mailbox random id for VF to ensure that the mailbox message from VF is valid and PF should check whether the cmd from VF is supported before passing it to hw. Luo bin (2): hinic: add generating mailbox random index support hinic: add check for mailbox msg from VF .../

Re: [PATCH] trace : use kvmalloc instead of kmalloc

2020-07-30 Thread Michal Hocko
On Wed 29-07-20 19:48:29, Zhaoyang Huang wrote: > diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c > index ca1ee65..d4eb7ea 100644 > --- a/kernel/trace/trace.c > +++ b/kernel/trace/trace.c > @@ -6891,7 +6891,7 @@ static int tracing_buffers_open(struct inode *inode, > struct file *filp) >

[PATCH net-next v1 1/2] hinic: add generating mailbox random index support

2020-07-30 Thread Luo bin
add support to generate mailbox random id of VF to ensure that mailbox messages PF received are from the correct VF. Signed-off-by: Luo bin --- .../net/ethernet/huawei/hinic/hinic_hw_dev.h | 13 ++ .../net/ethernet/huawei/hinic/hinic_hw_mbox.c | 136 ++ .../net/ethernet/huawei/

[PATCH net-next v1 2/2] hinic: add check for mailbox msg from VF

2020-07-30 Thread Luo bin
PF should check whether the cmd from VF is supported and its content is right before passing it to hw. Signed-off-by: Luo bin --- .../net/ethernet/huawei/hinic/hinic_hw_cmdq.h | 8 + .../net/ethernet/huawei/hinic/hinic_hw_mbox.c | 173 +- .../net/ethernet/huawei/hinic/hinic_hw_

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

2020-07-30 Thread Andy Shevchenko
On Thu, Jul 30, 2020 at 10:15:24AM +0200, Arnd Bergmann wrote: > On Thu, Jul 30, 2020 at 10:07 AM Bartosz Golaszewski wrote: > > > > On Tue, Jul 28, 2020 at 3:58 PM Arnd Bergmann wrote: > > > > > > On Tue, Jul 28, 2020 at 3:06 PM Dan Carpenter > > > wrote: > > > Something like > > > > > > stati

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

2020-07-30 Thread Andy Shevchenko
On Thu, Jul 30, 2020 at 04:13:33PM +0800, Brent Lu wrote: > Two different constraints are implemented: one is in platform's CPU > DAI to enforce period sizes which are already used in Android BSP. The > other is in Atom Chromebook's machine driver to use 240 as period size. > > Changes since v1: >

[GIT PULL] devfreq next for v5.9

2020-07-30 Thread Chanwoo Choi
Dear Rafael, This is devfreq-next pull request for v5.9-rc1. I add detailed description of this pull request on the following tag. Please pull devfreq with following updates. - tag name : devfreq-next-for-5.9 Best Regards, Chanwoo Choi The following changes since commit 92ed301919932f13b91

Re: [PATCH v2 1/3] KVM: x86: Deflect unknown MSR accesses to user space

2020-07-30 Thread Vitaly Kuznetsov
Alexander Graf writes: > MSRs are weird. Some of them are normal control registers, such as EFER. > Some however are registers that really are model specific, not very > interesting to virtualization workloads, and not performance critical. > Others again are really just windows into package conf

Re: [PATCH][next] ALSA: vmaster: Use flex_array_size() helper in memcpy()

2020-07-30 Thread Takashi Iwai
On Thu, 30 Jul 2020 00:18:29 +0200, Gustavo A. R. Silva wrote: > > Make use of the flex_array_size() helper to calculate the size of a > flexible array member within an enclosing structure. > > This helper offers defense-in-depth against potential integer overflows > and makes it explicitly clear

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

2020-07-30 Thread Andy Shevchenko
On Thu, Jul 30, 2020 at 04:13:35PM +0800, Brent Lu wrote: > From: Yu-Hsuan Hsu > > The CRAS server does not set the period size in hw_param so ALSA will > calculate a value for period size which is based on the buffer size > and other parameters. The value may not always be aligned with Atom's >

Re: [PATCH] staging: atomisp: move null check to earlier point

2020-07-30 Thread Dan Carpenter
On Wed, Jul 29, 2020 at 06:13:44PM +0300, Andy Shevchenko wrote: > On Wed, Jul 29, 2020 at 5:00 PM Cengiz Can wrote: > > > > `find_gmin_subdev` function that returns a pointer to `struct > > gmin_subdev` can return NULL. > > > > In `gmin_v2p8_ctrl` there's a call to this function but the possibili

[PATCH 3/3] arm64: dts: ipq6018: enable DVFS support

2020-07-30 Thread Kathiravan T
Add A53 PLL, APCS clock, RPM Glink, RPM message RAM, cpu-opp-table, SMPA2 regulator to enable the cpu frequency on IPQ6018. Co-developed-by: Sivaprakash Murugesan Signed-off-by: Sivaprakash Murugesan Signed-off-by: Kathiravan T --- arch/arm64/boot/dts/qcom/ipq6018.dtsi | 96 +++

[PATCH 2/3] dt-bindings: regulator: add the sub node names for the MP5496 PMIC

2020-07-30 Thread Kathiravan T
MP5496 PMIC is found on IPQ6018 SoC. SMPA2 regulator controls the APSS voltage scaling. Document the sub node name for the same. Signed-off-by: Kathiravan T --- Documentation/devicetree/bindings/regulator/qcom,smd-rpm-regulator.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Document

[PATCH 1/3] dt-bindings: mailbox: add compatible for the IPQ6018 SoC

2020-07-30 Thread Kathiravan T
Add the mailbox compatible for the IPQ6018 SoC. Signed-off-by: Kathiravan T --- Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml b/Documentation/devicetr

[PATCH 0/3] Enable DVFS support for IPQ6018

2020-07-30 Thread Kathiravan T
Add A53 PLL, APCS clock, RPM Glink, RPM message RAM, cpu-opp-table, SMPA2 regulator to enable the cpu frequency on IPQ6018. Kathiravan T (3): dt-bindings: mailbox: add compatible for the IPQ6018 SoC dt-bindings: regulator: add the sub node names for the MP5496 PMIC arm64: dts: ipq6018: enabl

Re: [PATCH] scsi: sd: add runtime pm to open / release

2020-07-30 Thread Martin Kepplinger
On 29.07.20 20:29, James Bottomley wrote: > On Wed, 2020-07-29 at 14:25 -0400, Alan Stern wrote: >> On Wed, Jul 29, 2020 at 06:43:48PM +0200, Martin Kepplinger wrote: > [...] > --- a/drivers/scsi/scsi_error.c > +++ b/drivers/scsi/scsi_error.c > @@ -554,16 +554,8 @@ int scsi_check_sense(

Re: [PATCH 0/4] CPUFreq statistics retrieved by drivers

2020-07-30 Thread Viresh Kumar
On 29-07-20, 16:12, Lukasz Luba wrote: > The existing CPUFreq framework does not tracks the statistics when the > 'fast switch' is used or when firmware changes the frequency independently > due to e.g. thermal reasons. However, the firmware might track the frequency > changes and expose this to th

Re: [PATCH] scsi: sd: add runtime pm to open / release

2020-07-30 Thread Martin Kepplinger
On 30.07.20 10:52, Martin Kepplinger wrote: > On 29.07.20 20:29, James Bottomley wrote: >> On Wed, 2020-07-29 at 14:25 -0400, Alan Stern wrote: >>> On Wed, Jul 29, 2020 at 06:43:48PM +0200, Martin Kepplinger wrote: >> [...] >> --- a/drivers/scsi/scsi_error.c >> +++ b/drivers/scsi/scsi_error

Re: [PATCH v3 2/3] Input: snvs_pwrkey - enable snvs clock as needed

2020-07-30 Thread Marco Felsch
Hi Dmitry, On 20-07-29 23:04, Dmitry Torokhov wrote: > On Wed, Jul 29, 2020 at 09:33:23AM +0200, Marco Felsch wrote: > > Hi, > > > > On 20-07-23 10:43, Horia Geantă wrote: > > > From: André Draszik > > > > > > At the moment, enabling this driver without the SNVS RTC driver > > > being active wi

Re: [PATCH 11/17] clk: imx: Add blk_ctrl combo driver

2020-07-30 Thread Abel Vesa
On 20-07-29 14:46:28, Philipp Zabel wrote: > Hi Abel, > > On Wed, 2020-07-29 at 15:07 +0300, Abel Vesa wrote: > > On i.MX8MP, there is a new type of IP which is called BLK_CTRL in [...] > > + > > +static int imx_blk_ctrl_reset_set(struct reset_controller_dev *rcdev, > > +

Re: [PATCH] staging: atomisp: move null check to earlier point

2020-07-30 Thread Cengiz Can
On July 30, 2020 11:48:06 Dan Carpenter wrote: On Wed, Jul 29, 2020 at 06:13:44PM +0300, Andy Shevchenko wrote: On Wed, Jul 29, 2020 at 5:00 PM Cengiz Can wrote: `find_gmin_subdev` function that returns a pointer to `struct gmin_subdev` can return NULL. In `gmin_v2p8_ctrl` there's a cal

Re: [PATCH v2 2/3] KVM: x86: Introduce allow list for MSR emulation

2020-07-30 Thread Vitaly Kuznetsov
Alexander Graf writes: > It's not desireable to have all MSRs always handled by KVM kernel space. Some > MSRs would be useful to handle in user space to either emulate behavior (like > uCode updates) or differentiate whether they are valid based on the CPU model. > > To allow user space to specif

Re: [PATCH v3 3/3] Input: snvs_pwrkey - only IRQ_HANDLED for our own events

2020-07-30 Thread Marco Felsch
Hi Dmitry, On 20-07-29 23:06, Dmitry Torokhov wrote: > Hi Marco, > > On Wed, Jul 29, 2020 at 09:55:13AM +0200, Marco Felsch wrote: > > Hi, > > > > On 20-07-23 10:43, Horia Geantă wrote: > > > From: André Draszik > > > > > > The snvs_pwrkey shares the SNVS LPSR status register with the snvs_rtc

Re: [RFC PATCH 1/4] dt-binding: i2c: add generic properties for GPIO bus recovery

2020-07-30 Thread Codrin.Ciubotariu
On 27.07.2020 13:50, Russell King - ARM Linux admin wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > On Mon, Jul 27, 2020 at 10:44:57AM +, codrin.ciubota...@microchip.com > wrote: >> On 24.07.2020 23:52, Russell King - ARM Linux admin

Re: [v2,1/3] dt-binding: mediatek: mt8192: update mtk-wdt document

2020-07-30 Thread Matthias Brugger
On 30/07/2020 03:35, Crystal Guo wrote: On Wed, 2020-07-29 at 18:18 +0800, Matthias Brugger wrote: On 29/07/2020 12:02, Crystal Guo wrote: update mtk-wdt document for MT8192 platform should be two patches. one fixing the compatibles and second adding new board. Signed-off-by: Crystal

[PATCH] clk: at91: clk-main: update key before writing AT91_CKGR_MOR

2020-07-30 Thread Claudiu Beznea
SAMA5D2 datasheet specifies on chapter 33.22.8 (PMC Clock Generator Main Oscillator Register) that writing any value other than 0x37 on KEY field aborts the write operation. Use the key when selecting main clock parent. Fixes: 27cb1c2083373 ("clk: at91: rework main clk implementation") Signed-off-

Re: [v2,3/3] watchdog: mt8192: add wdt support

2020-07-30 Thread Matthias Brugger
On 29/07/2020 12:02, Crystal Guo wrote: add driver setting to support mt8192 wdt Commit message could be better: "Add support for watchdog device found in MT8192 SoC." for example. Signed-off-by: Crystal Guo Reviewed-by: Matthias Brugger --- drivers/watchdog/mtk_wdt.c | 6 ++

[PATCH] iocost: Fix check condition of iocg abs_vdebt

2020-07-30 Thread Chengming Zhou
We shouldn't skip iocg when its abs_vdebt is not zero. Fixes: 0b80f9866e6b ("iocost: protect iocg->abs_vdebt with iocg->waitq.lock") Signed-off-by: Chengming Zhou --- block/blk-iocost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/blk-iocost.c b/block/blk-iocost.c i

Re: [PATCH] ASoC: core: restore dpcm flags semantics

2020-07-30 Thread Jerome Brunet
On Wed 29 Jul 2020 at 17:56, Pierre-Louis Bossart wrote: > On 7/29/20 10:46 AM, Jerome Brunet wrote: >> commit b73287f0b0745 ('ASoC: soc-pcm: dpcm: fix playback/capture checks') >> changed dpcm_playback and dpcm_capture semantic by throwing an error if >> these flags are not aligned with DAIs

Re: [v2,2/3] dt-binding: mt8192: add toprgu reset-controller head file

2020-07-30 Thread Matthias Brugger
On 29/07/2020 12:02, Crystal Guo wrote: add toprgu reset-controller head file for MT8192 platform Signed-off-by: Crystal Guo Reviewed-by: Matthias Brugger --- .../dt-bindings/reset-controller/mt8192-resets.h | 30 ++ 1 file changed, 30 insertions(+) create mod

Re: [PATCH v1 2/4] [RFC] x86/trampfd: Provide support for the trampoline file descriptor

2020-07-30 Thread Greg KH
On Tue, Jul 28, 2020 at 08:10:48AM -0500, madve...@linux.microsoft.com wrote: > +EXPORT_SYMBOL_GPL(trampfd_valid_regs); Why are all of these exported? I don't see a module user in this series, or did I miss it somehow? EXPORT_SYMBOL* is only needed for symbols to be used by modules, not by code

Re: [PATCH v8 0/5] Add support for iMX8MQ Display Controller Subsystem

2020-07-30 Thread Laurentiu Palcu
Hi Guido, On Wed, Jul 29, 2020 at 05:09:52PM +0200, Guido Günther wrote: > Hi, > On Wed, Jul 29, 2020 at 05:16:47PM +0300, Laurentiu Palcu wrote: > > Hi Guido, > > > > On Wed, Jul 29, 2020 at 03:59:48PM +0200, Guido Günther wrote: > > > Hi, > > > On Fri, Jul 24, 2020 at 12:07:29PM +0300, Laurenti

Re: [PATCH 0/4] CPUFreq statistics retrieved by drivers

2020-07-30 Thread Sudeep Holla
On Thu, Jul 30, 2020 at 02:23:33PM +0530, Viresh Kumar wrote: > On 29-07-20, 16:12, Lukasz Luba wrote: > > The existing CPUFreq framework does not tracks the statistics when the > > 'fast switch' is used or when firmware changes the frequency independently > > due to e.g. thermal reasons. However,

Re: [PATCH v8 0/5] Add support for iMX8MQ Display Controller Subsystem

2020-07-30 Thread Guido Günther
Hi Laurentiu, On Thu, Jul 30, 2020 at 12:10:55PM +0300, Laurentiu Palcu wrote: > Hi Guido, > > On Wed, Jul 29, 2020 at 05:09:52PM +0200, Guido Günther wrote: > > Hi, > > On Wed, Jul 29, 2020 at 05:16:47PM +0300, Laurentiu Palcu wrote: > > > Hi Guido, > > > > > > On Wed, Jul 29, 2020 at 03:59:48PM

Re: [RFT PATCH v4 3/9] RISC-V: Implement late mapping page table allocation functions

2020-07-30 Thread Mike Rapoport
Hi, On Wed, Jul 29, 2020 at 04:36:29PM -0700, Atish Patra wrote: > Currently, page table setup is done during setup_va_final where fixmap can > be used to create the temporary mappings. The physical frame is allocated > from memblock_alloc_* functions. However, this won't work if page table > mapp

linux-next: manual merge of the hmm tree with the kvm-ppc tree

2020-07-30 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the hmm tree got a conflict in: arch/powerpc/kvm/book3s_hv_uvmem.c between commit: f1b87ea8784b ("KVM: PPC: Book3S HV: Move kvmppc_svm_page_out up") from the kvm-ppc tree and commit: 5143192cd410 ("mm/migrate: add a flags parameter to migrate_vma") f

Re: [PATCH v4 2/4] input: gpio-vibra: Allow to use vcc-supply alone to control the vibrator

2020-07-30 Thread Ondřej Jirman
Hello Dmitry, thanks for looking into the patch. :) On Wed, Jul 29, 2020 at 11:19:39PM -0700, Dmitry Torokhov wrote: > Hi Ondrej, > > On Tue, Jul 14, 2020 at 12:23:01PM +0200, Ondrej Jirman wrote: > > Make enable-gpio optional to allow using this driver with boards that > > have vibrator connect

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

2020-07-30 Thread Arnd Bergmann
On Thu, Jul 30, 2020 at 10:38 AM Andy Shevchenko wrote: > On Thu, Jul 30, 2020 at 10:15:24AM +0200, Arnd Bergmann wrote: > > On Thu, Jul 30, 2020 at 10:07 AM Bartosz Golaszewski wrote: > > > > > > On Tue, Jul 28, 2020 at 3:58 PM Arnd Bergmann wrote: > > > > > > > > On Tue, Jul 28, 2020 at 3:06 P

linux-next: manual merge of the hmm tree with the drm tree

2020-07-30 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the hmm tree got a conflict in: drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgp100.c between commit: 7763d24f3ba0 ("drm/nouveau/vmm/gp100-: fix mapping 2MB sysmem pages") from the drm tree and commits: 4725c6b82a48 ("nouveau: fix mapping 2MB sysmem page

Re: [PATCH][next] mlxsw: spectrum_cnt: Use flex_array_size() helper in memcpy()

2020-07-30 Thread Ido Schimmel
On Wed, Jul 29, 2020 at 05:58:03PM -0500, Gustavo A. R. Silva wrote: > Make use of the flex_array_size() helper to calculate the size of a > flexible array member within an enclosing structure. > > This helper offers defense-in-depth against potential integer > overflows, while at the same time ma

[PATCH] of: reserved-memory: remove duplicated call to of_get_flat_dt_prop() for no-map node

2020-07-30 Thread Yue Hu
From: Yue Hu Just use nomap instead of the second call to of_get_flat_dt_prop(). And change nomap as a bool type due to != NULL operator. Also, correct comment about node of 'align' -> 'alignment'. Signed-off-by: Yue Hu --- drivers/of/of_reserved_mem.c | 12 ++-- 1 file changed, 6 inse

Re: ARM: static kernel in vmalloc space

2020-07-30 Thread Linus Walleij
On Fri, May 15, 2020 at 5:41 PM Arnd Bergmann wrote: [Russell] > > There are some aliasing VIPT implementations on ARMv6, but I don't > > remember how common. > > I thought it was only realview-pb and omap2, but it seems there > are more, at least ast2500 is an important example. > > I could not

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