Commit graph

600500 commits

Author SHA1 Message Date
Linux Build Service Account
582f5092f3 Merge "soc: qcom: hab: check the buffer's pointer before exporting it" 2018-07-16 21:54:09 -07:00
Linux Build Service Account
385635a167 Merge "mmc: core: Update SD card removal logic based on cd gpio state" 2018-07-16 11:36:25 -07:00
Linux Build Service Account
5e972f6b60 Merge "soc: qcom: hab: resolve NULL pointer dereference issues" 2018-07-16 01:31:34 -07:00
Linux Build Service Account
438ba82af9 Merge "defconfig: gvm: enable msm hardware random generator" 2018-07-16 01:31:32 -07:00
Linux Build Service Account
dbd927c73d Merge "ssusb: vplatform: enable otg passthrough in la-gvm" 2018-07-16 01:31:32 -07:00
Linux Build Service Account
016e86bc53 Merge "iommu/debug: Add mutex to make attach/detach thread safe" 2018-07-16 01:31:30 -07:00
Linux Build Service Account
ff5fac3d56 Merge "ARM: dts: msm: Add clock skew values for msm8996 CV2X boards" 2018-07-15 13:23:49 -07:00
Linux Build Service Account
65a0403464 Merge "Documentation: devicetree: net: Add clock skew parameters for neutrino" 2018-07-14 00:36:46 -07:00
Linux Build Service Account
741e5a2f47 Merge "cnss2: Refactor PCIe bus related code" 2018-07-14 00:36:44 -07:00
Aditya Mathur
18f31ec736 ARM: dts: msm: Add clock skew values for msm8996 CV2X boards
Add phy clock skew values for the neutrino driver
on msm8996 CV2X boards.

Change-Id: Ic06b054dd6d5e4267fdec64d7d73786b54466444
Signed-off-by: Aditya Mathur <aditmath@codeaurora.org>
2018-07-13 15:37:57 -07:00
Aditya Mathur
63226fea94 Documentation: devicetree: net: Add clock skew parameters for neutrino
Add documentation for new PHY clock skew parameters
in the neutrino driver.

Change-Id: Ibefa49ef0f91e42e3bb6d050eeac4a4adfc67ee1
Signed-off-by: Aditya Mathur <aditmath@codeaurora.org>
2018-07-13 14:46:27 -07:00
Linux Build Service Account
125e556ec0 Merge "drm: msm: error notification and handling" 2018-07-13 14:31:15 -07:00
VENKATA RAO KAKANI
ba826181ed iommu/debug: Add mutex to make attach/detach thread safe
This mutex lock will help to synchronise the usage of iommu domain
structure which is getting used by multiple threads to perform
iommu attach and iommu detach in case of any error.

Without this change we are seeing page poisoning - write after free
when running stress tests using iommu-debug test cases.

Change-Id: I388a90084ab8cc7e7097bac9a41ed5fed6dad312
Acked-by: Ankur Saxena <c_ankusa@qti.qualcomm.com>
Signed-off-by: Vivek Gautam <vivek.gautam@codeaurora.org>
Signed-off-by: VENKATA RAO KAKANI <vkakani@codeaurora.org>
2018-07-13 04:56:53 -07:00
Linux Build Service Account
1814c3e255 Merge "adv7481: Fix AVI infoframe read" 2018-07-13 03:01:24 -07:00
Linux Build Service Account
1eef60bf60 Merge "cnss2: Add bus layer" 2018-07-12 20:13:13 -07:00
Linux Build Service Account
e5020c2024 Merge "net: core: null pointer derefernce in sockev_client_cb" 2018-07-12 20:13:12 -07:00
Linux Build Service Account
348619f43f Merge "usb: gadget: ffs: Remove IPC context create failure log" 2018-07-12 05:37:43 -07:00
Linux Build Service Account
c236da24a2 Merge "msm: camera: isp: Add null check for vfe_dev." 2018-07-12 05:37:32 -07:00
Linux Build Service Account
dad1ae12b3 Merge "cnss2: Do not load board data file if bdf_bypass is enabled" 2018-07-12 05:37:14 -07:00
Linux Build Service Account
926778dc85 Merge "iommu/debug: Add mutex to make attach/detach thread safe" 2018-07-12 05:36:59 -07:00
Venkata Rao Kakani
eca26f73a0 defconfig: gvm: enable msm hardware random generator
Enable MSM hardware random generator in LA-GVM.

Change-Id: I970986fd302dfc56544409682faa97c9e0a508bd
Signed-off-by: Venkata Rao Kakani <vkakani@codeaurora.org>
2018-07-12 04:14:37 -07:00
Yong Ding
a16a7501c8 soc: qcom: hab: resolve NULL pointer dereference issues
Some NULL pointer dereference issues are fixed.

