Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
298 commits
Select commit Hold shift + click to select a range
519985d
ANDROID: fuse: Add null terminator to path in canonical path to avoid…
Mar 19, 2018
9641713
ANDROID: sdcardfs: Check for private data earlier
drosen-google Apr 11, 2018
f1b49f9
ANDROID: sdcardfs: d_make_root calls iput
drosen-google Apr 11, 2018
5ae9bd8
ANDROID: sdcardfs: Set s_root to NULL after putting
drosen-google Apr 12, 2018
1733d6e
video: mdss: remove erroneous mutex_unlock
May 16, 2016
25d5985
binder: always allocate/map first BINDER_MIN_ALLOC pages
Aug 1, 2017
c21d25f
array_index_nospec: Sanitize speculative array de-references
djbw Jan 30, 2018
45a075b
nospec: Move array_index_nospec() parameter checking into separate macro
wildea01 Feb 5, 2018
5f372aa
nospec: Kill array_index_nospec_mask_check()
djbw Feb 16, 2018
54d92a1
nospec: Allow index argument to have const-qualified type
Villemoes Feb 16, 2018
b442486
nospec: Include <asm/barrier.h> dependency
djbw Feb 16, 2018
b48aa3b
posix-timers: Protect posix clock array access against speculation
KAGA-KOKO Feb 15, 2018
c9c2d4a
vfs, fdtable: Prevent bounds-check bypass via speculative execution
djbw Jun 4, 2018
7faabbc
nl80211: Sanitize array index in parse_txq_params
djbw Jan 30, 2018
e573a6d
msm: sensor: actuator: check NULL pointer for actuator ctrl
Dec 1, 2017
5b78a00
msm: sensor: actuator: add null pointer check for i2c array
Dec 5, 2017
6fc3fd7
msm: sensor: actuator: fix out of bound read for region params
Dec 28, 2017
aa3db7a
Input: gtco - fix potential out-of-bound access
dtor Oct 23, 2017
0cc43eb
msm: mdss: adjust mdss_mdp_get_plane_sizes parameters init order
Nov 14, 2017
99e34a9
msm: ADSPRPC: use access_ok to validate pointers
spyffe Apr 3, 2018
7fcfb17
op2: dts: store dm-verity state persistently on device
randomhydrosol Jun 12, 2018
0fbf12d
op2: dts: fix derp
randomhydrosol Jun 12, 2018
c7e9877
UPSTREAM: HID: Bluetooth: hidp: make sure input buffers are big enough
Dec 19, 2013
58036c5
ANDROID: Bluetooth: hidp: buffer overflow in hidp_process_report
Jan 16, 2018
78dc902
diag: Add conditional check for len in dci_process_ctrl_status()
Jan 29, 2018
c5471f0
diag: dci: check signed values for negativity
Apr 6, 2018
7ab37aa
msm: ADSPRPC: Use ID in response to get context pointer
Jan 30, 2018
c29cb90
Revert "Add PowerSuspend v1.5 Driver"
randomhydrosol Jun 13, 2018
2663495
Revert "power: quickwakeup: initial driver"
randomhydrosol Jun 13, 2018
448f08e
defconfig: cleanup junk values
randomhydrosol Jun 13, 2018
a4e8a5f
Revert "cpuidle: kick all cpu after idle handler installed"
randomhydrosol Jun 13, 2018
c78cdd3
Revert "drivers: cpuidle: Remove counting of last_residency"
randomhydrosol Jun 13, 2018
26b7e5a
Revert "cpuidle: simplify multiple driver support"
randomhydrosol Jun 13, 2018
d661c5b
Revert "lpm_levels: Avoid race by preventing hotplug during lpm probe"
randomhydrosol Jun 13, 2018
5d084f4
Revert "cpuidle: lpm_levels: Remove duplicate cpuidle tracepoints"
randomhydrosol Jun 13, 2018
11a3f5e
Revert "cpuidle: lpm-levels: Remove local_irq_enable from lpm_cpuidle…
randomhydrosol Jun 13, 2018
12e8d41
Revert "lpm-levels: Check for need_resched just before entering PSCI"
randomhydrosol Jun 13, 2018
c3c4a2b
Revert "lpm-levels: Add QCOM cpuidle governor"
randomhydrosol Jun 13, 2018
aaf2fc7
Revert "lpm-levels: Fix driver registration after API change"
randomhydrosol Jun 13, 2018
8bc2487
Revert "lpm-levels: Use residency instead of power and energy overhea…
randomhydrosol Jun 13, 2018
a73e9f8
Revert "msm: lpm-levels: Log CPU lpm enter exit events"
randomhydrosol Jun 13, 2018
b134bf8
Revert "power: qcom: Select CPU_IDLE_MULTIPLE_DRIVERS"
randomhydrosol Jun 13, 2018
1b2a03b
Revert "msm: lpm-levels: add suspend_again handler"
randomhydrosol Jun 13, 2018
d9bafc6
Revert "drivers: cpuidle: msm: Use 64 bit type for sclk"
randomhydrosol Jun 13, 2018
5b52f8f
Revert "drivers: lpm-levels: Don't allow idle low power modes during …
randomhydrosol Jun 13, 2018
7427a4e
Revert "cpuidle: lpm-levels: Rename cpumask variable name"
randomhydrosol Jun 13, 2018
a44777c
Revert "msm: lpm-levels: Modify ftrace events to track latency/sleep …
randomhydrosol Jun 13, 2018
81d293a
Revert "drivers: lpm-levels: Update cpu mask to get cluster sleep time"
randomhydrosol Jun 13, 2018
391b0fa
Revert "drivers: lpm_levels: remove the BUG_ON in get_cluster_sleep_t…
randomhydrosol Jun 13, 2018
a34c6f2
Revert "drivers: lpm-workarounds: Misc bug fixes"
randomhydrosol Jun 13, 2018
c4d19dd
Revert "drivers: lpm-workarounds: Enable L1/L2 clock gating WA"
randomhydrosol Jun 13, 2018
7826c6c
Revert "msm: spm: Add new API to set only SPM start address"
randomhydrosol Jun 13, 2018
b8dec90
Revert "cpuidle: lpm-workarounds: Skip L2 spm programming in HLOS"
randomhydrosol Jun 13, 2018
19a78cf
Revert "msm: lpm-levels: Add ftrace events to track latency/sleep time"
randomhydrosol Jun 13, 2018
46b6ffa
Revert "lpm-levels: Add L3 flag to the smc call"
randomhydrosol Jun 13, 2018
70989ae
Revert "lpm-levels: Support l3 and cbf modes"
randomhydrosol Jun 13, 2018
658ca8f
Revert "drivers: lpm-levels: Provide API to set wake up time from sus…
randomhydrosol Jun 13, 2018
3cc7da3
Revert "msm: lpm-levels-of: Fix lockdep warnings"
randomhydrosol Jun 13, 2018
f6441e7
Revert "cpuidle: lpm-levels: Disable dynamic routing of interrupts"
randomhydrosol Jun 13, 2018
dbfa9cd
Revert "cpuidle: declare cpuidle_dev in cpuidle.h"
randomhydrosol Jun 13, 2018
06fae09
Revert "msm: mdss: kcal: Only apply updates on index 0"
randomhydrosol Jun 16, 2018
213a37f
Revert "msm: mdss: kcal: Use PCC for negative display mode"
randomhydrosol Jun 16, 2018
e85502b
Revert "msm: mdss: KCAL: Send a pp display commit when changes are made"
randomhydrosol Jun 16, 2018
91aff43
Revert "msm: mdss: KCAL: Do not read from picture adjustment registers"
randomhydrosol Jun 16, 2018
33c2494
Revert "msm: mdss: KCAL: Read values from MDP registers wherever poss…
randomhydrosol Jun 16, 2018
fa7a107
Revert "msm: mdss: KCAL: Apply default values on boot"
randomhydrosol Jun 16, 2018
c3e015f
Revert "msm: mdss: KCAL: Queue changes when panel is powered off"
randomhydrosol Jun 16, 2018
25f1cd9
Revert "msm: mdss: KCAL: Remove MODULE_DESCRIPTION"
randomhydrosol Jun 16, 2018
5441829
Revert "msm: mdss: KCAL: Update Kconfig description"
randomhydrosol Jun 16, 2018
ab2f460
Revert "msm: mdss: KCAL: Update according to linux guidelines and che…
randomhydrosol Jun 16, 2018
c14bf1f
Revert "msm: mdss: KCAL: Check panel power state before applying values"
randomhydrosol Jun 16, 2018
85860c0
Revert "msm: mdss: KCAL: Allow kcal_enable to control all post-proces…
randomhydrosol Jun 16, 2018
ad1b274
Revert "msm: mdss: Keep KCAL within its own source file"
randomhydrosol Jun 16, 2018
91c2960
Revert "msm: mdss: Remove deprecated __dev* markings"
randomhydrosol Jun 16, 2018
96747d9
Revert "msm: mdss: Add pa_v2 support to KCAL"
randomhydrosol Jun 16, 2018
068e29f
Revert "msm: mdss: Replace PGC implementation with PCC for KCAL"
randomhydrosol Jun 16, 2018
8d1280a
Revert "msm: mdss: Add KCAL support for post processing control [v2]"
randomhydrosol Jun 16, 2018
086d1d8
Revert "mdss_fb: add backlight dimmer option"
randomhydrosol Jun 16, 2018
1b0d9e8
haruhi_defconfig: remove junk values
randomhydrosol Jun 16, 2018
c0c1c94
fs: import sdFAT driver Op2 has a license to use exFAT on oxygenos
randomhydrosol Jun 18, 2018
2849efc
oneplus2: early mount vendor
randomhydrosol Jul 4, 2018
cbeb01a
Makefile: use strict alignment on the kernel
randomhydrosol Jul 4, 2018
7e48715
msm: mdss: fix race condition between rotator api's
Jan 19, 2018
b95fb4f
ASoC: msm: qdsp6v2: check for buffer size before read
Mar 6, 2018
f48160c
drivers: cpuidle: lpm-levels: Fix untrusted pointer dereference.
Nov 28, 2017
6764ba9
NFC: llcp: Limit size of SDP URI
kees Feb 14, 2018
5cca30d
msm: adsprpc: Use unsigned integer for length values
Apr 13, 2018
0d24559
soc: q6dspv2: apr: fix client registration refcount
Apr 11, 2017
20063c8
UPSTREAM: perf/hwbp: Simplify the perf-hwbp code, fix documentation
torvalds Mar 27, 2018
7d18576
UPSTREAM: tcp: avoid collapses in tcp_prune_queue() if possible
edumazet Jul 27, 2018
3d3f47a
UPSTREAM: tcp: detect malicious patterns in tcp_collapse_ofo_queue()
edumazet Jul 27, 2018
4da60cc
ANDROID: uid_sys_stats: rename uid_cputime.c to uid_sys_stats.c
Jan 11, 2017
759a6d9
ANDROID: uid_cputime: add per-uid IO usage accounting
Jan 11, 2017
1714fc4
ANDROID: uid_sys_stats: allow writing same state
Jan 18, 2017
9e742d6
ANDROID: uid_sys_stats: return full size when state is not changed.
Jan 20, 2017
12c6994
ANDROID: uid_sys_stats: remove unnecessary code in procstat switch
Feb 17, 2017
f12bb77
ANDROID: uid_sys_stats: fix negative write bytes.
Feb 28, 2017
261ab7d
ANDROID: sched: add a counter to track fsync
Mar 2, 2017
f32280a
ANDROID: uid_sys_stats: account for fsync syscalls
Mar 2, 2017
1d100c6
ANDROID: uid_sys_stats: change to use rt_mutex
weivincewang Mar 13, 2017
300b05b
ANDROID: uid_sys_stats: fix typo in init
Mar 14, 2017
16a4c11
ANDROID: uid_sys_stats: reduce update_io_stats overhead
Apr 14, 2017
d7736f7
ANDROID: uid_sys_stats: fix access of task_uid(task)
yzkqfll Apr 25, 2017
2be3a1e
ANDROID: uid_sys_stats: defer io stats calulation for dead tasks
May 22, 2017
5bb369e
uid_sys_stats: fix overflow when io usage delta is negative
Aug 8, 2017
a9ab967
ANDROID: uid_sys_stats: fix the comment
Flex1911 Jan 13, 2018
f8573ce
ANDROID: Skip building uid_sys_stats and keyreset drivers as modules
pundiramit Apr 11, 2017
28646f5
ANDROID: Kconfig: add depends for UID_SYS_STATS
yzkqfll May 24, 2017
0657d7f
android: recommended.cfg: enable taskstats
Feb 9, 2016
fcde433
scsi: libsas: fix memory leak in sas_smp_get_phy_events()CVE-2018-7757
JasonYanHw Jan 4, 2018
012b626
[PATCH] floppy: Do not copy a kernel pointer to user memory in FDGETP…
BobZhome Apr 1, 2018
55b020e
[PATCH] floppy: Don't print kernel addresses to log in show_floppy CV…
BobZhome Apr 1, 2018
9eb7195
netfilter: ebtables: CONFIG_COMPAT: don't trust userland offsets CVE-…
Feb 19, 2018
a832653
ALSA: msnd: Optimize / harden DSP and MIDI loops CVE-2017-9985
tiwai Jul 6, 2017
8a22089
ANDROID: scsi: Add segment checking in sg_read CVE-2017-13168
robepereira Oct 11, 2017
5f7f7b3
ASoC: core: Don't assign an out-of-bounds address to rtd_aux
kerneltoast May 2, 2017
0368500
power: msm-core: Fix mutex not getting unlocked in error path
kerneltoast Apr 9, 2017
02ae403
cpufreq: interactive: Skip timer when policy->min == policy->max
kerneltoast Mar 4, 2017
2324d3c
msm: mdss: Don't cache the address of a stack variable in timings init
kerneltoast Mar 21, 2017
3b0841e
UPSTREAM: timer: Export destroy_hrtimer_on_stack()
groeck May 27, 2016
658f4b7
ANDROID: sdcardfs: Don't d_drop in d_revalidate
drosen-google Apr 25, 2018
da73c0e
UPSTREAM: dm bufio: avoid sleeping while holding the dm_bufio lock
dianders Nov 17, 2016
f056f65
ktime: add ktime_after and ktime_before helper
Jun 11, 2014
100c477
ktime: Change ktime_set() to take 64bit seconds value
johnstultz-work Jul 16, 2014
342a61e
qcacld-2.0: Check vdev_id against wma->max_bssid
Oct 18, 2017
587b3d0
qcacld-2.0: Avoid possible buffer overwrite in wma_process_utf_event
Nov 30, 2017
5363432
qcacld-2.0: Check for valid vdev ID in wma_nlo_match_evt_handler
Oct 3, 2017
8e28f0a
qcacld-2.0: Check for the max number of P2P NOA descriptors
Oct 31, 2017
2b3043c
qcacld-2.0: Check for upper bound in P2P NOA event
Sep 28, 2017
e08f38f
qcacld-2.0: Set length of challenge text sent by SAP to 128
Oct 2, 2017
b444d3e
qcacld-2.0: Add sanity check to limit mgmt frames data len
Dec 1, 2017
846cf9d
qcacld-2.0: Fix potential buffer overflow in process_tx_info
Dec 6, 2017
777344b
qcacld-2.0: Fix potential buffer overflow in ol_rx_flush_handler
Dec 6, 2017
a2b4bed
qcacld-2.0: Fix potential buffer overflow in htt_t2h_lp_msg_handler
Dec 1, 2017
3e10f77
qcacld-2.0: Fix buffer overrun in function ProcSetReqInternal
Nov 20, 2017
7d24cbf
qcacld-2.0: Fix buffer overread in wma_extscan_hotlist_match_event_ha…
Dec 20, 2017
41dd1a4
qcacld-2.0: Calculate buf_len properly for extscan hotlist event buffer
Jan 11, 2018
dd88546
qcacld-2.0: Add sanity check for vdev id to prevent OOB access
Feb 14, 2018
fa69ae0
qcacld-2.0: Add sanity check for vdev_id in wma_wow_wakeup_host_event
Feb 14, 2018
8ffb8d2
qcacld-2.0: Add mutex lock for proc handlers
Jan 22, 2018
e35fc78
qcacld-2.0: Fix buffer overwrite due to ssid_len in WMA handlers
Dec 21, 2017
174ee86
qcacld-2.0: Avoid buffer overflow
Dec 8, 2017
3a81df5
qcacld-2.0: Fix potential buffer overflow for TX_COMPL_IND
Dec 6, 2017
1306eda
qcacld-2.0: Avoid possible stack overflow in hdd_ProcessGENIE API
Nov 29, 2017
5790063
qcacld-2.0: Fix memory leak for txrx_fw_stats cmd
Jan 2, 2018
7e5e4ac
qcacld-2.0: Dump the txrx stat req if the queue is not empty
Sep 26, 2017
9eb19b0
qcacld-2.0: Fix potential buffer overwrite
Dec 6, 2017
f9dd3a4
qcacld-2.0: Fix potential buffer overwrite in wma_vdev_start_rsp_ind
Dec 12, 2017
7eb5716
qcacld-2.0: Fix potential buffer overflow
Dec 4, 2017
d300464
qcacld-2.0: Add data_len check to avoid OOB access
Jan 11, 2018
4f0494d
ANDROID: sdcardfs: fix potential crash when reserved_mb is not zero
Jun 16, 2018
009730f
ALSA: pcm: add locks for accessing runtime resource
Sep 28, 2017
2fc793d
oc: qcom: rpm-smd-debug: Fix potential memory leaks
Dec 21, 2017
8d5ef61
soc: qcom: pil: Fix error handling during PIL driver probe
Oct 25, 2017
a406fd0
qseecom: Add new ioctl to export qsee version
Nov 25, 2016
834ca45
dwc3: debugfs: Add check for length before copy data from userspace
Jan 16, 2018
6c247ca
ASoC: wcd_cpe_core: add size check for WDSP ELF files
Jan 16, 2018
998445c
drivers: soc: Synchronize apr callback and voice svc release
Nov 14, 2017
70a2989
ASoC: msm: qdspv2: add spin lock to protect ac
Jan 18, 2018
e273c78
dev_freq: devfreq_spdm: add null terminator to prevent OOB access
Sep 25, 2017
47fabca
msm: thermal: Pass correct size of voltage table to IOCTL
Feb 13, 2018
23ba138
msm: kgsl: Increase memstore size
Jan 31, 2018
bcf1a0d
msm: ipa: Prevent deletion of the default route rule
Jan 31, 2018
644afc8
diag: Validate copying length against source buffer length
Jan 17, 2018
ecefb80
usb: dwc3: dbm: Fix double free in msm_dbm_probe
Mar 15, 2018
0a2a704
new helper: dentry_free()
Apr 30, 2014
aa115c0
Allow sharing external names after __d_move()
Mar 11, 2018
18965a2
fs/buffer.c: increase the buffer-head per-CPU LRU size
sebastienbuisson Oct 9, 2014
b4dfa52
futex: move user address verification up to common code
torvalds Dec 12, 2013
7706ca6
haruhi_defconfig: update defconfig for UID_SYS_STAT
randomhydrosol Jul 31, 2018
a141c16
Revert "haruhi_defconfig: update defconfig for UID_SYS_STAT"
randomhydrosol Jul 31, 2018
30e460f
msm: ipa: rmnet: Make code changes with respect to CR#2046006
Apr 19, 2018
d62916c
diag: Protect the decrement of number of diag clients
Jan 23, 2018
e7df470
msm: mdss: check buffer size before writing to user buffer
Mar 23, 2018
cdd0164
msm: camera: Fix for Possible information leak issue
Apr 11, 2018
9970f23
drivers: qcom: lpm-stats: Fix undefined access error
Mar 7, 2018
4dd6522
mmc: clk_scaling: set scale_down_in_low_wr_load to 1 by default
flar2 Aug 14, 2015
34c707b
ARM: spectre: add Kconfig symbol for CPUs vulnerable to Spectre
May 14, 2018
05f74d5
FROMLIST: binder: fix proc->files use-after-free
toddkjos Nov 10, 2017
3dad9c3
ARM: spectre-v1: add speculation barrier (csdb) macros
May 11, 2018
8a3cb69
ARM: spectre-v1: add array_index_mask_nospec() implementation
May 11, 2018
a43d2bb
ARM: spectre-v1: fix syscall entry
May 11, 2018
2f4f14b
ANDROID: Revert "net: increase fragment memory usage limits"
greghackmann Aug 6, 2018
164003d
net/wireguard: update wireguard importer (squashed)
randomhydrosol Aug 15, 2018
c3cddb2
travis-ci: clone toolchain faster
randomhydrosol Aug 15, 2018
1607a69
sdfat: catch up to version 2.0.8
randomhydrosol Aug 21, 2018
a0fe924
Revert "Revert "msm8994: update idle cost values from electron kernel…
randomhydrosol Aug 21, 2018
4d8f1b1
uid_sys_stats: make hash_table static
gregkh Jul 20, 2017
6c8131b
uid_sys_stats: log task io with a debug flag
Jul 26, 2017
0829783
ANDROID: Fix missing header file for get_cmdline() call
Jul 31, 2017
9881b40
mdss: livedisplay: Fix memory leaks in mdss_livedisplay_update()
kerneltoast Mar 19, 2017
6ee82b9
mmc: clk_scaling: Fix scale_down_in_low_wr_load sysfs return value
kerneltoast May 23, 2016
f8cdea1
input: synaptics: s3320: Fix unsafe memory accesses in procfs nodes
kerneltoast May 2, 2017
e5712ba
input: synaptics: s1302: Don't directly access user memory in fw_write
kerneltoast May 2, 2017
0c40fad
power: msm-core: Compile out temperature polling
kerneltoast Apr 25, 2017
87dc924
ARM: dts: Enable wakeup events for the volume keys
kerneltoast Aug 23, 2016
36170d9
msm: vidc: Fix broken debugfs creation error checks and error paths
kerneltoast Jul 2, 2017
3888ca3
net: sch_generic: Remove unnecessary watchdog warning
kerneltoast Feb 4, 2018
4cf7fd3
i2c-msm-v2: Ensure system is always active for i2c transfers
kerneltoast Feb 18, 2018
2f52e65
misc: fpc1020: Wait for uevent to send before exiting IRQ handler
kerneltoast Oct 20, 2016
a6d8461
PM / devfreq: Add a governor white list
kerneltoast Apr 24, 2017
3583ee3
msm: camera: sensor: Fix memory leaks when sensor probe fails
kerneltoast Mar 21, 2017
45508e8
sched: replace INIT_COMPLETION with reinit_completion
Nov 14, 2013
8a9cf24
mdss: livedisplay: Don't allow non-contiguous presets
javelinanddart Apr 1, 2018
19955c1
cpufreq_stats: Fix stats leak during update policy
jhrycay Nov 16, 2016
91c77fa
cfq-iosched: Don't group_idle if cfqq has big thinktime
Jan 12, 2016
3a9ea23
cfq-iosched: Reorder checks in cfq_should_preempt()
Jan 12, 2016
48b8201
cfq-iosched: Allow sync noidle workloads to preempt each other
Jan 12, 2016
e37f2d2
cfq-iosched: Allow parent cgroup to preempt its child
Jan 12, 2016
27b1d11
ASoC: wcdxxxx: queue work on power efficient wq
neobuddy89 Jul 14, 2017
fbf98e5
block: queue work on power efficient wq
vireshk Apr 24, 2013
9e305c7
block: remove WQ_POWER_EFFICIENT from kblockd
MatiasBjorling Jun 11, 2014
991bd73
firmware: use power efficient workqueue for unloading and aborting fw…
sdutta6804 Jan 31, 2014
a5d46ae
net: wireless: move regulatory timeout work to power efficient workqueue
sdutta6804 Jan 30, 2014
1467b14
rcu: Move SRCU grace period work to power efficient workqueue
sdutta6804 Jan 31, 2014
ff32bbb
net/ipv4: queue work on power efficient wq
vireshk Jan 22, 2014
e487d24
netfilter: xt_hashlimit: fix proc entry leak in netns destroy path
Dec 6, 2013
dfab4e5
netfilter: xt_hashlimit: perform garbage collection from process context
edumazet Jul 24, 2014
d4a6fb6
kernel/workqueue.c: remove ifdefs over wq_power_efficient
mcgrof May 27, 2015
bb812ea
power: move pm_qos update timeout handler to power-efficient workqueue
Jan 31, 2014
f45cf08
input: synaptics: s1302: Stop keypad when touchscreen is in use
kerneltoast Jul 17, 2016
a7a84ab
misc: fpc1020: Ignore home key presses when touchscreen is in use
kerneltoast Jul 17, 2016
99ef85b
misc: fpc1020: Fix s1302_is_keypad_stopped() logic for home key
kerneltoast Mar 31, 2017
a19bff1
input: synaptics: s1302: Make s1302_is_keypad_stopped() safe
kerneltoast Jan 6, 2017
97488d9
uapi: Define __BITS_PER_LONG based on compiler target
intervigilium Sep 4, 2018
83cf2d8
uapi: Export sockaddr_storage for userspace
intervigilium Sep 4, 2018
b0f5a60
[O_TMPFILE] it's still short a few helpers, but infrastructure should…
Jun 7, 2013
2ed1e42
allow the temp files created by open() to be linked to
Jun 11, 2013
2f85968
ext3 ->tmpfile() support
Jun 11, 2013
e0552c5
ext4: ->tmpfile() support
Jun 29, 2013
b44ed22
Safer ABI for O_TMPFILE
Jul 13, 2013
4276b90
allow O_TMPFILE to work with O_WRONLY
Jul 19, 2013
8215365
ext4: fix a BUG when opening a file with O_TMPFILE flag
gnehzuil Jul 21, 2013
5332149
ext3: fix a BUG when opening a file with O_TMPFILE flag
gnehzuil Jul 21, 2013
80c26e5
fs: Fix file mode for O_TMPFILE
amluto Aug 2, 2013
f7074ce
vfs: add missing check for __O_TMPFILE in fcntl_init()
gnehzuil Jul 25, 2013
5ff5d74
ext[34]: fix double put in tmpfile
Oct 10, 2013
b7fb21c
fs: allow open(dir, O_TMPFILE|..., 0) with mode 0
ericrannaud Oct 30, 2014
323807e
fs/proc: Override reboot boot mode with normal
moetayuko May 14, 2018
56623ca
Merge branch 'lineage-15.1' into lineage-16.0
randomhydrosol Sep 5, 2018
132bef9
dm-crypt: assume allow-discards is always true
randomhydrosol Sep 16, 2018
9cb97a1
Merge branch 'lineage-15.1' into lineage-16.0
randomhydrosol Sep 25, 2018
8a70be5
do_last(): fix missing checks for LAST_BIND case
Jun 6, 2013
25bf4db
allow build_open_flags() to return an error
Jun 11, 2013
75dd247
path_openat(): fix double fput()
May 9, 2015
451eba1
msm: ispif: Remove handling of SD_SHUTDOWN
Sep 4, 2015
5007e1e
Revert "KEYS: Don't permit request_key() to construct a new keyring"
randomhydrosol Sep 25, 2018
3378f82
KEYS: add missing permission check for request_key() destination
ebiggers Dec 8, 2017
c27d368
voice_svc: Avoid double free in voice_svc driver
Apr 6, 2018
708ea8b
md: dm-req-crypt: fixed error propagation when ICE is used
Jul 7, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions Documentation/devicetree/bindings/arm/msm/lpm-levels.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ Required properties:
sleep.
- qcom,last-level - When set, the cluster level is applied only when
there is 1 online core.
- qcom,disable-dynamic-int-routing: When set disables the dynamic
routing of rpm-smd and mpm interrupts to next wake up core.

