660 Commits

Author SHA1 Message Date
kondors1995
86d927fab7 Revert "sched: fair: spread tasks with in little cluster"
This seams to cause regresion in ux and its not used on kona

This reverts commit cfcfd7a75b.
2020-09-11 09:41:01 +00:00
UtsavBalar1231
75417a9d9c Revert "sched: walt: hardcode sched_coloc_downmigrate_ns to 40ms"
This increased active power consuption
This reverts commit deec751432.

Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2020-08-28 16:59:46 +05:30
UtsavBalar1231
cfcfd7a75b sched: fair: spread tasks with in little cluster
- This significantly improves performance by freely migrating
tasks towards idle cpus within same cluster to reduce runnables.
qcom also enabled this on their LITO platform

Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2020-08-26 22:42:30 +05:30
UtsavBalar1231
deec751432 sched: walt: hardcode sched_coloc_downmigrate_ns to 40ms
This means that a boosted colocation task will at least run 40ms on a big cores
before it can possibly be down migrated

Suggested-by: Zachariah Kennedy <zkennedy87@gmail.com>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2020-08-26 22:42:04 +05:30
Kees Cook
41b77821cf treewide: kzalloc() -> kcalloc()
The kzalloc() function has a 2-factor argument form, kcalloc(). This
patch replaces cases of:

        kzalloc(a * b, gfp)

with:
        kcalloc(a * b, gfp)

as well as handling cases of:

        kzalloc(a * b * c, gfp)

with:

        kzalloc(array3_size(a, b, c), gfp)

as it's slightly less ugly than:

        kzalloc_array(array_size(a, b), c, gfp)

This does, however, attempt to ignore constant size factors like:

        kzalloc(4 * 1024, gfp)

though any constants defined via macros get caught up in the conversion.

Any factors with a sizeof() of "unsigned char", "char", and "u8" were
dropped, since they're redundant.

The Coccinelle script used for this was:

// Fix redundant parens around sizeof().
@@
type TYPE;
expression THING, E;
@@

(
  kzalloc(
-	(sizeof(TYPE)) * E
+	sizeof(TYPE) * E
  , ...)
|
  kzalloc(
-	(sizeof(THING)) * E
+	sizeof(THING) * E
  , ...)
)

// Drop single-byte sizes and redundant parens.
@@
expression COUNT;
typedef u8;
typedef __u8;
@@

(
  kzalloc(
-	sizeof(u8) * (COUNT)
+	COUNT
  , ...)
|
  kzalloc(
-	sizeof(__u8) * (COUNT)
+	COUNT
  , ...)
|
  kzalloc(
-	sizeof(char) * (COUNT)
+	COUNT
  , ...)
|
  kzalloc(
-	sizeof(unsigned char) * (COUNT)
+	COUNT
  , ...)
|
  kzalloc(
-	sizeof(u8) * COUNT
+	COUNT
  , ...)
|
  kzalloc(
-	sizeof(__u8) * COUNT
+	COUNT
  , ...)
|
  kzalloc(
-	sizeof(char) * COUNT
+	COUNT
  , ...)
|
  kzalloc(
-	sizeof(unsigned char) * COUNT
+	COUNT
  , ...)
)

// 2-factor product with sizeof(type/expression) and identifier or constant.
@@
type TYPE;
expression THING;
identifier COUNT_ID;
constant COUNT_CONST;
@@

(
- kzalloc
+ kcalloc
  (
-	sizeof(TYPE) * (COUNT_ID)
+	COUNT_ID, sizeof(TYPE)
  , ...)
|
- kzalloc
+ kcalloc
  (
-	sizeof(TYPE) * COUNT_ID
+	COUNT_ID, sizeof(TYPE)
  , ...)
|
- kzalloc
+ kcalloc
  (
-	sizeof(TYPE) * (COUNT_CONST)
+	COUNT_CONST, sizeof(TYPE)
  , ...)
|
- kzalloc
+ kcalloc
  (
-	sizeof(TYPE) * COUNT_CONST
+	COUNT_CONST, sizeof(TYPE)
  , ...)
|
- kzalloc
+ kcalloc
  (
-	sizeof(THING) * (COUNT_ID)
+	COUNT_ID, sizeof(THING)
  , ...)
|
- kzalloc
+ kcalloc
  (
-	sizeof(THING) * COUNT_ID
+	COUNT_ID, sizeof(THING)
  , ...)
|
- kzalloc
+ kcalloc
  (
-	sizeof(THING) * (COUNT_CONST)
+	COUNT_CONST, sizeof(THING)
  , ...)
|
- kzalloc
+ kcalloc
  (
-	sizeof(THING) * COUNT_CONST
+	COUNT_CONST, sizeof(THING)
  , ...)
)

// 2-factor product, only identifiers.
@@
identifier SIZE, COUNT;
@@

- kzalloc
+ kcalloc
  (
-	SIZE * COUNT
+	COUNT, SIZE
  , ...)

// 3-factor product with 1 sizeof(type) or sizeof(expression), with
// redundant parens removed.
@@
expression THING;
identifier STRIDE, COUNT;
type TYPE;
@@

(
  kzalloc(
-	sizeof(TYPE) * (COUNT) * (STRIDE)
+	array3_size(COUNT, STRIDE, sizeof(TYPE))
  , ...)
|
  kzalloc(
-	sizeof(TYPE) * (COUNT) * STRIDE
+	array3_size(COUNT, STRIDE, sizeof(TYPE))
  , ...)
|
  kzalloc(
-	sizeof(TYPE) * COUNT * (STRIDE)
+	array3_size(COUNT, STRIDE, sizeof(TYPE))
  , ...)
|
  kzalloc(
-	sizeof(TYPE) * COUNT * STRIDE
+	array3_size(COUNT, STRIDE, sizeof(TYPE))
  , ...)
|
  kzalloc(
-	sizeof(THING) * (COUNT) * (STRIDE)
+	array3_size(COUNT, STRIDE, sizeof(THING))
  , ...)
|
  kzalloc(
-	sizeof(THING) * (COUNT) * STRIDE
+	array3_size(COUNT, STRIDE, sizeof(THING))
  , ...)
|
  kzalloc(
-	sizeof(THING) * COUNT * (STRIDE)
+	array3_size(COUNT, STRIDE, sizeof(THING))
  , ...)
|
  kzalloc(
-	sizeof(THING) * COUNT * STRIDE
+	array3_size(COUNT, STRIDE, sizeof(THING))
  , ...)
)

// 3-factor product with 2 sizeof(variable), with redundant parens removed.
@@
expression THING1, THING2;
identifier COUNT;
type TYPE1, TYPE2;
@@

(
  kzalloc(
-	sizeof(TYPE1) * sizeof(TYPE2) * COUNT
+	array3_size(COUNT, sizeof(TYPE1), sizeof(TYPE2))
  , ...)
|
  kzalloc(
-	sizeof(TYPE1) * sizeof(THING2) * (COUNT)
+	array3_size(COUNT, sizeof(TYPE1), sizeof(TYPE2))
  , ...)
|
  kzalloc(
-	sizeof(THING1) * sizeof(THING2) * COUNT
+	array3_size(COUNT, sizeof(THING1), sizeof(THING2))
  , ...)
|
  kzalloc(
-	sizeof(THING1) * sizeof(THING2) * (COUNT)
+	array3_size(COUNT, sizeof(THING1), sizeof(THING2))
  , ...)
|
  kzalloc(
-	sizeof(TYPE1) * sizeof(THING2) * COUNT
+	array3_size(COUNT, sizeof(TYPE1), sizeof(THING2))
  , ...)
|
  kzalloc(
-	sizeof(TYPE1) * sizeof(THING2) * (COUNT)
+	array3_size(COUNT, sizeof(TYPE1), sizeof(THING2))
  , ...)
)

// 3-factor product, only identifiers, with redundant parens removed.
@@
identifier STRIDE, SIZE, COUNT;
@@

(
  kzalloc(
-	(COUNT) * STRIDE * SIZE
+	array3_size(COUNT, STRIDE, SIZE)
  , ...)
|
  kzalloc(
-	COUNT * (STRIDE) * SIZE
+	array3_size(COUNT, STRIDE, SIZE)
  , ...)
|
  kzalloc(
-	COUNT * STRIDE * (SIZE)
+	array3_size(COUNT, STRIDE, SIZE)
  , ...)
|
  kzalloc(
-	(COUNT) * (STRIDE) * SIZE
+	array3_size(COUNT, STRIDE, SIZE)
  , ...)
|
  kzalloc(
-	COUNT * (STRIDE) * (SIZE)
+	array3_size(COUNT, STRIDE, SIZE)
  , ...)
|
  kzalloc(
-	(COUNT) * STRIDE * (SIZE)
+	array3_size(COUNT, STRIDE, SIZE)
  , ...)
|
  kzalloc(
-	(COUNT) * (STRIDE) * (SIZE)
+	array3_size(COUNT, STRIDE, SIZE)
  , ...)
|
  kzalloc(
-	COUNT * STRIDE * SIZE
+	array3_size(COUNT, STRIDE, SIZE)
  , ...)
)

// Any remaining multi-factor products, first at least 3-factor products,
// when they're not all constants...
@@
expression E1, E2, E3;
constant C1, C2, C3;
@@

(
  kzalloc(C1 * C2 * C3, ...)
|
  kzalloc(
-	(E1) * E2 * E3
+	array3_size(E1, E2, E3)
  , ...)
|
  kzalloc(
-	(E1) * (E2) * E3
+	array3_size(E1, E2, E3)
  , ...)
|
  kzalloc(
-	(E1) * (E2) * (E3)
+	array3_size(E1, E2, E3)
  , ...)
|
  kzalloc(
-	E1 * E2 * E3
+	array3_size(E1, E2, E3)
  , ...)
)

// And then all remaining 2 factors products when they're not all constants,
// keeping sizeof() as the second factor argument.
@@
expression THING, E1, E2;
type TYPE;
constant C1, C2, C3;
@@

(
  kzalloc(sizeof(THING) * C2, ...)
|
  kzalloc(sizeof(TYPE) * C2, ...)
|
  kzalloc(C1 * C2 * C3, ...)
|
  kzalloc(C1 * C2, ...)
|
- kzalloc
+ kcalloc
  (
-	sizeof(TYPE) * (E2)
+	E2, sizeof(TYPE)
  , ...)
|
- kzalloc
+ kcalloc
  (
-	sizeof(TYPE) * E2
+	E2, sizeof(TYPE)
  , ...)
|
- kzalloc
+ kcalloc
  (
-	sizeof(THING) * (E2)
+	E2, sizeof(THING)
  , ...)
|
- kzalloc
+ kcalloc
  (
-	sizeof(THING) * E2
+	E2, sizeof(THING)
  , ...)
|
- kzalloc
+ kcalloc
  (
-	(E1) * E2
+	E1, E2
  , ...)
|
- kzalloc
+ kcalloc
  (
-	(E1) * (E2)
+	E1, E2
  , ...)
|
- kzalloc
+ kcalloc
  (
-	E1 * E2
+	E1, E2
  , ...)
)

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Adam W. Willis <return.of.octobot@gmail.com>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2020-08-17 18:55:52 +05:30
celtare21
9c9430f753 kernel: Force sched_walt_rotate_big_tasks to 0
Signed-off-by: celtare21 <celtare21@gmail.com>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2020-07-30 14:02:13 +05:30
Lingutla Chandrasekhar
344d6114c7 sched: Add support to spread tasks
If sysctl_sched_prefer_spread is enabled, then tasks would be freely
migrated to idle cpus within same cluster to reduce runnables.

By default, the feature is disabled.
User can trigger feature with:
   echo 1 > /proc/sys/kernel/sched_prefer_spread
	Aggressively spread tasks with in little cluster.
   echo 2 > /proc/sys/kernel/sched_prefer_spread
	Aggressively spread tasks with in little cluster as well as
	big cluster, but not between big and little.

Change-Id: I0a4d87bd17de3525548765472e6f388a9970f13c
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
[render: minor fixups]
Signed-off-by: Zachariah Kennedy <zkennedy87@gmail.com>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2020-07-13 19:45:16 +05:30
Lingutla Chandrasekhar
468b35d2f4 sched/walt: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: I5fbadf248c0bfe27bc761686de7a925cec2e4163
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
Signed-off-by: Sai Harshini Nimmala <snimmala@codeaurora.org>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2020-07-13 19:45:15 +05:30
Sai Harshini Nimmala
3d32bf1068 sched/walt: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: I33e9ec890f8b54d673770d5d02dba489a8e08ce7
Signed-off-by: Sai Harshini Nimmala <snimmala@codeaurora.org>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2020-07-13 19:45:15 +05:30
Lingutla Chandrasekhar
fbf5b32d08 sched: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: Ia5367b1220e1a7ec07d6a3fc4fdb18ed5748f490
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2020-07-13 19:45:15 +05:30
Lingutla Chandrasekhar
600b653586 sched: core: Use sched_clusters for updown migration handler
Currently, sched updown migration handler derives cluster topology
based on arch topology, the cluster information is already populated
in walt sched_cluster. So reuse it instead of deriving it again.

And move updown tunables support to under WALT.

Change-Id: Iddf4d18ddf75cc20637281d9889f671f42369513
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
[render: minor fixup]
Signed-off-by: Zachariah Kennedy <zkennedy87@gmail.com>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2020-07-13 19:45:14 +05:30
Sai Harshini Nimmala
c492c904ec sched/walt: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: I8459bcf7b412a5f301566054c28c910567548485
Signed-off-by: Sai Harshini Nimmala <snimmala@codeaurora.org>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2020-07-13 19:45:14 +05:30
Shaleen Agrawal
42a9acc15b sched: walt: Improve the Scheduler
This change is for general scheduler improvement.

Change-Id: Ida39a3ee5e6b4b0d3255bfef95601890afd80709
Signed-off-by: Shaleen Agrawal <shalagra@codeaurora.org>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2020-07-13 19:45:13 +05:30
Amir Vajid
cf3d4799fb sched/walt: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: I8ff4768d56d8e63b2cfa78e5f34cb156ee60e3da
Signed-off-by: Amir Vajid <avajid@codeaurora.org>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2020-07-13 19:45:13 +05:30
Amir Vajid
4a0efb0baf sched/walt: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: I737751f065df6a5ed3093e3bda5e48750a14e4c9
Signed-off-by: Amir Vajid <avajid@codeaurora.org>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2020-07-13 19:45:13 +05:30
Pavankumar Kondeti
83cfe78831 sched: Use bitmask for sched_busy_hysteresis_enable_cpus tunable
The current code is using a bitmap for sched_busy_hysteresis_enable_cpus
tunable. Since the feature is not enabled for any of the CPUs, the
default value is printed as "\n". This is very inconvenient for
user space applications which tries to write a new value and try to
restore the previous value. Like other scheduler tunables, use
the bitmask to avoid this issue.

Change-Id: I0c5989606352be5382dd688602aefd753fb62317
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2020-07-13 19:45:13 +05:30
Pavankumar Kondeti
ffe8c45ba2 sched: Introduce sched_busy_hysteresis_enable_cpus tunable
Currently sched busy hysteresis feature is applied only for
CPUs other than the min capacity CPUs. This policy restricts
the flexibility on a system with more than 2 clusters. Add a
tunable to specify which CPUs needs this feature. By default,
the feature is turned off for all the CPUs.

The usage of this tunable:

echo 4-7 > /proc/sys/kernel/sched_busy_hysteresis_enable_cpus

Change-Id: I636575af2c42e2774007582f3d589495c6a3a9f1
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2020-07-13 19:45:13 +05:30
Pavankumar Kondeti
cf72ce07d9 sched/walt: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: I310bbdc19bb65a0c562ec6a208f2da713eba954d
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
[render: minor fixups]
Signed-off-by: Zachariah Kennedy <zkennedy87@gmail.com>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2020-07-13 19:45:13 +05:30
Pavankumar Kondeti
351a7fb56a sched/walt: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: I7d794ad1be10a6811602fabb388facd39c8f3c53
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: Zachariah Kennedy <zkennedy87@gmail.com>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2020-07-13 19:45:13 +05:30
Abhijeet Dharmapurikar
f755aa947f sched: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: I18364c6061ed7525755aaf187bf15a8cb9b54a8a
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
[render: minor fixup]
Signed-off-by: Zachariah Kennedy <zkennedy87@gmail.com>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2020-07-13 19:45:12 +05:30
Puja Gupta
62649debec sched/walt: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: Idef278a9551e6d7d3c1a945dcfd8804cbc7d6aff
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2020-07-13 19:45:11 +05:30
Abhijeet Dharmapurikar
cf3c8b5500 sched/walt: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: I5d89acdde73f5379d68ebc8513d0bbeaac128f5d
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Signed-off-by: Jonathan Avila <avilaj@codeaurora.org>
[render: minor fixups]
Signed-off-by: Zachariah Kennedy <zkennedy87@gmail.com>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2020-07-13 19:45:11 +05:30
Pavankumar Kondeti
193db6cc68 sched/walt: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: Ib963aef88d85e15fcd19cda3d3f0944b530239ab
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2020-07-13 19:45:11 +05:30
Lingutla Chandrasekhar
729ac41765 sched: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: Ie37ab752a4d69569bce506b0a12715bb45ece79e
Co-developed-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2020-07-13 19:45:11 +05:30
UtsavBalar1231
1913417451 Revert "sched/walt: Improve the scheduler"
* Not optimal for 4.14 sched

This reverts commit 1cda6108be.
2020-06-17 11:16:14 +05:30
Abhijeet Dharmapurikar
1cda6108be sched/walt: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: I5d89acdde73f5379d68ebc8513d0bbeaac128f5d
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Signed-off-by: Jonathan Avila <avilaj@codeaurora.org>
UtsavBalar1231: adapt for 4.14
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
UtsavBalar1231: sched: energy: remove unused function
2020-06-15 21:36:12 +05:30
Park Ju Hyung
3709fa3fdb Revert "mm: oom_kill: reap memory of a task that receives SIGKILL"
This reverts commit 724adb4433.

