[PATCH 4.14 43/71] staging: comedi: dt3000: Fix signed integer overflow divider * base

2019-08-22 Thread Greg Kroah-Hartman
From: Ian Abbott commit b4d98bc3fc93ec3a58459948a2c0e0c9b501cd88 upstream. In `dt3k_ns_to_timer()` the following lines near the end of the function result in a signed integer overflow: prescale = 15; base = timer_base * (1 << prescale); divider = 65535; *nanosec

[PATCH 4.19 85/85] mmc: sdhci-of-arasan: Do now show error message in case of deffered probe

2019-08-22 Thread Greg Kroah-Hartman
From: Michal Simek commit 60208a267208c27fa3f23dfd36cbda180471fa98 upstream. When mmc-pwrseq property is passed mmc_pwrseq_alloc() can return -EPROBE_DEFER because driver for power sequence provider is not probed yet. Do not show error message when this situation happens. Signed-off-by: Michal

[PATCH 4.19 83/85] net/mlx5e: Only support tx/rx pause setting for port owner

2019-08-22 Thread Greg Kroah-Hartman
From: Huy Nguyen [ Upstream commit 466df6eb4a9e813b3cfc674363316450c57a89c5 ] Only support changing tx/rx pause frame setting if the net device is the vport group manager. Fixes: 3c2d18ef22df ("net/mlx5e: Support ethtool get/set_pauseparam") Signed-off-by: Huy Nguyen Reviewed-by: Parav Pandit

[PATCH 4.19 23/85] net: usb: pegasus: fix improper read if get_registers() fail

2019-08-22 Thread Greg Kroah-Hartman
From: Denis Kirjanov commit 224c04973db1125fcebefffd86115f99f50f8277 upstream. get_registers() may fail with -ENOMEM and in this case we can read a garbage from the status variable tmp. Reported-by: syzbot+3499a83b2d062ae40...@syzkaller.appspotmail.com Signed-off-by: Denis Kirjanov

[PATCH 4.19 49/85] drm: msm: Fix add_gpu_components

2019-08-22 Thread Greg Kroah-Hartman
[ Upstream commit 9ca7ad6c7706edeae331c1632d0c63897418ebad ] add_gpu_components() adds found GPU nodes from the DT to the match list, regardless of the status of the nodes. This is a problem, because if the nodes are disabled, they should not be on the match list because they will not be

[PATCH 4.19 45/85] arm64/mm: fix variable pud set but not used

2019-08-22 Thread Greg Kroah-Hartman
[ Upstream commit 7d4e2dcf311d3b98421d1f119efe5964cafa32fc ] GCC throws a warning, arch/arm64/mm/mmu.c: In function 'pud_free_pmd_page': arch/arm64/mm/mmu.c:1033:8: warning: variable 'pud' set but not used [-Wunused-but-set-variable] pud_t pud; ^~~ because pud_table() is a macro and

[PATCH 4.19 51/85] Revert "kmemleak: allow to coexist with fault injection"

2019-08-22 Thread Greg Kroah-Hartman
[ Upstream commit df9576def004d2cd5beedc00cb6e8901427634b9 ] When running ltp's oom test with kmemleak enabled, the below warning was triggerred since kernel detects __GFP_NOFAIL & ~__GFP_DIRECT_RECLAIM is passed in: WARNING: CPU: 105 PID: 2138 at mm/page_alloc.c:4608

[PATCH 4.19 81/85] tipc: initialise addr_trail_end when setting node addresses

2019-08-22 Thread Greg Kroah-Hartman
From: Chris Packham [ Upstream commit 8874ecae2977e5a2d4f0ba301364435b81c05938 ] We set the field 'addr_trial_end' to 'jiffies', instead of the current value 0, at the moment the node address is initialized. This guarantees we don't inadvertently enter an address trial period when the node

[PATCH 4.19 82/85] xen/netback: Reset nr_frags before freeing skb

2019-08-22 Thread Greg Kroah-Hartman
From: Ross Lagerwall [ Upstream commit 3a0233ddec554b886298de2428edb5c50a20e694 ] At this point nr_frags has been incremented but the frag does not yet have a page assigned so freeing the skb results in a crash. Reset nr_frags before freeing the skb to prevent this. Signed-off-by: Ross

[PATCH 4.19 74/85] bonding: Add vlan tx offload to hw_enc_features

2019-08-22 Thread Greg Kroah-Hartman
From: YueHaibing [ Upstream commit d595b03de2cb0bdf9bcdf35ff27840cc3a37158f ] As commit 30d8177e8ac7 ("bonding: Always enable vlan tx offload") said, we should always enable bonding's vlan tx offload, pass the vlan packets to the slave devices with vlan tci, let them to handle vlan

[PATCH 4.19 41/85] kbuild: modpost: handle KBUILD_EXTRA_SYMBOLS only for external modules

2019-08-22 Thread Greg Kroah-Hartman
[ Upstream commit cb4819934a7f9b87876f11ed05b8624c0114551b ] KBUILD_EXTRA_SYMBOLS makes sense only when building external modules. Moreover, the modpost sets 'external_module' if the -e option is given. I replaced $(patsubst %, -e %,...) with simpler $(addprefix -e,...) while I was here.

[PATCH 4.19 75/85] net: dsa: Check existence of .port_mdb_add callback before calling it

2019-08-22 Thread Greg Kroah-Hartman
From: Chen-Yu Tsai [ Upstream commit 58799865be84e2a895dab72de0e1b996ed943f22 ] The dsa framework has optional .port_mdb_{prepare,add,del} callback fields for drivers to handle multicast database entries. When adding an entry, the framework goes through a prepare phase, then a commit phase.

Re: [PATCH 5.2 000/135] 5.2.10-stable review

