[PATCH AUTOSEL for 4.14 056/135] media: usbtv: fix brightness and contrast controls

2017-12-07 Thread alexander . levin
From: Adam Sampson [ Upstream commit b3168c87c0492661badc3e908f977d79e7738a41 ] Because the brightness and contrast controls share a register, usbtv_s_ctrl needs to read the existing values for both controls before inserting the new value. However, the code accidentally wrote to the registers (f

[PATCH AUTOSEL for 4.14 055/135] GFS2: Take inode off order_write list when setting jdata flag

2017-12-07 Thread alexander . levin
From: Bob Peterson [ Upstream commit cc555b09d8c3817aeebda43a14ab67049a5653f7 ] This patch fixes a deadlock caused when the jdata flag is set for inodes that are already on the ordered write list. Since it is on the ordered write list, log_flush calls gfs2_ordered_write which calls filemap_fdata

[PATCH AUTOSEL for 4.14 043/135] clk: imx6: refine hdmi_isfr's parent to make HDMI work on i.MX6 SoCs w/o VPU

2017-12-07 Thread alexander . levin
From: Sébastien Szymanski [ Upstream commit c68ee58d9ee7b856ac722f18f4f26579c8fbd2b4 ] On i.MX6 SoCs without VPU (in my case MCIMX6D4AVT10AC), the hdmi driver fails to probe: [2.540030] dwhdmi-imx 12.hdmi: Unsupported HDMI controller (:00:00) [2.548199] imx-drm display-subsystem

[PATCH AUTOSEL for 4.14 044/135] media: camss-vfe: always initialize reg at vfe_set_xbar_cfg()

2017-12-07 Thread alexander . levin
From: Mauro Carvalho Chehab [ Upstream commit 9917fbcfa20ab987d6381fd0365665e5c1402d75 ] if output->wm_num is bigger than 2, the value for reg is not initialized, as warned by smatch: drivers/media/platform/qcom/camss-8x16/camss-vfe.c:633 vfe_set_xbar_cfg() error: uninitialized symbol '

[PATCH AUTOSEL for 4.14 048/135] clk: tegra: Fix cclk_lp divisor register

2017-12-07 Thread alexander . levin
From: Michał Mirosław [ Upstream commit 54eff2264d3e9fd7e3987de1d7eba1d3581c631e ] According to comments in code and common sense, cclk_lp uses its own divisor, not cclk_g's. Fixes: b08e8c0ecc42 ("clk: tegra: add clock support for Tegra30") Signed-off-by: Michał Mirosław Acked-By: Peter De Sch

[PATCH AUTOSEL for 4.14 049/135] ppp: Destroy the mutex when cleanup

2017-12-07 Thread alexander . levin
From: Gao Feng [ Upstream commit f02b2320b27c16b644691267ee3b5c110846f49e ] The mutex_destroy only makes sense when enable DEBUG_MUTEX. For the good readbility, it's better to invoke it in exit func when the init func invokes mutex_init. Signed-off-by: Gao Feng Acked-by: Guillaume Nault Signe

[PATCH AUTOSEL for 4.14 051/135] thermal/drivers/step_wise: Fix temperature regulation misbehavior

2017-12-07 Thread alexander . levin
From: Daniel Lezcano [ Upstream commit 07209fcf33542c1ff1e29df2dbdf8f29cdaacb10 ] There is a particular situation when the cooling device is cpufreq and the heat dissipation is not efficient enough where the temperature increases little by little until reaching the critical threshold and leading

[PATCH AUTOSEL for 4.14 057/135] rpmsg: glink: Initialize the "intent_req_comp" completion variable

2017-12-07 Thread alexander . levin
From: Arun Kumar Neelakantam [ Upstream commit 2394facb17bcace4b3c19b50202177a5d8903b64 ] The "intent_req_comp" variable is used without initialization which results in NULL pointer dereference in qcom_glink_request_intent(). we need to initialize the completion variable before using it. Fixes

[PATCH AUTOSEL for 4.14 052/135] misc: pci_endpoint_test: Fix failure path return values in probe

2017-12-07 Thread alexander . levin
From: Kishon Vijay Abraham I [ Upstream commit 80068c93688f6143100859c4856f895801c1a1d9 ] Return value of pci_endpoint_test_probe is not set properly in a couple of failure cases. Fix it here. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Bjorn Helgaas Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL for 4.14 058/135] bcache: explicitly destroy mutex while exiting

2017-12-07 Thread alexander . levin
From: Liang Chen [ Upstream commit 330a4db89d39a6b43f36da16824eaa7a7509d34d ] mutex_destroy does nothing most of time, but it's better to call it to make the code future proof and it also has some meaning for like mutex debug. As Coly pointed out in a previous review, bcache_exit() may not be a

[PATCH AUTOSEL for 4.14 053/135] misc: pci_endpoint_test: Avoid triggering a BUG()

2017-12-07 Thread alexander . levin
From: Dan Carpenter [ Upstream commit 846df244ebefbc9f7b91e9ae7a5e5a2e69fb4772 ] If you call ida_simple_remove(&pci_endpoint_test_ida, id) with a negative "id" then it triggers an immediate BUG_ON(). Let's not allow that. Fixes: 2c156ac71c6b ("misc: Add host side PCI driver for PCI test functi

[PATCH AUTOSEL for 4.14 085/135] PCI: Detach driver before procfs & sysfs teardown on device remove

2017-12-07 Thread alexander . levin
From: Alex Williamson [ Upstream commit 16b6c8bb687cc3bec914de09061fcb8411951fda ] When removing a device, for example a VF being removed due to SR-IOV teardown, a "soft" hot-unplug via 'echo 1 > remove' in sysfs, or an actual hot-unplug, we first remove the procfs and sysfs attributes for the d

[PATCH AUTOSEL for 4.14 079/135] xfs: fix incorrect extent state in xfs_bmap_add_extent_unwritten_real

