Re: [PATCH 1/2] mm: Allow architectures to request 'old' entries when prefaulting

2020-12-14 Thread Matthew Wilcox
On Mon, Dec 14, 2020 at 09:54:06AM -0800, Linus Torvalds wrote: > > I expected to hate it more, but it looks reasonable. Opencoded > > xas_for_each() smells bad, but... > > I think the open-coded xas_for_each() per se isn't a problem, but I > agree that the startup condition is a bit ugly. And I'm

[PATCH 5.9 043/105] iwlwifi: sta: set max HE max A-MPDU according to HE capa

2020-12-14 Thread Greg Kroah-Hartman
From: Mordechay Goodstein [ Upstream commit c8a2e7a29702fe4626b7aa81149b7b7164e20606 ] Currently, our max tpt is limited to max HT A-MPDU for LB, and max VHT A-MPDU for HB. Configure HE exponent value correctly to achieve HE max A-MPDU, both on LB and HB. Signed-off-by: Mordechay Goodstein Sig

[PATCH 5.9 035/105] usb: ohci-omap: Fix descriptor conversion

2020-12-14 Thread Greg Kroah-Hartman
From: Linus Walleij [ Upstream commit 45c5775460f32ed8cdb7c16986ae1a2c254346b3 ] There were a bunch of issues with the patch converting the OMAP1 OSK board to use descriptors for controlling the USB host: - The chip label was incorrect - The GPIO offset was off-by-one - The code should use slee

Re: [PATCH v2] vfio iommu type1: Improve vfio_iommu_type1_pin_pages performance

2020-12-14 Thread Eric Farman
On 12/10/20 8:56 AM, xuxiaoyang (C) wrote: On 2020/12/9 22:42, Eric Farman wrote: On 12/9/20 6:54 AM, Cornelia Huck wrote: On Tue, 8 Dec 2020 21:55:53 +0800 "xuxiaoyang (C)" wrote: On 2020/11/21 15:58, xuxiaoyang (C) wrote: vfio_pin_pages() accepts an array of unrelated iova pfns and

[PATCH 5.9 048/105] ARC: stack unwinding: dont assume non-current task is sleeping

2020-12-14 Thread Greg Kroah-Hartman
From: Vineet Gupta [ Upstream commit e42404fa10fd11fe72d0a0e149a321d10e577715 ] To start stack unwinding (SP, PC and BLINK) are needed. When the explicit execution context (pt_regs etc) is not available, unwinder assumes the task is sleeping (in __switch_to()) and fetches SP and BLINK from kerne

[PATCH 5.9 020/105] ibmvnic: send_login should check for crq errors

2020-12-14 Thread Greg Kroah-Hartman
From: Dany Madden [ Upstream commit c98d9cc4170da7e16a1012563d0f9fbe1c7cfe27 ] send_login() does not check for the result of ibmvnic_send_crq() of the login request. This results in the driver needlessly retrying the login 10 times even when CRQ is no longer active. Check the return code and giv

[PATCH 5.9 037/105] mm/mmap.c: fix mmap return value when vma is merged after call_mmap()

2020-12-14 Thread Greg Kroah-Hartman
From: Liu Zixian [ Upstream commit 309d08d9b3a3659ab3f239d27d4e38b670b08fc9 ] On success, mmap should return the begin address of newly mapped area, but patch "mm: mmap: merge vma after call_mmap() if possible" set vm_start of newly merged vma to return value addr. Users of mmap will get wrong

Re: [PATCH] x86/sgx: Synchronize encl->srcu in sgx_encl_release().

2020-12-14 Thread Sean Christopherson
On Fri, Dec 11, 2020, Jarkko Sakkinen wrote: > Each sgx_mmun_notifier_release() starts a grace period, which means that Should be sgx_mmu_notifier_release(), here and in the comment. > one extra synchronize_rcu() in sgx_encl_release(). Add it there. > > sgx_release() has the loop that drains the

[PATCH 5.9 038/105] phy: usb: Fix incorrect clearing of tca_drv_sel bit in SETUP reg for 7211

2020-12-14 Thread Greg Kroah-Hartman
From: Al Cooper [ Upstream commit 209c805835b29495cf66cc705b206da8f4a68e6e ] The 7211a0 has a tca_drv_sel bit in the USB SETUP register that should never be enabled. This feature is only used if there is a USB Type-C PHY, and the 7211 does not have one. If the bit is enabled, the VBUS signal wil

Re: Energy-efficiency options within RCU

2020-12-14 Thread Paul E. McKenney
On Mon, Dec 14, 2020 at 01:12:48PM -0500, Joel Fernandes wrote: > On Thu, Dec 10, 2020 at 10:37:37AM -0800, Paul E. McKenney wrote: > > Hello, Joel, > > > > In case you are -seriously- interested... ;-) > > I am always seriously interested :-). The issue becomes when life throws me a > curveball

Re: [PATCH v5 07/34] KVM: SVM: Add required changes to support intercepts under SEV-ES