No.

Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>
Signed-off-by: UtsavisGreat <utsavbalar1231@gmail.com>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2020-06-15 21:36:11 +05:30
Park Ju Hyung
591dd3e554 sysctl: promote several nodes out of CONFIG_SCHED_DEBUG
These are used in Android.
Promote these to disable CONFIG_SCHED_DEBUG.

Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2020-06-15 20:38:25 +05:30
UtsavBalar1231
27639feb73 Merge remote-tracking branch 'origin/LE.UM.4.2.1.r1.3' into LE.UM.4.2.1.r1-02600-QCS404.0
* origin/LE.UM.4.2.1.r1.3:
  techpack: allow building data-kernel module
  qcacld-3.0: Handle tx_power_level under radio stat
  Fix for display suspend resume crash
  regulator: cpr3-regulator: Add support for sdm660
  Revert "ARM: dts: msm: fix NFC device probe issue for sdm660"
  ARM: dts: msm: Update the PM660 GPIO definitions
  clk: qcom: Restore dsi pll clk names for sdm660
  smcinvoke : Add locking to shared variables
  ARM: decompressor: avoid speculative prefetch from protected regions
  msm: sps: Fix the SPS_DBG macro definitions
  power: qpnp-smb2: Force power-role to UFP by default
  input: touchscreen: add raydium touch driver
  ARM: dts: msm: enable xbl boot loading for IPA FW on sdxprairie
  ARM: dts: msm: remove qcom_seecom node for qcs404
  defconfig: sa8155: Enable preempt and rcu debugging configs
  mhi: cntrl: qcom: expand debug modes for new device bringup
  msm: pcie: add sa8195 pci device id support
  msm: npu: Add support to get firmware capabilities
  defconfig: sa2150p: remove cnss driver from build
  ARM: dts: msm: Add qcom_gadget node for SA515M
  ARM: dts: ipc: Change sound card name
  crypto: msm: make qcrypto and qcedev independent of DEBUG_FS
  msm: npu: Allow context switch after processing IPC message
  ARM: dts: msm: remove DP pinctrl from sa6155, sa8155 and sa8195p
  msm: mhi_dev: Fix maximum number of HW channels
  msm: mhi_dev: Remove MHI hardware channel to IPA GSI mapping
  ARM: dts: msm: remove 2nd DP and eDP from sa8195p
  ARM: DTS: msm: Update DP PLL string for SDM660
  clk: qcom: mdss: DP PLL changes for SDM660
  net: stmmac: handle dma fatal irq for IPA channels
  power: qpnp-fg-gen3: Silence an instance of -Wsizeof-array-div in clear_cycle_counter
  defconfig: qti-quin-gvm: Enable virtualized FastRPC on GVM
  driver: boot_marker: enable bootloader log mount
  defconfig: Minimal Kernel config for qcs610
  USB: configfs: Clear deactivation flag in configfs_composite_unbind()
  msm: vidc: Check image encode capabilities
  defconfig: atoll: Enable dm-snapshot
  msm: camera: isp: variable should be accessed only if match is found
  data-kernel: EMac: S2D phase 2 changes
  defconfig: enable rmnet_data driver for wearable target
  ARM: dts: msm: config primary tdm on auto platform
  mmc: sdhci-msm: Enable EMMC_BOOT_SELECT bit
  usb: dwc3-msm: Avoid access of gsi_reg for non-GSI targets
  defconfig: sa515m: Build CNSS2 driver as loadable module
  msm_bus: fix compilation when CONFIG_DEBUG_FS is disabled
  ARM: dts: msm: Add model specific configurations for SA6155 VMs
  cnss2: Add DOMAIN_ATTR_GEOMETRY attribute support
  msm:ipa:mhi: send qmi endp_desc notification to Q6
  msm: camera: isp: Fix IRQ delay handling logic
  msm: camera: isp: Change state of all CID resource to RESERVE on deinit
  net: stmmac: Enable CRC clipping bit
  drivers: thermal: Avoid multiple TSENS controller re-init simultaneously
  mhi: netdev: Open mhi channels based on state notifications from host
  clk: fix compilation when CONFIG_DEBUG_FS is disabled
  ARM: dts: msm: Add property iommu-geometry for CNSS
  Revert "binder: implement binderfs"
  msm: vidc_3x: correct ion flags for CP_CAMERA_ENCODE context bank
  ARM: dts: msm: Fix mistaken description for pcie1&3 on sa8195p
  defconfig: msm: veth: Add Veth configs
  mhi: fix compilation when CONFIG_DEBUG_FS is disabled
  debugfs: Fix !DEBUG_FS debugfs_create_automount
  ufs: fix compilation when CONFIG_DEBUG_FS is disabled
  tsens: fix compilation when CONFIG_DEBUG_FS is disabled
  gsi: fix compilation when CONFIG_DEBUG_FS is disabled
  msm: ipa: Fix compilation errors when DEBUG_FS is disabled
  hdcp_qseecom: Maintain repeater_flag appropriately
  ARM: dts: msm: support to enable CRC using DTS
  ARM: dts: msm: Add always-on flag for L12A on sa8195
  diag: dci: Synchronize dci mempool buffers alloc and free
  msm: vidc_3x: Add new video driver to support CMA buffers
  dt: sm8155: Change copyright year in DT file
  msm: vidc_3x: Add changes to read video CMA configuration information
  mm/memblock.c: fix bug in early_dyn_memhotplug
  ARM: dts: qcom: Include PM660 dtsi for SDA429
  ARM: msm: dts: Enable sdp check timer for sdm429
  char: virtio_fastrpc: Fix compile warning
  phy-msm-usb: Perform sdp_check for SDP charger as well
  msm: vidc_3x: populate sid list for each context bank
  qrtr: usb_dev: Fix kthread usage
  iommu: iommu-debug: Fix the return string
  ARM: dts: msm: Enable PDC support for VM targets
  fw-api: CL 10441255 - update fw common interface files
  fw-api: CL 10438420 - update fw common interface files
  fw-api: CL 10437857 - update fw common interface files
  fw-api: CL 10407957 - update fw common interface files
  fw-api: CL 10402317 - update fw common interface files
  fw-api: CL 10382552 - update fw common interface files
  fw-api: CL 10372014 - update fw common interface files
  fw-api: CL 10366568 - update fw common interface files
  fw-api: CL 10356226 - update fw common interface files
  msm: ipa: update check flags to handle CONFIG_DEBUG_FS
  arm64: defconfig: Add IPA configs
  Release 5.2.03.26T
  ARM: dts: msm: Add IPA device configuration for SA8155
  ARM: dts: msm: Fix cx_cdev label size for MDM9607
  clk: qcom: mdss: add dsi phy 12nm clock
  ARM: dts: msm: Add default thermal zone rules for MDM9607
  ARM: dts: msm: Add regulator cooling device for MDM9607
  usb: dwc3: gadget: Block GSI DB update after END transfer on all EPs
  qcacld-3.0: Delete older PMK of all APs which have the same PMK
  ARM: dts: msm: Add qcom_gadget node for sdxprairie
  msm: npu: Continue npu_probe() when !DEBUG_FS
  qcom: qpnp-fg-gen4: Continue fg_gen4_probe() when !DEBUG_FS
  diag: Check for valid PCIe device
  Release 5.2.03.26S
  qcacld-3.0: Disable BTM offload to fw if a peer doesn't support PMF
  init: Remove modem mounting from kernel
  ARM: dts: msm: Add eMMC, SD card support on sdm429w
  msm: adsprpc: Put upper limit on IOMMU mapping size
  ARM: dts: msm: Add QMI cooling devices for MDM9607
  soc: swr-mstr: Add delay between fifo writes to avoid overflow/underflow
  asoc: wcd937x: Update retry logic for SWR logical addr
  soc: qcom: Increase bootmarker read buffer
  qcacld-3.0: Don't send disassoc frame to fw in case of HO failure
  diag: Initialize local variables
  mhi: core: Read transfer length from an event properly
  msm: vidc_3x: Add CMA support for video hardware
  ARM: dts: msm: Enable RTB for sdmshrike
  soc: qcom: Remove redundant bootstats
  defconfig: Add required configs for USB
  kernel: sysctl: make drop_caches write-only
  ARM: dts: msm: enable POMS on TD4330 cmd panel for trinket
  ARM: dts: msm: enable POMS on TD4330 panel for trinket
  ARM: dts: msm: Add secure display ion heap for GVMs
  ARM: dts: msm: Add BLSP DTSI nodes on sdm429
  ARM: dts: msm: Add DTS to support eMMC
  defconfig: msm: Add defconfig files for SA2150P-NAND
  Release 5.2.03.26R
  ARM: dts: msm: Add ATEML touch support for atoll target
  input: touchscreen: Add support for kernel command line parsing
  ARM: dts: msm: Enable constant fps feature for atoll CPhy panel
  disp: msm: dsi: refine the logic for mode filling and calculation
  disp: msm: dsi: add panel mode restriction for DFPS and RFI
  drm: msm: dsi-staging: CPhy constant fps porch calculation
  qcacld-3.0: drop frames in the RX thread queue during peer unmap
  defconfig: sdm429w: Add support for DEBUGCC for SDM429W
  msm: mhi_dev: Avoid re-alloc of netdev interface
  defconfig: msm: Thermal Enabled on mdm9607 target
  msm: ais: Fix powerup sequence in cam driver
  defconfig: sdm429-bg: Enable CPR, MEM-ACC, Haptics configs
  msm: v4l2loopback: to create V4L2 loopback devices
  msm:ipa:change IPA client mapping for mhi protocol
  sm8150: dt: sm8150-slpi-pinctrl: Typo mistake in gpio
  binder: implement binderfs
  msm: mhi_dev: Add proper check before accessing variable
  Revert "ARM: dts: msm: Add cmd mode panel support for SDM660 MTP"
  msm: veth_ipa: Introduce front end network driver
  net: stmmac: Ethtool half duplex not supported
  ARM: dts: msm: Add the CPR regulator node for SDM429w
  defconfig: sdmsteppe: Enable USB_VIDEO_CLASS
  Release 5.2.03.26Q
  defconfig: sdm429: Add MPROC defconfig for SDM429W
  ARM: dts: msm: add new HAB physical channels for DATA_NETWORK and HSI2S
  ARM: dts: qcom: Add MPROC device nodes for sdm429w
  qcacld-3.0: Avoid peer access after peer deletion
  PM / hibernate: Make passing hibernate offsets more friendly
  usb: dwc3-msm: Keep wakeup IRQs disabled for automotive platforms
  power: smb1398: Update the max-ilim current settings
  irqchip: qcom: pdc: Add a kernel config for pdc save/restore feature
  defconfig: msm: Enable PDC_VIRT on Quin GVM platform
  irqchip: qcom: pdc: Add support for pdc-virt
  clk: qcom: gcc-sdm429w: Update plls for SDM429W
  net: stmmac: Fixed ethool speed issue
  ARM: dts: msm: Add pcie1~3 support for sa8195 virtual machine
  clk: qcom: debugcc-sdm429w: Update debugcc Kconfig
  defconfig: sdm429: Enable BLSP, SLIMBUS driver defconfig
  ARM: dts: msm: Add SPS node for sdm429
  USB: phy: msm: Check for PHY reset handle also
  ARM: dts: msm: Add USB device nodes for sdm429
  clk: qcom: Add pcie1~3 virtio clocks for sa8195p
  uapi: add ADM_AUDPROC_PERSISTENT cal type
  ARM: dts: msm: Disable shared display on DP display sa8195
  Release 5.2.03.26P
  qcacld-3.0: Update OFDM and CCK flags for packet capture mode
  Release 5.2.03.26O
  qcacld-3.0: Copy peer and radio stats correctly
  qcacld-3.0: Handle LL stats for 2nd radio
  qcacld-3.0: Return LL stats resp in caller context
  diag: Save the correct task pointer while registering dci client
  qcacmn: Mark SRD channels conditionally passive
  ARM: dts: msm: Enable constant fps feature
  drm/msm/dsi-staging: Fix porch calculation issue for constant fps
  soc: qcom: hab: add some physical channels in HAB driver
  net: stmmac: Free IPA queue memory on netdev close
  power: smb1398: Fix SOC based SMB enable condition
  emac: emac RXC clock warning
  Release 5.2.03.26N
  ARM: dts: msm: EMAC phy hw reset delay timer
  driver: input: sensors: Increase the smi130 accel buffer samples size
  qcacld-3.0: Do not enable STA roaming if any NDI connection is active
  defconfig: sm8150: Enable dm-snapshot
  defconfig: sdmsteppe: Enable dm-snapshot
  net: stmmac: Set IOC for every TSO last desc
  fw-api: Define DEST_RING_CONSUMER_PREFET_TIMER macro for qca6750
  mhi: core: Fix out of bound channel id handling
  mhi: core: improve bandwidth switch events processing
  fw-api: CL 10334178 - update fw common interface files
  spi: spi-qcom-geni: Add error interrupt handling in spi driver
  ASoC: audio-ext-clk: Add pmi clk support for tasha
  ARM: dts: msm: Tasha snd node changes for sdm660
  fw-api: CL 10322687 - update fw common interface files
  fw-api: CL 10320987 - update fw common interface files
  Release 5.2.03.26M
  ARM: dts: msm: Disable shared display on DP display sa8155
  ARM: dts: msm: Disable shared display on DP display sa6155
  fw-api: CL 10317768 - update fw common interface files
  qcacld-3.0: Prevent RSO stop sent after vdev down
  fw-api: CL 10308469 - update fw common interface files
  Release 5.2.03.26L
  qcacld-3.0: Send PER config command before WMI_ROAM_SCAN_MODE command
  Release 5.2.03.26K
  qcacld-3.0: Lock all the entry of ch power info
  drivers: rmnet: shs: Add oom handler
  fw-api: CL 10295227 - update fw common interface files
  dsp: q6adm: Update the proper param_hdr for offset
  Revert "ASoC: Add Voice over pcie support"
  msm: mdss: add support to handle LP_RX_TO/BTA_TO errors for DSI 12nm PHY
  msm: mdss: perform DSI PHY s/w reset for 12nm PHY during unblank
  msm: mdss: update the MDSS DSI ULPS exit sequence
  msm: mdss: add support to program of HSTX drivers for DSI 12nm PHY
  msm: mdss: update DSI ULPS entry/exit sequence
  fw-api: CL 10270542 - update fw common interface files
  qcom: spmi-wled: Wait for OVPs before disable module
  ion: msm: Restrict VMID_CP_CAMERA_ENCODE to read only
  msm: vidc_3x: correct ion flags for CP_CAMERA_ENCODE context bank
  fw-api: CL 10262355 - update fw common interface files
  msm: vidc_3x: Add new video driver to support CMA buffers
  msm: vidc_3x: Add changes to read video CMA configuration information
  msm: vidc_3x: populate sid list for each context bank
  msm: vidc_3x: Add CMA support for video hardware
  drivers: net: can:Threshold update for time offset
  smcinvoke: Add suspend resume support
  SMCInvoke: Process requests for active clients
  msm: mdss: add support for DSI 12nm PHY in DSI driver
  drivers: rmnet: shs: add segmentation levels for slow start flows
  msm: vidc: Fix DCVS enablement
  vidc_3x: Fix qbuf error in gralloc buffers encoding
  data-kernel: EMAC: Change defualt value for phy reset delays.
  ARM: dts: msm: EMAC phy hw reset delay timer
  ARM: dts: msm: Disable minidump-id for Modem on SDM660
  autoconf: Enable legacy avtimer for sdm660
  diag: Add protection while accessing diag client map
  Revert "drivers: usb: gadget: Change gbam setup usage in rmnet function"
  ARM: dts: msm: EMAC phy hw reset delay timer
  ARM: dts: msm: EMAC phy hw reset delay timer
  data-kernel: EMAC: read phy hw reset delay time from dtsi
  bolero: tx-macro: Fix audio distortion during amic record
  va-macro: Add autosuspend after pm_runtime_get_sync
  qcacmn: Update the mc timer state after its deleted
  qcacld-3.0: Fix while condition in rrm_fill_beacon_ies()
  asoc: codecs: avoid crash after diconnecting DP cable
  mhi: core: move certain logs to controller log buffer
  mhi: cntrl: qcom: move certain logs to controller log buffer
  mhi: cntrl: qcom: reduce timesync and bootlogger log buffer size
  mhi: cntrl: qcom: add support for controller ipc logs
  cnss2: add support for controller IPC logs
  mhi: core: add log buffer for controller bootup and shutdown
  audio-kernel: Rename hw vote rsc to digital cdc rsc mgr
  msm: ipa2: Add change to fix ipa padding
  ARM: dts: msm: Update ADC_TM compatible field for PM660
  bindings: thermal: Add compatible field for PMIC4 ADC_TM
  thermal: adc_tm: Update support for PMIC4 ADC_TM
  asoc: add new path for in call recording
  audio-kernel: Synchronize hw vote and unvote requests
  asoc: sm8150: add proxy ports for call screening in machine driver
  ARM: dts: msm: Removing quiet-therm-step node
  vidc_3x: Query Entropy property only for H264 format
  asoc: add code change for pseudo playback and capture BE DAIs.
  ASoC: Add Voice over pcie support
  defconfig: arm64: msm: Enable USB RMNET & RNDIS using IPA over BAM2BAM
  usb: gadget: f_qc_rndis: Add RNDIS support using IPA over BAM2BAM
  fbdev: msm: fix merge errors in DP
  Revert "defconfig: arm64: msm: Enable USB RMNET & RNDIS using IPA over BAM2BAM"
  ARM: dts: msm: Add rpm-smd irq number for SDM660
  ARM: dts: msm: Update msm_ext_disp string
  autoconf: Enable leagay avtimer for sdm660
  defconfig: arm64: msm: Enable USB RMNET & RNDIS using IPA over BAM2BAM
  msm: ipa: Add low-level IPA client support
  Fixing compilation failures
  uapi/media: Fix buffer size issue for NV12_UBWC.
  soc: qcom: boot_stats: Add display boot KPI
  pfk: Fixed ICE slot number for bare metal
  clk: qcom: parents need enable during set rate for SDM660
  HID: core: add usage_page_preceding flag for hid_concatenate_usage_page().
  vidc_3x: Fix HFR recording issue.
  fbdev: msm: Use dynamic allocation for SID variable.
  Revert "fbdev: msm: disable sec display".
  ARM: dts: msm: modified interrupt interrupt type for smmu
  arm64: defconfig: Add IPA realted configs
  msm: ipa: Add Kconfig changes of IPA2 driver
  ARM: dts: msm: Add compatible rmnet version for ipa2
  msm: ipa2: Add changes compatible to kernel-4.14
  msm: ipa: Add support of IPA2 driver
  msm: Disable CSID virtualization and fix SID switching for SDM660
  defconfig: msm: Enable coresight replicator, qpdi for SDM660
  coresight: add qpdi driver support in upstream implementation
  ARM: dts: msm: coresight support for SDM660
  coresight: replicator: Add CoreSight Replicator driver
  msm: vidc: Re-calculate buffer requirement
  fbdev: msm: disable sec display
  ARM: dts: msm: fix NFC device probe issue for sdm660
  msm: fbdev: dp: Add dp intf to codec ops
  ARM: dts: msm: Add default thermal zone rules for SDM660
  media: v4l2-ctrls: Add missing entry in header_mode
  msm: vidc: Fix v4l2 format warnings
  ARM: dts: msm: Update WLED configuration for sdm660
  qcacld-3.0: Possible OOB write in rrm_process_radio_measurement_request
  fixing compilation issue
  msm: vidc_3x: Add partial cache operations support
  Revert "msm: vidc_3x: Add partial cache operations support"
  defconfig: msm: Disable CONFIG_BUILD_ARM64_APPENDED_DTB_IMAGE flag
  ARM: dts: msm: Add LPM residency for sdm660
  fbdev: msm: Remove CPU sync in dma buf unmap path
  ARM: dts: msm: Add panel changes for SDM660 QRD
  defconfig: msm: Enable DP Panel config
  msm: fbdev: dp: enable audio support over DP
  ARM: dts: msm: Update supply name for vdd cx-mx wlan rail
  mdss: fbdev: Fix fence timeout error check
  ARM: dts: msm: Add energy costs for SDM660
  ARM: dts: msm: Specify WLED configuration for sdm660 MTP
  ARM: dts: msm: Enable subsystem watchdog
  ARM: dts: msm: Enable WDSP SVA for SDM660
  ARM: dts: msm: Add TSENS in thermal_zone for SDM660
  ARM: dts: msm: Remove thermal sensor_info nodes
  defconfig: msm: Enable Thermal configs for SDM660
  ARM: dts: msm: add bcl_sensors thermal zones
  ARM: dts: msm: enable LMH DCVS driver for sdm660
  drivers: thermal: lmh_dcvs: Add support to enable legacy hardware feature
  ARM: dts: msm: add gpio_key VOL_UP button on SDM660
  ARM: dts: msm: Fix slave id for pm660l_gpio
  soc: qcom: dcc: DCC driver for SDM660
  msm: vidc_3x: Assign and pass hal buffer type to smem
  msm: vidc_3x: Add partial cache operations support
  Revert "msm: vidc_3x: disable smem_cache_operations for encoder"
  defconfig: msm: Enable DP Panel config
  msm: bus: removing warning
  clk: qcom: mdss: DSI and DP PLL changes for SDM660
  clk : qcom : Update mdss byte and pxl clk names
  fbdev: changes to enable recovery ui
  fbdev: msm: Add snapshot of mdss driver
  msm: fbdev: dp: update fbdev dp driver
  msm: fbdev: Add snapshot of DP driver
  ARM: DTS: msm: Enable 14nm DP PLL clk
  Revert "msm: mdss: dsi: Add support dual roi partial update"
  Revert "msm: mdss: add multiple partial update support"
  Revert "msm: mdss: add additional LM checks for dest scalar validation"
  Revert "fbdev: changes to enable recovery ui"
  Revert "fbdev: changes to enable recovery ui"
  usb: gadget: uvc: Update frame size as per frame type
  clk: remove workaround changes for SDM660
  ARM: dts: msm: Add dtbo support for sdm660 & sda660
  defconfig: sdm : Add configs for SDM660
  ARM: dts: msm: Add audio support for SDM660
  Revert "regulator: core: TEMP change register string size"
  ARM: dts: msm: Add cmd mode panel support for SDM660 MTP
  msm: vidc_3x: disable smem_cache_operations for encoder
  defconfig: msm: Enable CPR and FG related configs for SDM660
  drivers: irqchip: qcom: Add mpm pin data for sdm660
  defconfig: sdm : Add configs for SDM660
  ARM: dts: msm: Add MPM interrupt controller for sdm660..
  ARM: dts: msm: add support for frequency scaling for SDM660.
  Temporary commit : resolve build error.
  thermal: adc_tm: adc_init for sdm660
  ARM: dts: msm: add pmic support for SDM660
  ARM: dts: msm: Update GPU bw table for SDM660
  fbdev: changes to enable recovery ui
  iio: adc: Add DRAX_TEMP channel support
  ARM: dts: msm: Add device tree for SDM660
  ASoC: sdm660: Fix compilation issue of sdm660 drivers
  clk: qcom: Add snapshot of sdm660 clocks
  msm: vidc: remove additional checks in response_handler.
  vidc: Remove firmware_cb context bank.
  defconfig: vidc: Enable video drivers for sdm660.
  msm: vidc_3x: ION Upgrade changes for video.
  Revert "msm: vidc_3x: Add snapshot of video driver"
  Revert "msm: vidc_3x: ION Upgrade changes for video"
  Revert "vidc: Remove firmware_cb context bank"
  ARM: dts: msm: rename codec name
  mm-camera_v2: Check proper VFE h/w versions
  msm: kgsl: Change default pagetable creation sequence
  msm: kgsl: Remove workaround for GPU aperture programming
  ASoC: msm: Add support for WCD interrupt config via LPI TLMM
  Revert "ARM: dts: msm: Enable global pagetable for gpu on SDM660"
  msm: sde: Fixes to enable rotator for SDM660
  vidc: Remove firmware_cb context bank
  defconfig: msm: Enable PMIC related configs for SDM660
  defconfig: sdm : Update perf configs for SDM660
  msm: mdss: add additional LM checks for dest scalar validation
  msm: mdss: add multiple partial update support
  Audio-kernel: voice: TEMP enable voice call
  msm: mdss: dsi: Add support dual roi partial update
  Revert "vidc: Temporary change to remove secure context bank"
  Revert "BACKPORT: perf_event: Add support for LSM and SELinux checks"
  Linux 4.14.163
  perf/x86/intel/bts: Fix the use of page_private()
  xen/blkback: Avoid unmapping unmapped grant pages
  s390/smp: fix physical to logical CPU map for SMT
  net: add annotations on hh->hh_len lockless accesses
  arm64: dts: meson: odroid-c2: Disable usb_otg bus to avoid power failed warning
  ath9k_htc: Discard undersized packets
  ath9k_htc: Modify byte order for an error message
  rxrpc: Fix possible NULL pointer access in ICMP handling
  selftests: rtnetlink: add addresses with fixed life time
  powerpc/pseries/hvconsole: Fix stack overread via udbg
  drm/mst: Fix MST sideband up-reply failure handling
  scsi: qedf: Do not retry ELS request if qedf_alloc_cmd fails
  fix compat handling of FICLONERANGE, FIDEDUPERANGE and FS_IOC_FIEMAP
  tty: serial: msm_serial: Fix lockup for sysrq and oops
  dt-bindings: clock: renesas: rcar-usb2-clock-sel: Fix typo in example
  media: usb: fix memory leak in af9005_identify_state
  regulator: ab8500: Remove AB8505 USB regulator
  media: flexcop-usb: ensure -EIO is returned on error condition
  Bluetooth: Fix memory leak in hci_connect_le_scan
  Bluetooth: delete a stray unlock
  Bluetooth: btusb: fix PM leak in error case of setup
  platform/x86: pmc_atom: Add Siemens CONNECT X300 to critclk_systems DMI table
  xfs: don't check for AG deadlock for realtime files in bunmapi
  scsi: qla2xxx: Drop superfluous INIT_WORK of del_work
  nfsd4: fix up replay_matches_cache()
  PM / devfreq: Check NULL governor in available_governors_show
  arm64: Revert support for execute-only user mappings
  ftrace: Avoid potential division by zero in function profiler
  exit: panic before exit_mm() on global init exit
  ALSA: firewire-motu: Correct a typo in the clock proc string
  ALSA: cs4236: fix error return comparison of an unsigned integer
  tracing: Have the histogram compare functions convert to u64 first
  tracing: Fix lock inversion in trace_event_enable_tgid_record()
  gpiolib: fix up emulated open drain outputs
  ata: ahci_brcm: Fix AHCI resources management
  ata: ahci_brcm: Allow optional reset controller to be used
  ata: libahci_platform: Export again ahci_platform_<en/dis>able_phys()
  compat_ioctl: block: handle BLKREPORTZONE/BLKRESETZONE
  compat_ioctl: block: handle Persistent Reservations
  dmaengine: Fix access to uninitialized dma_slave_caps
  locks: print unsigned ino in /proc/locks
  pstore/ram: Write new dumps to start of recycled zones
  memcg: account security cred as well to kmemcg
  mm/zsmalloc.c: fix the migrated zspage statistics.
  media: cec: avoid decrementing transmit_queue_sz if it is 0
  media: cec: CEC 2.0-only bcast messages were ignored
  media: pulse8-cec: fix lost cec_transmit_attempt_done() call
  MIPS: Avoid VDSO ABI breakage due to global register variable
  drm/sun4i: hdmi: Remove duplicate cleanup calls
  ALSA: ice1724: Fix sleep-in-atomic in Infrasonic Quartet support code
  drm: limit to INT_MAX in create_blob ioctl
  taskstats: fix data-race
  xfs: fix mount failure crash on invalid iclog memory access
  PM / hibernate: memory_bm_find_bit(): Tighten node optimisation
  xen/balloon: fix ballooned page accounting without hotplug enabled
  xen-blkback: prevent premature module unload
  IB/mlx4: Follow mirror sequence of device add during device removal
  s390/cpum_sf: Avoid SBD overflow condition in irq handler
  s390/cpum_sf: Adjust sampling interval to avoid hitting sample limits
  md: raid1: check rdev before reference in raid1_sync_request func
  net: make socket read/write_iter() honor IOCB_NOWAIT
  usb: gadget: fix wrong endpoint desc
  drm/nouveau: Move the declaration of struct nouveau_conn_atom up a bit
  scsi: libsas: stop discovering if oob mode is disconnected
  scsi: iscsi: qla4xxx: fix double free in probe
  scsi: qla2xxx: Don't call qlt_async_event twice
  scsi: lpfc: Fix memory leak on lpfc_bsg_write_ebuf_set func
  rxe: correctly calculate iCRC for unaligned payloads
  RDMA/cma: add missed unregister_pernet_subsys in init failure
  PM / devfreq: Don't fail devfreq_dev_release if not in list
  iio: adc: max9611: Fix too short conversion time delay
  nvme_fc: add module to ops template to allow module references
  UPSTREAM: selinux: sidtab reverse lookup hash table
  UPSTREAM: selinux: avoid atomic_t usage in sidtab
  UPSTREAM: selinux: check sidtab limit before adding a new entry
  UPSTREAM: selinux: fix context string corruption in convert_context()
  BACKPORT: selinux: overhaul sidtab to fix bug and improve performance
  UPSTREAM: selinux: refactor mls_context_to_sid() and make it stricter
  UPSTREAM: selinux: Cleanup printk logging in services
  UPSTREAM: scsi: ilog2: create truly constant version for sparse
  BACKPORT: selinux: use separate table for initial SID lookup
  UPSTREAM: selinux: make "selinux_policycap_names[]" const char *
  UPSTREAM: selinux: refactor sidtab conversion
  BACKPORT: selinux: wrap AVC state
  UPSTREAM: selinux: wrap selinuxfs state
  UPSTREAM: selinux: rename the {is,set}_enforcing() functions
  BACKPORT: selinux: wrap global selinux state
  UPSTREAM: selinux: Use kmem_cache for hashtab_node
  BACKPORT: perf_event: Add support for LSM and SELinux checks
  audio-kernel: dsp: TEMP Enable bluetooth
  ARM: dts: msm: Update lpi offset for SDM660
  ASoC: sdm660_cdc: Update mbhc reg struct for IN2P_CLAMP_STATE
  vidc: Temporary change to remove secure context bank
  UPSTREAM: binder: Add binder_proc logging to binderfs
  UPSTREAM: binder: Make transaction_log available in binderfs
  UPSTREAM: binder: Add stats, state and transactions files
  UPSTREAM: binder: add a mount option to show global stats
  UPSTREAM: binder: Validate the default binderfs device names.
  UPSTREAM: binder: Add default binder devices through binderfs when configured
  UPSTREAM: binder: fix CONFIG_ANDROID_BINDER_DEVICES
  UPSTREAM: android: binder: use kstrdup instead of open-coding it
  UPSTREAM: binderfs: remove separate device_initcall()
  BACKPORT: binderfs: respect limit on binder control creation
  UPSTREAM: binderfs: switch from d_add() to d_instantiate()
  UPSTREAM: binderfs: drop lock in binderfs_binder_ctl_create
  UPSTREAM: binderfs: kill_litter_super() before cleanup
  UPSTREAM: binderfs: rework binderfs_binder_device_create()
  UPSTREAM: binderfs: rework binderfs_fill_super()
  UPSTREAM: binderfs: prevent renaming the control dentry
  UPSTREAM: binderfs: remove outdated comment
  UPSTREAM: binderfs: fix error return code in binderfs_fill_super()
  UPSTREAM: binderfs: handle !CONFIG_IPC_NS builds
  BACKPORT: binderfs: reserve devices for initial mount
  UPSTREAM: binderfs: rename header to binderfs.h
  BACKPORT: binderfs: implement "max" mount option
  UPSTREAM: binderfs: make each binderfs mount a new instance
  UPSTREAM: binderfs: remove wrong kern_mount() call
  BACKPORT: binder: implement binderfs
  UPSTREAM: binder: remove BINDER_DEBUG_ENTRY()
  UPSTREAM: seq_file: Introduce DEFINE_SHOW_ATTRIBUTE() helper macro
  Revert "msm: camera_v2: CPP AXI reset at close".
  msm: camera: dtsi: arm camera gpio config for sdm660.
  UPSTREAM: exit: panic before exit_mm() on global init exit
  soc: qcom: Add support for SDA660 into socinfo driver
  defconfig: sdm : Add configs for SDM660
  ARM: dts: msm: Add dts for SDA660.
  ANDROID: cpufreq_interactive: remove unused variable
  ARM: dts: msm: add pmic support for SDM660
  defconfig: sdm660: Enable camera driver support
  audio-kernel: Pull in latest code changes from 4.0 branch
  msm: mdss: Remove validate layer logs
  regulator: core: TEMP change register string size
  defconfig : msm: Enable snd config on SDM660
  ARM: dts: msm: Snd node changes for sdm660
  Revert "ARM: dts: msm: Audio changes for SDM660"
  asoc: fix NULL pointer de-reference in asoc drivers.
  asoc: msm-pcm: Add mutex lock to protect prvt data
  msm: vidc_3x: ION Upgrade changes for video
  msm: vidc_3x: Add snapshot of video driver
  ARM: dts: msm: Enable icnss interrupts and configs
  dts: Add restrict-access to adsp_mem
  ARM: dts: msm: update DT entries for fastRPC on SDM660
  Merge multi rect traffic changes into kernel.lnx.4.14.r22-rel
  fbdev: msm: Add backlight class support for FB driver
  ARM: dts: msm: Audio changes for SDM660
  Adding perf defconfig for SDM660.
  ARM: SDM: bringup changes for SDM660
  ARM: dts: msm: Enable global pagetable for gpu on SDM660
  power: qpnp-smb2: Use chg_param.smb_version in place of smb_version.
  ARM: dts: msm: SMP2P changes for sdm660
  soc: qcom: Force sequential boot for MSA modem
  Workaround: These are work around which need to de addressed
  soc: qcom: add snapshot of MBA based modem PIL
  defconfig : Enable QCOM_COMMAND_DB and QCOM_SECURE_BUFFER
  ARM: dts: msm: Add regulator property for SMMU nodes
  msm: kgsl: Add CX peak freq for Adreno512
  defconfig : Enable KGSL
  ARM: dts: msm: Enable WLED backlight
  defconfig : msm: Enable backlight configs
  msm: mdss: fix qseed3 op_mode register programming
  msm: mdss: Skip setting up Qseed3 for non-vig pipes
  msm: mdss: Change IOMMU map sequence during splash cleanup
  msm: mdss: share MDP smmu device mappings with other mdss clients
  msm: mdss: Add support for secure camera
  msm: mdss: Enable secure display and camera feature for msmcobalt
  Revert "power: qpnp-smb2: Use chg_param.smb_version in place of smb_version"
  msm: mdss: Initialize mdss v3 pp driver ops for msmfalcon
  Revert "soc: qcom: Remove legacy scm_call API support"
  msm: mdss: Add mdss capabilities for msmfalcon
  ARM: dts: msm: Add dt entry regulator-hw-type
  msm/sde/rotator: Add sdm660 MDP rev for rotator
  dtsi: dtsi changes
  defconfig: msm: Add sdm660_defconfig
  ARM: SDM: bringup changes for SDM660
  clk: qcom: Add snapshot of sdm660 clocks
  regulator: add snapshot of cpr3-regulator and dependent drivers
  mdss: 660.14 wA
  backlight: qcom-spmi-wled: Add compatible string for SDM660
  fbdev: msm: Do SMMU attach before buffer map
  msm: mdss: Separate PP programming to advanced and deferred modes
  msm: mdss: Add PA dither support for msmcobalt
  qcacld-3.0: Possible OOB write in rrm_process_radio_measurement_request
  Initial target definition for sdm660 on 4.14
  autoconf: new config files for sdm660
  qcacld-3.0: Fix buffer overflow in HTT MSG handling
  qcacld-3.0: set same IPA bandwidth for both cons and prod pipes
  iommu: arm-smmu: Fix dev_err formatting errors
  qcacmn: Fix incorrect ref counter of vdev
  qcacld-3.0: Dont create the session from add virt interface
  qcacmn: Fix ref leak of vdev if scan is rejected

Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2020-06-07 09:59:18 +05:30
UtsavBalar1231
509057ffca Merge tag 'LA.UM.8.2.1.r1-04900-sdm660.0' into LE.UM.4.2.1.r1.3
"LA.UM.8.2.1.r1-04900-sdm660.0"

* tag 'LA.UM.8.2.1.r1-04900-sdm660.0' of https://source.codeaurora.org/quic/la/kernel/msm-4.14:
  Fix for display suspend resume crash
  regulator: cpr3-regulator: Add support for sdm660
  Revert "ARM: dts: msm: fix NFC device probe issue for sdm660"
  ARM: dts: msm: Update the PM660 GPIO definitions
  clk: qcom: Restore dsi pll clk names for sdm660
  smcinvoke : Add locking to shared variables
  ARM: decompressor: avoid speculative prefetch from protected regions
  msm: sps: Fix the SPS_DBG macro definitions
  power: qpnp-smb2: Force power-role to UFP by default
  input: touchscreen: add raydium touch driver
  ARM: dts: msm: enable xbl boot loading for IPA FW on sdxprairie
  ARM: dts: msm: remove qcom_seecom node for qcs404
  defconfig: sa8155: Enable preempt and rcu debugging configs
  mhi: cntrl: qcom: expand debug modes for new device bringup
  msm: pcie: add sa8195 pci device id support
  msm: npu: Add support to get firmware capabilities
  defconfig: sa2150p: remove cnss driver from build
  ARM: dts: msm: Add qcom_gadget node for SA515M
  ARM: dts: ipc: Change sound card name
  crypto: msm: make qcrypto and qcedev independent of DEBUG_FS
  msm: npu: Allow context switch after processing IPC message
  ARM: dts: msm: remove DP pinctrl from sa6155, sa8155 and sa8195p
  msm: mhi_dev: Fix maximum number of HW channels
  msm: mhi_dev: Remove MHI hardware channel to IPA GSI mapping
  ARM: dts: msm: remove 2nd DP and eDP from sa8195p
  ARM: DTS: msm: Update DP PLL string for SDM660
  clk: qcom: mdss: DP PLL changes for SDM660
  net: stmmac: handle dma fatal irq for IPA channels
  power: qpnp-fg-gen3: Silence an instance of -Wsizeof-array-div in clear_cycle_counter
  defconfig: qti-quin-gvm: Enable virtualized FastRPC on GVM
  driver: boot_marker: enable bootloader log mount
  defconfig: Minimal Kernel config for qcs610
  USB: configfs: Clear deactivation flag in configfs_composite_unbind()
  msm: vidc: Check image encode capabilities
  defconfig: atoll: Enable dm-snapshot
  msm: camera: isp: variable should be accessed only if match is found
  defconfig: enable rmnet_data driver for wearable target
  ARM: dts: msm: config primary tdm on auto platform
  mmc: sdhci-msm: Enable EMMC_BOOT_SELECT bit
  usb: dwc3-msm: Avoid access of gsi_reg for non-GSI targets
  defconfig: sa515m: Build CNSS2 driver as loadable module
  msm_bus: fix compilation when CONFIG_DEBUG_FS is disabled
  ARM: dts: msm: Add model specific configurations for SA6155 VMs
  cnss2: Add DOMAIN_ATTR_GEOMETRY attribute support
  msm:ipa:mhi: send qmi endp_desc notification to Q6
  msm: camera: isp: Fix IRQ delay handling logic
  msm: camera: isp: Change state of all CID resource to RESERVE on deinit
  net: stmmac: Enable CRC clipping bit
  drivers: thermal: Avoid multiple TSENS controller re-init simultaneously
  mhi: netdev: Open mhi channels based on state notifications from host
  clk: fix compilation when CONFIG_DEBUG_FS is disabled
  ARM: dts: msm: Add property iommu-geometry for CNSS
  Revert "binder: implement binderfs"
  msm: vidc_3x: correct ion flags for CP_CAMERA_ENCODE context bank
  ARM: dts: msm: Fix mistaken description for pcie1&3 on sa8195p
  defconfig: msm: veth: Add Veth configs
  mhi: fix compilation when CONFIG_DEBUG_FS is disabled
  debugfs: Fix !DEBUG_FS debugfs_create_automount
  ufs: fix compilation when CONFIG_DEBUG_FS is disabled
  tsens: fix compilation when CONFIG_DEBUG_FS is disabled
  gsi: fix compilation when CONFIG_DEBUG_FS is disabled
  msm: ipa: Fix compilation errors when DEBUG_FS is disabled
  hdcp_qseecom: Maintain repeater_flag appropriately
  ARM: dts: msm: support to enable CRC using DTS
  ARM: dts: msm: Add always-on flag for L12A on sa8195
  diag: dci: Synchronize dci mempool buffers alloc and free
  msm: vidc_3x: Add new video driver to support CMA buffers
  dt: sm8155: Change copyright year in DT file
  msm: vidc_3x: Add changes to read video CMA configuration information
  mm/memblock.c: fix bug in early_dyn_memhotplug
  ARM: dts: qcom: Include PM660 dtsi for SDA429
  ARM: msm: dts: Enable sdp check timer for sdm429
  char: virtio_fastrpc: Fix compile warning
  phy-msm-usb: Perform sdp_check for SDP charger as well
  msm: vidc_3x: populate sid list for each context bank
  qrtr: usb_dev: Fix kthread usage
  iommu: iommu-debug: Fix the return string
  ARM: dts: msm: Enable PDC support for VM targets
  msm: ipa: update check flags to handle CONFIG_DEBUG_FS
  arm64: defconfig: Add IPA configs
  ARM: dts: msm: Add IPA device configuration for SA8155
  ARM: dts: msm: Fix cx_cdev label size for MDM9607
  clk: qcom: mdss: add dsi phy 12nm clock
  ARM: dts: msm: Add default thermal zone rules for MDM9607
  ARM: dts: msm: Add regulator cooling device for MDM9607
  usb: dwc3: gadget: Block GSI DB update after END transfer on all EPs
  ARM: dts: msm: Add qcom_gadget node for sdxprairie
  msm: npu: Continue npu_probe() when !DEBUG_FS
  qcom: qpnp-fg-gen4: Continue fg_gen4_probe() when !DEBUG_FS
  diag: Check for valid PCIe device
  init: Remove modem mounting from kernel
  ARM: dts: msm: Add eMMC, SD card support on sdm429w
  msm: adsprpc: Put upper limit on IOMMU mapping size
  ARM: dts: msm: Add QMI cooling devices for MDM9607
  soc: qcom: Increase bootmarker read buffer
  diag: Initialize local variables
  mhi: core: Read transfer length from an event properly
  msm: vidc_3x: Add CMA support for video hardware
  ARM: dts: msm: Enable RTB for sdmshrike
  soc: qcom: Remove redundant bootstats
  defconfig: Add required configs for USB
  kernel: sysctl: make drop_caches write-only
  ARM: dts: msm: enable POMS on TD4330 cmd panel for trinket
  ARM: dts: msm: enable POMS on TD4330 panel for trinket
  ARM: dts: msm: Add secure display ion heap for GVMs
  ARM: dts: msm: Add BLSP DTSI nodes on sdm429
  ARM: dts: msm: Add DTS to support eMMC
  defconfig: msm: Add defconfig files for SA2150P-NAND
  ARM: dts: msm: Add ATEML touch support for atoll target
  input: touchscreen: Add support for kernel command line parsing
  ARM: dts: msm: Enable constant fps feature for atoll CPhy panel
  disp: msm: dsi: refine the logic for mode filling and calculation
  disp: msm: dsi: add panel mode restriction for DFPS and RFI
  drm: msm: dsi-staging: CPhy constant fps porch calculation
  defconfig: sdm429w: Add support for DEBUGCC for SDM429W
  msm: mhi_dev: Avoid re-alloc of netdev interface
  defconfig: msm: Thermal Enabled on mdm9607 target
  msm: ais: Fix powerup sequence in cam driver
  defconfig: sdm429-bg: Enable CPR, MEM-ACC, Haptics configs
  msm: v4l2loopback: to create V4L2 loopback devices
  msm:ipa:change IPA client mapping for mhi protocol
  sm8150: dt: sm8150-slpi-pinctrl: Typo mistake in gpio
  binder: implement binderfs
  msm: mhi_dev: Add proper check before accessing variable
  Revert "ARM: dts: msm: Add cmd mode panel support for SDM660 MTP"
  msm: veth_ipa: Introduce front end network driver
  net: stmmac: Ethtool half duplex not supported
  ARM: dts: msm: Add the CPR regulator node for SDM429w
  defconfig: sdmsteppe: Enable USB_VIDEO_CLASS
  defconfig: sdm429: Add MPROC defconfig for SDM429W
  ARM: dts: msm: add new HAB physical channels for DATA_NETWORK and HSI2S
  ARM: dts: qcom: Add MPROC device nodes for sdm429w
  PM / hibernate: Make passing hibernate offsets more friendly
  usb: dwc3-msm: Keep wakeup IRQs disabled for automotive platforms
  power: smb1398: Update the max-ilim current settings
  irqchip: qcom: pdc: Add a kernel config for pdc save/restore feature
  defconfig: msm: Enable PDC_VIRT on Quin GVM platform
  irqchip: qcom: pdc: Add support for pdc-virt
  clk: qcom: gcc-sdm429w: Update plls for SDM429W
  net: stmmac: Fixed ethool speed issue
  ARM: dts: msm: Add pcie1~3 support for sa8195 virtual machine
  clk: qcom: debugcc-sdm429w: Update debugcc Kconfig
  defconfig: sdm429: Enable BLSP, SLIMBUS driver defconfig
  ARM: dts: msm: Add SPS node for sdm429
  USB: phy: msm: Check for PHY reset handle also
  ARM: dts: msm: Add USB device nodes for sdm429
  clk: qcom: Add pcie1~3 virtio clocks for sa8195p
  ARM: dts: msm: Disable shared display on DP display sa8195
  diag: Save the correct task pointer while registering dci client
  ARM: dts: msm: Enable constant fps feature
  drm/msm/dsi-staging: Fix porch calculation issue for constant fps
  soc: qcom: hab: add some physical channels in HAB driver
  net: stmmac: Free IPA queue memory on netdev close
  power: smb1398: Fix SOC based SMB enable condition
  ARM: dts: msm: EMAC phy hw reset delay timer
  driver: input: sensors: Increase the smi130 accel buffer samples size
  defconfig: sm8150: Enable dm-snapshot
  defconfig: sdmsteppe: Enable dm-snapshot
  net: stmmac: Set IOC for every TSO last desc
  mhi: core: Fix out of bound channel id handling
  mhi: core: improve bandwidth switch events processing
  spi: spi-qcom-geni: Add error interrupt handling in spi driver
  ARM: dts: msm: Tasha snd node changes for sdm660
  ARM: dts: msm: Disable shared display on DP display sa8155
  ARM: dts: msm: Disable shared display on DP display sa6155
  msm: mdss: add support to handle LP_RX_TO/BTA_TO errors for DSI 12nm PHY
  msm: mdss: perform DSI PHY s/w reset for 12nm PHY during unblank
  msm: mdss: update the MDSS DSI ULPS exit sequence
  msm: mdss: add support to program of HSTX drivers for DSI 12nm PHY
  msm: mdss: update DSI ULPS entry/exit sequence
  qcom: spmi-wled: Wait for OVPs before disable module
  ion: msm: Restrict VMID_CP_CAMERA_ENCODE to read only
  msm: vidc_3x: correct ion flags for CP_CAMERA_ENCODE context bank
  msm: vidc_3x: Add new video driver to support CMA buffers
  msm: vidc_3x: Add changes to read video CMA configuration information
  msm: vidc_3x: populate sid list for each context bank
  msm: vidc_3x: Add CMA support for video hardware
  drivers: net: can:Threshold update for time offset
  smcinvoke: Add suspend resume support
  SMCInvoke: Process requests for active clients
  msm: mdss: add support for DSI 12nm PHY in DSI driver
  msm: vidc: Fix DCVS enablement
  vidc_3x: Fix qbuf error in gralloc buffers encoding
  ARM: dts: msm: EMAC phy hw reset delay timer
  ARM: dts: msm: Disable minidump-id for Modem on SDM660
  diag: Add protection while accessing diag client map
  Revert "drivers: usb: gadget: Change gbam setup usage in rmnet function"
  ARM: dts: msm: EMAC phy hw reset delay timer
  ARM: dts: msm: EMAC phy hw reset delay timer
  mhi: core: move certain logs to controller log buffer
  mhi: cntrl: qcom: move certain logs to controller log buffer
  mhi: cntrl: qcom: reduce timesync and bootlogger log buffer size
  mhi: cntrl: qcom: add support for controller ipc logs
  cnss2: add support for controller IPC logs
  mhi: core: add log buffer for controller bootup and shutdown
  msm: ipa2: Add change to fix ipa padding
  ARM: dts: msm: Update ADC_TM compatible field for PM660
  bindings: thermal: Add compatible field for PMIC4 ADC_TM
  thermal: adc_tm: Update support for PMIC4 ADC_TM
  ARM: dts: msm: Removing quiet-therm-step node
  vidc_3x: Query Entropy property only for H264 format
  defconfig: arm64: msm: Enable USB RMNET & RNDIS using IPA over BAM2BAM
  usb: gadget: f_qc_rndis: Add RNDIS support using IPA over BAM2BAM
  fbdev: msm: fix merge errors in DP
  Revert "defconfig: arm64: msm: Enable USB RMNET & RNDIS using IPA over BAM2BAM"
  ARM: dts: msm: Add rpm-smd irq number for SDM660
  ARM: dts: msm: Update msm_ext_disp string
  defconfig: arm64: msm: Enable USB RMNET & RNDIS using IPA over BAM2BAM
  msm: ipa: Add low-level IPA client support
  Fixing compilation failures
  uapi/media: Fix buffer size issue for NV12_UBWC.
  soc: qcom: boot_stats: Add display boot KPI
  pfk: Fixed ICE slot number for bare metal
  clk: qcom: parents need enable during set rate for SDM660
  HID: core: add usage_page_preceding flag for hid_concatenate_usage_page().
  vidc_3x: Fix HFR recording issue.
  fbdev: msm: Use dynamic allocation for SID variable.
  Revert "fbdev: msm: disable sec display".
  ARM: dts: msm: modified interrupt interrupt type for smmu
  arm64: defconfig: Add IPA realted configs
  msm: ipa: Add Kconfig changes of IPA2 driver
  ARM: dts: msm: Add compatible rmnet version for ipa2
  msm: ipa2: Add changes compatible to kernel-4.14
  msm: ipa: Add support of IPA2 driver
  msm: Disable CSID virtualization and fix SID switching for SDM660
  defconfig: msm: Enable coresight replicator, qpdi for SDM660
  coresight: add qpdi driver support in upstream implementation
  ARM: dts: msm: coresight support for SDM660
  coresight: replicator: Add CoreSight Replicator driver
  msm: vidc: Re-calculate buffer requirement
  fbdev: msm: disable sec display
  ARM: dts: msm: fix NFC device probe issue for sdm660
  msm: fbdev: dp: Add dp intf to codec ops
  ARM: dts: msm: Add default thermal zone rules for SDM660
  media: v4l2-ctrls: Add missing entry in header_mode
  msm: vidc: Fix v4l2 format warnings
  ARM: dts: msm: Update WLED configuration for sdm660
  fixing compilation issue
  msm: vidc_3x: Add partial cache operations support
  Revert "msm: vidc_3x: Add partial cache operations support"
  defconfig: msm: Disable CONFIG_BUILD_ARM64_APPENDED_DTB_IMAGE flag
  ARM: dts: msm: Add LPM residency for sdm660
  fbdev: msm: Remove CPU sync in dma buf unmap path
  ARM: dts: msm: Add panel changes for SDM660 QRD
  defconfig: msm: Enable DP Panel config
  msm: fbdev: dp: enable audio support over DP
  ARM: dts: msm: Update supply name for vdd cx-mx wlan rail
  mdss: fbdev: Fix fence timeout error check
  ARM: dts: msm: Add energy costs for SDM660
  ARM: dts: msm: Specify WLED configuration for sdm660 MTP
  ARM: dts: msm: Enable subsystem watchdog
  ARM: dts: msm: Enable WDSP SVA for SDM660
  ARM: dts: msm: Add TSENS in thermal_zone for SDM660
  ARM: dts: msm: Remove thermal sensor_info nodes
  defconfig: msm: Enable Thermal configs for SDM660
  ARM: dts: msm: add bcl_sensors thermal zones
  ARM: dts: msm: enable LMH DCVS driver for sdm660
  drivers: thermal: lmh_dcvs: Add support to enable legacy hardware feature
  ARM: dts: msm: add gpio_key VOL_UP button on SDM660
  ARM: dts: msm: Fix slave id for pm660l_gpio
  soc: qcom: dcc: DCC driver for SDM660
  msm: vidc_3x: Assign and pass hal buffer type to smem
  msm: vidc_3x: Add partial cache operations support
  Revert "msm: vidc_3x: disable smem_cache_operations for encoder"
  defconfig: msm: Enable DP Panel config
  msm: bus: removing warning
  clk: qcom: mdss: DSI and DP PLL changes for SDM660
  clk : qcom : Update mdss byte and pxl clk names
  fbdev: changes to enable recovery ui
  fbdev: msm: Add snapshot of mdss driver
  msm: fbdev: dp: update fbdev dp driver
  msm: fbdev: Add snapshot of DP driver
  ARM: DTS: msm: Enable 14nm DP PLL clk
  Revert "msm: mdss: dsi: Add support dual roi partial update"
  Revert "msm: mdss: add multiple partial update support"
  Revert "msm: mdss: add additional LM checks for dest scalar validation"
  Revert "fbdev: changes to enable recovery ui"
  Revert "fbdev: changes to enable recovery ui"
  usb: gadget: uvc: Update frame size as per frame type
  clk: remove workaround changes for SDM660
  ARM: dts: msm: Add dtbo support for sdm660 & sda660
  defconfig: sdm : Add configs for SDM660
  ARM: dts: msm: Add audio support for SDM660
  Revert "regulator: core: TEMP change register string size"
  ARM: dts: msm: Add cmd mode panel support for SDM660 MTP
  msm: vidc_3x: disable smem_cache_operations for encoder
  defconfig: msm: Enable CPR and FG related configs for SDM660
  drivers: irqchip: qcom: Add mpm pin data for sdm660
  defconfig: sdm : Add configs for SDM660
  ARM: dts: msm: Add MPM interrupt controller for sdm660..
  ARM: dts: msm: add support for frequency scaling for SDM660.
  Temporary commit : resolve build error.
  thermal: adc_tm: adc_init for sdm660
  ARM: dts: msm: add pmic support for SDM660
  ARM: dts: msm: Update GPU bw table for SDM660
  fbdev: changes to enable recovery ui
  iio: adc: Add DRAX_TEMP channel support
  ARM: dts: msm: Add device tree for SDM660
  clk: qcom: Add snapshot of sdm660 clocks
  msm: vidc: remove additional checks in response_handler.
  vidc: Remove firmware_cb context bank.
  defconfig: vidc: Enable video drivers for sdm660.
  msm: vidc_3x: ION Upgrade changes for video.
  Revert "msm: vidc_3x: Add snapshot of video driver"
  Revert "msm: vidc_3x: ION Upgrade changes for video"
  Revert "vidc: Remove firmware_cb context bank"
  ARM: dts: msm: rename codec name
  mm-camera_v2: Check proper VFE h/w versions
  msm: kgsl: Change default pagetable creation sequence
  msm: kgsl: Remove workaround for GPU aperture programming
  Revert "ARM: dts: msm: Enable global pagetable for gpu on SDM660"
  msm: sde: Fixes to enable rotator for SDM660
  vidc: Remove firmware_cb context bank
  defconfig: msm: Enable PMIC related configs for SDM660
  defconfig: sdm : Update perf configs for SDM660
  msm: mdss: add additional LM checks for dest scalar validation
  msm: mdss: add multiple partial update support
  msm: mdss: dsi: Add support dual roi partial update
  Revert "vidc: Temporary change to remove secure context bank"
  Revert "BACKPORT: perf_event: Add support for LSM and SELinux checks"
  Linux 4.14.163
  perf/x86/intel/bts: Fix the use of page_private()
  xen/blkback: Avoid unmapping unmapped grant pages
  s390/smp: fix physical to logical CPU map for SMT
  net: add annotations on hh->hh_len lockless accesses
  arm64: dts: meson: odroid-c2: Disable usb_otg bus to avoid power failed warning
  ath9k_htc: Discard undersized packets
  ath9k_htc: Modify byte order for an error message
  rxrpc: Fix possible NULL pointer access in ICMP handling
  selftests: rtnetlink: add addresses with fixed life time
  powerpc/pseries/hvconsole: Fix stack overread via udbg
  drm/mst: Fix MST sideband up-reply failure handling
  scsi: qedf: Do not retry ELS request if qedf_alloc_cmd fails
  fix compat handling of FICLONERANGE, FIDEDUPERANGE and FS_IOC_FIEMAP
  tty: serial: msm_serial: Fix lockup for sysrq and oops
  dt-bindings: clock: renesas: rcar-usb2-clock-sel: Fix typo in example
  media: usb: fix memory leak in af9005_identify_state
  regulator: ab8500: Remove AB8505 USB regulator
  media: flexcop-usb: ensure -EIO is returned on error condition
  Bluetooth: Fix memory leak in hci_connect_le_scan
  Bluetooth: delete a stray unlock
  Bluetooth: btusb: fix PM leak in error case of setup
  platform/x86: pmc_atom: Add Siemens CONNECT X300 to critclk_systems DMI table
  xfs: don't check for AG deadlock for realtime files in bunmapi
  scsi: qla2xxx: Drop superfluous INIT_WORK of del_work
  nfsd4: fix up replay_matches_cache()
  PM / devfreq: Check NULL governor in available_governors_show
  arm64: Revert support for execute-only user mappings
  ftrace: Avoid potential division by zero in function profiler
  exit: panic before exit_mm() on global init exit
  ALSA: firewire-motu: Correct a typo in the clock proc string
  ALSA: cs4236: fix error return comparison of an unsigned integer
  tracing: Have the histogram compare functions convert to u64 first
  tracing: Fix lock inversion in trace_event_enable_tgid_record()
  gpiolib: fix up emulated open drain outputs
  ata: ahci_brcm: Fix AHCI resources management
  ata: ahci_brcm: Allow optional reset controller to be used
  ata: libahci_platform: Export again ahci_platform_<en/dis>able_phys()
  compat_ioctl: block: handle BLKREPORTZONE/BLKRESETZONE
  compat_ioctl: block: handle Persistent Reservations
  dmaengine: Fix access to uninitialized dma_slave_caps
  locks: print unsigned ino in /proc/locks
  pstore/ram: Write new dumps to start of recycled zones
  memcg: account security cred as well to kmemcg
  mm/zsmalloc.c: fix the migrated zspage statistics.
  media: cec: avoid decrementing transmit_queue_sz if it is 0
  media: cec: CEC 2.0-only bcast messages were ignored
  media: pulse8-cec: fix lost cec_transmit_attempt_done() call
  MIPS: Avoid VDSO ABI breakage due to global register variable
  drm/sun4i: hdmi: Remove duplicate cleanup calls
  ALSA: ice1724: Fix sleep-in-atomic in Infrasonic Quartet support code
  drm: limit to INT_MAX in create_blob ioctl
  taskstats: fix data-race
  xfs: fix mount failure crash on invalid iclog memory access
  PM / hibernate: memory_bm_find_bit(): Tighten node optimisation
  xen/balloon: fix ballooned page accounting without hotplug enabled
  xen-blkback: prevent premature module unload
  IB/mlx4: Follow mirror sequence of device add during device removal
  s390/cpum_sf: Avoid SBD overflow condition in irq handler
  s390/cpum_sf: Adjust sampling interval to avoid hitting sample limits
  md: raid1: check rdev before reference in raid1_sync_request func
  net: make socket read/write_iter() honor IOCB_NOWAIT
  usb: gadget: fix wrong endpoint desc
  drm/nouveau: Move the declaration of struct nouveau_conn_atom up a bit
  scsi: libsas: stop discovering if oob mode is disconnected
  scsi: iscsi: qla4xxx: fix double free in probe
  scsi: qla2xxx: Don't call qlt_async_event twice
  scsi: lpfc: Fix memory leak on lpfc_bsg_write_ebuf_set func
  rxe: correctly calculate iCRC for unaligned payloads
  RDMA/cma: add missed unregister_pernet_subsys in init failure
  PM / devfreq: Don't fail devfreq_dev_release if not in list
  iio: adc: max9611: Fix too short conversion time delay
  nvme_fc: add module to ops template to allow module references
  UPSTREAM: selinux: sidtab reverse lookup hash table
  UPSTREAM: selinux: avoid atomic_t usage in sidtab
  UPSTREAM: selinux: check sidtab limit before adding a new entry
  UPSTREAM: selinux: fix context string corruption in convert_context()
  BACKPORT: selinux: overhaul sidtab to fix bug and improve performance
  UPSTREAM: selinux: refactor mls_context_to_sid() and make it stricter
  UPSTREAM: selinux: Cleanup printk logging in services
  UPSTREAM: scsi: ilog2: create truly constant version for sparse
  BACKPORT: selinux: use separate table for initial SID lookup
  UPSTREAM: selinux: make "selinux_policycap_names[]" const char *
  UPSTREAM: selinux: refactor sidtab conversion
  BACKPORT: selinux: wrap AVC state
  UPSTREAM: selinux: wrap selinuxfs state
  UPSTREAM: selinux: rename the {is,set}_enforcing() functions
  BACKPORT: selinux: wrap global selinux state
  UPSTREAM: selinux: Use kmem_cache for hashtab_node
  BACKPORT: perf_event: Add support for LSM and SELinux checks
  ARM: dts: msm: Update lpi offset for SDM660
  vidc: Temporary change to remove secure context bank
  UPSTREAM: binder: Add binder_proc logging to binderfs
  UPSTREAM: binder: Make transaction_log available in binderfs
  UPSTREAM: binder: Add stats, state and transactions files
  UPSTREAM: binder: add a mount option to show global stats
  UPSTREAM: binder: Validate the default binderfs device names.
  UPSTREAM: binder: Add default binder devices through binderfs when configured
  UPSTREAM: binder: fix CONFIG_ANDROID_BINDER_DEVICES
  UPSTREAM: android: binder: use kstrdup instead of open-coding it
  UPSTREAM: binderfs: remove separate device_initcall()
  BACKPORT: binderfs: respect limit on binder control creation
  UPSTREAM: binderfs: switch from d_add() to d_instantiate()
  UPSTREAM: binderfs: drop lock in binderfs_binder_ctl_create
  UPSTREAM: binderfs: kill_litter_super() before cleanup
  UPSTREAM: binderfs: rework binderfs_binder_device_create()
  UPSTREAM: binderfs: rework binderfs_fill_super()
  UPSTREAM: binderfs: prevent renaming the control dentry
  UPSTREAM: binderfs: remove outdated comment
  UPSTREAM: binderfs: fix error return code in binderfs_fill_super()
  UPSTREAM: binderfs: handle !CONFIG_IPC_NS builds
  BACKPORT: binderfs: reserve devices for initial mount
  UPSTREAM: binderfs: rename header to binderfs.h
  BACKPORT: binderfs: implement "max" mount option
  UPSTREAM: binderfs: make each binderfs mount a new instance
  UPSTREAM: binderfs: remove wrong kern_mount() call
  BACKPORT: binder: implement binderfs
  UPSTREAM: binder: remove BINDER_DEBUG_ENTRY()
  UPSTREAM: seq_file: Introduce DEFINE_SHOW_ATTRIBUTE() helper macro
  Revert "msm: camera_v2: CPP AXI reset at close".
  msm: camera: dtsi: arm camera gpio config for sdm660.
  UPSTREAM: exit: panic before exit_mm() on global init exit
  soc: qcom: Add support for SDA660 into socinfo driver
  defconfig: sdm : Add configs for SDM660
  ARM: dts: msm: Add dts for SDA660.
  ANDROID: cpufreq_interactive: remove unused variable
  ARM: dts: msm: add pmic support for SDM660
  defconfig: sdm660: Enable camera driver support
  msm: mdss: Remove validate layer logs
  regulator: core: TEMP change register string size
  defconfig : msm: Enable snd config on SDM660
  ARM: dts: msm: Snd node changes for sdm660
  Revert "ARM: dts: msm: Audio changes for SDM660"
  msm: vidc_3x: ION Upgrade changes for video
  msm: vidc_3x: Add snapshot of video driver
  ARM: dts: msm: Enable icnss interrupts and configs
  dts: Add restrict-access to adsp_mem
  ARM: dts: msm: update DT entries for fastRPC on SDM660
  Merge multi rect traffic changes into kernel.lnx.4.14.r22-rel
  fbdev: msm: Add backlight class support for FB driver
  ARM: dts: msm: Audio changes for SDM660
  Adding perf defconfig for SDM660.
  ARM: SDM: bringup changes for SDM660
  ARM: dts: msm: Enable global pagetable for gpu on SDM660
  power: qpnp-smb2: Use chg_param.smb_version in place of smb_version.
  ARM: dts: msm: SMP2P changes for sdm660
  soc: qcom: Force sequential boot for MSA modem
  Workaround: These are work around which need to de addressed
  soc: qcom: add snapshot of MBA based modem PIL
  defconfig : Enable QCOM_COMMAND_DB and QCOM_SECURE_BUFFER
  ARM: dts: msm: Add regulator property for SMMU nodes
  msm: kgsl: Add CX peak freq for Adreno512
  defconfig : Enable KGSL
  ARM: dts: msm: Enable WLED backlight
  defconfig : msm: Enable backlight configs
  msm: mdss: fix qseed3 op_mode register programming
  msm: mdss: Skip setting up Qseed3 for non-vig pipes
  msm: mdss: Change IOMMU map sequence during splash cleanup
  msm: mdss: share MDP smmu device mappings with other mdss clients
  msm: mdss: Add support for secure camera
  msm: mdss: Enable secure display and camera feature for msmcobalt
  Revert "power: qpnp-smb2: Use chg_param.smb_version in place of smb_version"
  msm: mdss: Initialize mdss v3 pp driver ops for msmfalcon
  Revert "soc: qcom: Remove legacy scm_call API support"
  msm: mdss: Add mdss capabilities for msmfalcon
  ARM: dts: msm: Add dt entry regulator-hw-type
  msm/sde/rotator: Add sdm660 MDP rev for rotator
  dtsi: dtsi changes
  defconfig: msm: Add sdm660_defconfig
  ARM: SDM: bringup changes for SDM660
  clk: qcom: Add snapshot of sdm660 clocks
  regulator: add snapshot of cpr3-regulator and dependent drivers
  mdss: 660.14 wA
  backlight: qcom-spmi-wled: Add compatible string for SDM660
  fbdev: msm: Do SMMU attach before buffer map
  msm: mdss: Separate PP programming to advanced and deferred modes
  msm: mdss: Add PA dither support for msmcobalt
  iommu: arm-smmu: Fix dev_err formatting errors

Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2020-06-07 09:48:24 +05:30
Jesse Chan
8207d076ed HACK: sysctl: disallow override of writeout policy
"Android writeout policy was never touched since 2009.
In the meantime, most of Android devices are equipped
with over 4GB DRAM and very fast flash storages like
UFS, which becomes more like desktop or servers in 2009.
So, it'd be worth to go back to use the default kernel
configs."
  - https://android-review.googlesource.com/c/platform/system/core/+/938362

Proper way is to modify init.rc but we want to avoid
touching system.

Signed-off-by: Jesse Chan <jc@linux.com>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2020-05-26 12:13:58 +05:30
Daniel Micay
05e67d4276 Add toggle for disabling newly added USB devices
Based on the public grsecurity patches.

Change-Id: I2cbea91b351cda7d098f4e1aa73dff1acbd23cce
Signed-off-by: Daniel Micay <danielmicay@gmail.com>
Signed-off-by: UtsavisGreat <utsavbalar1231@gmail.com>
2020-05-25 20:25:56 +05:30
Johannes Weiner
a4e87c9f41 kernel: sysctl: make drop_caches write-only
[ Upstream commit 204cb79ad42f015312a5bbd7012d09c93d9b46fb ]

Currently, the drop_caches proc file and sysctl read back the last value
written, suggesting this is somehow a stateful setting instead of a
one-time command.  Make it write-only, like e.g.  compact_memory.

While mitigating a VM problem at scale in our fleet, there was confusion
about whether writing to this file will permanently switch the kernel into
a non-caching mode.  This influences the decision making in a tense
situation, where tens of people are trying to fix tens of thousands of
affected machines: Do we need a rollback strategy?  What are the
performance implications of operating in a non-caching state for several
days?  It also caused confusion when the kernel team said we may need to
write the file several times to make sure it's effective ("But it already
reads back 3?").

Change-Id: I4cf0e5d417b407ab5c76d9bfe2cc88a606ccab0d
Link: http://lkml.kernel.org/r/20191031221602.9375-1-hannes@cmpxchg.org
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Chris Down <chris@chrisdown.name>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: David Hildenbrand <david@redhat.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Acked-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Git-repo: https://android.googlesource.com/kernel/common
Git-commit: 5dc89b665d
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
2020-05-11 13:26:00 +05:30
Yadu MG
e339a2357a trace/irq: sched: irq trace events should be used with !PROVE_LOCKING
When enabling PROVE_LOCKING, kernel build fails due to undefined symbol
error for the irqsoff_tracing_threshold_ns which is used in sysctl
interface,sysctl_irqsoff_tracing_threshold_ns. As per PREEMPTIRQ_EVENTS
Kconfig help, for tracing irq disable/enable events CONFIG_PROVE_LOCKING
should be disabled. This commit fixes by making the proc entry under
the PROVE_LOCKING config.

Change-Id: Ie28afd31013a9c393f32ad328cedfc0517867fc4
Signed-off-by: Yadu MG <ymg@codeaurora.org>
2019-11-08 11:06:13 +05:30
Pavankumar Kondeti
d3f96d211b sched: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: If1ee58a8ed59e4a9ee25dfa6fa2a1c1654e00e6d
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2019-10-22 11:24:00 +05:30
Pavankumar Kondeti
04d07a9b6e sched/fair: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: I9216f9316e2bad067c10762de8d67912826b7bc7
Signed-off-by: Maria Yu <aiquny@codeaurora.org>
Co-developed-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
[pkondeti@codeaurora.org: skip_cpu argument is implemented for fbt]
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2019-10-22 11:23:51 +05:30
Blagovest Kolenichev
80e9b1ab39 Merge android-4.14.126 (cfee25d) into msm-4.14
* refs/heads/tmp-cfee25d:
  Linux 4.14.126
  ALSA: seq: Cover unsubscribe_port() in list_mutex
  drm: don't block fb changes for async plane updates
  Revert "drm/nouveau: add kconfig option to turn off nouveau legacy contexts. (v3)"
  Revert "Bluetooth: Align minimum encryption key size for LE and BR/EDR connections"
  percpu: do not search past bitmap when allocating an area
  gpio: vf610: Do not share irq_chip
  usb: typec: fusb302: Check vconn is off when we start toggling
  ARM: exynos: Fix undefined instruction during Exynos5422 resume
  pwm: Fix deadlock warning when removing PWM device
  ARM: dts: exynos: Always enable necessary APIO_1V8 and ABB_1V8 regulators on Arndale Octa
  pwm: tiehrpwm: Update shadow register for disabling PWMs
  dmaengine: idma64: Use actual device for DMA transfers
  gpio: gpio-omap: add check for off wake capable gpios
  PCI: xilinx: Check for __get_free_pages() failure
  block, bfq: increase idling for weight-raised queues
  video: imsttfb: fix potential NULL pointer dereferences
  video: hgafb: fix potential NULL pointer dereference
  PCI: rcar: Fix 64bit MSI message address handling
  PCI: rcar: Fix a potential NULL pointer dereference
  power: supply: max14656: fix potential use-before-alloc
  platform/x86: intel_pmc_ipc: adding error handling
  PCI: rpadlpar: Fix leaked device_node references in add/remove paths
  ARM: dts: imx6qdl: Specify IMX6QDL_CLK_IPG as "ipg" clock to SDMA
  ARM: dts: imx6sx: Specify IMX6SX_CLK_IPG as "ipg" clock to SDMA
  ARM: dts: imx6ul: Specify IMX6UL_CLK_IPG as "ipg" clock to SDMA
  ARM: dts: imx7d: Specify IMX7D_CLK_IPG as "ipg" clock to SDMA
  ARM: dts: imx6sx: Specify IMX6SX_CLK_IPG as "ahb" clock to SDMA
  ARM: dts: imx53: Specify IMX5_CLK_IPG as "ahb" clock to SDMA
  ARM: dts: imx50: Specify IMX5_CLK_IPG as "ahb" clock to SDMA
  ARM: dts: imx51: Specify IMX5_CLK_IPG as "ahb" clock to SDMA
  soc: rockchip: Set the proper PWM for rk3288
  clk: rockchip: Turn on "aclk_dmac1" for suspend on rk3288
  soc: mediatek: pwrap: Zero initialize rdata in pwrap_init_cipher
  PCI: keystone: Prevent ARM32 specific code to be compiled for ARM64
  platform/chrome: cros_ec_proto: check for NULL transfer function
  x86/PCI: Fix PCI IRQ routing table memory leak
  vfio: Fix WARNING "do not call blocking ops when !TASK_RUNNING"
  nfsd: allow fh_want_write to be called twice
  fuse: retrieve: cap requested size to negotiated max_write
  nvmem: core: fix read buffer in place
  ALSA: hda - Register irq handler after the chip initialization
  nvme-pci: unquiesce admin queue on shutdown
  misc: pci_endpoint_test: Fix test_reg_bar to be updated in pci_endpoint_test
  iommu/vt-d: Set intel_iommu_gfx_mapped correctly
  blk-mq: move cancel of requeue_work into blk_mq_release
  watchdog: fix compile time error of pretimeout governors
  watchdog: imx2_wdt: Fix set_timeout for big timeout values
  mmc: mmci: Prevent polling for busy detection in IRQ context
  uml: fix a boot splat wrt use of cpu_all_mask
  configfs: fix possible use-after-free in configfs_register_group
  percpu: remove spurious lock dependency between percpu and sched
  f2fs: fix to do sanity check on valid block count of segment
  f2fs: fix to avoid panic in dec_valid_block_count()
  f2fs: fix to clear dirty inode in error path of f2fs_iget()
  f2fs: fix to avoid panic in do_recover_data()
  ntp: Allow TAI-UTC offset to be set to zero
  pwm: meson: Use the spin-lock only to protect register modifications
  EDAC/mpc85xx: Prevent building as a module
  objtool: Don't use ignore flag for fake jumps
  drm/bridge: adv7511: Fix low refresh rate selection
  perf/x86/intel: Allow PEBS multi-entry in watermark mode
  mfd: twl6040: Fix device init errors for ACCCTL register
  drm/nouveau/disp/dp: respect sink limits when selecting failsafe link configuration
  mfd: intel-lpss: Set the device in reset state when init
  mfd: tps65912-spi: Add missing of table registration
  drivers: thermal: tsens: Don't print error message on -EPROBE_DEFER
  thermal: rcar_gen3_thermal: disable interrupt in .remove
  kernel/sys.c: prctl: fix false positive in validate_prctl_map()
  mm/slab.c: fix an infinite loop in leaks_show()
  mm/cma_debug.c: fix the break condition in cma_maxchunk_get()
  mm/cma.c: fix the bitmap status to show failed allocation reason
  mm/cma.c: fix crash on CMA allocation if bitmap allocation fails
  mem-hotplug: fix node spanned pages when we have a node with only ZONE_MOVABLE
  hugetlbfs: on restore reserve error path retain subpool reservation
  mm/hmm: select mmu notifier when selecting HMM
  ARM: prevent tracing IPI_CPU_BACKTRACE
  ipc: prevent lockup on alloc_msg and free_msg
  sysctl: return -EINVAL if val violates minmax
  fs/fat/file.c: issue flush after the writeback of FAT
  rapidio: fix a NULL pointer dereference when create_workqueue() fails
  BACKPORT: kheaders: Do not regenerate archive if config is not changed
  BACKPORT: kheaders: Move from proc to sysfs
  BACKPORT: Provide in-kernel headers to make extending kernel easier
  UPSTREAM: binder: check for overflow when alloc for security context

