ANDROID: init_task: Init android vendor and oem data
Without initialization, it will be random data and hard for vendor hook to decide. Bug: 207739506 Change-Id: I278772d87eea38c03a40d4f0bef20ac8644e2ecd Signed-off-by: Maria Yu <quic_aiquny@quicinc.com> (cherry picked from commit 898e7ec950c168e37ce8c27f6ca1d2cdea66b078)
This commit is contained in:
parent
afd403d142
commit
291dfda577
|
@ -214,6 +214,8 @@ struct task_struct init_task
|
|||
#ifdef CONFIG_SECCOMP_FILTER
|
||||
.seccomp = { .filter_count = ATOMIC_INIT(0) },
|
||||
#endif
|
||||
.android_vendor_data1 = {0, },
|
||||
.android_oem_data1 = {0, },
|
||||
};
|
||||
EXPORT_SYMBOL(init_task);
|
||||
|
||||
|
|
|
@ -1014,6 +1014,8 @@ static struct task_struct *dup_task_struct(struct task_struct *orig, int node)
|
|||
#ifdef CONFIG_MEMCG
|
||||
tsk->active_memcg = NULL;
|
||||
#endif
|
||||
memset(&tsk->android_vendor_data1, 0, sizeof(tsk->android_vendor_data1));
|
||||
memset(&tsk->android_oem_data1, 0, sizeof(tsk->android_oem_data1));
|
||||
return tsk;
|
||||
|
||||
free_stack:
|
||||
|
|
Loading…
Reference in New Issue