2020-12-14 Thread Tom Lendacky
On 12/14/20 9:33 AM, Paolo Bonzini wrote: > On 10/12/20 18:09, Tom Lendacky wrote: >> @@ -2797,7 +2838,27 @@ static int svm_set_msr(struct kvm_vcpu *vcpu, >> struct msr_data *msr) >>     static int wrmsr_interception(struct vcpu_svm *svm) >>   { >> -    return kvm_emulate_wrmsr(&svm->vcpu); >> +   

[PATCH 5.9 039/105] arm64: dts: rockchip: Remove system-power-controller from pmic on Odroid Go Advance

2020-12-14 Thread Greg Kroah-Hartman
From: Maciej Matuszczyk [ Upstream commit 01fe332800d0d2f94337b45c1973f4cf28ae6195 ] This fixes a poweroff issue when this is supposed to happen via PSCI. Signed-off-by: Maciej Matuszczyk Link: https://lore.kernel.org/r/20201023181629.119727-1-maccraft12...@gmail.com Signed-off-by: Heiko Stueb

Re: [PATCH v2] net/mlx4: Use true,false for bool variable

2020-12-14 Thread Jakub Kicinski
On Mon, 14 Dec 2020 13:16:08 +0200 Leon Romanovsky wrote: > On Mon, Dec 14, 2020 at 11:30:08AM +0100, Vasyl Gomonovych wrote: > > It is fix for semantic patch warning available in > > scripts/coccinelle/misc/boolinit.cocci > > Fix en_rx.c:687:1-17: WARNING: Assignment of 0/1 to bool variable > > Fi

[PATCH 5.9 036/105] zlib: export S390 symbols for zlib modules

2020-12-14 Thread Greg Kroah-Hartman
From: Randy Dunlap [ Upstream commit 11fb479ff5d9872ddff02dd533c16d60372c86b2 ] Fix build errors when ZLIB_INFLATE=m and ZLIB_DEFLATE=m and ZLIB_DFLTCC=y by exporting the 2 needed symbols in dfltcc_inflate.c. Fixes these build errors: ERROR: modpost: "dfltcc_inflate" [lib/zlib_inflate/zlib_i

[PATCH 5.9 040/105] iwlwifi: pcie: limit memory read spin time

2020-12-14 Thread Greg Kroah-Hartman
From: Johannes Berg [ Upstream commit 04516706bb99889986ddfa3a769ed50d2dc7ac13 ] When we read device memory, we lock a spinlock, write the address we want to read from the device and then spin in a loop reading the data in 32-bit quantities from another register. As the description makes clear,

[PATCH 5.4 34/36] x86/apic/vector: Fix ordering in vector assignment

2020-12-14 Thread Greg Kroah-Hartman
From: Thomas Gleixner commit 190113b4c6531c8e09b31d5235f9b5175cbb0f72 upstream. Prarit reported that depending on the affinity setting the ' irq $N: Affinity broken due to vector space exhaustion.' message is showing up in dmesg, but the vector space on the CPUs in the affinity mask is defini

[PATCH 5.4 33/36] x86/membarrier: Get rid of a dubious optimization

2020-12-14 Thread Greg Kroah-Hartman
From: Andy Lutomirski commit a493d1ca1a03b532871f1da27f8dbda2b28b04c4 upstream. sync_core_before_usermode() had an incorrect optimization. If the kernel returns from an interrupt, it can get to usermode without IRET. It just has to schedule to a different task in the same mm and do SYSRET. For

[PATCH 5.9 031/105] net: broadcom CNIC: requires MMU

2020-12-14 Thread Greg Kroah-Hartman
From: Randy Dunlap [ Upstream commit 14483cbf040fcb38113497161088a1ce8ce5d713 ] The CNIC kconfig symbol selects UIO and UIO depends on MMU. Since 'select' does not follow dependency chains, add the same MMU dependency to CNIC. Quietens this kconfig warning: WARNING: unmet direct dependencies d

[PATCH 5.4 30/36] proc: use untagged_addr() for pagemap_read addresses

2020-12-14 Thread Greg Kroah-Hartman
From: Miles Chen commit 40d6366e9d86d9a67b5642040e76082fdb5bdcf9 upstream. When we try to visit the pagemap of a tagged userspace pointer, we find that the start_vaddr is not correct because of the tag. To fix it, we should untag the userspace pointers in pagemap_read(). I tested with 5.10-rc4

[PATCH 5.9 004/105] kprobes: Tell lockdep about kprobe nesting

2020-12-14 Thread Greg Kroah-Hartman
From: Steven Rostedt (VMware) commit 645f224e7ba2f4200bf163153d384ceb0de5462e upstream. Since the kprobe handlers have protection that prohibits other handlers from executing in other contexts (like if an NMI comes in while processing a kprobe, and executes the same kprobe, it will get fail with

[PATCH 5.9 006/105] tools/bootconfig: Fix to check the write failure correctly

2020-12-14 Thread Greg Kroah-Hartman
From: Masami Hiramatsu [ Upstream commit a995e6bc0524450adfd6181dfdcd9d0520cfaba5 ] Fix to check the write(2) failure including partial write correctly and try to rollback the partial write, because if there is no BOOTCONFIG_MAGIC string, we can not remove it. Link: https://lkml.kernel.org/r/1

[PATCH 5.9 028/105] can: kvaser_pciefd: kvaser_pciefd_open(): fix error handling

2020-12-14 Thread Greg Kroah-Hartman
From: Zhang Qilong [ Upstream commit 13a84cf37a4cf1155a41684236c2314eb40cd65c ] If kvaser_pciefd_bus_on() failed, we should call close_candev() to avoid reference leak. Fixes: 26ad340e582d3 ("can: kvaser_pciefd: Add driver for Kvaser PCIEcan devices") Signed-off-by: Zhang Qilong Link: https:/

[PATCH 5.9 032/105] vdpa: mlx5: fix vdpa/vhost dependencies

2020-12-14 Thread Greg Kroah-Hartman
From: Randy Dunlap [ Upstream commit 98701a2a861fa87a5055cf2809758e8725e8b146 ] drivers/vdpa/mlx5/ uses vhost_iotlb*() interfaces, so select VHOST_IOTLB to make them be built. However, if VHOST_IOTLB is the only VHOST symbol that is set/enabled, the object file still won't be built because driv

[PATCH 5.9 029/105] samples/ftrace: Mark my_tramp[12]? global

2020-12-14 Thread Greg Kroah-Hartman
From: Sami Tolvanen [ Upstream commit 983df5f2699f83f78643b19d3399b160d1e64f5b ] my_tramp[12]? are declared as global functions in C, but they are not marked global in the inline assembly definition. This mismatch confuses Clang's Control-Flow Integrity checking. Fix the definitions by adding .g

[PATCH 5.4 36/36] compiler.h: fix barrier_data() on clang

2020-12-14 Thread Greg Kroah-Hartman
From: Arvind Sankar commit 3347acc6fcd4ee71ad18a9ff9d9dac176b517329 upstream. Commit 815f0ddb346c ("include/linux/compiler*.h: make compiler-*.h mutually exclusive") neglected to copy barrier_data() from compiler-gcc.h into compiler-clang.h. The definition in compiler-gcc.h was really to work a

[PATCH 5.9 014/105] ipvs: fix possible memory leak in ip_vs_control_net_init

2020-12-14 Thread Greg Kroah-Hartman
From: Wang Hai [ Upstream commit 4bc3c8dc9f5f1eff0d3bfa59491383ac11308b6b ] kmemleak report a memory leak as follows: BUG: memory leak unreferenced object 0x8880759ea000 (size 256): backtrace: [] kmem_cache_zalloc include/linux/slab.h:656 [inline] [] __pr

[PATCH 5.9 016/105] ibmvnic: stop free_all_rwi on failed reset

2020-12-14 Thread Greg Kroah-Hartman
From: Dany Madden [ Upstream commit 18f141bf97d42f65abfdf17fd93fb3a0dac100e7 ] When ibmvnic fails to reset, it breaks out of the reset loop and frees all of the remaining resets from the workqueue. Doing so prevents the adapter from recovering if no reset is scheduled after that. Instead, have t

[PATCH 5.9 012/105] batman-adv: Reserve needed_*room for fragments

2020-12-14 Thread Greg Kroah-Hartman
From: Sven Eckelmann [ Upstream commit c5cbfc87558168ef4c3c27ce36eba6b83391db19 ] The batadv net_device is trying to propagate the needed_headroom and needed_tailroom from the lower devices. This is needed to avoid cost intensive reallocations using pskb_expand_head during the transmission. But

Re: [PATCH v2 net-next] net: phy: mchp: Add 1588 support for LAN8814 Quad PHY

2020-12-14 Thread Andrew Lunn
> +static int lan8814_read_page_reg(struct phy_device *phydev, > + int page, u32 addr) > +{ > + u32 data; > + > + phy_write(phydev, KSZ_EXT_PAGE_ACCESS_CONTROL, page); > + phy_write(phydev, KSZ_EXT_PAGE_ACCESS_ADDRESS_DATA, addr); > + phy_write(phydev, K

Re: [PATCH v5 08/34] KVM: SVM: Prevent debugging under SEV-ES

2020-12-14 Thread Tom Lendacky
On 12/14/20 9:41 AM, Paolo Bonzini wrote: > On 10/12/20 18:09, Tom Lendacky wrote: >> Additionally, an SEV-ES guest must only and always intercept DR7 reads and >> writes. Update set_dr_intercepts() and clr_dr_intercepts() to account for >> this. > > I cannot see it, where is this documented? Tha

Re: [PATCH v5 00/34] SEV-ES hypervisor support

2020-12-14 Thread Tom Lendacky
On 12/14/20 12:13 PM, Paolo Bonzini wrote: > On 10/12/20 18:09, Tom Lendacky wrote: >> From: Tom Lendacky >> >> This patch series provides support for running SEV-ES guests under KVM. >> > > I'm queuing everything except patch 27, there's time to include it later > in 5.11. Thanks, Paolo! I'll

Re: [PATCH v2 1/2] arm64: dts: broadcom: clear the warnings caused by empty dma-ranges

2020-12-14 Thread Ray Jui
+ Bharat On 11/28/2020 1:58 AM, Arnd Bergmann wrote: > On Sat, Nov 28, 2020 at 5:53 AM Florian Fainelli wrote: >> >> On Fri, 16 Oct 2020 17:08:32 +0800, Zhen Lei >> wrote: >>> The scripts/dtc/checks.c requires that the node have empty "dma-ranges" >>> property must have the same "#address-cells

[PATCH 5.9 019/105] ibmvnic: track pending login

2020-12-14 Thread Greg Kroah-Hartman
From: Sukadev Bhattiprolu [ Upstream commit 76cdc5c5d99ce4856ad0ac38facc33b52fa64f77 ] If after ibmvnic sends a LOGIN it gets a FAILOVER, it is possible that the worker thread will start reset process and free the login response buffer before it gets a (now stale) LOGIN_RSP. The ibmvnic tasklet

[PATCH 5.9 033/105] iwlwifi: pcie: invert values of NO_160 device config entries

2020-12-14 Thread Greg Kroah-Hartman
From: Luca Coelho [ Upstream commit 568d3434178b00274615190a19d29c3d235b4e6d ] The NO_160 flag specifies if the device doesn't have 160 MHz support, but we errorneously assumed the opposite. If the flag was set, we were considering that 160 MHz was supported, but it's actually the opposite. Fi

[PATCH 5.9 030/105] scsi: storvsc: Fix error return in storvsc_probe()

2020-12-14 Thread Greg Kroah-Hartman
From: Jing Xiangfeng [ Upstream commit 6112ff4e8f393e7e297dff04eff0987f94d37fa1 ] Return -ENOMEM from the error handling case instead of 0. Link: https://lore.kernel.org/r/20201127030206.104616-1-jingxiangf...@huawei.com Fixes: 436ad9413353 ("scsi: storvsc: Allow only one remove lun work item t

[PATCH] lkdtm: disable KASAN for rodata.o

2020-12-14 Thread Marco Elver
Building lkdtm with KASAN and Clang 11 or later results in the following error when attempting to load the module: kernel tried to execute NX-protected page - exploit attempt? (uid: 0) BUG: unable to handle page fault for address: c019cd70 #PF: supervisor instruction fetch in kernel

Re: [PATCH v1] HID: make arrays usage and value to be the same

2020-12-14 Thread Will McVicker
On Sat, Dec 05, 2020 at 12:48:48AM +, Will McVicker wrote: > The HID subsystem allows an "HID report field" to have a different > number of "values" and "usages" when it is allocated. When a field > struct is created, the size of the usage array is guaranteed to be at > least as large as the va

Re: [PATCH v2] net/mlx4: Use true,false for bool variable

2020-12-14 Thread Joe Perches
On Mon, 2020-12-14 at 11:03 -0800, Jakub Kicinski wrote: > On Mon, 14 Dec 2020 13:16:08 +0200 Leon Romanovsky wrote: > > On Mon, Dec 14, 2020 at 11:30:08AM +0100, Vasyl Gomonovych wrote: > > > It is fix for semantic patch warning available in > > > scripts/coccinelle/misc/boolinit.cocci > > > Fix e

[PATCH 5.9 013/105] batman-adv: Dont always reallocate the fragmentation skb head

2020-12-14 Thread Greg Kroah-Hartman
From: Sven Eckelmann [ Upstream commit 992b03b88e36254e26e9a4977ab948683e21bd9f ] When a packet is fragmented by batman-adv, the original batman-adv header is not modified. Only a new fragmentation is inserted between the original one and the ethernet header. The code must therefore make sure th

[PATCH 5.9 002/105] mm/zsmalloc.c: drop ZSMALLOC_PGTABLE_MAPPING

2020-12-14 Thread Greg Kroah-Hartman
From: Minchan Kim commit e91d8d78237de8d7120c320b3645b7100848f24d upstream. While I was doing zram testing, I found sometimes decompression failed since the compression buffer was corrupted. With investigation, I found below commit calls cond_resched unconditionally so it could make a problem i

Re: [PATCH -next] s390/crypto/zcrypt_cex4: convert comma to semicolon

2020-12-14 Thread Harald Freudenberger
applied to the s390 subsystem. This will go upstream with the next kernel merge window. Thanks On 14.12.20 14:43, Zheng Yongjun wrote: > Replace a comma between expression statements by a semicolon. > > Signed-off-by: Zheng Yongjun > --- > drivers/s390/crypto/zcrypt_cex4.c | 2 +- > 1 file chan

Re: [PATCH -next] s390/crypto/zcrypt_cex2a: convert comma to semicolon

2020-12-14 Thread Harald Freudenberger
applied to the s390 subsystem. This will go upstream with the next kernel merge window. Thanks On 14.12.20 14:44, Zheng Yongjun wrote: > Replace a comma between expression statements by a semicolon. > > Signed-off-by: Zheng Yongjun > --- > drivers/s390/crypto/zcrypt_cex2a.c | 2 +- > 1 file cha

[PATCH 5.9 011/105] batman-adv: Consider fragmentation for needed_headroom

2020-12-14 Thread Greg Kroah-Hartman
From: Sven Eckelmann [ Upstream commit 4ca23e2c2074465bff55ea14221175fecdf63c5f ] If a batman-adv packets has to be fragmented, then the original batman-adv packet header is not stripped away. Instead, only a new header is added in front of the packet after it was split. This size must be consi

Re: [PATCH 1/1] net: Fix use of proc_fs

2020-12-14 Thread Jakub Kicinski
On Sun, 13 Dec 2020 11:48:15 +0200 Yonatan Linik wrote: > > You're right, on a closer look most of the places have a larger #ifdef > > block (which my grep didn't catch) or are under Kconfig. Of those I > > checked only TLS looks wrong (good job me) - would you care to fix that > > one as well, or

[PATCH 5.9 015/105] ibmvnic: handle inconsistent login with reset

2020-12-14 Thread Greg Kroah-Hartman
From: Dany Madden [ Upstream commit 31d6b4036098f6b59bcfa20375626b500c7d7417 ] Inconsistent login with the vnicserver is causing the device to be removed. This does not give the device a chance to recover from error state. This patch schedules a FATAL reset instead to bring the adapter up. Fixe

[PATCH 5.9 000/105] 5.9.15-rc1 review

2020-12-14 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.9.15 release. There are 105 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Wed, 16 Dec 2020 17:25:32 +. Anything rec

[PATCH v11 0/8] Carry forward IMA measurement log on kexec on ARM64

2020-12-14 Thread Lakshmi Ramasubramanian
On kexec file load Integrity Measurement Architecture (IMA) subsystem may verify the IMA signature of the kernel and initramfs, and measure it. The command line parameters passed to the kernel in the kexec call may also be measured by IMA. A remote attestation service can verify a TPM quote based o

[PATCH v11 4/8] powerpc: Move remove_ima_buffer() to drivers/of/kexec.c

2020-12-14 Thread Lakshmi Ramasubramanian
remove_ima_buffer() removes the chosen node "linux,ima-kexec-buffer" from the device tree and frees the memory reserved for carrying forward the IMA measurement logs on kexec. This function does not have architecture specific code, but is currently limited to powerpc. When CONFIG_IMA isn't set, re

[PATCH v11 3/8] powerpc: Use ima kexec node functions

2020-12-14 Thread Lakshmi Ramasubramanian
do_get_kexec_buffer() and get_addr_size_cells() are called by ima_get_kexec_buffer(), ima_free_kexec_buffer, and remove_ima_buffer() to retrieve the address and size of the buffer used for carrying forward the IMA measurement log across kexec system call. These functions correctly handle a device t

Re: [PATCH 1/3] PCI/ASPM: Use the path max in L1 ASPM latency check

2020-12-14 Thread Bjorn Helgaas
On Mon, Dec 14, 2020 at 04:47:32PM +0100, Ian Kumlien wrote: > On Mon, Dec 14, 2020 at 3:02 PM Bjorn Helgaas wrote: > > On Mon, Dec 14, 2020 at 10:14:18AM +0100, Ian Kumlien wrote: > > > On Mon, Dec 14, 2020 at 6:44 AM Bjorn Helgaas wrote: > > > > > > > > [+cc Jesse, Tony, David, Jakub, Heiner, l

[PATCH v11 5/8] powerpc: Move ima_get_kexec_buffer() and ima_free_kexec_buffer() to ima

2020-12-14 Thread Lakshmi Ramasubramanian
ima_get_kexec_buffer() retrieves the address and size of the buffer used for carrying forward the IMA measurement logs on kexec from the device tree. ima_free_kexec_buffer() removes the chosen node "linux,ima-kexec-buffer" from the device tree, and frees the buffer used for carrying forward the IM

[PATCH v11 6/8] powerpc: Move arch_ima_add_kexec_buffer to ima

2020-12-14 Thread Lakshmi Ramasubramanian
arch_ima_add_kexec_buffer() sets the address and size of the IMA measurement log in the architecture specific field in struct kimage. This function does not have architecture specific code, but is currently limited to powerpc. Move arch_ima_add_kexec_buffer() to security/integrity/ima/ima_kexec.c

Re: [PATCH v2 net-next] net: phy: mchp: Add 1588 support for LAN8814 Quad PHY

2020-12-14 Thread Andrew Lunn
On Mon, Dec 14, 2020 at 11:26:58PM +0530, Divya Koppera wrote: > This patch add supports for 1588 Hardware Timestamping support > to LAN8814 Quad Phy. It supports L2 and Ipv4 encapsulations. Please could you break this patch up a bit. Add support for link up/down interrupts in one patch. Then add

[PATCH v11 7/8] arm64: Free DTB buffer if fdt_open_into() fails

2020-12-14 Thread Lakshmi Ramasubramanian
create_dtb() function allocates memory for the device tree blob (DTB) and calls fdt_open_into(). If this call fails the memory allocated for the DTB is not freed before returning from create_dtb() thereby leaking memory. Call vfree() to free the memory allocated for the DTB if fdt_open_into() fail

Re: [PATCH v5 12/34] KVM: SVM: Add initial support for a VMGEXIT VMEXIT

2020-12-14 Thread Tom Lendacky
On 12/14/20 9:45 AM, Paolo Bonzini wrote: > On 10/12/20 18:09, Tom Lendacky wrote: >> @@ -3184,6 +3186,8 @@ static int svm_invoke_exit_handler(struct vcpu_svm >> *svm, u64 exit_code) >>   return halt_interception(svm); >>   else if (exit_code == SVM_EXIT_NPF) >>   return npf_int

Re: [PATCH v5 16/34] KVM: SVM: Add support for SEV-ES GHCB MSR protocol function 0x100

2020-12-14 Thread Tom Lendacky
On 12/14/20 9:49 AM, Paolo Bonzini wrote: > On 10/12/20 18:09, Tom Lendacky wrote: >> +    pr_info("SEV-ES guest requested termination: %#llx:%#llx\n", >> +    reason_set, reason_code); >> +    fallthrough; >> +    } > > It would be nice to send these to userspace instead as a f

[PATCH v11 8/8] arm64: Add IMA log information in kimage used for kexec

2020-12-14 Thread Lakshmi Ramasubramanian
Address and size of the buffer containing the IMA measurement log need to be passed from the current kernel to the next kernel on kexec. Any existing "linux,ima-kexec-buffer" property in the device tree needs to be removed and its corresponding memory reservation in the currently running kernel ne

[PATCH v11 2/8] powerpc: Move ima buffer functions to drivers/of/kexec.c

2020-12-14 Thread Lakshmi Ramasubramanian
The functions do_get_kexec_buffer() and get_addr_size_cells(), defined in arch/powerpc/kexec/ima.c, retrieve the address and size of the given property from the device tree blob. These functions do not have architecture specific code, but are currently limited to powerpc. do_get_kexec_buffer() corr

[PATCH v11 1/8] powerpc: Fix compiler warnings and errors

2020-12-14 Thread Lakshmi Ramasubramanian
The function prototype for the functions defined in ima.c for powerpc are given in the header file ima.h. But this header file is not included in ima.c resulting in compilation errors such as given below. arch/powerpc/kexec/ima.c:56:5: error: no previous prototype for 'ima_get_kexec_buffer' [-Wer

[PATCH 5.4 17/36] platform/x86: thinkpad_acpi: Do not report SW_TABLET_MODE on Yoga 11e

2020-12-14 Thread Greg Kroah-Hartman
From: Hans de Goede [ Upstream commit f2eae1888cf22590c38764b8fa3c989c0283870e ] The Yoga 11e series has 2 accelerometers described by a BOSC0200 ACPI node. This setup relies on a Windows service which reads both accelerometers and then calculates the angle between the 2 halves to determine lapt

[PATCH 5.4 35/36] mm/zsmalloc.c: drop ZSMALLOC_PGTABLE_MAPPING

2020-12-14 Thread Greg Kroah-Hartman
From: Minchan Kim commit e91d8d78237de8d7120c320b3645b7100848f24d upstream. While I was doing zram testing, I found sometimes decompression failed since the compression buffer was corrupted. With investigation, I found below commit calls cond_resched unconditionally so it could make a problem i

[PATCH 5.9 010/105] powerpc/64s: Fix hash ISA v3.0 TLBIEL instruction generation

2020-12-14 Thread Greg Kroah-Hartman
From: Nicholas Piggin [ Upstream commit 5844cc25fd121074de7895181a2fa1ce100a0fdd ] A typo has the R field of the instruction assigned by lucky dip a la register allocator. Fixes: d4748276ae14c ("powerpc/64s: Improve local TLB flush for boot and MCE on POWER9") Signed-off-by: Nicholas Piggin R

[PATCH 5.4 21/36] platform/x86: touchscreen_dmi: Add info for the Irbis TW118 tablet

2020-12-14 Thread Greg Kroah-Hartman
From: Hans de Goede [ Upstream commit c9aa128080cbce92f8715a9328f88d8ca3134279 ] Add touchscreen info for the Irbis TW118 tablet. Reported-and-tested-by: russianneuromancer Signed-off-by: Hans de Goede Link: https://lore.kernel.org/r/20201124110454.114286-1-hdego...@redhat.com Signed-off-by:

[PATCH 5.4 16/36] arm64: tegra: Disable the ACONNECT for Jetson TX2

2020-12-14 Thread Greg Kroah-Hartman
From: Jon Hunter [ Upstream commit fb319496935b7475a863a00c76895e8bb3216704 ] Commit ff4c371d2bc0 ("arm64: defconfig: Build ADMA and ACONNECT driver") enable the Tegra ADMA and ACONNECT drivers and this is causing resume from system suspend to fail on Jetson TX2. Resume is failing because the AC

Re: [PATCH rdma-rc 0/5] Fixes to v5.10

2020-12-14 Thread Jason Gunthorpe
On Sun, Dec 13, 2020 at 03:29:35PM +0200, Leon Romanovsky wrote: > From: Leon Romanovsky > > Hi, > > This is another series with various fixes that can easily go to -next too. > > Thanks > > Leon Romanovsky (1): > RDMA/cma: Don't overwrite sgid_attr after device is released > > Maor Gottlie

Re: [PATCH v2 net-next] net: phy: mchp: Add 1588 support for LAN8814 Quad PHY

2020-12-14 Thread Andrew Lunn
> +struct lan8814_priv { > + const struct kszphy_type *type; > + int led_mode; > + bool rmii_ref_clk_sel; > + bool rmii_ref_clk_sel_val; > + u64 stats[ARRAY_SIZE(kszphy_hw_stats)]; > + struct mii_timestamper mii_ts; > + struct phy_device *phydev; > + struct lan8814_p

[PATCH 5.4 12/36] ibmvnic: skip tx timeout reset while in resetting

2020-12-14 Thread Greg Kroah-Hartman
From: Lijun Pan [ Upstream commit 855a631a4c11458a9cef1ab79c1530436aa95fae ] Sometimes it takes longer than 5 seconds (watchdog timeout) to complete failover, migration, and other resets. In stead of scheduling another timeout reset, we wait for the current one to complete. Suggested-by: Brian

[PATCH 5.4 15/36] soc: fsl: dpio: Get the cpumask through cpumask_of(cpu)

2020-12-14 Thread Greg Kroah-Hartman
From: Hao Si [ Upstream commit 2663b3388551230cbc4606a40fabf3331ceb59e4 ] The local variable 'cpumask_t mask' is in the stack memory, and its address is assigned to 'desc->affinity' in 'irq_set_affinity_hint()'. But the memory area where this variable is located is at risk of being modified. Du

[PATCH 5.9 001/105] Kbuild: do not emit debug info for assembly with LLVM_IAS=1

2020-12-14 Thread Greg Kroah-Hartman
From: Nick Desaulniers commit b8a9092330da2030496ff357272f342eb970d51b upstream. Clang's integrated assembler produces the warning for assembly files: warning: DWARF2 only supports one section per compilation unit If -Wa,-gdwarf-* is unspecified, then debug info is not emitted for assembly sou

[PATCH 5.4 27/36] mmc: block: Fixup condition for CMD13 polling for RPMB requests

2020-12-14 Thread Greg Kroah-Hartman
From: Bean Huo commit 6246d7c9d15aaff0bc3863f67900c6a6e6be921b upstream. The CMD13 polling is needed for commands with R1B responses. In commit a0d4c7eb71dd ("mmc: block: Add CMD13 polling for MMC IOCTLS with R1B response"), the intent was to introduce this for requests targeted to the RPMB part

[PATCH 5.4 28/36] drm/i915/display/dp: Compute the correct slice count for VDSC on DP

2020-12-14 Thread Greg Kroah-Hartman
From: Manasi Navare commit f6cbe49be65ed800863ac5ba69057363f9c2 upstream. This patch fixes the slice count computation algorithm for calculating the slice count based on Peak pixel rate and the max slice width allowed on the DSC engines. We need to ensure slice count > min slice count req as

[PATCH 5.4 32/36] x86/mm/mem_encrypt: Fix definition of PMD_FLAGS_DEC_WP

2020-12-14 Thread Greg Kroah-Hartman
From: Arvind Sankar commit 29ac40cbed2bc06fa218ca25d7f5e280d3d08a25 upstream. The PAT bit is in different locations for 4k and 2M/1G page table entries. Add a definition for _PAGE_LARGE_CACHE_MASK to represent the three caching bits (PWT, PCD, PAT), similar to _PAGE_CACHE_MASK for 4k pages, and

[PATCH 5.4 18/36] platform/x86: thinkpad_acpi: Add BAT1 is primary battery quirk for Thinkpad Yoga 11e 4th gen

2020-12-14 Thread Greg Kroah-Hartman
From: Hans de Goede [ Upstream commit c986a7024916c92a775fc8d853fba3cae1d5fde4 ] The Thinkpad Yoga 11e 4th gen with the N3450 / Celeron CPU only has one battery which is named BAT1 instead of the expected BAT0, add a quirk for this. This fixes not being able to set the charging tresholds on this

[PATCH 5.4 14/36] spi: spi-nxp-fspi: fix fspi panic by unexpected interrupts

2020-12-14 Thread Greg Kroah-Hartman
From: Ran Wang [ Upstream commit 71d80563b0760a411cd90a3680536f5d887fff6b ] Given the case that bootloader(such as UEFI)'s FSPI driver might not handle all interrupts before loading kernel, those legacy interrupts would assert immidiately once kernel's FSPI driver enable them. Further, if it was

Re: [PATCH -tip 23/32] sched: Add a per-thread core scheduling interface

2020-12-14 Thread Joel Fernandes
> diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c > index cffdfab..50c31f3 100644 > --- a/kernel/sched/debug.c > +++ b/kernel/sched/debug.c > @@ -1030,6 +1030,7 @@ void proc_sched_show_task(struct task_struct *p, struct > pid_namespace *ns, > > #ifdef CONFIG_SCHED_CORE > __PS("co

紧急回复此邮件 / Urgent Reply To This Mail

2020-12-14 Thread John Galvan
先生/女士, 我可以获取有关一项合法业务交易建议的非常重要的信息,该提议将使我们双方受益,£15,500,000.00 百万磅。 如果我可以独自完成任务,那么我就不会麻烦与您联系。 最终,我需要一个诚实的外国人在完成这项业务交易中发挥重要作用。 回复此邮件以获取有关此业务交易的更多信息:galvan.joh...@outlook.com 问候, 约翰·加尔文先生 --- Sir/Madam, I have access to very vital information for a Legit

[PATCH 5.4 24/36] Input: cm109 - do not stomp on control URB

2020-12-14 Thread Greg Kroah-Hartman
From: Dmitry Torokhov commit 82e06090473289ce63e23fdeb8737aad59b10645 upstream. We need to make sure we are not stomping on the control URB that was issued when opening the device when attempting to toggle buzzer. To do that we need to mark it as pending in cm109_open(). Reported-and-tested-by:

[PATCH v5 4/4] e1000e: Export S0ix flags to ethtool

2020-12-14 Thread Mario Limonciello
This flag can be used by an end user to disable S0ix flows on a buggy system or by an OEM for development purposes. If you need this flag to be persisted across reboots, it's suggested to use a udev rule to call adjust it until the kernel could have your configuration in a disallow list. Signed-o

[PATCH v5 0/4] Improve s0ix flows for systems i219LM

2020-12-14 Thread Mario Limonciello
commit e086ba2fccda ("e1000e: disable s0ix entry and exit flows for ME systems") disabled s0ix flows for systems that have various incarnations of the i219-LM ethernet controller. This was done because of some regressions caused by an earlier commit 632fbd5eb5b0e ("e1000e: fix S0ix flows for cable

[PATCH v5 1/4] e1000e: Only run S0ix flows if shutdown succeeded

2020-12-14 Thread Mario Limonciello
If the shutdown failed, the part will be thawed and running S0ix flows will put it into an undefined state. Reported-by: Alexander Duyck Reviewed-by: Alexander Duyck Signed-off-by: Mario Limonciello --- drivers/net/ethernet/intel/e1000e/netdev.c | 13 +++-- 1 file changed, 7 insertions

linux-next: Signed-off-by missing for commit in the cifs tree

2020-12-14 Thread Stephen Rothwell
Hi all, Commits 425f40482491 ("cifs: fix uninitialized variable in smb3_fs_context_parse_param") 8cc9a66ea70e ("cifs: update mnt_cifs_flags during reconfigure") are missing a Signed-off-by from their committer. -- Cheers, Stephen Rothwell pgp_yCAq79gJ4.pgp Description: OpenPGP digital s

[PATCH v5 3/4] Revert "e1000e: disable s0ix entry and exit flows for ME systems"

2020-12-14 Thread Mario Limonciello
commit e086ba2fccda ("e1000e: disable s0ix entry and exit flows for ME systems") disabled s0ix flows for systems that have various incarnations of the i219-LM ethernet controller. This changed caused power consumption regressions on the following shipping Dell Comet Lake based laptops: * Latitude

[PATCH v5 2/4] e1000e: bump up timeout to wait when ME un-configures ULP mode

2020-12-14 Thread Mario Limonciello
Per guidance from Intel ethernet architecture team, it may take up to 1 second for unconfiguring ULP mode. However in practice this seems to be taking up to 2 seconds on some Lenovo machines. Detect scenarios that take more than 1 second but less than 2.5 seconds and emit a warning on resume for

RE: [PATCH v4 0/4] Improve s0ix flows for systems i219LM

2020-12-14 Thread Limonciello, Mario
> Hi All, > > Sasha (and the other intel-wired-lan folks), thank you for investigating this > further and for coming up with a better solution. > > Mario, thank you for implementing the new scheme. > Sure. > I've tested this patch set on a Lenovo X1C8 with vPRO and AMT enabled in the > BIOS >

linux-next: Signed-off-by missing for commit in the pidfd tree

2020-12-14 Thread Stephen Rothwell
Hi all, Commits 716e343f014e ("selftests/timens: added selftest for /proc/stat btime") 3ae700ecfae9 ("fs/proc: apply the time namespace offset to /proc/stat btime") 31909e3330c8 ("timens: additional helper functions for boottime offset handling") are missing a Signed-off-by from their com

Re: [PATCH v2] KVM: SVM: use vmsave/vmload for saving/restoring additional host state

2020-12-14 Thread Sean Christopherson
+Andy, who provided a lot of feedback on v1. On Mon, Dec 14, 2020, Michael Roth wrote: Cc: Andy Lutomirski > Suggested-by: Tom Lendacky > Signed-off-by: Michael Roth > --- > v2: > * rebase on latest kvm/next > * move VMLOAD to just after vmexit so we can use it to handle all FS/GS > host st

Re: [PATCH v3] s390/vfio-ap: clean up vfio_ap resources when KVM pointer invalidated

2020-12-14 Thread Tony Krowiak
On 12/14/20 12:07 PM, Greg KH wrote: On Mon, Dec 14, 2020 at 11:56:17AM -0500, Tony Krowiak wrote: The vfio_ap device driver registers a group notifier with VFIO when the file descriptor for a VFIO mediated device for a KVM guest is opened to receive notification that the KVM pointer is set (

Re: [PATCH v5 12/34] KVM: SVM: Add initial support for a VMGEXIT VMEXIT

2020-12-14 Thread Sean Christopherson
On Mon, Dec 14, 2020, Tom Lendacky wrote: > On 12/14/20 9:45 AM, Paolo Bonzini wrote: > > On 10/12/20 18:09, Tom Lendacky wrote: > >> @@ -3184,6 +3186,8 @@ static int svm_invoke_exit_handler(struct vcpu_svm > >> *svm, u64 exit_code) > >>   return halt_interception(svm); > >>   else if (

Re: [PATCH v3] s390/vfio-ap: clean up vfio_ap resources when KVM pointer invalidated

2020-12-14 Thread Greg KH
On Mon, Dec 14, 2020 at 02:39:17PM -0500, Tony Krowiak wrote: > > > On 12/14/20 12:07 PM, Greg KH wrote: > > On Mon, Dec 14, 2020 at 11:56:17AM -0500, Tony Krowiak wrote: > > > The vfio_ap device driver registers a group notifier with VFIO when the > > > file descriptor for a VFIO mediated device

Re: linux-next: Signed-off-by missing for commit in the cifs tree

2020-12-14 Thread Steve French
fixed On Mon, Dec 14, 2020 at 1:32 PM Stephen Rothwell wrote: > > Hi all, > > Commits > > 425f40482491 ("cifs: fix uninitialized variable in > smb3_fs_context_parse_param") > 8cc9a66ea70e ("cifs: update mnt_cifs_flags during reconfigure") > > are missing a Signed-off-by from their committer.

Re: [PATCH -tip 23/32] sched: Add a per-thread core scheduling interface

2020-12-14 Thread chris hyser
On 12/14/20 2:31 PM, Joel Fernandes wrote: diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c index cffdfab..50c31f3 100644 --- a/kernel/sched/debug.c +++ b/kernel/sched/debug.c @@ -1030,6 +1030,7 @@ void proc_sched_show_task(struct task_struct *p, struct pid_namespace *ns, #ifdef CON

Re: [PATCH v2 1/2] arm64: dts: broadcom: clear the warnings caused by empty dma-ranges

2020-12-14 Thread Arnd Bergmann
On Mon, Dec 14, 2020 at 8:09 PM Ray Jui wrote: > On 11/28/2020 1:58 AM, Arnd Bergmann wrote: > > On Sat, Nov 28, 2020 at 5:53 AM Florian Fainelli > > wrote: > >> > >> On Fri, 16 Oct 2020 17:08:32 +0800, Zhen Lei > >> wrote: > >>> The scripts/dtc/checks.c requires that the node have empty "dma-

Re: [PATCH v5 27/34] KVM: SVM: Add support for booting APs for an SEV-ES guest

2020-12-14 Thread Tom Lendacky
On 12/14/20 10:03 AM, Paolo Bonzini wrote: > On 10/12/20 18:10, Tom Lendacky wrote: >> From: Tom Lendacky >> >> Typically under KVM, an AP is booted using the INIT-SIPI-SIPI sequence, >> where the guest vCPU register state is updated and then the vCPU is VMRUN >> to begin execution of the AP. For

Re: linux-next: manual merge of the parisc-hd tree with the asm-generic tree

2020-12-14 Thread Stephen Rothwell
Hi all, On Mon, 2 Nov 2020 12:38:41 +1100 Stephen Rothwell wrote: > > Today's linux-next merge of the parisc-hd tree got a conflict in: > > arch/parisc/kernel/time.c > > between commit: > > 686092e7daaa ("parisc: use legacy_timer_tick") > > from the asm-generic tree and commit: > > 3b

Re: [PATCH v3] s390/vfio-ap: clean up vfio_ap resources when KVM pointer invalidated

2020-12-14 Thread Tony Krowiak
On 12/14/20 2:43 PM, Greg KH wrote: On Mon, Dec 14, 2020 at 02:39:17PM -0500, Tony Krowiak wrote: On 12/14/20 12:07 PM, Greg KH wrote: On Mon, Dec 14, 2020 at 11:56:17AM -0500, Tony Krowiak wrote: The vfio_ap device driver registers a group notifier with VFIO when the file descriptor for a

Re: linux-next: build warnings after merge of the drm tree

2020-12-14 Thread Stephen Rothwell
Hi all, On Mon, 16 Nov 2020 10:44:44 +1100 Stephen Rothwell wrote: > > On Thu, 5 Nov 2020 17:50:31 +1100 Stephen Rothwell > wrote: > > > > After merging the drm tree, today's linux-next build (htmldocs) produced > > these warnings: > > > > include/linux/dma-buf-map.h:106: warning: Excess func

Re: [GIT PULL for v5.11-rc1] media updates

2020-12-14 Thread pr-tracker-bot
The pull request you sent on Mon, 14 Dec 2020 09:21:32 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media > tags/media/v5.11-1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/fab0fca1da5cdc48be051715cd9787df04fdce3a Thank you! -- Deet-doot-do

Re: [GIT PULL] auxdisplay for v5.11

2020-12-14 Thread pr-tracker-bot
The pull request you sent on Sun, 13 Dec 2020 05:24:50 +0100: > https://github.com/ojeda/linux.git tags/auxdisplay-for-linus-v5.11 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/bcc68bd8161261ceeb1a4ab02b5265758944f90d Thank you! -- Deet-doot-dot, I am a bot. https:

Re: linux-next: build warning after merge of the jc_docs tree

2020-12-14 Thread Stephen Rothwell
Hi all, On Mon, 16 Nov 2020 17:03:03 +1100 Stephen Rothwell wrote: > > After merging the jc_docs tree, today's linux-next build (htmldocs) > produced this warning: > > Documentation/translations/zh_CN/filesystems/tmpfs.rst:5: WARNING: undefined > label: tmpfs_index (if the link has no caption

Re: [git pull] drm for 5.11-rc1

2020-12-14 Thread pr-tracker-bot
The pull request you sent on Fri, 11 Dec 2020 13:52:21 +1000: > git://anongit.freedesktop.org/drm/drm tags/drm-next-2020-12-11 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/1d36dffa5d887715dacca0f717f4519b7be5e498 Thank you! -- Deet-doot-dot, I am a bot. https://ko

<    3   4   5   6   7   8   9   10   11   12   >