[Node bindings for qcom,pm-cpu]
qcom,pm-cpu contains the low power modes that a cpu could enter. Currently it
Expand Down
32 changes: 1 addition & 31 deletions Documentation/devicetree/bindings/arm/msm/lpm-workarounds.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ The required properties are:
- compatible: "qcom,lpm-workarounds"

The optional properties are:
- reg: The physical address and the size of the l1_l2_gcc and l2_pwr_sts
regitsters of performance cluster.

- reg-names: "l2_pwr_sts" - string to identify l2_pwr_sts physical address.
"l1_l2_gcc" - string to identify l1_l2_gcc physical address.

- qcom,lpm-wa-cx-turbo-unvote: Indicates the workaround to unvote CX turbo
vote when system is coming out of rpm assisted power collaspe.
Expand All @@ -18,36 +13,11 @@ The optional properties are:
- lpm-cx-supply: will hold handle for CX regulator supply which is used
to unvote.

- qcom,lpm-wa-skip-l2-spm: Due to a hardware bug on 8939 and 8909, secure
world needs to disable and enable L2 SPM to get the proper context
in secure watchdog bite cases. With this workaround there is a race
in programming L2 SPM between HLOS and secure world. This leads to
stability issues. To avoid this program L2 SPM only in secure world
based on the L2 mode flag passed. Set lpm-wa-skip-l2-spm node if this
is required.