Change-Id: I0f7f8ede860c81d451f2105520750692fd4eee50
Signed-off-by: Yong Ding <yongding@codeaurora.org>
2018-07-12 14:57:44 +08:00
Shobhit Singh
29b44c2034 msm: camera: isp: Add null check for vfe_dev.
In some cases, observed that vfe node information is
not filled in the stream information, this will lead
to a null pointer access. To avoid such scenarios,
a null check is added.

Change-Id: Ibe8e095629574e2d8b8fbb097449d49bc0a762b3
Signed-off-by: Shobhit Singh <shobsi@codeaurora.org>
2018-07-11 22:17:46 -07:00
Yue Ma
9a3821168d cnss2: Refactor PCIe bus related code
PCIe bus related APIs should not directly called from common files.
Instead, create equivalent abstract BUS APIs from where it can
decide which corresponding PCIe bus APIs to be invoked. This will
help to extend other buses like USB and SDIO in the future.

Change-Id: I1f115173f2e6c34e3a8cb6f975349112f52697e4
Signed-off-by: Yue Ma <yuem@codeaurora.org>
Signed-off-by: Rajasekaran Kalidoss <rkalidos@codeaurora.org>
2018-07-11 18:41:28 -07:00
Yue Ma
5ff075a62e cnss2: Add bus layer
Bus layer is a shim layer for potential buses (PCIe, USB and SDIO)
of WLAN devices. It abstracts all the bus related APIs for common
files of the driver so that it can help make them bus independent.

Change-Id: I06e19a26d34168fe0fcc65229a4519b868cd97c1
Signed-off-by: Yue Ma <yuem@codeaurora.org>
Signed-off-by: Rajasekaran Kalidoss <rkalidos@codeaurora.org>
2018-07-11 18:40:42 -07:00
Yue Ma
e84e34c011 cnss2: Do not load board data file if bdf_bypass is enabled
Send dummy board data file to firmware if bdf_bypass is enabled,
no matter the real file is present or not.

Change-Id: I042d0ce7190fa56f362baf99c5847edf50419377
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2018-07-11 18:40:24 -07:00
Linux Build Service Account
74891ac5bf Merge "msm: adsprpc: destroy mutex before file free" 2018-07-11 15:18:40 -07:00
Linux Build Service Account
cd536e63e3 Merge "net: sockev: code cleanup" 2018-07-11 07:09:25 -07:00
Linux Build Service Account
37c280a3b7 Merge "xhci: Fix use-after-free in xhci_free_virt_device" 2018-07-11 07:09:24 -07:00
Linux Build Service Account
af27a0fe41 Merge "ufs: scsi: fix redzone overwritten error when print utp hci testbus" 2018-07-11 07:09:23 -07:00
Linux Build Service Account
324c1ad8e8 Merge "usb: dwc3-msm: Enable PHY IRQ wakeup only for non-auto targets" 2018-07-11 07:09:22 -07:00
Linux Build Service Account
52d99c3422 Merge "clk: msm: clock-mmss-8996: disable cache based clk rate" 2018-07-11 07:09:21 -07:00
Tharun Kumar Merugu
c2eebf8cdf msm: adsprpc: destroy mutex before file free
Destroy mutex before file free, to avoid use after free of mutex.

Change-Id: I4ff73dc17b15043eacbb299219a379bfd1a8efa6
Acked-by: Himateja Reddy <hmreddy@qti.qualcomm.com>
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
2018-07-11 15:20:08 +05:30
Rahul Sharma
ac2c415caf drm: msm: error notification and handling
This implementation facilitates a framework to report and recover the
errors in display hardware pipeline.

Change-Id: Ie4059dd8bcdd83f73b5a5165ae5a8363ae4efb94
Signed-off-by: Rahul Sharma <rahsha@codeaurora.org>
2018-07-11 15:11:47 +05:30
Tejaswi Tanikella
074c25bf9f net: core: null pointer derefernce in sockev_client_cb
sockev_client_cb creates a netlink message and populates
the nlmsg_data using the socket->sock information.
If socket is closed, while the nlmsg_data is being
populated, a null pointer dereference occurs.

BUG: KASAN: null-ptr-deref in sockev_client_cb+0x1e4/0x310 net/core/sockev_nlmcast.c:98
Read of size 2 at addr 0000000000000010 by task syz-executor/9398
CPU: 6 PID: 9398 Comm: syz-executor Tainted: G W O 4.9.92+ #1

Call trace:
[<ffffff94e2bebec4>] sockev_client_cb+0x1e4/0x310 net/core/sockev_nlmcast.c:98
[<ffffff94e14fb20c>] notifier_call_chain+0x94/0xe0 kernel/notifier.c:93
[<ffffff94e14fb894>] __blocking_notifier_call_chain+0x6c/0xb8 kernel/notifier.c:317
[<ffffff94e14fb920>] blocking_notifier_call_chain+0x40/0x50 kernel/notifier.c:328
[<ffffff94e2b727f8>] sockev_notify net/socket.c:180 [inline]
[<ffffff94e2b727f8>] SYSC_listen net/socket.c:1446 [inline]
[<ffffff94e2b727f8>] SyS_listen+0x1e0/0x1f8 net/socket.c:1428
[<ffffff94e1483f70>] el0_svc_naked+0x24/0x28

