summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-10-16Merge "msm-auto: defconfig: Enable USB_QCOM_IPC_BRIDGE config"Linux Build Service Account
2018-10-16Merge "usb: dwc3-msm: Flush bus_vote_w work on pm_suspend and freeze"Linux Build Service Account
2018-10-16Merge "defconfig: arm: msm: Enable config options required for VTS"Linux Build Service Account
2018-10-16Merge "ASoC: msm: qdsp6v2: fix issue of uninitialized variable"Linux Build Service Account
2018-10-16usb: dwc3-msm: Flush bus_vote_w work on pm_suspend and freezeAjay Agarwal
Currently as a part of dwc3_msm_pm_suspend, driver calls suspend routine which schedules bus_vote_w to remove bus votes from USB. But it could be possible that the system freezes before the work function could get called or completed. This will keep the USB votes enabled and block XO shutdown. Fix this by flushing the bus_vote_w at the end of pm_suspend to ensure that bus votes are removed. Change-Id: I578e3c4434eb04740f07f4dd0640a945a86fde8b Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2018-10-15Merge "ARM: dts: msm: disable sensor node on msm8996 and apq8096"Linux Build Service Account
2018-10-15ASoC: msm: qdsp6v2: fix issue of uninitialized variableHan Lu
Fix issue that the variable paddr of type ion_phy_addr_t be used without initialization in a few files Change-Id: Idfa17595e9ef24640c40e573b9fbc74d14570fc5 Signed-off-by: Han Lu <hanlu@codeaurora.org>
2018-10-15Merge "xfrm: validate template mode"Linux Build Service Account
2018-10-15xfrm: validate template modeSean Tranchetti
XFRM mode parameters passed as part of the user templates in the IP_XFRM_POLICY are never properly validated. Passing values other than valid XFRM modes can cause stack-out-of-bounds reads to occur later in the XFRM processing: [ 140.535608] ================================================================ [ 140.543058] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0x17e4/0x1cc4 [ 140.550306] Read of size 4 at addr ffffffc0238a7a58 by task repro/5148 [ 140.557369] [ 140.558927] Call trace: [ 140.558936] dump_backtrace+0x0/0x388 [ 140.558940] show_stack+0x24/0x30 [ 140.558946] __dump_stack+0x24/0x2c [ 140.558949] dump_stack+0x8c/0xd0 [ 140.558956] print_address_description+0x74/0x234 [ 140.558960] kasan_report+0x240/0x264 [ 140.558963] __asan_report_load4_noabort+0x2c/0x38 [ 140.558967] xfrm_state_find+0x17e4/0x1cc4 [ 140.558971] xfrm_resolve_and_create_bundle+0x40c/0x1fb8 [ 140.558975] xfrm_lookup+0x238/0x1444 [ 140.558977] xfrm_lookup_route+0x48/0x11c [ 140.558984] ip_route_output_flow+0x88/0xc4 [ 140.558991] raw_sendmsg+0xa74/0x266c [ 140.558996] inet_sendmsg+0x258/0x3b0 [ 140.559002] sock_sendmsg+0xbc/0xec [ 140.559005] SyS_sendto+0x3a8/0x5a8 [ 140.559008] el0_svc_naked+0x34/0x38 [ 140.559009] [ 140.592245] page dumped becaus: kasan: bad access detected [ 140.597981] page_owner info is not active (free page?) [ 140.603267] [ 140.653503] ================================================================ Change-Id: I5d2fa78a9d950c79d83d759bfd4d0f399fed18a4 Signed-off-by: Sean Tranchetti <stranche@codeaurora.org>
2018-10-15defconfig: arm: msm: Enable config options required for VTSVenkata Rao Kakani
Enable security and other features to pass vendor test suite. Change-Id: Ic75f2eeb63f022306cae6824e9a2de975a259b4d Signed-off-by: Venkata Rao Kakani <vkakani@codeaurora.org>
2018-10-15Merge "net:wireless:Fix kw issues"Linux Build Service Account
2018-10-14Merge "ARM: dts: msm: Set correct thermal threshold for msm8996 CV2X"Linux Build Service Account
2018-10-13Merge "soc: hab: add size checking when hab import buffer"Linux Build Service Account
2018-10-12ARM: dts: msm: Set correct thermal threshold for msm8996 CV2XGustavo Solaira
Set the correct hotplug and reset thresholds for the thermal driver for msm8996 CV2X. Change-Id: Icd403cb12aed3c7b13b42a31830a526b64fb77fe Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
2018-10-12Merge "Merge android-4.4.159 (624c095) into msm-4.4"Linux Build Service Account
2018-10-12soc: hab: add size checking when hab import bufferYajun Li
If the input size of import buffer isn't equal to the real size of this buffer, hab should reject this import function. Change-Id: I184a0752d37e9f1bf6a8705ccf8f2fdfd6796d5e Signed-off-by: Yajun Li <yajunl@codeaurora.org>
2018-10-12msm-auto: defconfig: Enable USB_QCOM_IPC_BRIDGE configAjay Agarwal
Enable USB_QCOM_IPC_BRIDGE config which is required to compile HSIC transport IPC router driver. Also update the Kconfig dependency chain and documentation to make the user select this config manually. Change-Id: I85f61aac136504a96c2e4ce94907355d23413e42 Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2018-10-11Merge "soc: hab: recycle mmid from qcpe to video"Linux Build Service Account
2018-10-11Merge "ARM: dts: msm: Enable wlan ramdump for msm8996_gvmq"Linux Build Service Account
2018-10-11Merge "ARM: dts: msm: update the DSI bit clock for DSI panel on SDM660"Linux Build Service Account
2018-10-11Merge "cnss2: Add QMI updates for Genoa PCIe"Linux Build Service Account
2018-10-11Merge "i2c-msm-v2: Handle Null pointer de-reference"Linux Build Service Account
2018-10-10soc: hab: recycle mmid from qcpe to videoShiju Mathew
Add new mmid for video and other minor logging and efficiency fixes. Change-Id: I0ebbfadff76e7efb7f9afff9896dadf1bd8df9a1 Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2018-10-10ARM: dts: msm: Enable wlan ramdump for msm8996_gvmqNijun Gong
Add dts node to let wlan ramdump work for msm8996_gvmq. Change-Id: Ie47b83c2dc12849d4831f1c053db4f3d997449ff Signed-off-by: Nijun Gong <ngong@codeaurora.org>
2018-10-09cnss2: Add QMI updates for Genoa PCIeJayachandran Sreekumaran
Add qmi updates to pass the msi config for copy engine and host memory information for CE to update the read index. Change-Id: I8861659e54cfb25ae64a23a3f02f1e0fce6d372d Signed-off-by: Jayachandran Sreekumaran <jsreekum@codeaurora.org>
2018-10-09Merge "sdcardfs: Fix the format prints in sdcardfs"Linux Build Service Account
2018-10-09Merge "wcnss: fix integer underflow in wcnss_wlan"Linux Build Service Account
2018-10-09Merge "cnss2: Add force wake support"Linux Build Service Account
2018-10-09Merge "soc: msm: add sensor dsp dynamic calibration support for anc"Linux Build Service Account
2018-10-09Merge "msm: mdss: dsi: fix slab-out-of-bounds issue"Linux Build Service Account
2018-10-09Merge "ARM: dts: msm: enable dynamic bit clock for SDM660 MTP panel"Linux Build Service Account
2018-10-09Merge "soc: qcom: subsystem_notif_virt: Add a NULL check and fix a data type"Linux Build Service Account
2018-10-09Merge "msm: kgsl: Add a property to find if secure context is supported"Linux Build Service Account
2018-10-09Merge "usb: misc: Add USB_QCOM_IPC_BRIDGE config"Linux Build Service Account
2018-10-09Merge "ARM: dts: msm: remove HOME gpio key for qrd devices"Linux Build Service Account
2018-10-09Merge "soc: hab: refine codes to support multi import"Linux Build Service Account
2018-10-09wcnss: fix integer underflow in wcnss_wlanSandeep Singh
Fix integer underflow which may eventually results in an buffer overread in wcnss_nvbin_dnld when the firmware file size is less than 4 Byte. Add a check on file size before performing arithmetic operation which avoids buffer underflow. CRs-Fixed: 2279226 Change-Id: Ia7fdb859e8c999f8a2e81c957c7cab35ef312844 Signed-off-by: Sandeep Singh <sandsing@codeaurora.org>
2018-10-08soc: qcom: subsystem_notif_virt: Add a NULL check and fix a data typeAnant Goel
A NULL pointer check is added to prevent a NULL pointer exception. A data type is fixed to prevent a type conversion before an error check. Change-Id: If4f6f70c8770ad48432e466e1b6a7e9bf4b62258 Signed-off-by: Anant Goel <anantg@codeaurora.org>
2018-10-08sdcardfs: Fix the format prints in sdcardfsRitesh Harjani
Fix the %p format prints with %pK. Change-Id: I5fbe70350d7b4d986a2b070c9a2602d9d7680dc9 Signed-off-by: Ritesh Harjani <riteshh@codeaurora.org>
2018-10-09net:wireless:Fix kw issuesGuisen Yang
Fix the uninitialized variables used, NULL pointer dereference, and potential array OOB. Change-Id: I0787eaa377bf2bd29d5ddeabafa8f4e1c6a81919 CRs-Fixed: 2272639 Signed-off-by: Guisen Yang <guiseny@codeaurora.org>
2018-10-08cnss2: Add force wake supportYue Ma
As part of PCIe power management for new WLAN devices, it requires asserting WAKE register before accessing any MMIO registers outside first 4K range. Add the support in CNSS driver and expose the APIs for WLAN host driver. Change-Id: I69688c229121c12575dde4938961d60bc067751f Signed-off-by: Yue Ma <yuem@codeaurora.org>
2018-10-08msm: kgsl: Add a property to find if secure context is supportedSunil Khatri
Add a property to determine if a target support secure context for use cases like CPZ. This property can be used by userspace application to create a secure context if its supported on the target. Change-Id: I1ccc824378fb8fbd2cfbc7b811c6c3fdcd17803e Signed-off-by: Sunil Khatri <sunilkh@codeaurora.org>
2018-10-08msm: kgsl: Add a property to find alignment of secure buffersSunil Khatri
Add a property to determine the hardware alignment constraint on secure buffers. XPUv2 and below have a minimum requirement of 1 MBytes alignment and hence driver should allocate memory with minimum alignment on size. Change-Id: Ie3ca5da489bc94ae57ddc6695e402463fd7a88c2 Signed-off-by: Sunil Khatri <sunilkh@codeaurora.org>
2018-10-08ARM: dts: msm: update the DSI bit clock for DSI panel on SDM660Padmanabhan Komanduru
Update the DSI bit clock frequencies supported for the NT35597 video mode panel on SDM660 for dynamic bit clock feature. Change-Id: I597bb43bf8f93aa6d98afff5d5b8973689460b41 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
2018-10-08i2c-msm-v2: Handle Null pointer de-referenceVipin Deep Kaur
Zero message may be passed causing null pointer de-reference. Adding check on the number of messages passed to handle the issue. Change-Id: I7cef6dd2070c5eaaa748698c45540f8aa1d96116 Signed-off-by: Vipin Deep Kaur <vkaur@codeaurora.org>
2018-10-08ARM: dts: msm: remove HOME gpio key for qrd devicesFei Mao
For qrd devices, remove HOME gpio key to fix driver probe issue. Change-Id: I46ba4ef05c795fced67f2db59a3f5ce183bdeba8 Signed-off-by: Fei Mao <feim1@codeaurora.org>
2018-10-08Merge android-4.4.159 (624c095) into msm-4.4Srinivasarao P
* refs/heads/tmp-624c095 Linux 4.4.159 iw_cxgb4: only allow 1 flush on user qps HID: sony: Support DS4 dongle HID: sony: Update device ids arm64: Add trace_hardirqs_off annotation in ret_to_user ext4: don't mark mmp buffer head dirty ext4: fix online resizing for bigalloc file systems with a 1k block size ext4: fix online resize's handling of a too-small final block group ext4: recalucate superblock checksum after updating free blocks/inodes ext4: avoid divide by zero fault when deleting corrupted inline directories tty: vt_ioctl: fix potential Spectre v1 drm/nouveau/drm/nouveau: Use pm_runtime_get_noresume() in connector_detect() ocfs2: fix ocfs2 read block panic scsi: target: iscsi: Use hex2bin instead of a re-implementation neighbour: confirm neigh entries when ARP packet is received net: hp100: fix always-true check for link up state net/appletalk: fix minor pointer leak to userspace in SIOCFINDIPDDPRT ipv6: fix possible use-after-free in ip6_xmit() gso_segment: Reset skb->mac_len after modifying network header mm: shmem.c: Correctly annotate new inodes for lockdep ring-buffer: Allow for rescheduling when removing pages xen/x86/vpmu: Zero struct pt_regs before calling into sample handling code xen/netfront: don't bug in case of too many frags platform/x86: alienware-wmi: Correct a memory leak ALSA: emu10k1: fix possible info leak to userspace on SNDRV_EMU10K1_IOCTL_INFO ALSA: bebob: use address returned by kmalloc() instead of kernel stack for streaming DMA mapping ASoC: cs4265: fix MMTLR Data switch control NFC: Fix the number of pipes NFC: Fix possible memory corruption when handling SHDLC I-Frame commands ANDROID: restrict store of prefer_idle as boolean f2fs: readahead encrypted block during GC f2fs: avoid fi->i_gc_rwsem[WRITE] lock in f2fs_gc f2fs: fix performance issue observed with multi-thread sequential read f2fs: fix to skip verifying block address for non-regular inode f2fs: rework fault injection handling to avoid a warning f2fs: support fault_type mount option f2fs: fix to return success when trimming meta area f2fs: fix use-after-free of dicard command entry f2fs: support discard submission error injection f2fs: split discard command in prior to block layer f2fs: wake up gc thread immediately when gc_urgent is set f2fs: fix incorrect range->len in f2fs_trim_fs() f2fs: refresh recent accessed nat entry in lru list f2fs: fix avoid race between truncate and background GC f2fs: avoid race between zero_range and background GC f2fs: fix to do sanity check with block address in main area v2 f2fs: fix to do sanity check with inline flags f2fs: fix to reset i_gc_failures correctly f2fs: fix invalid memory access f2fs: fix to avoid broken of dnode block list f2fs: use true and false for boolean values f2fs: fix to do sanity check with cp_pack_start_sum f2fs: avoid f2fs_bug_on() in cp_error case f2fs: fix to clear PG_checked flag in set_page_dirty() f2fs: fix to active page in lru list for read path f2fs: don't keep meta pages used for block migration f2fs: fix to restrict mount condition when without CONFIG_QUOTA f2fs: quota: do not mount as RDWR without QUOTA if quota feature enabled f2fs: quota: fix incorrect comments f2fs: add proc entry to show victim_secmap bitmap f2fs: let checkpoint flush dnode page of regular f2fs: issue discard align to section in LFS mode f2fs: don't allow any writes on aborted atomic writes f2fs: restrict setting up inode.i_advise f2fs: fix wrong kernel message when recover fsync data on ro fs f2fs: clean up ioctl interface naming f2fs: clean up with f2fs_is_{atomic,volatile}_file() f2fs: clean up with f2fs_encrypted_inode() f2fs: clean up with get_current_nat_page f2fs: kill EXT_TREE_VEC_SIZE f2fs: avoid duplicated permission check for "trusted." xattrs f2fs: fix to propagate error from __get_meta_page() f2fs: fix to do sanity check with i_extra_isize f2fs: blk_finish_plug of submit_bio in lfs mode f2fs: do not set free of current section f2fs: Keep alloc_valid_block_count in sync f2fs: issue small discard by LBA order f2fs: stop issuing discard immediately if there is queued IO f2fs: clean up with IS_INODE() f2fs: detect bug_on in f2fs_wait_discard_bios f2fs: fix defined but not used build warnings f2fs: enable real-time discard by default f2fs: fix to detect looped node chain correctly f2fs: fix to do sanity check with block address in main area f2fs: fix to skip GC if type in SSA and SIT is inconsistent f2fs: try grabbing node page lock aggressively in sync scenario f2fs: show the fsync_mode=nobarrier mount option f2fs: check the right return value of memory alloc function f2fs: Replace strncpy with memcpy f2fs: avoid the global name 'fault_name' f2fs: fix to do sanity check with reserved blkaddr of inline inode f2fs: fix to do sanity check with node footer and iblocks f2fs: Allocate and stat mem used by free nid bitmap more accurately f2fs: fix to do sanity check with user_block_count f2fs: fix to do sanity check with extra_attr feature f2fs: fix to correct return value of f2fs_trim_fs f2fs: fix to do sanity check with {sit,nat}_ver_bitmap_bytesize f2fs: fix to do sanity check with secs_per_zone f2fs: disable f2fs_check_rb_tree_consistence f2fs: introduce and spread verify_blkaddr f2fs: use timespec64 for inode timestamps f2fs: fix to wait on page writeback before updating page f2fs: assign REQ_RAHEAD to bio for ->readpages f2fs: fix a hungtask problem caused by congestion_wait f2fs: Fix uninitialized return in f2fs_ioc_shutdown() f2fs: don't issue discard commands in online discard is on f2fs: fix to propagate return value of scan_nat_page() f2fs: support in-memory inode checksum when checking consistency f2fs: fix error path of fill_super f2fs: relocate readdir_ra configure initialization f2fs: move s_res{u,g}id initialization to default_options() f2fs: don't acquire orphan ino during recovery f2fs: avoid potential deadlock in f2fs_sbi_store f2fs: indicate shutdown f2fs to allow unmount successfully f2fs: keep meta pages in cp_error state f2fs: do checkpoint in kill_sb f2fs: allow wrong configured dio to buffered write f2fs: flush journal nat entries for nat_bits during unmount Conflicts: drivers/hid/hid-core.c Change-Id: Idc486f778059ca65307ab08678f3b1e23c4ec15f Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
2018-10-07soc: hab: refine codes to support multi importYajun Li
Make HAB clients have chance to import the same export id to fd and uva before unimport happens. Change-Id: I59fdc701dcdc086e58865fa216b10f9fe6a45e29 Signed-off-by: Yajun Li <yajunl@codeaurora.org>
2018-10-07soc: qcom: hab: fix the leak risk in hab_vchan_getYao Jiang
When getting a vchan after receiving a message, it has probability that this vchan is closed concurrently. So when refcount is increased by kref_get_unless_zero, but flag vchan->otherend_closed or vchan->closed is true at this time, it will return vchan as NULL, and the hab_vchan_put will not be called in hab_msg_rev. So adjust the timing here can avoid the leak risk. Change-Id: If78c1c41bc4fd05b3288c0324bb9e0aed8493c5f Signed-off-by: Yao Jiang <yaojia@codeaurora.org>
2018-10-07soc: qcom: hab: replace kref_get with kref_get_unless_zeroYao Jiang
If refcount was 0 before increment, it maybe has a race condition that this kref is freeing by some other thread right now. In this case we should not increments refcount, so replace with kref_get_unless_zero. Change-Id: Ic15eaefc111770a966094d05b19eca2a04d52fc2 Signed-off-by: Yao Jiang <yaojia@codeaurora.org>