[PATCH 4.19 00/32] 4.19.162-rc1 review

2020-12-06 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.19.162 release. There are 32 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 Tue, 08 Dec 2020 11:15:42 +. Anything

[PATCH 4.19 09/32] net/tls: Protect from calling tls_dev_del for TLS RX twice

2020-12-06 Thread Greg Kroah-Hartman
From: Maxim Mikityanskiy [ Upstream commit 025cc2fb6a4e84e9a0552c0017dcd1c24b7ac7da ] tls_device_offload_cleanup_rx doesn't clear tls_ctx->netdev after calling tls_dev_del if TLX TX offload is also enabled. Clearing tls_ctx->netdev gets postponed until tls_device_gc_task. It leaves a time frame

[PATCH 4.19 21/32] cxgb3: fix error return code in t3_sge_alloc_qset()

2020-12-06 Thread Greg Kroah-Hartman
From: Zhang Changzhong [ Upstream commit ff9924897f8bfed82e61894b373ab9d2dfea5b10 ] Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: b1fb1f280d09 ("cxgb3 - Fix dma mapping error path") Reported-by: Hulk Robot

[PATCH 4.19 06/32] tcp: Set INET_ECN_xmit configuration in tcp_reinit_congestion_control

2020-12-06 Thread Greg Kroah-Hartman
From: Alexander Duyck [ Upstream commit 55472017a4219ca965a957584affdb17549ae4a4 ] When setting congestion control via a BPF program it is seen that the SYN/ACK for packets within a given flow will not include the ECT0 flag. A bit of simple printk debugging shows that when this is configured

[PATCH 4.19 05/32] sock: set sk_err to ee_errno on dequeue from errq

2020-12-06 Thread Greg Kroah-Hartman
From: Willem de Bruijn [ Upstream commit 985f7337421a811cb354ca93882f943c8335a6f5 ] When setting sk_err, set it to ee_errno, not ee_origin. Commit f5f99309fa74 ("sock: do not set sk_err in sock_dequeue_err_skb") disabled updating sk_err on errq dequeue, which is correct for most error types

[PATCH 4.19 10/32] ibmvnic: fix call_netdevice_notifiers in do_reset

2020-12-06 Thread Greg Kroah-Hartman
From: Lijun Pan [ Upstream commit 8393597579f5250636f1cff157ea73f402b6501e ] When netdev_notify_peers was substituted in commit 986103e7920c ("net/ibmvnic: Fix RTNL deadlock during device reset"), call_netdevice_notifiers(NETDEV_RESEND_IGMP, dev) was missed. Fix it now. Fixes: 986103e7920c

[PATCH 4.19 02/32] net/af_iucv: set correct sk_protocol for child sockets

2020-12-06 Thread Greg Kroah-Hartman
From: Julian Wiedmann [ Upstream commit c5dab0941fcdc9664eb0ec0d4d51433216d91336 ] Child sockets erroneously inherit their parent's sk_type (ie. SOCK_*), instead of the PF_IUCV protocol that the parent was created with in iucv_sock_create(). We're currently not using sk->sk_protocol ourselves,

[PATCH 4.19 16/32] ibmvnic: Ensure that SCRQ entry reads are correctly ordered

2020-12-06 Thread Greg Kroah-Hartman
From: Thomas Falcon [ Upstream commit b71ec952234610b4f90ef17a2fdcb124d5320070 ] Ensure that received Subordinate Command-Response Queue (SCRQ) entries are properly read in order by the driver. These queues are used in the ibmvnic device to process RX buffer and TX completion descriptors.

[PATCH 4.19 19/32] net: ip6_gre: set dev->hard_header_len when using header_ops

2020-12-06 Thread Greg Kroah-Hartman
From: Antoine Tenart [ Upstream commit 832ba596494b2c9eac7760259eff2d8b7dcad0ee ] syzkaller managed to crash the kernel using an NBMA ip6gre interface. I could reproduce it creating an NBMA ip6gre interface and forwarding traffic to it: skbuff: skb_under_panic: text:8250e927 len:148

[PATCH 4.19 14/32] netfilter: bridge: reset skb->pkt_type after NF_INET_POST_ROUTING traversal

2020-12-06 Thread Greg Kroah-Hartman
From: Antoine Tenart [ Upstream commit 44f64f23bae2f0fad25503bc7ab86cd08d04cd47 ] Netfilter changes PACKET_OTHERHOST to PACKET_HOST before invoking the hooks as, while it's an expected value for a bridge, routing expects PACKET_HOST. The change is undone later on after hook traversal. This can

[PATCH 4.14 13/20] cxgb3: fix error return code in t3_sge_alloc_qset()

2020-12-06 Thread Greg Kroah-Hartman
From: Zhang Changzhong [ Upstream commit ff9924897f8bfed82e61894b373ab9d2dfea5b10 ] Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: b1fb1f280d09 ("cxgb3 - Fix dma mapping error path") Reported-by: Hulk Robot

[PATCH 4.19 07/32] tun: honor IOCB_NOWAIT flag

2020-12-06 Thread Greg Kroah-Hartman
From: Jens Axboe [ Upstream commit 5aac0390a63b8718237a61dd0d24a29201d1c94a ] tun only checks the file O_NONBLOCK flag, but it should also be checking the iocb IOCB_NOWAIT flag. Any fops using ->read/write_iter() should check both, otherwise it breaks users that correctly expect O_NONBLOCK

[PATCH 4.19 04/32] rose: Fix Null pointer dereference in rose_send_frame()

2020-12-06 Thread Greg Kroah-Hartman
From: Anmol Karn [ Upstream commit 3b3fd068c56e3fbea30090859216a368398e39bf ] rose_send_frame() dereferences `neigh->dev` when called from rose_transmit_clear_request(), and the first occurrence of the `neigh` is in rose_loopback_timer() as `rose_loopback_neigh`, and it is initialized in

