[PATCH AUTOSEL 4.4 07/20] ARM: 8874/1: mm: only adjust sections of valid mm structures

2019-09-04 Thread Sasha Levin
From: Doug Berger [ Upstream commit c51bc12d06b3a5494fbfcbd788a8e307932a06e9 ] A timing hazard exists when an early fork/exec thread begins exiting and sets its mm pointer to NULL while a separate core tries to update the section information. This commit ensures that the mm pointer is not NULL

[PATCH AUTOSEL 4.4 08/20] r8152: Set memory to all 0xFFs on failed reg reads

2019-09-04 Thread Sasha Levin
From: Prashant Malani [ Upstream commit f53a7ad189594a112167efaf17ea8d0242b5ac00 ] get_registers() blindly copies the memory written to by the usb_control_msg() call even if the underlying urb failed. This could lead to junk register values being read by the driver, since some indirect callers

[PATCH AUTOSEL 4.4 10/20] netfilter: nf_conntrack_ftp: Fix debug output

2019-09-04 Thread Sasha Levin
From: Thomas Jarosch [ Upstream commit 3a069024d371125227de3ac8fa74223fcf473520 ] The find_pattern() debug output was printing the 'skip' character. This can be a NULL-byte and messes up further pr_debug() output. Output without the fix: kernel: nf_conntrack_ftp: Pattern matches! kernel: nf_con

[PATCH AUTOSEL 4.4 04/20] NFSv4: Fix return values for nfs4_file_open()

2019-09-04 Thread Sasha Levin
From: Trond Myklebust [ Upstream commit 90cf500e338ab3f3c0f126ba37e36fb6a9058441 ] Currently, we are translating RPC level errors such as timeouts, as well as interrupts etc into EOPENSTALE, which forces a single replay of the open attempt. What we actually want to do is force the replay only in

[PATCH AUTOSEL 4.4 05/20] NFS: Fix initialisation of I/O result struct in nfs_pgio_rpcsetup

