Skip to content
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

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

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<qinqingqing1025@gmail.com>
This commit introduces locking to ensure safe access and modification of the `cred` structure within the `escape_to_root` function.

Signed-off-by: SsageParuders <qinqingqing1025@gmail.com>"
@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<qinqingqing1025@gmail.com>
Signed-off-by: SsageParuders <qinqingqing1025@gmail.com>"
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<qinqingqing1025@gmail.com>
Signed-off-by: SsageParuders <qinqingqing1025@gmail.com>"
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 <118538522+backslashxx@users.noreply.github.com>
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 <118538522+backslashxx@users.noreply.github.com>
@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<qinqingqing1025@gmail.com>
Signed-off-by: SsageParuders <qinqingqing1025@gmail.com>"
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<qinqingqing1025@gmail.com>
Signed-off-by: SsageParuders <qinqingqing1025@gmail.com>"
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 <118538522+backslashxx@users.noreply.github.com>
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<qinqingqing1025@gmail.com>
Signed-off-by: SsageParuders <qinqingqing1025@gmail.com>"
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 <118538522+backslashxx@users.noreply.github.com>
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 <118538522+backslashxx@users.noreply.github.com>
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 <118538522+backslashxx@users.noreply.github.com>
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 <118538522+backslashxx@users.noreply.github.com>
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<qinqingqing1025@gmail.com>
Signed-off-by: SsageParuders <qinqingqing1025@gmail.com>"
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<qinqingqing1025@gmail.com>
Signed-off-by: SsageParuders <qinqingqing1025@gmail.com>"
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 <mrsrimar22@gmail.com>
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 <118538522+backslashxx@users.noreply.github.com>
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 <118538522+backslashxx@users.noreply.github.com>
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 <118538522+backslashxx@users.noreply.github.com>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 20, 2025
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.

Another thing is that on NON-GKI, we mostly do NOT care about ABI stability.

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

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

 - 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, just SKIP THIS or check dependency chain of, gregkh/linux@3d70818
 		this got backported to v4.4.236, v4.9.236, v4.14.197, v4.19.144

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

Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 20, 2025
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.

Another thing is that on NON-GKI, we mostly do NOT care about ABI stability.

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

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

 - 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, just SKIP THIS or check dependency chain of, gregkh/linux@3d70818
 		this got backported to v4.4.236, v4.9.236, v4.14.197, v4.19.144

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

Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
diphons pushed a commit to diphons/kernel_xiaomi_sm8250 that referenced this pull request Feb 21, 2025
diphons pushed a commit to diphons/kernel_xiaomi_sm8350 that referenced this pull request Feb 22, 2025
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 22, 2025
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.

Another thing is that on NON-GKI, we mostly do NOT care about ABI stability.

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

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

 - 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, just SKIP THIS or check dependency chain of, gregkh/linux@3d70818
 		this got backported to v4.4.236, v4.9.236, v4.14.197, v4.19.144

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

Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 22, 2025
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.

Another thing is that on NON-GKI, we mostly do NOT care about ABI stability.

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

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

 - 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, just SKIP THIS or check dependency chain of, gregkh/linux@3d70818
 		this got backported to v4.4.236, v4.9.236, v4.14.197, v4.19.144

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

Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 22, 2025
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.

Another thing is that on NON-GKI, we mostly do NOT care about ABI stability.

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

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

 - 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, just SKIP THIS or check dependency chain of, gregkh/linux@3d70818
 		this got backported to v4.4.236, v4.9.236, v4.14.197, v4.19.144

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

Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 22, 2025
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.

Another thing is that on NON-GKI, we mostly do NOT care about ABI stability.

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

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

 - 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, just SKIP THIS or check dependency chain of, gregkh/linux@3d70818
 		this got backported to v4.4.236, v4.9.236, v4.14.197, v4.19.144

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

Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 22, 2025
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.

Another thing is that on NON-GKI, we mostly do NOT care about ABI stability.

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

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

 - 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, just SKIP THIS or check dependency chain of, gregkh/linux@3d70818
 		this got backported to v4.4.236, v4.9.236, v4.14.197, v4.19.144

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

Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 22, 2025
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.

Another thing is that on NON-GKI, we mostly do NOT care about ABI stability.

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

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

 - 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, just SKIP THIS or check dependency chain of, gregkh/linux@3d70818
 		this got backported to v4.4.236, v4.9.236, v4.14.197, v4.19.144

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

Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 22, 2025
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.

Another thing is that on NON-GKI, we mostly do NOT care about ABI stability.

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

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

 - 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, just SKIP THIS or check dependency chain of, gregkh/linux@3d70818
 		this got backported to v4.4.236, v4.9.236, v4.14.197, v4.19.144

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

Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 23, 2025
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.

Another thing is that on NON-GKI, we mostly do NOT care about ABI stability.

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

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

 - 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, just SKIP THIS or check dependency chain of, gregkh/linux@3d70818
 		this got backported to v4.4.236, v4.9.236, v4.14.197, v4.19.144

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

Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 23, 2025
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.

