| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
result of :
git grep -l '__FUNCTION__' | xargs sed -i 's/__FUNCTION__/__func__/g'
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
[Detail] Stack overflow & Null Pointer
[Solution] 1.Limited the param 'count' for 'copy_from_user'
2.Check Pointer
Change-Id: I81a91a64494b5f088c131f2d1ebc11fcf4b21939
Signed-off-by: Huan Tang <huan.tang@mediatek.com>
CR-Id: ALPS03361487
Feature: Others
Backported to 3.10 and a few code style ocds
Signed-off-by: Mister Oyster <oysterized@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
[Detail]
auxadc:
1. fix auxadc security defect`
Change-Id: I60eeade13b8ddef14cbc2773d7f6fb9d7e8d49b0
Signed-off-by: Xuexi Bai <xuexi.bai@mediatek.com>
CR-Id: ALPS03353887
Feature: Others
Backported to 3.10
Signed-off-by: Mister Oyster <oysterized@gmail.com>
|
| |
|
|
| |
best it can do is crash the whole kernel when zram is used
|
| |
|
|
|
|
|
|
|
| |
Include linux/mm.h for get_cmdline() declaration.
Change-Id: Icad6ef7deef4d93d92d423c96bfa61fb5d66d0b7
Fixes: Change-Id: I30083b757eaef8c61e55a213a883ce8d0c9cf2b1
("uid_sys_stats: log task io with a debug flag")
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
|
| |
|
|
|
|
|
|
|
| |
Add a hashmap inside each uid_entry to keep track of task name and io.
Task full name is a combination of thread and process name.
Bug: 63739275
Change-Id: I30083b757eaef8c61e55a213a883ce8d0c9cf2b1
Signed-off-by: Yang Jin <yajin@google.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
[Detail]
dat initialize to 0
[Solution]
Change-Id: Ib539e9624b1b8153eda8dd8f7ce55cb67052be59
CR-Id: ALPS03288635
Feature: Others
Signed-off-by: hongxu.zhao <hongxu.zhao@mediatek.com>
(cherry picked from commit ba50a5f9d3254520dda3a70db87a35401e4e14ac)
|
| |
|
|
|
|
|
|
|
|
|
| |
[Detail]
add mutex protect list_add and list_del
to avoid use after free
Change-Id: Ic7d02a5b97955eaee4d3684e13a4a67f3349b42b
Signed-off-by: Qinglong Chai <qinglong.chai@mediatek.com>
CR-Id: ALPS03275524
Feature: disp
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
* Revert : Merge mediatek security patches (14326e25d3fc3b4d780c2d9d2eebbe3231ad5376)
* Reapply : 14326e25d3fc3b4d780c2d9d2eebbe3231ad5376
Signed-off-by: Mister Oyster <oysterized@gmail.com>
|
| |
|
|
|
|
|
|
|
| |
Setuid can cause negative delta. Check this and update total usage only
if delta is positive.
Bug: 64317562
Change-Id: I4818c246db66cabf3b11d277faceedec1678694a
Signed-off-by: Jin Qian <jinqian@google.com>
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This adds CONFIG_MTK_COMBO_AOSP_TETHERING_SUPPORT which, when enabled,
allows ap and wlan to co-exist in the same interface, as Android
expects.
Most of this functionality is also available (albeit not compilable broken)
under CFG_TC1_FEATURE but that has larger implications around the radio
and usb stack that we do not want to adopt.
Change-Id: Ib1d1be40566f1bb9ccc7be45b49ec8d1f3b3ba58
Ticket: PORRIDGE-30
|
| |
|
|
| |
CVE-2017-0529
|
| |
|
|
| |
CVE-2017-0502
|
| | |
|
| |
|
|
| |
CVE-2017-0517
|
| |
|
|
|
|
|
|
| |
uid_io depends on TASK_XACCT and TASK_IO_ACCOUNTING.
So add depends in Kconfig before compiling code.
Change-Id: Ie6bf57ec7c2eceffadf4da0fc2aca001ce10c36e
Signed-off-by: Ganesh Mahendran <opensource.ganesh@gmail.com>
|
| |
|
|
|
|
|
|
|
| |
Store sum of dead task io stats in uid_entry and defer uid io
calulation until next uid proc stat change or dumpsys.
Bug: 37754877
Change-Id: I970f010a4c841c5ca26d0efc7e027414c3c952e0
Signed-off-by: Jin Qian <jinqian@google.com>
|
| |
|
|
|
|
|
|
| |
struct task_struct *task should be proteced by tasklist_lock.
Change-Id: Iefcd13442a9b9d855a2bbcde9fd838a4132fee58
Signed-off-by: Ganesh Mahendran <opensource.ganesh@gmail.com>
(cherry picked from commit 90d78776c4a0e13fb7ee5bd0787f04a1730631a6)
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Replaced read_lock with rcu_read_lock to reduce time that preemption
is disabled.
Added a function to update io stats for specific uid and moved
hash table lookup, user_namespace out of loops.
Bug: 37319300
Change-Id: I2b81b5cd3b6399b40d08c3c14b42cad044556970
Signed-off-by: Jin Qian <jinqian@google.com>
|
| | |
|
| |
|
|
|
| |
Change-Id: I8a41b331c973898015d11d2018257727083f7910
Signed-off-by: Jin Qian <jinqian@google.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We see this happens multiple times in heavy workload in systrace
and AMS stuck in uid_lock.
Running process: Process 953
Running thread: android.ui
State: Uninterruptible Sleep
Start:
1,025.628 ms
Duration:
27,955.949 ms
On CPU:
Running instead: system_server
Args:
{kernel callsite when blocked:: "uid_procstat_write+0xb8/0x144"}
Changing to rt_mutex can mitigate the priority inversion
Bug: 34991231
Bug: 34193533
Change-Id: I481baad840b7bc2dfa9b9a59b4dff93cafb90077
Test: on marlin
Signed-off-by: Wei Wang <wvw@google.com>
|
| |
|
|
|
| |
Change-Id: Ie888d8a0f4ec7a27dea86dc4afba8e6fd4203488
Signed-off-by: Jin Qian <jinqian@google.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
A task can cancel writes made by other tasks. In rare cases,
cancelled_write_bytes is larger than write_bytes if the task
itself didn't make any write. This doesn't affect total size
but may cause confusion when looking at IO usage on individual
tasks.
Bug: 35851986
Change-Id: If6cb549aeef9e248e18d804293401bb2b91918ca
Signed-off-by: Jin Qian <jinqian@google.com>
|
| |
|
|
|
|
|
|
|
| |
No need to aggregate the switched uid separately since
update_io_stats_locked covers all uids.
Bug: 34198239
Change-Id: Ifed347264b910de02e3f3c8dec95d1a2dbde58c0
Signed-off-by: Jin Qian <jinqian@google.com>
|
| |
|
|
|
|
|
| |
Userspace keeps retrying when it sees nothing is written.
Bug: 34364961
Change-Id: Ie288c90c6a206fb863dcad010094fcd1373767aa
|
| |
|
|
|
|
| |
Signed-off-by: Jin Qian <jinqian@google.com>
Bug: 34360629
Change-Id: Ia748351e07910b1febe54f0484ca1be58c4eb9c7
|
| |
|
|
|
|
|
|
| |
This module tracks cputime and io stats.
Signed-off-by: Jin Qian <jinqian@google.com>
Bug: 34198239
Change-Id: I9ee7d9e915431e0bb714b36b5a2282e1fdcc7342
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
IO usages are accounted in foreground and background buckets.
For each uid, io usage is calculated in two steps.
delta = current total of all uid tasks - previus total
current bucket += delta
Bucket is determined by current uid stat. Userspace writes to
/proc/uid_procstat/set <uid> <stat> when uid stat is updated.
/proc/uid_io/stats shows IO usage in this format.
<uid> <foreground IO> <background IO>
Signed-off-by: Jin Qian <jinqian@google.com>
Bug: 34198239
Change-Id: I3369e59e063b1e5ee0dfe3804c711d93cb937c0c
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
[Detail] sync code from L1.MP10
[Solution] manual sync in 1 commit
[Feature] Camcorder Application
MTK-Commit-Id: 7009349bf8a23dd0377dad6759af3da264f6b863
Change-Id: Idba37e1f05a9b05d7da6200c28da114d63f5c33d
Signed-off-by: John.Wei <john.wei@mediatek.com>
CR-Id: ALPS02321162
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
[Detail]
ipanic flow need to use mt_dump flow to avoid reserve memory for
preloader/lk
[Solution]
1.Enable mt_dump ke flow
2.remove preloader/lk memory reserve in MT6735
[Feature] CTS(*)
MTK-Commit-Id: aff7a2ce6a1c6bd805b2acdeaef7c8c28a0cd613
Change-Id: I2264b0544d3219b4ed2dd53483a134182d76aa17
Signed-off-by: Ji Zhang <ji.zhang@mediatek.com>
CR-Id: ALPS02296880
(cherry picked from commit abaf1e786c9856e1a048e55714faa7f98309b96d)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
[Detail] defects found out by Coverity: memroy leak risk.
related files:aee kernel driver aed-debug.c & aed-main.c
[Solution] fix the defects with kfree().
[Feature] Android Exception Engine(AEE)
MTK-Commit-Id: 3c664402362bd16414b09e9050b91f45849b6a3f
Change-Id: Ib4a67f16d5552a5c5c1096eedef1e8b4ef8faece
Signed-off-by: Zhiyong Wang <zhiyong.wang@mediatek.com>
CR-Id: ALPS02319644
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
[Detail]
CPU0 off
[Solution]
use round_jiffies in mlog timer
[Feature] Others
MTK-Commit-Id: b39445fa9c9c93fbd6bb660011c242688af44f0b
Change-Id: I2b209908f2a7493e1760faafe5bd394969445996
Signed-off-by: mtk10008 <tehsin.lin@mediatek.com>
CR-Id: ALPS02298339
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
[Detail]
Function sprintf does not check the length of buffer.
[Solution]
Using snprintf prevent stack overflow.
[Feature] Monkey Test
MTK-Commit-Id: 699464af6ac730e4edd21773b02aa5e1f6dc9403
Change-Id: I238b71ac9966b1967f4c93ffeb29a7c88d441193
Signed-off-by: mtk10008 <tehsin.lin@mediatek.com>
CR-Id: ALPS02316340
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
[Detail] It has memory leak risk while call aee_kernel_dal_api().
[Solution] Modify aee_kernel_dal_api() with kfree() system call.
[Feature] Memory Optimization
MTK-Commit-Id: 09f75c2a0814049e8285693b5b5c715efe1298f7
Change-Id: I9902927084839175bb72e746c481b0d969d819d6
Signed-off-by: Zhiyong Wang <zhiyong.wang@mediatek.com>
CR-Id: ALPS02312652
|
| | |
|
| |
|
|
| |
Signed-off-by: Mister Oyster <oysterized@gmail.com>
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
google security issue fix
Bug num:25873324
Change-Id: I2eb8e03dc67209d9a709fc4a27976f986f0b7606
Signed-off-by: Eddie Chen <eddie.chen@mediatek.com>
Signed-off-by: Mister Oyster <oysterized@gmail.com>
|
| |
|
|
|
|
|
|
|
| |
[Detail]
Remove unused gpio debug cmd arrary which will cause secure problem
Bug: ALPS02943506
Change-Id: If5f63928fd5788f853e5e956d7117775e58e32a2
|