OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
6 years agoMerge "ARM: dts: msm: Disable SPI CAN controller on msm8996 CV2X boards"
Linux Build Service Account [Wed, 14 Feb 2018 13:30:56 +0000 (05:30 -0800)]
Merge "ARM: dts: msm: Disable SPI CAN controller on msm8996 CV2X boards"

6 years agoMerge "leds: qpnp-flash-v2: Fix the macro calculations"
Linux Build Service Account [Wed, 14 Feb 2018 13:30:55 +0000 (05:30 -0800)]
Merge "leds: qpnp-flash-v2: Fix the macro calculations"

6 years agoMerge "defconfig: msm: Enable PCAN-USB for msm8996"
Linux Build Service Account [Wed, 14 Feb 2018 02:52:11 +0000 (18:52 -0800)]
Merge "defconfig: msm: Enable PCAN-USB for msm8996"

6 years agoMerge "ARM: dts: msm: Remove rh850 device node from mizar"
Linux Build Service Account [Wed, 14 Feb 2018 02:52:10 +0000 (18:52 -0800)]
Merge "ARM: dts: msm: Remove rh850 device node from mizar"

6 years agoMerge "eventpoll.h: fix epoll event masks"
Linux Build Service Account [Tue, 13 Feb 2018 20:17:09 +0000 (12:17 -0800)]
Merge "eventpoll.h: fix epoll event masks"

6 years agoMerge "USB: gadget: Replace %pM with %pm"
Linux Build Service Account [Tue, 13 Feb 2018 20:17:08 +0000 (12:17 -0800)]
Merge "USB: gadget: Replace %pM with %pm"

6 years agoMerge "SDE: HDMI: Disable HPD if non-pluggable flag is set"
Linux Build Service Account [Tue, 13 Feb 2018 20:17:06 +0000 (12:17 -0800)]
Merge "SDE: HDMI: Disable HPD if non-pluggable flag is set"

6 years agoMerge "DRM: DBA: Adding hardware power sequence to DBA power off code"
Linux Build Service Account [Tue, 13 Feb 2018 20:17:05 +0000 (12:17 -0800)]
Merge "DRM: DBA: Adding hardware power sequence to DBA power off code"

6 years agoMerge "DRM: SDE: Avoid vblank request to the same state"
Linux Build Service Account [Tue, 13 Feb 2018 20:17:04 +0000 (12:17 -0800)]
Merge "DRM: SDE:  Avoid vblank request to the same state"

6 years agoUSB: gadget: Replace %pM with %pm
Ajay Agarwal [Wed, 25 Oct 2017 09:46:11 +0000 (15:16 +0530)]
USB: gadget: Replace %pM with %pm