Conflicts:
	arch/arm/kernel/smp.c

Change-Id: I93aaeb09806bd05b4bb216aa12d7ba8007fbc3e9
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
2019-07-23 11:00:29 -07:00
Blagovest Kolenichev
dc1d03db8d Merge android-4.14.114 (c680586) into msm-4.14
* refs/heads/tmp-c680586:
  dm: Restore reverted changes
  Linux 4.14.114
  kernel/sysctl.c: fix out-of-bounds access when setting file-max
  Revert "locking/lockdep: Add debug_locks check in __lock_downgrade()"
  i2c-hid: properly terminate i2c_hid_dmi_desc_override_table[] array
  xfs: hold xfs_buf locked between shortform->leaf conversion and the addition of an attribute
  xfs: add the ability to join a held buffer to a defer_ops
  iomap: report collisions between directio and buffered writes to userspace
  tools include: Adopt linux/bits.h
  percpu: stop printing kernel addresses
  ALSA: info: Fix racy addition/deletion of nodes
  mm/vmstat.c: fix /proc/vmstat format for CONFIG_DEBUG_TLBFLUSH=y CONFIG_SMP=n
  device_cgroup: fix RCU imbalance in error case
  sched/fair: Limit sched_cfs_period_timer() loop to avoid hard lockup
  Revert "kbuild: use -Oz instead of -Os when using clang"
  net: IP6 defrag: use rbtrees in nf_conntrack_reasm.c
  net: IP6 defrag: use rbtrees for IPv6 defrag
  ipv6: remove dependency of nf_defrag_ipv6 on ipv6 module
  net: IP defrag: encapsulate rbtree defrag code into callable functions
  ipv6: frags: fix a lockdep false positive
  tpm/tpm_i2c_atmel: Return -E2BIG when the transfer is incomplete
  modpost: file2alias: check prototype of handler
  modpost: file2alias: go back to simple devtable lookup
  mmc: sdhci: Handle auto-command errors
  mmc: sdhci: Rename SDHCI_ACMD12_ERR and SDHCI_INT_ACMD12ERR
  mmc: sdhci: Fix data command CRC error handling
  crypto: crypto4xx - properly set IV after de- and encrypt
  x86/speculation: Prevent deadlock on ssb_state::lock
  perf/x86: Fix incorrect PEBS_REGS
  x86/cpu/bugs: Use __initconst for 'const' init data
  perf/x86/amd: Add event map for AMD Family 17h
  mac80211: do not call driver wake_tx_queue op during reconfig
  rt2x00: do not increment sequence number while re-transmitting
  kprobes: Fix error check when reusing optimized probes
  kprobes: Mark ftrace mcount handler functions nokprobe
  x86/kprobes: Verify stack frame on kretprobe
  arm64: futex: Restore oldval initialization to work around buggy compilers
  crypto: x86/poly1305 - fix overflow during partial reduction
  coredump: fix race condition between mmget_not_zero()/get_task_mm() and core dumping
  Revert "svm: Fix AVIC incomplete IPI emulation"
  Revert "scsi: fcoe: clear FC_RP_STARTED flags when receiving a LOGO"
  scsi: core: set result when the command cannot be dispatched
  ALSA: core: Fix card races between register and disconnect
  ALSA: hda/realtek - add two more pin configuration sets to quirk table
  staging: comedi: ni_usb6501: Fix possible double-free of ->usb_rx_buf
  staging: comedi: ni_usb6501: Fix use of uninitialized mutex
  staging: comedi: vmk80xx: Fix possible double-free of ->usb_rx_buf
  staging: comedi: vmk80xx: Fix use of uninitialized semaphore
  io: accel: kxcjk1013: restore the range after resume.
  iio: core: fix a possible circular locking dependency
  iio: adc: at91: disable adc channel interrupt in timeout case
  iio: Fix scan mask selection
  iio: dac: mcp4725: add missing powerdown bits in store eeprom
  iio: ad_sigma_delta: select channel when reading register
  iio: cros_ec: Fix the maths for gyro scale calculation
  iio/gyro/bmg160: Use millidegrees for temperature scale
  iio: gyro: mpu3050: fix chip ID reading
  staging: iio: ad7192: Fix ad7193 channel address
  Staging: iio: meter: fixed typo
  KVM: x86: svm: make sure NMI is injected after nmi_singlestep
  KVM: x86: Don't clear EFER during SMM transitions for 32-bit vCPU
  CIFS: keep FileInfo handle live during oplock break
  net: thunderx: don't allow jumbo frames with XDP
  net: thunderx: raise XDP MTU to 1508
  ipv4: ensure rcu_read_lock() in ipv4_link_failure()
  ipv4: recompile ip options in ipv4_link_failure
  vhost: reject zero size iova range
  team: set slave to promisc if team is already in promisc mode
  tcp: tcp_grow_window() needs to respect tcp_space()
  net: fou: do not use guehdr after iptunnel_pull_offloads in gue_udp_recv
  net: bridge: multicast: use rcu to access port list from br_multicast_start_querier
  net: bridge: fix per-port af_packet sockets
  net: atm: Fix potential Spectre v1 vulnerabilities
  bonding: fix event handling for stacked bonds
  ANDROID: cuttlefish_defconfig: Enable CONFIG_XFRM_STATISTICS
  Linux 4.14.113
  appletalk: Fix compile regression
  mm: hide incomplete nr_indirectly_reclaimable in sysfs
  net: stmmac: Set dma ring length before enabling the DMA
  bpf: Fix selftests are changes for CVE 2019-7308
  bpf: fix sanitation rewrite in case of non-pointers
  bpf: do not restore dst_reg when cur_state is freed
  bpf: fix inner map masking to prevent oob under speculation
  bpf: fix sanitation of alu op with pointer / scalar type from different paths
  bpf: prevent out of bounds speculation on pointer arithmetic
  bpf: fix check_map_access smin_value test when pointer contains offset
  bpf: restrict unknown scalars of mixed signed bounds for unprivileged
  bpf: restrict stack pointer arithmetic for unprivileged
  bpf: restrict map value pointer arithmetic for unprivileged
  bpf: enable access to ax register also from verifier rewrite
  bpf: move tmp variable into ax register in interpreter
  bpf: move {prev_,}insn_idx into verifier env
  bpf: fix stack state printing in verifier log
  bpf: fix verifier NULL pointer dereference
  bpf: fix verifier memory leaks
  bpf: reduce verifier memory consumption
  dm: disable CRYPTO_TFM_REQ_MAY_SLEEP to fix a GFP_KERNEL recursion deadlock
  bpf: fix use after free in bpf_evict_inode
  include/linux/swap.h: use offsetof() instead of custom __swapoffset macro
  lib/div64.c: off by one in shift
  appletalk: Fix use-after-free in atalk_proc_exit
  drm/amdkfd: use init_mqd function to allocate object for hid_mqd (CI)
  ARM: 8839/1: kprobe: make patch_lock a raw_spinlock_t
  drm/nouveau/volt/gf117: fix speedo readout register
  coresight: cpu-debug: Support for CA73 CPUs
  Revert "ACPI / EC: Remove old CLEAR_ON_RESUME quirk"
  crypto: axis - fix for recursive locking from bottom half
  drm/panel: panel-innolux: set display off in innolux_panel_unprepare
  lkdtm: Add tests for NULL pointer dereference
  lkdtm: Print real addresses
  soc/tegra: pmc: Drop locking from tegra_powergate_is_powered()
  iommu/dmar: Fix buffer overflow during PCI bus notification
  crypto: sha512/arm - fix crash bug in Thumb2 build
  crypto: sha256/arm - fix crash bug in Thumb2 build
  kernel: hung_task.c: disable on suspend
  cifs: fallback to older infolevels on findfirst queryinfo retry
  compiler.h: update definition of unreachable()
  KVM: nVMX: restore host state in nested_vmx_vmexit for VMFail
  ACPI / SBS: Fix GPE storm on recent MacBookPro's
  usbip: fix vhci_hcd controller counting
  ARM: samsung: Limit SAMSUNG_PM_CHECK config option to non-Exynos platforms
  HID: i2c-hid: override HID descriptors for certain devices
  media: au0828: cannot kfree dev before usb disconnect
  powerpc/pseries: Remove prrn_work workqueue
  serial: uartps: console_setup() can't be placed to init section
  netfilter: xt_cgroup: shrink size of v2 path
  f2fs: fix to do sanity check with current segment number
  9p locks: add mount option for lock retry interval
  9p: do not trust pdu content for stat item size
  rsi: improve kernel thread handling to fix kernel panic
  gpio: pxa: handle corner case of unprobed device
  ext4: prohibit fstrim in norecovery mode
  fix incorrect error code mapping for OBJECTID_NOT_FOUND
  x86/hw_breakpoints: Make default case in hw_breakpoint_arch_parse() return an error
  iommu/vt-d: Check capability before disabling protected memory
  drm/nouveau/debugfs: Fix check of pm_runtime_get_sync failure
  x86/cpu/cyrix: Use correct macros for Cyrix calls on Geode processors
  x86/hpet: Prevent potential NULL pointer dereference
  irqchip/mbigen: Don't clear eventid when freeing an MSI
  perf tests: Fix a memory leak in test__perf_evsel__tp_sched_test()
  perf tests: Fix memory leak by expr__find_other() in test__expr()
  perf tests: Fix a memory leak of cpu_map object in the openat_syscall_event_on_all_cpus test
  perf evsel: Free evsel->counts in perf_evsel__exit()
  perf hist: Add missing map__put() in error case
  perf top: Fix error handling in cmd_top()
  perf build-id: Fix memory leak in print_sdt_events()
  perf config: Fix a memory leak in collect_config()
  perf config: Fix an error in the config template documentation
  perf list: Don't forget to drop the reference to the allocated thread_map
  tools/power turbostat: return the exit status of a command
  x86/mm: Don't leak kernel addresses
  scsi: iscsi: flush running unbind operations when removing a session
  thermal/intel_powerclamp: fix truncated kthread name
  thermal/int340x_thermal: fix mode setting
  thermal/int340x_thermal: Add additional UUIDs
  thermal: bcm2835: Fix crash in bcm2835_thermal_debugfs
  thermal/intel_powerclamp: fix __percpu declaration of worker_data
  ALSA: opl3: fix mismatch between snd_opl3_drum_switch definition and declaration
  mmc: davinci: remove extraneous __init annotation
  IB/mlx4: Fix race condition between catas error reset and aliasguid flows
  auxdisplay: hd44780: Fix memory leak on ->remove()
  ALSA: sb8: add a check for request_region
  ALSA: echoaudio: add a check for ioremap_nocache
  ext4: report real fs size after failed resize
  ext4: add missing brelse() in add_new_gdb_meta_bg()
  perf/core: Restore mmap record type correctly
  arc: hsdk_defconfig: Enable CONFIG_BLK_DEV_RAM
  ARC: u-boot args: check that magic number is correct
  ANDROID: cuttlefish_defconfig: Enable L2TP/PPTP
  ANDROID: Makefile: Properly resolve 4.14.112 merge
  Make arm64 serial port config compatible with crosvm
  Linux 4.14.112
  arm64: dts: rockchip: Fix vcc_host1_5v GPIO polarity on rk3328-rock64
  arm64: dts: rockchip: fix vcc_host1_5v pin assign on rk3328-rock64
  dm table: propagate BDI_CAP_STABLE_WRITES to fix sporadic checksum errors
  PCI: Add function 1 DMA alias quirk for Marvell 9170 SATA controller
  x86/perf/amd: Remove need to check "running" bit in NMI handler
  x86/perf/amd: Resolve NMI latency issues for active PMCs
  x86/perf/amd: Resolve race condition when disabling PMC
  xtensa: fix return_address
  sched/fair: Do not re-read ->h_load_next during hierarchical load calculation
  xen: Prevent buffer overflow in privcmd ioctl
  arm64: backtrace: Don't bother trying to unwind the userspace stack
  arm64: dts: rockchip: fix rk3328 rgmii high tx error rate
  arm64: futex: Fix FUTEX_WAKE_OP atomic ops with non-zero result value
  ARM: dts: at91: Fix typo in ISC_D0 on PC9
  ARM: dts: am335x-evm: Correct the regulators for the audio codec
  ARM: dts: am335x-evmsk: Correct the regulators for the audio codec
  virtio: Honour 'may_reduce_num' in vring_create_virtqueue
  genirq: Initialize request_mutex if CONFIG_SPARSE_IRQ=n
  genirq: Respect IRQCHIP_SKIP_SET_WAKE in irq_chip_set_wake_parent()
  block: fix the return errno for direct IO
  block: do not leak memory in bio_copy_user_iov()
  btrfs: prop: fix vanished compression property after failed set
  btrfs: prop: fix zstd compression parameter validation
  Btrfs: do not allow trimming when a fs is mounted with the nologreplay option
  ASoC: fsl_esai: fix channel swap issue when stream starts
  include/linux/bitrev.h: fix constant bitrev
  drm/udl: add a release method and delay modeset teardown
  alarmtimer: Return correct remaining time
  parisc: regs_return_value() should return gpr28
  parisc: Detect QEMU earlier in boot process
  arm64: dts: rockchip: fix rk3328 sdmmc0 write errors
  hv_netvsc: Fix unwanted wakeup after tx_disable
  ip6_tunnel: Match to ARPHRD_TUNNEL6 for dev type
  ALSA: seq: Fix OOB-reads from strlcpy
  net: ethtool: not call vzalloc for zero sized memory request
  netns: provide pure entropy for net_hash_mix()
  net/sched: act_sample: fix divide by zero in the traffic path
  bnxt_en: Reset device on RX buffer errors.
  bnxt_en: Improve RX consumer index validity check.
  nfp: validate the return code from dev_queue_xmit()
  net/mlx5e: Add a lock on tir list
  net/mlx5e: Fix error handling when refreshing TIRs
  vrf: check accept_source_route on the original netdevice
  tcp: Ensure DCTCP reacts to losses
  sctp: initialize _pad of sockaddr_in before copying to user memory
  qmi_wwan: add Olicard 600
  openvswitch: fix flow actions reallocation
  net/sched: fix ->get helper of the matchall cls
  net: rds: force to destroy connection if t_sock is NULL in rds_tcp_kill_sock().
  net/mlx5: Decrease default mr cache size
  net-gro: Fix GRO flush when receiving a GSO packet.
  kcm: switch order of device registration to fix a crash
  ipv6: sit: reset ip header pointer in ipip6_rcv
  ipv6: Fix dangling pointer when ipv6 fragment
  tty: ldisc: add sysctl to prevent autoloading of ldiscs
  tty: mark Siemens R3964 line discipline as BROKEN
  arm64: kaslr: Reserve size of ARM64_MEMSTART_ALIGN in linear region
  stating: ccree: revert "staging: ccree: fix leak of import() after init()"
  lib/string.c: implement a basic bcmp
  x86/vdso: Drop implicit common-page-size linker flag
  x86: vdso: Use $LD instead of $CC to link
  kbuild: clang: choose GCC_TOOLCHAIN_DIR not on LD
  powerpc/tm: Limit TM code inside PPC_TRANSACTIONAL_MEM
  drm/i915/gvt: do not let pin count of shadow mm go negative
  x86/power: Make restore_processor_context() sane
  x86/power/32: Move SYSENTER MSR restoration to fix_processor_context()
  x86/power/64: Use struct desc_ptr for the IDT in struct saved_context
  x86/power: Fix some ordering bugs in __restore_processor_context()
  net: sfp: move sfp_register_socket call from sfp_remove to sfp_probe
  Revert "CHROMIUM: dm: boot time specification of dm="
  Revert "ANDROID: dm: do_mounts_dm: Rebase on top of 4.9"
  Revert "ANDROID: dm: do_mounts_dm: fix dm_substitute_devices()"
  Revert "ANDROID: dm: do_mounts_dm: Update init/do_mounts_dm.c to the latest ChromiumOS version."
  sched/fair: remove printk while schedule is in progress
  ANDROID: Makefile: Add '-fsplit-lto-unit' to cfi-clang-flags
  ANDROID: cfi: Remove unused variable in ptr_to_check_fn
  ANDROID: cuttlefish_defconfig: Enable CONFIG_FUSE_FS

Conflicts:
	arch/arm64/kernel/traps.c
	drivers/mmc/host/sdhci.c
	drivers/mmc/host/sdhci.h
	drivers/tty/Kconfig
	kernel/sched/fair.c

Change-Id: Ic4c01204f58cdb536e2cab04e4f1a2451977f6a3
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
2019-06-25 03:05:18 -07:00
Greg Kroah-Hartman
cfee25d274 Merge 4.14.126 into android-4.14
Changes in 4.14.126
	rapidio: fix a NULL pointer dereference when create_workqueue() fails
	fs/fat/file.c: issue flush after the writeback of FAT
	sysctl: return -EINVAL if val violates minmax
	ipc: prevent lockup on alloc_msg and free_msg
	ARM: prevent tracing IPI_CPU_BACKTRACE
	mm/hmm: select mmu notifier when selecting HMM
	hugetlbfs: on restore reserve error path retain subpool reservation
	mem-hotplug: fix node spanned pages when we have a node with only ZONE_MOVABLE
	mm/cma.c: fix crash on CMA allocation if bitmap allocation fails
	mm/cma.c: fix the bitmap status to show failed allocation reason
	mm/cma_debug.c: fix the break condition in cma_maxchunk_get()
	mm/slab.c: fix an infinite loop in leaks_show()
	kernel/sys.c: prctl: fix false positive in validate_prctl_map()
	thermal: rcar_gen3_thermal: disable interrupt in .remove
	drivers: thermal: tsens: Don't print error message on -EPROBE_DEFER
	mfd: tps65912-spi: Add missing of table registration
	mfd: intel-lpss: Set the device in reset state when init
	drm/nouveau/disp/dp: respect sink limits when selecting failsafe link configuration
	mfd: twl6040: Fix device init errors for ACCCTL register
	perf/x86/intel: Allow PEBS multi-entry in watermark mode
	drm/bridge: adv7511: Fix low refresh rate selection
	objtool: Don't use ignore flag for fake jumps
	EDAC/mpc85xx: Prevent building as a module
	pwm: meson: Use the spin-lock only to protect register modifications
	ntp: Allow TAI-UTC offset to be set to zero
	f2fs: fix to avoid panic in do_recover_data()
	f2fs: fix to clear dirty inode in error path of f2fs_iget()
	f2fs: fix to avoid panic in dec_valid_block_count()
	f2fs: fix to do sanity check on valid block count of segment
	percpu: remove spurious lock dependency between percpu and sched
	configfs: fix possible use-after-free in configfs_register_group
	uml: fix a boot splat wrt use of cpu_all_mask
	mmc: mmci: Prevent polling for busy detection in IRQ context
	watchdog: imx2_wdt: Fix set_timeout for big timeout values
	watchdog: fix compile time error of pretimeout governors
	blk-mq: move cancel of requeue_work into blk_mq_release
	iommu/vt-d: Set intel_iommu_gfx_mapped correctly
	misc: pci_endpoint_test: Fix test_reg_bar to be updated in pci_endpoint_test
	nvme-pci: unquiesce admin queue on shutdown
	ALSA: hda - Register irq handler after the chip initialization
	nvmem: core: fix read buffer in place
	fuse: retrieve: cap requested size to negotiated max_write
	nfsd: allow fh_want_write to be called twice
	vfio: Fix WARNING "do not call blocking ops when !TASK_RUNNING"
	x86/PCI: Fix PCI IRQ routing table memory leak
	platform/chrome: cros_ec_proto: check for NULL transfer function
	PCI: keystone: Prevent ARM32 specific code to be compiled for ARM64
	soc: mediatek: pwrap: Zero initialize rdata in pwrap_init_cipher
	clk: rockchip: Turn on "aclk_dmac1" for suspend on rk3288
	soc: rockchip: Set the proper PWM for rk3288
	ARM: dts: imx51: Specify IMX5_CLK_IPG as "ahb" clock to SDMA
	ARM: dts: imx50: Specify IMX5_CLK_IPG as "ahb" clock to SDMA
	ARM: dts: imx53: Specify IMX5_CLK_IPG as "ahb" clock to SDMA
	ARM: dts: imx6sx: Specify IMX6SX_CLK_IPG as "ahb" clock to SDMA
	ARM: dts: imx7d: Specify IMX7D_CLK_IPG as "ipg" clock to SDMA
	ARM: dts: imx6ul: Specify IMX6UL_CLK_IPG as "ipg" clock to SDMA
	ARM: dts: imx6sx: Specify IMX6SX_CLK_IPG as "ipg" clock to SDMA
	ARM: dts: imx6qdl: Specify IMX6QDL_CLK_IPG as "ipg" clock to SDMA
	PCI: rpadlpar: Fix leaked device_node references in add/remove paths
	platform/x86: intel_pmc_ipc: adding error handling
	power: supply: max14656: fix potential use-before-alloc
	PCI: rcar: Fix a potential NULL pointer dereference
	PCI: rcar: Fix 64bit MSI message address handling
	video: hgafb: fix potential NULL pointer dereference
	video: imsttfb: fix potential NULL pointer dereferences
	block, bfq: increase idling for weight-raised queues
	PCI: xilinx: Check for __get_free_pages() failure
	gpio: gpio-omap: add check for off wake capable gpios
	dmaengine: idma64: Use actual device for DMA transfers
	pwm: tiehrpwm: Update shadow register for disabling PWMs
	ARM: dts: exynos: Always enable necessary APIO_1V8 and ABB_1V8 regulators on Arndale Octa
	pwm: Fix deadlock warning when removing PWM device
	ARM: exynos: Fix undefined instruction during Exynos5422 resume
	usb: typec: fusb302: Check vconn is off when we start toggling
	gpio: vf610: Do not share irq_chip
	percpu: do not search past bitmap when allocating an area
	Revert "Bluetooth: Align minimum encryption key size for LE and BR/EDR connections"
	Revert "drm/nouveau: add kconfig option to turn off nouveau legacy contexts. (v3)"
	drm: don't block fb changes for async plane updates
	ALSA: seq: Cover unsubscribe_port() in list_mutex
	Linux 4.14.126

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2019-06-15 15:56:56 +02:00
Christian Brauner
869febe16b sysctl: return -EINVAL if val violates minmax
[ Upstream commit e260ad01f0aa9e96b5386d5cd7184afd949dc457 ]