CR's Fixed: 2251042
Change-Id: Iad9eb58cd05fcdc0b5cc1ed24de56b69abb532b4
Signed-off-by: Sharath Chandra Vurukala <sharathv@codeaurora.org>
Signed-off-by: Tejaswi Tanikella <tejaswit@codeaurora.org>
2018-07-11 14:46:19 +05:30
Tejaswi Tanikella
31c5d9be72 net: sockev: code cleanup
Replace with cleaner NULL checks. Needed for dependent change
commit 59f6fd5f1905 ("net: core: null pointer derefernce in
		sockev_client_cb").

Change-Id: Icdd7a5c9f3e3f343bb20b1f9b75fa580ea75a2dc
Signed-off-by: Tejaswi Tanikella <tejaswit@codeaurora.org>
2018-07-11 14:45:57 +05:30
Can Guo
11282791fe ufs: scsi: fix redzone overwritten error when print utp hci testbus
When print UTP HCI testbus data, a redzone overwritten error is triggered
because the max select minor value goes across its border. This change
fixes it.

Change-Id: Ib085288f3770aa0ab3683926247fb95f5e50cb08
Signed-off-by: Can Guo <cang@codeaurora.org>
2018-07-11 16:11:55 +08:00
Linux Build Service Account
4049db73f1 Merge "Merge android-4.4.139 (7ba5557) into msm-4.4" 2018-07-10 22:43:57 -07:00
Linux Build Service Account
62b5f32c45 Merge "ASoC: msm: Fix config control indices for TX DAIs" 2018-07-10 22:43:53 -07:00
Linux Build Service Account
8b6c671074 Merge "include: qdsp6v2: avoid returning error code from stubbed function" 2018-07-10 22:43:49 -07:00
Linux Build Service Account
a37cd25c94 Merge "Revert "drm/msm/sde: output black frame during resume operation"" 2018-07-10 08:50:42 -07:00
Linux Build Service Account
505d3dc6f5 Merge "mdss: mdp: Constant fetch start across dfps change" 2018-07-10 08:50:39 -07:00
Linux Build Service Account
6f512dfbfc Merge "DRM: DSI: setup software context during DSI prepare with splash" 2018-07-10 08:50:35 -07:00
Satish Babu Patakokila
595690c416 ASoC: msm: Fix config control indices for TX DAIs
Correct the config control indices for TX DAIs of MI2S interface.

Change-Id: Ie8bf646a0c1fbd30abdb34703ae1f90ed9b484e8
Signed-off-by: Satish Babu Patakokila <sbpata@codeaurora.org>
2018-07-10 03:50:13 -07:00
Ajay Agarwal
07cc3a041e usb: dwc3-msm: Enable PHY IRQ wakeup only for non-auto targets
On automotive targets, we do not want the system to wakeup if the
connected peripheral is issuing remote wakeup when the system is
PM suspended. Do not enable the system wakeup capability of the
PHY IRQs if the target is automotive.

Change-Id: I0bd986fdfab8f978692b605a44301086de3d0a87
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2018-07-10 15:43:33 +05:30
Suprith Malligere Shankaregowda
21c3cdc101 adv7481: Fix AVI infoframe read
Change the AVI infoframe read to check avi_info_raw bit in
hdmi lvl raw status register instead of new_avi_info_raw
in hdmi edg raw status register. This is required so as not
to miss AVI infoframes if we disconnect and reconnect the
HDMI cable or close and reopen the application. Also return
error if no AVI infoframe is found and change some error
logs to be more specific.

Change-Id: If30ba820d255149f1b54f422b8e075e634271aaf
Signed-off-by: Suprith Malligere Shankaregowda <supgow@codeaurora.org>
2018-07-10 02:33:37 -07:00
Linux Build Service Account
25da117eca Merge "usb: misc: Fix incorrect use of keywords in Kconfig" 2018-07-10 00:19:32 -07:00
Linux Build Service Account
f632f91c79 Merge "scsi: ufs: print TSTBUS_UTP_HCI testbus data" 2018-07-10 00:19:31 -07:00
Banajit Goswami
c719e9e28e include: qdsp6v2: avoid returning error code from stubbed function
If MSM_QDSP6_NOTIFIER is not enabled for a target, audio_notifier
feature will not be available for that target. Whenever a call is
made to audio_notifier when its not supported, returning error from
stubbed function may confuse the error with real failure (even though
the feature is not enabled on the target). Avoid returning error code
from stubbed function, when feature is disabled.

Change-Id: I37eb2e25e45b25948aff55f2a231195a22b16f05
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2018-07-09 21:37:57 -07:00
Linux Build Service Account
093e11e9d2 Merge "sdm660: defconfig: Enable GCM crypto configs" 2018-07-09 12:30:23 -07:00