2022-10-15 14:13:07 -04:00
|
|
|
#!/bin/bash
|
2023-03-08 16:01:37 -05:00
|
|
|
if cd "$DOS_BUILD_BASE""kernel/oneplus/sm8350"; then
|
2022-10-15 14:13:07 -04:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/0003-syzkaller-Misc/ANY/0008.patch
|
2023-01-24 18:20:37 -05:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/0008-Graphene-Kernel_Hardening-misc/ANY/0015.patch
|
2023-11-05 18:19:56 -05:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/0009-rfc4941bis/ANY/0005.patch
|
2022-10-15 14:13:07 -04:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2016-3695/ANY/0001.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2017-0627/ANY/0002.patch
|
|
|
|
#git apply $DOS_PATCHES_LINUX_CVES/CVE-2018-5873/ANY/0001.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2018-9415/ANY/0005.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2019-9444/ANY/0001.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2019-15291/5.4/0008.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2019-18786/5.4/0004.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2019-19068/5.4/0006.patch
|
2022-12-22 09:49:19 -05:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2020-11146/ANY/0001.patch
|
2022-10-15 14:13:07 -04:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2020-16119/^5.10/0001.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2020-16119/^5.10/0002.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2020-16120/^5.7/0002.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2020-BleedingToothExtras/^5.10/0001.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2021-3669/^5.14/0001.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2021-28039/^5.11/0001.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2021-39633/5.4/0006.patch
|
2024-03-02 10:26:57 -05:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2021-46912/^5.12/0001.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2021-46958/^5.12/0001.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2021-46959/5.4/0008.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2021-46982/^5.13/0001.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2021-47007/^5.12/0001.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2021-47049/^5.12/0001.patch
|
2024-03-27 22:09:06 -04:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2021-47173/5.4/0008.patch
|
2022-10-15 14:13:07 -04:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2022-0480/4.9-^5.14/0001.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2022-3061/^5.18/0001.patch
|
2022-12-16 21:04:10 -05:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2022-3108/^5.16/0001.patch
|
2023-12-20 11:35:01 -05:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2022-3625/5.4/0004.patch
|
2022-11-21 06:07:45 -05:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2022-3903/^6.0/0001.patch
|
2022-12-31 21:13:25 -05:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2022-4662/5.4/0008.patch
|
2024-02-10 12:41:35 -05:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2022-20158/^5.15/0001.patch
|
2022-10-15 14:13:07 -04:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2022-27950/^5.16/0001.patch
|
2023-01-03 18:36:19 -05:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2022-OctWirelessASB/ANY/0009.patch
|
2023-08-27 17:13:50 -04:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2023-0160/5.4/0004.patch
|
2023-03-27 23:44:08 -04:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2023-0386/^6.2/0001.patch
|
2023-10-02 21:37:23 -04:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2023-1989/5.4/0009.patch
|
2023-04-23 22:41:48 -04:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2023-2166/5.4/0004.patch
|
2023-08-04 21:00:28 -04:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2023-3777/^6.5/0001.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2023-4133/^6.3/0001.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2023-4134/^6.3/0001.patch
|
2023-12-20 11:35:01 -05:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2023-4623/4.12-^6.5/0001.patch
|
2024-03-27 22:09:06 -04:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2023-6270/5.4/0005.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2023-7042/5.4/0005.patch
|
2023-03-06 17:12:46 -05:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2023-23000/^5.16/0001.patch
|
2023-09-05 20:15:46 -04:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2023-31083/^6.5/0001.patch
|
2023-06-26 19:01:31 -04:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2023-35826/^6.3/0001.patch
|
2024-02-19 22:35:04 -05:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2023-47233/^6.7/0001.patch
|
2024-02-27 02:32:37 -05:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2023-52435/5.4/0004.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2023-52437/5.4/0005.patch
|
2024-03-02 10:26:57 -05:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2023-52486/5.4/0005.patch
|
2024-03-04 14:36:37 -05:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2023-52504/5.4/0005.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2023-52561/^6.5/0001.patch
|
2024-03-07 11:25:30 -05:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2023-52583/5.4/0005.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2023-52594/5.4/0005.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2023-52595/5.4/0004.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2023-52597/5.4/0005.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2023-52598/5.4/0005.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2023-52599/5.4/0005.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2023-52600/5.4/0005.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2023-52602/5.4/0005.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2023-52603/5.4/0005.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2023-52604/5.4/0005.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2023-52605/5.4/0005.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2023-52606/5.4/0005.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2023-52607/5.4/0005.patch
|
2024-03-21 14:15:44 -04:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2023-52615/5.4/0006.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2023-52617/5.4/0004.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2023-52619/5.4/0005.patch
|
2024-03-27 22:09:06 -04:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2023-52623/5.4/0005.patch
|
2024-04-04 12:25:53 -04:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2023-52637/5.4/0004.patch
|
2024-02-27 02:32:37 -05:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-0340/5.4/0006.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-0607/5.4/0005.patch
|
2024-03-14 14:16:50 -04:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-0841/5.4/0004.patch
|
2024-02-27 02:32:37 -05:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-1086/5.4/0005.patch
|
2024-03-27 22:09:06 -04:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-22099/5.4/0005.patch
|
2024-02-27 02:32:37 -05:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-23849/5.4/0005.patch
|
2024-02-19 22:35:04 -05:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-24855/^6.4/0001.patch
|
2024-03-21 14:15:44 -04:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-24861/^6.8/0001.patch
|
2024-02-27 02:32:37 -05:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26581/5.4/0004.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26595/^6.7/0001.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26598/5.4/0004.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26600/5.4/0005.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26602/5.4/0005.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26606/5.4/0005.patch
|
2024-03-02 10:26:57 -05:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26615/5.4/0005.patch
|
2024-03-07 11:25:30 -05:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26624/5.4/0005.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26625/5.4/0005.patch
|
2024-03-21 14:15:44 -04:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26635/5.4/0006.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26636/5.4/0006.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26643/^6.8/0001.patch
|
2024-03-27 22:09:06 -04:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26645/5.4/0005.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26651/5.4/0005.patch
|
2024-04-02 08:17:12 -04:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26654/^6.8/0001.patch
|
2024-04-04 12:25:53 -04:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26663/5.4/0005.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26664/5.4/0005.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26671/5.4/0005.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26673/5.4/0004.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26675/5.4/0006.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26676/^6.8/0001.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26679/5.4/0006.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26684/5.4/0004.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26685/5.4/0006.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26696/5.4/0006.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26697/5.4/0006.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26702/5.4/0004.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26704/5.4/0006.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26720/5.4/0006.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26722/5.4/0005.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26735/5.4/0005.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26736/5.4/0004.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26748/5.4/0004.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26749/5.4/0004.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26751/5.4/0005.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26752/5.4/0006.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26754/5.4/0005.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26760/^6.8/0001.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26763/5.4/0005.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26766/5.4/0005.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26771/^6.8/0001.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26772/5.4/0006.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26773/5.4/0006.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26777/5.4/0006.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26778/5.4/0006.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26779/5.4/0006.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26780/^6.8/0001.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26788/5.4/0004.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26790/5.4/0004.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26791/5.4/0005.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26793/5.4/0005.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26801/5.4/0005.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26804/5.4/0004.patch
|
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26805/5.4/0005.patch
|
2024-03-07 11:25:30 -05:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2023-52601/5.4/0005.patch
|
2024-04-04 12:25:53 -04:00
|
|
|
git apply $DOS_PATCHES_LINUX_CVES/CVE-2024-26750/^6.8/0001.patch
|
|
|
|
editKernelLocalversion "-dos.p137"
|
2023-03-08 16:01:37 -05:00
|
|
|
else echo "kernel_oneplus_sm8350 is unavailable, not patching.";
|
|
|
|
fi;
|
2022-10-15 14:13:07 -04:00
|
|
|
cd "$DOS_BUILD_BASE"
|