rtc: fix clock sync after boot-up#6
Open
Noob-214 wants to merge 456 commits intoxiaomi-ulysse:lineage-17.1from
Noob-214:patch-1
Open
rtc: fix clock sync after boot-up#6Noob-214 wants to merge 456 commits intoxiaomi-ulysse:lineage-17.1from Noob-214:patch-1
Noob-214 wants to merge 456 commits intoxiaomi-ulysse:lineage-17.1from
Noob-214:patch-1
Conversation
The IIO buffer is dereference to NULL when user space application trying to change the parameters of iio buffer while driver pushing data to iio buffer. The issue is solved by using proper initialization of iio buffer and using standard api to push the data to iio buffer so that driver will do proper conditon checking before changing the parameters of buffer and before pushing the data. Change-Id: I6c9b015fc2915c0d6f635e488305290a36eb9221 Signed-off-by: Puneet Yatnal <puneet@codeaurora.org>
Adding code changes to validate buffer size. While calling ipa_read verifying the kernel buffer size in range or not. Change-Id: Idc608c2cf0587a00f19ece38a4eb646f7fde68e3 Signed-off-by: Praveen Kurapati <pkurapat@codeaurora.org>
Disable APC CPR under 10 degC and re-enable it at 15degC. This is for device stability at cold temperature. Change-Id: I6c9b015fc2915c0d6f635e488305290a36eb9222 Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
Currently we are not validating read and write index of tx and rx fifo's before calculating ptr, this can lead to out-of-bound access. The patch adds proper check for the same. Change-Id: I7b158e94ae743a90ac364783fe31914ca0fa582b Signed-off-by: Hardik Arya <harya@codeaurora.org>
We call arm64_apply_bp_hardening() from post_ttbr_update_workaround, which has the unexpected consequence of being triggered on every exception return to userspace when ARM64_SW_TTBR0_PAN is selected, even if no context switch actually occured. This is a bit suboptimal, and it would be more logical to only invalidate the branch predictor when we actually switch to a different mm. In order to solve this, move the call to arm64_apply_bp_hardening() into check_and_switch_context(), where we're guaranteed to pick a different mm context. Change-Id: I28f2fb09b77544e5ead095e9dad1ad64b2b3ae36 Acked-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Git-commit: a8e4c0a919ae310944ed2c9ace11cf3ccd8a609b Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git Signed-off-by: Srinivas Ramana <sramana@codeaurora.org> Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
Doing a cat on pte,test_virt_addr from adb shell prints a null character as well which is at the end of the string this is not required so, don't pass this null character to copy_to_user. Change-Id: I8d9120f64d1df84a704379eb00bd239fc7059e9e Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org> Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
Changes in 3.18.135: (108 commits)
staging: iio: adc: ad7280a: handle error from __ad7280_read32()
ARM: 8808/1: kexec:offline panic_smp_self_stop CPU
dlm: Don't swamp the CPU with callbacks queued during recovery
x86/PCI: Fix Broadcom CNB20LE unintended sign extension (redux)
powerpc/pseries: add of_node_put() in dlpar_detach_node()
serial: fsl_lpuart: clear parity enable bit when disable parity
staging:iio:ad2s90: Make probe handle spi_setup failure
staging: iio: ad7780: update voltage on read
ARM: OMAP2+: hwmod: Fix some section annotations
modpost: validate symbol names also in find_elf_symbol
perf tools: Add Hygon Dhyana support
soc/tegra: Don't leak device tree node reference
f2fs: move dir data flush to write checkpoint process
nfsd4: fix crash on writing v4_end_grace before nfsd startup
arm64: ftrace: don't adjust the LR value
media: DaVinci-VPBE: fix error handling in vpbe_initialize()
smack: fix access permissions for keyring
usb: hub: delay hub autosuspend if USB3 port is still link training
timekeeping: Use proper seqcount initializer
ARM: dts: Fix OMAP4430 SDP Ethernet startup
mips: bpf: fix encoding bug for mm_srlv32_op
sata_rcar: fix deferred probing
clk: imx6sl: ensure MMDC CH0 handshake is bypassed
cpuidle: big.LITTLE: fix refcount leak
udf: Fix BUG on corrupted inode
ARM: pxa: avoid section mismatch warning
ASoC: fsl: Fix SND_SOC_EUKREA_TLV320 build error on i.MX8M
memstick: Prevent memstick host from getting runtime suspended during card detection
arm64: KVM: Skip MMIO insn after emulation
powerpc/uaccess: fix warning/error with access_ok()
xfrm6_tunnel: Fix spi check in __xfrm6_tunnel_alloc_spi
drbd: narrow rcu_read_lock in drbd_sync_handshake
drbd: disconnect, if the wrong UUIDs are attached on a connected peer
drbd: skip spurious timeout (ping-timeo) when failing promote
drbd: Avoid Clang warning about pointless switch statment
video: clps711x-fb: release disp device node in probe()
fbdev: fbmem: behave better with small rotated displays and many CPUs
igb: Fix an issue that PME is not enabled during runtime suspend
fbdev: fbcon: Fix unregister crash when more than one framebuffer
NFS: nfs_compare_mount_options always compare auth flavors.
hwmon: (lm80) fix a missing check of the status of SMBus read
hwmon: (lm80) fix a missing check of bus read in lm80 probe
crypto: ux500 - Use proper enum in cryp_set_dma_transfer
crypto: ux500 - Use proper enum in hash_set_dma_transfer
cifs: check ntwrk_buf_start for NULL before dereferencing it
um: Avoid marking pages with "changed protection"
niu: fix missing checks of niu_pci_eeprom_read
scripts/decode_stacktrace: only strip base path when a prefix of the path
ocfs2: don't clear bh uptodate for block read
isdn: hisax: hfc_pci: Fix a possible concurrency use-after-free bug in HFCPCI_l1hw()
gdrom: fix a memory leak bug
block/swim3: Fix -EBUSY error when re-opening device after unmount
kernel/hung_task.c: break RCU locks based on jiffies
fs/epoll: drop ovflist branch prediction
exec: load_script: don't blindly truncate shebang string
thermal: hwmon: inline helpers when CONFIG_THERMAL_HWMON is not set
dccp: fool proof ccid_hc_[rt]x_parse_options()
skge: potential memory corruption in skge_get_regs()
net: systemport: Fix WoL with password after deep sleep
net: dsa: slave: Don't propagate flag changes on down slave interfaces
enic: fix checksum validation for IPv6
ALSA: compress: Fix stop handling on compressed capture streams
fuse: call pipe_buf_release() under pipe lock
fuse: decrement NR_WRITEBACK_TEMP on the right page
fuse: handle zero sized retrieve correctly
dmaengine: imx-dma: fix wrong callback invoke
usb: phy: am335x: fix race condition in _probe
usb: gadget: udc: net2272: Fix bitwise and boolean operations
KVM: x86: work around leak of uninitialized stack contents (CVE-2019-7222)
KVM: nVMX: unconditionally cancel preemption timer in free_nested (CVE-2019-7221)
perf/x86/intel/uncore: Add Node ID mask
perf/core: Don't WARN() for impossible ring-buffer sizes
perf tests evsel-tp-sched: Fix bitwise operator
mtd: rawnand: gpmi: fix MX28 bus master lockup problem
signal: Always notice exiting tasks
signal: Better detection of synchronous signals
misc: vexpress: Off by one in vexpress_syscfg_exec()
debugfs: fix debugfs_rename parameter checking
MIPS: OCTEON: don't set octeon_dma_bar_type if PCI is disabled
ARM: iop32x/n2100: fix PCI IRQ mapping
drm/modes: Prevent division by zero htotal
drm/vmwgfx: Fix setting of dma masks
drm/vmwgfx: Return error code from vmw_execbuf_copy_fence_user
HID: debug: fix the ring buffer implementation
libceph: avoid KEEPALIVE_PENDING races in ceph_con_keepalive()
xfrm: refine validation of template and selector families
batman-adv: Avoid WARN on net_device without parent in netns
batman-adv: Force mac header to start of data on xmit
usb: host: ehci-msm: fix handling platform_get_irq result
Revert "exec: load_script: don't blindly truncate shebang string"
ARM: dts: da850-evm: Correct the sound card name
ARM: dts: kirkwood: Fix polarity of GPIO fan lines
gpio: pl061: handle failed allocations
cifs: Limit memory used by lock request calls to a page
perf/core: Fix impossible ring-buffer sizes warning
ALSA: usb-audio: Fix implicit fb endpoint setup by quirk
Input: bma150 - register input device after setting private data
Input: elantech - enable 3rd button support on Fujitsu CELSIUS H780
alpha: fix page fault handling for r16-r18 targets
alpha: Fix Eiger NR_IRQS to 128
tracing/uprobes: Fix output for multiple string arguments
signal: Restore the stop PTRACE_EVENT_EXIT
x86/a.out: Clear the dump structure initially
smsc95xx: Use skb_cow_head to deal with cloned skbs
kaweth: use skb_cow_head() to deal with cloned skbs
usb: dwc2: Remove unnecessary kfree
pinctrl: msm: fix gpio-hog related boot issues
Linux 3.18.135
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Conflicts:
drivers/usb/host/ehci-msm.c
Initialize global mutex with DEFINE_MUTEX to avoid calling mutex_lock without mutex_init. CRs-fixed: 2392685 Change-Id: I847d86f493552524e8abec9a18525cdde8a8de23 Signed-off-by: Jhansi Konathala <cjkonat@codeaurora.org>
Change-Id: I2c73449f1e0e3033d7c056cbd412982647063aa3
Change-Id: If301e458a3a4b46b41efd41320d6692958809681
In low power mode stop DMA, turn off clocks and vsync. Change-Id: Ic6d4f1a2fdba9817633ba63c42f54f88e0c48d6f Signed-off-by: Animesh Kishore <animeshk@codeaurora.org>
During fb blank or dma stop check if there are any pending retire fences. Signal all. Change-Id: I24322c8eeb1afbd79c898d037b72b77df27a91fa Signed-off-by: Animesh Kishore <animeshk@codeaurora.org>
Changes in 3.18.136: (14 commits)
net: fix IPv6 prefix route residue
sky2: Increase D3 delay again
tcp: tcp_v4_err() should be more careful
tcp: clear icsk_backoff in tcp_write_queue_purge()
vxlan: test dev->flags & IFF_UP before calling netif_rx()
vsock: cope with memory allocation failure at socket creation time
net: stmmac: Fix a race in EEE enable callback
net: ipv4: use a dedicated counter for icmp_v4 redirect packets
hwmon: (lm80) Fix missing unlock on error in set_fan_div()
kvm: fix kvm_ioctl_create_device() reference counting (CVE-2019-6974)
net/x25: do not hold the cpu too long in x25_new_lci()
mISDN: fix a race in dev_expire_timer()
ax25: fix possible use-after-free
Linux 3.18.136
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Adding code changes to validate buffer size. While calling ipa_read verifying the kernel buffer size in range or not. Change-Id: I5c9a908b0500a5f0148ec7764425897570bdd713 Signed-off-by: Praveen Kurapati <pkurapat@codeaurora.org>
Power configuration is a value measured as HxW of a video session. If the resolution of current video session meets this value, the session will be configured in low power mode to get power benefits. CRs-Fixed: 1106972 Change-Id: Ibe4eba7a76a070b1bc02caff89cfb871993043c2 Signed-off-by: Sanjay Singh <sisanj@codeaurora.org>
Host will set the Venus firmware in below modes 1. If the load of current video session exceeds the venus capability, video driver sets power save mode for that session. 2. If an usecase is recommended to run in power save mode to get power benefits, video driver configures the session in power save mode. 3. If any V4L2 client makes an explicit call to configure the usecase in a certain perf mode, video driver sets the same to venus firmware, unless restricted by core capability. CRs-Fixed: 1106972 Change-Id: Ib8be6c9af1508389edc9cb6444531c6e711b6a11 Signed-off-by: Sanjay Singh <sisanj@codeaurora.org>
Video session is made to run in TURBO mode during various stages of the session. Video instance load do not reflect the actual video load which can be utilized to initialize DCVS state from the DCVS table. Change-Id: I539a7098159e6486e3c436c449a540c5ac60d6d3 Signed-off-by: Sanjay Singh <sisanj@codeaurora.org>
Check if packet size is large enough to hold the header. Change-Id: I7261f8111d8b5f4f7c181e469de248a732242d64 Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Channel_mapping array size varies for different commands. Add check for num_channels before calling q6asm_map_channels. Change-Id: Iccbcfe82f716fc0ffe0a26b1779dcaa1c3cb805b Signed-off-by: Rohit kumar <rohitkr@codeaurora.org>
Add range check to make sure the received audio port index from ADSP is within the valid range. Change-Id: Ief647df1659f7f349a843f666d8f92f34a9a43be Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
"LA.UM.7.5.r1-04300-8x96.0" * tag 'LA.UM.7.5.r1-04300-8x96.0': iommu: iommu-debug: don't pass null character to copy_to_user arm64: Move BP hardening to check_and_switch_context soc: qcom: Validate read and write index before calculating ptr ARM: dts: msm: Disable APC CPR at cold for 9x07 msm: ipa: Fix to validate the buffer size drivers: iio: imu: Fix NULL pointer dereference in bmi160 driver msm: vidc: ensure codec count is in supported session range iommu: dma-mapping-fast: Add a check for count in fast_smmu_alloc ARM: dts: mdm: Disable dynamic address for wlan ramdump checkpatch: Treat duplicate signatures as a different error class usb: gadget: f_mbim: Handle response complete before notify_complete usb: gadget: f_mbim: Use notify_req_queued instead of notify_count usb: gadget: f_mbim: Remove usage of notify_state SoC: msm: Add global mutex lock to fix the panic issue diag: Mark Buffer as NULL after freeing iommu/iommu-debug: fix buffer overflows in debugfs read functions ARM: dts: mdm: Enable dynamic address for wlan ramdump msm: ais: ispif: Fix invalid type conversion diag: Handle data ready notification properly msm: wlan: Update ETSI1 and ETSI13 countries msm: camera: isp: Fix invalid type conversion mdm: Update frequence & Tx power in the regulatory database netfilter: x_tables: kill check_entry helper drivers: iio: imu: increased the ASM buffer size defconfig: 8909: enable CONFIG_NETFILTER_XT_TARGET_TEE for iwlan scenarios ANDROID: sdcardfs: Change current->fs under lock msm: mdss: save state of vsync handler ANDROID: sdcardfs: Don't use OVERRIDE_CRED macro Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
The range checking for audio buffer copying in function "audio_in_write" is using the incorrect buffer size. Change it to the actual allocated audio buffer size. Change-Id: Ib7aaa2163c0d99161369eb85d09dc2d23d8c787b Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
This reverts commit 6c8635a.
…g/quic/la/kernel/msm-3.18 into pie "LA.UM.7.6.r1-05900-89xx.0"
mount cust as /vendor for treble support
# Enable double tap to wake by default for Goodix-TS
# Fix Goodix fingerprint driver
# Fix Goodix fingerprint driver
# Fix reboot recovery in latest firmware
This switches over to propagation_next to respect
namepsace semantics.
Test: Remounting to change the options of a fs with mount based
options should propagate to all shared copies of that mount,
and the slaves/indirect slaves of those.
Bug: 122428178
Signed-off-by: Daniel Rosenberg <drosen@google.com>
Change-Id: Ic35cd2782a646435689f5bedfa1f218fe4ab8254
Signed-off-by: SunnyRaj84348 <sunnyraj7461@gmail.com>
Temporary fix for broken brightness slider on shenchao panel Signed-off-by: R. Adi Permana <romadhonadipermana279f@gmail.com>
# Enable double tap to wake by default for FT5435-TS
NAT invalid protocol is needed by user space process. Move it to uapi to make it accessible to user space. Change-Id: I4d1700176483c93f78f48979d602f7568867b378 Acked-by: Michal Amsterdam <mamsterd@qti.qualcomm.com> Signed-off-by: Amir Levy <alevy@codeaurora.org>
# ugg: dts: Fix brightness slider for shenchao ili9881c 720p video mode dsi panel
This reverts commit 8e81ba6.
#Thanks to dorimanx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#Thanks to dorimanx