Skip to content

Improve seccomp disable && Add locking to protect cred modifications in escape_to_root #2320

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 28, 2024

Conversation

SsageParuders
Copy link
Contributor

@SsageParuders SsageParuders commented Dec 26, 2024

  • When disabling Seccomp, ensure that current->sighand->siglock is held during the operation.
  • Locking to ensure safe access and modification of the cred structure within the escape_to_root function.

I think this issue described in #2236 may have been caused by concurrent read-write access without proper locking.

When disabling Seccomp, ensure that current->sighand->siglock is held during the operation.

Signed-off-by: SsageParuders<[email protected]>
This commit introduces locking to ensure safe access and modification of the `cred` structure within the `escape_to_root` function.

Signed-off-by: SsageParuders <[email protected]>"
@SsageParuders SsageParuders force-pushed the main branch 2 times, most recently from eaea2b9 to 9d3666c Compare December 27, 2024 02:36
@tiann tiann merged commit 58ed786 into tiann:main Dec 28, 2024
60 checks passed
rsuntk pushed a commit to rsuntk/KernelSU that referenced this pull request Dec 28, 2024
…in escape_to_root (tiann#2320)

- When disabling Seccomp, ensure that current->sighand->siglock is held
during the operation.
- Locking to ensure safe access and modification of the `cred` structure
within the `escape_to_root` function.

---

I think this issue described in tiann#2236 may have been caused by concurrent
read-write access without proper locking.

---------

Signed-off-by: SsageParuders<[email protected]>
Signed-off-by: SsageParuders <[email protected]>"
backslashxx pushed a commit to backslashxx/KernelSU that referenced this pull request Dec 28, 2024
…in escape_to_root (tiann#2320)

- When disabling Seccomp, ensure that current->sighand->siglock is held
during the operation.
- Locking to ensure safe access and modification of the `cred` structure
within the `escape_to_root` function.

---

I think this issue described in tiann#2236 may have been caused by concurrent
read-write access without proper locking.

---------

Signed-off-by: SsageParuders<[email protected]>
Signed-off-by: SsageParuders <[email protected]>"
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Dec 28, 2024
Most kernel builders have to touch their kernel source code anyway so
we might as well tell them to backport things to achieve some sort
of feature parity.

path_umount:
	backslashxx/mojito_krenol@2d51422
get_cred_rcu:
	introduced by tiann#2320
	backport examples
	backslashxx/mojito_krenol@c1df3e5
	backslashxx/msm8953-kernel@95903fb

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Dec 28, 2024
Most non-gki kernel builders have to touch their kernel source code anyway
so we might as well tell them to backport things to achieve some sort of
feature parity.

path_umount:
	discussions: tiann#1464
	example: backslashxx/mojito_krenol@2d51422
get_cred_rcu:
	introduced by tiann#2320
	backport examples
	backslashxx/mojito_krenol@c1df3e5
	backslashxx/msm8953-kernel@95903fb

Signed-off-by: backslashxx <[email protected]>
@backslashxx
Copy link
Contributor

backslashxx commented Dec 28, 2024

for 3.18 / 4.x users that are self-maintaining their trees
you can do a small backport to get this working

This should apply as is on < 4.19.303, < 4.14.334, and anything older,
upstream, torvalds/linux@97d0fb2

On upstreamed kernels, it will likely conflict, due to offending commit:
cred: switch to using atomic_long_t merged in 4.19.303, 4.14.334

recommendations:
revert offending commit then grab upstream's OR
use atomic_long_inc_not_zero instead of atomic_inc_not_zero

heres an example
backslashxx/mojito_krenol@2f7fd3a

selfmusing pushed a commit to selfmusing/USlenreK that referenced this pull request Dec 28, 2024
…in escape_to_root (tiann#2320)

- When disabling Seccomp, ensure that current->sighand->siglock is held
during the operation.
- Locking to ensure safe access and modification of the `cred` structure
within the `escape_to_root` function.

---

I think this issue described in tiann#2236 may have been caused by concurrent
read-write access without proper locking.

---------

Signed-off-by: SsageParuders<[email protected]>
Signed-off-by: SsageParuders <[email protected]>"
selfmusing pushed a commit to selfmusing/USlenreK that referenced this pull request Dec 28, 2024
…in escape_to_root (tiann#2320)

- When disabling Seccomp, ensure that current->sighand->siglock is held
during the operation.
- Locking to ensure safe access and modification of the `cred` structure
within the `escape_to_root` function.

---

I think this issue described in tiann#2236 may have been caused by concurrent
read-write access without proper locking.

---------

Signed-off-by: SsageParuders<[email protected]>
Signed-off-by: SsageParuders <[email protected]>"
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Dec 28, 2024
Most non-gki kernel builders have to touch their kernel source code anyway
so we might as well tell them to backport things to achieve some sort of
feature parity.

path_umount:
	discussions: tiann#1464
	example: backslashxx/mojito_krenol@2d51422
get_cred_rcu:
	introduced by tiann#2320
	backport examples
	backslashxx/mojito_krenol@c1df3e5
	backslashxx/msm8953-kernel@95903fb

Signed-off-by: backslashxx <[email protected]>
itejo443 pushed a commit to itejo443/KernelSU that referenced this pull request Dec 28, 2024
…in escape_to_root (tiann#2320)

- When disabling Seccomp, ensure that current->sighand->siglock is held
during the operation.
- Locking to ensure safe access and modification of the `cred` structure
within the `escape_to_root` function.

---

I think this issue described in tiann#2236 may have been caused by concurrent
read-write access without proper locking.

---------

Signed-off-by: SsageParuders<[email protected]>
Signed-off-by: SsageParuders <[email protected]>"
ananjaser1211 added a commit to ananjaser1211/KernelSU that referenced this pull request Dec 28, 2024
Jprimero15 pushed a commit to Jprimero15/KernelSU that referenced this pull request Dec 28, 2024
Most non-gki kernel builders have to touch their kernel source code anyway
so we might as well tell them to backport things to achieve some sort of
feature parity.

path_umount:
	discussions: tiann#1464
	example: backslashxx/mojito_krenol@2d51422
get_cred_rcu:
	introduced by tiann#2320
	backport examples
	backslashxx/mojito_krenol@c1df3e5
	backslashxx/msm8953-kernel@95903fb

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Dec 29, 2024
Most non-gki kernel builders have to touch their kernel source code anyway
so we might as well tell them to backport things to achieve some sort of
feature parity.

path_umount:
	discussions: tiann#1464
	example: backslashxx/mojito_krenol@2d51422
get_cred_rcu:
	introduced by tiann#2320
	backport examples
	backslashxx/mojito_krenol@c1df3e5
	backslashxx/msm8953-kernel@95903fb

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Dec 29, 2024
Most non-gki kernel builders have to touch their kernel source code anyway
so we might as well tell them to backport things to achieve some sort of
feature parity.

path_umount:
	discussions: tiann#1464
	example: backslashxx/mojito_krenol@2d51422
get_cred_rcu:
	introduced by tiann#2320
	backport examples
	backslashxx/mojito_krenol@c1df3e5
	backslashxx/msm8953-kernel@95903fb

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Dec 29, 2024
Most non-gki kernel builders have to touch their kernel source code anyway
so we might as well tell them to backport things to achieve some sort of
feature parity.

path_umount:
	discussions: tiann#1464
	example: backslashxx/mojito_krenol@2d51422
get_cred_rcu:
	introduced by tiann#2320
	backport examples
	backslashxx/mojito_krenol@c1df3e5
	backslashxx/msm8953-kernel@95903fb

Signed-off-by: backslashxx <[email protected]>
rcmiku pushed a commit to rcmiku/KernelSU that referenced this pull request Dec 29, 2024
…in escape_to_root (tiann#2320)

- When disabling Seccomp, ensure that current->sighand->siglock is held
during the operation.
- Locking to ensure safe access and modification of the `cred` structure
within the `escape_to_root` function.

---

I think this issue described in tiann#2236 may have been caused by concurrent
read-write access without proper locking.

---------

Signed-off-by: SsageParuders<[email protected]>
Signed-off-by: SsageParuders <[email protected]>"
rsuntk pushed a commit to rsuntk/KernelSU that referenced this pull request Dec 29, 2024
…in escape_to_root (tiann#2320)

- When disabling Seccomp, ensure that current->sighand->siglock is held
during the operation.
- Locking to ensure safe access and modification of the `cred` structure
within the `escape_to_root` function.

---

I think this issue described in tiann#2236 may have been caused by concurrent
read-write access without proper locking.

---------

Signed-off-by: SsageParuders<[email protected]>
Signed-off-by: SsageParuders <[email protected]>"
rsuntk added a commit to rsuntk/KernelSU that referenced this pull request Dec 29, 2024
MichaelPayne8 pushed a commit to KrustyCook/KernelSU that referenced this pull request Dec 29, 2024
…cations in escape_to_root (tiann#2320)"

This reverts commit 58ed786.

Signed-off-by: mrsrimar22 <[email protected]>
ananjaser1211 added a commit to ananjaser1211/KernelSU that referenced this pull request Dec 29, 2024
…d modifications in escape_to_root (tiann#2320)""

This reverts commit 3a7e9eb.
ananjaser1211 added a commit to ananjaser1211/Apollo that referenced this pull request Dec 29, 2024
* Backport get_cred_rcu for KSU
* Refer to tiann/KernelSU#2320
sakana164 added a commit to sakana164/KernelSU that referenced this pull request Dec 30, 2024
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Dec 31, 2024
Most non-gki kernel builders have to touch their kernel source code anyway
so we might as well tell them to backport things to achieve some sort of
feature parity.

path_umount:
	discussions: tiann#1464
	example: backslashxx/mojito_krenol@2d51422
get_cred_rcu:
	introduced by tiann#2320
	backport examples
	backslashxx/mojito_krenol@c1df3e5
	backslashxx/msm8953-kernel@95903fb

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Dec 31, 2024
Most non-gki kernel builders have to touch their kernel source code anyway
so we might as well tell them to backport things to achieve some sort of
feature parity.

path_umount:
	discussions: tiann#1464
	example: backslashxx/mojito_krenol@2d51422
get_cred_rcu:
	introduced by tiann#2320
	backport examples
	backslashxx/mojito_krenol@c1df3e5
	backslashxx/msm8953-kernel@95903fb

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Dec 31, 2024
Most non-gki kernel builders have to touch their kernel source code anyway
so we might as well tell them to backport things to achieve some sort of
feature parity.

path_umount:
	discussions: tiann#1464
	example: backslashxx/mojito_krenol@2d51422
get_cred_rcu:
	introduced by tiann#2320
	backport examples
	backslashxx/mojito_krenol@c1df3e5
	backslashxx/msm8953-kernel@95903fb

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request May 25, 2025
Legacy kernel builders have to touch their kernel source code anyway so we
might as well tell them to backport things to achieve some sort of feature
parity.

As for others, it is a common thing on the scene to backport things, so this
breaks kernel versioning assumptions. As for those, we scan and check kernel
source.

Required:
 - get_cred_rcu:
	context: tiann#2320 (comment)
	apply: torvalds/linux@97d0fb2
	if above conflicts, try: xiaomi-sdm678/android_kernel_xiaomi_mojito@3fbad8b

Optional:
 - path_umount:
	context: tiann#1464 (comment)
	apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@2d51422

 - strncpy_from_user_nofault
 	for 5.4, apply: torvalds/linux@bd88bb5
 	for 4.x, apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@424e21f
 	for any failures, check dependency chain of gregkh/linux@f43434e

 - kernel_read / kernel_write
 	< 4.14, backport chain, tested on 4.9
 	torvalds/linux@e13ec93
	torvalds/linux@bdd1d2d
	torvalds/linux@c41fbad
	torvalds/linux@ac452ac

- hint, `curl $url.patch | git am`

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request May 25, 2025
Legacy kernel builders have to touch their kernel source code anyway so we
might as well tell them to backport things to achieve some sort of feature
parity.

As for others, it is a common thing on the scene to backport things, so this
breaks kernel versioning assumptions. As for those, we scan and check kernel
source.

Required:
 - get_cred_rcu:
	context: tiann#2320 (comment)
	apply: torvalds/linux@97d0fb2
	if above conflicts, try: xiaomi-sdm678/android_kernel_xiaomi_mojito@3fbad8b

Optional:
 - path_umount:
	context: tiann#1464 (comment)
	apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@2d51422

 - strncpy_from_user_nofault
 	for 5.4, apply: torvalds/linux@bd88bb5
 	for 4.x, apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@424e21f
 	for any failures, check dependency chain of gregkh/linux@f43434e

 - kernel_read / kernel_write
 	< 4.14, backport chain, tested on 4.9
 	torvalds/linux@e13ec93
	torvalds/linux@bdd1d2d
	torvalds/linux@c41fbad
	torvalds/linux@ac452ac

- hint, `curl $url.patch | git am`

Signed-off-by: backslashxx <[email protected]>
Trijal08 pushed a commit to Trijal08/KernelSU-Next that referenced this pull request May 25, 2025
Legacy kernel builders have to touch their kernel source code anyway so we
might as well tell them to backport things to achieve some sort of feature
parity.

As for others, it is a common thing on the scene to backport things, so this
breaks kernel versioning assumptions. As for those, we scan and check kernel
source.

Required:
 - get_cred_rcu:
	context: tiann/KernelSU#2320 (comment)
	apply: torvalds/linux@97d0fb2
	if above conflicts, try: xiaomi-sdm678/android_kernel_xiaomi_mojito@3fbad8b

Optional:
 - path_umount:
	context: tiann/KernelSU#1464 (comment)
	apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@2d51422

 - strncpy_from_user_nofault
 	for 5.4, apply: torvalds/linux@bd88bb5
 	for 4.x, apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@424e21f
 	for any failures, check dependency chain of gregkh/linux@f43434e

 - kernel_read / kernel_write
 	< 4.14, backport chain, tested on 4.9
 	torvalds/linux@e13ec93
	torvalds/linux@bdd1d2d
	torvalds/linux@c41fbad
	torvalds/linux@ac452ac

- hint, `curl $url.patch | git am`

Signed-off-by: backslashxx <[email protected]>
Trijal08 pushed a commit to Trijal08/KernelSU-Next that referenced this pull request May 25, 2025
Legacy kernel builders have to touch their kernel source code anyway so we
might as well tell them to backport things to achieve some sort of feature
parity.

As for others, it is a common thing on the scene to backport things, so this
breaks kernel versioning assumptions. As for those, we scan and check kernel
source.

Required:
 - get_cred_rcu:
	context: tiann/KernelSU#2320 (comment)
	apply: torvalds/linux@97d0fb2
	if above conflicts, try: xiaomi-sdm678/android_kernel_xiaomi_mojito@3fbad8b

Optional:
 - path_umount:
	context: tiann/KernelSU#1464 (comment)
	apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@2d51422

 - strncpy_from_user_nofault
 	for 5.4, apply: torvalds/linux@bd88bb5
 	for 4.x, apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@424e21f
 	for any failures, check dependency chain of gregkh/linux@f43434e

 - kernel_read / kernel_write
 	< 4.14, backport chain, tested on 4.9
 	torvalds/linux@e13ec93
	torvalds/linux@bdd1d2d
	torvalds/linux@c41fbad
	torvalds/linux@ac452ac

- hint, `curl $url.patch | git am`

Signed-off-by: backslashxx <[email protected]>
Trijal08 pushed a commit to Trijal08/KernelSU-Next that referenced this pull request May 25, 2025
Legacy kernel builders have to touch their kernel source code anyway so we
might as well tell them to backport things to achieve some sort of feature
parity.

As for others, it is a common thing on the scene to backport things, so this
breaks kernel versioning assumptions. As for those, we scan and check kernel
source.

Required:
 - get_cred_rcu:
	context: tiann/KernelSU#2320 (comment)
	apply: torvalds/linux@97d0fb2
	if above conflicts, try: xiaomi-sdm678/android_kernel_xiaomi_mojito@3fbad8b

Optional:
 - path_umount:
	context: tiann/KernelSU#1464 (comment)
	apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@2d51422

 - strncpy_from_user_nofault
 	for 5.4, apply: torvalds/linux@bd88bb5
 	for 4.x, apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@424e21f
 	for any failures, check dependency chain of gregkh/linux@f43434e

 - kernel_read / kernel_write
 	< 4.14, backport chain, tested on 4.9
 	torvalds/linux@e13ec93
	torvalds/linux@bdd1d2d
	torvalds/linux@c41fbad
	torvalds/linux@ac452ac

- hint, `curl $url.patch | git am`

Signed-off-by: backslashxx <[email protected]>
Trijal08 pushed a commit to Trijal08/KernelSU-Next that referenced this pull request May 27, 2025
Legacy kernel builders have to touch their kernel source code anyway so we
might as well tell them to backport things to achieve some sort of feature
parity.

As for others, it is a common thing on the scene to backport things, so this
breaks kernel versioning assumptions. As for those, we scan and check kernel
source.

Required:
 - get_cred_rcu:
	context: tiann/KernelSU#2320 (comment)
	apply: torvalds/linux@97d0fb2
	if above conflicts, try: xiaomi-sdm678/android_kernel_xiaomi_mojito@3fbad8b

Optional:
 - path_umount:
	context: tiann/KernelSU#1464 (comment)
	apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@2d51422

 - strncpy_from_user_nofault
 	for 5.4, apply: torvalds/linux@bd88bb5
 	for 4.x, apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@424e21f
 	for any failures, check dependency chain of gregkh/linux@f43434e

 - kernel_read / kernel_write
 	< 4.14, backport chain, tested on 4.9
 	torvalds/linux@e13ec93
	torvalds/linux@bdd1d2d
	torvalds/linux@c41fbad
	torvalds/linux@ac452ac

- hint, `curl $url.patch | git am`

Signed-off-by: backslashxx <[email protected]>
Trijal08 pushed a commit to Trijal08/KernelSU-Next that referenced this pull request May 28, 2025
Legacy kernel builders have to touch their kernel source code anyway so we
might as well tell them to backport things to achieve some sort of feature
parity.

As for others, it is a common thing on the scene to backport things, so this
breaks kernel versioning assumptions. As for those, we scan and check kernel
source.

Required:
 - get_cred_rcu:
	context: tiann/KernelSU#2320 (comment)
	apply: torvalds/linux@97d0fb2
	if above conflicts, try: xiaomi-sdm678/android_kernel_xiaomi_mojito@3fbad8b

Optional:
 - path_umount:
	context: tiann/KernelSU#1464 (comment)
	apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@2d51422

 - strncpy_from_user_nofault
 	for 5.4, apply: torvalds/linux@bd88bb5
 	for 4.x, apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@424e21f
 	for any failures, check dependency chain of gregkh/linux@f43434e

 - kernel_read / kernel_write
 	< 4.14, backport chain, tested on 4.9
 	torvalds/linux@e13ec93
	torvalds/linux@bdd1d2d
	torvalds/linux@c41fbad
	torvalds/linux@ac452ac

- hint, `curl $url.patch | git am`

Signed-off-by: backslashxx <[email protected]>
Trijal08 pushed a commit to Trijal08/KernelSU-Next that referenced this pull request May 28, 2025
Legacy kernel builders have to touch their kernel source code anyway so we
might as well tell them to backport things to achieve some sort of feature
parity.

As for others, it is a common thing on the scene to backport things, so this
breaks kernel versioning assumptions. As for those, we scan and check kernel
source.

Required:
 - get_cred_rcu:
	context: tiann/KernelSU#2320 (comment)
	apply: torvalds/linux@97d0fb2
	if above conflicts, try: xiaomi-sdm678/android_kernel_xiaomi_mojito@3fbad8b

Optional:
 - path_umount:
	context: tiann/KernelSU#1464 (comment)
	apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@2d51422

 - strncpy_from_user_nofault
 	for 5.4, apply: torvalds/linux@bd88bb5
 	for 4.x, apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@424e21f
 	for any failures, check dependency chain of gregkh/linux@f43434e

 - kernel_read / kernel_write
 	< 4.14, backport chain, tested on 4.9
 	torvalds/linux@e13ec93
	torvalds/linux@bdd1d2d
	torvalds/linux@c41fbad
	torvalds/linux@ac452ac

- hint, `curl $url.patch | git am`

Signed-off-by: backslashxx <[email protected]>
Trijal08 pushed a commit to Trijal08/KernelSU-Next that referenced this pull request May 31, 2025
Legacy kernel builders have to touch their kernel source code anyway so we
might as well tell them to backport things to achieve some sort of feature
parity.

As for others, it is a common thing on the scene to backport things, so this
breaks kernel versioning assumptions. As for those, we scan and check kernel
source.

Required:
 - get_cred_rcu:
	context: tiann/KernelSU#2320 (comment)
	apply: torvalds/linux@97d0fb2
	if above conflicts, try: xiaomi-sdm678/android_kernel_xiaomi_mojito@3fbad8b

Optional:
 - path_umount:
	context: tiann/KernelSU#1464 (comment)
	apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@2d51422

 - strncpy_from_user_nofault
 	for 5.4, apply: torvalds/linux@bd88bb5
 	for 4.x, apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@424e21f
 	for any failures, check dependency chain of gregkh/linux@f43434e

 - kernel_read / kernel_write
 	< 4.14, backport chain, tested on 4.9
 	torvalds/linux@e13ec93
	torvalds/linux@bdd1d2d
	torvalds/linux@c41fbad
	torvalds/linux@ac452ac

- hint, `curl $url.patch | git am`

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Jun 1, 2025
Legacy kernel builders have to touch their kernel source code anyway so we
might as well tell them to backport things to achieve some sort of feature
parity.

As for others, it is a common thing on the scene to backport things, so this
breaks kernel versioning assumptions. As for those, we scan and check kernel
source.

Required:
 - get_cred_rcu:
	context: tiann#2320 (comment)
	apply: torvalds/linux@97d0fb2
	if above conflicts, try: xiaomi-sdm678/android_kernel_xiaomi_mojito@3fbad8b

Optional:
 - path_umount:
	context: tiann#1464 (comment)
	apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@2d51422

 - strncpy_from_user_nofault
 	for 5.4, apply: torvalds/linux@bd88bb5
 	for 4.x, apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@424e21f
 	for any failures, check dependency chain of gregkh/linux@f43434e

 - kernel_read / kernel_write
 	< 4.14, backport chain, tested on 4.9
 	torvalds/linux@e13ec93
	torvalds/linux@bdd1d2d
	torvalds/linux@c41fbad
	torvalds/linux@ac452ac

- hint, `curl $url.patch | git am`

Signed-off-by: backslashxx <[email protected]>
Trijal08 pushed a commit to Trijal08/KernelSU-Next that referenced this pull request Jun 1, 2025
Legacy kernel builders have to touch their kernel source code anyway so we
might as well tell them to backport things to achieve some sort of feature
parity.

As for others, it is a common thing on the scene to backport things, so this
breaks kernel versioning assumptions. As for those, we scan and check kernel
source.

Required:
 - get_cred_rcu:
	context: tiann/KernelSU#2320 (comment)
	apply: torvalds/linux@97d0fb2
	if above conflicts, try: xiaomi-sdm678/android_kernel_xiaomi_mojito@3fbad8b

Optional:
 - path_umount:
	context: tiann/KernelSU#1464 (comment)
	apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@2d51422

 - strncpy_from_user_nofault
 	for 5.4, apply: torvalds/linux@bd88bb5
 	for 4.x, apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@424e21f
 	for any failures, check dependency chain of gregkh/linux@f43434e

 - kernel_read / kernel_write
 	< 4.14, backport chain, tested on 4.9
 	torvalds/linux@e13ec93
	torvalds/linux@bdd1d2d
	torvalds/linux@c41fbad
	torvalds/linux@ac452ac

- hint, `curl $url.patch | git am`

Signed-off-by: backslashxx <[email protected]>
Trijal08 pushed a commit to Trijal08/KernelSU-Next that referenced this pull request Jun 4, 2025
Legacy kernel builders have to touch their kernel source code anyway so we
might as well tell them to backport things to achieve some sort of feature
parity.

As for others, it is a common thing on the scene to backport things, so this
breaks kernel versioning assumptions. As for those, we scan and check kernel
source.

Required:
 - get_cred_rcu:
	context: tiann/KernelSU#2320 (comment)
	apply: torvalds/linux@97d0fb2
	if above conflicts, try: xiaomi-sdm678/android_kernel_xiaomi_mojito@3fbad8b

Optional:
 - path_umount:
	context: tiann/KernelSU#1464 (comment)
	apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@2d51422

 - strncpy_from_user_nofault
 	for 5.4, apply: torvalds/linux@bd88bb5
 	for 4.x, apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@424e21f
 	for any failures, check dependency chain of gregkh/linux@f43434e

 - kernel_read / kernel_write
 	< 4.14, backport chain, tested on 4.9
 	torvalds/linux@e13ec93
	torvalds/linux@bdd1d2d
	torvalds/linux@c41fbad
	torvalds/linux@ac452ac

- hint, `curl $url.patch | git am`

Signed-off-by: backslashxx <[email protected]>
Trijal08 pushed a commit to Trijal08/KernelSU-Next that referenced this pull request Jun 6, 2025
Legacy kernel builders have to touch their kernel source code anyway so we
might as well tell them to backport things to achieve some sort of feature
parity.

As for others, it is a common thing on the scene to backport things, so this
breaks kernel versioning assumptions. As for those, we scan and check kernel
source.

Required:
 - get_cred_rcu:
	context: tiann/KernelSU#2320 (comment)
	apply: torvalds/linux@97d0fb2
	if above conflicts, try: xiaomi-sdm678/android_kernel_xiaomi_mojito@3fbad8b

Optional:
 - path_umount:
	context: tiann/KernelSU#1464 (comment)
	apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@2d51422

 - strncpy_from_user_nofault
 	for 5.4, apply: torvalds/linux@bd88bb5
 	for 4.x, apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@424e21f
 	for any failures, check dependency chain of gregkh/linux@f43434e

 - kernel_read / kernel_write
 	< 4.14, backport chain, tested on 4.9
 	torvalds/linux@e13ec93
	torvalds/linux@bdd1d2d
	torvalds/linux@c41fbad
	torvalds/linux@ac452ac

- hint, `curl $url.patch | git am`

Signed-off-by: backslashxx <[email protected]>
Trijal08 pushed a commit to Trijal08/KernelSU-Next that referenced this pull request Jun 6, 2025
Legacy kernel builders have to touch their kernel source code anyway so we
might as well tell them to backport things to achieve some sort of feature
parity.

As for others, it is a common thing on the scene to backport things, so this
breaks kernel versioning assumptions. As for those, we scan and check kernel
source.

Required:
 - get_cred_rcu:
	context: tiann/KernelSU#2320 (comment)
	apply: torvalds/linux@97d0fb2
	if above conflicts, try: xiaomi-sdm678/android_kernel_xiaomi_mojito@3fbad8b

Optional:
 - path_umount:
	context: tiann/KernelSU#1464 (comment)
	apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@2d51422

 - strncpy_from_user_nofault
 	for 5.4, apply: torvalds/linux@bd88bb5
 	for 4.x, apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@424e21f
 	for any failures, check dependency chain of gregkh/linux@f43434e

 - kernel_read / kernel_write
 	< 4.14, backport chain, tested on 4.9
 	torvalds/linux@e13ec93
	torvalds/linux@bdd1d2d
	torvalds/linux@c41fbad
	torvalds/linux@ac452ac

- hint, `curl $url.patch | git am`

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Jun 8, 2025
Legacy kernel builders have to touch their kernel source code anyway so we
might as well tell them to backport things to achieve some sort of feature
parity.

As for others, it is a common thing on the scene to backport things, so this
breaks kernel versioning assumptions. As for those, we scan and check kernel
source.

Required:
 - get_cred_rcu:
	context: tiann#2320 (comment)
	apply: torvalds/linux@97d0fb2
	if above conflicts, try: xiaomi-sdm678/android_kernel_xiaomi_mojito@3fbad8b

Optional:
 - path_umount:
	context: tiann#1464 (comment)
	apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@2d51422

 - strncpy_from_user_nofault
 	for 5.4, apply: torvalds/linux@bd88bb5
 	for 4.x, apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@424e21f
 	for any failures, check dependency chain of gregkh/linux@f43434e

 - kernel_read / kernel_write
 	< 4.14, backport chain, tested on 4.9
 	torvalds/linux@e13ec93
	torvalds/linux@bdd1d2d
	torvalds/linux@c41fbad
	torvalds/linux@ac452ac

- hint, `curl $url.patch | git am`

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Jun 9, 2025
Legacy kernel builders have to touch their kernel source code anyway so we
might as well tell them to backport things to achieve some sort of feature
parity.

As for others, it is a common thing on the scene to backport things, so this
breaks kernel versioning assumptions. As for those, we scan and check kernel
source.

Required:
 - get_cred_rcu:
	context: tiann#2320 (comment)
	apply: torvalds/linux@97d0fb2
	if above conflicts, try: xiaomi-sdm678/android_kernel_xiaomi_mojito@3fbad8b

Optional:
 - path_umount:
	context: tiann#1464 (comment)
	apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@2d51422

 - strncpy_from_user_nofault
 	for 5.4, apply: torvalds/linux@bd88bb5
 	for 4.x, apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@424e21f
 	for any failures, check dependency chain of gregkh/linux@f43434e

 - kernel_read / kernel_write
 	< 4.14, backport chain, tested on 4.9
 	torvalds/linux@e13ec93
	torvalds/linux@bdd1d2d
	torvalds/linux@c41fbad
	torvalds/linux@ac452ac

- hint, `curl $url.patch | git am`

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Jun 9, 2025
Legacy kernel builders have to touch their kernel source code anyway so we
might as well tell them to backport things to achieve some sort of feature
parity.

As for others, it is a common thing on the scene to backport things, so this
breaks kernel versioning assumptions. As for those, we scan and check kernel
source.

Required:
 - get_cred_rcu:
	context: tiann#2320 (comment)
	apply: torvalds/linux@97d0fb2
	if above conflicts, try: xiaomi-sdm678/android_kernel_xiaomi_mojito@3fbad8b

Optional:
 - path_umount:
	context: tiann#1464 (comment)
	apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@2d51422

 - strncpy_from_user_nofault
 	for 5.4, apply: torvalds/linux@bd88bb5
 	for 4.x, apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@424e21f
 	for any failures, check dependency chain of gregkh/linux@f43434e

 - kernel_read / kernel_write
 	< 4.14, backport chain, tested on 4.9
 	torvalds/linux@e13ec93
	torvalds/linux@bdd1d2d
	torvalds/linux@c41fbad
	torvalds/linux@ac452ac

- hint, `curl $url.patch | git am`

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Jun 9, 2025
Legacy kernel builders have to touch their kernel source code anyway so we
might as well tell them to backport things to achieve some sort of feature
parity.

As for others, it is a common thing on the scene to backport things, so this
breaks kernel versioning assumptions. As for those, we scan and check kernel
source.

Required:
 - get_cred_rcu:
	context: tiann#2320 (comment)
	apply: torvalds/linux@97d0fb2
	if above conflicts, try: xiaomi-sdm678/android_kernel_xiaomi_mojito@3fbad8b

Optional:
 - path_umount:
	context: tiann#1464 (comment)
	apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@2d51422

 - strncpy_from_user_nofault
 	for 5.4, apply: torvalds/linux@bd88bb5
 	for 4.x, apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@424e21f
 	for any failures, check dependency chain of gregkh/linux@f43434e

 - kernel_read / kernel_write
 	< 4.14, backport chain, tested on 4.9
 	torvalds/linux@e13ec93
	torvalds/linux@bdd1d2d
	torvalds/linux@c41fbad
	torvalds/linux@ac452ac

- hint, `curl $url.patch | git am`

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Jun 9, 2025
Legacy kernel builders have to touch their kernel source code anyway so we
might as well tell them to backport things to achieve some sort of feature
parity.

As for others, it is a common thing on the scene to backport things, so this
breaks kernel versioning assumptions. As for those, we scan and check kernel
source.

Required:
 - get_cred_rcu:
	context: tiann#2320 (comment)
	apply: torvalds/linux@97d0fb2
	if above conflicts, try: xiaomi-sdm678/android_kernel_xiaomi_mojito@3fbad8b

Optional:
 - path_umount:
	context: tiann#1464 (comment)
	apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@2d51422

 - strncpy_from_user_nofault
 	for 5.4, apply: torvalds/linux@bd88bb5
 	for 4.x, apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@424e21f
 	for any failures, check dependency chain of gregkh/linux@f43434e

 - kernel_read / kernel_write
 	< 4.14, backport chain, tested on 4.9
 	torvalds/linux@e13ec93
	torvalds/linux@bdd1d2d
	torvalds/linux@c41fbad
	torvalds/linux@ac452ac

- hint, `curl $url.patch | git am`

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Jun 9, 2025
It is a common thing on the scene to backport things, so this breaks kernel versioning
assumptions. As for those, we scan and check kernel source.

The following are backportable:
 - get_cred_rcu:
	context: tiann#2320 (comment)
	apply: torvalds/linux@97d0fb2
	if above conflicts, try: xiaomi-sdm678/android_kernel_xiaomi_mojito@3fbad8b

 - path_umount:
	context: tiann#1464 (comment)
	apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@2d51422

 - strncpy_from_user_nofault
 	for 5.4, apply: torvalds/linux@bd88bb5
 	for 4.x, apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@424e21f
 	for any failures, check dependency chain of gregkh/linux@f43434e

 - kernel_read / kernel_write
 	< 4.14, backport chain, tested on 4.9
 	torvalds/linux@e13ec93
	torvalds/linux@bdd1d2d
	torvalds/linux@c41fbad
	torvalds/linux@ac452ac

- hint, `curl $url.patch | git am`

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Jun 9, 2025
It is a common thing on the scene to backport things, so this breaks kernel versioning
assumptions. As for those, we scan and check kernel source.

The following are backportable:
 - get_cred_rcu:
	context: tiann#2320 (comment)
	apply: torvalds/linux@97d0fb2
	if above conflicts, try: xiaomi-sdm678/android_kernel_xiaomi_mojito@3fbad8b

 - path_umount:
	context: tiann#1464 (comment)
	apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@2d51422

 - strncpy_from_user_nofault
 	for 5.4, apply: torvalds/linux@bd88bb5
 	for 4.x, apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@424e21f
 	for any failures, check dependency chain of gregkh/linux@f43434e

 - kernel_read / kernel_write
 	< 4.14, backport chain, tested on 4.9
 	torvalds/linux@e13ec93
	torvalds/linux@bdd1d2d
	torvalds/linux@c41fbad
	torvalds/linux@ac452ac

- hint, `curl $url.patch | git am`

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Jun 10, 2025
It is a common thing on the scene to backport things, so this breaks kernel versioning
assumptions. As for those, we scan and check kernel source.

The following are backportable:
 - get_cred_rcu:
	context: tiann#2320 (comment)
	apply: torvalds/linux@97d0fb2
	if above conflicts, try: xiaomi-sdm678/android_kernel_xiaomi_mojito@3fbad8b

 - path_umount:
	context: tiann#1464 (comment)
	apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@2d51422

 - strncpy_from_user_nofault
 	for 5.4, apply: torvalds/linux@bd88bb5
 	for 4.x, apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@424e21f
 	for any failures, check dependency chain of gregkh/linux@f43434e

 - kernel_read / kernel_write
 	< 4.14, backport chain, tested on 4.9
 	torvalds/linux@e13ec93
	torvalds/linux@bdd1d2d
	torvalds/linux@c41fbad
	torvalds/linux@ac452ac

- hint, `curl $url.patch | git am`

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Jun 10, 2025
It is a common thing on the scene to backport things, so this breaks kernel versioning
assumptions. As for those, we scan and check kernel source.

The following are backportable:
 - get_cred_rcu:
	context: tiann#2320 (comment)
	apply: torvalds/linux@97d0fb2
	if above conflicts, try: xiaomi-sdm678/android_kernel_xiaomi_mojito@3fbad8b

 - path_umount:
	context: tiann#1464 (comment)
	apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@2d51422

 - strncpy_from_user_nofault
 	for 5.4, apply: torvalds/linux@bd88bb5
 	for 4.x, apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@424e21f
 	for any failures, check dependency chain of gregkh/linux@f43434e

 - kernel_read / kernel_write
 	< 4.14, backport chain, tested on 4.9
 	torvalds/linux@e13ec93
	torvalds/linux@bdd1d2d
	torvalds/linux@c41fbad
	torvalds/linux@ac452ac

- hint, `curl $url.patch | git am`

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Jun 10, 2025
It is a common thing on the scene to backport things, so this breaks kernel versioning
assumptions. As for those, we scan and check kernel source.

The following are backportable:
 - get_cred_rcu:
	context: tiann#2320 (comment)
	apply: torvalds/linux@97d0fb2
	if above conflicts, try: xiaomi-sdm678/android_kernel_xiaomi_mojito@3fbad8b

 - path_umount:
	context: tiann#1464 (comment)
	apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@2d51422

 - strncpy_from_user_nofault
 	for 5.4, apply: torvalds/linux@bd88bb5
 	for 4.x, apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@424e21f
 	for any failures, check dependency chain of gregkh/linux@f43434e

 - kernel_read / kernel_write
 	< 4.14, backport chain, tested on 4.9
 	torvalds/linux@e13ec93
	torvalds/linux@bdd1d2d
	torvalds/linux@c41fbad
	torvalds/linux@ac452ac

- hint, `curl $url.patch | git am`

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Jun 10, 2025
It is a common thing on the scene to backport things, so this breaks kernel versioning
assumptions. As for those, we scan and check kernel source.

The following are backportable:
 - get_cred_rcu:
	context: tiann#2320 (comment)
	apply: torvalds/linux@97d0fb2
	if above conflicts, try: xiaomi-sdm678/android_kernel_xiaomi_mojito@3fbad8b

 - path_umount:
	context: tiann#1464 (comment)
	apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@2d51422

 - strncpy_from_user_nofault
 	for 5.4, apply: torvalds/linux@bd88bb5
 	for 4.x, apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@424e21f
 	for any failures, check dependency chain of gregkh/linux@f43434e

 - kernel_read / kernel_write
 	< 4.14, backport chain, tested on 4.9
 	torvalds/linux@e13ec93
	torvalds/linux@bdd1d2d
	torvalds/linux@c41fbad
	torvalds/linux@ac452ac

- hint, `curl $url.patch | git am`

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Jun 11, 2025
It is a common thing on the scene to backport things, so this breaks kernel versioning
assumptions. As for those, we scan and check kernel source.

The following are backportable:
 - get_cred_rcu:
	context: tiann#2320 (comment)
	apply: torvalds/linux@97d0fb2
	if above conflicts, try: xiaomi-sdm678/android_kernel_xiaomi_mojito@3fbad8b

 - path_umount:
	context: tiann#1464 (comment)
	apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@2d51422

 - strncpy_from_user_nofault
 	for 5.4, apply: torvalds/linux@bd88bb5
 	for 4.x, apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@424e21f
 	for any failures, check dependency chain of gregkh/linux@f43434e

 - kernel_read / kernel_write
 	< 4.14, backport chain, tested on 4.9
 	torvalds/linux@e13ec93
	torvalds/linux@bdd1d2d
	torvalds/linux@c41fbad
	torvalds/linux@ac452ac

- hint, `curl $url.patch | git am`

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Jun 12, 2025
It is a common thing on the scene to backport things, so this breaks kernel versioning
assumptions. As for those, we scan and check kernel source.

The following are backportable:
 - get_cred_rcu:
	context: tiann#2320 (comment)
	apply: torvalds/linux@97d0fb2
	if above conflicts, try: xiaomi-sdm678/android_kernel_xiaomi_mojito@3fbad8b

 - path_umount:
	context: tiann#1464 (comment)
	apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@2d51422

 - strncpy_from_user_nofault
 	for 5.4, apply: torvalds/linux@bd88bb5
 	for 4.x, apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@424e21f
 	for any failures, check dependency chain of gregkh/linux@f43434e

 - kernel_read / kernel_write
 	< 4.14, backport chain, tested on 4.9
 	torvalds/linux@e13ec93
	torvalds/linux@bdd1d2d
	torvalds/linux@c41fbad
	torvalds/linux@ac452ac

- hint, `curl $url.patch | git am`

Signed-off-by: backslashxx <[email protected]>
Trijal08 pushed a commit to Trijal08/KernelSU-Next that referenced this pull request Jun 14, 2025
Legacy kernel builders have to touch their kernel source code anyway so we
might as well tell them to backport things to achieve some sort of feature
parity.

As for others, it is a common thing on the scene to backport things, so this
breaks kernel versioning assumptions. As for those, we scan and check kernel
source.

Required:
 - get_cred_rcu:
	context: tiann/KernelSU#2320 (comment)
	apply: torvalds/linux@97d0fb2
	if above conflicts, try: xiaomi-sdm678/android_kernel_xiaomi_mojito@3fbad8b

Optional:
 - path_umount:
	context: tiann/KernelSU#1464 (comment)
	apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@2d51422

 - strncpy_from_user_nofault
 	for 5.4, apply: torvalds/linux@bd88bb5
 	for 4.x, apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@424e21f
 	for any failures, check dependency chain of gregkh/linux@f43434e

 - kernel_read / kernel_write
 	< 4.14, backport chain, tested on 4.9
 	torvalds/linux@e13ec93
	torvalds/linux@bdd1d2d
	torvalds/linux@c41fbad
	torvalds/linux@ac452ac

- hint, `curl $url.patch | git am`

Signed-off-by: backslashxx <[email protected]>
Trijal08 pushed a commit to Trijal08/KernelSU-Next that referenced this pull request Jun 14, 2025
Legacy kernel builders have to touch their kernel source code anyway so we
might as well tell them to backport things to achieve some sort of feature
parity.

As for others, it is a common thing on the scene to backport things, so this
breaks kernel versioning assumptions. As for those, we scan and check kernel
source.

Required:
 - get_cred_rcu:
	context: tiann/KernelSU#2320 (comment)
	apply: torvalds/linux@97d0fb2
	if above conflicts, try: xiaomi-sdm678/android_kernel_xiaomi_mojito@3fbad8b

Optional:
 - path_umount:
	context: tiann/KernelSU#1464 (comment)
	apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@2d51422

 - strncpy_from_user_nofault
 	for 5.4, apply: torvalds/linux@bd88bb5
 	for 4.x, apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@424e21f
 	for any failures, check dependency chain of gregkh/linux@f43434e

 - kernel_read / kernel_write
 	< 4.14, backport chain, tested on 4.9
 	torvalds/linux@e13ec93
	torvalds/linux@bdd1d2d
	torvalds/linux@c41fbad
	torvalds/linux@ac452ac

- hint, `curl $url.patch | git am`

Signed-off-by: backslashxx <[email protected]>
Trijal08 pushed a commit to Trijal08/KernelSU-Next that referenced this pull request Jun 16, 2025
Legacy kernel builders have to touch their kernel source code anyway so we
might as well tell them to backport things to achieve some sort of feature
parity.

As for others, it is a common thing on the scene to backport things, so this
breaks kernel versioning assumptions. As for those, we scan and check kernel
source.

Required:
 - get_cred_rcu:
	context: tiann/KernelSU#2320 (comment)
	apply: torvalds/linux@97d0fb2
	if above conflicts, try: xiaomi-sdm678/android_kernel_xiaomi_mojito@3fbad8b

Optional:
 - path_umount:
	context: tiann/KernelSU#1464 (comment)
	apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@2d51422

 - strncpy_from_user_nofault
 	for 5.4, apply: torvalds/linux@bd88bb5
 	for 4.x, apply: xiaomi-sdm678/android_kernel_xiaomi_mojito@424e21f
 	for any failures, check dependency chain of gregkh/linux@f43434e

 - kernel_read / kernel_write
 	< 4.14, backport chain, tested on 4.9
 	torvalds/linux@e13ec93
	torvalds/linux@bdd1d2d
	torvalds/linux@c41fbad
	torvalds/linux@ac452ac

- hint, `curl $url.patch | git am`

Signed-off-by: backslashxx <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants