[PATCH 5.2 030/124] ARM: OMAP2+: Fix missing SYSC_HAS_RESET_STATUS for dra7 epwmss

2019-09-19 Thread Greg Kroah-Hartman
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 5.2 029/124] ARM: dts: am57xx: Disable voltage switching for SD card

2019-09-19 Thread Greg Kroah-Hartman
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 5.2 010/124] nfs: disable client side deduplication

2019-09-19 Thread Greg Kroah-Hartman
From: Darrick J. Wong commit 9026b3a973b0b0b73c15ba40aff87cd0959fd0f3 upstream. The NFS protocol doesn't support deduplication, so turn it off again. Fixes: ce96e888fe48e ("Fix nfs4.2 return -EINVAL when do dedupe operation") Signed-off-by: Darrick J. Wong Signed-off-by: Trond Myklebust Signe

[PATCH 5.2 009/124] media: stm32-dcmi: fix irq = 0 case

2019-09-19 Thread Greg Kroah-Hartman
From: Fabien Dessenne commit dbb9fcc8c2d8d4ea1104f51d4947a8a8199a2cb5 upstream. Manage the irq = 0 case, where we shall return an error. Fixes: b5b5a27bee58 ("media: stm32-dcmi: return appropriate error codes during probe") Signed-off-by: Fabien Dessenne Reported-by: Pavel Machek Acked-by:

[PATCH 5.2 031/124] bus: ti-sysc: Fix handling of forced idle

2019-09-19 Thread Greg Kroah-Hartman
From: Tony Lindgren [ Upstream commit 6ee8241d17c68b94a91efabfd6bdfe63bb1b79c1 ] For some devices we can get the following warning on boot: ti-sysc 48485200.target-module: sysc_disable_module: invalid midlemode Fix this by treating SYSC_IDLE_FORCE like we do for the other bits for idlemodes ma

[PATCH 5.2 007/124] Input: elan_i2c - remove Lenovo Legion Y7000 PnpID

2019-09-19 Thread Greg Kroah-Hartman
From: Benjamin Tissoires commit 0c043d70d04711fe6c380df9065fdc44192c49bf upstream. Looks like the Bios of the Lenovo Legion Y7000 is using ELAN061B when the actual device is supposed to be used with hid-multitouch. Remove it from the list of the supported device, hoping that no one will complai

[PATCH 5.2 008/124] SUNRPC: Handle connection breakages correctly in call_status()

2019-09-19 Thread Greg Kroah-Hartman
From: Trond Myklebust commit c82e5472c9980e0e483f4b689044150eefaca408 upstream. If the connection breaks while we're waiting for a reply from the server, then we want to immediately try to reconnect. Fixes: ec6017d90359 ("SUNRPC fix regression in umount of a secure mount") Signed-off-by: Trond

[PATCH 5.2 012/124] scripts/decode_stacktrace: match basepath using shell prefix operator, not regex

