Skip to content

Commit

Permalink
Add Experimental 12.1 Beta 1 Patch
Browse files Browse the repository at this point in the history
  • Loading branch information
khronokernel committed Oct 29, 2021
1 parent 377b0dd commit c6b3aaa
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 2 deletions.
76 changes: 74 additions & 2 deletions payloads/Config/config.plist
Expand Up @@ -1271,7 +1271,7 @@
<key>Mask</key>
<data></data>
<key>MaxKernel</key>
<string>21.1.0</string>
<string>21.99.99</string>
<key>MinKernel</key>
<string>20.4.0</string>
<key>Replace</key>
Expand Down Expand Up @@ -1301,7 +1301,7 @@
<key>Mask</key>
<data></data>
<key>MaxKernel</key>
<string>21.1.0</string>
<string>21.99.99</string>
<key>MinKernel</key>
<string>20.4.0</string>
<key>Replace</key>
Expand Down Expand Up @@ -1401,6 +1401,78 @@
<key>Skip</key>
<integer>0</integer>
</dict>
<dict>
<key>Arch</key>
<string>x86_64</string>
<key>Base</key>
<string>_work_interval_port_type_render_server</string>
<key>Comment</key>
<string>MonteRand (12.1b1) #1</string>
<key>Count</key>
<integer>1</integer>
<key>Enabled</key>
<true/>
<key>Find</key>
<data>
D8fxc/sh8TnRc/WJyUiLlM3Q/f//
</data>
<key>Identifier</key>
<string>kernel</string>
<key>Limit</key>
<integer>3900</integer>
<key>Mask</key>
<data>
</data>
<key>MaxKernel</key>
<string>21.2.0</string>
<key>MinKernel</key>
<string>21.2.0</string>
<key>Replace</key>
<data>
McmQkJAh8TnRc/WJyUiLlM3Q/f//
</data>
<key>ReplaceMask</key>
<data>
</data>
<key>Skip</key>
<integer>0</integer>
</dict>
<dict>
<key>Arch</key>
<string>x86_64</string>
<key>Base</key>
<string>_panic_with_thread_context</string>
<key>Comment</key>
<string>MonteRand (12.1b1) #2</string>
<key>Count</key>
<integer>1</integer>
<key>Enabled</key>
<true/>
<key>Find</key>
<data>
D8fyc/uD4g+D+gd38w+3NEE=
</data>
<key>Identifier</key>
<string>kernel</string>
<key>Limit</key>
<integer>10100</integer>
<key>Mask</key>
<data>
</data>
<key>MaxKernel</key>
<string>21.2.0</string>
<key>MinKernel</key>
<string>21.2.0</string>
<key>Replace</key>
<data>
MdKQkJCD4g+D+gd38w+3NEE=
</data>
<key>ReplaceMask</key>
<data>
</data>
<key>Skip</key>
<integer>0</integer>
</dict>
</array>
<key>Quirks</key>
<dict>
Expand Down
8 changes: 8 additions & 0 deletions resources/build.py
Expand Up @@ -186,6 +186,14 @@ def build_efi(self):
print("- Adding SurPlus Patch for Race Condition")
self.get_item_by_kv(self.config["Kernel"]["Patch"], "Comment", "SurPlus v1 - PART 1 of 2 - Patch read_erandom (inlined in _early_random)")["Enabled"] = True
self.get_item_by_kv(self.config["Kernel"]["Patch"], "Comment", "SurPlus v1 - PART 2 of 2 - Patch register_and_init_prng")["Enabled"] = True

# Experimental Patch for 12.1 Beta 1+
# Credit to Syncretic for quickly developing this patch
# Currently set to apply to only 21.2.0, adjust once added to mainline
print("- Adding Experimental RDRAND patch for 12.1 Beta 1")
self.get_item_by_kv(self.config["Kernel"]["Patch"], "Comment", "MonteRand (12.1b1) #1")["Enabled"] = True
self.get_item_by_kv(self.config["Kernel"]["Patch"], "Comment", "MonteRand (12.1b1) #2")["Enabled"] = True

if self.constants.force_surplus is True:
# Syncretic forces SurPlus to only run on Beta 7 and older by default for saftey reasons
# If users desires, allow forcing in newer OSes
Expand Down

0 comments on commit c6b3aaa

Please sign in to comment.