[PATCH 4.19 17/32] ibmvnic: Fix TX completion error handling

2020-12-06 Thread Greg Kroah-Hartman
From: Thomas Falcon [ Upstream commit ba246c175116e2e8fa4fdfa5f8e958e086a9a818 ] TX completions received with an error return code are not being processed properly. When an error code is seen, do not proceed to the next completion before cleaning up the existing entry's data structures. Fixes:

[PATCH 4.19 01/32] ipv6: addrlabel: fix possible memory leak in ip6addrlbl_net_init

2020-12-06 Thread Greg Kroah-Hartman
From: Wang Hai [ Upstream commit e255e11e66da8281e337e4e352956e8a4999fca4 ] kmemleak report a memory leak as follows: unreferenced object 0x8880059c6a00 (size 64): comm "ip", pid 23696, jiffies 4296590183 (age 1755.384s) hex dump (first 32 bytes): 20 01 00 10 00 00 00 00 00 00 00

[PATCH 4.19 15/32] ipv4: Fix tos mask in inet_rtm_getroute()

2020-12-06 Thread Greg Kroah-Hartman
From: Guillaume Nault [ Upstream commit 1ebf179037cb46c19da3a9c1e2ca16e7a754b75e ] When inet_rtm_getroute() was converted to use the RCU variants of ip_route_input() and ip_route_output_key(), the TOS parameters stopped being masked with IPTOS_RT_MASK before doing the route lookup. As a

[PATCH 4.14 09/20] ipv4: Fix tos mask in inet_rtm_getroute()

2020-12-06 Thread Greg Kroah-Hartman
From: Guillaume Nault [ Upstream commit 1ebf179037cb46c19da3a9c1e2ca16e7a754b75e ] When inet_rtm_getroute() was converted to use the RCU variants of ip_route_input() and ip_route_output_key(), the TOS parameters stopped being masked with IPTOS_RT_MASK before doing the route lookup. As a

[PATCH 4.19 11/32] ibmvnic: notify peers when failover and migration happen

2020-12-06 Thread Greg Kroah-Hartman
From: Lijun Pan [ Upstream commit 98025bce3a6200a0c4637272a33b5913928ba5b8 ] Commit 61d3e1d9bc2a ("ibmvnic: Remove netdev notify for failover resets") excluded the failover case for notify call because it said netdev_notify_peers() can cause network traffic to stall or halt. Current testing

[PATCH 4.14 14/20] net: pasemi: fix error return code in pasemi_mac_open()

2020-12-06 Thread Greg Kroah-Hartman
From: Zhang Changzhong [ Upstream commit aba84871bd4f52c4dfcf3ad5d4501a6c9d2de90e ] Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: 72b05b9940f0 ("pasemi_mac: RX/TX ring management cleanup") Fixes: 8d636d8bc5ff

[PATCH 4.14 08/20] netfilter: bridge: reset skb->pkt_type after NF_INET_POST_ROUTING traversal

2020-12-06 Thread Greg Kroah-Hartman
From: Antoine Tenart [ Upstream commit 44f64f23bae2f0fad25503bc7ab86cd08d04cd47 ] Netfilter changes PACKET_OTHERHOST to PACKET_HOST before invoking the hooks as, while it's an expected value for a bridge, routing expects PACKET_HOST. The change is undone later on after hook traversal. This can

[PATCH 4.19 13/32] bonding: wait for sysfs kobject destruction before freeing struct slave

2020-12-06 Thread Greg Kroah-Hartman
From: Jamie Iles [ Upstream commit b9ad3e9f5a7a760ab068e33e1f18d240ba32ce92 ] syzkaller found that with CONFIG_DEBUG_KOBJECT_RELEASE=y, releasing a struct slave device could result in the following splat: kobject: 'bonding_slave' (cecdd4fe): kobject_release, parent 74ceb2b2

[PATCH 4.14 10/20] ibmvnic: Ensure that SCRQ entry reads are correctly ordered

2020-12-06 Thread Greg Kroah-Hartman
From: Thomas Falcon [ Upstream commit b71ec952234610b4f90ef17a2fdcb124d5320070 ] Ensure that received Subordinate Command-Response Queue (SCRQ) entries are properly read in order by the driver. These queues are used in the ibmvnic device to process RX buffer and TX completion descriptors.

[PATCH 4.14 20/20] RDMA/i40iw: Address an mmap handler exploit in i40iw

2020-12-06 Thread Greg Kroah-Hartman
From: Shiraz Saleem commit 2ed381439e89fa6d1a0839ef45ccd45d99d8e915 upstream. i40iw_mmap manipulates the vma->vm_pgoff to differentiate a push page mmap vs a doorbell mmap, and uses it to compute the pfn in remap_pfn_range without any validation. This is vulnerable to an mmap exploit as

[PATCH 4.14 07/20] bonding: wait for sysfs kobject destruction before freeing struct slave

2020-12-06 Thread Greg Kroah-Hartman
From: Jamie Iles [ Upstream commit b9ad3e9f5a7a760ab068e33e1f18d240ba32ce92 ] syzkaller found that with CONFIG_DEBUG_KOBJECT_RELEASE=y, releasing a struct slave device could result in the following splat: kobject: 'bonding_slave' (cecdd4fe): kobject_release, parent 74ceb2b2

[PATCH 4.14 16/20] dt-bindings: net: correct interrupt flags in examples

2020-12-06 Thread Greg Kroah-Hartman
From: Krzysztof Kozlowski [ Upstream commit 4d521943f76bd0d1e68ea5e02df7aadd30b2838a ] GPIO_ACTIVE_x flags are not correct in the context of interrupt flags. These are simple defines so they could be used in DTS but they will not have the same meaning: 1. GPIO_ACTIVE_HIGH = 0 = IRQ_TYPE_NONE 2.