Currently when userspace gives us a values that overflow e.g.  file-max
and other callers of __do_proc_doulongvec_minmax() we simply ignore the
new value and leave the current value untouched.

This can be problematic as it gives the illusion that the limit has
indeed be bumped when in fact it failed.  This commit makes sure to
return EINVAL when an overflow is detected.  Please note that this is a
userspace facing change.

Link: http://lkml.kernel.org/r/20190210203943.8227-4-christian@brauner.io
Signed-off-by: Christian Brauner <christian@brauner.io>
Acked-by: Luis Chamberlain <mcgrof@kernel.org>
Cc: Kees Cook <keescook@chromium.org>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Dominik Brodowski <linux@dominikbrodowski.net>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Joe Lawrence <joe.lawrence@redhat.com>
Cc: Waiman Long <longman@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-06-15 11:54:51 +02:00
Blagovest Kolenichev
5d880f1ba0 Merge android-4.14.111 (171fc23) into msm-4.14
* refs/heads/tmp-171fc23:
  Revert "usb: dwc3: gadget: Fix OTG events when gadget driver isn't loaded"
  Revert "coresight: etm4x: Add support to enable ETMv4.2"
  Linux 4.14.111
  ACPI / video: Extend chassis-type detection with a "Lunch Box" check
  drm/dp/mst: Configure no_stop_bit correctly for remote i2c xfers
  dmaengine: tegra: avoid overflow of byte tracking
  clk: rockchip: fix frac settings of GPLL clock for rk3328
  x86/build: Mark per-CPU symbols as absolute explicitly for LLD
  wlcore: Fix memory leak in case wl12xx_fetch_firmware failure
  selinux: do not override context on context mounts
  x86/build: Specify elf_i386 linker emulation explicitly for i386 objects
  drm/nouveau: Stop using drm_crtc_force_disable
  drm: Auto-set allow_fb_modifiers when given modifiers at plane init
  regulator: act8865: Fix act8600_sudcdc_voltage_ranges setting
  media: s5p-jpeg: Check for fmt_ver_flag when doing fmt enumeration
  netfilter: physdev: relax br_netfilter dependency
  dmaengine: qcom_hidma: initialize tx flags in hidma_prep_dma_*
  dmaengine: qcom_hidma: assign channel cookie correctly
  dmaengine: imx-dma: fix warning comparison of distinct pointer types
  cpu/hotplug: Mute hotplug lockdep during init
  hpet: Fix missing '=' character in the __setup() code of hpet_mmap_enable
  HID: intel-ish: ipc: handle PIMR before ish_wakeup also clear PISR busy_clear bit
  soc/tegra: fuse: Fix illegal free of IO base address
  hwrng: virtio - Avoid repeated init of completion
  media: mt9m111: set initial frame size other than 0x0
  usb: dwc3: gadget: Fix OTG events when gadget driver isn't loaded
  powerpc/pseries: Perform full re-add of CPU for topology update post-migration
  tty: increase the default flip buffer limit to 2*640K
  backlight: pwm_bl: Use gpiod_get_value_cansleep() to get initial state
  cgroup/pids: turn cgroup_subsys->free() into cgroup_subsys->release() to fix the accounting
  bpf: fix missing prototype warnings
  ARM: avoid Cortex-A9 livelock on tight dmb loops
  ARM: 8830/1: NOMMU: Toggle only bits in EXC_RETURN we are really care of
  mt7601u: bump supported EEPROM version
  soc: qcom: gsbi: Fix error handling in gsbi_probe()
  efi/arm/arm64: Allow SetVirtualAddressMap() to be omitted
  ARM: dts: lpc32xx: Remove leading 0x and 0s from bindings notation
  efi/memattr: Don't bail on zero VA if it equals the region's PA
  sched/debug: Initialize sd_sysctl_cpus if !CONFIG_CPUMASK_OFFSTACK
  ASoC: fsl-asoc-card: fix object reference leaks in fsl_asoc_card_probe
  platform/x86: intel_pmc_core: Fix PCH IP sts reading
  e1000e: fix cyclic resets at link up with active tx
  cdrom: Fix race condition in cdrom_sysctl_register
  fbdev: fbmem: fix memory access if logo is bigger than the screen
  iw_cxgb4: fix srqidx leak during connection abort
  genirq: Avoid summation loops for /proc/stat
  bcache: improve sysfs_strtoul_clamp()
  bcache: fix input overflow to sequential_cutoff
  bcache: fix input overflow to cache set sysfs file io_error_halflife
  sched/topology: Fix percpu data types in struct sd_data & struct s_data
  usb: f_fs: Avoid crash due to out-of-scope stack ptr access
  ALSA: PCM: check if ops are defined before suspending PCM
  ARM: 8833/1: Ensure that NEON code always compiles with Clang
  netfilter: conntrack: fix cloned unconfirmed skb->_nfct race in __nf_conntrack_confirm
  kprobes: Prohibit probing on bsearch()
  ACPI / video: Refactor and fix dmi_is_desktop()
  iwlwifi: pcie: fix emergency path
  leds: lp55xx: fix null deref on firmware load failure
  jbd2: fix race when writing superblock
  HID: intel-ish-hid: avoid binding wrong ishtp_cl_device
  vfs: fix preadv64v2 and pwritev64v2 compat syscalls with offset == -1
  media: mtk-jpeg: Correct return type for mem2mem buffer helpers
  media: mx2_emmaprp: Correct return type for mem2mem buffer helpers
  media: s5p-g2d: Correct return type for mem2mem buffer helpers
  media: s5p-jpeg: Correct return type for mem2mem buffer helpers
  media: sh_veu: Correct return type for mem2mem buffer helpers
  SoC: imx-sgtl5000: add missing put_device()
  perf test: Fix failure of 'evsel-tp-sched' test on s390
  scsi: fcoe: make use of fip_mode enum complete
  scsi: megaraid_sas: return error when create DMA pool failed
  efi: cper: Fix possible out-of-bounds access
  cpufreq: acpi-cpufreq: Report if CPU doesn't support boost technologies
  clk: fractional-divider: check parent rate only if flag is set
  IB/mlx4: Increase the timeout for CM cache
  mlxsw: spectrum: Avoid -Wformat-truncation warnings
  e1000e: Fix -Wformat-truncation warnings
  mmc: omap: fix the maximum timeout setting
  powerpc/hugetlb: Handle mmap_min_addr correctly in get_unmapped_area callback
  iommu/io-pgtable-arm-v7s: Only kmemleak_ignore L2 tables
  ARM: 8840/1: use a raw_spinlock_t in unwind
  serial: 8250_pxa: honor the port number from devicetree
  coresight: etm4x: Add support to enable ETMv4.2
  powerpc/xmon: Fix opcode being uninitialized in print_insn_powerpc
  scsi: core: replace GFP_ATOMIC with GFP_KERNEL in scsi_scan.c
  usb: chipidea: Grab the (legacy) USB PHY by phandle first
  crypto: cavium/zip - fix collision with generic cra_driver_name
  crypto: crypto4xx - add missing of_node_put after of_device_is_available
  wil6210: check null pointer in _wil_cfg80211_merge_extra_ies
  PCI/PME: Fix hotplug/sysfs remove deadlock in pcie_pme_remove()
  tools lib traceevent: Fix buffer overflow in arg_eval
  fs: fix guard_bio_eod to check for real EOD errors
  jbd2: fix invalid descriptor block checksum
  cifs: Fix NULL pointer dereference of devname
  dm thin: add sanity checks to thin-pool and external snapshot creation
  cifs: use correct format characters
  page_poison: play nicely with KASAN
  fs/file.c: initialize init_files.resize_wait
  f2fs: do not use mutex lock in atomic context
  ocfs2: fix a panic problem caused by o2cb_ctl
  mm/slab.c: kmemleak no scan alien caches
  mm/vmalloc.c: fix kernel BUG at mm/vmalloc.c:512!
  mm, mempolicy: fix uninit memory access
  mm/page_ext.c: fix an imbalance with kmemleak
  mm/cma.c: cma_declare_contiguous: correct err handling
  perf c2c: Fix c2c report for empty numa node
  iio: adc: fix warning in Qualcomm PM8xxx HK/XOADC driver
  scsi: hisi_sas: Set PHY linkrate when disconnected
  enic: fix build warning without CONFIG_CPUMASK_OFFSTACK
  sysctl: handle overflow for file-max
  include/linux/relay.h: fix percpu annotation in struct rchan
  gpio: gpio-omap: fix level interrupt idling
  net/mlx5: Avoid panic when setting vport mac, getting vport config
  net/mlx5: Avoid panic when setting vport rate
  tracing: kdb: Fix ftdump to not sleep
  f2fs: fix to avoid deadlock in f2fs_read_inline_dir()
  h8300: use cc-cross-prefix instead of hardcoding h8300-unknown-linux-
  CIFS: fix POSIX lock leak and invalid ptr deref
  mm: mempolicy: make mbind() return -EIO when MPOL_MF_STRICT is specified
  tty/serial: atmel: RS485 HD w/DMA: enable RX after TX is stopped
  tty/serial: atmel: Add is_half_duplex helper
  lib/int_sqrt: optimize initial value compute
  ext4: cleanup bh release code in ext4_ind_remove_space()
  arm64: debug: Don't propagate UNKNOWN FAR into si_code for debug signals
  ANDROID: cuttlefish_defconfig: Enable CONFIG_OVERLAY_FS
  ANDROID: cuttlefish: enable CONFIG_NET_SCH_INGRESS=y

Conflicts:
	drivers/usb/gadget/function/f_fs.c
	mm/page_alloc.c
	net/netfilter/nf_conntrack_core.c

Change-Id: I4a3db0717eb4f0f0d89e57f3167129bcd2419599
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
2019-05-15 08:16:13 -07:00
Blagovest Kolenichev
070370f0ae Merge android-4.14.108 (4344de2) into msm-4.14
* refs/heads/tmp-4344de2:
  Linux 4.14.108
  s390/setup: fix boot crash for machine without EDAT-1
  KVM: nVMX: Ignore limit checks on VMX instructions using flat segments
  KVM: nVMX: Apply addr size mask to effective address for VMX instructions
  KVM: nVMX: Sign extend displacements of VMX instr's mem operands
  KVM: x86/mmu: Do not cache MMIO accesses while memslots are in flux
  KVM: x86/mmu: Detect MMIO generation wrap in any address space
  KVM: Call kvm_arch_memslots_updated() before updating memslots
  drm/radeon/evergreen_cs: fix missing break in switch statement
  media: imx: csi: Stop upstream before disabling IDMA channel
  media: imx: csi: Disable CSI immediately after last EOF
  media: vimc: Add vimc-streamer for stream control
  media: uvcvideo: Avoid NULL pointer dereference at the end of streaming
  media: imx: prpencvf: Stop upstream before disabling IDMA channel
  rcu: Do RCU GP kthread self-wakeup from softirq and interrupt
  tpm: Unify the send callback behaviour
  tpm/tpm_crb: Avoid unaligned reads in crb_recv()
  md: Fix failed allocation of md_register_thread
  perf intel-pt: Fix divide by zero when TSC is not available
  perf intel-pt: Fix overlap calculation for padding
  perf auxtrace: Define auxtrace record alignment
  perf intel-pt: Fix CYC timestamp calculation after OVF
  x86/unwind/orc: Fix ORC unwind table alignment
  bcache: never writeback a discard operation
  PM / wakeup: Rework wakeup source timer cancellation
  NFSv4.1: Reinitialise sequence results before retransmitting a request
  nfsd: fix wrong check in write_v4_end_grace()
  nfsd: fix memory corruption caused by readdir
  NFS: Don't recoalesce on error in nfs_pageio_complete_mirror()
  NFS: Fix an I/O request leakage in nfs_do_recoalesce
  NFS: Fix I/O request leakages
  cpcap-charger: generate events for userspace
  dm integrity: limit the rate of error messages
  dm: fix to_sector() for 32bit
  arm64: KVM: Fix architecturally invalid reset value for FPEXC32_EL2
  arm64: debug: Ensure debug handlers check triggering exception level
  arm64: Fix HCR.TGE status for NMI contexts
  ARM: s3c24xx: Fix boolean expressions in osiris_dvs_notify
  powerpc/traps: Fix the message printed when stack overflows
  powerpc/traps: fix recoverability of machine check handling on book3s/32
  powerpc/hugetlb: Don't do runtime allocation of 16G pages in LPAR configuration
  powerpc/ptrace: Simplify vr_get/set() to avoid GCC warning
  powerpc: Fix 32-bit KVM-PR lockup and host crash with MacOS guest
  powerpc/83xx: Also save/restore SPRG4-7 during suspend
  powerpc/powernv: Make opal log only readable by root
  powerpc/wii: properly disable use of BATs when requested.
  powerpc/32: Clear on-stack exception marker upon exception return
  security/selinux: fix SECURITY_LSM_NATIVE_LABELS on reused superblock
  jbd2: fix compile warning when using JBUFFER_TRACE
  jbd2: clear dirty flag when revoking a buffer from an older transaction
  serial: 8250_pci: Have ACCES cards that use the four port Pericom PI7C9X7954 chip use the pci_pericom_setup()
  serial: 8250_pci: Fix number of ports for ACCES serial cards
  serial: 8250_of: assume reg-shift of 2 for mrvl,mmp-uart
  serial: uartps: Fix stuck ISR if RX disabled with non-empty FIFO
  drm/i915: Relax mmap VMA check
  crypto: arm64/aes-neonbs - fix returning final keystream block
  i2c: tegra: fix maximum transfer size
  parport_pc: fix find_superio io compare code, should use equal test.
  intel_th: Don't reference unassigned outputs
  device property: Fix the length used in PROPERTY_ENTRY_STRING()
  kernel/sysctl.c: add missing range check in do_proc_dointvec_minmax_conv
  mm/vmalloc: fix size check for remap_vmalloc_range_partial()
  mm: hwpoison: fix thp split handing in soft_offline_in_use_page()
  nfit: acpi_nfit_ctl(): Check out_obj->type in the right place
  usb: chipidea: tegra: Fix missed ci_hdrc_remove_device()
  clk: ingenic: Fix doc of ingenic_cgu_div_info
  clk: ingenic: Fix round_rate misbehaving with non-integer dividers
  clk: clk-twl6040: Fix imprecise external abort for pdmclk
  clk: uniphier: Fix update register for CPU-gear
  ext2: Fix underflow in ext2_max_size()
  cxl: Wrap iterations over afu slices inside 'afu_list_lock'
  IB/hfi1: Close race condition on user context disable and close
  ext4: fix crash during online resizing
  ext4: add mask of ext4 flags to swap
  cpufreq: pxa2xx: remove incorrect __init annotation
  cpufreq: tegra124: add missing of_node_put()
  x86/kprobes: Prohibit probing on optprobe template code
  irqchip/gic-v3-its: Avoid parsing _indirect_ twice for Device table
  libertas_tf: don't set URB_ZERO_PACKET on IN USB transfer
  crypto: pcbc - remove bogus memcpy()s with src == dest
  Btrfs: fix corruption reading shared and compressed extents after hole punching
  btrfs: ensure that a DUP or RAID1 block group has exactly two stripes
  Btrfs: setup a nofs context for memory allocation at __btrfs_set_acl
  m68k: Add -ffreestanding to CFLAGS
  splice: don't merge into linked buffers
  fs/devpts: always delete dcache dentry-s in dput()
  scsi: target/iscsi: Avoid iscsit_release_commands_from_conn() deadlock
  scsi: sd: Optimal I/O size should be a multiple of physical block size
  scsi: aacraid: Fix performance issue on logical drives
  scsi: virtio_scsi: don't send sc payload with tmfs
  s390/virtio: handle find on invalid queue gracefully
  s390/setup: fix early warning messages
  clocksource/drivers/exynos_mct: Clear timer interrupt when shutdown
  clocksource/drivers/exynos_mct: Move one-shot check from tick clear to ISR
  regulator: s2mpa01: Fix step values for some LDOs
  regulator: max77620: Initialize values for DT properties
  regulator: s2mps11: Fix steps for buck7, buck8 and LDO35
  spi: pxa2xx: Setup maximum supported DMA transfer length
  spi: ti-qspi: Fix mmap read when more than one CS in use
  mmc: sdhci-esdhc-imx: fix HS400 timing issue
  ACPI / device_sysfs: Avoid OF modalias creation for removed device
  xen: fix dom0 boot on huge systems
  tracing: Do not free iter->trace in fail path of tracing_open_pipe()
  tracing: Use strncpy instead of memcpy for string keys in hist triggers
  CIFS: Fix read after write for files with read caching
  CIFS: Do not reset lease state to NONE on lease break
  crypto: arm64/aes-ccm - fix bugs in non-NEON fallback routine
  crypto: arm64/aes-ccm - fix logical bug in AAD MAC handling
  crypto: testmgr - skip crc32c context test for ahash algorithms
  crypto: hash - set CRYPTO_TFM_NEED_KEY if ->setkey() fails
  crypto: arm64/crct10dif - revert to C code for short inputs
  crypto: arm/crct10dif - revert to C code for short inputs
  fix cgroup_do_mount() handling of failure exits
  libnvdimm: Fix altmap reservation size calculation
  libnvdimm/pmem: Honor force_raw for legacy pmem regions
  libnvdimm, pfn: Fix over-trim in trim_pfn_device()
  libnvdimm/label: Clear 'updating' flag after label-set update
  stm class: Prevent division by zero
  media: videobuf2-v4l2: drop WARN_ON in vb2_warn_zero_bytesused()
  tmpfs: fix uninitialized return value in shmem_link
  net: set static variable an initial value in atl2_probe()
  nfp: bpf: fix ALU32 high bits clearance bug
  nfp: bpf: fix code-gen bug on BPF_ALU | BPF_XOR | BPF_K
  net: thunderx: make CFG_DONE message to run through generic send-ack sequence
  mac80211_hwsim: propagate genlmsg_reply return code
  phonet: fix building with clang
  ARCv2: support manual regfile save on interrupts
  ARC: uacces: remove lp_start, lp_end from clobber list
  ARCv2: lib: memcpy: fix doing prefetchw outside of buffer
  ixgbe: fix older devices that do not support IXGBE_MRQC_L3L4TXSWEN
  tmpfs: fix link accounting when a tmpfile is linked in
  net: marvell: mvneta: fix DMA debug warning
  arm64: Relax GIC version check during early boot
  qed: Fix iWARP syn packet mac address validation.
  ASoC: topology: free created components in tplg load error
  mailbox: bcm-flexrm-mailbox: Fix FlexRM ring flush timeout issue
  net: mv643xx_eth: disable clk on error path in mv643xx_eth_shared_probe()
  qmi_wwan: apply SET_DTR quirk to Sierra WP7607
  pinctrl: meson: meson8b: fix the sdxc_a data 1..3 pins
  net: systemport: Fix reception of BPDUs
  scsi: libiscsi: Fix race between iscsi_xmit_task and iscsi_complete_task
  keys: Fix dependency loop between construction record and auth key
  assoc_array: Fix shortcut creation
  af_key: unconditionally clone on broadcast
  ARM: 8824/1: fix a migrating irq bug when hotplug cpu
  esp: Skip TX bytes accounting when sending from a request socket
  clk: sunxi: A31: Fix wrong AHB gate number
  clk: sunxi-ng: v3s: Fix TCON reset de-assert bit
  Input: st-keyscan - fix potential zalloc NULL dereference
  auxdisplay: ht16k33: fix potential user-after-free on module unload
  i2c: bcm2835: Clear current buffer pointers and counts after a transfer
  i2c: cadence: Fix the hold bit setting
  net: hns: Fix object reference leaks in hns_dsaf_roce_reset()
  mm: page_alloc: fix ref bias in page_frag_alloc() for 1-byte allocs
  Revert "mm: use early_pfn_to_nid in page_ext_init"
  mm/gup: fix gup_pmd_range() for dax
  NFS: Don't use page_file_mapping after removing the page
  floppy: check_events callback should not return a negative number
  ipvs: fix dependency on nf_defrag_ipv6
  mac80211: Fix Tx aggregation session tear down with ITXQs
  Input: matrix_keypad - use flush_delayed_work()
  Input: ps2-gpio - flush TX work when closing port
  Input: cap11xx - switch to using set_brightness_blocking()
  ARM: OMAP2+: fix lack of timer interrupts on CPU1 after hotplug
  KVM: arm/arm64: Reset the VCPU without preemption and vcpu state loaded
  ASoC: rsnd: fixup rsnd_ssi_master_clk_start() user count check
  ASoC: dapm: fix out-of-bounds accesses to DAPM lookup tables
  ARM: OMAP2+: Variable "reg" in function omap4_dsi_mux_pads() could be uninitialized
  Input: pwm-vibra - stop regulator after disabling pwm, not before
  Input: pwm-vibra - prevent unbalanced regulator
  s390/dasd: fix using offset into zero size array error
  gpu: ipu-v3: Fix CSI offsets for imx53
  drm/imx: imx-ldb: add missing of_node_puts
  gpu: ipu-v3: Fix i.MX51 CSI control registers offset
  drm/imx: ignore plane updates on disabled crtcs
  crypto: rockchip - update new iv to device in multiple operations
  crypto: rockchip - fix scatterlist nents error
  crypto: ahash - fix another early termination in hash walk
  crypto: caam - fixed handling of sg list
  stm class: Fix an endless loop in channel allocation
  iio: adc: exynos-adc: Fix NULL pointer exception on unbind
  ASoC: fsl_esai: fix register setting issue in RIGHT_J mode
  9p/net: fix memory leak in p9_client_create
  9p: use inode->i_lock to protect i_size_write() under 32-bit
  FROMLIST: psi: introduce psi monitor
  FROMLIST: refactor header includes to allow kthread.h inclusion in psi_types.h
  FROMLIST: psi: track changed states
  FROMLIST: psi: split update_stats into parts
  FROMLIST: psi: rename psi fields in preparation for psi trigger addition
  FROMLIST: psi: make psi_enable static
  FROMLIST: psi: introduce state_mask to represent stalled psi states
  ANDROID: cuttlefish_defconfig: Enable CONFIG_INPUT_MOUSEDEV
  ANDROID: cuttlefish_defconfig: Enable CONFIG_PSI
  BACKPORT: kernel: cgroup: add poll file operation
  BACKPORT: fs: kernfs: add poll file operation
  UPSTREAM: psi: avoid divide-by-zero crash inside virtual machines
  UPSTREAM: psi: clarify the Kconfig text for the default-disable option
  UPSTREAM: psi: fix aggregation idle shut-off
  UPSTREAM: psi: fix reference to kernel commandline enable
  UPSTREAM: psi: make disabling/enabling easier for vendor kernels
  UPSTREAM: kernel/sched/psi.c: simplify cgroup_move_task()
  BACKPORT: psi: cgroup support
  UPSTREAM: psi: pressure stall information for CPU, memory, and IO
  UPSTREAM: sched: introduce this_rq_lock_irq()
  UPSTREAM: sched: sched.h: make rq locking and clock functions available in stats.h
  UPSTREAM: sched: loadavg: make calc_load_n() public
  BACKPORT: sched: loadavg: consolidate LOAD_INT, LOAD_FRAC, CALC_LOAD
  UPSTREAM: delayacct: track delays from thrashing cache pages
  UPSTREAM: mm: workingset: tell cache transitions from workingset thrashing
  sched/fair: fix energy compute when a cluster is only a cpu core in multi-cluster system

