Skip to content

Suggest non-gki kernel users to backport path_umount #1464

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
Mar 18, 2024

Conversation

backslashxx
Copy link
Contributor

@backslashxx backslashxx commented Mar 17, 2024

Most kernel builders have to touch their kernel source code anyway, why not also tell them to backport path_umount so even non-gki users can benefit from this?

I know this might be a bit controversial as this will raise the barrier of entry, but the benefits are just so high.

Idea was from OnlyTomInSecond on KernelSU group chat way back, and it has been on the discussions for some time

references:
https://t.me/KernelSU_group/27237/176515
https://t.me/KernelSU_group/3249/184908
#955 (comment)
OnlyTomInSecond/android_kernel_xiaomi_sdm845@03d233d
#1060

https://elixir.bootlin.com/linux/v5.9.1/source/fs/namespace.c#L1728
https://elixir.bootlin.com/linux/v5.10.9/source/fs/namespace.c#L1730
https://elixir.bootlin.com/linux/v6.5/source/fs/namespace.c#L1887 #1464 (comment)

Kernel side change examples
5.4 natsumerinchan/kernel_oneplus_sm8350@961d978
4.19 https://github.com/backslashxx/android_karnol_ximi_fog/commit/164917f56d0e75ab51bb9f1bdf489acac7a6d3db
4.14 crdroidandroid/android_kernel_xiaomi_sm6150@c07c70a
4.9 backslashxx/msm8953-kernel@195f075
4.4 https://github.com/riarumoda/android_kernel_samsung_a9y18qlte/commit/21ea33fe41ce079ec1d663c0bd2201bc00a8084a #1464 (comment)
ofcourse having someone on 3.18 confirm this will be nice.

PROS: umount modules for everyone
CONS: barrier of entry +1

@Asyanx
Copy link

Asyanx commented Mar 17, 2024

+1 work

@xennin
Copy link

xennin commented Mar 17, 2024

pro

@Fede2782
Copy link
Contributor

Fede2782 commented Mar 17, 2024

+1. It could really uniform things up. I can confirm works on my 4.9 and 4.14. Maybe could be implemented directly in KernelSU source, without requiring to manually add to source

@alternoegraha
Copy link

+1

@losshye
Copy link

losshye commented Mar 17, 2024

+1 work on my kramel 😋

@privacyguy123
Copy link

+1

@Fede2782
Copy link
Contributor

@backslashxx I don't know if there is a way to do this but the best way would be to dynamically enable/disable modules umount feature if there is the path_umount code in fs/namespace.c, because very likely @tiann will close this issue as he did with the other one

@backslashxx
Copy link
Contributor Author

@backslashxx I don't know if there is a way to do this but the best way would be to dynamically enable/disable modules umount feature if there is the path_umount code in fs/namespace.c, because very likely @tiann will close this issue as he did with the other one

is there a way to test a function if it exists before linking? if so then thats a plausible way to do it.

@FerryAr
Copy link

FerryAr commented Mar 17, 2024

+1, it was already tested, and it works! So, why not?

@Fede2782
Copy link
Contributor

Fede2782 commented Mar 17, 2024

@backslashxx I don't know if there is a way to do this but the best way would be to dynamically enable/disable modules umount feature if there is the path_umount code in fs/namespace.c, because very likely @tiann will close this issue as he did with the other one

is there a way to test a function if it exists before linking? if so then thats a plausible way to do it.

I would say to make that little part of code separated and it could be built or not by a Makefile statement if it locates the code in fs/namespace.c. I will try to implement this if i have time in these days if it is possible

@backslashxx
Copy link
Contributor Author

backslashxx commented Mar 17, 2024

I would say to make that little part of code separated and it could be built or not by a Makefile statement if it locates the code in fs/namespace.c. I will try to implement this if i have time in these days if it is possible

Good idea.
check latest change
I continue with #error warning and still forcing builder to do it, or of course, do nothing?? b-b-b-but I want everyone to do it bruv

testing with gcc
image

@backslashxx
Copy link
Contributor Author

backslashxx commented Mar 17, 2024

Yes i think it could work, good job. I'll try to build later and see if works. In any case you should not force this change i think. Let the devs choose

so something like this?
#warning instead of #error

and ofcourse, I have to edit PR topic/title if that's what they want

@backslashxx backslashxx force-pushed the pr-umount-2 branch 2 times, most recently from b9f98c2 to a973393 Compare March 17, 2024 12:47
@backslashxx
Copy link
Contributor Author

backslashxx commented Mar 17, 2024

I'm still all for forcing it to atleast have feature parity across GKI and non-GKI.
but yeah, It'll depend on them at this point I guess.

Copy link
Contributor

@Fede2782 Fede2782 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really good idea

@backslashxx
Copy link
Contributor Author

backslashxx commented Mar 17, 2024

ready to squash I guess. I'll squash after another approving review

Not so attention grabbing

gcc-14
image
clang-19-git
image

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]>
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:
 - 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 13, 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:
 - 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 13, 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:
 - 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 13, 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:
 - 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 14, 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:
 - 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 14, 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:
 - 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]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Jun 16, 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:
 - 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 16, 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:
 - 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 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]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Jun 25, 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:
 - 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 27, 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:
 - 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]>
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.