[PATCH 4.14 18/20] Input: xpad - support Ardwiino Controllers

2020-12-06 Thread Greg Kroah-Hartman
From: Sanjay Govind commit 2aab1561439032be2e98811dd0ddbeb5b2ae4c61 upstream. This commit adds support for Ardwiino Controllers Signed-off-by: Sanjay Govind Link: https://lore.kernel.org/r/20201201071922.131666-1-sanjay.govi...@gmail.com Cc: sta...@vger.kernel.org Signed-off-by: Dmitry

[PATCH 4.14 19/20] Input: i8042 - add ByteSpeed touchpad to noloop table

2020-12-06 Thread Greg Kroah-Hartman
From: Po-Hsu Lin commit a48491c65b513e5cdc3e7a886a4db915f848a5f5 upstream. It looks like the C15B laptop got another vendor: ByteSpeed LLC. Avoid AUX loopback on this touchpad as well, thus input subsystem will be able to recognize a Synaptics touchpad in the AUX port. BugLink:

[PATCH 4.14 17/20] ALSA: usb-audio: US16x08: fix value count for level meters

2020-12-06 Thread Greg Kroah-Hartman
From: Hector Martin commit 402d5840b0d40a2a26c8651165d29b534abb6d36 upstream. The level meter control returns 34 integers of info. This fixes: snd-usb-audio 3-1:1.0: control 2:0:0:Level Meter:0: access overflow Fixes: d2bb390a2081 ("ALSA: usb-audio: Tascam US-16x08 DSP mixer quirk") Cc:

[PATCH 4.14 06/20] usbnet: ipheth: fix connectivity with iOS 14