2019-09-19 Thread Greg Kroah-Hartman
From: Nicolas Boichat commit 31013836a71e07751a6827f9d2ad41ef502ddaff upstream. The basepath may contain special characters, which would confuse the regex matcher. ${var#prefix} does the right thing. Link: http://lkml.kernel.org/r/20190518055946.181563-1-drink...@chromium.org Fixes: 67a28de47f

[PATCH 5.2 035/124] arm64: dts: meson-g12a: add missing dwc2 phy-names

2019-09-19 Thread Greg Kroah-Hartman
From: Neil Armstrong [ Upstream commit 3d4bacdc207a7b62941700b374e7199cbb184a43 ] The G12A USB2 OTG capable PHY uses a 8bit large UTMI bus, and the OTG controller gets the PHY but width by probing the associated phy. By default it will use 16bit wide settings if a phy is not specified, in our c

[PATCH 5.2 004/124] net: hns3: adjust hns3_uninit_phy()s location in the hns3_client_uninit()

2019-09-19 Thread Greg Kroah-Hartman
From: Huazhong Tan commit 0d2f68c7bcf4c7bbdd6f810f7b6e658f43d4461e upstream. hns3_uninit_phy() should be called before checking HNS3_NIC_STATE_INITED flags, otherwise when this checking fails, there is nobody to call hns3_uninit_phy(). Fixes: c8a8045b2d0a ("net: hns3: Fix NULL deref when unload

[PATCH 5.2 026/124] nl80211: Fix possible Spectre-v1 for CQM RSSI thresholds

2019-09-19 Thread Greg Kroah-Hartman
From: Masashi Honma commit 4b2c5a14cd8005a900075f7dfec87473c6ee66fb upstream. commit 1222a1601488 ("nl80211: Fix possible Spectre-v1 for CQM RSSI thresholds") was incomplete and requires one more fix to prevent accessing to rssi_thresholds[n] because user can control rssi_thresholds[i] values to

[PATCH 5.2 048/124] netfilter: nft_flow_offload: missing netlink attribute policy

2019-09-19 Thread Greg Kroah-Hartman
From: Pablo Neira Ayuso [ Upstream commit 14c415862c0630e01712a4eeaf6159a2b1b6d2a4 ] The netlink attribute policy for NFTA_FLOW_TABLE_NAME is missing. Fixes: a3c90f7a2323 ("netfilter: nf_tables: flow offload expression") Signed-off-by: Pablo Neira Ayuso Signed-off-by: Sasha Levin --- net/net

[PATCH 5.2 053/124] NFS: On fatal writeback errors, we need to call nfs_inode_remove_request()

2019-09-19 Thread Greg Kroah-Hartman
From: Trond Myklebust [ Upstream commit 06c9fdf3b9f1acc6e53753c99c54c39764cc979f ] If the writeback error is fatal, we need to remove the tracking structures (i.e. the nfs_page) from the inode. Fixes: 6fbda89b257f ("NFS: Replace custom error reporting mechanism...") Signed-off-by: Trond Myklebu

[PATCH 5.2 058/124] qed: Add cleanup in qed_slowpath_start()

2019-09-19 Thread Greg Kroah-Hartman
From: Wenwen Wang [ Upstream commit de0e4fd2f07ce3bbdb69dfb8d9426b7227451b69 ] If qed_mcp_send_drv_version() fails, no cleanup is executed, leading to memory leaks. To fix this issue, introduce the label 'err4' to perform the cleanup work before returning the error. Signed-off-by: Wenwen Wang

[PATCH 5.2 055/124] xdp: unpin xdp umem pages in error path

2019-09-19 Thread Greg Kroah-Hartman
From: Ivan Khoronzhuk [ Upstream commit fb89c39455e4b49881c5a42761bd71f03d3ef888 ] Fix mem leak caused by missed unpin routine for umem pages. Fixes: 8aef7340ae9695 ("xsk: introduce xdp_umem_page") Signed-off-by: Ivan Khoronzhuk Acked-by: Jonathan Lemon Signed-off-by: Daniel Borkmann Signed-

[PATCH 5.2 064/124] bpf: allow narrow loads of some sk_reuseport_md fields with offset > 0

2019-09-19 Thread Greg Kroah-Hartman
From: Ilya Leoshkevich [ Upstream commit 2c238177bd7f4b14bdf7447cc1cd9bb791f147e6 ] test_select_reuseport fails on s390 due to verifier rejecting test_select_reuseport_kern.o with the following message: ; data_check.eth_protocol = reuse_md->eth_protocol; 18: (69) r1 = *(u16 *)(r

[PATCH 5.2 062/124] batman-adv: Only read OGM2 tvlv_len after buffer len check

2019-09-19 Thread Greg Kroah-Hartman
From: Sven Eckelmann [ Upstream commit 0ff0f15a32c093381ad1abc06abe85afb561ab28 ] Multiple batadv_ogm2_packet can be stored in an skbuff. The functions batadv_v_ogm_send_to_if() uses batadv_v_ogm_aggr_packet() to check if there is another additional batadv_ogm2_packet in the skb or not before th

[PATCH 5.2 063/124] flow_dissector: Fix potential use-after-free on BPF_PROG_DETACH

2019-09-19 Thread Greg Kroah-Hartman
From: Jakub Sitnicki [ Upstream commit db38de39684dda2bf307f41797db2831deba64e9 ] Call to bpf_prog_put(), with help of call_rcu(), queues an RCU-callback to free the program once a grace period has elapsed. The callback can run together with new RCU readers that started after the last grace peri

[PATCH 5.2 059/124] drm/omap: Fix port lookup for SDI output

2019-09-19 Thread Greg Kroah-Hartman
From: Laurent Pinchart [ Upstream commit 8090f7eb318d4241625449252db2741e7703e027 ] When refactoring port lookup for DSS outputs, commit d17eb4537a7e ("drm/omap: Factor out common init/cleanup code for output devices") incorrectly hardcoded usage of DT port 0. This breaks operation for SDI (whic

[PATCH 5.2 057/124] selftests/bpf: add config fragment BPF_JIT

2019-09-19 Thread Greg Kroah-Hartman
From: Anders Roxell [ Upstream commit 0604409df9e04cdec7b08d471c8c1c0c10b5554d ] When running test_kmod.sh the following shows up # sysctl cannot stat /proc/sys/net/core/bpf_jit_enable No such file or directory cannot: stat_/proc/sys/net/core/bpf_jit_enable # # sysctl cannot stat /proc/sys/

[PATCH 5.2 052/124] NFS: Fix initialisation of I/O result struct in nfs_pgio_rpcsetup

2019-09-19 Thread Greg Kroah-Hartman
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 5.2 056/124] selftests/bpf: fix test_cgroup_storage on s390

2019-09-19 Thread Greg Kroah-Hartman
From: Ilya Leoshkevich [ Upstream commit 806ce6e2117a42528e7bb979e04e28229b34a612 ] test_cgroup_storage fails on s390 with an assertion failure: packets are dropped when they shouldn't. The problem is that BPF_DW packet count is accessed as BPF_W with an offset of 0, which is not correct on big-

[PATCH 5.2 061/124] ARM: 8874/1: mm: only adjust sections of valid mm structures

2019-09-19 Thread Greg Kroah-Hartman
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 5.2 066/124] x86/apic: Fix arch_dynirq_lower_bound() bug for DT enabled machines

2019-09-19 Thread Greg Kroah-Hartman
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 5.2 065/124] r8152: Set memory to all 0xFFs on failed reg reads

2019-09-19 Thread Greg Kroah-Hartman
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 5.2 040/124] ARM: OMAP1: ams-delta-fiq: Fix missing irq_ack

2019-09-19 Thread Greg Kroah-Hartman
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 5.2 067/124] pNFS/flexfiles: Dont time out requests on hard mounts

2019-09-19 Thread Greg Kroah-Hartman
From: Trond Myklebust [ Upstream commit 7af46292dadcf8870946916f79fdddf79bd7267f ] If the mount is hard, we should ignore the 'io_maxretrans' module parameter so that we always keep retrying. Signed-off-by: Trond Myklebust Signed-off-by: Sasha Levin --- fs/nfs/flexfilelayout/flexfilelayout.c

[PATCH 5.2 041/124] bus: ti-sysc: Simplify cleanup upon failures in sysc_probe()

2019-09-19 Thread Greg Kroah-Hartman
From: Suman Anna [ Upstream commit a304f483b6b00d42bde41c45ca52c670945348e2 ] The clocks are not yet parsed and prepared until after a successful sysc_get_clocks(), so there is no need to unprepare the clocks upon any failure of any of the prior functions in sysc_probe(). The current code path w

[PATCH 5.2 069/124] NFS: Fix writepage(s) error handling to not report errors twice

2019-09-19 Thread Greg Kroah-Hartman
From: Trond Myklebust [ Upstream commit 96c4145599b30c0eb6cbeaa24207802452dd1872 ] If writepage()/writepages() saw an error, but handled it without reporting it, we should not be re-reporting that error on exit. Signed-off-by: Trond Myklebust Signed-off-by: Sasha Levin --- fs/nfs/write.c | 2

[PATCH 5.2 079/124] cifs: set domainName when a domain-key is used in multiuser

2019-09-19 Thread Greg Kroah-Hartman
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 5.2 080/124] cifs: Use kzfree() to zero out the password

2019-09-19 Thread Greg Kroah-Hartman
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 5.2 042/124] ARM: dts: Fix incomplete dts data for am3 and am4 mmc

2019-09-19 Thread Greg Kroah-Hartman
From: Tony Lindgren [ Upstream commit 5b63fb90adb95a178ad403e1703f59bf1ff2c16b ] Commit 4e27f752ab8c ("ARM: OMAP2+: Drop mmc platform data for am330x and am43xx") dropped legacy mmc platform data for am3 and am4, but missed the fact that we never updated the dts files for mmc3 that is directly o

[PATCH 5.2 043/124] s390/bpf: use 32-bit index for tail calls

2019-09-19 Thread Greg Kroah-Hartman
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 5.2 078/124] drm/amd/powerplay: correct Vega20 dpm level related settings

2019-09-19 Thread Greg Kroah-Hartman
From: Evan Quan [ Upstream commit 83e09d5bddbee749fc83063890244397896a1971 ] Correct the settings for auto mode and skip the unnecessary settings for dcefclk and fclk. Signed-off-by: Evan Quan Acked-by: Alex Deucher Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- .../drm/amd/pow

[PATCH 5.2 034/124] ARM: dts: Fix incorrect dcan register mapping for am3, am4 and dra7

2019-09-19 Thread Greg Kroah-Hartman
From: Tony Lindgren [ Upstream commit 89bbc6f1eb90809b1538b3a9c54030c558180e3b ] We are currently using a wrong register for dcan revision. Although this is currently only used for detecting the dcan module, let's fix it to avoid confusion. Tested-by: Keerthy Signed-off-by: Tony Lindgren Sign

[PATCH 5.2 087/124] i2c: designware: Synchronize IRQs when unregistering slave client

2019-09-19 Thread Greg Kroah-Hartman
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 5.2 088/124] perf/x86/intel: Restrict period on Nehalem

2019-09-19 Thread Greg Kroah-Hartman
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 5.2 083/124] RISC-V: Fix FIXMAP area corruption on RV32 systems

2019-09-19 Thread Greg Kroah-Hartman
From: Anup Patel [ Upstream commit a256f2e329df0773022d28df2c3d206b9aaf1e61 ] Currently, various virtual memory areas of Linux RISC-V are organized in increasing order of their virtual addresses is as follows: 1. User space area (This is lowest area and starts at 0x0) 2. FIXMAP area 3. VMALLOC a

[PATCH 5.2 086/124] sky2: Disable MSI on yet another ASUS boards (P6Xxxx)

2019-09-19 Thread Greg Kroah-Hartman
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 5.2 085/124] ibmvnic: Do not process reset during or after device removal

2019-09-19 Thread Greg Kroah-Hartman
From: Thomas Falcon [ Upstream commit 36f1031c51a2538e5558fb44c6d6b88f98d3c0f2 ] Currently, the ibmvnic driver will not schedule device resets if the device is being removed, but does not check the device state before the reset is actually processed. This leads to a race where a reset is schedul

[PATCH 5.2 095/124] tools/power x86_energy_perf_policy: Fix argument parsing

2019-09-19 Thread Greg Kroah-Hartman
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 an

[PATCH 5.2 094/124] tools/power x86_energy_perf_policy: Fix "uninitialized variable" warnings at -O2

2019-09-19 Thread Greg Kroah-Hartman
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 5.2 093/124] netfilter: nf_flow_table: clear skb tstamp before xmit

2019-09-19 Thread Greg Kroah-Hartman
From: Florian Westphal [ Upstream commit de20900fbe1c4fd36de25a7a5a43223254ecf0d0 ] If 'fq' qdisc is used and a program has requested timestamps, skb->tstamp needs to be cleared, else fq will treat these as 'transmit time'. Signed-off-by: Florian Westphal Signed-off-by: Pablo Neira Ayuso Sign

[PATCH 5.2 089/124] perf/x86/amd/ibs: Fix sample bias for dispatched micro-ops

2019-09-19 Thread Greg Kroah-Hartman
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 5.2 091/124] i2c: mediatek: disable zero-length transfers for mt8183

2019-09-19 Thread Greg Kroah-Hartman
From: Hsin-Yi Wang [ Upstream commit abf4923e97c3abbbd1e59f0e13c7c214c93c6aaa ] Quoting from mt8183 datasheet, the number of transfers to be transferred in one transaction should be set to bigger than 1, so we should forbid zero-length transfer and update functionality. Reported-by: Alexandru M

[PATCH 5.2 090/124] i2c: iproc: Stop advertising support of SMBUS quick cmd

2019-09-19 Thread Greg Kroah-Hartman
From: Lori Hikichi [ Upstream commit b3d604d405166edfd4e1e6053409b85008f4f56d ] The driver does not support the SMBUS Quick command so remove the flag that indicates that level of support. By default the i2c_detect tool uses the quick command to try and detect devices at some bus addresses. If