commit c173d5504d08ca0 ("USB: gadget: Replace %pK with
%pM") modified the MAC address format specifier to %pM.
So when the host PC asks for the MAC address, the
device sends the address with colons present. Linux
Host machines cannot handle this and ECM function fails
to bind. Fix this by changing the format specifier to
%pm which removes the colons and sends the MAC address.

Change-Id: Id3eebfa371bd2cf976ee0f44e8a7b54690f43e77
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
6 years agoDRM: DBA: Adding hardware power sequence to DBA power off code
Camus Wong [Mon, 5 Feb 2018 22:14:44 +0000 (17:14 -0500)]
DRM: DBA: Adding hardware power sequence to DBA power off code

Adding power off register sequence to reduce power in power off.
Adding switch GPIO sequence in power on/off call.

Change-Id: Ifbe57852a43e1b1d0f05594a84a10540cfeb6be7
Signed-off-by: Camus Wong <camusw@codeaurora.org>
6 years agoSDE: HDMI: Disable HPD if non-pluggable flag is set
Camus Wong [Fri, 29 Dec 2017 16:50:13 +0000 (11:50 -0500)]
SDE: HDMI: Disable HPD if non-pluggable flag is set

For non-pluggable display, HPD hardware should be disabled.
HPD related clocks should also shutdown during suspend.

Change-Id: I59475b07b44c2a7f1784d160263a6bca7701a702
Signed-off-by: Camus Wong <camusw@codeaurora.org>
6 years agoMerge "ARM: dts: msm: disable wdog wakeup on msm8996 vplatform"
Linux Build Service Account [Mon, 12 Feb 2018 13:01:45 +0000 (05:01 -0800)]
Merge "ARM: dts: msm: disable wdog wakeup on msm8996 vplatform"

6 years agoMerge "ASoC: msm: qdsp6v2: Add support to query AVCS version info"
Linux Build Service Account [Mon, 12 Feb 2018 13:01:44 +0000 (05:01 -0800)]
Merge "ASoC: msm: qdsp6v2: Add support to query AVCS version info"

6 years agoMerge "ASoC: msm: Update Audio Header File for 32 Channels Support"
Linux Build Service Account [Mon, 12 Feb 2018 13:01:42 +0000 (05:01 -0800)]
Merge "ASoC: msm: Update Audio Header File for 32 Channels Support"

6 years agoMerge "ARM: dts: msm: refine device tree hierarchy for msm8996 vplatform"
Linux Build Service Account [Mon, 12 Feb 2018 05:34:57 +0000 (21:34 -0800)]
Merge "ARM: dts: msm: refine device tree hierarchy for msm8996 vplatform"

6 years agoARM: dts: msm: disable wdog wakeup on msm8996 vplatform
Yimin Peng [Mon, 12 Feb 2018 03:24:52 +0000 (11:24 +0800)]
ARM: dts: msm: disable wdog wakeup on msm8996 vplatform

The wdog always bites with the flag when guest virtual machine enters
into suspend.

Change-Id: Ie239dcb8a48cdaffcddf923a3114210ec5947ff9
Signed-off-by: Yimin Peng <yiminp@codeaurora.org>
6 years agoeventpoll.h: fix epoll event masks
Greg KH [Wed, 8 Mar 2017 18:03:03 +0000 (19:03 +0100)]
eventpoll.h: fix epoll event masks

[resend due to me forgetting to cc: linux-api the first time around I
posted these back on Feb 23]

From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

When userspace tries to use these defines, it complains that it needs to
be an unsigned 1 that is shifted, so libc implementations have to create
their own version.  Fix this by defining it properly so that libcs can
just use the kernel uapi header.

Change-Id: Iac4e9f2a30ef3ea444c984c9eb8d6c5edc1f8264
Reported-by: Elliott Hughes <enh@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: 6f051e4a685b768f3704c7c069aa1edee3010622
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
[schikk@codeaurora.org: resolved merge conflicts]
Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
6 years agomsm: ipa: Prevent deletion of the default route rule
Ghanim Fodi [Wed, 31 Jan 2018 12:49:37 +0000 (14:49 +0200)]
msm: ipa: Prevent deletion of the default route rule

The first APPS default routing table rule is installed
at the IPA driver initialization. To prevent routing
exception, this rule cannot be deleted by user application.
This change prevents deleting this rule.

Change-Id: Ia27434fd24a15fea5956018a1271b11bbe227df7
CRs-fixed: 2165859
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
6 years agoARM: dts: msm: refine device tree hierarchy for msm8996 vplatform
Zhiqiang Tu [Tue, 6 Feb 2018 07:08:56 +0000 (15:08 +0800)]
ARM: dts: msm: refine device tree hierarchy for msm8996 vplatform

Move the basic part and audio common part to separated device tree
include files for msm8996 virtual platform.

Change-Id: Id1847f6bbf083fb82230f6eb67d32fea401baa5d
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
6 years agoMerge "msm: ais: Synchronize v4l2 subscribe and unsubscribe event"
Linux Build Service Account [Sat, 10 Feb 2018 01:07:17 +0000 (17:07 -0800)]
Merge "msm: ais: Synchronize v4l2 subscribe and unsubscribe event"

6 years agoMerge "ARM: dts: qcom: add wdog to the baseline msm8996 vplatform"
Linux Build Service Account [Sat, 10 Feb 2018 01:07:15 +0000 (17:07 -0800)]
Merge "ARM: dts: qcom: add wdog to the baseline msm8996 vplatform"

6 years agoMerge "msm: thermal: Add support to monitor only one tsens for VDD restriction"
Linux Build Service Account [Sat, 10 Feb 2018 01:07:14 +0000 (17:07 -0800)]
Merge "msm: thermal: Add support to monitor only one tsens for VDD restriction"

6 years agoMerge "msm: ais: sensor: Fix out of bound read for region params"
Linux Build Service Account [Fri, 9 Feb 2018 16:25:36 +0000 (08:25 -0800)]
Merge "msm: ais: sensor: Fix out of bound read for region params"

6 years agoMerge "soc: qcom: hab: fix the panic in shmem device shutdown"
Linux Build Service Account [Fri, 9 Feb 2018 10:11:52 +0000 (02:11 -0800)]
Merge "soc: qcom: hab: fix the panic in shmem device shutdown"

6 years agosoc: qcom: hab: fix the panic in shmem device shutdown
Yong Ding [Wed, 7 Feb 2018 07:52:31 +0000 (15:52 +0800)]
soc: qcom: hab: fix the panic in shmem device shutdown

The global struct list_head pchannels should be directly
used as the list head for pchan list traversal. Previously,
a local struct list_head instance was wrongly created and
used for such traversal. It caused kernel panic in system
shutdown.

Change-Id: Ifb82b55d5a0237fd12f8f53db095fccbcef96fb8
Signed-off-by: Yong Ding <yongding@codeaurora.org>
6 years agoMerge "arm64: Move BP hardening to check_and_switch_context"
Linux Build Service Account [Fri, 9 Feb 2018 03:03:43 +0000 (19:03 -0800)]
Merge "arm64: Move BP hardening to check_and_switch_context"

6 years agoMerge "arm64: Add BTAC/LinkStack sanitizations for Kryo cores"
Linux Build Service Account [Fri, 9 Feb 2018 03:03:42 +0000 (19:03 -0800)]
Merge "arm64: Add BTAC/LinkStack sanitizations for Kryo cores"

6 years agoMerge "arm64: Implement branch predictor hardening for Falkor"
Linux Build Service Account [Fri, 9 Feb 2018 03:03:42 +0000 (19:03 -0800)]
Merge "arm64: Implement branch predictor hardening for Falkor"

6 years agoMerge "arch: arm64: Add midr values for kryo2xx big cores"
Linux Build Service Account [Fri, 9 Feb 2018 03:03:41 +0000 (19:03 -0800)]
Merge "arch: arm64: Add midr values for kryo2xx big cores"

6 years agoMerge "arm64: Implement branch predictor hardening for affected Cortex-A CPUs"
Linux Build Service Account [Fri, 9 Feb 2018 03:03:40 +0000 (19:03 -0800)]
Merge "arm64: Implement branch predictor hardening for affected Cortex-A CPUs"

6 years agoMerge "arm64: Define Cortex-A73 MIDR"
Linux Build Service Account [Fri, 9 Feb 2018 03:03:39 +0000 (19:03 -0800)]
Merge "arm64: Define Cortex-A73 MIDR"

6 years agoMerge "arm64: cputype: Add missing MIDR values for Cortex-A72 and Cortex-A75"
Linux Build Service Account [Fri, 9 Feb 2018 03:03:38 +0000 (19:03 -0800)]
Merge "arm64: cputype: Add missing MIDR values for Cortex-A72 and Cortex-A75"

6 years agoMerge "arm64: cpu_errata: Allow an erratum to be match for all revisions of a core"
Linux Build Service Account [Fri, 9 Feb 2018 03:03:38 +0000 (19:03 -0800)]
Merge "arm64: cpu_errata: Allow an erratum to be match for all revisions of a core"

6 years agoMerge "arm64: Add skeleton to harden the branch predictor against aliasing attacks"
Linux Build Service Account [Fri, 9 Feb 2018 03:03:37 +0000 (19:03 -0800)]
Merge "arm64: Add skeleton to harden the branch predictor against aliasing attacks"

6 years agoMerge "drivers/firmware: Expose psci_get_version through psci_ops structure"
Linux Build Service Account [Fri, 9 Feb 2018 03:03:36 +0000 (19:03 -0800)]
Merge "drivers/firmware: Expose psci_get_version through psci_ops structure"

6 years agoMerge "arm64: cpufeature: Pass capability structure to ->enable callback"
Linux Build Service Account [Fri, 9 Feb 2018 03:03:35 +0000 (19:03 -0800)]
Merge "arm64: cpufeature: Pass capability structure to ->enable callback"

6 years agoMerge "arm64: errata: Calling enable functions for CPU errata too"
Linux Build Service Account [Fri, 9 Feb 2018 03:03:34 +0000 (19:03 -0800)]
Merge "arm64: errata: Calling enable functions for CPU errata too"

6 years agoMerge "Merge android-4.4.115 (aa856bd) into msm-4.4"
Linux Build Service Account [Fri, 9 Feb 2018 03:03:33 +0000 (19:03 -0800)]
Merge "Merge android-4.4.115 (aa856bd) into msm-4.4"

6 years agoMerge "cnss: Add support to program MAC address thru debugfs"
Linux Build Service Account [Fri, 9 Feb 2018 03:03:31 +0000 (19:03 -0800)]
Merge "cnss: Add support to program MAC address thru debugfs"

6 years agoMerge "msm: ADSPRPC: Use ID in response to get context pointer"
Linux Build Service Account [Fri, 9 Feb 2018 03:03:30 +0000 (19:03 -0800)]
Merge "msm: ADSPRPC: Use ID in response to get context pointer"

6 years agoMerge "msm: camera: change csiphy CDR regulator voltage on sdm660"
Linux Build Service Account [Fri, 9 Feb 2018 03:03:28 +0000 (19:03 -0800)]
Merge "msm: camera: change csiphy CDR regulator voltage on sdm660"

6 years agoARM: dts: qcom: add wdog to the baseline msm8996 vplatform
Yimin Peng [Tue, 30 Jan 2018 06:39:18 +0000 (14:39 +0800)]
ARM: dts: qcom: add wdog to the baseline msm8996 vplatform

The ramdump function needs watchdog device support.

Change-Id: I04e7e5773096c91fdc592aedf5d295256bd6ca08
Signed-off-by: Yimin Peng <yiminp@codeaurora.org>
6 years agoARM: dts: msm: Remove rh850 device node from mizar
Alex Yakavenka [Thu, 8 Feb 2018 22:11:28 +0000 (14:11 -0800)]
ARM: dts: msm: Remove rh850 device node from mizar

Mizar board doesn't have rh850 can controller

Change-Id: Ie3eb224fc4dfa71da7d290bfaf47ae4b9fcaceb4
Signed-off-by: Alex Yakavenka <ayakav@codeaurora.org>
6 years agoDRM: SDE: Avoid vblank request to the same state
Camus Wong [Thu, 8 Feb 2018 19:03:37 +0000 (14:03 -0500)]
DRM: SDE:  Avoid vblank request to the same state

This change add check to existing vblank request state.  It will avoid
enable vblank multiple times.  It will also avoid disable vblank
multiple times.

Change-Id: I10781c33e51b1032b72fcbc1a01a7d01be8be510
Signed-off-by: Camus Wong <camusw@codeaurora.org>
6 years agoMerge "mm-camera2:isp2: Handle use after free buffer"
Linux Build Service Account [Thu, 8 Feb 2018 16:43:55 +0000 (08:43 -0800)]
Merge "mm-camera2:isp2: Handle use after free buffer"

6 years agomsm: ADSPRPC: Use ID in response to get context pointer
Tharun Kumar Merugu [Thu, 8 Feb 2018 10:00:54 +0000 (15:30 +0530)]
msm: ADSPRPC: Use ID in response to get context pointer

Send context ID in rpc header instead of context pointer.
Validate context ID received in response and get context pointer.

Change-Id: I9cfd10d0c1b25c3085b8e15c7ca1c8ff214bf10d
Acked-by: Viswanatham Paduchuri <vpaduchu@qti.qualcomm.com>
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
6 years agoarm64: Move BP hardening to check_and_switch_context
Marc Zyngier [Fri, 19 Jan 2018 15:42:09 +0000 (15:42 +0000)]
arm64: Move BP hardening to check_and_switch_context

We call arm64_apply_bp_hardening() from post_ttbr_update_workaround,
which has the unexpected consequence of being triggered on every
exception return to userspace when ARM64_SW_TTBR0_PAN is selected,
even if no context switch actually occured.

This is a bit suboptimal, and it would be more logical to only
invalidate the branch predictor when we actually switch to
a different mm.

In order to solve this, move the call to arm64_apply_bp_hardening()
into check_and_switch_context(), where we're guaranteed to pick
a different mm context.

Change-Id: I28f2fb09b77544e5ead095e9dad1ad64b2b3ae36
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Git-commit: a8e4c0a919ae310944ed2c9ace11cf3ccd8a609b
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
6 years agoarm64: Add BTAC/LinkStack sanitizations for Kryo cores
Srinivas Ramana [Tue, 6 Feb 2018 15:40:15 +0000 (21:10 +0530)]
arm64: Add BTAC/LinkStack sanitizations for Kryo cores

Kryo cores are exposed to two vulnerabilities due to subroutine return
(called LINK-STACK) and branch target predictors.
These two issues can be mitigated through software workarounds.

Kernel:
 - Apply LINK-STACK mitigation which is to issue 16 nested BL instructions
   on process context switch 'cpu_do_switch_mm()' where ASID changes.
 - Apply psci based branch predictor invalidation.

use the kryo core detection routine (based on MIDR) from the
commit bb48711800e6d ("arm64: cpu_errata: Add Kryo to Falkor 1003 errata")
by Stephen Boyd <sboyd@codeaurora.org>.

Change-Id: I81e8e72e7fa219f12dfe8ec39836eb8eb3c4c7b0
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
6 years agoarm64: Implement branch predictor hardening for Falkor
Shanker Donthineni [Fri, 5 Jan 2018 20:28:59 +0000 (14:28 -0600)]
arm64: Implement branch predictor hardening for Falkor

Falkor is susceptible to branch predictor aliasing and can
theoretically be attacked by malicious code. This patch
implements a mitigation for these attacks, preventing any
malicious entries from affecting other victim contexts.

Change-Id: I535d423c2cefaf93627267b867bf0846e502d4c1
Signed-off-by: Shanker Donthineni <shankerd@codeaurora.org>
[will: fix label name when !CONFIG_KVM and remove references to MIDR_FALKOR]
Signed-off-by: Will Deacon <will.deacon@arm.com>
Git-commit: ec82b567a74fbdffdf418d4bb381d55f6a9096af
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[sramana@codeaurora.org: Use only the link stack sanitization routines,
and leave Falkor related BP hardening code]
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
6 years agomsm: ipa: Fix to add string NULL terminator
Mohammed Javid [Fri, 19 Jan 2018 13:26:51 +0000 (18:56 +0530)]
msm: ipa: Fix to add string NULL terminator

Missing null terminator to userspcae provided
string leads to strlen buffer overflow in strlcpy function.
Added code changes to fix string NULL terminator issue.

Change-Id: I3f9d5f22fbb26f68de12370bc5e07a4e6bc2ced9
Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
6 years agomsm: camera: change csiphy CDR regulator voltage on sdm660
Vijay kumar Tumati [Tue, 6 Feb 2018 04:06:14 +0000 (09:36 +0530)]
msm: camera: change csiphy CDR regulator voltage on sdm660

Set the appropriate regulator voltage to run csiphy in
cphy mode.

Change-Id: I1d6d65115e294dbf72560c8066b45bed0b03b92a
Signed-off-by: Vijay kumar Tumati <vtumati@codeaurora.org>
6 years agocnss: Add support to program MAC address thru debugfs
Sameer Thalappil [Fri, 1 Dec 2017 01:31:16 +0000 (17:31 -0800)]
cnss: Add support to program MAC address thru debugfs

MAC addresses provisioning thru CNSS is usually done by OEM drivers.
Debugfs interfaces can be used for internal testing.

Change-Id: I1a2693835ac09619baf03ee7d2e1b69dbe48559f
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
6 years agoMerge "i2c-msm-v2: Use "subsys" instead of "arch" initcall"
Linux Build Service Account [Thu, 8 Feb 2018 01:11:16 +0000 (17:11 -0800)]
Merge "i2c-msm-v2: Use "subsys" instead of "arch" initcall"

6 years agoMerge "ath10k: Enable wlan firmware based on the driver mode"
Linux Build Service Account [Thu, 8 Feb 2018 01:11:14 +0000 (17:11 -0800)]
Merge "ath10k: Enable wlan firmware based on the driver mode"

6 years agoMerge "power: smb1351-charger: Fix check in shutdown path for parallel disable"
Linux Build Service Account [Wed, 7 Feb 2018 16:41:44 +0000 (08:41 -0800)]
Merge "power: smb1351-charger: Fix check in shutdown path for parallel disable"

6 years agoMerge "cnss_utils: Add support for derived MAC address"
Linux Build Service Account [Wed, 7 Feb 2018 16:41:43 +0000 (08:41 -0800)]
Merge "cnss_utils: Add support for derived MAC address"

6 years agoMerge "drm/msm: Corrected CCU load bit configuration"
Linux Build Service Account [Wed, 7 Feb 2018 16:41:41 +0000 (08:41 -0800)]
Merge "drm/msm: Corrected CCU load bit configuration"

6 years agoarch: arm64: Add midr values for kryo2xx big cores
Srinivas Ramana [Tue, 16 Jan 2018 09:09:49 +0000 (14:39 +0530)]
arch: arm64: Add midr values for kryo2xx big cores

Add midr value for kryo2xx big cores to apply errata workarounds for
branch prediction hardening.

Change-Id: I7ca9cfa3e6b48d5af78a5297cb76ebe6f52e519e
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
6 years agoarm64: Implement branch predictor hardening for affected Cortex-A CPUs
Will Deacon [Wed, 3 Jan 2018 12:46:21 +0000 (12:46 +0000)]
arm64: Implement branch predictor hardening for affected Cortex-A CPUs

Cortex-A57, A72, A73 and A75 are susceptible to branch predictor aliasing
and can theoretically be attacked by malicious code.

This patch implements a PSCI-based mitigation for these CPUs when available.
The call into firmware will invalidate the branch predictor state, preventing
any malicious entries from affecting other victim contexts.

Change-Id: I554536e8e5cb3839e102299da8f5b944415b1880
Co-developed-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Git-commit: aa6acde65e03186b5add8151e1ffe36c3c62639b
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
6 years agoarm64: Define Cortex-A73 MIDR
Marc Zyngier [Mon, 30 Jan 2017 14:18:49 +0000 (14:18 +0000)]
arm64: Define Cortex-A73 MIDR

As we're about to introduce a new workaround that is specific to
Cortex-A73, let's define the coresponding MIDR.

Change-Id: Iabb0e83a0eadddbde458fdafd1224e442b6f3e63
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Git-commit: 199fd2bff4040985fbd7853cc39b7245fcf54bb9
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[sramana@codeaurora.org: Resolve trivial merge conflicts]
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
6 years agoarm64: cputype: Add missing MIDR values for Cortex-A72 and Cortex-A75
Will Deacon [Wed, 3 Jan 2018 11:19:34 +0000 (11:19 +0000)]
arm64: cputype: Add missing MIDR values for Cortex-A72 and Cortex-A75

Hook up MIDR values for the Cortex-A72 and Cortex-A75 CPUs, since they
will soon need MIDR matches for hardening the branch predictor.

Change-Id: I59af5ea4af17198aa70d2ba4b25f729a562727ee
Signed-off-by: Will Deacon <will.deacon@arm.com>
Git-commit: a65d219fe5dc7887fd5ca04c2ac3e9a34feb8dfc
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[sramana@codeaurora.org: Resolve trivial merge conflicts]
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
6 years agoarm64: cpu_errata: Allow an erratum to be match for all revisions of a core
Marc Zyngier [Wed, 1 Feb 2017 14:38:46 +0000 (14:38 +0000)]
arm64: cpu_errata: Allow an erratum to be match for all revisions of a core

Some minor erratum may not be fixed in further revisions of a core,
leading to a situation where the workaround needs to be updated each
time an updated core is released.

Introduce a MIDR_ALL_VERSIONS match helper that will work for all
versions of that MIDR, once and for all.

Change-Id: Icbb685f79205ba45f9c990d83cf961616b0d96b7
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Git-commit: 06f1494f837da8997d670a1ba87add7963b08922
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[sramana@codeaurora.org: Fix merge conflicts]
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
6 years agoarm64: Add skeleton to harden the branch predictor against aliasing attacks
Will Deacon [Wed, 3 Jan 2018 11:17:58 +0000 (11:17 +0000)]
arm64: Add skeleton to harden the branch predictor against aliasing attacks

Aliasing attacks against CPU branch predictors can allow the attacks to
redirect speculative control flow on some CPUs and potentially divulge
information from one context to another.

This patch adds initial skeleton code behind a new Kconfig option to
enable implementation-specific mitigations against these attacks for
CPUs that are affected.

Change-Id: I07fba1943dd63df8951bf68fac947666100e5559
Co-developed-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Git-commit: 0f15adbb2861ce6f75ccfc5a92b19eae0ef327d0
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[sramana@codeaurora.org: Fix merge conflicts and make it
compilable on msm-4.4]
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
6 years agoi2c-msm-v2: Use "subsys" instead of "arch" initcall
Atanas Filipov [Tue, 27 Sep 2016 11:37:57 +0000 (14:37 +0300)]
i2c-msm-v2: Use "subsys" instead of "arch" initcall

The i2c-msm-v2 driver trying to get the clocks too early, but
the clock framework is not initialized yet. The change of the
initcall type reducing deferred calls and improving boot time.

Info:
[0.212999] i2c-msm-v2 78b6000.i2c: probing driver i2c-msm-v2
[0.213172] i2c-msm-v2 78b6000.i2c: error on clk_get(core_clk):-517
-- snipped --
[0.275922] i2c-msm-v2 78b6000.i2c: probing driver i2c-msm-v2
[0.276086] i2c-msm-v2 78b6000.i2c: error on clk_get(core_clk):-517
-- snipped --
[0.302980] msm_mpm_dev_probe(): Cannot get clk resource for XO: -517
[0.303394] i2c-msm-v2 78b6000.i2c: probing driver i2c-msm-v2
-- snipped --

Change-Id: Ia8c110b5f67eeec07586adb30ec3a7aff7ce265a
Signed-off-by: Atanas Filipov <afilipov@codeaurora.org>
6 years agoMerge "reg: qcom: call reg notifier during wiphy registration"
Linux Build Service Account [Wed, 7 Feb 2018 07:46:59 +0000 (23:46 -0800)]
Merge "reg: qcom: call reg notifier during wiphy registration"

6 years agoMerge "drm/msm: restore perfcounter after turning on GPMU"
Linux Build Service Account [Wed, 7 Feb 2018 07:46:58 +0000 (23:46 -0800)]
Merge "drm/msm: restore perfcounter after turning on GPMU"

6 years agoMerge "ath10k: Handle mgmt tx completion event"
Linux Build Service Account [Wed, 7 Feb 2018 07:46:56 +0000 (23:46 -0800)]
Merge "ath10k: Handle mgmt tx completion event"

6 years agocnss_utils: Add support for derived MAC address
Sameer Thalappil [Thu, 9 Nov 2017 01:08:48 +0000 (17:08 -0800)]
cnss_utils: Add support for derived MAC address

MAC address programmed thru CNSS could be provisioned or
derived MAC address. So add support for programming the derived
MAC address.

Change-Id: I2fae232e32a8600949c286346acd05afefd94ef8
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
6 years agoASoC: msm: Update Audio Header File for 32 Channels Support
Cong Tang [Mon, 5 Feb 2018 09:20:53 +0000 (17:20 +0800)]
ASoC: msm: Update Audio Header File for 32 Channels Support

Update audio header files include new macro and structure definitions
for 32 channels support.

Change-Id: Idf5e92f7fda4b820b1a7f01001a683772281d8ba
Signed-off-by: Cong Tang <congt@codeaurora.org>
6 years agoMerge "lpm-stats: cleanup lpm stats processing sanity wrapping"
Linux Build Service Account [Tue, 6 Feb 2018 23:07:48 +0000 (15:07 -0800)]
Merge "lpm-stats: cleanup lpm stats processing sanity wrapping"

6 years agoMerge "Merge android-4.4.114 (fe09418) into msm-4.4"
Linux Build Service Account [Tue, 6 Feb 2018 23:07:47 +0000 (15:07 -0800)]
Merge "Merge android-4.4.114 (fe09418) into msm-4.4"

6 years agoARM: dts: msm: Disable SPI CAN controller on msm8996 CV2X boards
Gustavo Solaira [Thu, 1 Feb 2018 01:35:37 +0000 (17:35 -0800)]
ARM: dts: msm: Disable SPI CAN controller on msm8996 CV2X boards

Disable the SPI based CAN controller on msm8996 CV2X boards
since they are using the USB based CAN controller now.

Change-Id: I57cccee0b9ffa59f516747350160907960048a6a
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
6 years agoreg: qcom: call reg notifier during wiphy registration
Kiran Kumar Lokere [Thu, 18 Jan 2018 19:57:29 +0000 (11:57 -0800)]
reg: qcom: call reg notifier during wiphy registration

Call reg notifier for self managed hints during wiphy
registration. Call the notifier with last reg-domain
request.

CRs-Fixed: 2183721
Change-Id: I4fdc0a8fae94f774c4b923fba26a8eec1c96730d
Signed-off-by: Kiran Kumar Lokere <klokere@codeaurora.org>
6 years agodrivers/firmware: Expose psci_get_version through psci_ops structure
Will Deacon [Tue, 2 Jan 2018 21:45:41 +0000 (21:45 +0000)]
drivers/firmware: Expose psci_get_version through psci_ops structure

Entry into recent versions of ARM Trusted Firmware will invalidate the CPU
branch predictor state in order to protect against aliasing attacks.

This patch exposes the PSCI "VERSION" function via psci_ops, so that it
can be invoked outside of the PSCI driver where necessary.

Change-Id: Id6edce067d098ed7aca19ad9321c858c89097966
Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Git-commit: d68e3ba5303f7e1099f51fdcd155f5263da8569b
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
6 years agoarm64: cpufeature: Pass capability structure to ->enable callback
Will Deacon [Tue, 2 Jan 2018 21:37:25 +0000 (21:37 +0000)]
arm64: cpufeature: Pass capability structure to ->enable callback

In order to invoke the CPU capability ->matches callback from the ->enable
callback for applying local-CPU workarounds, we need a handle on the
capability structure.

This patch passes a pointer to the capability structure to the ->enable
callback.

Change-Id: Ie9a18c7a5d721dcb3d3d6c6001c74366525cf87e
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Git-commit: 0a0d111d40fd1dc588cc590fab6b55d86ddc71d3
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
6 years agoarm64: errata: Calling enable functions for CPU errata too
Andre Przywara [Tue, 28 Jun 2016 17:07:30 +0000 (18:07 +0100)]
arm64: errata: Calling enable functions for CPU errata too

Currently we call the (optional) enable function for CPU _features_
only. As CPU _errata_ descriptions share the same data structure and
having an enable function is useful for errata as well (for instance
to set bits in SCTLR), lets call it when enumerating erratas too.

Change-Id: Ie5d4d14dc1c0006423196e9fc1b102655f0c13b2
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Git-commit: 8e2318521bf5837dae093413f81292b59d49d030
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[sramana@codeaurora.org: Resolve trivial merge conflicts]
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
6 years agolpm-stats: cleanup lpm stats processing sanity wrapping
John Zhao [Tue, 30 Jan 2018 14:41:57 +0000 (22:41 +0800)]
lpm-stats: cleanup lpm stats processing sanity wrapping

during list_for_each_entry_reverse iteration, cleanup_stats
recursively on current operated stats node could result it
will be freed at the end of that cleanup_stats progress.
De-referencing it again should not happen.

CRs-Fixed: 2182622
Change-Id: Icf837b0aa796fed5fe1721f9fe66fd0dd36ccfd7
Signed-off-by: John Zhao <yuankuiz@codeaurora.org>
6 years agomsm: ipa: dynamic memory leak fix
Mohammed Javid [Tue, 23 Jan 2018 12:03:02 +0000 (17:33 +0530)]
msm: ipa: dynamic memory leak fix

This is a fix for dynamic memory leak seen with incorrectly
allocating memory of a different size than with intended
size.

Change-Id: I350719dadad9fd5c7f35a334e81c8d9f2298f888
Acked-by: Jyothi Jayanthi <jyothij@qti.qualcomm.com>
Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com>
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
6 years agoASoC: msm: qdsp6v2: Add support to query AVCS version info
Cong Tang [Fri, 2 Feb 2018 08:54:44 +0000 (16:54 +0800)]
ASoC: msm: qdsp6v2: Add support to query AVCS version info

Add APIs to get AVCS service version info.

Change-Id: Ib62f76e5e605869c1683bc9dfc5adbdf70e531c0
Signed-off-by: Cong Tang <congt@codeaurora.org>
6 years agoath10k: Enable wlan firmware based on the driver mode
Rakesh Pillai [Fri, 2 Feb 2018 04:53:07 +0000 (10:23 +0530)]
ath10k: Enable wlan firmware based on the driver mode

The firmware is always enabled in the mission mode,
even if the driver is in the utf mode. This causes
unexpected behaviour when driver is in utf mode.

Enable the firmware in FTM mode if the driver is
started in UTF mode, else enable the firmware in
the normal mission mode.

Change-Id: I4da204b6d19d41e208465a8314bfb8cacc346f4b
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
6 years agomsm: ais: sensor: Fix out of bound read for region params
Rahul Sharma [Fri, 2 Feb 2018 12:18:00 +0000 (17:48 +0530)]
msm: ais: sensor: Fix out of bound read for region params

The region index is not validated against the region size.
This causes out-of-bound read on the KASAN kernel. Hence
adding restriction that region index is smaller than region size.

Change-Id: I3ebccee89f6e48a84389eb3b9055bc6e09e0310b
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
6 years agoMerge "diag: Fix possible use-after-free issue for mdlog session info"
Linux Build Service Account [Tue, 6 Feb 2018 00:30:01 +0000 (16:30 -0800)]
Merge "diag: Fix possible use-after-free issue for mdlog session info"

6 years agoMerge "ARM: dts: qcom: add an empty hab into the baseline vplatform"
Linux Build Service Account [Tue, 6 Feb 2018 00:30:00 +0000 (16:30 -0800)]
Merge "ARM: dts: qcom: add an empty hab into the baseline vplatform"

6 years agoMerge "reg: qcom: call regulatory callback for self managed hints"
Linux Build Service Account [Tue, 6 Feb 2018 00:29:58 +0000 (16:29 -0800)]
Merge "reg: qcom: call regulatory callback for self managed hints"

6 years agoMerge "msm: sensor: actuator: fix out of bound read for region params"
Linux Build Service Account [Mon, 5 Feb 2018 15:53:20 +0000 (07:53 -0800)]
Merge "msm: sensor: actuator: fix out of bound read for region params"

6 years agodrm/msm: Corrected CCU load bit configuration
Venkateswara Rao Tadikonda [Thu, 25 Jan 2018 09:08:29 +0000 (14:38 +0530)]
drm/msm: Corrected CCU load bit configuration

CCU load_bit is supposed to be configured for RB_PERFCTR_CCU register, but
it is configured for RB_POWERCTR_CCU register. Updated the RB_PERFCTR_CCU
register configuration with CCU load_bit.

Change-Id: I3b4ce056923b5bd39bc274a0744008f5bc5db0f1
Signed-off-by: Venkateswara Rao Tadikonda <vtadik@codeaurora.org>
6 years agodrm/msm: restore perfcounter after turning on GPMU
Venkateswara Rao Tadikonda [Fri, 19 Jan 2018 07:37:45 +0000 (13:07 +0530)]
drm/msm: restore perfcounter after turning on GPMU

Restore of TP perfcounters before turning ON the GPMU causes the GPU fault
and recovery. Restore the perfcounters after turning ON the GPMU.

Change-Id: I3c00ed0a487d452e29f360300f92227784b81bbf
Signed-off-by: Venkateswara Rao Tadikonda <vtadik@codeaurora.org>
6 years agoMerge "ASoC: msm: qdsp6v2: Fix Set Lpass Clk Timeout Issue"
Linux Build Service Account [Mon, 5 Feb 2018 07:33:30 +0000 (23:33 -0800)]
Merge "ASoC: msm: qdsp6v2: Fix Set Lpass Clk Timeout Issue"

6 years agoMerge android-4.4.115 (aa856bd) into msm-4.4
Srinivasarao P [Mon, 5 Feb 2018 06:26:41 +0000 (11:56 +0530)]
Merge android-4.4.115 (aa856bd) into msm-4.4

* refs/heads/tmp-aa856bd
  Linux 4.4.115
  spi: imx: do not access registers while clocks disabled
  serial: imx: Only wakeup via RTSDEN bit if the system has RTS/CTS
  selinux: general protection fault in sock_has_perm
  usb: uas: unconditionally bring back host after reset
  usb: f_fs: Prevent gadget unbind if it is already unbound
  USB: serial: simple: add Motorola Tetra driver
  usbip: list: don't list devices attached to vhci_hcd
  usbip: prevent bind loops on devices attached to vhci_hcd
  USB: serial: io_edgeport: fix possible sleep-in-atomic
  CDC-ACM: apply quirk for card reader
  USB: cdc-acm: Do not log urb submission errors on disconnect
  USB: serial: pl2303: new device id for Chilitag
  usb: option: Add support for FS040U modem
  staging: rtl8188eu: Fix incorrect response to SIOCGIWESSID
  usb: gadget: don't dereference g until after it has been null checked
  media: usbtv: add a new usbid
  scsi: ufs: ufshcd: fix potential NULL pointer dereference in ufshcd_config_vreg
  scsi: aacraid: Prevent crash in case of free interrupt during scsi EH path
  xfs: ubsan fixes
  drm/omap: Fix error handling path in 'omap_dmm_probe()'
  kmemleak: add scheduling point to kmemleak_scan()
  SUNRPC: Allow connect to return EHOSTUNREACH
  quota: Check for register_shrinker() failure.
  net: ethernet: xilinx: Mark XILINX_LL_TEMAC broken on 64-bit
  hwmon: (pmbus) Use 64bit math for DIRECT format values
  lockd: fix "list_add double add" caused by legacy signal interface
  nfsd: check for use of the closed special stateid
  grace: replace BUG_ON by WARN_ONCE in exit_net hook
  nfsd: Ensure we check stateid validity in the seqid operation checks
  nfsd: CLOSE SHOULD return the invalid special stateid for NFSv4.x (x>0)
  xen-netfront: remove warning when unloading module
  KVM: VMX: Fix rflags cache during vCPU reset
  btrfs: fix deadlock when writing out space cache
  mac80211: fix the update of path metric for RANN frame
  openvswitch: fix the incorrect flow action alloc size
  drm/amdkfd: Fix SDMA oversubsription handling
  drm/amdkfd: Fix SDMA ring buffer size calculation
  drm/amdgpu: Fix SDMA load/unload sequence on HWS disabled mode
  bcache: check return value of register_shrinker
  cpufreq: Add Loongson machine dependencies
  ACPI / bus: Leave modalias empty for devices which are not present
  KVM: x86: ioapic: Preserve read-only values in the redirection table
  KVM: x86: ioapic: Clear Remote IRR when entry is switched to edge-triggered
  KVM: x86: ioapic: Fix level-triggered EOI and IOAPIC reconfigure race
  KVM: X86: Fix operand/address-size during instruction decoding
  KVM: x86: Don't re-execute instruction when not passing CR2 value
  KVM: x86: emulator: Return to user-mode on L1 CPL=0 emulation failure
  igb: Free IRQs when device is hotplugged
  mtd: nand: denali_pci: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE
  gpio: ath79: add missing MODULE_DESCRIPTION/LICENSE
  gpio: iop: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE
  power: reset: zx-reboot: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE
  crypto: af_alg - whitelist mask and type
  crypto: aesni - handle zero length dst buffer
  ALSA: seq: Make ioctls race-free
  kaiser: fix intel_bts perf crashes
  x86/pti: Make unpoison of pgd for trusted boot work for real
  bpf: reject stores into ctx via st and xadd
  bpf: fix 32-bit divide by zero
  bpf: fix divides by zero
  bpf: avoid false sharing of map refcount with max_entries
  bpf: arsh is not supported in 32 bit alu thus reject it
  bpf: introduce BPF_JIT_ALWAYS_ON config
  bpf: fix bpf_tail_call() x64 JIT
  x86: bpf_jit: small optimization in emit_bpf_tail_call()
  bpf: fix branch pruning logic
  loop: fix concurrent lo_open/lo_release
  ANDROID: sdcardfs: Protect set_top
  ANDROID: fsnotify: Notify lower fs of open
  Revert "ANDROID: sdcardfs: notify lower file of opens"
  ANDROID: sdcardfs: Use lower getattr times/size
  ANDROID: sched/rt: schedtune: Add boost retention to RT

Conflicts:
arch/x86/Kconfig
kernel/sched/rt.c

Change-Id: I91b08e1b8e0a1c6ca9c245597acad0bf197f9527
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
6 years agomsm: ais: Synchronize v4l2 subscribe and unsubscribe event
Rahul Sharma [Fri, 2 Feb 2018 13:20:18 +0000 (18:50 +0530)]
msm: ais: Synchronize v4l2 subscribe and unsubscribe event

Serializing msm_subscribe_event and msm_unsubscribe_event to
prevent possibility of use-after-free if same event is
unsubcribed before v4l2 subscribe and unsubscribe event.

Change-Id: Ia5ba7aa1338982b3a99616a2981e415c28f8b4a6
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
6 years agomsm: sensor: actuator: fix out of bound read for region params
Haibin Liu [Thu, 28 Dec 2017 12:42:37 +0000 (20:42 +0800)]
msm: sensor: actuator: fix out of bound read for region params

Issue:
the region index is not validated against the region size.
this cause out-of-bound read on the KASAN kernel.

Fix:
Add restriction that region index smaller than region size.

CRs-Fixed: 2153841
Change-Id: I141bba45662769f0661c947fb642c2671578f32e
Signed-off-by: Haibin Liu <haibinl@codeaurora.org>
6 years agoARM: dts: qcom: add an empty hab into the baseline vplatform
Yong Ding [Thu, 25 Jan 2018 09:37:52 +0000 (17:37 +0800)]
ARM: dts: qcom: add an empty hab into the baseline vplatform

The empty hab entry has no actual MMID group entries. With it,
hab driver can initialize successfully, but it can not be used
by any clients since no acutal physical channels are created.

Change-Id: Ia5c85cf9c32ae2cb33bd1f36de7ac3e9337dfa2f
Signed-off-by: Yong Ding <yongding@codeaurora.org>
6 years agoreg: qcom: call regulatory callback for self managed hints
Amar Singhal [Thu, 4 May 2017 21:24:08 +0000 (14:24 -0700)]
reg: qcom: call regulatory callback for self managed hints

Currently, kernel ignores the regulatory hint if wiphy flag
REGULATORY_WIPHY_SELF_MANAGED is set. This would lead to drop of
hints sent directly to kernel from user-space. To fix, call the driver
callback with the request.

CRs-Fixed: 2183721
Change-Id: Ic6d17ce8c3e9b889f618f3494672020bb1c98c42
Signed-off-by: Amar Singhal <asinghal@codeaurora.org>
6 years agoMerge 4.4.115 into android-4.4
Greg Kroah-Hartman [Sat, 3 Feb 2018 16:44:38 +0000 (17:44 +0100)]
Merge 4.4.115 into android-4.4

Changes in 4.4.115
loop: fix concurrent lo_open/lo_release
bpf: fix branch pruning logic
x86: bpf_jit: small optimization in emit_bpf_tail_call()
bpf: fix bpf_tail_call() x64 JIT
bpf: introduce BPF_JIT_ALWAYS_ON config
bpf: arsh is not supported in 32 bit alu thus reject it
bpf: avoid false sharing of map refcount with max_entries
bpf: fix divides by zero
bpf: fix 32-bit divide by zero
bpf: reject stores into ctx via st and xadd
x86/pti: Make unpoison of pgd for trusted boot work for real
kaiser: fix intel_bts perf crashes
ALSA: seq: Make ioctls race-free
crypto: aesni - handle zero length dst buffer
crypto: af_alg - whitelist mask and type
power: reset: zx-reboot: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE
gpio: iop: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE
gpio: ath79: add missing MODULE_DESCRIPTION/LICENSE
mtd: nand: denali_pci: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE
igb: Free IRQs when device is hotplugged
KVM: x86: emulator: Return to user-mode on L1 CPL=0 emulation failure
KVM: x86: Don't re-execute instruction when not passing CR2 value
KVM: X86: Fix operand/address-size during instruction decoding
KVM: x86: ioapic: Fix level-triggered EOI and IOAPIC reconfigure race
KVM: x86: ioapic: Clear Remote IRR when entry is switched to edge-triggered
KVM: x86: ioapic: Preserve read-only values in the redirection table
ACPI / bus: Leave modalias empty for devices which are not present
cpufreq: Add Loongson machine dependencies
bcache: check return value of register_shrinker
drm/amdgpu: Fix SDMA load/unload sequence on HWS disabled mode
drm/amdkfd: Fix SDMA ring buffer size calculation
drm/amdkfd: Fix SDMA oversubsription handling
openvswitch: fix the incorrect flow action alloc size
mac80211: fix the update of path metric for RANN frame
btrfs: fix deadlock when writing out space cache
KVM: VMX: Fix rflags cache during vCPU reset
xen-netfront: remove warning when unloading module
nfsd: CLOSE SHOULD return the invalid special stateid for NFSv4.x (x>0)
nfsd: Ensure we check stateid validity in the seqid operation checks
grace: replace BUG_ON by WARN_ONCE in exit_net hook
nfsd: check for use of the closed special stateid
lockd: fix "list_add double add" caused by legacy signal interface
hwmon: (pmbus) Use 64bit math for DIRECT format values
net: ethernet: xilinx: Mark XILINX_LL_TEMAC broken on 64-bit
quota: Check for register_shrinker() failure.
SUNRPC: Allow connect to return EHOSTUNREACH
kmemleak: add scheduling point to kmemleak_scan()
drm/omap: Fix error handling path in 'omap_dmm_probe()'
xfs: ubsan fixes
scsi: aacraid: Prevent crash in case of free interrupt during scsi EH path
scsi: ufs: ufshcd: fix potential NULL pointer dereference in ufshcd_config_vreg
media: usbtv: add a new usbid
usb: gadget: don't dereference g until after it has been null checked
staging: rtl8188eu: Fix incorrect response to SIOCGIWESSID
usb: option: Add support for FS040U modem
USB: serial: pl2303: new device id for Chilitag
USB: cdc-acm: Do not log urb submission errors on disconnect
CDC-ACM: apply quirk for card reader
USB: serial: io_edgeport: fix possible sleep-in-atomic
usbip: prevent bind loops on devices attached to vhci_hcd
usbip: list: don't list devices attached to vhci_hcd
USB: serial: simple: add Motorola Tetra driver
usb: f_fs: Prevent gadget unbind if it is already unbound
usb: uas: unconditionally bring back host after reset
selinux: general protection fault in sock_has_perm
serial: imx: Only wakeup via RTSDEN bit if the system has RTS/CTS
spi: imx: do not access registers while clocks disabled
Linux 4.4.115

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
6 years agoLinux 4.4.115
Greg Kroah-Hartman [Sat, 3 Feb 2018 16:04:31 +0000 (17:04 +0100)]
Linux 4.4.115

6 years agospi: imx: do not access registers while clocks disabled
Stefan Agner [Sun, 7 Jan 2018 14:05:49 +0000 (15:05 +0100)]
spi: imx: do not access registers while clocks disabled

commit d593574aff0ab846136190b1729c151c736727ec upstream.

Since clocks are disabled except during message transfer clocks
are also disabled when spi_imx_remove gets called. Accessing
registers leads to a freeeze at least on a i.MX 6ULL. Enable
clocks before disabling accessing the MXC_CSPICTRL register.

Fixes: 9e556dcc55774 ("spi: spi-imx: only enable the clocks when we start to transfer a message")
Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
6 years agoserial: imx: Only wakeup via RTSDEN bit if the system has RTS/CTS
Fabio Estevam [Thu, 4 Jan 2018 17:58:34 +0000 (15:58 -0200)]
serial: imx: Only wakeup via RTSDEN bit if the system has RTS/CTS

commit 38b1f0fb42f772b8c9aac53593883a18ff5eb9d7 upstream.

The wakeup mechanism via RTSDEN bit relies on the system using the RTS/CTS
lines, so only allow such wakeup method when the system actually has
RTS/CTS support.

Fixes: bc85734b126f ("serial: imx: allow waking up on RTSD")
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Reviewed-by: Martin Kaiser <martin@kaiser.cx>
Acked-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
6 years agoselinux: general protection fault in sock_has_perm
Mark Salyzyn [Thu, 1 Feb 2018 15:37:04 +0000 (07:37 -0800)]
selinux: general protection fault in sock_has_perm

In the absence of commit a4298e4522d6 ("net: add SOCK_RCU_FREE socket
flag") and all the associated infrastructure changes to take advantage
of a RCU grace period before freeing, there is a heightened
possibility that a security check is performed while an ill-timed
setsockopt call races in from user space.  It then is prudent to null
check sk_security, and if the case, reject the permissions.

Because of the nature of this problem, hard to duplicate, no clear
path, this patch is a simplified band-aid for stable trees lacking the
infrastructure for the series of commits leading up to providing a
suitable RCU grace period.  This adjustment is orthogonal to
infrastructure improvements that may nullify the needed check, but
could be added as good code hygiene in all trees.

general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 14233 Comm: syz-executor2 Not tainted 4.4.112-g5f6325b #28
task: ffff8801d1095f00 task.stack: ffff8800b5950000
RIP: 0010:[<ffffffff81b69b7e>]  [<ffffffff81b69b7e>] sock_has_perm+0x1fe/0x3e0 security/selinux/hooks.c:4069
RSP: 0018:ffff8800b5957ce0  EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 1ffff10016b2af9f RCX: ffffffff81b69b51
RDX: 0000000000000002 RSI: 0000000000000000 RDI: 0000000000000010
RBP: ffff8800b5957de0 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000000 R11: 1ffff10016b2af68 R12: ffff8800b5957db8
R13: 0000000000000000 R14: ffff8800b7259f40 R15: 00000000000000d7
FS:  00007f72f5ae2700(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000a2fa38 CR3: 00000001d7980000 CR4: 0000000000160670
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Stack:
 ffffffff81b69a1f ffff8800b5957d58 00008000b5957d30 0000000041b58ab3
 ffffffff83fc82f2 ffffffff81b69980 0000000000000246 ffff8801d1096770
 ffff8801d3165668 ffffffff8157844b ffff8801d1095f00
 ffff880000000001
Call Trace:
[<ffffffff81b6a19d>] selinux_socket_setsockopt+0x4d/0x80 security/selinux/hooks.c:4338
[<ffffffff81b4873d>] security_socket_setsockopt+0x7d/0xb0 security/security.c:1257
[<ffffffff82df1ac8>] SYSC_setsockopt net/socket.c:1757 [inline]
[<ffffffff82df1ac8>] SyS_setsockopt+0xe8/0x250 net/socket.c:1746
[<ffffffff83776499>] entry_SYSCALL_64_fastpath+0x16/0x92
Code: c2 42 9b b6 81 be 01 00 00 00 48 c7 c7 a0 cb 2b 84 e8
f7 2f 6d ff 49 8d 7d 10 48 b8 00 00 00 00 00 fc ff df 48 89
fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e 83 01 00
00 41 8b 75 10 31
RIP  [<ffffffff81b69b7e>] sock_has_perm+0x1fe/0x3e0 security/selinux/hooks.c:4069
RSP <ffff8800b5957ce0>
---[ end trace 7b5aaf788fef6174 ]---

Signed-off-by: Mark Salyzyn <salyzyn@android.com>
Acked-by: Paul Moore <paul@paul-moore.com>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Stephen Smalley <sds@tycho.nsa.gov>
Cc: selinux@tycho.nsa.gov
Cc: linux-security-module@vger.kernel.org
Cc: Eric Paris <eparis@parisplace.org>
Cc: Serge E. Hallyn <serge@hallyn.com>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
6 years agousb: uas: unconditionally bring back host after reset
Oliver Neukum [Thu, 11 Jan 2018 12:10:16 +0000 (13:10 +0100)]
usb: uas: unconditionally bring back host after reset

commit cbeef22fd611c4f47c494b821b2b105b8af970bb upstream.

Quoting Hans:

If we return 1 from our post_reset handler, then our disconnect handler
will be called immediately afterwards. Since pre_reset blocks all scsi
requests our disconnect handler will then hang in the scsi_remove_host
call.

This is esp. bad because our disconnect handler hanging for ever also
stops the USB subsys from enumerating any new USB devices, causes commands
like lsusb to hang, etc.

In practice this happens when unplugging some uas devices because the hub
code may see the device as needing a warm-reset and calls usb_reset_device
before seeing the disconnect. In this case uas_configure_endpoints fails
with -ENODEV. We do not want to print an error for this, so this commit
also silences the shost_printk for -ENODEV.

ENDQUOTE

However, if we do that we better drop any unconditional execution
and report to the SCSI subsystem that we have undergone a reset
but we are not operational now.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Reported-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>