2017-12-07 Thread alexander . levin
From: Christoph Hellwig [ Upstream commit 5e422f5e4fd71d18bc6b851eeb3864477b3d842e ] There was one spot in xfs_bmap_add_extent_unwritten_real that didn't use the passed in new extent state but always converted to normal, leading to wrong behavior when converting from normal to unwritten. Only f

[PATCH AUTOSEL for 4.14 067/135] btrfs: tests: Fix a memory leak in error handling path in 'run_test()'

2017-12-07 Thread alexander . levin
From: Christophe JAILLET [ Upstream commit 9ca2e97fa3c3216200afe35a3b111ec51cc796d2 ] If 'btrfs_alloc_path()' fails, we must free the resources already allocated, as done in the other error handling paths in this function. Signed-off-by: Christophe JAILLET Reviewed-by: Qu Wenruo Signed-off-by

[PATCH AUTOSEL for 4.14 083/135] net: hns3: fix the bug of hns3_set_txbd_baseinfo

2017-12-07 Thread alexander . levin
From: Lipeng [ Upstream commit 7036d26f328f12a323069eb16d965055b4cb3795 ] The SC bits of TX BD mean switch control. For this area, value 0 indicates no switch control, the packet is routed according to the forwarding table. Value 1 indicates that the packet is transmitted to the network bypassin

[PATCH AUTOSEL for 4.14 064/135] btrfs: Explicitly handle btrfs_update_root failure

2017-12-07 Thread alexander . levin
From: Nikolay Borisov [ Upstream commit 9417ebc8a676487c6ec8825f92fb28f7dbeb5f4b ] btrfs_udpate_root can fail and it aborts the transaction, the correct way to handle an aborted transaction is to explicitly end with btrfs_end_transaction. Even now the code is correct since btrfs_commit_transact

[PATCH AUTOSEL for 4.14 070/135] ARM64: dts: meson-gxbb-odroidc2: fix usb1 power supply

2017-12-07 Thread alexander . levin
From: Neil Armstrong [ Upstream commit e841ec956e539f4002f5e9fe9f9e904dcca12d5d ] Looking at the schematics, the USB Power Supply is shared between the two USB interfaces, If the usb0 fails to initialize, the second one won't have power. Fixes: 5a0803bd5ae2 ("ARM64: dts: meson-gxbb-odroidc2: En

[PATCH AUTOSEL for 4.14 091/135] net: hns3: fix the bug when map buffer fail

2017-12-07 Thread alexander . levin
From: Lipeng [ Upstream commit 564883bb4dc1a4f3cba6344e77743175694b0761 ] If one buffer had been recieved to stack, driver will alloc a new buffer, map the buffer to device and replace the old buffer. When map fail, should only free the new alloced buffer, but not free all buffers in the ring.

[PATCH AUTOSEL for 4.14 066/135] btrfs: avoid null pointer dereference on fs_info when calling btrfs_crit

2017-12-07 Thread alexander . levin
From: Colin Ian King [ Upstream commit 3993b112dac968612b0b213ed59cb30f50b0015b ] There are checks on fs_info in __btrfs_panic to avoid dereferencing a null fs_info, however, there is a call to btrfs_crit that may also dereference a null fs_info. Fix this by adding a check to see if fs_info is n

[PATCH AUTOSEL for 4.14 063/135] btrfs: fix false EIO for missing device

2017-12-07 Thread alexander . levin
From: Anand Jain [ Upstream commit 102ed2c5ff932439bbbe74c7bd63e6d5baa9f732 ] When one of the device is missing, bbio_error() takes care of setting the error status. And if its only IO that is pending in that stripe, it fails to check the status of the other IO at %bbio_error before setting the

[PATCH AUTOSEL for 4.14 061/135] Bluetooth: hci_ldisc: Fix another race when closing the tty.

2017-12-07 Thread alexander . levin
From: Ronald Tschalär [ Upstream commit 0338b1b393ec7910898e8f7b25b3bf31a7282e16 ] The following race condition still existed: P1P2 cancel_work_sync() hci_uart_tx_wakeup() hci_ua

[PATCH AUTOSEL for 4.14 065/135] btrfs: undo writable superblocke when sprouting fails

2017-12-07 Thread alexander . levin
From: Anand Jain [ Upstream commit 0af2c4bf5a012a40a2f9230458087d7f068339d0 ] When new device is being added to seed FS, seed FS is marked writable, but when we fail to bring in the new device, we missed to undo the writable part. This patch fixes it. Signed-off-by: Anand Jain Reviewed-by: Nik

[PATCH AUTOSEL for 4.14 077/135] xfs: fix log block underflow during recovery cycle verification

2017-12-07 Thread alexander . levin
From: Brian Foster [ Upstream commit 9f2a4505800607e537e9dd9dea4f55c4b0c30c7a ] It is possible for mkfs to format very small filesystems with too small of an internal log with respect to the various minimum size and block count requirements. If this occurs when the log happens to be smaller than

[PATCH AUTOSEL for 4.14 075/135] nvme: use kref_get_unless_zero in nvme_find_get_ns

2017-12-07 Thread alexander . levin
From: Christoph Hellwig [ Upstream commit 2dd4122854f697afc777582d18548dded03ce5dd ] For kref_get_unless_zero to protect against lookup vs free races we need to use it in all places where we aren't guaranteed to already hold a reference. There is no such guarantee in nvme_find_get_ns, so switch

[PATCH AUTOSEL for 4.14 073/135] liquidio: fix kernel panic in VF driver

2017-12-07 Thread alexander . levin
From: Felix Manlunas [ Upstream commit aa28667cfbe4ff6f14454dda210b1f2e485f99b5 ] Doing ifconfig down on VF driver in the middle of receiving line rate traffic causes a kernel panic: LiquidIO_VF :02:00.3: should not come here should not get rx when poll mode = 0 for vf BUG: unable

[PATCH AUTOSEL for 4.14 074/135] platform/x86: hp_accel: Add quirk for HP ProBook 440 G4