Another thing is that on NON-GKI, we mostly do NOT care about ABI stability.

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

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

 - 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, just SKIP THIS or check dependency chain of, gregkh/linux@3d70818
 		this got backported to v4.4.236, v4.9.236, v4.14.197, v4.19.144

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

Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 24, 2025
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.

Another thing is that on NON-GKI, we mostly do NOT care about ABI stability.

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

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

 - 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, just SKIP THIS or check dependency chain of, gregkh/linux@3d70818
 		this got backported to v4.4.236, v4.9.236, v4.14.197, v4.19.144

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

Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 24, 2025
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.

Another thing is that on NON-GKI, we mostly do NOT care about ABI stability.

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

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

 - 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, just SKIP THIS or check dependency chain of, gregkh/linux@3d70818
 		this got backported to v4.4.236, v4.9.236, v4.14.197, v4.19.144

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

Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 24, 2025
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.

Another thing is that on NON-GKI, we mostly do NOT care about ABI stability.

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

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

 - 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, just SKIP THIS or check dependency chain of, gregkh/linux@3d70818
 		this got backported to v4.4.236, v4.9.236, v4.14.197, v4.19.144

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

Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
diphons pushed a commit to diphons/kernel_xiaomi_sm8250 that referenced this pull request Feb 24, 2025
diphons pushed a commit to diphons/kernel_xiaomi_sm8250 that referenced this pull request Feb 24, 2025
diphons pushed a commit to diphons/kernel_xiaomi_sm8250 that referenced this pull request Feb 24, 2025
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 25, 2025
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.

Another thing is that on NON-GKI, we mostly do NOT care about ABI stability.

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

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

 - 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, just SKIP THIS or check dependency chain of, gregkh/linux@3d70818
 		this got backported to v4.4.236, v4.9.236, v4.14.197, v4.19.144

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

Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 25, 2025
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.

Another thing is that on NON-GKI, we mostly do NOT care about ABI stability.

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

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

 - 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, just SKIP THIS or check dependency chain of, gregkh/linux@3d70818
 		this got backported to v4.4.236, v4.9.236, v4.14.197, v4.19.144

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

Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 25, 2025
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.

Another thing is that on NON-GKI, we mostly do NOT care about ABI stability.

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

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

 - 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, just SKIP THIS or check dependency chain of, gregkh/linux@3d70818
 		this got backported to v4.4.236, v4.9.236, v4.14.197, v4.19.144

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

Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 25, 2025
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.

Another thing is that on NON-GKI, we mostly do NOT care about ABI stability.

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

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

 - 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, just SKIP THIS or check dependency chain of, gregkh/linux@3d70818
 		this got backported to v4.4.236, v4.9.236, v4.14.197, v4.19.144

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

Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 25, 2025
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.

Another thing is that on NON-GKI, we mostly do NOT care about ABI stability.

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

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

 - 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, just SKIP THIS or check dependency chain of, gregkh/linux@3d70818
 		this got backported to v4.4.236, v4.9.236, v4.14.197, v4.19.144

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

Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 25, 2025
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.

Another thing is that on NON-GKI, we mostly do NOT care about ABI stability.

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

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

 - 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, just SKIP THIS or check dependency chain of, gregkh/linux@3d70818
 		this got backported to v4.4.236, v4.9.236, v4.14.197, v4.19.144

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

Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 27, 2025
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.

Another thing is that on NON-GKI, we mostly do NOT care about ABI stability.

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

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

 - 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, just SKIP THIS or check dependency chain of, gregkh/linux@3d70818
 		this got backported to v4.4.236, v4.9.236, v4.14.197, v4.19.144

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

Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Mar 1, 2025
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.

Another thing is that on NON-GKI, we mostly do NOT care about ABI stability.

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

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

 - 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, just SKIP THIS or check dependency chain of, gregkh/linux@3d70818
 		this got backported to v4.4.236, v4.9.236, v4.14.197, v4.19.144

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

Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Mar 3, 2025
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.

Another thing is that on NON-GKI, we mostly do NOT care about ABI stability.

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

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

 - 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, just SKIP THIS or check dependency chain of, gregkh/linux@3d70818
 		this got backported to v4.4.236, v4.9.236, v4.14.197, v4.19.144

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

Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Mar 3, 2025
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.

Another thing is that on NON-GKI, we mostly do NOT care about ABI stability.

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

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

 - 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, just SKIP THIS or check dependency chain of, gregkh/linux@3d70818
 		this got backported to v4.4.236, v4.9.236, v4.14.197, v4.19.144

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

Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Mar 4, 2025
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.

Another thing is that on NON-GKI, we mostly do NOT care about ABI stability.

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

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

 - 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, just SKIP THIS or check dependency chain of, gregkh/linux@3d70818
 		this got backported to v4.4.236, v4.9.236, v4.14.197, v4.19.144

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

Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
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