2020-12-06 Thread Greg Kroah-Hartman
From: Yves-Alexis Perez [ Upstream commit f33d9e2b48a34e1558b67a473a1fc1d6e793f93c ] Starting with iOS 14 released in September 2020, connectivity using the personal hotspot USB tethering function of iOS devices is broken. Communication between the host and the device (for example ICMP traffic

[PATCH 4.14 15/20] net/mlx5: Fix wrong address reclaim when command interface is down

2020-12-06 Thread Greg Kroah-Hartman
From: Eran Ben Elisha [ Upstream commit 1d2bb5ad89f47d8ce8aedc70ef85059ab3870292 ] When command interface is down, driver to reclaim all 4K page chucks that were hold by the Firmeware. Fix a bug for 64K page size systems, where driver repeatedly released only the first chunk of the page.

[PATCH 4.14 00/20] 4.14.211-rc1 review

2020-12-06 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.14.211 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 Tue, 08 Dec 2020 11:15:42 +. Anything

[PATCH 4.14 04/20] tcp: Set INET_ECN_xmit configuration in tcp_reinit_congestion_control

2020-12-06 Thread Greg Kroah-Hartman
From: Alexander Duyck [ Upstream commit 55472017a4219ca965a957584affdb17549ae4a4 ] When setting congestion control via a BPF program it is seen that the SYN/ACK for packets within a given flow will not include the ECT0 flag. A bit of simple printk debugging shows that when this is configured

[PATCH 4.14 03/20] sock: set sk_err to ee_errno on dequeue from errq

2020-12-06 Thread Greg Kroah-Hartman
From: Willem de Bruijn [ Upstream commit 985f7337421a811cb354ca93882f943c8335a6f5 ] When setting sk_err, set it to ee_errno, not ee_origin. Commit f5f99309fa74 ("sock: do not set sk_err in sock_dequeue_err_skb") disabled updating sk_err on errq dequeue, which is correct for most error types

[PATCH 4.14 02/20] rose: Fix Null pointer dereference in rose_send_frame()

2020-12-06 Thread Greg Kroah-Hartman
From: Anmol Karn [ Upstream commit 3b3fd068c56e3fbea30090859216a368398e39bf ] rose_send_frame() dereferences `neigh->dev` when called from rose_transmit_clear_request(), and the first occurrence of the `neigh` is in rose_loopback_timer() as `rose_loopback_neigh`, and it is initialized in

[PATCH 4.14 01/20] net/af_iucv: set correct sk_protocol for child sockets

2020-12-06 Thread Greg Kroah-Hartman
From: Julian Wiedmann [ Upstream commit c5dab0941fcdc9664eb0ec0d4d51433216d91336 ] Child sockets erroneously inherit their parent's sk_type (ie. SOCK_*), instead of the PF_IUCV protocol that the parent was created with in iucv_sock_create(). We're currently not using sk->sk_protocol ourselves,

Re: [PATCH v14 09/10] arch, mm: wire up memfd_secret system call were relevant

2020-12-06 Thread Mike Rapoport
On Thu, Dec 03, 2020 at 03:39:16PM -0800, Andrew Morton wrote: > On Thu, 3 Dec 2020 08:29:48 +0200 Mike Rapoport wrote: > > > From: Mike Rapoport > > > > Wire up memfd_secret system call on architectures that define > > ARCH_HAS_SET_DIRECT_MAP, namely arm64, risc-v and x86. > > > > ... > > >

Re: [PATCH v2 0/9] Add support for Microsoft Surface System Aggregator Module

2020-12-06 Thread Leon Romanovsky
On Sun, Dec 06, 2020 at 11:33:40AM +0100, Maximilian Luz wrote: > On 12/6/20 10:06 AM, Leon Romanovsky wrote:> On Sun, Dec 06, 2020 at > 05:58:32PM +0900, Blaž Hrastnik wrote: > > > > > > > > > More on that, the whole purpose of proposed interface is to debug and > > > > > not intended to be used

Re: [PATCH v14 04/10] set_memory: allow querying whether set_direct_map_*() is actually enabled

2020-12-06 Thread Mike Rapoport
On Thu, Dec 03, 2020 at 03:36:10PM -0800, Andrew Morton wrote: > On Thu, 3 Dec 2020 08:29:43 +0200 Mike Rapoport wrote: > > > From: Mike Rapoport > > > > On arm64, set_direct_map_*() functions may return 0 without actually > > changing the linear map. This behaviour can be controlled using

Re: [PATCH] USB: dummy-hcd: Fix uninitialized array use in init()

2020-12-06 Thread Bui Quang Minh
On Sat, Dec 05, 2020 at 10:15:11AM -0500, Alan Stern wrote: > On Sat, Dec 05, 2020 at 07:47:01PM +0700, Minh Bùi Quang wrote: > > Vào Th 6, 4 thg 12, 2020 vào lúc 23:12 Alan Stern > > đã viết: > > > Does this initialization end up using less memory than an explicit > > > memset() call? > > > >

[PATCH] clk: ti: omap5: Fix reboot DPLL lock failure when using ABE TIMERs

2020-12-06 Thread H. Nikolaus Schaller
From: David Shah Having the ABE DPLL ref and bypass muxes set to different inputs was causing the DPLL not to lock when TIMER8 was used, as it is in the Pyra for the backlight. This patch fixes this by setting abe_dpll_bypass_clk_mux to sys_32k_ck in omap5xxx_dt_clk_init. A similar patch may

Re: [PATCH v2 0/9] Add support for Microsoft Surface System Aggregator Module

2020-12-06 Thread Maximilian Luz
On 12/6/20 9:32 AM, Greg Kroah-Hartman wrote: On Sun, Dec 06, 2020 at 09:07:05AM +0200, Leon Romanovsky wrote: On Thu, Dec 03, 2020 at 10:26:31PM +0100, Maximilian Luz wrote: Hello, Here is version two of the Surface System Aggregator Module (SAM/SSAM) driver series, adding initial support

Re: [PATCH v2 3/9] KVM: x86: Introduce KVM_GET_PAGE_ENC_BITMAP ioctl

2020-12-06 Thread Dov Murik
On 01/12/2020 2:47, Ashish Kalra wrote: From: Brijesh Singh The ioctl can be used to retrieve page encryption bitmap for a given gfn range. Return the correct bitmap as per the number of pages being requested by the user. Ensure that we only copy bmap->num_pages bytes in the userspace

Re: [PATCH 1/8] tty: serial: jsm: Fixed file by added more spacing

2020-12-06 Thread Joe Perches
On Sun, 2020-12-06 at 13:09 +0530, Clement Smith wrote: > Fixed a coding style issue Don't send 8 identically titled patches that each change a single line. Send one patch, with an updated title like: Subject: [PATCH] jsm_tty: Whitespace neatening that changes _all_ the whitespace that

Re: [PATCH v8 13/18] KVM: x86: Introduce new KVM_FEATURE_SEV_LIVE_MIGRATION feature & Custom MSR.

2020-12-06 Thread Paolo Bonzini
On 04/12/20 18:23, Sean Christopherson wrote: On Fri, Dec 04, 2020, Ashish Kalra wrote: An immediate response, actually the SEV live migration patches are preferred over the Page encryption bitmap patches, in other words, if SEV live migration patches are applied then we don't need the Page

[PATCH] vdpa/mlx5: Use write memory barrier after updating CQ index

2020-12-06 Thread Eli Cohen
Make sure to put write memory barrier after updating CQ consumer index so the hardware knows that there are available CQE slots in the queue. Failure to do this can cause the update of the RX doorbell record to get updated before the CQ consumer index resulting in CQ overrun. Change-Id:

Re: [PATCH v2 0/9] Add support for Microsoft Surface System Aggregator Module

2020-12-06 Thread Maximilian Luz
On 12/6/20 11:43 AM, Hans de Goede wrote: Hi, On 12/6/20 11:33 AM, Maximilian Luz wrote: On 12/6/20 10:06 AM, Leon Romanovsky wrote:> On Sun, Dec 06, 2020 at 05:58:32PM +0900, Blaž Hrastnik wrote: More on that, the whole purpose of proposed interface is to debug and not intended to be used

kernel BUG at mm/internal.h:LINE! (3)

2020-12-06 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:509a1542 Merge tag '5.10-rc6-smb3-fixes' of git://git.samb.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=123d9a5550 kernel config: https://syzkaller.appspot.com/x/.config?x=e49433cfed49b7d9

Re: [PATCH v2 0/9] Add support for Microsoft Surface System Aggregator Module

2020-12-06 Thread Maximilian Luz
On 12/6/20 11:04 AM, Hans de Goede wrote: Hi, On 12/6/20 9:56 AM, Leon Romanovsky wrote: On Sun, Dec 06, 2020 at 09:41:21AM +0100, Hans de Goede wrote: Hi Leon, On 12/6/20 8:07 AM, Leon Romanovsky wrote: On Thu, Dec 03, 2020 at 10:26:31PM +0100, Maximilian Luz wrote: Hello, Here is

[PATCH v2 2/2] ASoC: fsl: Add imx-hdmi machine driver

2020-12-06 Thread Shengjiu Wang
The driver is initially designed for sound card using HDMI interface on i.MX platform. There is internal HDMI IP or external HDMI modules connect with SAI or AUD2HTX interface. It supports both transmitter and receiver devices. Signed-off-by: Shengjiu Wang --- changes in v2 - update according to

[PATCH v2 1/2] ASoC: dt-bindings: imx-hdmi: Add binding doc for hdmi machine driver

2020-12-06 Thread Shengjiu Wang
Imx-hdmi is a new added machine driver for supporting hdmi devices on i.MX platforms. There is HDMI IP or external HDMI modules connect with SAI or AUD2HTX interface. Signed-off-by: Shengjiu Wang --- changes in v2: - none .../bindings/sound/imx-audio-hdmi.yaml| 52 +++

[PATCH] drivers/hv: remove obsolete TODO and fix misleading typo in comment

2020-12-06 Thread Stefan Eschenbacher
Removes an obsolete TODO in the VMBus module and fixes a misleading typo in the comment for the macro MAX_NUM_CHANNELS, where two digits have been twisted. Signed-off-by: Stefan Eschenbacher Co-developed-by: Max Stolze Signed-off-by: Max Stolze --- drivers/hv/hyperv_vmbus.h | 3 +-- 1 file

Re: [PATCH v2 0/9] Add support for Microsoft Surface System Aggregator Module

2020-12-06 Thread Hans de Goede
Hi, On 12/6/20 11:33 AM, Leon Romanovsky wrote: > On Sun, Dec 06, 2020 at 11:04:06AM +0100, Hans de Goede wrote: >> But there is a difference between being careful and just nacking >> it because no new UAPI may be added at all (also see GKH's response). > > I saw, the author misunderstood the

Re: [PATCH v2 0/9] Add support for Microsoft Surface System Aggregator Module

2020-12-06 Thread Hans de Goede
Hi, On 12/6/20 11:33 AM, Maximilian Luz wrote: > On 12/6/20 10:06 AM, Leon Romanovsky wrote:> On Sun, Dec 06, 2020 at > 05:58:32PM +0900, Blaž Hrastnik wrote: > More on that, the whole purpose of proposed interface is to debug and > not intended to be used by any user space code.

[PATCH v2 3/4] arm64: dts: rockchip: add QoS register compatibles for rk3399

2020-12-06 Thread Johan Jonker
With the conversion of syscon.yaml minItems for compatibles was set to 2. Current Rockchip dtsi files only use "syscon" for QoS registers. Add Rockchip QoS compatibles for rk3399 to reduce notifications produced with: make ARCH=arm64 dtbs_check

[PATCH v2 1/4] ARM: dts: rockchip: add QoS register compatibles for rk3066/rk3188

2020-12-06 Thread Johan Jonker
With the conversion of syscon.yaml minItems for compatibles was set to 2. Current Rockchip dtsi files only use "syscon" for QoS registers. Add Rockchip QoS compatibles for rk3066/rk3188 to reduce notifications produced with: make ARCH=arm dtbs_check

[PATCH v2 4/4] arm64: dts: rockchip: add QoS register compatibles for px30

2020-12-06 Thread Johan Jonker
With the conversion of syscon.yaml minItems for compatibles was set to 2. Current Rockchip dtsi files only use "syscon" for QoS registers. Add Rockchip QoS compatibles for px30 to reduce notifications produced with: make ARCH=arm64 dtbs_check

[PATCH v2 2/4] ARM: dts: rockchip: add QoS register compatibles for rk3288

2020-12-06 Thread Johan Jonker
With the conversion of syscon.yaml minItems for compatibles was set to 2. Current Rockchip dtsi files only use "syscon" for QoS registers. Add Rockchip QoS compatibles for rk3288 to reduce notifications produced with: make ARCH=arm dtbs_check

Re: [PATCH v2 0/9] Add support for Microsoft Surface System Aggregator Module

2020-12-06 Thread Leon Romanovsky
On Sun, Dec 06, 2020 at 11:04:06AM +0100, Hans de Goede wrote: > Hi, > > On 12/6/20 9:56 AM, Leon Romanovsky wrote: > > On Sun, Dec 06, 2020 at 09:41:21AM +0100, Hans de Goede wrote: > >> Hi Leon, > >> > >> On 12/6/20 8:07 AM, Leon Romanovsky wrote: > >>> On Thu, Dec 03, 2020 at 10:26:31PM +0100,

Re: [PATCH v2 0/9] Add support for Microsoft Surface System Aggregator Module

2020-12-06 Thread Maximilian Luz
On 12/6/20 10:06 AM, Leon Romanovsky wrote:> On Sun, Dec 06, 2020 at 05:58:32PM +0900, Blaž Hrastnik wrote: More on that, the whole purpose of proposed interface is to debug and not intended to be used by any user space code. The purpose is to provide raw access to the Surface Serial Hub

[PATCH v2 4/4] venus: venc: Add support for AUD NALU control

2020-12-06 Thread Stanimir Varbanov
Add support for Access Unit Delimiter control into encoder. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/core.h | 1 + drivers/media/platform/qcom/venus/venc.c | 14 ++ drivers/media/platform/qcom/venus/venc_ctrls.c | 8 +++- 3 files

[PATCH v2 1/4] media: v4l2-ctrls: Add intra-refresh period control

2020-12-06 Thread Stanimir Varbanov
Add a control to set intra-refresh period. Signed-off-by: Stanimir Varbanov --- .../userspace-api/media/v4l/ext-ctrls-codec.rst | 11 +++ drivers/media/v4l2-core/v4l2-ctrls.c | 2 ++ include/uapi/linux/v4l2-controls.h| 1 + 3 files changed,

[PATCH v2 2/4] venus: venc: Add support for intra-refresh period

2020-12-06 Thread Stanimir Varbanov
Add support for intra-refresh period v4l2 control. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/core.h | 1 + drivers/media/platform/qcom/venus/venc.c | 28 +++ .../media/platform/qcom/venus/venc_ctrls.c| 9 +- 3 files changed, 37

[PATCH v2 0/4] Add random IR and AUD encoder controls

2020-12-06 Thread Stanimir Varbanov
Hi, The changes in the second version of the series are: * change the sematics of the random intra-refresh control to intra-refresh period, see 1/1 for more info. * incorporate review comments for AUD NALU control (Hans) regards, Stan Stanimir Varbanov (4): media: v4l2-ctrls: Add

[PATCH v2 3/4] media: v4l2-ctrls: Add control for AUD generation

2020-12-06 Thread Stanimir Varbanov
Add a control to enable inserting of AUD NALU into encoded bitstream. Signed-off-by: Stanimir Varbanov --- Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst | 5 + drivers/media/v4l2-core/v4l2-ctrls.c | 2 ++ include/uapi/linux/v4l2-controls.h

Re: [PATCH v2 1/9] KVM: x86: Add AMD SEV specific Hypercall3

2020-12-06 Thread Paolo Bonzini
On 03/12/20 01:34, Sean Christopherson wrote: On Tue, Dec 01, 2020, Ashish Kalra wrote: From: Brijesh Singh KVM hypercall framework relies on alternative framework to patch the VMCALL -> VMMCALL on AMD platform. If a hypercall is made before apply_alternative() is called then it defaults to

Re: [PATCH v2 2/9] KVM: X86: Introduce KVM_HC_PAGE_ENC_STATUS hypercall

2020-12-06 Thread Paolo Bonzini
On 02/12/20 22:22, Ashish Kalra wrote: Hello Dave, On Wed, Dec 02, 2020 at 04:54:20PM +, Dr. David Alan Gilbert wrote: * Ashish Kalra (ashish.ka...@amd.com) wrote: From: Brijesh Singh This hypercall is used by the SEV guest to notify a change in the page encryption status to the

[PATCH] Fixes kernel crash generating from bam_dma_irq()

2020-12-06 Thread Parth Y Shah
While performing suspend/resume, we were getting below kernel crash. [ 54.541672] [FTS][Info]gesture suspend... [ 54.605256] [FTS][Error][GESTURE]Enter into gesture(suspend) failed! [ 54.605256] [ 58.345850] irq event 10: bogus return value fff3 .. [ 58.345966] []

i2c-sprd.c:(.text.sprd_i2c_probe+0x134): undefined reference to `clk_set_parent'

2020-12-06 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 7059c2c00a2196865c2139083cbef47cd18109b6 commit: 4a2d5f663dab6614772d8e28ca190b127ba46d9d i2c: Enable compile testing for more drivers date: 11 months ago config: mips-randconfig-r025-20201206 (attached

Re: [PATCH v8 18/18] KVM: SVM: Enable SEV live migration feature implicitly on Incoming VM(s).

2020-12-06 Thread Paolo Bonzini
On 04/12/20 22:46, Ashish Kalra wrote: I would prefer that userspace does this using KVM_SET_MSR instead. Ok. But, this is for a VM which has already been migrated based on feature support on host and guest and host negotation and enablement of the live migration support, so i am assuming

[RESEND PATCH v2 12/12] mm: memcontrol: remove {global_}node_page_state_pages

2020-12-06 Thread Muchun Song
Now the unit of the vmstat counters are either pages or bytes. So we can adjust the node_page_state to always returns values in pages and remove the node_page_state_pages. Signed-off-by: Muchun Song --- drivers/base/node.c | 10 +- fs/proc/meminfo.c | 12 ++--

Re: [PATCH v8 12/18] KVM: SVM: Add support for static allocation of unified Page Encryption Bitmap.

2020-12-06 Thread Paolo Bonzini
On 04/12/20 22:38, Ashish Kalra wrote: Earlier we used to dynamic resizing of the page encryption bitmap based on the guest hypercall, but potentially a malicious guest can make a hypercall which can trigger a really large memory allocation on the host side and may eventually cause denial of

[RESEND PATCH v2 11/12] mm: memcontrol: make the slab calculation consistent

2020-12-06 Thread Muchun Song
Although the ratio of the slab is one, we also should read the ratio from the related memory_stats instead of hard-coding. And the local variable of size is already the value of slab_unreclaimable. So we do not need to read again. The unit of the vmstat counters are either pages or bytes now. So

[RESEND PATCH v2 06/12] mm: memcontrol: convert NR_FILE_PMDMAPPED account to pages

2020-12-06 Thread Muchun Song
Convert NR_FILE_PMDMAPPED account to pages Signed-off-by: Muchun Song --- drivers/base/node.c | 3 +-- fs/proc/meminfo.c | 2 +- mm/rmap.c | 6 -- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/base/node.c b/drivers/base/node.c index

[RESEND PATCH v2 10/12] mm: memcontrol: scale stat_threshold for byted-sized vmstat

2020-12-06 Thread Muchun Song
Some vmstat counters are being accounted in bytes not pages, so the stat_threshold should also scale to bytes. The vmstat counters are already long type for memcg (can reference to struct lruvec_stat). For the global per-node vmstat counters also can scale to long. But the maximum vmstat

[RESEND PATCH v2 08/12] mm: memcontrol: convert NR_KERNEL_SCS_KB account to bytes

2020-12-06 Thread Muchun Song
Convert NR_KERNEL_SCS_KB account to bytes Signed-off-by: Muchun Song --- drivers/base/node.c| 2 +- fs/proc/meminfo.c | 2 +- include/linux/mmzone.h | 2 +- kernel/scs.c | 4 ++-- mm/page_alloc.c| 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git

[RESEND PATCH v2 09/12] mm: memcontrol: convert vmstat slab counters to bytes

2020-12-06 Thread Muchun Song
the global and per-node counters are stored in pages, however memcg and lruvec counters are stored in bytes. This scheme looks weird. So convert all vmstat slab counters to bytes. Signed-off-by: Muchun Song --- include/linux/vmstat.h | 17 ++--- mm/vmstat.c| 21

[RESEND PATCH v2 07/12] mm: memcontrol: convert kernel stack account to bytes

2020-12-06 Thread Muchun Song
The kernel stack account is the one that counts in KiB. This patch convert it from KiB to byte. Signed-off-by: Muchun Song --- drivers/base/node.c| 2 +- fs/proc/meminfo.c | 2 +- include/linux/mmzone.h | 2 +- kernel/fork.c | 8 mm/memcontrol.c| 2 +-

[RESEND PATCH v2 04/12] mm: memcontrol: convert NR_SHMEM_THPS account to pages

2020-12-06 Thread Muchun Song
Convert NR_SHMEM_THPS account to pages Signed-off-by: Muchun Song --- drivers/base/node.c | 3 +-- fs/proc/meminfo.c | 2 +- mm/filemap.c| 2 +- mm/huge_memory.c| 3 ++- mm/khugepaged.c | 2 +- mm/memcontrol.c | 26 ++ mm/page_alloc.c | 2

[RESEND PATCH v2 02/12] mm: memcontrol: convert NR_ANON_THPS account to pages

2020-12-06 Thread Muchun Song
Convert the NR_ANON_THPS account to pages. Signed-off-by: Muchun Song --- drivers/base/node.c | 3 +-- fs/proc/meminfo.c | 2 +- mm/huge_memory.c| 3 ++- mm/memcontrol.c | 20 ++-- mm/page_alloc.c | 2 +- mm/rmap.c | 7 --- 6 files changed, 15

[RESEND PATCH v2 03/12] mm: memcontrol: convert NR_FILE_THPS account to pages

2020-12-06 Thread Muchun Song
Converrt NR_FILE_THPS account to pages. Signed-off-by: Muchun Song --- drivers/base/node.c | 3 +-- fs/proc/meminfo.c | 2 +- mm/filemap.c| 2 +- mm/huge_memory.c| 3 ++- mm/khugepaged.c | 2 +- mm/memcontrol.c | 5 ++--- 6 files changed, 8 insertions(+), 9 deletions(-)

[RESEND PATCH v2 05/12] mm: memcontrol: convert NR_SHMEM_PMDMAPPED account to pages

2020-12-06 Thread Muchun Song
Convert NR_SHMEM_PMDMAPPED account to pages. Signed-off-by: Muchun Song --- drivers/base/node.c | 3 +-- fs/proc/meminfo.c | 2 +- mm/page_alloc.c | 3 +-- mm/rmap.c | 6 -- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/base/node.c

Re: [PATCH] KVM: x86: reinstate vendor-agnostic check on SPEC_CTRL cpuid bits

2020-12-06 Thread Paolo Bonzini
On 04/12/20 18:12, Sean Christopherson wrote: Assuming that's the case, adding helpers in cpuid.h to detect guest support for SPEC_CTRL (and maybe for PRED_CMD?) would be helpful. It'd reduce duplicate code and document that KVM allows cross-vendor emulation. The condition for SPEC_CTRL

[RESEND PATCH v2 01/12] mm: memcontrol: fix NR_ANON_THPS account

2020-12-06 Thread Muchun Song
The unit of NR_ANON_THPS is HPAGE_PMD_NR already. So it should inc/dec by one rather than nr_pages. Fixes: 468c398233da ("mm: memcontrol: switch to native NR_ANON_THPS counter") Signed-off-by: Muchun Song --- mm/memcontrol.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff

[RESEND PATCH v2 00/12] Convert all vmstat counters to pages or bytes

2020-12-06 Thread Muchun Song
Hi, This patch series is aimed to convert all THP vmstat counters to pages and some KiB vmstat counters to bytes. The unit of some vmstat counters are pages, some are bytes, some are HPAGE_PMD_NR, and some are KiB. When we want to expose these vmstat counters to the userspace, we have to know

[PATCH v2 1/3] scsi: ufs: Add "wb_on" sysfs node to control WB on/off

2020-12-06 Thread Bean Huo
From: Bean Huo Currently UFS WriteBooster driver uses clock scaling up/down to set WB on/off, for the platform which doesn't support UFSHCD_CAP_CLK_SCALING, WB will be always on. Provide a sysfs attribute to enable/disable WB during runtime. Write 1/0 to "wb_on" sysfs node to enable/disable UFS

[PATCH v2 2/3] scsi: ufs: Keep device active mode only fWriteBoosterBufferFlushDuringHibernate == 1

2020-12-06 Thread Bean Huo
From: Bean Huo According to the JEDEC UFS 3.1 Spec, If fWriteBoosterBufferFlushDuringHibernate is set to one, the device flushes the WriteBooster Buffer data automatically whenever the link enters the hibernate (HIBERN8) state. While the flushing operation is in progress, the device should be

[PATCH v2 0/3] Three changes for UFS WriteBooster

2020-12-06 Thread Bean Huo
From: Bean Huo Changelog: v1--v2: 1. Take is_hibern8_wb_flush checkup out from function ufshcd_wb_need_flush() in patch 2/3 2. Add UFSHCD_CAP_CLK_SCALING checkup in patch 1/3. that means only for the platform, which doesn't support UFSHCD_CAP_CLK_SCALING, can control WB

[PATCH v2 3/3] scsi: ufs: Changes comment in the function ufshcd_wb_probe()

2020-12-06 Thread Bean Huo
From: Bean Huo USFHCD supports WriteBooster "LU dedicated buffer” mode and “shared buffer” mode both, so changes the comment in the function ufshcd_wb_probe(). Signed-off-by: Bean Huo Reviewed-by: Can Guo --- drivers/scsi/ufs/ufshcd.c | 7 +++ 1 file changed, 3 insertions(+), 4

Re: [PATCH] KVM: mmu: Fix SPTE encoding of MMIO generation upper half

2020-12-06 Thread Paolo Bonzini
On 05/12/20 01:48, Maciej S. Szmigiero wrote: From: "Maciej S. Szmigiero" Commit cae7ed3c2cb0 ("KVM: x86: Refactor the MMIO SPTE generation handling") cleaned up the computation of MMIO generation SPTE masks, however it introduced a bug how the upper part was encoded: SPTE bits 52-61 were

Re: [PATCH v5 19/19] dt-bindings: usb: intel,keembay-dwc3: Validate DWC3 sub-node

2020-12-06 Thread Serge Semin
Hi Wan, On Sun, Dec 06, 2020 at 09:56:47AM +, Wan Mohamad, Wan Ahmad Zainie wrote: > Hi Serge. > > > -Original Message- > > From: Serge Semin > > Sent: Saturday, December 5, 2020 11:24 PM > > To: Nyman, Mathias ; Felipe Balbi > > ; Krzysztof Kozlowski ; Greg Kroah- > > Hartman ; Rob

Re: [PATCH v2 0/9] Add support for Microsoft Surface System Aggregator Module

2020-12-06 Thread Hans de Goede
Hi, On 12/6/20 9:56 AM, Leon Romanovsky wrote: > On Sun, Dec 06, 2020 at 09:41:21AM +0100, Hans de Goede wrote: >> Hi Leon, >> >> On 12/6/20 8:07 AM, Leon Romanovsky wrote: >>> On Thu, Dec 03, 2020 at 10:26:31PM +0100, Maximilian Luz wrote: Hello, Here is version two of the Surface

Re: [patch V2 0/9] softirq: Make it RT aware

2020-12-06 Thread Sebastian Andrzej Siewior
On 2020-12-04 18:01:51 [+0100], Thomas Gleixner wrote: > The RT variant has sucessfully been tested in the current 5.10-rt > patches. For non-RT kernels there is no functional change. this series is part of v5.10-rc6-rt14. Tested-by: Sebastian Andrzej Siewior > Thanks, > > tglx

Re: [PATCH v2 00/12] Convert all vmstat counters to pages or bytes

2020-12-06 Thread Muchun Song
I am very sorry that I have hit 'git send-email *' in a directory containing both v1 and v2 patchs. Please ignore this. I will resend this version. Very sorry for the noise. Thanks. On Sun, Dec 6, 2020 at 4:25 PM Muchun Song wrote: > > Hi, > > This patch series is aimed to convert all THP vmstat

RE: [PATCH v5 19/19] dt-bindings: usb: intel,keembay-dwc3: Validate DWC3 sub-node

2020-12-06 Thread Wan Mohamad, Wan Ahmad Zainie
Hi Serge. > -Original Message- > From: Serge Semin > Sent: Saturday, December 5, 2020 11:24 PM > To: Nyman, Mathias ; Felipe Balbi > ; Krzysztof Kozlowski ; Greg Kroah- > Hartman ; Rob Herring > ; Chunfeng Yun ; > Wan Mohamad, Wan Ahmad Zainie > > Cc: Serge Semin ; Serge Semin > ;

Re: [PATCH] powerpc: Stop exporting __clear_user which is now inlined.

2020-12-06 Thread Greg KH
On Sat, Dec 05, 2020 at 09:58:23PM +1100, Michael Ellerman wrote: > Michal Suchanek writes: > > Stable commit 452e2a83ea23 ("powerpc: Fix __clear_user() with KUAP > > enabled") redefines __clear_user as inline function but does not remove > > the export. > > > > Fixes: 452e2a83ea23 ("powerpc: Fix

Re: Patch "spi: Fix controller unregister order" has been added to the 4.4-stable tree

2020-12-06 Thread Greg KH
On Sat, Dec 05, 2020 at 06:42:07PM +0100, Lukas Wunner wrote: > On Sat, Oct 10, 2020 at 04:41:09PM +0800, yangerkun wrote: > > ?? 2020/6/16 9:56, Sasha Levin : > > > This is a note to let you know that I've just added the patch titled > > > > > > spi: Fix controller unregister order > >

Re: [PATCH 4.4 17/70] crypto: arm64/sha - avoid non-standard inline asm tricks

2020-12-06 Thread Greg Kroah-Hartman
On Sat, Dec 05, 2020 at 01:39:28PM -0700, dann frazier wrote: > On Mon, Nov 23, 2020 at 01:49:07PM -0700, dann frazier wrote: > > On Mon, Nov 26, 2018 at 11:50:32AM +0100, Greg Kroah-Hartman wrote: > > > 4.4-stable review patch. If anyone has any objections, please let me > > > know. > > > >

Teo En Ming has been locked out of his CentOS Web Panel (CWP) web hosting control panel

2020-12-06 Thread Turritopsis Dohrnii Teo En Ming
Subject: Teo En Ming has been locked out of his CentOS Web Panel (CWP) web hosting control panel Good day from Singapore, I have been locked out of my CentOS Web Panel (CWP) web hosting control panel due to numerous invalid SMTP authentication attempts. I can't login to CWP any more using my

Re: [PATCH] userfaultfd: prevent non-cooperative events vs mcopy_atomic races

2020-12-06 Thread Mike Rapoport
Hello Nadav, On Thu, Dec 03, 2020 at 11:57:46AM -0800, Nadav Amit wrote: > Hello Mike, > > Regarding your (old) patch: > > > On May 23, 2018, at 12:42 AM, Mike Rapoport wrote: > > > > If a process monitored with userfaultfd changes it's memory mappings or > > forks() at the same time as uffd

Re: [PATCH] mips: lib: uncached: fix uninitialized variable 'sp'

2020-12-06 Thread Maciej W. Rozycki
On Fri, 27 Nov 2020, Anders Roxell wrote: > When building mips tinyconfig with clang the following warning show up: > > /tmp/arch/mips/lib/uncached.c:40:18: note: initialize the variable 'sp' to > silence this warning > register long sp __asm__("$sp"); > ^ >

<    1   2   3   4   5   6   7   >