- qcom,lpm-wa-dynamic-clock-gating: Due to a hardware bug on 8952, L1/L2 dynamic
clock gating needs to be enabled by software for performance cluster
cores and L2. Set lpm-wa-dynamic-clock-gating node if this workaround is
required.

- qcom,cpu-offline-mask: Dynamic clock gating should be enabled when cluster is
in L2 PC. Each bit of cpu-offline-mask lists the cpu no. to hotplug by KTM
driver.

- qcom,non-boot-cpu-index: will hold index of non boot cluster cpu.

Example:

qcom,lpm-workarounds {
compatible = "qcom,lpm-workarounds";
reg = <0x0B011018 0x4>,
<0x0B011088 0x4>;
reg-names = "l2-pwr-sts", "l1-l2-gcc";

lpm-cx-supply = <&pm8916_s2_corner>;
qcom,lpm-wa-cx-turbo-unvote;
qcom,lpm-wa-skip-l2-spm;
qcom,lpm-wa-dynamic-clock-gating;
qcom,cpu-offline-mask = "0xF";
qcom,non-boot-cpu-index = <4>;
}
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \
CFLAGS_MODULE = $(FLAGS_OPTIMIZE) $(GRAPHITE)
AFLAGS_MODULE = $(FLAGS_OPTIMIZE) $(GRAPHITE)
LDFLAGS_MODULE = --strip-debug
CFLAGS_KERNEL = $(FLAGS_OPTIMIZE) $(GRAPHITE) -mcpu=cortex-a57.cortex-a53+crypto+crc -mtune=cortex-a57.cortex-a53 -march=armv8-a+crypto+crc
CFLAGS_KERNEL = $(FLAGS_OPTIMIZE) $(GRAPHITE) -mcpu=cortex-a57.cortex-a53+crypto+crc -mtune=cortex-a57.cortex-a53 -march=armv8-a+crypto+crc -mfix-cortex-a53-843419 -mfix-cortex-a53-835769
AFLAGS_KERNEL = $(FLAGS_OPTIMIZE) $(GRAPHITE)
CFLAGS_GCOV = -fprofile-arcs -ftest-coverage