2019-08-22 Thread Greg KH
On Thu, Aug 22, 2019 at 01:05:56PM -0400, Sasha Levin wrote: > > This is the start of the stable review cycle for the 5.2.10 release. > There are 135 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. >

[PATCH 4.19 46/85] IB/core: Add mitigation for Spectre V1

2019-08-22 Thread Greg Kroah-Hartman
[ Upstream commit 61f259821dd3306e49b7d42a3f90fb5a4ff3351b ] Some processors may mispredict an array bounds check and speculatively access memory that they should not. With a user supplied array index we like to play things safe by masking the value with the array size before it is used as an

[PATCH 4.19 68/85] dm: disable DISCARD if the underlying storage no longer supports it

2019-08-22 Thread Greg Kroah-Hartman
From: Mike Snitzer commit bcb44433bba5eaff293888ef22ffa07f1f0347d6 upstream. Storage devices which report supporting discard commands like WRITE_SAME_16 with unmap, but reject discard commands sent to the storage device. This is a clear storage firmware bug but it doesn't change the fact that

[PATCH 4.19 84/85] net/mlx5e: Use flow keys dissector to parse packets for ARFS

2019-08-22 Thread Greg Kroah-Hartman
From: Maxim Mikityanskiy [ Upstream commit 405b93eb764367a670e729da18e54dc42db32620 ] The current ARFS code relies on certain fields to be set in the SKB (e.g. transport_header) and extracts IP addresses and ports by custom code that parses the packet. The necessary SKB fields, however, are not

[PATCH 4.19 43/85] arm64/efi: fix variable si set but not used

2019-08-22 Thread Greg Kroah-Hartman
[ Upstream commit f1d4836201543e88ebe70237e67938168d5fab19 ] GCC throws out this warning on arm64. drivers/firmware/efi/libstub/arm-stub.c: In function 'efi_entry': drivers/firmware/efi/libstub/arm-stub.c:132:22: warning: variable 'si' set but not used [-Wunused-but-set-variable] Fix it by

[PATCH 4.19 78/85] sctp: fix memleak in sctp_send_reset_streams

2019-08-22 Thread Greg Kroah-Hartman
From: zhengbin [ Upstream commit 6d5afe20397b478192ed8c38ec0ee10fa3aec649 ] If the stream outq is not empty, need to kfree nstr_list. Fixes: d570a59c5b5f ("sctp: only allow the out stream reset when the stream outq is empty") Reported-by: Hulk Robot Signed-off-by: zhengbin Acked-by: Marcelo

[PATCH 4.19 35/85] drm/bridge: lvds-encoder: Fix build error while CONFIG_DRM_KMS_HELPER=m

2019-08-22 Thread Greg Kroah-Hartman
[ Upstream commit f4cc743a98136df3c3763050a0e8223b52d9a960 ] If DRM_LVDS_ENCODER=y but CONFIG_DRM_KMS_HELPER=m, build fails: drivers/gpu/drm/bridge/lvds-encoder.o: In function `lvds_encoder_probe': lvds-encoder.c:(.text+0x155): undefined reference to `devm_drm_panel_bridge_add' Reported-by:

[PATCH 4.19 29/85] xen/pciback: remove set but not used variable old_state

