4 they now prevent LKMs from modifying pages’ executable bit, but is there any way to bypass it?

|
ameer ฅ’ω’ฅ 2022-07-23 19:29:49
return_of_octobot 2022-07-23 19:20:42
If you don’t wish to build oplus_modules, you need to remove the makefile calls to those drivers or move them behind CONFIG guarding depending on your preferences

Yes but i don’t know where they’re

TUHAR_PAPA 2022-07-23 22:35:28
../kernel/realme/sm6150/kernel/sys.c:1177:28: error: expected expression
v = ((LINUX_VERSION_CODE >> 8) & 0xff) + 60;
^
1 error generated.
TUHAR_PAPA 2022-07-23 22:35:44
anyone know solution
GamingGeek69 2022-07-23 22:36:20
TUHAR_PAPA 2022-07-23 22:35:28
../kernel/realme/sm6150/kernel/sys.c:1177:28: error: expected expression
v = ((LINUX_VERSION_CODE >> 8) & 0xff) + 60;
^
1 error generated.

Did you do any changes to sys.c file? Or in defconfig file?

GamingGeek69 2022-07-23 22:36:30
If yes then that’s what causing the issue
TUHAR_PAPA 2022-07-23 22:36:59
GamingGeek69 2022-07-23 22:36:20
Did you do any changes to sys.c file? Or in defconfig file?

I just upstreamed

GamingGeek69 2022-07-23 22:37:13
TUHAR_PAPA 2022-07-23 22:36:59
I just upstreamed

You solved the conflicts?

TUHAR_PAPA 2022-07-23 22:37:21
GamingGeek69 2022-07-23 22:37:13
You solved the conflicts?

Yes

GamingGeek69 2022-07-23 22:37:58
TUHAR_PAPA 2022-07-23 22:35:28
../kernel/realme/sm6150/kernel/sys.c:1177:28: error: expected expression
v = ((LINUX_VERSION_CODE >> 8) & 0xff) + 60;
^
1 error generated.

It seems you haven’t solved completely, there must be some “<<<” in there search again

TUHAR_PAPA 2022-07-23 22:38:00
KT : https://github.com/Itsyadavishal/sergoops_kernel_realme_sm6150.git
GamingGeek69 2022-07-23 22:39:04
Open the file in which you had conflicts and search again for conflicts and remove them, and also check if you hadn’t remove any brackets or terminators
TUHAR_PAPA 2022-07-23 22:39:08
GamingGeek69 2022-07-23 22:37:58
It seems you haven’t solved completely, there must be some “<<<” in there search again

I removed ======= , <<<<<<HEAD,>>>>>>4.14.283

GamingGeek69 2022-07-23 22:40:50
TUHAR_PAPA 2022-07-23 22:39:08
I removed ======= , <<<<<<HEAD,>>>>>>4.14.283

There will be like :
<<<<<<< head
Bla bla bla
.. .. .. ..
=========
Code code
Code code
>>>>>>>>>>>>

GamingGeek69 2022-07-23 22:41:29
TUHAR_PAPA 2022-07-23 22:39:08
I removed ======= , <<<<<<HEAD,>>>>>>4.14.283

Did you remove all these chars? ( Not the code)

TUHAR_PAPA 2022-07-23 22:42:10
GamingGeek69 2022-07-23 22:41:29
Did you remove all these chars? ( Not the code)

Yes

TUHAR_PAPA 2022-07-23 22:42:41
Only 4 conflicts I fixed them all
GamingGeek69 2022-07-23 22:42:56
Did you take it as a commit from other kernel or directly by Linux.org?
TUHAR_PAPA 2022-07-23 22:47:42
GamingGeek69 2022-07-23 22:42:56
Did you take it as a commit from other kernel or directly by Linux.org?

Directly

GamingGeek69 2022-07-23 22:49:19
TUHAR_PAPA 2022-07-23 22:47:42
Directly

Well i suggest searching again for more conflicts by searching “<<<<” in conflicted files, if still happens then ask a dev of your device community

belugareal1 2022-07-24 04:17:23
Anyone know how to make “fio” work on android
s3gfau1t1337 2022-07-24 08:32:34
Akatsu39 2022-07-22 09:44:29
Tried disabling verification inside vbmeta?

Do I need to do that even if the modified boot.img has been rooted via Magisk before that?

Pzqqt 2022-07-24 10:50:48
Abdul7852 2022-07-23 14:43:12
Check logs when

It stuck on splash screen, no response when connecting to pc. pstore is not generated either.

Abdul7852 2022-07-24 10:51:18
Try adb logcat in recovery
Abdul7852 2022-07-24 10:51:29
It should connect there
Abdul7852 2022-07-24 10:51:32
With ur reboot log
Pzqqt 2022-07-24 10:53:05
Pzqqt 2022-07-24 10:50:48
It stuck on splash screen, no response when connecting to pc. pstore is not generated either.

The above is the case without LTO (ThinLTO) enabled. If I enable ThinLTO, it goes into the bootanimation and is responsive when connected to pc, but it panics for various strange reasons.

MrCarb0n 2022-07-24 14:02:01
hire someone
s3gfau1t1337 2022-07-24 18:12:18
How can I sign boot.img with AVB v2?
s3gfau1t1337 2022-07-24 18:42:02
sakul996 2022-07-22 04:37:48
Did you have any log? Last_kmsg, pstore, etc

What exactly do I need to see in last_kmsg? I have one

sakul996 2022-07-24 18:45:40
s3gfau1t1337 2022-07-24 18:42:02
What exactly do I need to see in last_kmsg? I have one

Check and find out why device isn’t booting

It can be for many reasons (selinux, samsung bloatware, knox)

sakul996 2022-07-24 18:46:24
s3gfau1t1337 2022-07-24 18:12:18
How can I sign boot.img with AVB v2?

If you are using twrp (and obviously empty vbmeta), you don’t have to sign it

John Demand 2022-07-25 03:21:08
I know that since Linux 5.4 they now prevent LKMs from modifying pages’ executable bit, but is there any way to bypass it?
John Demand 2022-07-25 03:21:30
Maybe by playing with the kernel configuration? I haven’t found anything about it.
s3gfau1t1337 2022-07-25 11:22:37
sakul996 2022-07-24 18:45:40
Check and find out why device isn’t booting

It can be for many reasons (selinux, samsung bloatware, knox)

If the last message I see in /proc/last_kmsg is “Starting kernel…” does it mean that it boots correctly?

kanged99 2022-07-25 12:19:40
https://pastebin.pl/view/59ba99d4

nitrogenos – Pastebinpastebin.pl
Pastebin.pl is a website where you can store code/text online for a set period of time and share to anybody on earth
|