[PATCH 5.2 092/124] amd-xgbe: Fix error path in xgbe_mod_init()

2019-09-19 Thread Greg Kroah-Hartman
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 5.2 075/124] NFS: remove set but not used variable mapping

2019-09-19 Thread Greg Kroah-Hartman
From: YueHaibing [ Upstream commit 99300a85260c2b7febd57082a617d1062532067e ] Fixes gcc '-Wunused-but-set-variable' warning: fs/nfs/write.c: In function nfs_page_async_flush: fs/nfs/write.c:609:24: warning: variable mapping set but not used [-Wunused-but-set-variable] It is not use since comm

[PATCH 5.2 071/124] netfilter: xt_physdev: Fix spurious error message in physdev_mt_check

2019-09-19 Thread Greg Kroah-Hartman
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 5.2 097/124] tools/power turbostat: fix file descriptor leaks

2019-09-19 Thread Greg Kroah-Hartman
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 ba

[PATCH 5.2 099/124] tools/power turbostat: Fix Haswell Core systems

2019-09-19 Thread Greg Kroah-Hartman
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 5.2 098/124] tools/power turbostat: fix buffer overrun

2019-09-19 Thread Greg Kroah-Hartman
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 5.2 104/124] net: aquantia: linkstate irq should be oneshot

2019-09-19 Thread Greg Kroah-Hartman
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 5.2 076/124] kallsyms: Dont let kallsyms_lookup_size_offset() fail on retrieving the first symbol

2019-09-19 Thread Greg Kroah-Hartman
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 5.2 074/124] NFSv2: Fix write regression

2019-09-19 Thread Greg Kroah-Hartman
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 5.2 077/124] netfilter: conntrack: make sysctls per-namespace again

2019-09-19 Thread Greg Kroah-Hartman
From: Florian Westphal [ Upstream commit 478553fd1b6f819390b64a2e13ac756c4d1a2836 ] When I merged the extension sysctl tables with the main one I forgot to reset them on netns creation. They currently read/write init_net settings. Fixes: d912dec12428 ("netfilter: conntrack: merge acct and help

[PATCH 5.2 113/124] x86/hyper-v: Fix overflow bug in fill_gva_list()

2019-09-19 Thread Greg Kroah-Hartman
From: Tianyu Lan [ Upstream commit 4030b4c585c41eeefec7bd20ce3d0e100a0f2e4d ] When the 'start' parameter is >= 0xFF00 on 32-bit systems, or >= 0x'FF00 on 64-bit systems, fill_gva_list() gets into an infinite loop. With such inputs, 'cur' overflows after adding HV_TLB_FLUSH_UNIT

[PATCH 5.2 101/124] tools/power turbostat: Fix CPU%C1 display value

2019-09-19 Thread Greg Kroah-Hartman
From: Srinivas Pandruvada [ Upstream commit 1e9042b9c8d46ada9ee7b3339a31f50d12e5d291 ] In some case C1% will be wrong value, when platform doesn't have MSR for C1 residency. For example: CoreCPU CPU%c1 - - 100.00 0 0 100.00 0 2 100.00 1 1

[PATCH 5.2 102/124] net: aquantia: fix removal of vlan 0

2019-09-19 Thread Greg Kroah-Hartman
From: Dmitry Bogdanov [ Upstream commit 6fdc060d7476ef73c8029b652d252c1a7b4de948 ] Due to absence of checking against the rx flow rule when vlan 0 is being removed, the other rule could be removed instead of the rule with vlan 0 Fixes: 7975d2aff5afb ("net: aquantia: add support of rx-vlan-filte

[PATCH 5.2 105/124] net: aquantia: fix out of memory condition on rx side

2019-09-19 Thread Greg Kroah-Hartman
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 5.2 122/124] floppy: fix usercopy direction

2019-09-19 Thread Greg Kroah-Hartman
From: Jann Horn commit 52f6f9d74f31078964ca1574f7bb612da7877ac8 upstream. As sparse points out, these two copy_from_user() should actually be copy_to_user(). Fixes: 229b53c9bf4e ("take floppy compat ioctls to sodding floppy.c") Cc: sta...@vger.kernel.org Acked-by: Alexander Popov Reviewed-by:

[PATCH 5.2 123/124] media: technisat-usb2: break out of loop at end of buffer

2019-09-19 Thread Greg Kroah-Hartman
From: Sean Young commit 0c4df39e504bf925ab666132ac3c98d6cbbe380b upstream. Ensure we do not access the buffer beyond the end if no 0xff byte is encountered. Reported-by: syzbot+eaaaf38a95427be88...@syzkaller.appspotmail.com Signed-off-by: Sean Young Reviewed-by: Kees Cook Signed-off-by: Mauro

[PATCH 5.2 124/124] vfs: Fix refcounting of filenames in fs_parser

2019-09-19 Thread Greg Kroah-Hartman
From: David Howells commit 7cdfa44227b0d8842d46a775cebe4311150cb8f2 upstream. Fix an overput in which filename_lookup() unconditionally drops a ref to the filename it was given, but this isn't taken account of in the caller, fs_lookup_param(). Addresses-Coverity-ID: 1443811 ("Use after free") S

[PATCH 5.2 117/124] keys: Fix missing null pointer check in request_key_auth_describe()

2019-09-19 Thread Greg Kroah-Hartman
From: Hillf Danton [ Upstream commit d41a3effbb53b1bcea41e328d16a4d046a508381 ] If a request_key authentication token key gets revoked, there's a window in which request_key_auth_describe() can see it with a NULL payload - but it makes no check for this and something like the following oops may

[PATCH 5.2 106/124] net: dsa: microchip: add KSZ8563 compatibility string

2019-09-19 Thread Greg Kroah-Hartman
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 5.2 118/124] iommu/amd: Flush old domains in kdump kernel