2019-08-22 Thread Greg Kroah-Hartman
[ Upstream commit 09e088a4903bd0dd911b4f1732b250130cdaffed ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/xen/xen-pciback/conf_space_capability.c: In function pm_ctrl_write: drivers/xen/xen-pciback/conf_space_capability.c:119:25: warning: variable old_state set but not used

[PATCH 4.19 53/85] asm-generic: fix -Wtype-limits compiler warnings

2019-08-22 Thread Greg Kroah-Hartman
[ Upstream commit cbedfe11347fe418621bd188d58a206beb676218 ] Commit d66acc39c7ce ("bitops: Optimise get_order()") introduced a compilation warning because "rx_frag_size" is an "ushort" while PAGE_SHIFT here is 16. The commit changed the get_order() to be a multi-line macro where compilers insist

[PATCH 4.19 40/85] ata: libahci: do not complain in case of deferred probe

2019-08-22 Thread Greg Kroah-Hartman
[ Upstream commit 090bb803708198e5ab6b0046398c7ed9f4d12d6b ] Retrieving PHYs can defer the probe, do not spawn an error when -EPROBE_DEFER is returned, it is normal behavior. Fixes: b1a9edbda040 ("ata: libahci: allow to use multiple PHYs") Reviewed-by: Hans de Goede Signed-off-by: Miquel Raynal

[PATCH 4.19 39/85] drm/amdgpu: fix a potential information leaking bug

2019-08-22 Thread Greg Kroah-Hartman
[ Upstream commit 929e571c04c285861e0bb049a396a2bdaea63282 ] Coccinelle reports a path that the array "data" is never initialized. The path skips the checks in the conditional branches when either of callback functions, read_wave_vgprs and read_wave_sgprs, is not registered. Later, the

[PATCH 4.19 79/85] sctp: fix the transport error_count check

2019-08-22 Thread Greg Kroah-Hartman
From: Xin Long [ Upstream commit a1794de8b92ea6bc2037f445b296814ac826693e ] As the annotation says in sctp_do_8_2_transport_strike(): "If the transport error count is greater than the pf_retrans threshold, and less than pathmaxrtx ..." It should be transport->error_count checked with

[PATCH 4.19 37/85] scsi: hpsa: correct scsi command status issue after reset

2019-08-22 Thread Greg Kroah-Hartman
[ Upstream commit eeebce1862970653cdf5c01e98bc669edd8f529a ] Reviewed-by: Bader Ali - Saleh Reviewed-by: Scott Teel Reviewed-by: Scott Benesh Reviewed-by: Kevin Barnett Signed-off-by: Don Brace Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/hpsa.c | 12

[PATCH 4.19 69/85] arm64: ftrace: Ensure module ftrace trampoline is coherent with I-side

2019-08-22 Thread Greg Kroah-Hartman
From: Will Deacon commit b6143d10d23ebb4a77af311e8b8b7f019d0163e6 upstream. The initial support for dynamic ftrace trampolines in modules made use of an indirect branch which loaded its target from the beginning of a special section (e71a4e1bebaf7 ("arm64: ftrace: add support for far branches

[PATCH 4.19 47/85] IB/mlx5: Fix MR registration flow to use UMR properly

2019-08-22 Thread Greg Kroah-Hartman
[ Upstream commit e5366d309a772fef264ec85e858f9ea46f939848 ] Driver shouldn't allow to use UMR to register a MR when umr_modify_atomic_disabled is set. Otherwise it will always end up with a failure in the post send flow which sets the UMR WQE to modify atomic access right. Fixes: c8d75a980fab

Re: [PATCH v4 4/6] tpm: tpm_tis_spi: Export functionality to other drivers

2019-08-22 Thread Stephen Boyd
Quoting Jarkko Sakkinen (2019-08-21 10:58:46) > On Mon, Aug 19, 2019 at 10:10:08AM -0700, Stephen Boyd wrote: > > Quoting Jarkko Sakkinen (2019-08-19 09:40:05) > > > > > > Instead there should be a single tpm_tis_spi driver that dynamically > > > either TCG or CR50. I rather take some extra bytes

[PATCH 4.19 20/85] HID: hiddev: do cleanup in failure of opening a device

2019-08-22 Thread Greg Kroah-Hartman
From: Hillf Danton commit 6d4472d7bec39917b54e4e80245784ea5d60ce49 upstream. Undo what we did for opening before releasing the memory slice. Reported-by: syzbot Cc: Andrey Konovalov Signed-off-by: Hillf Danton Signed-off-by: Jiri Kosina Signed-off-by: Greg Kroah-Hartman ---

[PATCH 4.14 40/71] ocfs2: remove set but not used variable last_hash

2019-08-22 Thread Greg Kroah-Hartman
[ Upstream commit 7bc36e3ce91471b6377c8eadc0a2f220a2280083 ] Fixes gcc '-Wunused-but-set-variable' warning: fs/ocfs2/xattr.c: In function ocfs2_xattr_bucket_find: fs/ocfs2/xattr.c:3828:6: warning: variable last_hash set but not used [-Wunused-but-set-variable] It's never used and can be

[PATCH 4.14 45/71] iio: adc: max9611: Fix temperature reading in probe

2019-08-22 Thread Greg Kroah-Hartman
From: Jacopo Mondi commit b9ddd5091160793ee9fac10da765cf3f53d2aaf0 upstream. The max9611 driver reads the die temperature at probe time to validate the communication channel. Use the actual read value to perform the test instead of the read function return value, which was mistakenly used so

[PATCH 4.19 67/85] drm/i915/cfl: Add a new CFL PCI ID.

2019-08-22 Thread Greg Kroah-Hartman
From: Rodrigo Vivi commit d0e062ebb3a44b56a7e672da568334c76f763552 upstream. One more CFL ID added to spec. Cc: José Roberto de Souza Signed-off-by: Rodrigo Vivi Reviewed-by: José Roberto de Souza Link:

[PATCH 4.19 18/85] HID: holtek: test for sanity of intfdata

2019-08-22 Thread Greg Kroah-Hartman
From: Oliver Neukum commit 01ec0a5f19c8c82960a07f6c7410fc9e01d7fb51 upstream. The ioctl handler uses the intfdata of a second interface, which may not be present in a broken or malicious device, hence the intfdata needs to be checked for NULL. [jkos...@suse.cz: fix newly added spurious space]

[PATCH 4.19 64/85] USB: serial: option: Add support for ZTE MF871A

2019-08-22 Thread Greg Kroah-Hartman
From: Yoshiaki Okamoto commit 7e7ae38bf928c5cfa6dd6e9a2cf8b42c84a27c92 upstream. This patch adds support for MF871A USB modem (aka Speed USB STICK U03) to option driver. This modem is manufactured by ZTE corporation, and sold by KDDI. Interface layout: 0: AT 1: MODEM usb-devices output: T:

[PATCH 4.19 54/85] arm64: KVM: regmap: Fix unexpected switch fall-through

2019-08-22 Thread Greg Kroah-Hartman
From: Anders Roxell commit 3d584a3c85d6fe2cf878f220d4ad7145e7f89218 upstream. When fall-through warnings was enabled by default, commit d93512ef0f0e ("Makefile: Globally enable fall-through warning"), the following warnings was starting to show up: In file included from

[PATCH 4.19 58/85] iio: adc: max9611: Fix temperature reading in probe

2019-08-22 Thread Greg Kroah-Hartman
From: Jacopo Mondi commit b9ddd5091160793ee9fac10da765cf3f53d2aaf0 upstream. The max9611 driver reads the die temperature at probe time to validate the communication channel. Use the actual read value to perform the test instead of the read function return value, which was mistakenly used so

[PATCH 4.19 19/85] HID: hiddev: avoid opening a disconnected device

2019-08-22 Thread Greg Kroah-Hartman
From: Hillf Danton commit 9c09b214f30e3c11f9b0b03f89442df03643794d upstream. syzbot found the following crash on: HEAD commit:e96407b4 usb-fuzzer: main usb gadget fuzzer driver git tree: https://github.com/google/kasan.git usb-fuzzer console output:

[PATCH 4.19 28/85] clk: renesas: cpg-mssr: Fix reset control race condition

2019-08-22 Thread Greg Kroah-Hartman
[ Upstream commit e1f1ae8002e4b06addc52443fcd975bbf554ae92 ] The module reset code in the Renesas CPG/MSSR driver uses read-modify-write (RMW) operations to write to a Software Reset Register (SRCRn), and simple writes to write to a Software Reset Clearing Register (SRSTCLRn), as was mandated by

[PATCH 4.19 25/85] riscv: Make __fstate_clean() work correctly.

2019-08-22 Thread Greg Kroah-Hartman
From: Vincent Chen commit 69703eb9a8ae28a46cd5bce7d69ceeef6273a104 upstream. Make the __fstate_clean() function correctly set the state of sstatus.FS in pt_regs to SR_FS_CLEAN. Fixes: 7db91e57a0acd ("RISC-V: Task implementation") Cc: linux-stable Signed-off-by: Vincent Chen Reviewed-by: Anup

[PATCH 4.19 65/85] USB: serial: option: add the BroadMobi BM818 card

2019-08-22 Thread Greg Kroah-Hartman
From: Bob Ham commit e5d8badf37e6b547842f2fcde10361b29e08bd36 upstream. Add a VID:PID for the BroadMobi BM818 M.2 card T: Bus=01 Lev=03 Prnt=40 Port=03 Cnt=01 Dev#= 44 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=2020 ProdID=2060 Rev=00.00 S:

[PATCH 4.19 61/85] usb: cdc-acm: make sure a refcount is taken early enough

2019-08-22 Thread Greg Kroah-Hartman
From: Oliver Neukum commit c52873e5a1ef72f845526d9f6a50704433f9c625 upstream. destroy() will decrement the refcount on the interface, so that it needs to be taken so early that it never undercounts. Fixes: 7fb57a019f94e ("USB: cdc-acm: Fix potential deadlock (lockdep warning)") Cc: stable

[PATCH 4.19 00/85] 4.19.68-stable review

2019-08-22 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.19.68 release. There are 85 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 24 Aug 2019 05:15:49 PM UTC. Anything

[PATCH 4.19 57/85] staging: comedi: dt3000: Fix rounding up of timer divisor

2019-08-22 Thread Greg Kroah-Hartman
From: Ian Abbott commit 8e2a589a3fc36ce858d42e767c3bcd8fc62a512b upstream. `dt3k_ns_to_timer()` determines the prescaler and divisor to use to produce a desired timing period. It is influenced by a rounding mode and can round the divisor up, down, or to the nearest value. However, the code

[PATCH 4.19 38/85] scsi: qla2xxx: Fix possible fcport null-pointer dereferences

2019-08-22 Thread Greg Kroah-Hartman
[ Upstream commit e82f04ec6ba91065fd33a6201ffd7cab840e1475 ] In qla2x00_alloc_fcport(), fcport is assigned to NULL in the error handling code on line 4880: fcport = NULL; Then fcport is used on lines 4883-4886: INIT_WORK(>del_work, qla24xx_delete_sess_fn); INIT_WORK(>reg_work,

[PATCH 4.19 08/85] Revert "pwm: Set class for exported channels in sysfs"

2019-08-22 Thread Greg Kroah-Hartman
From: Fabrice Gasnier commit c289d6625237aa785b484b4e94c23b3b91ea7e60 upstream. This reverts commit 7e5d1fd75c3dde9fc10c4472b9368089d1b81d00 ("pwm: Set class for exported channels in sysfs") as it causes regression with multiple pwm chip[1], when exporting a pwm channel (echo X > export): -

[PATCH 4.19 03/85] mm/hmm: fix bad subpage pointer in try_to_unmap_one

2019-08-22 Thread Greg Kroah-Hartman
From: Ralph Campbell commit 1de13ee59225dfc98d483f8cce7d83f97c0b31de upstream. When migrating an anonymous private page to a ZONE_DEVICE private page, the source page->mapping and page->index fields are copied to the destination ZONE_DEVICE struct page and the page_mapcount() is increased.

[PATCH 4.14 51/71] USB: serial: option: Add support for ZTE MF871A

2019-08-22 Thread Greg Kroah-Hartman
From: Yoshiaki Okamoto commit 7e7ae38bf928c5cfa6dd6e9a2cf8b42c84a27c92 upstream. This patch adds support for MF871A USB modem (aka Speed USB STICK U03) to option driver. This modem is manufactured by ZTE corporation, and sold by KDDI. Interface layout: 0: AT 1: MODEM usb-devices output: T:

[PATCH 4.14 49/71] USB: CDC: fix sanity checks in CDC union parser

2019-08-22 Thread Greg Kroah-Hartman
From: Oliver Neukum commit 54364278fb3cabdea51d6398b07c87415065b3fc upstream. A few checks checked for the size of the pointer to a structure instead of the structure itself. Copy & paste issue presumably. Fixes: e4c6fb7794982 ("usbnet: move the CDC parser into USB core") Cc: stable

[PATCH 4.14 44/71] staging: comedi: dt3000: Fix rounding up of timer divisor

2019-08-22 Thread Greg Kroah-Hartman
From: Ian Abbott commit 8e2a589a3fc36ce858d42e767c3bcd8fc62a512b upstream. `dt3k_ns_to_timer()` determines the prescaler and divisor to use to produce a desired timing period. It is influenced by a rounding mode and can round the divisor up, down, or to the nearest value. However, the code

[PATCH 4.19 10/85] xtensa: add missing isync to the cpu_reset TLB code

2019-08-22 Thread Greg Kroah-Hartman
From: Max Filippov commit cd8869f4cb257f22b89495ca40f5281e58ba359c upstream. ITLB entry modifications must be followed by the isync instruction before the new entries are possibly used. cpu_reset lacks one isync between ITLB way 6 initialization and jump to the identity mapping. Add missing

[PATCH 4.14 67/71] net/mlx5e: Use flow keys dissector to parse packets for ARFS

2019-08-22 Thread Greg Kroah-Hartman
From: Maxim Mikityanskiy [ Upstream commit 405b93eb764367a670e729da18e54dc42db32620 ] The current ARFS code relies on certain fields to be set in the SKB (e.g. transport_header) and extracts IP addresses and ports by custom code that parses the packet. The necessary SKB fields, however, are not

[PATCH 4.14 66/71] net/mlx5e: Only support tx/rx pause setting for port owner

2019-08-22 Thread Greg Kroah-Hartman
From: Huy Nguyen [ Upstream commit 466df6eb4a9e813b3cfc674363316450c57a89c5 ] Only support changing tx/rx pause frame setting if the net device is the vport group manager. Fixes: 3c2d18ef22df ("net/mlx5e: Support ethtool get/set_pauseparam") Signed-off-by: Huy Nguyen Reviewed-by: Parav Pandit

[PATCH 4.14 48/71] usb: cdc-acm: make sure a refcount is taken early enough

2019-08-22 Thread Greg Kroah-Hartman
From: Oliver Neukum commit c52873e5a1ef72f845526d9f6a50704433f9c625 upstream. destroy() will decrement the refcount on the interface, so that it needs to be taken so early that it never undercounts. Fixes: 7fb57a019f94e ("USB: cdc-acm: Fix potential deadlock (lockdep warning)") Cc: stable

[PATCH 4.19 15/85] ALSA: hda - Fix a memory leak bug

2019-08-22 Thread Greg Kroah-Hartman
From: Wenwen Wang commit cfef67f016e4c00a2f423256fc678a6967a9fc09 upstream. In snd_hda_parse_generic_codec(), 'spec' is allocated through kzalloc(). Then, the pin widgets in 'codec' are parsed. However, if the parsing process fails, 'spec' is not deallocated, leading to a memory leak. To fix

[PATCH 4.14 50/71] USB: serial: option: add D-Link DWM-222 device ID

2019-08-22 Thread Greg Kroah-Hartman
From: Rogan Dawes commit 552573e42aab5f75aff9bab855a9677979d9a7d5 upstream. Add device id for D-Link DWM-222 A2. MI_00 D-Link HS-USB Diagnostics MI_01 D-Link HS-USB Modem MI_02 D-Link HS-USB AT Port MI_03 D-Link HS-USB NMEA MI_04 D-Link HS-USB WWAN Adapter (qmi_wwan) MI_05 USB Mass Storage

[PATCH 4.14 08/71] x86/mm: Use WRITE_ONCE() when setting PTEs

2019-08-22 Thread Greg Kroah-Hartman
From: Nadav Amit commit 9bc4f28af75a91aea0ae383f50b0a430c4509303 upstream. When page-table entries are set, the compiler might optimize their assignment by using multiple instructions to set the PTE. This might turn into a security hazard if the user somehow manages to use the interim PTE. L1TF

[PATCH 4.14 07/71] bpf: add bpf_jit_limit knob to restrict unpriv allocations

2019-08-22 Thread Greg Kroah-Hartman
From: Daniel Borkmann commit ede95a63b5e84ddeea6b0c473b36ab8bfd8c6ce3 upstream. Rick reported that the BPF JIT could potentially fill the entire module space with BPF programs from unprivileged users which would prevent later attempts to load normal kernel modules or privileged BPF programs,

[PATCH 4.14 36/71] arm64/mm: fix variable pud set but not used

2019-08-22 Thread Greg Kroah-Hartman
[ Upstream commit 7d4e2dcf311d3b98421d1f119efe5964cafa32fc ] GCC throws a warning, arch/arm64/mm/mmu.c: In function 'pud_free_pmd_page': arch/arm64/mm/mmu.c:1033:8: warning: variable 'pud' set but not used [-Wunused-but-set-variable] pud_t pud; ^~~ because pud_table() is a macro and

[PATCH v4 2/8] clk: Warn if clk_init_data is not zero initialized

2019-08-22 Thread Manivannan Sadhasivam
The new implementation for determining parent map uses multiple ways to pass parent info. The order in which it gets processed depends on the first available member. Hence, it is necessary to zero init the clk_init_data struct so that the expected member gets processed correctly. So, add a warning

[PATCH 4.14 39/71] drm: msm: Fix add_gpu_components

2019-08-22 Thread Greg Kroah-Hartman
[ Upstream commit 9ca7ad6c7706edeae331c1632d0c63897418ebad ] add_gpu_components() adds found GPU nodes from the DT to the match list, regardless of the status of the nodes. This is a problem, because if the nodes are disabled, they should not be on the match list because they will not be

[PATCH 4.14 31/71] scsi: qla2xxx: Fix possible fcport null-pointer dereferences

2019-08-22 Thread Greg Kroah-Hartman
[ Upstream commit e82f04ec6ba91065fd33a6201ffd7cab840e1475 ] In qla2x00_alloc_fcport(), fcport is assigned to NULL in the error handling code on line 4880: fcport = NULL; Then fcport is used on lines 4883-4886: INIT_WORK(>del_work, qla24xx_delete_sess_fn); INIT_WORK(>reg_work,

[PATCH 4.14 06/71] bpf: restrict access to core bpf sysctls

2019-08-22 Thread Greg Kroah-Hartman
From: Daniel Borkmann commit 2e4a30983b0f9b19b59e38bbf7427d7fdd480d98 upstream. Given BPF reaches far beyond just networking these days, it was never intended to allow setting and in some cases reading those knobs out of a user namespace root running without CAP_SYS_ADMIN, thus tighten such

[PATCH 4.14 30/71] scsi: hpsa: correct scsi command status issue after reset

2019-08-22 Thread Greg Kroah-Hartman
[ Upstream commit eeebce1862970653cdf5c01e98bc669edd8f529a ] Reviewed-by: Bader Ali - Saleh Reviewed-by: Scott Teel Reviewed-by: Scott Benesh Reviewed-by: Kevin Barnett Signed-off-by: Don Brace Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/hpsa.c | 12

[PATCH 4.14 19/71] net: usb: pegasus: fix improper read if get_registers() fail

2019-08-22 Thread Greg Kroah-Hartman
From: Denis Kirjanov commit 224c04973db1125fcebefffd86115f99f50f8277 upstream. get_registers() may fail with -ENOMEM and in this case we can read a garbage from the status variable tmp. Reported-by: syzbot+3499a83b2d062ae40...@syzkaller.appspotmail.com Signed-off-by: Denis Kirjanov

[PATCH 4.14 33/71] kbuild: modpost: handle KBUILD_EXTRA_SYMBOLS only for external modules

2019-08-22 Thread Greg Kroah-Hartman
[ Upstream commit cb4819934a7f9b87876f11ed05b8624c0114551b ] KBUILD_EXTRA_SYMBOLS makes sense only when building external modules. Moreover, the modpost sets 'external_module' if the -e option is given. I replaced $(patsubst %, -e %,...) with simpler $(addprefix -e,...) while I was here.

[PATCH 4.9 071/103] perf header: Fix use of unitialized value warning

2019-08-22 Thread Greg Kroah-Hartman
[ Upstream commit 20f9781f491360e7459c589705a2e4b1f136bee9 ] When building our local version of perf with MSAN (Memory Sanitizer) and running the perf record command, MSAN throws a use of uninitialized value warning in "tools/perf/util/util.c:333:6". This warning stems from the "buf" variable

[PATCH 4.9 078/103] IB/core: Add mitigation for Spectre V1

2019-08-22 Thread Greg Kroah-Hartman
[ Upstream commit 61f259821dd3306e49b7d42a3f90fb5a4ff3351b ] Some processors may mispredict an array bounds check and speculatively access memory that they should not. With a user supplied array index we like to play things safe by masking the value with the array size before it is used as an

[PATCH 4.9 023/103] drbd: dynamically allocate shash descriptor

2019-08-22 Thread Greg Kroah-Hartman
[ Upstream commit 77ce56e2bfaa64127ae5e23ef136c0168b818777 ] Building with clang and KASAN, we get a warning about an overly large stack frame on 32-bit architectures: drivers/block/drbd/drbd_receiver.c:921:31: error: stack frame size of 1280 bytes in function 'conn_connect'

[PATCH 4.4 58/78] usb: cdc-acm: make sure a refcount is taken early enough

2019-08-22 Thread Greg Kroah-Hartman
From: Oliver Neukum commit c52873e5a1ef72f845526d9f6a50704433f9c625 upstream. destroy() will decrement the refcount on the interface, so that it needs to be taken so early that it never undercounts. Fixes: 7fb57a019f94e ("USB: cdc-acm: Fix potential deadlock (lockdep warning)") Cc: stable

[PATCH 4.9 025/103] ARM: davinci: fix sleep.S build error on ARMv4

2019-08-22 Thread Greg Kroah-Hartman
[ Upstream commit d64b212ea960db4276a1d8372bd98cb861dfcbb0 ] When building a multiplatform kernel that includes armv4 support, the default target CPU does not support the blx instruction, which leads to a build failure: arch/arm/mach-davinci/sleep.S: Assembler messages:

[PATCH 4.9 013/103] iscsi_ibft: make ISCSI_IBFT dependson ACPI instead of ISCSI_IBFT_FIND

2019-08-22 Thread Greg Kroah-Hartman
[ Upstream commit 94bccc34071094c165c79b515d21b63c78f7e968 ] iscsi_ibft can use ACPI to find the iBFT entry during bootup, currently, ISCSI_IBFT depends on ISCSI_IBFT_FIND which is a X86 legacy way to find the iBFT by searching through the low memory. This patch changes the dependency so that

[PATCH 4.14 00/71] 4.14.140-stable review

2019-08-22 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.14.140 release. There are 71 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 24 Aug 2019 05:15:46 PM UTC. Anything

[PATCH 4.9 020/103] ALSA: compress: Dont allow paritial drain operations on capture streams

2019-08-22 Thread Greg Kroah-Hartman
[ Upstream commit a70ab8a8645083f3700814e757f2940a88b7ef88 ] Partial drain and next track are intended for gapless playback and don't really have an obvious interpretation for a capture stream, so makes sense to not allow those operations on capture streams. Signed-off-by: Charles Keepax

[PATCH 4.9 007/103] perf record: Fix wrong size in perf_record_mmap for last kernel module

2019-08-22 Thread Greg Kroah-Hartman
From: Thomas Richter commit 9ad4652b66f19a60f07e63b942b80b5c2d7465bf upstream. During work on perf report for s390 I ran into the following issue: 0 0x318 [0x78]: PERF_RECORD_MMAP -1/0: [0x3ff804d6990(0xfc007fb2966f) @ 0]: x

[PATCH 4.14 01/71] scsi: mpt3sas: Use 63-bit DMA addressing on SAS35 HBA

2019-08-22 Thread Greg Kroah-Hartman
From: Suganath Prabu commit df9a606184bfdb5ae3ca9d226184e9489f5c24f7 upstream. Although SAS3 & SAS3.5 IT HBA controllers support 64-bit DMA addressing, as per hardware design, if DMA-able range contains all 64-bits set (0x-) then it results in a firmware fault. E.g. SGE's start

[PATCH 4.14 04/71] mm/memcontrol.c: fix use after free in mem_cgroup_iter()

2019-08-22 Thread Greg Kroah-Hartman
From: Miles Chen commit 54a83d6bcbf8f4700013766b974bf9190d40b689 upstream. This patch is sent to report an use after free in mem_cgroup_iter() after merging commit be2657752e9e ("mm: memcg: fix use after free in mem_cgroup_iter()"). I work with android kernel tree (4.9 & 4.14), and commit

[PATCH 4.9 098/103] sctp: fix the transport error_count check

2019-08-22 Thread Greg Kroah-Hartman
From: Xin Long [ Upstream commit a1794de8b92ea6bc2037f445b296814ac826693e ] As the annotation says in sctp_do_8_2_transport_strike(): "If the transport error count is greater than the pf_retrans threshold, and less than pathmaxrtx ..." It should be transport->error_count checked with

[PATCH 4.9 044/103] mm/memcontrol.c: fix use after free in mem_cgroup_iter()

2019-08-22 Thread Greg Kroah-Hartman
From: Miles Chen commit 54a83d6bcbf8f4700013766b974bf9190d40b689 upstream. This patch is sent to report an use after free in mem_cgroup_iter() after merging commit be2657752e9e ("mm: memcg: fix use after free in mem_cgroup_iter()"). I work with android kernel tree (4.9 & 4.14), and commit

[PATCH 4.9 066/103] Input: iforce - add sanity checks

2019-08-22 Thread Greg Kroah-Hartman
From: Oliver Neukum commit 849f5ae3a513c550cad741c68dd3d7eb2bcc2a2c upstream. The endpoint type should also be checked before a device is accepted. Reported-by: syzbot+5efc10c005014d061...@syzkaller.appspotmail.com Signed-off-by: Oliver Neukum Signed-off-by: Dmitry Torokhov Signed-off-by:

[PATCH 4.9 087/103] USB: serial: option: Add support for ZTE MF871A

2019-08-22 Thread Greg Kroah-Hartman
From: Yoshiaki Okamoto commit 7e7ae38bf928c5cfa6dd6e9a2cf8b42c84a27c92 upstream. This patch adds support for MF871A USB modem (aka Speed USB STICK U03) to option driver. This modem is manufactured by ZTE corporation, and sold by KDDI. Interface layout: 0: AT 1: MODEM usb-devices output: T:

[PATCH 4.9 048/103] vhost-net: set packet weight of tx polling to 2 * vq size

2019-08-22 Thread Greg Kroah-Hartman
From: haibinzhang(张海斌) commit a2ac99905f1ea8b15997a6ec39af69aa28a3653b upstream. handle_tx will delay rx for tens or even hundreds of milliseconds when tx busy polling udp packets with small length(e.g. 1byte udp payload), because setting VHOST_NET_WEIGHT takes into account only sent-bytes but

[PATCH 4.9 036/103] mac80211: dont WARN on short WMM parameters from AP

2019-08-22 Thread Greg Kroah-Hartman
From: Brian Norris commit 05aaa5c97dce4c10a9e7eae2f1569a684e0c5ced upstream. In a very similar spirit to commit c470bdc1aaf3 ("mac80211: don't WARN on bad WMM parameters from buggy APs"), an AP may not transmit a fully-formed WMM IE. For example, it may miss or repeat an Access Category. The

[PATCH 4.9 008/103] perf db-export: Fix thread__exec_comm()

2019-08-22 Thread Greg Kroah-Hartman
From: Adrian Hunter commit 3de7ae0b2a1d86dbb23d0cb135150534fdb2e836 upstream. Threads synthesized from /proc have comms with a start time of zero, and not marked as "exec". Currently, there can be 2 such comms. The first is created by processing a synthesized fork event and is set to the

[PATCH 4.9 018/103] ALSA: compress: Fix regression on compressed capture streams

2019-08-22 Thread Greg Kroah-Hartman
[ Upstream commit 4475f8c4ab7b248991a60d9c02808dbb813d6be8 ] A previous fix to the stop handling on compressed capture streams causes some knock on issues. The previous fix updated snd_compr_drain_notify to set the state back to PREPARED for capture streams. This causes some issues however as the

[PATCH 4.9 004/103] x86/mm: Check for pfn instead of page in vmalloc_sync_one()

2019-08-22 Thread Greg Kroah-Hartman
From: Joerg Roedel commit 51b75b5b563a2637f9d8dc5bd02a31b2ff9e5ea0 upstream. Do not require a struct page for the mapped memory location because it might not exist. This can happen when an ioremapped region is mapped with 2MB pages. Fixes: 5d72b4fba40ef ('x86, mm: support huge I/O mapping

[PATCH 4.9 021/103] ALSA: compress: Be more restrictive about when a drain is allowed

2019-08-22 Thread Greg Kroah-Hartman
[ Upstream commit 3b8179944cb0dd53e5223996966746cdc8a60657 ] Draining makes little sense in the situation of hardware overrun, as the hardware will have consumed all its available samples. Additionally, draining whilst the stream is paused would presumably get stuck as no data is being consumed

[PATCH 4.9 047/103] bpf: add bpf_jit_limit knob to restrict unpriv allocations

2019-08-22 Thread Greg Kroah-Hartman
From: Daniel Borkmann commit ede95a63b5e84ddeea6b0c473b36ab8bfd8c6ce3 upstream. Rick reported that the BPF JIT could potentially fill the entire module space with BPF programs from unprivileged users which would prevent later attempts to load normal kernel modules or privileged BPF programs,

[PATCH 4.9 101/103] net/mlx5e: Use flow keys dissector to parse packets for ARFS

2019-08-22 Thread Greg Kroah-Hartman
From: Maxim Mikityanskiy [ Upstream commit 405b93eb764367a670e729da18e54dc42db32620 ] The current ARFS code relies on certain fields to be set in the SKB (e.g. transport_header) and extracts IP addresses and ports by custom code that parses the packet. The necessary SKB fields, however, are not

[PATCH 4.4 46/78] perf header: Fix divide by zero error if f_header.attr_size==0

2019-08-22 Thread Greg Kroah-Hartman
[ Upstream commit 7622236ceb167aa3857395f9bdaf871442aa467e ] So I have been having lots of trouble with hand-crafted perf.data files causing segfaults and the like, so I have started fuzzing the perf tool. First issue found: If f_header.attr_size is 0 in the perf.data file, then perf will crash

[PATCH 4.9 033/103] hwmon: (nct7802) Fix wrong detection of in4 presence

2019-08-22 Thread Greg Kroah-Hartman
From: Guenter Roeck commit 38ada2f406a9b81fb1249c5c9227fa657e7d5671 upstream. The code to detect if in4 is present is wrong; if in4 is not present, the in4_input sysfs attribute is still present. In detail: - Ihen RTD3_MD=11 (VSEN3 present), everything is as expected (no bug). - If we have

[PATCH 4.4 75/78] xen/netback: Reset nr_frags before freeing skb

2019-08-22 Thread Greg Kroah-Hartman
From: Ross Lagerwall [ Upstream commit 3a0233ddec554b886298de2428edb5c50a20e694 ] At this point nr_frags has been incremented but the frag does not yet have a page assigned so freeing the skb results in a crash. Reset nr_frags before freeing the skb to prevent this. Signed-off-by: Ross

[PATCH 4.4 66/78] Input: psmouse - fix build error of multiple definition

2019-08-22 Thread Greg Kroah-Hartman
From: YueHaibing commit 49e6979e7e92cf496105b5636f1df0ac17c159c0 upstream. trackpoint_detect() should be static inline while CONFIG_MOUSE_PS2_TRACKPOINT is not set, otherwise, we build fails: drivers/input/mouse/alps.o: In function `trackpoint_detect': alps.c:(.text+0x8e00): multiple

[PATCH 4.4 08/78] can: peak_usb: fix potential double kfree_skb()

2019-08-22 Thread Greg Kroah-Hartman
From: Stephane Grosjean commit fee6a8923ae0d318a7f7950c6c6c28a96cea099b upstream. When closing the CAN device while tx skbs are inflight, echo skb could be released twice. By calling close_candev() before unlinking all pending tx urbs, then the internal echo_skb[] array is fully and correctly

[PATCH 4.4 38/78] HID: holtek: test for sanity of intfdata

2019-08-22 Thread Greg Kroah-Hartman
From: Oliver Neukum commit 01ec0a5f19c8c82960a07f6c7410fc9e01d7fb51 upstream. The ioctl handler uses the intfdata of a second interface, which may not be present in a broken or malicious device, hence the intfdata needs to be checked for NULL. [jkos...@suse.cz: fix newly added spurious space]

[PATCH 4.4 44/78] xen/pciback: remove set but not used variable old_state

2019-08-22 Thread Greg Kroah-Hartman
[ Upstream commit 09e088a4903bd0dd911b4f1732b250130cdaffed ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/xen/xen-pciback/conf_space_capability.c: In function pm_ctrl_write: drivers/xen/xen-pciback/conf_space_capability.c:119:25: warning: variable old_state set but not used

[PATCH 4.4 37/78] ALSA: hda - Fix a memory leak bug

2019-08-22 Thread Greg Kroah-Hartman
From: Wenwen Wang commit cfef67f016e4c00a2f423256fc678a6967a9fc09 upstream. In snd_hda_parse_generic_codec(), 'spec' is allocated through kzalloc(). Then, the pin widgets in 'codec' are parsed. However, if the parsing process fails, 'spec' is not deallocated, leading to a memory leak. To fix

[PATCH 4.4 51/78] kbuild: modpost: handle KBUILD_EXTRA_SYMBOLS only for external modules

2019-08-22 Thread Greg Kroah-Hartman
[ Upstream commit cb4819934a7f9b87876f11ed05b8624c0114551b ] KBUILD_EXTRA_SYMBOLS makes sense only when building external modules. Moreover, the modpost sets 'external_module' if the -e option is given. I replaced $(patsubst %, -e %,...) with simpler $(addprefix -e,...) while I was here.

[PATCH 4.4 05/78] mm/vmalloc: Sync unmappings in __purge_vmap_area_lazy()

2019-08-22 Thread Greg Kroah-Hartman
From: Joerg Roedel commit 3f8fd02b1bf1d7ba964485a56f2f4b53ae88c167 upstream. On x86-32 with PTI enabled, parts of the kernel page-tables are not shared between processes. This can cause mappings in the vmalloc/ioremap area to persist in some page-tables after the region is unmapped and

[PATCH 4.4 03/78] x86/mm: Check for pfn instead of page in vmalloc_sync_one()

2019-08-22 Thread Greg Kroah-Hartman
From: Joerg Roedel commit 51b75b5b563a2637f9d8dc5bd02a31b2ff9e5ea0 upstream. Do not require a struct page for the mapped memory location because it might not exist. This can happen when an ioremapped region is mapped with 2MB pages. Fixes: 5d72b4fba40ef ('x86, mm: support huge I/O mapping

[PATCH 4.4 28/78] mac80211: dont WARN on short WMM parameters from AP

2019-08-22 Thread Greg Kroah-Hartman
From: Brian Norris commit 05aaa5c97dce4c10a9e7eae2f1569a684e0c5ced upstream. In a very similar spirit to commit c470bdc1aaf3 ("mac80211: don't WARN on bad WMM parameters from buggy APs"), an AP may not transmit a fully-formed WMM IE. For example, it may miss or repeat an Access Category. The

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