2017-12-07 Thread alexander . levin
From: Osama Khan [ Upstream commit 163ca80013aafb6dc9cb295de3db7aeab9ab43f8 ] Added support for HP ProBook 440 G4 laptops by including the accelerometer orientation quirk for that device. Testing was performed based on the axis orientation guidelines here: https://www.kernel.org/doc/Documentatio

[PATCH AUTOSEL for 4.14 071/135] Bluetooth: btusb: Add new NFA344A entry.

2017-12-07 Thread alexander . levin
From: Bartosz Chronowski [ Upstream commit 858ff38af77fc660092e82474ecc6ac135ed29fe ] This change allows proper low power mode entry in suspend. /sys/kernel/debug/usb/devices entry: T: Bus=01 Lev=01 Prnt=01 Port=05 Cnt=03 Dev#= 3 Spd=12 MxCh= 0 D: Ver= 2.01 Cls=e0(wlcon) Sub=01 Prot=01 MxP

[PATCH AUTOSEL for 4.14 072/135] samples/bpf: adjust rlimit RLIMIT_MEMLOCK for xdp1

2017-12-07 Thread alexander . levin
From: Tushar Dave [ Upstream commit 6dfca831c03ef654b1f7bff1b8d487d330e9f76b ] Default rlimit RLIMIT_MEMLOCK is 64KB, causes bpf map failure. e.g. [root@lab bpf]#./xdp1 -N $( Acked-by: Alexei Starovoitov Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- samples/bpf/xdp1_user.c |

[PATCH AUTOSEL for 4.14 076/135] l2tp: cleanup l2tp_tunnel_delete calls

2017-12-07 Thread alexander . levin
From: Jiri Slaby [ Upstream commit 4dc12ffeaeac939097a3f55c881d3dc3523dff0c ] l2tp_tunnel_delete does not return anything since commit 62b982eeb458 ("l2tp: fix race condition in l2tp_tunnel_delete"). But call sites of l2tp_tunnel_delete still do casts to void to avoid unused return value warnin

Re: [PATCH] docs: refcount_t documentation