2019-09-04 Thread Sasha Levin
From: Trond Myklebust [ Upstream commit 17d8c5d14570c581f2a8aa01edc7998582ab ] Initialise the result count to 0 rather than initialising it to the argument count. The reason is that we want to ensure we record the I/O stats correctly in the case where an error is returned (for instance in th

[PATCH AUTOSEL 4.9 26/27] tools/power turbostat: fix buffer overrun

2019-09-04 Thread Sasha Levin
From: Naoya Horiguchi [ Upstream commit eeb71c950bc6eee460f2070643ce137e067b234c ] turbostat could be terminated by general protection fault on some latest hardwares which (for example) support 9 levels of C-states and show 18 "tADDED" lines. That bloats the total output and finally causes buffe

[PATCH AUTOSEL 4.9 24/27] perf/x86/amd/ibs: Fix sample bias for dispatched micro-ops

2019-09-04 Thread Sasha Levin
From: Kim Phillips [ Upstream commit 0f4cd769c410e2285a4e9873a684d90423f03090 ] When counting dispatched micro-ops with cnt_ctl=1, in order to prevent sample bias, IBS hardware preloads the least significant 7 bits of current count (IbsOpCurCnt) with random values, such that, after the interrupt

[PATCH AUTOSEL 4.9 19/27] cifs: Use kzfree() to zero out the password

2019-09-04 Thread Sasha Levin
From: Dan Carpenter [ Upstream commit 478228e57f81f6cb60798d54fc02a74ea7dd267e ] It's safer to zero out the password so that it can never be disclosed. Fixes: 0c219f5799c7 ("cifs: set domainName when a domain-key is used in multiuser") Signed-off-by: Dan Carpenter Signed-off-by: Steve French

[PATCH AUTOSEL 4.9 17/27] NFSv2: Fix write regression

2019-09-04 Thread Sasha Levin
From: Trond Myklebust [ Upstream commit d33d4beb522987d1c305c12500796f9be3687dee ] Ensure we update the write result count on success, since the RPC call itself does not do so. Reported-by: Jan Stancek Reported-by: Naresh Kamboju Signed-off-by: Trond Myklebust Tested-by: Jan Stancek Signed-

[PATCH AUTOSEL 4.9 23/27] perf/x86/intel: Restrict period on Nehalem

2019-09-04 Thread Sasha Levin
From: Josh Hunt [ Upstream commit 44d3bbb6f5e501b873218142fe08cdf62a4ac1f3 ] We see our Nehalem machines reporting 'perfevents: irq loop stuck!' in some cases when using perf: perfevents: irq loop stuck! WARNING: CPU: 0 PID: 3485 at arch/x86/events/intel/core.c:2282 intel_pmu_handle_irq+0x37b/

[PATCH AUTOSEL 4.9 22/27] sky2: Disable MSI on yet another ASUS boards (P6Xxxx)

2019-09-04 Thread Sasha Levin
From: Takashi Iwai [ Upstream commit 189308d5823a089b56e2299cd96589507dac7319 ] A similar workaround for the suspend/resume problem is needed for yet another ASUS machines, P6X models. Like the previous fix, the BIOS doesn't provide the standard DMI_SYS_* entry, so again DMI_BOARD_* entries are

[PATCH AUTOSEL 4.9 20/27] x86/build: Add -Wnoaddress-of-packed-member to REALMODE_CFLAGS, to silence GCC9 build warning

2019-09-04 Thread Sasha Levin
From: Linus Torvalds [ Upstream commit 42e0e95474fc6076b5cd68cab8fa0340a1797a72 ] One of the very few warnings I have in the current build comes from arch/x86/boot/edd.c, where I get the following with a gcc9 build: arch/x86/boot/edd.c: In function ‘query_edd’: arch/x86/boot/edd.c:148:11:

[PATCH AUTOSEL 4.9 16/27] NFSv2: Fix eof handling

2019-09-04 Thread Sasha Levin
From: Trond Myklebust [ Upstream commit 71affe9be45a5c60b9772e1b2701710712637274 ] If we received a reply from the server with a zero length read and no error, then that implies we are at eof. Signed-off-by: Trond Myklebust Signed-off-by: Sasha Levin --- fs/nfs/proc.c | 3 ++- 1 file changed

[PATCH AUTOSEL 4.9 05/27] batman-adv: fix uninit-value in batadv_netlink_get_ifindex()

2019-09-04 Thread Sasha Levin
From: Eric Dumazet [ Upstream commit 3ee1bb7aae97324ec9078da1f00cb2176919563f ] batadv_netlink_get_ifindex() needs to make sure user passed a correct u32 attribute. syzbot reported : BUG: KMSAN: uninit-value in batadv_netlink_dump_hardif+0x70d/0x880 net/batman-adv/netlink.c:968 CPU: 1 PID: 117

[PATCH AUTOSEL 4.9 10/27] ARM: 8874/1: mm: only adjust sections of valid mm structures

2019-09-04 Thread Sasha Levin
From: Doug Berger [ Upstream commit c51bc12d06b3a5494fbfcbd788a8e307932a06e9 ] A timing hazard exists when an early fork/exec thread begins exiting and sets its mm pointer to NULL while a separate core tries to update the section information. This commit ensures that the mm pointer is not NULL

[PATCH AUTOSEL 4.9 11/27] batman-adv: Only read OGM tvlv_len after buffer len check

2019-09-04 Thread Sasha Levin
From: Sven Eckelmann [ Upstream commit a15d56a60760aa9dbe26343b9a0ac5228f35d445 ] Multiple batadv_ogm_packet can be stored in an skbuff. The functions batadv_iv_ogm_send_to_if()/batadv_iv_ogm_receive() use batadv_iv_ogm_aggr_packet() to check if there is another additional batadv_ogm_packet in t

Re: [PATCH] nvme-core: Fix subsystem instance mismatches

2019-09-04 Thread Christoph Hellwig
On Wed, Sep 04, 2019 at 09:54:45AM -0600, Keith Busch wrote: > Can we just ensure there is never a matching controller then? This > patch will accomplish that and simpler than wrapping the instance in a > refcount'ed object: > > http://lists.infradead.org/pipermail/linux-nvme/2019-May/024142.html

[PATCH AUTOSEL 4.9 07/27] NFS: Fix initialisation of I/O result struct in nfs_pgio_rpcsetup

2019-09-04 Thread Sasha Levin
From: Trond Myklebust [ Upstream commit 17d8c5d14570c581f2a8aa01edc7998582ab ] Initialise the result count to 0 rather than initialising it to the argument count. The reason is that we want to ensure we record the I/O stats correctly in the case where an error is returned (for instance in th

[PATCH AUTOSEL 4.9 03/27] ARM: OMAP2+: Fix omap4 errata warning on other SoCs

2019-09-04 Thread Sasha Levin
From: Tony Lindgren [ Upstream commit 45da5e09dd32fa98c32eaafe2513db6bd75e2f4f ] We have errata i688 workaround produce warnings on SoCs other than omap4 and omap5: omap4_sram_init:Unable to allocate sram needed to handle errata I688 omap4_sram_init:Unable to get sram pool needed to handle erra

[PATCH AUTOSEL 4.9 04/27] s390/bpf: use 32-bit index for tail calls

2019-09-04 Thread Sasha Levin
From: Ilya Leoshkevich [ Upstream commit 91b4db5313a2c793aabc2143efb8ed0cf0fdd097 ] "p runtime/jit: pass > 32bit index to tail_call" fails when bpf_jit_enable=1, because the tail call is not executed. This in turn is because the generated code assumes index is 64-bit, while it must be 32-bit, a

[PATCH AUTOSEL 4.14 35/36] tools/power turbostat: fix buffer overrun

2019-09-04 Thread Sasha Levin
From: Naoya Horiguchi [ Upstream commit eeb71c950bc6eee460f2070643ce137e067b234c ] turbostat could be terminated by general protection fault on some latest hardwares which (for example) support 9 levels of C-states and show 18 "tADDED" lines. That bloats the total output and finally causes buffe

[PATCH AUTOSEL 4.14 34/36] tools/power x86_energy_perf_policy: Fix argument parsing

2019-09-04 Thread Sasha Levin
From: "Zephaniah E. Loss-Cutler-Hull" [ Upstream commit 03531482402a2bc4ab93cf6dde46833775e035e9 ] The -w argument in x86_energy_perf_policy currently triggers an unconditional segfault. This is because the argument string reads: "+a:c:dD:E:e:f:m:M:rt:u:vw" and yet the argument handler expects

[PATCH AUTOSEL 4.14 31/36] amd-xgbe: Fix error path in xgbe_mod_init()

2019-09-04 Thread Sasha Levin
From: YueHaibing [ Upstream commit b6b4dc4c1fa7f1c99398e7dc85758049645e9588 ] In xgbe_mod_init(), we should do cleanup if some error occurs Reported-by: Hulk Robot Fixes: efbaa828330a ("amd-xgbe: Add support to handle device renaming") Fixes: 47f164deab22 ("amd-xgbe: Add PCI device support") S

[PATCH AUTOSEL 4.14 33/36] tools/power x86_energy_perf_policy: Fix "uninitialized variable" warnings at -O2

2019-09-04 Thread Sasha Levin
From: Ben Hutchings [ Upstream commit adb8049097a9ec4acd09fbd3aa8636199a78df8a ] x86_energy_perf_policy first uses __get_cpuid() to check the maximum CPUID level and exits if it is too low. It then assumes that later calls will succeed (which I think is architecturally guaranteed). It also ass

[PATCH AUTOSEL 4.14 29/36] perf/x86/intel: Restrict period on Nehalem

2019-09-04 Thread Sasha Levin
From: Josh Hunt [ Upstream commit 44d3bbb6f5e501b873218142fe08cdf62a4ac1f3 ] We see our Nehalem machines reporting 'perfevents: irq loop stuck!' in some cases when using perf: perfevents: irq loop stuck! WARNING: CPU: 0 PID: 3485 at arch/x86/events/intel/core.c:2282 intel_pmu_handle_irq+0x37b/

[PATCH AUTOSEL 4.14 27/36] sky2: Disable MSI on yet another ASUS boards (P6Xxxx)

2019-09-04 Thread Sasha Levin
From: Takashi Iwai [ Upstream commit 189308d5823a089b56e2299cd96589507dac7319 ] A similar workaround for the suspend/resume problem is needed for yet another ASUS machines, P6X models. Like the previous fix, the BIOS doesn't provide the standard DMI_SYS_* entry, so again DMI_BOARD_* entries are

[PATCH AUTOSEL 4.14 25/36] x86/build: Add -Wnoaddress-of-packed-member to REALMODE_CFLAGS, to silence GCC9 build warning

2019-09-04 Thread Sasha Levin
From: Linus Torvalds [ Upstream commit 42e0e95474fc6076b5cd68cab8fa0340a1797a72 ] One of the very few warnings I have in the current build comes from arch/x86/boot/edd.c, where I get the following with a gcc9 build: arch/x86/boot/edd.c: In function ‘query_edd’: arch/x86/boot/edd.c:148:11:

Re: [PATCH] nvme-core: Fix subsystem instance mismatches

2019-09-04 Thread Logan Gunthorpe
On 2019-09-04 9:54 a.m., Keith Busch wrote: > On Wed, Sep 04, 2019 at 05:42:15PM +0200, Christoph Hellwig wrote: >> On Wed, Sep 04, 2019 at 08:44:27AM -0600, Keith Busch wrote: >>> Let me step through an example: >>> >>> Ctrl A gets instance 0. >>> >>> Its subsystem gets the same instance, a

[PATCH AUTOSEL 4.14 18/36] x86/apic: Fix arch_dynirq_lower_bound() bug for DT enabled machines

2019-09-04 Thread Sasha Levin
From: Thomas Gleixner [ Upstream commit 3e5bedc2c258341702ddffbd7688c5e6eb01eafa ] Rahul Tanwar reported the following bug on DT systems: > 'ioapic_dynirq_base' contains the virtual IRQ base number. Presently, it is > updated to the end of hardware IRQ numbers but this is done only when IOAPIC

[PATCH AUTOSEL 4.14 17/36] r8152: Set memory to all 0xFFs on failed reg reads

2019-09-04 Thread Sasha Levin
From: Prashant Malani [ Upstream commit f53a7ad189594a112167efaf17ea8d0242b5ac00 ] get_registers() blindly copies the memory written to by the usb_control_msg() call even if the underlying urb failed. This could lead to junk register values being read by the driver, since some indirect callers

[PATCH AUTOSEL 4.14 21/36] NFSv2: Fix write regression

2019-09-04 Thread Sasha Levin
From: Trond Myklebust [ Upstream commit d33d4beb522987d1c305c12500796f9be3687dee ] Ensure we update the write result count on success, since the RPC call itself does not do so. Reported-by: Jan Stancek Reported-by: Naresh Kamboju Signed-off-by: Trond Myklebust Tested-by: Jan Stancek Signed-

[PATCH AUTOSEL 4.14 15/36] batman-adv: Only read OGM tvlv_len after buffer len check

2019-09-04 Thread Sasha Levin
From: Sven Eckelmann [ Upstream commit a15d56a60760aa9dbe26343b9a0ac5228f35d445 ] Multiple batadv_ogm_packet can be stored in an skbuff. The functions batadv_iv_ogm_send_to_if()/batadv_iv_ogm_receive() use batadv_iv_ogm_aggr_packet() to check if there is another additional batadv_ogm_packet in t

[PATCH AUTOSEL 4.14 12/36] Kconfig: Fix the reference to the IDT77105 Phy driver in the description of ATM_NICSTAR_USE_IDT77105

2019-09-04 Thread Sasha Levin
From: Christophe JAILLET [ Upstream commit cd9d4ff9b78fcd0fc4708900ba3e52e71e1a7690 ] This should be IDT77105, not IDT77015. Signed-off-by: Christophe JAILLET Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/atm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH AUTOSEL 4.14 09/36] NFSv4: Fix return values for nfs4_file_open()

2019-09-04 Thread Sasha Levin
From: Trond Myklebust [ Upstream commit 90cf500e338ab3f3c0f126ba37e36fb6a9058441 ] Currently, we are translating RPC level errors such as timeouts, as well as interrupts etc into EOPENSTALE, which forces a single replay of the open attempt. What we actually want to do is force the replay only in

[PATCH AUTOSEL 4.14 23/36] cifs: set domainName when a domain-key is used in multiuser

2019-09-04 Thread Sasha Levin
From: Ronnie Sahlberg [ Upstream commit f2aee329a68f5a907bcff11a109dfe17c0b41aeb ] RHBZ: 1710429 When we use a domain-key to authenticate using multiuser we must also set the domainnmame for the new volume as it will be used and passed to the server in the NTLMSSP Domain-name. Signed-off-by: R

[PATCH AUTOSEL 4.14 08/36] netfilter: xt_nfacct: Fix alignment mismatch in xt_nfacct_match_info

2019-09-04 Thread Sasha Levin
From: Juliana Rodrigueiro [ Upstream commit 89a26cd4b501e9511d3cd3d22327fc76a75a38b3 ] When running a 64-bit kernel with a 32-bit iptables binary, the size of the xt_nfacct_match_info struct diverges. kernel: sizeof(struct xt_nfacct_match_info) : 40 iptables: sizeof(struct xt_nfacct_mat

[PATCH AUTOSEL 4.19 52/52] net: seeq: Fix the function used to release some memory in an error handling path

2019-09-04 Thread Sasha Levin
From: Christophe JAILLET [ Upstream commit e1e54ec7fb55501c33b117c111cb0a045b8eded2 ] In commit 99cd149efe82 ("sgiseeq: replace use of dma_cache_wback_inv"), a call to 'get_zeroed_page()' has been turned into a call to 'dma_alloc_coherent()'. Only the remove function has been updated to turn the

[PATCH AUTOSEL 4.14 05/36] s390/bpf: use 32-bit index for tail calls

2019-09-04 Thread Sasha Levin
From: Ilya Leoshkevich [ Upstream commit 91b4db5313a2c793aabc2143efb8ed0cf0fdd097 ] "p runtime/jit: pass > 32bit index to tail_call" fails when bpf_jit_enable=1, because the tail call is not executed. This in turn is because the generated code assumes index is 64-bit, while it must be 32-bit, a

[PATCH AUTOSEL 4.19 44/52] perf/x86/intel: Restrict period on Nehalem

2019-09-04 Thread Sasha Levin
From: Josh Hunt [ Upstream commit 44d3bbb6f5e501b873218142fe08cdf62a4ac1f3 ] We see our Nehalem machines reporting 'perfevents: irq loop stuck!' in some cases when using perf: perfevents: irq loop stuck! WARNING: CPU: 0 PID: 3485 at arch/x86/events/intel/core.c:2282 intel_pmu_handle_irq+0x37b/

[PATCH AUTOSEL 4.14 02/36] s390/bpf: fix lcgr instruction encoding

2019-09-04 Thread Sasha Levin
From: Ilya Leoshkevich [ Upstream commit bb2d267c448f4bc3a3389d97c56391cb779178ae ] "masking, test in bounds 3" fails on s390, because BPF_ALU64_IMM(BPF_NEG, BPF_REG_2, 0) ignores the top 32 bits of BPF_REG_2. The reason is that JIT emits lcgfr instead of lcgr. The associated comment indicates t

[PATCH AUTOSEL 4.14 10/36] NFSv4: Fix return value in nfs_finish_open()

2019-09-04 Thread Sasha Levin
From: Trond Myklebust [ Upstream commit 9821421a291b548ef4369c6998745baa36ddecd5 ] If the file turns out to be of the wrong type after opening, we want to revalidate the path and retry, so return EOPENSTALE rather than ESTALE. Signed-off-by: Trond Myklebust Signed-off-by: Sasha Levin --- fs/

[PATCH AUTOSEL 4.19 48/52] tools/power x86_energy_perf_policy: Fix "uninitialized variable" warnings at -O2

2019-09-04 Thread Sasha Levin
From: Ben Hutchings [ Upstream commit adb8049097a9ec4acd09fbd3aa8636199a78df8a ] x86_energy_perf_policy first uses __get_cpuid() to check the maximum CPUID level and exits if it is too low. It then assumes that later calls will succeed (which I think is architecturally guaranteed). It also ass

[PATCH AUTOSEL 4.14 03/36] ARM: OMAP2+: Fix omap4 errata warning on other SoCs

2019-09-04 Thread Sasha Levin
From: Tony Lindgren [ Upstream commit 45da5e09dd32fa98c32eaafe2513db6bd75e2f4f ] We have errata i688 workaround produce warnings on SoCs other than omap4 and omap5: omap4_sram_init:Unable to allocate sram needed to handle errata I688 omap4_sram_init:Unable to get sram pool needed to handle erra

[PATCH AUTOSEL 4.14 01/36] ARM: OMAP2+: Fix missing SYSC_HAS_RESET_STATUS for dra7 epwmss

2019-09-04 Thread Sasha Levin
From: Tony Lindgren [ Upstream commit afd58b162e48076e3fe66d08a69eefbd6fe71643 ] TRM says PWMSS_SYSCONFIG bit for SOFTRESET changes to zero when reset is completed. Let's configure it as otherwise we get warnings on boot when we check the data against dts provided data. Eventually the legacy pla

[PATCH AUTOSEL 4.19 51/52] net: aquantia: fix out of memory condition on rx side

2019-09-04 Thread Sasha Levin
From: Dmitry Bogdanov [ Upstream commit be6cef69ba570ebb327eba1ef6438f7af49aaf86 ] On embedded environments with hard memory limits it is a normal although rare case when skb can't be allocated on rx part under high traffic. In such OOM cases napi_complete_done() was not called. So the napi obj

Re: [PATCH v4 10/11] lib/vsprintf: Add %pfw conversion specifier for printing fwnode names

2019-09-04 Thread Sakari Ailus
Hi Joe, On Wed, Sep 04, 2019 at 08:37:08AM -0700, Joe Perches wrote: > On Wed, 2019-09-04 at 18:04 +0300, Sakari Ailus wrote: > > On Tue, Sep 03, 2019 at 03:06:07PM +0200, Petr Mladek wrote: > > > On Mon 2019-09-02 11:32:39, Sakari Ailus wrote: > [] > > > > diff --git a/scripts/checkpatch.pl b/scr

[PATCH AUTOSEL 4.19 45/52] perf/x86/amd/ibs: Fix sample bias for dispatched micro-ops

2019-09-04 Thread Sasha Levin
From: Kim Phillips [ Upstream commit 0f4cd769c410e2285a4e9873a684d90423f03090 ] When counting dispatched micro-ops with cnt_ctl=1, in order to prevent sample bias, IBS hardware preloads the least significant 7 bits of current count (IbsOpCurCnt) with random values, such that, after the interrupt

[PATCH AUTOSEL 4.19 42/52] sky2: Disable MSI on yet another ASUS boards (P6Xxxx)

2019-09-04 Thread Sasha Levin
From: Takashi Iwai [ Upstream commit 189308d5823a089b56e2299cd96589507dac7319 ] A similar workaround for the suspend/resume problem is needed for yet another ASUS machines, P6X models. Like the previous fix, the BIOS doesn't provide the standard DMI_SYS_* entry, so again DMI_BOARD_* entries are

[PATCH AUTOSEL 4.19 46/52] amd-xgbe: Fix error path in xgbe_mod_init()

2019-09-04 Thread Sasha Levin
From: YueHaibing [ Upstream commit b6b4dc4c1fa7f1c99398e7dc85758049645e9588 ] In xgbe_mod_init(), we should do cleanup if some error occurs Reported-by: Hulk Robot Fixes: efbaa828330a ("amd-xgbe: Add support to handle device renaming") Fixes: 47f164deab22 ("amd-xgbe: Add PCI device support") S

Re: [PATCH v4 10/10] arm64: Retrieve stolen time as paravirtualized guest

2019-09-04 Thread Steven Price
On 03/09/2019 09:47, Andrew Jones wrote: > On Fri, Aug 30, 2019 at 09:42:55AM +0100, Steven Price wrote: >> Enable paravirtualization features when running under a hypervisor >> supporting the PV_TIME_ST hypercall. >> >> For each (v)CPU, we ask the hypervisor for the location of a shared >> page wh

Re: lockdep warning while booting POWER9 PowerNV

2019-09-04 Thread Bart Van Assche
On 8/30/19 2:13 PM, Qian Cai wrote: https://raw.githubusercontent.com/cailca/linux-mm/master/powerpc.config Once in a while, booting an IBM POWER9 PowerNV system (8335-GTH) would generate a warning in lockdep_register_key() at, if (WARN_ON_ONCE(static_obj(key))) because key = 0xc19ad1

[PATCH AUTOSEL 4.19 34/52] NFSv2: Fix write regression

2019-09-04 Thread Sasha Levin
From: Trond Myklebust [ Upstream commit d33d4beb522987d1c305c12500796f9be3687dee ] Ensure we update the write result count on success, since the RPC call itself does not do so. Reported-by: Jan Stancek Reported-by: Naresh Kamboju Signed-off-by: Trond Myklebust Tested-by: Jan Stancek Signed-

[PATCH AUTOSEL 4.19 37/52] cifs: Use kzfree() to zero out the password

2019-09-04 Thread Sasha Levin
From: Dan Carpenter [ Upstream commit 478228e57f81f6cb60798d54fc02a74ea7dd267e ] It's safer to zero out the password so that it can never be disclosed. Fixes: 0c219f5799c7 ("cifs: set domainName when a domain-key is used in multiuser") Signed-off-by: Dan Carpenter Signed-off-by: Steve French

[PATCH AUTOSEL 4.19 43/52] i2c: designware: Synchronize IRQs when unregistering slave client

2019-09-04 Thread Sasha Levin
From: Jarkko Nikula [ Upstream commit c486dcd2f1bbdd524a1e0149734b79e4ae329650 ] Make sure interrupt handler i2c_dw_irq_handler_slave() has finished before clearing the the dev->slave pointer in i2c_dw_unreg_slave(). There is possibility for a race if i2c_dw_irq_handler_slave() is running on an

[PATCH AUTOSEL 4.19 30/52] x86/apic: Fix arch_dynirq_lower_bound() bug for DT enabled machines

2019-09-04 Thread Sasha Levin
From: Thomas Gleixner [ Upstream commit 3e5bedc2c258341702ddffbd7688c5e6eb01eafa ] Rahul Tanwar reported the following bug on DT systems: > 'ioapic_dynirq_base' contains the virtual IRQ base number. Presently, it is > updated to the end of hardware IRQ numbers but this is done only when IOAPIC

[PATCH AUTOSEL 4.19 31/52] netfilter: xt_physdev: Fix spurious error message in physdev_mt_check

2019-09-04 Thread Sasha Levin
From: Todd Seidelmann [ Upstream commit 3cf2f450fff304be9cf4868bf0df17f253bc5b1c ] Simplify the check in physdev_mt_check() to emit an error message only when passed an invalid chain (ie, NF_INET_LOCAL_OUT). This avoids cluttering up the log with errors against valid rules. For large/heavily mo

[PATCH AUTOSEL 4.19 39/52] usb: host: xhci-tegra: Set DMA mask correctly

2019-09-04 Thread Sasha Levin
From: Nagarjuna Kristam [ Upstream commit 993cc8753453fccfe060a535bbe21fcf1001b626 ] The Falcon microcontroller that runs the XUSB firmware and which is responsible for exposing the XHCI interface can address only 40 bits of memory. Typically that's not a problem because Tegra devices don't have

[PATCH] bus: imx-weim: remove incorrect __init annotations

2019-09-04 Thread Arnd Bergmann
The probe function is no longer __init, so anything it calls now must also be available at runtime, as Kbuild points out when building with clang-9: WARNING: vmlinux.o(.text+0x6e7040): Section mismatch in reference from the function weim_probe() to the function .init.text:imx_weim_gpr_setup() The

[PATCH AUTOSEL 4.19 38/52] x86/build: Add -Wnoaddress-of-packed-member to REALMODE_CFLAGS, to silence GCC9 build warning

2019-09-04 Thread Sasha Levin
From: Linus Torvalds [ Upstream commit 42e0e95474fc6076b5cd68cab8fa0340a1797a72 ] One of the very few warnings I have in the current build comes from arch/x86/boot/edd.c, where I get the following with a gcc9 build: arch/x86/boot/edd.c: In function ‘query_edd’: arch/x86/boot/edd.c:148:11:

[PATCH AUTOSEL 4.19 36/52] cifs: set domainName when a domain-key is used in multiuser

2019-09-04 Thread Sasha Levin
From: Ronnie Sahlberg [ Upstream commit f2aee329a68f5a907bcff11a109dfe17c0b41aeb ] RHBZ: 1710429 When we use a domain-key to authenticate using multiuser we must also set the domainnmame for the new volume as it will be used and passed to the server in the NTLMSSP Domain-name. Signed-off-by: R

[PATCH AUTOSEL 4.19 35/52] kallsyms: Don't let kallsyms_lookup_size_offset() fail on retrieving the first symbol

2019-09-04 Thread Sasha Levin
From: Marc Zyngier [ Upstream commit 2a1a3fa0f29270583f0e6e3100d609e09697add1 ] An arm64 kernel configured with CONFIG_KPROBES=y CONFIG_KALLSYMS=y # CONFIG_KALLSYMS_ALL is not set CONFIG_KALLSYMS_BASE_RELATIVE=y reports the following kprobe failure: [0.032677] kprobes: failed to

[PATCH AUTOSEL 4.19 32/52] netfilter: nf_conntrack_ftp: Fix debug output

2019-09-04 Thread Sasha Levin
From: Thomas Jarosch [ Upstream commit 3a069024d371125227de3ac8fa74223fcf473520 ] The find_pattern() debug output was printing the 'skip' character. This can be a NULL-byte and messes up further pr_debug() output. Output without the fix: kernel: nf_conntrack_ftp: Pattern matches! kernel: nf_con

[PATCH AUTOSEL 4.19 20/52] NFSv4: Fix return value in nfs_finish_open()

2019-09-04 Thread Sasha Levin
From: Trond Myklebust [ Upstream commit 9821421a291b548ef4369c6998745baa36ddecd5 ] If the file turns out to be of the wrong type after opening, we want to revalidate the path and retry, so return EOPENSTALE rather than ESTALE. Signed-off-by: Trond Myklebust Signed-off-by: Sasha Levin --- fs/

[PATCH AUTOSEL 4.19 26/52] batman-adv: Only read OGM tvlv_len after buffer len check

2019-09-04 Thread Sasha Levin
From: Sven Eckelmann [ Upstream commit a15d56a60760aa9dbe26343b9a0ac5228f35d445 ] Multiple batadv_ogm_packet can be stored in an skbuff. The functions batadv_iv_ogm_send_to_if()/batadv_iv_ogm_receive() use batadv_iv_ogm_aggr_packet() to check if there is another additional batadv_ogm_packet in t

[PATCH AUTOSEL 4.19 25/52] ARM: 8874/1: mm: only adjust sections of valid mm structures

2019-09-04 Thread Sasha Levin
From: Doug Berger [ Upstream commit c51bc12d06b3a5494fbfcbd788a8e307932a06e9 ] A timing hazard exists when an early fork/exec thread begins exiting and sets its mm pointer to NULL while a separate core tries to update the section information. This commit ensures that the mm pointer is not NULL

Re: [RFC PATCH 1/2] Fix: sched/membarrier: p->mm->membarrier_state racy load

2019-09-04 Thread Peter Zijlstra
On Wed, Sep 04, 2019 at 11:19:00AM -0400, Mathieu Desnoyers wrote: > - On Sep 3, 2019, at 4:36 PM, Linus Torvalds > torva...@linux-foundation.org wrote: > > I wonder if the easiest model might be to just use a percpu variable > > instead for the membarrier stuff? It's not like it has to be in

Re: [PATCH v5 11/11] lib/test_printf: Add tests for %pfw printk modifier

2019-09-04 Thread Sakari Ailus
Hi Andy, On Mon, Sep 02, 2019 at 07:13:52PM +0300, Andy Shevchenko wrote: > On Mon, Sep 02, 2019 at 04:57:32PM +0300, Sakari Ailus wrote: > > Add a test for the %pfw printk modifier using software nodes. > > > +static void __init fwnode_pointer(void) > > +{ > > + const struct software_node soft

[PATCH AUTOSEL 4.19 33/52] NFSv2: Fix eof handling

2019-09-04 Thread Sasha Levin
From: Trond Myklebust [ Upstream commit 71affe9be45a5c60b9772e1b2701710712637274 ] If we received a reply from the server with a zero length read and no error, then that implies we are at eof. Signed-off-by: Trond Myklebust Signed-off-by: Sasha Levin --- fs/nfs/proc.c | 3 ++- 1 file changed

[PATCH AUTOSEL 4.19 22/52] Kconfig: Fix the reference to the IDT77105 Phy driver in the description of ATM_NICSTAR_USE_IDT77105

2019-09-04 Thread Sasha Levin
From: Christophe JAILLET [ Upstream commit cd9d4ff9b78fcd0fc4708900ba3e52e71e1a7690 ] This should be IDT77105, not IDT77015. Signed-off-by: Christophe JAILLET Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/atm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH AUTOSEL 4.19 16/52] netfilter: ebtables: Fix argument order to ADD_COUNTER

2019-09-04 Thread Sasha Levin
From: Todd Seidelmann [ Upstream commit f20faa06d83de440bec8e200870784c3458793c4 ] The ordering of arguments to the x_tables ADD_COUNTER macro appears to be wrong in ebtables (cf. ip_tables.c, ip6_tables.c, and arp_tables.c). This causes data corruption in the ebtables userspace tools because t

[PATCH AUTOSEL 4.19 11/52] s390/bpf: use 32-bit index for tail calls

2019-09-04 Thread Sasha Levin
From: Ilya Leoshkevich [ Upstream commit 91b4db5313a2c793aabc2143efb8ed0cf0fdd097 ] "p runtime/jit: pass > 32bit index to tail_call" fails when bpf_jit_enable=1, because the tail call is not executed. This in turn is because the generated code assumes index is 64-bit, while it must be 32-bit, a

[PATCH AUTOSEL 4.19 02/52] ieee802154: hwsim: unregister hw while hwsim_subscribe_all_others fails

2019-09-04 Thread Sasha Levin
From: YueHaibing [ Upstream commit de166bbe861738c8bc3e5dad5b03f45d7d6ef914 ] KASAN report this: kernel BUG at net/mac802154/main.c:130! invalid opcode: [#1] PREEMPT SMP CPU: 0 PID: 19932 Comm: modprobe Not tainted 5.1.0-rc6+ #22 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS

[PATCH AUTOSEL 4.19 14/52] tools: bpftool: close prog FD before exit on showing a single program

2019-09-04 Thread Sasha Levin
From: Quentin Monnet [ Upstream commit d34b044038bfb0e19caa8b019910efc465f41d5f ] When showing metadata about a single program by invoking "bpftool prog show PROG", the file descriptor referring to the program is not closed before returning from the function. Let's close it. Fixes: 71bb428fe2c1

[PATCH AUTOSEL 4.19 13/52] selftests/bpf: fix "bind{4, 6} deny specific IP & port" on s390

2019-09-04 Thread Sasha Levin
From: Ilya Leoshkevich [ Upstream commit 27df5c7068bf23cab282dc64b1c9894429b3b8a0 ] "bind4 allow specific IP & port" and "bind6 deny specific IP & port" fail on s390 because of endianness issue: the 4 IP address bytes are loaded as a word and compared with a constant, but the value of this const

[PATCH AUTOSEL 4.19 19/52] NFSv4: Fix return values for nfs4_file_open()

2019-09-04 Thread Sasha Levin
From: Trond Myklebust [ Upstream commit 90cf500e338ab3f3c0f126ba37e36fb6a9058441 ] Currently, we are translating RPC level errors such as timeouts, as well as interrupts etc into EOPENSTALE, which forces a single replay of the open attempt. What we actually want to do is force the replay only in

[PATCH AUTOSEL 4.19 05/52] bus: ti-sysc: Fix using configured sysc mask value

2019-09-04 Thread Sasha Levin
From: Tony Lindgren [ Upstream commit e212abd452a4af3174fcd469d46656f83e135a19 ] We have cases where there are no softreset bits like with am335x lcdc. In that case ti,sysc-mask = <0> needs to be handled properly. Tested-by: Keerthy Signed-off-by: Tony Lindgren Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 4.19 08/52] ARM: dts: dra74x: Fix iodelay configuration for mmc3

2019-09-04 Thread Sasha Levin
From: Faiz Abbas [ Upstream commit 07f9a8be66a9bd86f9eaedf8f8aeb416195adab8 ] According to the latest am572x[1] and dra74x[2] data manuals, mmc3 default, hs, sdr12 and sdr25 modes use iodelay values given in MMC3_MANUAL1. Set the MODE_SELECT bit for these so that manual mode is selected and corr

[PATCH AUTOSEL 4.19 09/52] ARM: OMAP1: ams-delta-fiq: Fix missing irq_ack

2019-09-04 Thread Sasha Levin
From: Janusz Krzysztofik [ Upstream commit fa8397e45c64e60c80373bc19ee56e42a6bed9b6 ] Non-serio path of Amstrad Delta FIQ deferred handler depended on irq_ack() method provided by OMAP GPIO driver. That method has been removed by commit 693de831c6e5 ("gpio: omap: remove irq_ack method"). Remove

[PATCH AUTOSEL 5.2 94/94] net: seeq: Fix the function used to release some memory in an error handling path

2019-09-04 Thread Sasha Levin
From: Christophe JAILLET [ Upstream commit e1e54ec7fb55501c33b117c111cb0a045b8eded2 ] In commit 99cd149efe82 ("sgiseeq: replace use of dma_cache_wback_inv"), a call to 'get_zeroed_page()' has been turned into a call to 'dma_alloc_coherent()'. Only the remove function has been updated to turn the

[PATCH AUTOSEL 4.19 01/52] ieee802154: hwsim: Fix error handle path in hwsim_init_module

2019-09-04 Thread Sasha Levin
From: YueHaibing [ Upstream commit 1cbbbf39efab05fae67f59e6ed01bb85061c69e2 ] KASAN report this: BUG: unable to handle kernel paging request at fbfff834f001 PGD 237fe8067 P4D 237fe8067 PUD 237e64067 PMD 1c968d067 PTE 0 Oops: [#1] SMP KASAN PTI CPU: 1 PID: 8871 Comm: syz-executor.0 Tain

Re: [PATCH v3 1/1] arm64: dts: qcom: Add Lenovo Yoga C630

2019-09-04 Thread Lee Jones
On Wed, 04 Sep 2019, Sudeep Holla wrote: > On Wed, Sep 04, 2019 at 01:16:06PM +0100, Lee Jones wrote: > > From: Bjorn Andersson > > > > The Lenovo Yoga C630 is built on the SDM850 from Qualcomm, but this seem > > to be similar enough to the SDM845 that we can reuse the sdm845.dtsi. > > > > Suppor

[PATCH AUTOSEL 4.19 03/52] ARM: dts: am57xx: Disable voltage switching for SD card

2019-09-04 Thread Sasha Levin
From: Faiz Abbas [ Upstream commit fb59ee37cfe20d10d19568899d1458a58361246c ] If UHS speed modes are enabled, a compatible SD card switches down to 1.8V during enumeration. If after this a software reboot/crash takes place and on-chip ROM tries to enumerate the SD card, the difference in IO volt

[PATCH AUTOSEL 5.2 89/94] net: aquantia: reapply vlan filters on up

2019-09-04 Thread Sasha Levin
From: Dmitry Bogdanov [ Upstream commit c2ef057ee775e229d3138add59f937d93a3a59d8 ] In case of device reconfiguration the driver may reset the device invisible for other modules, vlan module in particular. So vlans will not be removed&created and vlan filters will not be configured in the device.

[PATCH AUTOSEL 4.19 04/52] ARM: OMAP2+: Fix missing SYSC_HAS_RESET_STATUS for dra7 epwmss

2019-09-04 Thread Sasha Levin
From: Tony Lindgren [ Upstream commit afd58b162e48076e3fe66d08a69eefbd6fe71643 ] TRM says PWMSS_SYSCONFIG bit for SOFTRESET changes to zero when reset is completed. Let's configure it as otherwise we get warnings on boot when we check the data against dts provided data. Eventually the legacy pla

[PATCH AUTOSEL 4.19 07/52] ARM: OMAP2+: Fix omap4 errata warning on other SoCs

2019-09-04 Thread Sasha Levin
From: Tony Lindgren [ Upstream commit 45da5e09dd32fa98c32eaafe2513db6bd75e2f4f ] We have errata i688 workaround produce warnings on SoCs other than omap4 and omap5: omap4_sram_init:Unable to allocate sram needed to handle errata I688 omap4_sram_init:Unable to get sram pool needed to handle erra

[PATCH AUTOSEL 5.2 90/94] net: aquantia: linkstate irq should be oneshot

2019-09-04 Thread Sasha Levin
From: Igor Russkikh [ Upstream commit 5c47e3ba6fe52465603cf9d816b3371e6881d649 ] Declaring threaded irq handler should also indicate the irq is oneshot. It is oneshot indeed, because HW implements irq automasking on trigger. Not declaring this causes some kernel configurations to fail on interf

[PATCH AUTOSEL 5.2 92/94] net: dsa: microchip: add KSZ8563 compatibility string

2019-09-04 Thread Sasha Levin
From: Razvan Stefanescu [ Upstream commit d9033ae95cf445150fcc5856ccf024f41f0bd0b9 ] It is a 3-Port 10/100 Ethernet Switch with 1588v2 PTP. Signed-off-by: Razvan Stefanescu Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/dsa/microchip/ksz9477_spi.c | 1 + 1 file ch

[PATCH AUTOSEL 5.2 82/94] tools/power turbostat: fix file descriptor leaks

2019-09-04 Thread Sasha Levin
From: "Gustavo A. R. Silva" [ Upstream commit 605736c6929d541c78a85dffae4d33a23b6b2149 ] Fix file descriptor leaks by closing fp before return. Addresses-Coverity-ID: 1444591 ("Resource leak") Addresses-Coverity-ID: 1444592 ("Resource leak") Fixes: 5ea7647b333f ("tools/power turbostat: Warn on

[PATCH AUTOSEL 5.2 91/94] net: aquantia: fix out of memory condition on rx side

2019-09-04 Thread Sasha Levin
From: Dmitry Bogdanov [ Upstream commit be6cef69ba570ebb327eba1ef6438f7af49aaf86 ] On embedded environments with hard memory limits it is a normal although rare case when skb can't be allocated on rx part under high traffic. In such OOM cases napi_complete_done() was not called. So the napi obj

[PATCH AUTOSEL 4.19 21/52] NFS: Fix initialisation of I/O result struct in nfs_pgio_rpcsetup

2019-09-04 Thread Sasha Levin
From: Trond Myklebust [ Upstream commit 17d8c5d14570c581f2a8aa01edc7998582ab ] Initialise the result count to 0 rather than initialising it to the argument count. The reason is that we want to ensure we record the I/O stats correctly in the case where an error is returned (for instance in th

Re: [RFC PATCH 1/2] Fix: sched/membarrier: p->mm->membarrier_state racy load

2019-09-04 Thread Mathieu Desnoyers
- On Sep 4, 2019, at 7:11 AM, Oleg Nesterov o...@redhat.com wrote: > with or without these changes... > > Why do membarrier_register_*_expedited() check get_nr_threads() == 1? > This makes no sense to me, atomic_read(mm_users) == 1 should be enough. Indeed, if every thread within a process h

[PATCH AUTOSEL 5.2 84/94] tools/power turbostat: Fix Haswell Core systems

2019-09-04 Thread Sasha Levin
From: Len Brown [ Upstream commit cd188af5282d9f9e65f63915b13239bafc746f8d ] turbostat: cpu0: msr offset 0x630 read failed: Input/output error because Haswell Core does not have C8-C10. Output C8-C10 only on Haswell ULT. Fixes: f5a4c76ad7de ("tools/power turbostat: consolidate duplicate model

[PATCH AUTOSEL 5.2 88/94] net: aquantia: fix limit of vlan filters

2019-09-04 Thread Sasha Levin
From: Dmitry Bogdanov [ Upstream commit 392349f60110dc2c3daf86464fd926afc53d6143 ] Fix a limit condition of vlans on the interface before setting vlan promiscuous mode Fixes: 48dd73d08d4dd ("net: aquantia: fix vlans not working over bridged network") Signed-off-by: Dmitry Bogdanov Signed-off-

[PATCH] RISC-V: Enable KVM for RV64 and RV32

2019-09-04 Thread Anup Patel
DO NOT UPSTREAM ! Signed-off-by: Anup Patel --- arch/riscv/configs/defconfig | 2 ++ arch/riscv/configs/rv32_defconfig | 2 ++ 2 files changed, 4 insertions(+) diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig index 420a0dbef386..320a7f1da4fc 100644 --- a/arch/ri

[PATCH v7 00/21] KVM RISC-V Support

2019-09-04 Thread Anup Patel
This series adds initial KVM RISC-V support. Currently, we are able to boot RISC-V 64bit Linux Guests with multiple VCPUs. Few key aspects of KVM RISC-V added by this series are: 1. Minimal possible KVM world-switch which touches only GPRs and few CSRs. 2. Full Guest/VM switch is done via vcpu_get

[PATCH v7 01/21] KVM: RISC-V: Add KVM_REG_RISCV for ONE_REG interface

2019-09-04 Thread Anup Patel
We will be using ONE_REG interface accessing VCPU registers from user-space hence we add KVM_REG_RISCV for RISC-V VCPU registers. Signed-off-by: Anup Patel Acked-by: Paolo Bonzini Reviewed-by: Paolo Bonzini Reviewed-by: Alexander Graf --- include/uapi/linux/kvm.h | 1 + 1 file changed, 1 inse

[PATCH AUTOSEL 5.2 79/94] tools/power x86_energy_perf_policy: Fix "uninitialized variable" warnings at -O2

2019-09-04 Thread Sasha Levin
From: Ben Hutchings [ Upstream commit adb8049097a9ec4acd09fbd3aa8636199a78df8a ] x86_energy_perf_policy first uses __get_cpuid() to check the maximum CPUID level and exits if it is too low. It then assumes that later calls will succeed (which I think is architecturally guaranteed). It also ass

[PATCH AUTOSEL 5.2 85/94] tools/power turbostat: Add Ice Lake NNPI support

2019-09-04 Thread Sasha Levin
From: Rajneesh Bhardwaj [ Upstream commit d93ea567fc4eec2d3581015e23d2c555f8b393ba ] This enables turbostat utility on Ice Lake NNPI SoC. Link: https://lkml.org/lkml/2019/6/5/1034 Signed-off-by: Rajneesh Bhardwaj Signed-off-by: Len Brown Signed-off-by: Sasha Levin --- tools/power/x86/turbos

[PATCH v7 02/21] RISC-V: Add bitmap reprensenting ISA features common across CPUs

2019-09-04 Thread Anup Patel
This patch adds riscv_isa bitmap which represents Host ISA features common across all Host CPUs. The riscv_isa is not same as elf_hwcap because elf_hwcap will only have ISA features relevant for user-space apps whereas riscv_isa will have ISA features relevant to both kernel and user-space apps. O

Re: [EXT] Re: [v2 1/3] drm/arm/mali-dp: Add display QoS interface configuration for Mali DP500

2019-09-04 Thread Liviu Dudau
On Thu, Aug 15, 2019 at 11:14:17AM +, Wen He wrote: > > > > -Original Message- > > From: Liviu Dudau > > Sent: 2019年7月22日 17:33 > > To: Wen He > > Cc: dri-de...@lists.freedesktop.org; linux-kernel@vger.kernel.org; > > brian.star...@arm.com; airl...@linux.ie; dan...@ffwll.ch; Leo Li

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