Expand Down Expand Up @@ -437,6 +437,8 @@ KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
-Wno-switch-bool \
-Wno-multistatement-macros \
-Wno-bool-operation -Wno-nonnull -Wno-switch-unreachable -Wno-format-truncation -Wno-format-overflow -Wno-duplicate-decl-specifier -Wno-memset-elt-size -Wno-int-in-bool-context \
-mstrict-align \
-mfix-cortex-a53-843419 -mfix-cortex-a53-835769 \
$(GEN_OPT_FLAGS) \
$(GRAPHITE) \
$(FLAGS_OPTIMIZE)
Expand Down
4 changes: 4 additions & 0 deletions android/configs/android-recommended.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ CONFIG_TABLET_USB_GTCO=y
CONFIG_TABLET_USB_HANWANG=y
CONFIG_TABLET_USB_KBTAB=y
CONFIG_TABLET_USB_WACOM=y
CONFIG_TASKSTATS=y
CONFIG_TASK_DELAY_ACCT=y
CONFIG_TASK_IO_ACCOUNTING=y
CONFIG_TASK_XACCT=y
CONFIG_TIMER_STATS=y
CONFIG_TMPFS=y
CONFIG_TMPFS_POSIX_ACL=y
Expand Down
1 change: 1 addition & 0 deletions arch/alpha/include/uapi/asm/fcntl.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#define O_SYNC (__O_SYNC|O_DSYNC)

