Divested-Mobile / DivestOS-Build

Everything needed to build DivestOS, a more private and more secure aftermarket mobile operating system.
https://divestos.org/index.php?page=build
Other
214 stars 30 forks source link

20: Latest CVE and build errors #313

Closed danielk43 closed 3 months ago

danielk43 commented 3 months ago

Seeing just one error in gs201 only after the recent update. No issues with redbull this time

CVE-2024-38564

../../../../../../kernel/google/gs201/private/gs-google/kernel/bpf/syscall.c:2927:3: error: use of undeclared identifier 'ptype'
                ptype = attach_type_to_prog_type(attach_type);
                ^
../../../../../../kernel/google/gs201/private/gs-google/kernel/bpf/syscall.c:2927:11: error: implicit declaration of function 'attach_type_to_prog_type' [-Werror,-Wimplicit-func
tion-declaration]
                ptype = attach_type_to_prog_type(attach_type);
                        ^
../../../../../../kernel/google/gs201/private/gs-google/kernel/bpf/syscall.c:2928:21: error: use of undeclared identifier 'ptype'; did you mean '_ctype'?
                if (prog->type != ptype)
                                  ^~~~~
                                  _ctype
../../../../../../kernel/google/gs201/private/gs-google/include/linux/ctype.h:19:28: note: '_ctype' declared here
extern const unsigned char _ctype[];
                           ^
../../../../../../kernel/google/gs201/private/gs-google/kernel/bpf/syscall.c:2940:1: error: static declaration of 'attach_type_to_prog_type' follows non-static declaration
attach_type_to_prog_type(enum bpf_attach_type attach_type)
^
../../../../../../kernel/google/gs201/private/gs-google/kernel/bpf/syscall.c:2927:11: note: previous implicit declaration is here
                ptype = attach_type_to_prog_type(attach_type);
                        ^
4 errors generated.

Also looks like this cherry-pick is empty now and no longer required.

Thanks again

SkewedZeppelin commented 3 months ago

Fixed, thanks!