2019-09-19 Thread Greg Kroah-Hartman
From: Stuart Hayes [ Upstream commit 36b7200f67dfe75b416b5281ed4ace9927b513bc ] When devices are attached to the amd_iommu in a kdump kernel, the old device table entries (DTEs), which were copied from the crashed kernel, will be overwritten with a new domain number. When the new DTE is written

[PATCH 5.2 115/124] dmaengine: sprd: Fix the DMA link-list configuration

2019-09-19 Thread Greg Kroah-Hartman
From: Baolin Wang [ Upstream commit 689379c2f383b1fdfdff03e84cf659daf62f2088 ] For the Spreadtrum DMA link-list mode, when the DMA engine got a slave hardware request, which will trigger the DMA engine to load the DMA configuration from the link-list memory automatically. But before the slave ha

[PATCH 5.2 120/124] Revert "arm64: Remove unnecessary ISBs from set_{pte,pmd,pud}"

2019-09-19 Thread Greg Kroah-Hartman
From: Will Deacon commit d0b7a302d58abe24ed0f32a0672dd4c356bb73db upstream. This reverts commit 24fe1b0efad4fcdd32ce46cffeab297f22581707. Commit 24fe1b0efad4fcdd ("arm64: Remove unnecessary ISBs from set_{pte,pmd,pud}") removed ISB instructions immediately following updates to the page table, o

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

2019-09-19 Thread Greg Kroah-Hartman
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 5.2 107/124] enetc: Add missing call to pci_free_irq_vectors() in probe and remove functions

2019-09-19 Thread Greg Kroah-Hartman
From: Christophe JAILLET [ Upstream commit dd7078f05e1b774a9e8c9f117101d97e4ccd0691 ] Call to 'pci_free_irq_vectors()' are missing both in the error handling path of the probe function, and in the remove function. Add them. Fixes: 19971f5ea0ab ("enetc: add PTP clock driver") Signed-off-by: Chri

[PATCH 5.2 114/124] iommu/vt-d: Remove global page flush support

2019-09-19 Thread Greg Kroah-Hartman
From: Jacob Pan [ Upstream commit 8744daf4b0699b724ee0a56b313a6c0c4ea289e3 ] Global pages support is removed from VT-d spec 3.0. Since global pages G flag only affects first-level paging structures and because DMA request with PASID are only supported by VT-d spec. 3.0 and onward, we can safely

[PATCH 5.2 111/124] dmaengine: ti: omap-dma: Add cleanup in omap_dma_probe()

2019-09-19 Thread Greg Kroah-Hartman
From: Wenwen Wang [ Upstream commit 962411b05a6d3342aa649e39cda1704c1fc042c6 ] If devm_request_irq() fails to disable all interrupts, no cleanup is performed before retuning the error. To fix this issue, invoke omap_dma_free() to do the cleanup. Signed-off-by: Wenwen Wang Acked-by: Peter Ujfal