#define O_PATH 040000000
#define __O_TMPFILE 0100000000

#define F_GETLK 7
#define F_SETLK 8
Expand Down
2 changes: 2 additions & 0 deletions arch/arm/boot/dts/qcom/msm-pmi8994.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,8 @@
label = "rgb";
status = "okay";

qcom,rgb-sync;

qcom,rgb_0 {
label = "rgb";
qcom,id = <3>;
Expand Down
2 changes: 2 additions & 0 deletions arch/arm/boot/dts/qcom/msm8994-mtp.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,7 @@
gpios = <&pm8994_gpios 3 0x1>;
linux,input-type = <1>;
linux,code = <115>;
gpio-key,wakeup;
debounce-interval = <15>;
};

Expand All @@ -534,6 +535,7 @@
gpios = <&pm8994_gpios 2 0x1>;
linux,input-type = <1>;
linux,code = <114>;
gpio-key,wakeup;
debounce-interval = <15>;
};
//endif VENDOR_EDIT
Expand Down
14 changes: 11 additions & 3 deletions arch/arm/boot/dts/qcom/msm8994.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,17 @@
dev = "/dev/block/platform/soc.0/f9824900.sdhci/by-name/system";
type = "ext4";
mnt_flags = "ro,barrier=1,discard";
fsmgr_flags = "wait";
fsmgr_flags = "wait,verify=/dev/block/platform/soc.0/f9824900.sdhci/by-name/reserve2";
status = "ok";
};
vendor {
compatible = "android,vendor";
dev = "/dev/block/platform/soc.0/f9824900.sdhci/by-name/cache";
type = "ext4";
mnt_flags = "ro,barrier=1,discard";
fsmgr_flags = "wait,verify=/dev/block/platform/soc.0/f9824900.sdhci/by-name/reserve2";
status = "ok";
};
};
};
};
Expand Down Expand Up @@ -340,7 +348,7 @@
509 165
>;
idle-cost-data = <
0 0 0 0
56 56 56 17
>;
};
CLUSTER_COST_1: cluster-cost1 {
Expand All @@ -360,7 +368,7 @@
1024 80
>;
idle-cost-data = <
0 0 0 0
65 65 65 24
>;
};
};
Expand Down
8 changes: 8 additions & 0 deletions arch/arm/include/asm/assembler.h
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,14 @@ THUMB( orr \reg , \reg , #PSR_T_BIT )
.size \name , . - \name
.endm

.macro csdb
#ifdef CONFIG_THUMB2_KERNEL
.inst.w 0xf3af8014
#else
.inst 0xe320f014
#endif
.endm

.macro check_uaccess, addr:req, size:req, limit:req, tmp:req, bad:req
#ifndef CONFIG_CPU_USE_DOMAINS
adds \tmp, \addr, #\size - 1
Expand Down
32 changes: 32 additions & 0 deletions arch/arm/include/asm/barrier.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
#define isb(option) __asm__ __volatile__ ("isb " #option : : : "memory")
#define dsb(option) __asm__ __volatile__ ("dsb " #option : : : "memory")
#define dmb(option) __asm__ __volatile__ ("dmb " #option : : : "memory")
#ifdef CONFIG_THUMB2_KERNEL
#define CSDB ".inst.w 0xf3af8014"
#else
#define CSDB ".inst 0xe320f014"
#endif
#define csdb() __asm__ __volatile__(CSDB : : : "memory")
#elif defined(CONFIG_CPU_XSC3) || __LINUX_ARM_ARCH__ == 6
#define isb(x) __asm__ __volatile__ ("mcr p15, 0, %0, c7, c5, 4" \
: : "r" (0) : "memory")
Expand All @@ -37,6 +43,13 @@
#define dmb(x) __asm__ __volatile__ ("" : : : "memory")
#endif