Conflicts:
	arch/arm/kernel/irq.c
	drivers/scsi/sd.c
	include/linux/sched.h
	include/uapi/linux/taskstats.h
	kernel/sched/Makefile
	sound/soc/soc-dapm.c

Change-Id: I12ebb57a34da9101ee19458d7e1f96ecc769c39a
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
2019-05-15 07:44:57 -07:00
Greg Kroah-Hartman
c680586c4f Merge 4.14.114 into android-4.14
Changes in 4.14.114
	bonding: fix event handling for stacked bonds
	net: atm: Fix potential Spectre v1 vulnerabilities
	net: bridge: fix per-port af_packet sockets
	net: bridge: multicast: use rcu to access port list from br_multicast_start_querier
	net: fou: do not use guehdr after iptunnel_pull_offloads in gue_udp_recv
	tcp: tcp_grow_window() needs to respect tcp_space()
	team: set slave to promisc if team is already in promisc mode
	vhost: reject zero size iova range
	ipv4: recompile ip options in ipv4_link_failure
	ipv4: ensure rcu_read_lock() in ipv4_link_failure()
	net: thunderx: raise XDP MTU to 1508
	net: thunderx: don't allow jumbo frames with XDP
	CIFS: keep FileInfo handle live during oplock break
	KVM: x86: Don't clear EFER during SMM transitions for 32-bit vCPU
	KVM: x86: svm: make sure NMI is injected after nmi_singlestep
	Staging: iio: meter: fixed typo
	staging: iio: ad7192: Fix ad7193 channel address
	iio: gyro: mpu3050: fix chip ID reading
	iio/gyro/bmg160: Use millidegrees for temperature scale
	iio: cros_ec: Fix the maths for gyro scale calculation
	iio: ad_sigma_delta: select channel when reading register
	iio: dac: mcp4725: add missing powerdown bits in store eeprom
	iio: Fix scan mask selection
	iio: adc: at91: disable adc channel interrupt in timeout case
	iio: core: fix a possible circular locking dependency
	io: accel: kxcjk1013: restore the range after resume.
	staging: comedi: vmk80xx: Fix use of uninitialized semaphore
	staging: comedi: vmk80xx: Fix possible double-free of ->usb_rx_buf
	staging: comedi: ni_usb6501: Fix use of uninitialized mutex
	staging: comedi: ni_usb6501: Fix possible double-free of ->usb_rx_buf
	ALSA: hda/realtek - add two more pin configuration sets to quirk table
	ALSA: core: Fix card races between register and disconnect
	scsi: core: set result when the command cannot be dispatched
	Revert "scsi: fcoe: clear FC_RP_STARTED flags when receiving a LOGO"
	Revert "svm: Fix AVIC incomplete IPI emulation"
	coredump: fix race condition between mmget_not_zero()/get_task_mm() and core dumping
	crypto: x86/poly1305 - fix overflow during partial reduction
	arm64: futex: Restore oldval initialization to work around buggy compilers
	x86/kprobes: Verify stack frame on kretprobe
	kprobes: Mark ftrace mcount handler functions nokprobe
	kprobes: Fix error check when reusing optimized probes
	rt2x00: do not increment sequence number while re-transmitting
	mac80211: do not call driver wake_tx_queue op during reconfig
	perf/x86/amd: Add event map for AMD Family 17h
	x86/cpu/bugs: Use __initconst for 'const' init data
	perf/x86: Fix incorrect PEBS_REGS
	x86/speculation: Prevent deadlock on ssb_state::lock
	crypto: crypto4xx - properly set IV after de- and encrypt
	mmc: sdhci: Fix data command CRC error handling
	mmc: sdhci: Rename SDHCI_ACMD12_ERR and SDHCI_INT_ACMD12ERR
	mmc: sdhci: Handle auto-command errors
	modpost: file2alias: go back to simple devtable lookup
	modpost: file2alias: check prototype of handler
	tpm/tpm_i2c_atmel: Return -E2BIG when the transfer is incomplete
	ipv6: frags: fix a lockdep false positive
	net: IP defrag: encapsulate rbtree defrag code into callable functions
	ipv6: remove dependency of nf_defrag_ipv6 on ipv6 module
	net: IP6 defrag: use rbtrees for IPv6 defrag
	net: IP6 defrag: use rbtrees in nf_conntrack_reasm.c
	Revert "kbuild: use -Oz instead of -Os when using clang"
	sched/fair: Limit sched_cfs_period_timer() loop to avoid hard lockup
	device_cgroup: fix RCU imbalance in error case
	mm/vmstat.c: fix /proc/vmstat format for CONFIG_DEBUG_TLBFLUSH=y CONFIG_SMP=n
	ALSA: info: Fix racy addition/deletion of nodes
	percpu: stop printing kernel addresses
	tools include: Adopt linux/bits.h
	iomap: report collisions between directio and buffered writes to userspace
	xfs: add the ability to join a held buffer to a defer_ops
	xfs: hold xfs_buf locked between shortform->leaf conversion and the addition of an attribute
	i2c-hid: properly terminate i2c_hid_dmi_desc_override_table[] array
	Revert "locking/lockdep: Add debug_locks check in __lock_downgrade()"
	kernel/sysctl.c: fix out-of-bounds access when setting file-max
	Linux 4.14.114

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2019-04-30 12:56:41 +02:00
Will Deacon
62c1af5fb3 kernel/sysctl.c: fix out-of-bounds access when setting file-max
commit 9002b21465fa4d829edfc94a5a441005cffaa972 upstream.

Commit 32a5ad9c2285 ("sysctl: handle overflow for file-max") hooked up
min/max values for the file-max sysctl parameter via the .extra1 and
.extra2 fields in the corresponding struct ctl_table entry.

Unfortunately, the minimum value points at the global 'zero' variable,
which is an int.  This results in a KASAN splat when accessed as a long
by proc_doulongvec_minmax on 64-bit architectures:

  | BUG: KASAN: global-out-of-bounds in __do_proc_doulongvec_minmax+0x5d8/0x6a0
  | Read of size 8 at addr ffff2000133d1c20 by task systemd/1
  |
  | CPU: 0 PID: 1 Comm: systemd Not tainted 5.1.0-rc3-00012-g40b114779944 #2
  | Hardware name: linux,dummy-virt (DT)
  | Call trace:
  |  dump_backtrace+0x0/0x228
  |  show_stack+0x14/0x20
  |  dump_stack+0xe8/0x124
  |  print_address_description+0x60/0x258
  |  kasan_report+0x140/0x1a0
  |  __asan_report_load8_noabort+0x18/0x20
  |  __do_proc_doulongvec_minmax+0x5d8/0x6a0
  |  proc_doulongvec_minmax+0x4c/0x78
  |  proc_sys_call_handler.isra.19+0x144/0x1d8
  |  proc_sys_write+0x34/0x58
  |  __vfs_write+0x54/0xe8
  |  vfs_write+0x124/0x3c0
  |  ksys_write+0xbc/0x168
  |  __arm64_sys_write+0x68/0x98
  |  el0_svc_common+0x100/0x258
  |  el0_svc_handler+0x48/0xc0
  |  el0_svc+0x8/0xc
  |
  | The buggy address belongs to the variable:
  |  zero+0x0/0x40
  |
  | Memory state around the buggy address:
  |  ffff2000133d1b00: 00 00 00 00 00 00 00 00 fa fa fa fa 04 fa fa fa
  |  ffff2000133d1b80: fa fa fa fa 04 fa fa fa fa fa fa fa 04 fa fa fa
  | >ffff2000133d1c00: fa fa fa fa 04 fa fa fa fa fa fa fa 00 00 00 00
  |                                ^
  |  ffff2000133d1c80: fa fa fa fa 00 fa fa fa fa fa fa fa 00 00 00 00
  |  ffff2000133d1d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Fix the splat by introducing a unsigned long 'zero_ul' and using that
instead.

Link: http://lkml.kernel.org/r/20190403153409.17307-1-will.deacon@arm.com
Fixes: 32a5ad9c2285 ("sysctl: handle overflow for file-max")
Signed-off-by: Will Deacon <will.deacon@arm.com>
Acked-by: Christian Brauner <christian@brauner.io>
Cc: Kees Cook <keescook@chromium.org>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Matteo Croce <mcroce@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-04-27 09:35:42 +02:00
Greg Kroah-Hartman
171fc237b3 Merge 4.14.111 into android-4.14
Changes in 4.14.111
	arm64: debug: Don't propagate UNKNOWN FAR into si_code for debug signals
	ext4: cleanup bh release code in ext4_ind_remove_space()
	lib/int_sqrt: optimize initial value compute
	tty/serial: atmel: Add is_half_duplex helper
	tty/serial: atmel: RS485 HD w/DMA: enable RX after TX is stopped
	mm: mempolicy: make mbind() return -EIO when MPOL_MF_STRICT is specified
	CIFS: fix POSIX lock leak and invalid ptr deref
	h8300: use cc-cross-prefix instead of hardcoding h8300-unknown-linux-
	f2fs: fix to avoid deadlock in f2fs_read_inline_dir()
	tracing: kdb: Fix ftdump to not sleep
	net/mlx5: Avoid panic when setting vport rate
	net/mlx5: Avoid panic when setting vport mac, getting vport config
	gpio: gpio-omap: fix level interrupt idling
	include/linux/relay.h: fix percpu annotation in struct rchan
	sysctl: handle overflow for file-max
	enic: fix build warning without CONFIG_CPUMASK_OFFSTACK
	scsi: hisi_sas: Set PHY linkrate when disconnected
	iio: adc: fix warning in Qualcomm PM8xxx HK/XOADC driver
	perf c2c: Fix c2c report for empty numa node
	mm/cma.c: cma_declare_contiguous: correct err handling
	mm/page_ext.c: fix an imbalance with kmemleak
	mm, mempolicy: fix uninit memory access
	mm/vmalloc.c: fix kernel BUG at mm/vmalloc.c:512!
	mm/slab.c: kmemleak no scan alien caches
	ocfs2: fix a panic problem caused by o2cb_ctl
	f2fs: do not use mutex lock in atomic context
	fs/file.c: initialize init_files.resize_wait
	page_poison: play nicely with KASAN
	cifs: use correct format characters
	dm thin: add sanity checks to thin-pool and external snapshot creation
	cifs: Fix NULL pointer dereference of devname
	jbd2: fix invalid descriptor block checksum
	fs: fix guard_bio_eod to check for real EOD errors
	tools lib traceevent: Fix buffer overflow in arg_eval
	PCI/PME: Fix hotplug/sysfs remove deadlock in pcie_pme_remove()
	wil6210: check null pointer in _wil_cfg80211_merge_extra_ies
	crypto: crypto4xx - add missing of_node_put after of_device_is_available
	crypto: cavium/zip - fix collision with generic cra_driver_name
	usb: chipidea: Grab the (legacy) USB PHY by phandle first
	scsi: core: replace GFP_ATOMIC with GFP_KERNEL in scsi_scan.c
	powerpc/xmon: Fix opcode being uninitialized in print_insn_powerpc
	coresight: etm4x: Add support to enable ETMv4.2
	serial: 8250_pxa: honor the port number from devicetree
	ARM: 8840/1: use a raw_spinlock_t in unwind
	iommu/io-pgtable-arm-v7s: Only kmemleak_ignore L2 tables
	powerpc/hugetlb: Handle mmap_min_addr correctly in get_unmapped_area callback
	mmc: omap: fix the maximum timeout setting
	e1000e: Fix -Wformat-truncation warnings
	mlxsw: spectrum: Avoid -Wformat-truncation warnings
	IB/mlx4: Increase the timeout for CM cache
	clk: fractional-divider: check parent rate only if flag is set
	cpufreq: acpi-cpufreq: Report if CPU doesn't support boost technologies
	efi: cper: Fix possible out-of-bounds access
	scsi: megaraid_sas: return error when create DMA pool failed
	scsi: fcoe: make use of fip_mode enum complete
	perf test: Fix failure of 'evsel-tp-sched' test on s390
	SoC: imx-sgtl5000: add missing put_device()
	media: sh_veu: Correct return type for mem2mem buffer helpers
	media: s5p-jpeg: Correct return type for mem2mem buffer helpers
	media: s5p-g2d: Correct return type for mem2mem buffer helpers
	media: mx2_emmaprp: Correct return type for mem2mem buffer helpers
	media: mtk-jpeg: Correct return type for mem2mem buffer helpers
	vfs: fix preadv64v2 and pwritev64v2 compat syscalls with offset == -1
	HID: intel-ish-hid: avoid binding wrong ishtp_cl_device
	jbd2: fix race when writing superblock
	leds: lp55xx: fix null deref on firmware load failure
	iwlwifi: pcie: fix emergency path
	ACPI / video: Refactor and fix dmi_is_desktop()
	kprobes: Prohibit probing on bsearch()
	netfilter: conntrack: fix cloned unconfirmed skb->_nfct race in __nf_conntrack_confirm
	ARM: 8833/1: Ensure that NEON code always compiles with Clang
	ALSA: PCM: check if ops are defined before suspending PCM
	usb: f_fs: Avoid crash due to out-of-scope stack ptr access
	sched/topology: Fix percpu data types in struct sd_data & struct s_data
	bcache: fix input overflow to cache set sysfs file io_error_halflife
	bcache: fix input overflow to sequential_cutoff
	bcache: improve sysfs_strtoul_clamp()
	genirq: Avoid summation loops for /proc/stat
	iw_cxgb4: fix srqidx leak during connection abort
	fbdev: fbmem: fix memory access if logo is bigger than the screen
	cdrom: Fix race condition in cdrom_sysctl_register
	e1000e: fix cyclic resets at link up with active tx
	platform/x86: intel_pmc_core: Fix PCH IP sts reading
	ASoC: fsl-asoc-card: fix object reference leaks in fsl_asoc_card_probe
	sched/debug: Initialize sd_sysctl_cpus if !CONFIG_CPUMASK_OFFSTACK
	efi/memattr: Don't bail on zero VA if it equals the region's PA
	ARM: dts: lpc32xx: Remove leading 0x and 0s from bindings notation
	efi/arm/arm64: Allow SetVirtualAddressMap() to be omitted
	soc: qcom: gsbi: Fix error handling in gsbi_probe()
	mt7601u: bump supported EEPROM version
	ARM: 8830/1: NOMMU: Toggle only bits in EXC_RETURN we are really care of
	ARM: avoid Cortex-A9 livelock on tight dmb loops
	bpf: fix missing prototype warnings
	cgroup/pids: turn cgroup_subsys->free() into cgroup_subsys->release() to fix the accounting
	backlight: pwm_bl: Use gpiod_get_value_cansleep() to get initial state
	tty: increase the default flip buffer limit to 2*640K
	powerpc/pseries: Perform full re-add of CPU for topology update post-migration
	usb: dwc3: gadget: Fix OTG events when gadget driver isn't loaded
	media: mt9m111: set initial frame size other than 0x0
	hwrng: virtio - Avoid repeated init of completion
	soc/tegra: fuse: Fix illegal free of IO base address
	HID: intel-ish: ipc: handle PIMR before ish_wakeup also clear PISR busy_clear bit
	hpet: Fix missing '=' character in the __setup() code of hpet_mmap_enable
	cpu/hotplug: Mute hotplug lockdep during init
	dmaengine: imx-dma: fix warning comparison of distinct pointer types
	dmaengine: qcom_hidma: assign channel cookie correctly
	dmaengine: qcom_hidma: initialize tx flags in hidma_prep_dma_*
	netfilter: physdev: relax br_netfilter dependency
	media: s5p-jpeg: Check for fmt_ver_flag when doing fmt enumeration
	regulator: act8865: Fix act8600_sudcdc_voltage_ranges setting
	drm: Auto-set allow_fb_modifiers when given modifiers at plane init
	drm/nouveau: Stop using drm_crtc_force_disable
	x86/build: Specify elf_i386 linker emulation explicitly for i386 objects
	selinux: do not override context on context mounts
	wlcore: Fix memory leak in case wl12xx_fetch_firmware failure
	x86/build: Mark per-CPU symbols as absolute explicitly for LLD
	clk: rockchip: fix frac settings of GPLL clock for rk3328
	dmaengine: tegra: avoid overflow of byte tracking
	drm/dp/mst: Configure no_stop_bit correctly for remote i2c xfers
	ACPI / video: Extend chassis-type detection with a "Lunch Box" check
	Linux 4.14.111

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2019-04-05 22:40:00 +02:00
Christian Brauner
1306ff8bf9 sysctl: handle overflow for file-max
[ Upstream commit 32a5ad9c22852e6bd9e74bdec5934ef9d1480bc5 ]

Currently, when writing

  echo 18446744073709551616 > /proc/sys/fs/file-max

/proc/sys/fs/file-max will overflow and be set to 0.  That quickly
crashes the system.

This commit sets the max and min value for file-max.  The max value is
set to long int.  Any higher value cannot currently be used as the
percpu counters are long ints and not unsigned integers.

Note that the file-max value is ultimately parsed via
__do_proc_doulongvec_minmax().  This function does not report error when
min or max are exceeded.  Which means if a value largen that long int is
written userspace will not receive an error instead the old value will be
kept.  There is an argument to be made that this should be changed and
__do_proc_doulongvec_minmax() should return an error when a dedicated min
or max value are exceeded.  However this has the potential to break
userspace so let's defer this to an RFC patch.