[PATCH 4.19 01/79] netfilter: nf_flow_table: set default timeout after successful insertion

2019-09-19 Thread Greg Kroah-Hartman
From: Pablo Neira Ayuso commit 110e48725db6262f260f10727d0fb2d3d25895e4 upstream. Set up the default timeout for this new entry otherwise the garbage collector might quickly remove it right after the flowtable insertion. Fixes: ac2a5e23 ("netfilter: add generic flow table infrastructure") S

[PATCH 5.2 112/124] x86/uaccess: Dont leak the AC flags into __get_user() argument evaluation

2019-09-19 Thread Greg Kroah-Hartman
From: Peter Zijlstra [ Upstream commit 9b8bd476e78e89c9ea26c3b435ad0201c3d7dbf5 ] Identical to __put_user(); the __get_user() argument evalution will too leak UBSAN crud into the __uaccess_begin() / __uaccess_end() region. While uncommon this was observed to happen for: drivers/xen/gntdev.c:

[PATCH 4.19 21/79] ARM: dts: am57xx: Disable voltage switching for SD card

2019-09-19 Thread Greg Kroah-Hartman
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 4.19 16/79] tty/serial: atmel: reschedule TX after RX was started

2019-09-19 Thread Greg Kroah-Hartman
From: Razvan Stefanescu commit d2ace81bf902a9f11d52e59e5d232d2255a0e353 upstream. When half-duplex RS485 communication is used, after RX is started, TX tasklet still needs to be scheduled tasklet. This avoids console freezing when more data is to be transmitted, if the serial communication is n

[PATCH 4.19 25/79] ARM: OMAP2+: Fix omap4 errata warning on other SoCs

2019-09-19 Thread Greg Kroah-Hartman
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 4.19 02/79] HID: wacom: generic: read HID_DG_CONTACTMAX from any feature report

2019-09-19 Thread Greg Kroah-Hartman
From: Aaron Armstrong Skomra commit 184eccd40389df29abefab88092c4ff33191fd0c upstream. In the generic code path, HID_DG_CONTACTMAX was previously only read from the second byte of report 0x23. Another report (0x82) has the HID_DG_CONTACTMAX in the higher nibble of the third byte. We should supp

[PATCH 4.19 20/79] ieee802154: hwsim: unregister hw while hwsim_subscribe_all_others fails

2019-09-19 Thread Greg Kroah-Hartman
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 4.19 12/79] net_sched: let qdisc_put() accept NULL pointer

2019-09-19 Thread Greg Kroah-Hartman
From: Cong Wang [ Upstream commit 6efb971ba8edfbd80b666f29de12882852f095ae ] When tcf_block_get() fails in sfb_init(), q->qdisc is still a NULL pointer which leads to a crash in sfb_destroy(). Similar for sch_dsmark. Instead of fixing each separately, Linus suggested to just accept NULL pointer

[PATCH 4.19 03/79] RDMA/restrack: Release task struct which was hold by CM_ID object

2019-09-19 Thread Greg Kroah-Hartman
From: Leon Romanovsky commit ed7a01fd3fd77f40b4ef2562b966a5decd8928d2 upstream. Tracking CM_ID resource is performed in two stages: creation of cm_id and connecting it to the cma_dev. It is needed because rdma-cm protocol exports two separate user-visible calls rdma_create_id and rdma_accept. A

[PATCH 4.19 26/79] ARM: dts: dra74x: Fix iodelay configuration for mmc3

2019-09-19 Thread Greg Kroah-Hartman
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 4.19 10/79] udp: correct reuseport selection with connected sockets

2019-09-19 Thread Greg Kroah-Hartman
From: Willem de Bruijn [ Upstream commit acdcecc61285faed359f1a3568c32089cc3a8329 ] UDP reuseport groups can hold a mix unconnected and connected sockets. Ensure that connections only receive all traffic to their 4-tuple. Fast reuseport returns on the first reuseport match on the assumption tha

[PATCH 4.19 13/79] KVM: coalesced_mmio: add bounds checking

2019-09-19 Thread Greg Kroah-Hartman
From: Matt Delco commit b60fe990c6b07ef6d4df67bc0530c7c90a62623a upstream. The first/last indexes are typically shared with a user app. The app can change the 'last' index that the kernel uses to store the next result. This change sanity checks the index before using it for writing to a potenti