#ifndef CSDB
#define CSDB
#endif
#ifndef csdb
#define csdb()
#endif

#ifdef CONFIG_ARCH_HAS_BARRIERS
#include <mach/barriers.h>
#elif defined(CONFIG_ARM_DMA_MEM_BUFFERABLE) || defined(CONFIG_SMP)
Expand Down Expand Up @@ -82,5 +95,24 @@ do { \
#define smp_mb__before_atomic() smp_mb()
#define smp_mb__after_atomic() smp_mb()

#ifdef CONFIG_CPU_SPECTRE
static inline unsigned long array_index_mask_nospec(unsigned long idx,
unsigned long sz)
{
unsigned long mask;

asm volatile(
"cmp %1, %2\n"
" sbc %0, %1, %1\n"
CSDB
: "=r" (mask)
: "r" (idx), "Ir" (sz)
: "cc");

return mask;
}
#define array_index_mask_nospec array_index_mask_nospec
#endif

#endif /* !__ASSEMBLY__ */
#endif /* __ASM_BARRIER_H */
18 changes: 7 additions & 11 deletions arch/arm/kernel/entry-common.S
Original file line number Diff line number Diff line change
Expand Up @@ -435,9 +435,7 @@ local_restart:
tst r10, #_TIF_SYSCALL_WORK @ are we tracing syscalls?
bne __sys_trace

cmp scno, #NR_syscalls @ check upper syscall limit
adr lr, BSYM(ret_fast_syscall) @ return address
ldrcc pc, [tbl, scno, lsl #2] @ call sys_* routine
invoke_syscall tbl, scno, r10, ret_fast_syscall

add r1, sp, #S_OFF
2: mov why, #0 @ no longer a real syscall
Expand Down Expand Up @@ -470,14 +468,8 @@ __sys_trace:
mov r1, scno
add r0, sp, #S_OFF
bl syscall_trace_enter

adr lr, BSYM(__sys_trace_return) @ return address
mov scno, r0 @ syscall number (possibly new)
add r1, sp, #S_R0 + S_OFF @ pointer to regs
cmp scno, #NR_syscalls @ check upper syscall limit
ldmccia r1, {r0 - r6} @ have to reload r0 - r6
stmccia sp, {r4, r5} @ and update the stack args
ldrcc pc, [tbl, scno, lsl #2] @ call sys_* routine
mov scno, r0
invoke_syscall tbl, scno, r10, __sys_trace_return, reload=1
cmp scno, #-1 @ skip the syscall?
bne 2b
add sp, sp, #S_OFF @ restore stack
Expand Down Expand Up @@ -523,6 +515,10 @@ sys_syscall:
bic scno, r0, #__NR_OABI_SYSCALL_BASE
cmp scno, #__NR_syscall - __NR_SYSCALL_BASE
cmpne scno, #NR_syscalls @ check range
#ifdef CONFIG_CPU_SPECTRE
movhs scno, #0
csdb
#endif
stmloia sp, {r5, r6} @ shuffle args
movlo r0, r1
movlo r1, r2
Expand Down
25 changes: 25 additions & 0 deletions arch/arm/kernel/entry-header.S
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,31 @@
#endif
.endm

.macro invoke_syscall, table, nr, tmp, ret, reload=0
#ifdef CONFIG_CPU_SPECTRE
mov \tmp, \nr
cmp \tmp, #NR_syscalls @ check upper syscall limit
movcs \tmp, #0
csdb
adr lr, BSYM(\ret) @ return address
.if \reload
add r1, sp, #S_R0 + S_OFF @ pointer to regs
ldmccia r1, {r0 - r6} @ reload r0-r6
stmccia sp, {r4, r5} @ update stack arguments
.endif
ldrcc pc, [\table, \tmp, lsl #2] @ call sys_* routine
#else
cmp \nr, #NR_syscalls @ check upper syscall limit
adr lr, BSYM(\ret) @ return address
.if \reload
add r1, sp, #S_R0 + S_OFF @ pointer to regs
ldmccia r1, {r0 - r6} @ reload r0-r6
stmccia sp, {r4, r5} @ update stack arguments
.endif
ldrcc pc, [\table, \nr, lsl #2] @ call sys_* routine
#endif
.endm

/*
* These are the registers used in the syscall handler, and allow us to
* have in theory up to 7 arguments to a function - r0 to r6.
Expand Down
4 changes: 4 additions & 0 deletions arch/arm/mm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ config CPU_V7
select CPU_CP15_MMU
select CPU_HAS_ASID if MMU
select CPU_PABRT_V7
select CPU_SPECTRE if MMU
select CPU_TLB_V7 if MMU

config CPU_THUMBONLY
Expand Down Expand Up @@ -772,6 +773,9 @@ config CPU_BPREDICT_DISABLE
help
Say Y here to disable branch prediction. If unsure, say N.

config CPU_SPECTRE
bool

config TLS_REG_EMUL
bool
select NEED_KUSER_HELPERS
Expand Down
2 changes: 2 additions & 0 deletions arch/arm/mm/dma-mapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ static void arm_dma_unremap(struct device *dev, void *remapped_addr,
return;
}
vunmap(remapped_addr);
flush_tlb_kernel_range((unsigned long)remapped_addr,
(unsigned long)(remapped_addr + size));
}

struct dma_map_ops arm_dma_ops = {
Expand Down
14 changes: 11 additions & 3 deletions arch/arm64/configs/haruhi_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -598,14 +598,22 @@ CONFIG_DEFAULT_WESTWOOD=y
CONFIG_DEFAULT_TCP_CONG="westwood"
CONFIG_WIREGUARD=y
# CONFIG_WIREGUARD_DEBUG is not set
CONFIG_FB_MSM_MDSS_KCAL_CTRL=y
CONFIG_CRYPTO_SHA256_ARM64=y
CONFIG_CRYPTO_SHA512_ARM64=y
CONFIG_WQ_POWER_EFFICIENT_DEFAULT=y
CONFIG_QUICK_WAKEUP=y
CONFIG_POWERSUSPEND=y
# CONFIG_ARM_ARCH_TIMER_VCT_ACCESS is not set
# CONFIG_TCP_CONG_BIC is not set
# CONFIG_TCP_CONG_CUBIC is not set
# CONFIG_TCP_CONG_HTCP is not set
CONFIG_EXFAT_FS=y
CONFIG_SDFAT_FS=y
CONFIG_SDFAT_DELAYED_META_DIRTY=y
CONFIG_SDFAT_SUPPORT_DIR_SYNC=y
CONFIG_SDFAT_DEFAULT_CODEPAGE=437
CONFIG_SDFAT_DEFAULT_IOCHARSET="utf8"
CONFIG_SDFAT_ALIGNED_MPAGE_WRITE=y
CONFIG_SDFAT_VIRTUAL_XATTR=y
CONFIG_SDFAT_VIRTUAL_XATTR_SELINUX_LABEL="u:object_r:vfat:s0"
CONFIG_SDFAT_DEBUG=y
CONFIG_SDFAT_DBG_MSG=y
CONFIG_SDFAT_STATISTICS=y
4 changes: 4 additions & 0 deletions arch/arm64/include/uapi/asm/bitsperlong.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@
#ifndef __ASM_BITSPERLONG_H
#define __ASM_BITSPERLONG_H

#ifdef __aarch64__
#define __BITS_PER_LONG 64
#else
#define __BITS_PER_LONG 32
#endif

#include <asm-generic/bitsperlong.h>

Expand Down
2 changes: 2 additions & 0 deletions arch/arm64/mm/dma-mapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,8 @@ static void arm64_dma_unremap(struct device *dev, void *remapped_addr,
return;
}
vunmap(remapped_addr);
flush_tlb_kernel_range((unsigned long)remapped_addr,
(unsigned long)(remapped_addr + size));
}

const struct dma_map_ops noncoherent_swiotlb_dma_ops = {
Expand Down
1 change: 1 addition & 0 deletions arch/parisc/include/uapi/asm/fcntl.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#define O_INVISIBLE 004000000 /* invisible I/O, for DMAPI/XDSM */

#define O_PATH 020000000
#define __O_TMPFILE 040000000

#define F_GETLK64 8
#define F_SETLK64 9
Expand Down
1 change: 1 addition & 0 deletions arch/sparc/include/uapi/asm/fcntl.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#define O_SYNC (__O_SYNC|O_DSYNC)

#define O_PATH 0x1000000
#define __O_TMPFILE 0x2000000

#define F_GETOWN 5 /* for sockets. */
#define F_SETOWN 6 /* for sockets. */
Expand Down
Loading