2017-12-07 Thread Kees Cook
On Thu, Dec 7, 2017 at 9:58 AM, Jonathan Corbet wrote: > On Tue, 5 Dec 2017 12:46:35 +0200 > Elena Reshetova wrote: > >> Some functions from refcount_t API provide different >> memory ordering guarantees that their atomic counterparts. >> This adds a document outlining these differences ( >> Doc

[PATCH AUTOSEL for 4.14 078/135] xfs: return a distinct error code value for IGET_INCORE cache misses

2017-12-07 Thread alexander . levin
From: "Darrick J. Wong" [ Upstream commit ed438b476b611c67089760037139f93ea8ed41d5 ] For an XFS_IGET_INCORE iget operation, if the inode isn't in the cache, return ENODATA so that we don't confuse it with the pre-existing ENOENT cases (inode is in cache, but freed). Signed-off-by: Darrick J. Wo

[PATCH AUTOSEL for 4.14 081/135] net: hns3: fix a bug in hclge_uninit_client_instance

2017-12-07 Thread alexander . levin
From: Lipeng [ Upstream commit a17dcf3f0124698d1120da71574bf4c339e5a368 ] HNS3 driver initialize hdev->roce_client and vport->roce.client in hclge_init_client_instance, and need set hdev->roce_client and vport->roce.client NULL. If do not set them NULL when uninit, it will fail in the scene: in

[PATCH AUTOSEL for 4.14 080/135] net: dsa: lan9303: Do not disable switch fabric port 0 at .probe

2017-12-07 Thread alexander . levin
From: Egil Hjelmeland [ Upstream commit 3c91b0c1de8d013490bbc41ce9ee8810ea5baddd ] Make the LAN9303 work when lan9303_probe() is called twice. For some unknown reason the LAN9303 switch fail to forward data when switch fabric port 0 TX is disabled during probe. (Write of LAN9303_MAC_TX_CFG_0 in

Re: [PATCH] docs: refcount_t documentation

2017-12-07 Thread Jonathan Corbet
On Tue, 5 Dec 2017 12:46:35 +0200 Elena Reshetova wrote: > Some functions from refcount_t API provide different > memory ordering guarantees that their atomic counterparts. > This adds a document outlining these differences ( > Documentation/core-api/refcount-vs-atomic.rst) as well as > some oth

[PATCH AUTOSEL for 4.14 093/135] serdev: ttyport: enforce tty-driver open() requirement

2017-12-07 Thread alexander . levin
From: Johan Hovold [ Upstream commit dee7d0f3b200c67c6ee96bd37c6e8fa52690ab56 ] The tty-driver open routine is mandatory, but the serdev tty-port-controller implementation did not treat it as such and would instead fall back to calling tty_port_open() directly. Signed-off-by: Johan Hovold Acke

[PATCH AUTOSEL for 4.14 092/135] net: hns3: fix a bug when alloc new buffer

2017-12-07 Thread alexander . levin
From: Lipeng [ Upstream commit b9077428ec5569aacb2952d8a2ffb51c8988d3c2 ] When alloce new buffer to HW, should unmap the old buffer first. This old code map the old buffer but not unmap the old buffer, this patch fixes it. Fixes: 76ad4f0 (net: hns3: Add support of HNS3 Ethernet Driver for hip08

[GIT PULL] arm64: fixes for -rc3

2017-12-07 Thread Will Deacon
Hi Linus, Please pull the following arm64 fixes for 4.15-rc3. Details in the tag, but they broadly fix some more FP register fallout from the SVE patches and also some problems with the PGD tracking in our software PAN emulation code, after we received a crash report from a 3.18 kernel running a

[PATCH AUTOSEL for 4.14 089/135] mfd: mxs-lradc: Fix error handling in mxs_lradc_probe()

2017-12-07 Thread alexander . levin
From: Alexey Khoroshilov [ Upstream commit 362741a21a5c4b9ee31e75ce28d63c6d238a745c ] There is the only path, where mxs_lradc_probe() leaves clk undisabled, since it does return instead of goto err_clk. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoros

RE: [PATCH] tpm: return a TPM_RC_COMMAND_CODE response if a command isn't implemented

2017-12-07 Thread Roberts, William C
> -Original Message- > From: Jarkko Sakkinen [mailto:jarkko.sakki...@linux.intel.com] > Sent: Wednesday, December 6, 2017 5:32 PM > To: Javier Martinez Canillas > Cc: linux-kernel@vger.kernel.org; Peter Huewe ; Jerry > Snitselaar ; Jason Gunthorpe ; Tricca, > Philip B ; Jason Gunthorpe >

[PATCH AUTOSEL for 4.14 090/135] net: hns3: fix the TX/RX ring.queue_index in hns3_ring_get_cfg

2017-12-07 Thread alexander . levin
From: Lipeng [ Upstream commit 66b447301ac710ee237dba8b653244018fbb6168 ] The interface hns3_ring_get_cfg only update TX ring queue_index, but do not update RX ring queue_index. This patch fixes it. Fixes: 76ad4f0 (net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC) Signed-off-by: Li

Re: [PATCH v2 2/5] perf-probe: Cut off the version suffix from event name

2017-12-07 Thread Arnaldo Carvalho de Melo
Em Thu, Dec 07, 2017 at 11:24:47AM -0600, Paul Clarke escreveu: > On 12/07/2017 10:56 AM, Arnaldo Carvalho de Melo wrote: > > Em Thu, Dec 07, 2017 at 04:20:28PM +0900, Masami Hiramatsu escreveu: > > See also Paul Clarke's question and suggestion, which I agree, i.e. > > instead of chopping off the

[PATCH AUTOSEL for 4.14 088/135] scsi: hpsa: destroy sas transport properties before scsi_host

2017-12-07 Thread alexander . levin
From: Martin Wilck [ Upstream commit dfb2e6f46b3074eb85203d8f0888b71ec1c2e37a ] This patch cleans up a lot of warnings when unloading the driver. A current example of the stack trace starts with: [ 142.570715] sysfs group 'power' not found for kobject 'port-5:0' There can be hundreds of th

[PATCH AUTOSEL for 4.14 099/135] tty fix oops when rmmod 8250

2017-12-07 Thread alexander . levin
From: nixiaoming [ Upstream commit c79dde629d2027ca80329c62854a7635e623d527 ] After rmmod 8250.ko tty_kref_put starts kwork (release_one_tty) to release proc interface oops when accessing driver->driver_name in proc_tty_unregister_driver Use jprobe, found driver->driver_name point to 8250.ko st

[PATCH AUTOSEL for 4.14 098/135] KVM: nVMX: Fix EPT switching advertising

2017-12-07 Thread alexander . levin
From: Wanpeng Li [ Upstream commit 575b3a2cb439b03fd603ea77c73c76f3ed237596 ] I can use vmxcap tool to observe "EPTP Switching yes" even if EPT is not exposed to L1. EPT switching is advertised unconditionally since it is emulated, however, it can be treated as an extended feature for EPT and

[PATCH AUTOSEL for 4.14 094/135] powerpc/perf/hv-24x7: Fix incorrect comparison in memord

2017-12-07 Thread alexander . levin
From: Michael Ellerman [ Upstream commit 05c14c03138532a3cb2aa29c2960445c8753343b ] In the hv-24x7 code there is a function memord() which tries to implement a sort function return -1, 0, 1. However one of the conditions is incorrect, such that it can never be true, because we will have already

[PATCH AUTOSEL for 4.14 101/135] dev/dax: fix uninitialized variable build warning

2017-12-07 Thread alexander . levin
From: Ross Zwisler [ Upstream commit 0a3ff78699d1817e711441715d22665475466036 ] Fix this build warning: warning: 'phys' may be used uninitialized in this function [-Wuninitialized] As reported here: https://lkml.org/lkml/2017/10/16/152 http://kisskb.ellerman.id.au/kisskb/buildresult/13181373/

[PATCH AUTOSEL for 4.14 095/135] powerpc/xmon: Check before calling xive functions

2017-12-07 Thread alexander . levin
From: Breno Leitao [ Upstream commit 402e172a2ce76210f2fe921cf419d12103851344 ] Currently xmon could call XIVE functions from OPAL even if the XIVE is disabled or does not exist in the system, as in POWER8 machines. This causes the following exception: 1:mon> dx cpu 0x1: Vector: 700 (Program

[PATCH AUTOSEL for 4.14 086/135] scsi: hisi_sas: fix the risk of freeing slot twice

2017-12-07 Thread alexander . levin
From: Xiaofei Tan [ Upstream commit 6ba0fbc35aa9f3bc8c12be3b4047055c9ce2ac92 ] The function hisi_sas_slot_task_free() is used to free the slot and do tidy-up of LLDD resources. The LLDD generally should know the state of a slot and decide when to free it, and it should only be done once. For so

[PATCH AUTOSEL for 4.14 105/135] IB/core: Fix use workqueue without WQ_MEM_RECLAIM

2017-12-07 Thread alexander . levin
From: Parav Pandit [ Upstream commit 39baf10310e6669564a485b55267fae70a4e44ae ] The IB/core provides address resolution service and invokes callback handler when address resolve request completes of requester in worker thread context. Such caller might allocate or free memory in callback handle

[PATCH AUTOSEL for 4.14 104/135] scsi: scsi_devinfo: Add REPORTLUN2 to EMC SYMMETRIX blacklist entry

2017-12-07 Thread alexander . levin
From: Kurt Garloff [ Upstream commit 909cf3e16a5274fe2127cf3cea5c8dba77b2c412 ] All EMC SYMMETRIX support REPORT_LUNS, even if configured to report SCSI-2 for whatever reason. Signed-off-by: Kurt Garloff Signed-off-by: Hannes Reinecke Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Le

[PATCH AUTOSEL for 4.14 106/135] IB/core: Fix calculation of maximum RoCE MTU

2017-12-07 Thread alexander . levin
From: Parav Pandit [ Upstream commit 99260132fde7bddc6e0132ce53da94d1c9ccabcb ] The original code only took into consideration the largest header possible after the IB_BTH_BYTES. This was incorrect, as the largest possible header size is the largest possible combination of headers we might run

[PATCH AUTOSEL for 4.14 100/135] dmaengine: rcar-dmac: use TCRB instead of TCR for residue

2017-12-07 Thread alexander . levin
From: Hiroyuki Yokoyama [ Upstream commit 847449f23dcbff68234525f90dd53c7c7db18cad ] SYS/RT/Audio DMAC includes independent data buffers for reading and writing. Therefore, the read transfer counter and write transfer counter have different values. TCR indicates read counter, and TCRB indicates

[PATCH AUTOSEL for 4.14 096/135] soc: mediatek: pwrap: fix compiler errors

2017-12-07 Thread alexander . levin
From: Matthias Brugger [ Upstream commit fb2c1934f30577756e55e24e8870b45c78da3bc2 ] When compiling using sparse, we got the following error: drivers/soc/mediatek/mtk-pmic-wrap.c:686:25: error: dubious one-bit signed bitfield Changing the data type to unsigned fixes this. Signed-off-by: Matthi

[PATCH AUTOSEL for 4.14 107/135] vt6655: Fix a possible sleep-in-atomic bug in vt6655_suspend

2017-12-07 Thread alexander . levin
From: Jia-Ju Bai [ Upstream commit 42c8eb3f6e15367981b274cb79ee4657e2c6949d ] The driver may sleep under a spinlock, and the function call path is: vt6655_suspend (acquire the spinlock) pci_set_power_state __pci_start_power_transition (drivers/pci/pci.c) msleep --> may sleep To fix

[PATCH AUTOSEL for 4.14 109/135] rtl8188eu: Fix a possible sleep-in-atomic bug in rtw_createbss_cmd

2017-12-07 Thread alexander . levin
From: Jia-Ju Bai [ Upstream commit 2bf9806d4228f7a6195f8e03eda0479d2a93b411 ] The driver may sleep under a spinlock, and the function call path is: rtw_surveydone_event_callback(acquire the spinlock) rtw_createbss_cmd kzalloc(GFP_KERNEL) --> may sleep To fix it, GFP_KERNEL is replaced wit

[PATCH AUTOSEL for 4.14 115/135] scsi: sd: change allow_restart to bool in sysfs interface

2017-12-07 Thread alexander . levin
From: weiping zhang [ Upstream commit 658e9a6dc1126f21fa417cd213e1cdbff8be0ba2 ] /sys/class/scsi_disk/0:2:0:0/allow_restart can be changed to 0 unexpectedly by writing an invalid string such as the following: echo asdf > /sys/class/scsi_disk/0:2:0:0/allow_restart Signed-off-by: weiping zhang

Re: [PATCH V6 4/7] OF: properties: Implement get_match_data() callback

2017-12-07 Thread Sinan Kaya
On 12/7/2017 10:20 AM, Lothar Waßmann wrote: > Hi, > > On Thu, 7 Dec 2017 09:45:31 -0500 Sinan Kaya wrote: >> On 12/7/2017 8:10 AM, Lothar Waßmann wrote: +void *of_fwnode_get_match_data(const struct fwnode_handle *fwnode, + struct device *dev) >>> Shouldn't this b

[PATCH AUTOSEL for 4.14 113/135] nullb: fix error return code in null_init()

2017-12-07 Thread alexander . levin
From: Wei Yongjun [ Upstream commit 30c516d750396c5f3ec9cb04c9e025c25e91495e ] Fix to return error code -ENOMEM from the null_alloc_dev() error handling case instead of 0, as done elsewhere in this function. Fixes: 2984c8684f96 ("nullb: factor disk parameters") Signed-off-by: Wei Yongjun Signe

[PATCH AUTOSEL for 4.14 114/135] scsi: sd: change manage_start_stop to bool in sysfs interface

2017-12-07 Thread alexander . levin
From: weiping zhang [ Upstream commit 623401ee33e42cee64d333877892be8db02951eb ] /sys/class/scsi_disk/0:2:0:0/manage_start_stop can be changed to 0 unexpectly by writing an invalid string. Signed-off-by: weiping zhang Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/

[PATCH AUTOSEL for 4.14 102/135] pinctrl: adi2: Fix Kconfig build problem

2017-12-07 Thread alexander . levin
From: Linus Walleij [ Upstream commit 1c363531dd814dc4fe10865722bf6b0f72ce4673 ] The build robot is complaining on Blackfin: drivers/pinctrl/pinctrl-adi2.c: In function 'port_setup': >> drivers/pinctrl/pinctrl-adi2.c:221:21: error: dereferencing pointer to incomplete type 'struct gpio_port_t

[PATCH AUTOSEL for 4.14 097/135] ipv4: ipv4_default_advmss() should use route mtu

2017-12-07 Thread alexander . levin
From: Eric Dumazet [ Upstream commit 164a5e7ad531e181334a3d3f03d0d5ad20d6faea ] ipv4_default_advmss() incorrectly uses the device MTU instead of the route provided one. IPv6 has the proper behavior, lets harmonize the two protocols. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller S

[PATCH AUTOSEL for 4.14 112/135] ipmi_si: fix memory leak on new_smi

2017-12-07 Thread alexander . levin
From: Colin Ian King [ Upstream commit c0a32fe13cd323ca9420500b16fd69589c9ba91e ] The error exit path omits kfree'ing the allocated new_smi, causing a memory leak. Fix this by kfree'ing new_smi. Detected by CoverityScan, CID#14582571 ("Resource Leak") Fixes: 7e030d6dff71 ("ipmi: Prefer ACPI s

[PATCH AUTOSEL for 4.14 111/135] ASoC: samsung: i2s: disable secondary DAI until it gets fixed

2017-12-07 Thread alexander . levin
From: Marek Szyprowski [ Upstream commit 064970a0aae978073a859aaf0793bfe14762d4f3 ] Secondary DAI in Exynos I2S driver is not used by any of the currently supported boards and it causes problems due to some limitations in the ASoC code. Disable it until it gets proper support both by board-speci

Applied "spi: sun6i: disable/unprepare clocks on remove" to the spi tree

2017-12-07 Thread Mark Brown
The patch spi: sun6i: disable/unprepare clocks on remove has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to L

Applied "regulator: fix incorrect indentation of two assignment statements" to the regulator tree

2017-12-07 Thread Mark Brown
The patch regulator: fix incorrect indentation of two assignment statements has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in t

Applied "ASoC: pcm186x: make pcm186x_dai_ops and pcm186x_adc_input_channel_sel_value static" to the asoc tree

2017-12-07 Thread Mark Brown
The patch ASoC: pcm186x: make pcm186x_dai_ops and pcm186x_adc_input_channel_sel_value static has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually some

[PATCH AUTOSEL for 4.14 118/135] md-cluster: fix wrong condition check in raid1_write_request

2017-12-07 Thread alexander . levin
From: Guoqing Jiang [ Upstream commit 385f4d7f946b08f36f68b0a28e95a319925b6b62 ] The check used here is to avoid conflict between write and resync, however we used the wrong logic, it should be the inverse of the checking inside "if". Fixes: 589a1c4 ("Suspend writes in RAID1 if within range") S

Re: [PATCH net-next v2 3/8] net: phy: meson-gxl: add read and write helpers for bank registers

2017-12-07 Thread Neil Armstrong
On 07/12/2017 16:46, Andrew Lunn wrote: > On Thu, Dec 07, 2017 at 03:27:10PM +0100, Jerome Brunet wrote: >> Add read and write helpers to manipulate banked registers on this PHY >> This helps clarify the settings applied to these registers in the init >> function and upcoming changes. >> >> Signed-

[PATCH AUTOSEL for 4.14 117/135] raid5-ppl: check recovery_offset when performing ppl recovery

2017-12-07 Thread alexander . levin
From: Artur Paszkiewicz [ Upstream commit 07719ff767dcd8cc42050f185d332052f3816546 ] If starting an array that is undergoing rebuild, make ppl recovery honor the recovery_offset of a member disk and don't read data that is not yet in-sync. Signed-off-by: Artur Paszkiewicz Signed-off-by: Shaohu

Re: [PATCH v6 09/11] fs/pipe.c: export create_pipe_files() and replace_fd()

2017-12-07 Thread Jarkko Sakkinen
On Mon, Dec 04, 2017 at 11:00:59AM +0200, Jarkko Sakkinen wrote: > On Thu, Nov 30, 2017 at 10:38:30AM -0800, James Bottomley wrote: > > On Thu, 2017-11-30 at 18:43 +0200, Jarkko Sakkinen wrote: > > > On Wed, Nov 29, 2017 at 03:13:57PM -0800, Christoph Hellwig wrote: > > > > > > > > On Tue, Nov 28,

[PATCH AUTOSEL for 4.14 120/135] udf: Avoid overflow when session starts at large offset

2017-12-07 Thread alexander . levin
From: Jan Kara [ Upstream commit abdc0eb06964fe1d2fea6dd1391b734d0590365d ] When session starts beyond offset 2^31 the arithmetics in udf_check_vsd() would overflow. Make sure the computation is done in large enough type. Reported-by: Cezary Sliwa Signed-off-by: Jan Kara Signed-off-by: Sasha

[PATCH AUTOSEL for 4.14 116/135] scsi: bfa: integer overflow in debugfs

2017-12-07 Thread alexander . levin
From: Dan Carpenter [ Upstream commit 3e351275655d3c84dc28abf170def9786db5176d ] We could allocate less memory than intended because we do: bfad->regdata = kzalloc(len << 2, GFP_KERNEL); The shift can overflow leading to a crash. This is debugfs code so the impact is very small. I fi

[PATCH AUTOSEL for 4.14 119/135] xprtrdma: Don't defer fencing an async RPC's chunks

2017-12-07 Thread alexander . levin
From: Chuck Lever [ Upstream commit 8f66b1a529047a972cb9602a919c53a95f3d7a2b ] In current kernels, waiting in xprt_release appears to be safe to do. I had erroneously believed that for ASYNC RPCs, waiting of any kind in xprt_release->xprt_rdma_free would result in deadlock. I've done injection t

[PATCH AUTOSEL for 4.14 125/135] icmp: don't fail on fragment reassembly time exceeded

2017-12-07 Thread alexander . levin
From: Matteo Croce [ Upstream commit 258bbb1b0e594ad5f5652cb526b3c63e6a7fad3d ] The ICMP implementation currently replies to an ICMP time exceeded message (type 11) with an ICMP host unreachable message (type 3, code 1). However, time exceeded messages can either represent "time to live exceede

[PATCH AUTOSEL for 4.9 002/156] KVM: nVMX: do not warn when MSR bitmap address is not backed

2017-12-07 Thread alexander . levin
From: Radim Krčmář [ Upstream commit 05d8d34611139f8435af90ac54b65eb31e82e388 ] Before trying to do nested_get_page() in nested_vmx_merge_msr_bitmap(), we have already checked that the MSR bitmap address is valid (4k aligned and within physical limits). SDM doesn't specify what happens if the t

[PATCH AUTOSEL for 4.14 110/135] rtl8188eu: Fix a possible sleep-in-atomic bug in rtw_disassoc_cmd

2017-12-07 Thread alexander . levin
From: Jia-Ju Bai [ Upstream commit 08880f8e08cbd814e870e9d3ab9530abc1bce226 ] The driver may sleep under a spinlock, and the function call path is: rtw_set_802_11_bssid(acquire the spinlock) rtw_disassoc_cmd kzalloc(GFP_KERNEL) --> may sleep To fix it, GFP_KERNEL is replaced with GFP_ATOM

Re: [kernel-hardening][PATCH v4 0/3] arm: Makes ptdump resuable and add WX page checking

2017-12-07 Thread Kees Cook
On Wed, Dec 6, 2017 at 2:23 AM, Jinbum Park wrote: > Hi, > > Page table dumping code for arm64-x86 is reusable, > and they have function for WX page checking. > But arm doesn't have that. > > This path series are to makes ptdump reusable, > and add WX page checking for arm. > This is heavily based

[PATCH AUTOSEL for 4.9 029/156] dmaengine: Fix array index out of bounds warning in __get_unmap_pool()

2017-12-07 Thread alexander . levin
From: Matthias Kaehlcke [ Upstream commit 23f963e91fd81f44f6b316b1c24db563354c6be8 ] This fixes the following warning when building with clang and CONFIG_DMA_ENGINE_RAID=n : drivers/dma/dmaengine.c:1102:11: error: array index 2 is past the end of the array (which contains 1 element) [-Werror,-

[PATCH AUTOSEL for 4.9 026/156] blk-mq: Fix tagset reinit in the presence of cpu hot-unplug

2017-12-07 Thread alexander . levin
From: Sagi Grimberg [ Upstream commit 0067d4b020ea07a58540acb2c5fcd3364bf326e0 ] In case cpu was unplugged, we need to make sure not to assume that the tags for that cpu are still allocated. so check for null tags when reinitializing a tagset. Reported-by: Yi Zhang Signed-off-by: Sagi Grimberg

[PATCH AUTOSEL for 4.9 025/156] ASoC: rsnd: fix sound route path when using SRC6/SRC9

2017-12-07 Thread alexander . levin
From: Hiroyuki Yokoyama [ Upstream commit a1c2ff53726907aff5feb37e4cfd45c1ff626431 ] This patch fixes the problem that the missing value of the route path setting table and incorrect values are set in the CMD_ROUTE_SELECT register. Signed-off-by: Hiroyuki Yokoyama [Kuninori: shared data on MIX

[PATCH AUTOSEL for 4.9 022/156] Input: i8042 - add TUXEDO BU1406 (N24_25BU) to the nomux list

2017-12-07 Thread alexander . levin
From: Dmitry Torokhov [ Upstream commit a4c2a13129f7c5bcf81704c06851601593303fd5 ] TUXEDO BU1406 does not implement active multiplexing mode properly, and takes around 550 ms in i8042_set_mux_mode(). Given that the device does not have external AUX port, there is no downside in disabling the MUX

[PATCH AUTOSEL for 4.9 030/156] irqchip/mvebu-odmi: Select GENERIC_MSI_IRQ_DOMAIN

2017-12-07 Thread alexander . levin
From: Arnd Bergmann [ Upstream commit fa23b9d1b89fdc34f296f02e496a20aeff5736be ] This driver uses the MSI domain but has no strict dependency on PCI_MSI, so we may run into a build failure when CONFIG_GENERIC_MSI_IRQ_DOMAIN is disabled: drivers/irqchip/irq-mvebu-odmi.c:152:15: error: variable '

[PATCH AUTOSEL for 4.14 133/135] ath10k: fix core PCI suspend when WoWLAN is supported but disabled

2017-12-07 Thread alexander . levin
From: Brian Norris [ Upstream commit 96378bd2c6cda5f04d0f6da2cd35d4670a982c38 ] For devices where the FW supports WoWLAN but user-space has not configured it, we don't do any PCI-specific suspend/resume operations, because mac80211 doesn't call drv_suspend() when !wowlan. This has particularly b

[PATCH AUTOSEL for 4.14 134/135] ath10k: fix build errors with !CONFIG_PM

2017-12-07 Thread alexander . levin
From: Brian Norris [ Upstream commit 20665a9076d48e9abd9a2db13d307f58f7ef6647 ] Build errors have been reported with CONFIG_PM=n: drivers/net/wireless/ath/ath10k/pci.c:3416:8: error: implicit declaration of function 'ath10k_pci_suspend' [-Werror=implicit-function-declaration] drivers/net/wirel

[PATCH AUTOSEL for 4.9 004/156] md-cluster: free md_cluster_info if node leave cluster

2017-12-07 Thread alexander . levin
From: Guoqing Jiang [ Upstream commit 9c8043f337f14d1743006dfc59c03e80a42e3884 ] To avoid memory leak, we need to free the cinfo which is allocated when node join cluster. Reviewed-by: NeilBrown Signed-off-by: Guoqing Jiang Signed-off-by: Shaohua Li Signed-off-by: Sasha Levin --- drivers/m

[PATCH AUTOSEL for 4.14 127/135] lightnvm: pblk: fix changing GC group list for a line

2017-12-07 Thread alexander . levin
From: Rakesh Pandit [ Upstream commit 27b978725d895e704aab44b99242a0514485d798 ] pblk_line_gc_list seems to had a bug since the introduction of pblk in getting GC list for a line. In b20ba1bc7 while redesigning the GC algorithm, the naming for the GC thresholds was altered, but the values for hi

[PATCH AUTOSEL for 4.9 019/156] drm/amdgpu: fix parser init error path to avoid crash in parser fini

2017-12-07 Thread alexander . levin
From: Dave Airlie [ Upstream commit 607523d19c9d67ba4cf7bdaced644f11ed04992c ] If we don't reset the chunk info in the error path, the subsequent fini path will double free. Reviewed-by: Christian König Signed-off-by: Dave Airlie Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- d

[PATCH AUTOSEL for 4.9 001/156] usb: phy: isp1301: Add OF device ID table

2017-12-07 Thread alexander . levin
From: Javier Martinez Canillas [ Upstream commit fd567653bdb908009b650f079bfd4b63169e2ac4 ] The driver doesn't have a struct of_device_id table but supported devices are registered via Device Trees. This is working on the assumption that a I2C device registered via OF will always match a legacy

[PATCH AUTOSEL for 4.9 005/156] userfaultfd: shmem: __do_fault requires VM_FAULT_NOPAGE

2017-12-07 Thread alexander . levin
From: Andrea Arcangeli [ Upstream commit 6bbc4a4144b1a69743022ac68dfaf6e7d993abb9 ] __do_fault assumes vmf->page has been initialized and is valid if VM_FAULT_NOPAGE is not returned by vma->vm_ops->fault(vma, vmf). handle_userfault() in turn should return VM_FAULT_NOPAGE if it doesn't return VM

[PATCH AUTOSEL for 4.9 007/156] net: initialize msg.msg_flags in recvfrom

2017-12-07 Thread alexander . levin
From: Alexander Potapenko [ Upstream commit 9f138fa609c47403374a862a08a41394be53d461 ] KMSAN reports a use of uninitialized memory in put_cmsg() because msg.msg_flags in recvfrom haven't been initialized properly. The flag values don't affect the result on this path, but it's still a good idea t

[PATCH AUTOSEL for 4.9 014/156] net: bcmgenet: Power up the internal PHY before probing the MII

2017-12-07 Thread alexander . levin
From: Doug Berger [ Upstream commit 6be371b053dc86f11465cc1abce2e99bda0a0574 ] When using the internal PHY it must be powered up when the MII is probed or the PHY will not be detected. Since the PHY is powered up at reset this has not been a problem. However, when the kernel is restarted with

Re: linux-next: build failure after merge of the scsi-mkp tree

2017-12-07 Thread Paul E. McKenney
On Thu, Dec 07, 2017 at 05:30:03PM +, Bart Van Assche wrote: > On Wed, 2017-12-06 at 20:42 -0800, Paul E. McKenney wrote: > > On Thu, Dec 07, 2017 at 03:25:21PM +1100, Stephen Rothwell wrote: > > > On Thu, 7 Dec 2017 03:59:30 + Bart Van Assche > > > wrote: [ . . . ] > > commit cde4691a3

[PATCH AUTOSEL for 4.9 037/156] drm: amd: remove broken include path

2017-12-07 Thread alexander . levin
From: Arnd Bergmann [ Upstream commit 655d9ca9ac075da1ef2a45012ba48a39f6eb1f58 ] The AMD ACP driver adds "-I../acp -I../acp/include" to the gcc command line, which makes no sense, since these are evaluated relative to the build directory. When we build with "make W=1", they instead cause a warni

Re: [PATCH v4.1] phylib: Add device reset GPIO support

2017-12-07 Thread Sergei Shtylyov
On 12/07/2017 08:20 PM, Sergei Shtylyov wrote: The PHY devices sometimes do have their reset signal (maybe even power supply?) tied to some GPIO and sometimes it also does happen that a boot loader does not leave it deasserted. So far this issue has been attacked from (as I believe) a wrong angl

[PATCH AUTOSEL for 4.9 013/156] net: bcmgenet: synchronize irq0 status between the isr and task

2017-12-07 Thread alexander . levin
From: Doug Berger [ Upstream commit 07c52d6a0b955a8a28834f9354793cfc4b81d0e9 ] Add a spinlock to ensure that irq0_stat is not unintentionally altered as the result of preemption. Also removed unserviced irq0 interrupts and removed irq1_stat since there is no bottom half service for those interr

[PATCH AUTOSEL for 4.9 015/156] rxrpc: Wake up the transmitter if Rx window size increases on the peer

2017-12-07 Thread alexander . levin
From: David Howells [ Upstream commit 702f2ac87a9a8da23bf8506466bc70175fc970b2 ] The RxRPC ACK packet may contain an extension that includes the peer's current Rx window size for this call. We adjust the local Tx window size to match. However, the transmitter can stall if the receive window is

[PATCH AUTOSEL for 4.9 034/156] qed: Align CIDs according to DORQ requirement

2017-12-07 Thread alexander . levin
From: Ram Amrani [ Upstream commit f3e48119b97f56fb09310c95d49da122a27003d7 ] The Doorbell HW block can be configured at a granularity of 16 x CIDs, so we need to make sure that the actual number of CIDs configured would be a multiplication of 16. Today, when RoCE is enabled - given that the nu

[PATCH AUTOSEL for 4.9 036/156] qed: Fix interrupt flags on Rx LL2

2017-12-07 Thread alexander . levin
From: Ram Amrani [ Upstream commit 1df2adedcce17ad4a39fba74f0e2b611f797fe10 ] Before iterating over the the LL2 Rx ring, the ring's spinlock is taken via spin_lock_irqsave(). The actual processing of the packet [including handling by the protocol driver] is done without said lock, so qed release

[PATCH AUTOSEL for 4.9 033/156] mlxsw: reg: Fix SPVMLR max record count

2017-12-07 Thread alexander . levin
From: Jiri Pirko [ Upstream commit e9093b1183bbac462d2caef3eac165778c0b1bf1 ] The num_rec field is 8 bit, so the maximal count number is 255. This fixes vlans learning not being enabled for wider ranges than 255. Fixes: a4feea74cd7a ("mlxsw: reg: Add Switch Port VLAN MAC Learning register defi

[PATCH AUTOSEL for 4.9 008/156] bnxt_en: Ignore 0 value in autoneg supported speed from firmware.

2017-12-07 Thread alexander . levin
From: Michael Chan [ Upstream commit 520ad89a54edea84496695d528f73ddcf4a52ea4 ] In some situations, the firmware will return 0 for autoneg supported speed. This may happen if the firmware detects no SFP module, for example. The driver should ignore this so that we don't end up with an invalid

<    1   2   3   4   5   6   7   8   9   10   >