[PATCH 4.19 24/79] s390/bpf: fix lcgr instruction encoding

2019-09-19 Thread Greg Kroah-Hartman
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 4.19 30/79] selftests/bpf: fix "bind{4, 6} deny specific IP & port" on s390

2019-09-19 Thread Greg Kroah-Hartman
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 4.19 22/79] ARM: OMAP2+: Fix missing SYSC_HAS_RESET_STATUS for dra7 epwmss

2019-09-19 Thread Greg Kroah-Hartman
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 4.19 29/79] s390/bpf: use 32-bit index for tail calls

2019-09-19 Thread Greg Kroah-Hartman
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 4.19 31/79] tools: bpftool: close prog FD before exit on showing a single program

2019-09-19 Thread Greg Kroah-Hartman
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 4.19 32/79] fpga: altera-ps-spi: Fix getting of optional confd gpio

2019-09-19 Thread Greg Kroah-Hartman
From: Phil Reid [ Upstream commit dec43da46f63eb71f519d963ba6832838e4262a3 ] Currently the driver does not handle EPROBE_DEFER for the confd gpio. Use devm_gpiod_get_optional() instead of devm_gpiod_get() and return error codes from altera_ps_probe(). Fixes: 5692fae0742d ("fpga manager: Add alt

[PATCH 4.19 50/79] NFSv2: Fix write regression

2019-09-19 Thread Greg Kroah-Hartman
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 4.19 00/79] 4.19.75-stable review

2019-09-19 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.19.75 release. There are 79 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Sat 21 Sep 2019 09:44:25 PM UTC. Anything rec

[PATCH 4.19 07/79] media: tm6000: double free if usb disconnect while streaming

2019-09-19 Thread Greg Kroah-Hartman
From: Sean Young commit 699bf94114151aae4dceb2d9dbf1a6312839dcae upstream. The usb_bulk_urb will kfree'd on disconnect, so ensure the pointer is set to NULL after each free. stop stream urb killing urb buffer free tm6000: got start feed request tm6000_start_feed tm6000: got start stream request

[PATCH 4.19 39/79] Kconfig: Fix the reference to the IDT77105 Phy driver in the description of ATM_NICSTAR_USE_IDT77105

2019-09-19 Thread Greg Kroah-Hartman
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 4.19 48/79] netfilter: nf_conntrack_ftp: Fix debug output

2019-09-19 Thread Greg Kroah-Hartman
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 4.19 04/79] Input: elan_i2c - remove Lenovo Legion Y7000 PnpID

2019-09-19 Thread Greg Kroah-Hartman
From: Benjamin Tissoires commit 0c043d70d04711fe6c380df9065fdc44192c49bf upstream. Looks like the Bios of the Lenovo Legion Y7000 is using ELAN061B when the actual device is supposed to be used with hid-multitouch. Remove it from the list of the supported device, hoping that no one will complai

[PATCH 4.19 06/79] USB: usbcore: Fix slab-out-of-bounds bug during device reset

2019-09-19 Thread Greg Kroah-Hartman
From: Alan Stern commit 3dd550a2d36596a1b0ee7955da3b611c031d3873 upstream. The syzbot fuzzer provoked a slab-out-of-bounds error in the USB core: BUG: KASAN: slab-out-of-bounds in memcmp+0xa6/0xb0 lib/string.c:904 Read of size 1 at addr 8881d175bed6 by task kworker/0:3/2746 CPU: 0 PID: 274

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

2019-09-19 Thread Greg Kroah-Hartman
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 4.19 34/79] netfilter: nft_flow_offload: missing netlink attribute policy

2019-09-19 Thread Greg Kroah-Hartman
From: Pablo Neira Ayuso [ Upstream commit 14c415862c0630e01712a4eeaf6159a2b1b6d2a4 ] The netlink attribute policy for NFTA_FLOW_TABLE_NAME is missing. Fixes: a3c90f7a2323 ("netfilter: nf_tables: flow offload expression") Signed-off-by: Pablo Neira Ayuso Signed-off-by: Sasha Levin --- net/net

[PATCH 4.19 36/79] NFSv4: Fix return values for nfs4_file_open()

2019-09-19 Thread Greg Kroah-Hartman
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

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