mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 06:25:52 +02:00
MALI: bifrost: fix bug "Kbase can do an out of bound access due to invalid jobslot parameter"
This patch is from ARM via mail "Fwd: 00209996 - [Rockchip][IMPORTANT] Cat A(rare)- Security bug in Mali DDK (16-Nov, 2020) Edit Subject" Signed-off-by: Zhen Chen <chenzhen@rock-chips.com> Change-Id: Ife807e5e850274222db8aea0e4cac588e02a8e53
This commit is contained in:
parent
c0720cd95e
commit
fd5989b3f9
|
|
@ -1053,21 +1053,6 @@ static bool jd_submit_atom(struct kbase_context *const kctx,
|
|||
|
||||
return jd_done_nolock(katom, NULL);
|
||||
}
|
||||
|
||||
if (katom->core_req & BASE_JD_REQ_SOFT_JOB) {
|
||||
/* This softjob has failed due to a previous
|
||||
* dependency, however we should still run the
|
||||
* prepare & finish functions
|
||||
*/
|
||||
if (kbase_prepare_soft_job(katom) != 0) {
|
||||
katom->event_code =
|
||||
BASE_JD_EVENT_JOB_INVALID;
|
||||
return jd_done_nolock(katom, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
katom->will_fail_event_code = katom->event_code;
|
||||
return false;
|
||||
}
|
||||
|
||||
/* These must occur after the above loop to ensure that an atom
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user