Link: http://lkml.kernel.org/r/20190107222700.15954-3-christian@brauner.io
Signed-off-by: Christian Brauner <christian@brauner.io>
Acked-by: Kees Cook <keescook@chromium.org>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Dominik Brodowski <linux@dominikbrodowski.net>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Joe Lawrence <joe.lawrence@redhat.com>
Cc: Luis Chamberlain <mcgrof@kernel.org>
Cc: Waiman Long <longman@redhat.com>
[christian@brauner.io: v4]
  Link: http://lkml.kernel.org/r/20190210203943.8227-3-christian@brauner.io
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-04-05 22:31:26 +02:00
Pavankumar Kondeti
a3dd94a1bb sched: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: I50d41aa3338803cbd45ff6314b2bb3978c59282b
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2019-04-01 14:35:59 +05:30
Greg Kroah-Hartman
4344de2f79 Merge 4.14.108 into android-4.14
Changes in 4.14.108
	9p: use inode->i_lock to protect i_size_write() under 32-bit
	9p/net: fix memory leak in p9_client_create
	ASoC: fsl_esai: fix register setting issue in RIGHT_J mode
	iio: adc: exynos-adc: Fix NULL pointer exception on unbind
	stm class: Fix an endless loop in channel allocation
	crypto: caam - fixed handling of sg list
	crypto: ahash - fix another early termination in hash walk
	crypto: rockchip - fix scatterlist nents error
	crypto: rockchip - update new iv to device in multiple operations
	drm/imx: ignore plane updates on disabled crtcs
	gpu: ipu-v3: Fix i.MX51 CSI control registers offset
	drm/imx: imx-ldb: add missing of_node_puts
	gpu: ipu-v3: Fix CSI offsets for imx53
	s390/dasd: fix using offset into zero size array error
	Input: pwm-vibra - prevent unbalanced regulator
	Input: pwm-vibra - stop regulator after disabling pwm, not before
	ARM: OMAP2+: Variable "reg" in function omap4_dsi_mux_pads() could be uninitialized
	ASoC: dapm: fix out-of-bounds accesses to DAPM lookup tables
	ASoC: rsnd: fixup rsnd_ssi_master_clk_start() user count check
	KVM: arm/arm64: Reset the VCPU without preemption and vcpu state loaded
	ARM: OMAP2+: fix lack of timer interrupts on CPU1 after hotplug
	Input: cap11xx - switch to using set_brightness_blocking()
	Input: ps2-gpio - flush TX work when closing port
	Input: matrix_keypad - use flush_delayed_work()
	mac80211: Fix Tx aggregation session tear down with ITXQs
	ipvs: fix dependency on nf_defrag_ipv6
	floppy: check_events callback should not return a negative number
	NFS: Don't use page_file_mapping after removing the page
	mm/gup: fix gup_pmd_range() for dax
	Revert "mm: use early_pfn_to_nid in page_ext_init"
	mm: page_alloc: fix ref bias in page_frag_alloc() for 1-byte allocs
	net: hns: Fix object reference leaks in hns_dsaf_roce_reset()
	i2c: cadence: Fix the hold bit setting
	i2c: bcm2835: Clear current buffer pointers and counts after a transfer
	auxdisplay: ht16k33: fix potential user-after-free on module unload
	Input: st-keyscan - fix potential zalloc NULL dereference
	clk: sunxi-ng: v3s: Fix TCON reset de-assert bit
	clk: sunxi: A31: Fix wrong AHB gate number
	esp: Skip TX bytes accounting when sending from a request socket
	ARM: 8824/1: fix a migrating irq bug when hotplug cpu
	af_key: unconditionally clone on broadcast
	assoc_array: Fix shortcut creation
	keys: Fix dependency loop between construction record and auth key
	scsi: libiscsi: Fix race between iscsi_xmit_task and iscsi_complete_task
	net: systemport: Fix reception of BPDUs
	pinctrl: meson: meson8b: fix the sdxc_a data 1..3 pins
	qmi_wwan: apply SET_DTR quirk to Sierra WP7607
	net: mv643xx_eth: disable clk on error path in mv643xx_eth_shared_probe()
	mailbox: bcm-flexrm-mailbox: Fix FlexRM ring flush timeout issue
	ASoC: topology: free created components in tplg load error
	qed: Fix iWARP syn packet mac address validation.
	arm64: Relax GIC version check during early boot
	net: marvell: mvneta: fix DMA debug warning
	tmpfs: fix link accounting when a tmpfile is linked in
	ixgbe: fix older devices that do not support IXGBE_MRQC_L3L4TXSWEN
	ARCv2: lib: memcpy: fix doing prefetchw outside of buffer
	ARC: uacces: remove lp_start, lp_end from clobber list
	ARCv2: support manual regfile save on interrupts
	phonet: fix building with clang
	mac80211_hwsim: propagate genlmsg_reply return code
	net: thunderx: make CFG_DONE message to run through generic send-ack sequence
	nfp: bpf: fix code-gen bug on BPF_ALU | BPF_XOR | BPF_K
	nfp: bpf: fix ALU32 high bits clearance bug
	net: set static variable an initial value in atl2_probe()
	tmpfs: fix uninitialized return value in shmem_link
	media: videobuf2-v4l2: drop WARN_ON in vb2_warn_zero_bytesused()
	stm class: Prevent division by zero
	libnvdimm/label: Clear 'updating' flag after label-set update
	libnvdimm, pfn: Fix over-trim in trim_pfn_device()
	libnvdimm/pmem: Honor force_raw for legacy pmem regions
	libnvdimm: Fix altmap reservation size calculation
	fix cgroup_do_mount() handling of failure exits
	crypto: arm/crct10dif - revert to C code for short inputs
	crypto: arm64/crct10dif - revert to C code for short inputs
	crypto: hash - set CRYPTO_TFM_NEED_KEY if ->setkey() fails
	crypto: testmgr - skip crc32c context test for ahash algorithms
	crypto: arm64/aes-ccm - fix logical bug in AAD MAC handling
	crypto: arm64/aes-ccm - fix bugs in non-NEON fallback routine
	CIFS: Do not reset lease state to NONE on lease break
	CIFS: Fix read after write for files with read caching
	tracing: Use strncpy instead of memcpy for string keys in hist triggers
	tracing: Do not free iter->trace in fail path of tracing_open_pipe()
	xen: fix dom0 boot on huge systems
	ACPI / device_sysfs: Avoid OF modalias creation for removed device
	mmc: sdhci-esdhc-imx: fix HS400 timing issue
	spi: ti-qspi: Fix mmap read when more than one CS in use
	spi: pxa2xx: Setup maximum supported DMA transfer length
	regulator: s2mps11: Fix steps for buck7, buck8 and LDO35
	regulator: max77620: Initialize values for DT properties
	regulator: s2mpa01: Fix step values for some LDOs
	clocksource/drivers/exynos_mct: Move one-shot check from tick clear to ISR
	clocksource/drivers/exynos_mct: Clear timer interrupt when shutdown
	s390/setup: fix early warning messages
	s390/virtio: handle find on invalid queue gracefully
	scsi: virtio_scsi: don't send sc payload with tmfs
	scsi: aacraid: Fix performance issue on logical drives
	scsi: sd: Optimal I/O size should be a multiple of physical block size
	scsi: target/iscsi: Avoid iscsit_release_commands_from_conn() deadlock
	fs/devpts: always delete dcache dentry-s in dput()
	splice: don't merge into linked buffers
	m68k: Add -ffreestanding to CFLAGS
	Btrfs: setup a nofs context for memory allocation at __btrfs_set_acl
	btrfs: ensure that a DUP or RAID1 block group has exactly two stripes
	Btrfs: fix corruption reading shared and compressed extents after hole punching
	crypto: pcbc - remove bogus memcpy()s with src == dest
	libertas_tf: don't set URB_ZERO_PACKET on IN USB transfer
	irqchip/gic-v3-its: Avoid parsing _indirect_ twice for Device table
	x86/kprobes: Prohibit probing on optprobe template code
	cpufreq: tegra124: add missing of_node_put()
	cpufreq: pxa2xx: remove incorrect __init annotation
	ext4: add mask of ext4 flags to swap
	ext4: fix crash during online resizing
	IB/hfi1: Close race condition on user context disable and close
	cxl: Wrap iterations over afu slices inside 'afu_list_lock'
	ext2: Fix underflow in ext2_max_size()
	clk: uniphier: Fix update register for CPU-gear
	clk: clk-twl6040: Fix imprecise external abort for pdmclk
	clk: ingenic: Fix round_rate misbehaving with non-integer dividers
	clk: ingenic: Fix doc of ingenic_cgu_div_info
	usb: chipidea: tegra: Fix missed ci_hdrc_remove_device()
	nfit: acpi_nfit_ctl(): Check out_obj->type in the right place
	mm: hwpoison: fix thp split handing in soft_offline_in_use_page()
	mm/vmalloc: fix size check for remap_vmalloc_range_partial()
	kernel/sysctl.c: add missing range check in do_proc_dointvec_minmax_conv
	device property: Fix the length used in PROPERTY_ENTRY_STRING()
	intel_th: Don't reference unassigned outputs
	parport_pc: fix find_superio io compare code, should use equal test.
	i2c: tegra: fix maximum transfer size
	crypto: arm64/aes-neonbs - fix returning final keystream block
	drm/i915: Relax mmap VMA check
	serial: uartps: Fix stuck ISR if RX disabled with non-empty FIFO
	serial: 8250_of: assume reg-shift of 2 for mrvl,mmp-uart
	serial: 8250_pci: Fix number of ports for ACCES serial cards
	serial: 8250_pci: Have ACCES cards that use the four port Pericom PI7C9X7954 chip use the pci_pericom_setup()
	jbd2: clear dirty flag when revoking a buffer from an older transaction
	jbd2: fix compile warning when using JBUFFER_TRACE
	security/selinux: fix SECURITY_LSM_NATIVE_LABELS on reused superblock
	powerpc/32: Clear on-stack exception marker upon exception return
	powerpc/wii: properly disable use of BATs when requested.
	powerpc/powernv: Make opal log only readable by root
	powerpc/83xx: Also save/restore SPRG4-7 during suspend
	powerpc: Fix 32-bit KVM-PR lockup and host crash with MacOS guest
	powerpc/ptrace: Simplify vr_get/set() to avoid GCC warning
	powerpc/hugetlb: Don't do runtime allocation of 16G pages in LPAR configuration
	powerpc/traps: fix recoverability of machine check handling on book3s/32
	powerpc/traps: Fix the message printed when stack overflows
	ARM: s3c24xx: Fix boolean expressions in osiris_dvs_notify
	arm64: Fix HCR.TGE status for NMI contexts
	arm64: debug: Ensure debug handlers check triggering exception level
	arm64: KVM: Fix architecturally invalid reset value for FPEXC32_EL2
	dm: fix to_sector() for 32bit
	dm integrity: limit the rate of error messages
	cpcap-charger: generate events for userspace
	NFS: Fix I/O request leakages
	NFS: Fix an I/O request leakage in nfs_do_recoalesce
	NFS: Don't recoalesce on error in nfs_pageio_complete_mirror()
	nfsd: fix memory corruption caused by readdir
	nfsd: fix wrong check in write_v4_end_grace()
	NFSv4.1: Reinitialise sequence results before retransmitting a request
	PM / wakeup: Rework wakeup source timer cancellation
	bcache: never writeback a discard operation
	x86/unwind/orc: Fix ORC unwind table alignment
	perf intel-pt: Fix CYC timestamp calculation after OVF
	perf auxtrace: Define auxtrace record alignment
	perf intel-pt: Fix overlap calculation for padding
	perf intel-pt: Fix divide by zero when TSC is not available
	md: Fix failed allocation of md_register_thread
	tpm/tpm_crb: Avoid unaligned reads in crb_recv()
	tpm: Unify the send callback behaviour
	rcu: Do RCU GP kthread self-wakeup from softirq and interrupt
	media: imx: prpencvf: Stop upstream before disabling IDMA channel
	media: uvcvideo: Avoid NULL pointer dereference at the end of streaming
	media: vimc: Add vimc-streamer for stream control
	media: imx: csi: Disable CSI immediately after last EOF
	media: imx: csi: Stop upstream before disabling IDMA channel
	drm/radeon/evergreen_cs: fix missing break in switch statement
	KVM: Call kvm_arch_memslots_updated() before updating memslots
	KVM: x86/mmu: Detect MMIO generation wrap in any address space
	KVM: x86/mmu: Do not cache MMIO accesses while memslots are in flux
	KVM: nVMX: Sign extend displacements of VMX instr's mem operands
	KVM: nVMX: Apply addr size mask to effective address for VMX instructions
	KVM: nVMX: Ignore limit checks on VMX instructions using flat segments
	s390/setup: fix boot crash for machine without EDAT-1
	Linux 4.14.108

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2019-03-23 21:12:16 +01:00
Zev Weiss
73a79d1bb2 kernel/sysctl.c: add missing range check in do_proc_dointvec_minmax_conv
commit 8cf7630b29701d364f8df4a50e4f1f5e752b2778 upstream.

This bug has apparently existed since the introduction of this function
in the pre-git era (4500e91754d3 in Thomas Gleixner's history.git,
"[NET]: Add proc_dointvec_userhz_jiffies, use it for proper handling of
neighbour sysctls.").

As a minimal fix we can simply duplicate the corresponding check in
do_proc_dointvec_conv().

Link: http://lkml.kernel.org/r/20190207123426.9202-3-zev@bewilderbeest.net
Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
Cc: Brendan Higgins <brendanhiggins@google.com>
Cc: Iurii Zaikin <yzaikin@google.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Luis Chamberlain <mcgrof@kernel.org>
Cc: <stable@vger.kernel.org>	[2.6.2+]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-03-23 14:35:24 +01:00
Blagovest Kolenichev
f1b30ef999 Merge android-4.14-p.99 (b952da4) into msm-4.14
* refs/heads/tmp-b952da4:
  Revert "iommu/arm-smmu: Add support for qcom,smmu-v2 variant"
  Linux 4.14.99
  ath9k: dynack: check da->enabled first in sampling routines
  ath9k: dynack: make ewma estimation faster
  perf/x86/intel: Delay memory deallocation until x86_pmu_dead_cpu()
  IB/hfi1: Add limit test for RC/UC send via loopback
  nfsd4: catch some false session retries
  nfsd4: fix cached replies to solo SEQUENCE compounds
  serial: 8250_pci: Make PCI class test non fatal
  serial: fix race between flush_to_ldisc and tty_open
  perf tests evsel-tp-sched: Fix bitwise operator
  perf/core: Don't WARN() for impossible ring-buffer sizes
  x86/MCE: Initialize mce.bank in the case of a fatal error in mce_no_way_out()
  perf/x86/intel/uncore: Add Node ID mask
  cpu/hotplug: Fix "SMT disabled by BIOS" detection for KVM
  KVM: nVMX: unconditionally cancel preemption timer in free_nested (CVE-2019-7221)
  kvm: fix kvm_ioctl_create_device() reference counting (CVE-2019-6974)
  KVM: x86: work around leak of uninitialized stack contents (CVE-2019-7222)
  scsi: aic94xx: fix module loading
  scsi: cxlflash: Prevent deadlock when adapter probe fails
  staging: speakup: fix tty-operation NULL derefs
  usb: gadget: musb: fix short isoc packets with inventra dma
  usb: gadget: udc: net2272: Fix bitwise and boolean operations
  usb: dwc3: gadget: Handle 0 xfer length for OUT EP
  usb: phy: am335x: fix race condition in _probe
  irqchip/gic-v3-its: Plug allocation race for devices sharing a DevID
  futex: Handle early deadlock return correctly
  dmaengine: imx-dma: fix wrong callback invoke
  dmaengine: bcm2835: Fix abort of transactions
  dmaengine: bcm2835: Fix interrupt race on RT
  fuse: handle zero sized retrieve correctly
  fuse: decrement NR_WRITEBACK_TEMP on the right page
  fuse: call pipe_buf_release() under pipe lock
  ALSA: hda - Serialize codec registrations
  ALSA: compress: Fix stop handling on compressed capture streams
  net: dsa: slave: Don't propagate flag changes on down slave interfaces
  net/mlx5e: Force CHECKSUM_UNNECESSARY for short ethernet frames
  net: systemport: Fix WoL with password after deep sleep
  rds: fix refcount bug in rds_sock_addref
  skge: potential memory corruption in skge_get_regs()
  rxrpc: bad unlock balance in rxrpc_recvmsg
  net: dp83640: expire old TX-skb
  enic: fix checksum validation for IPv6
  dccp: fool proof ccid_hc_[rt]x_parse_options()
  thermal: hwmon: inline helpers when CONFIG_THERMAL_HWMON is not set
  scripts/gdb: fix lx-version string output
  exec: load_script: don't blindly truncate shebang string
  fs/epoll: drop ovflist branch prediction
  kernel/hung_task.c: force console verbose before panic
  proc/sysctl: fix return error for proc_doulongvec_minmax()
  kernel/hung_task.c: break RCU locks based on jiffies
  HID: lenovo: Add checks to fix of_led_classdev_register
  thermal: generic-adc: Fix adc to temp interpolation
  kdb: Don't back trace on a cpu that didn't round up
  thermal: bcm2835: enable hwmon explicitly
  block/swim3: Fix -EBUSY error when re-opening device after unmount
  fsl/fman: Use GFP_ATOMIC in {memac,tgec}_add_hash_mac_address()
  gdrom: fix a memory leak bug
  isdn: hisax: hfc_pci: Fix a possible concurrency use-after-free bug in HFCPCI_l1hw()
  ocfs2: improve ocfs2 Makefile
  ocfs2: don't clear bh uptodate for block read
  scripts/decode_stacktrace: only strip base path when a prefix of the path
  cgroup: fix parsing empty mount option string
  f2fs: fix sbi->extent_list corruption issue
  niu: fix missing checks of niu_pci_eeprom_read
  um: Avoid marking pages with "changed protection"
  cifs: check ntwrk_buf_start for NULL before dereferencing it
  MIPS: ralink: Select CONFIG_CPU_MIPSR2_IRQ_VI on MT7620/8
  crypto: ux500 - Use proper enum in hash_set_dma_transfer
  crypto: ux500 - Use proper enum in cryp_set_dma_transfer
  seq_buf: Make seq_buf_puts() null-terminate the buffer
  hwmon: (lm80) fix a missing check of bus read in lm80 probe
  hwmon: (lm80) fix a missing check of the status of SMBus read
  NFS: nfs_compare_mount_options always compare auth flavors.
  kvm: Change offset in kvm_write_guest_offset_cached to unsigned
  powerpc/fadump: Do not allow hot-remove memory from fadump reserved area.
  KVM: x86: svm: report MSR_IA32_MCG_EXT_CTL as unsupported
  pinctrl: meson: meson8b: fix the GPIO function for the GPIOAO pins
  pinctrl: meson: meson8: fix the GPIO function for the GPIOAO pins
  powerpc/mm: Fix reporting of kernel execute faults on the 8xx
  fbdev: fbcon: Fix unregister crash when more than one framebuffer
  ACPI/APEI: Clear GHES block_status before panic()
  igb: Fix an issue that PME is not enabled during runtime suspend
  i40e: define proper net_device::neigh_priv_len
  fbdev: fbmem: behave better with small rotated displays and many CPUs
  md: fix raid10 hang issue caused by barrier
  video: clps711x-fb: release disp device node in probe()
  drbd: Avoid Clang warning about pointless switch statment
  drbd: skip spurious timeout (ping-timeo) when failing promote
  drbd: disconnect, if the wrong UUIDs are attached on a connected peer
  drbd: narrow rcu_read_lock in drbd_sync_handshake
  powerpc/perf: Fix thresholding counter data for unknown type
  cw1200: Fix concurrency use-after-free bugs in cw1200_hw_scan()
  scsi: smartpqi: increase fw status register read timeout
  scsi: smartpqi: correct volume status
  scsi: smartpqi: correct host serial num for ssa
  mlxsw: spectrum: Properly cleanup LAG uppers when removing port from LAG
  Bluetooth: Fix unnecessary error message for HCI request completion
  xfrm6_tunnel: Fix spi check in __xfrm6_tunnel_alloc_spi
  mac80211: fix radiotap vendor presence bitmap handling
  powerpc/uaccess: fix warning/error with access_ok()
  percpu: convert spin_lock_irq to spin_lock_irqsave.
  usb: musb: dsps: fix otg state machine
  arm64: KVM: Skip MMIO insn after emulation
  perf probe: Fix unchecked usage of strncpy()
  perf header: Fix unchecked usage of strncpy()
  perf test: Fix perf_event_attr test failure
  tty: serial: samsung: Properly set flags in autoCTS mode
  mmc: sdhci-xenon: Fix timeout checks
  mmc: sdhci-of-esdhc: Fix timeout checks
  memstick: Prevent memstick host from getting runtime suspended during card detection
  mmc: bcm2835: reset host on timeout
  mmc: bcm2835: Recover from MMC_SEND_EXT_CSD
  KVM: PPC: Book3S: Only report KVM_CAP_SPAPR_TCE_VFIO on powernv machines
  ASoC: fsl: Fix SND_SOC_EUKREA_TLV320 build error on i.MX8M
  ARM: pxa: avoid section mismatch warning
  selftests/bpf: use __bpf_constant_htons in test_prog.c
  switchtec: Fix SWITCHTEC_IOCTL_EVENT_IDX_ALL flags overwrite
  udf: Fix BUG on corrupted inode
  phy: sun4i-usb: add support for missing USB PHY index
  i2c-axxia: check for error conditions first
  OPP: Use opp_table->regulators to verify no regulator case
  cpuidle: big.LITTLE: fix refcount leak
  clk: imx6sl: ensure MMDC CH0 handshake is bypassed
  sata_rcar: fix deferred probing
  iommu/arm-smmu-v3: Use explicit mb() when moving cons pointer
  iommu/arm-smmu: Add support for qcom,smmu-v2 variant
  usb: dwc3: gadget: Disable CSP for stream OUT ep
  watchdog: renesas_wdt: don't set divider while watchdog is running
  ARM: dts: Fix up the D-Link DIR-685 MTD partition info
  media: coda: fix H.264 deblocking filter controls
  mips: bpf: fix encoding bug for mm_srlv32_op
  ARM: dts: Fix OMAP4430 SDP Ethernet startup
  iommu/amd: Fix amd_iommu=force_isolation
  pinctrl: sx150x: handle failure case of devm_kstrdup
  usb: dwc3: trace: add missing break statement to make compiler happy
  IB/hfi1: Unreserve a reserved request when it is completed
  kobject: return error code if writing /sys/.../uevent fails
  driver core: Move async_synchronize_full call
  clk: sunxi-ng: a33: Set CLK_SET_RATE_PARENT for all audio module clocks
  usb: mtu3: fix the issue about SetFeature(U1/U2_Enable)
  timekeeping: Use proper seqcount initializer
  usb: hub: delay hub autosuspend if USB3 port is still link training
  usb: dwc3: Correct the logic for checking TRB full in __dwc3_prepare_one_trb()
  smack: fix access permissions for keyring
  media: DaVinci-VPBE: fix error handling in vpbe_initialize()
  x86/fpu: Add might_fault() to user_insn()
  ARM: dts: mmp2: fix TWSI2
  arm64: ftrace: don't adjust the LR value
  s390/zcrypt: improve special ap message cmd handling
  firmware/efi: Add NULL pointer checks in efivars API functions
  Thermal: do not clear passive state during system sleep
  arm64: io: Ensure value passed to __iormb() is held in a 64-bit register
  drm: Clear state->acquire_ctx before leaving drm_atomic_helper_commit_duplicated_state()
  nfsd4: fix crash on writing v4_end_grace before nfsd startup
  soc: bcm: brcmstb: Don't leak device tree node reference
  sunvdc: Do not spin in an infinite loop when vio_ldc_send() returns EAGAIN
  arm64: io: Ensure calls to delay routines are ordered against prior readX()
  i2c: sh_mobile: add support for r8a77990 (R-Car E3)
  f2fs: fix wrong return value of f2fs_acl_create
  f2fs: fix race between write_checkpoint and write_begin
  f2fs: move dir data flush to write checkpoint process
  staging: pi433: fix potential null dereference
  ACPI: SPCR: Consider baud rate 0 as preconfigured state
  media: adv*/tc358743/ths8200: fill in min width/height/pixelclock
  iio: accel: kxcjk1013: Add KIOX010A ACPI Hardware-ID
  iio: adc: meson-saradc: fix internal clock names
  iio: adc: meson-saradc: check for devm_kasprintf failure
  dmaengine: xilinx_dma: Remove __aligned attribute on zynqmp_dma_desc_ll
  ptp: Fix pass zero to ERR_PTR() in ptp_clock_register
  media: mtk-vcodec: Release device nodes in mtk_vcodec_init_enc_pm()
  soc/tegra: Don't leak device tree node reference
  perf tools: Add Hygon Dhyana support
  modpost: validate symbol names also in find_elf_symbol
  net/mlx5: EQ, Use the right place to store/read IRQ affinity hint
  ARM: OMAP2+: hwmod: Fix some section annotations
  drm/rockchip: fix for mailbox read size
  usbnet: smsc95xx: fix rx packet alignment
  staging: iio: ad7780: update voltage on read
  platform/chrome: don't report EC_MKBP_EVENT_SENSOR_FIFO as wakeup
  Tools: hv: kvp: Fix a warning of buffer overflow with gcc 8.0.1
  fpga: altera-cvp: Fix registration for CvP incapable devices
  staging:iio:ad2s90: Make probe handle spi_setup failure
  MIPS: Boston: Disable EG20T prefetch
  ptp: check gettime64 return code in PTP_SYS_OFFSET ioctl
  serial: fsl_lpuart: clear parity enable bit when disable parity
  drm/vc4: ->x_scaling[1] should never be set to VC4_SCALING_NONE
  crypto: aes_ti - disable interrupts while accessing S-box
  powerpc/pseries: add of_node_put() in dlpar_detach_node()
  x86/PCI: Fix Broadcom CNB20LE unintended sign extension (redux)
  dlm: Don't swamp the CPU with callbacks queued during recovery
  clk: boston: fix possible memory leak in clk_boston_setup()
  ARM: 8808/1: kexec:offline panic_smp_self_stop CPU
  scsi: lpfc: Fix LOGO/PLOGI handling when triggerd by ABTS Timeout event
  scsi: mpt3sas: Call sas_remove_host before removing the target devices
  scsi: lpfc: Correct LCB RJT handling
  ath9k: dynack: use authentication messages for 'late' ack
  gpu: ipu-v3: image-convert: Prevent race between run and unprepare
  ASoC: Intel: mrfld: fix uninitialized variable access
  pinctrl: bcm2835: Use raw spinlock for RT compatibility
  drm/vgem: Fix vgem_init to get drm device available.
  staging: iio: adc: ad7280a: handle error from __ad7280_read32()
  drm/bufs: Fix Spectre v1 vulnerability

Conflicts:
	drivers/thermal/thermal_core.c

File below is aligned according to change [1] from this LTS import:

    arch/arm64/include/asm/io.h

[1] arm64: io: Ensure calls to delay routines are ordered against prior readX()

Change-Id: Ieae90a5ca7b81b08fcfedb150da732f5986aefe5
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
2019-03-01 11:14:23 -08:00