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

Supporting x86/x86_64 #1

Closed
hmtheboy154 opened this issue Dec 10, 2022 · 34 comments
Closed

Supporting x86/x86_64 #1

hmtheboy154 opened this issue Dec 10, 2022 · 34 comments

Comments

@hmtheboy154
Copy link
Contributor

Hi, I just read about the project and I really like it. I am maintaining BlissOS and currently looking for a better root solution than the old Superuser made by koush. But looking at the codes, it seems like the project only support arm64 so far, are there any plan for x86/x86_64 ? I can help you test with x86_64 if you want.

@tiann
Copy link
Owner

tiann commented Dec 11, 2022

x86_64 is feasible and I will try it, but 32bit arch such as x86 and arm is unsupported

@hmtheboy154
Copy link
Contributor Author

thanks

@tiann
Copy link
Owner

tiann commented Dec 12, 2022

x86_64 support is added in 0d8785e, could you test it with the latest commit?

@hmtheboy154
Copy link
Contributor Author

ok, by the way I can only test SELinux in permissive because this is Android-x86

@tiann
Copy link
Owner

tiann commented Dec 12, 2022

If it is permissive, may this cause bootloop?

@hmtheboy154
Copy link
Contributor Author

if you make that hack then it might be, iirc we can't even get SurfaceFlinger running with enforcing

@tiann
Copy link
Owner

tiann commented Dec 12, 2022

2806601 keeps permissive if it is

@hmtheboy154
Copy link
Contributor Author

Screenshot_20221213-212222_KernelSU
image

I compiled the kernel module and the app, but the app said not detected......... does that mean I have to compile the userspace su too ?

@tiann
Copy link
Owner

tiann commented Dec 13, 2022

If you build the manager app yourself, you should also change this to the apk's signature: https://github.com/tiann/KernelSU/blob/main/kernel/apk_sign.c#L115

@tiann
Copy link
Owner

tiann commented Dec 13, 2022

The signature ensure only the manager can allow/disallow root request, you can try my build(it's the builtin
app-release.apk.zip
signature)

@tiann
Copy link
Owner

tiann commented Dec 13, 2022

You can modify this line https://github.com/tiann/KernelSU/blob/main/kernel/apk_sign.c#L79 and read the dmesg to get your EXPECTED_SIZE and EXPECTED_HASH.

@hmtheboy154
Copy link
Contributor Author

hmtheboy154 commented Dec 13, 2022

The signature ensure only the manager can allow/disallow root request, you can try my build(it's the builtin app-release.apk.zip signature)

I tested this and it still not working, but on dmesg it show this
PXL_20221213_165020347 MP

@hmtheboy154
Copy link
Contributor Author

You can modify this line https://github.com/tiann/KernelSU/blob/main/kernel/apk_sign.c#L79 and read the dmesg to get your EXPECTED_SIZE and EXPECTED_HASH.

Thanks

@tiann
Copy link
Owner

tiann commented Dec 14, 2022

The signature ensure only the manager can allow/disallow root request, you can try my build(it's the builtin app-release.apk.zip signature)

I tested this and it still not working, but on dmesg it show this PXL_20221213_165020347 MP

The system doesn't have /data/adb directory?

@tiann
Copy link
Owner

tiann commented Dec 14, 2022

show some load_allow_list open "/data/adb" failed -2 is OK, when /data/ is mounted, it wouldn't show
This log is actually waiting /data to be mounted.

@hmtheboy154
Copy link
Contributor Author

by the way, a small request
can you limit the manager app to only compile x86_64 and arm64 lib ? to avoid in case the system use x86/arm libs instead

@tiann
Copy link
Owner

tiann commented Dec 16, 2022

by the way, a small request can you limit the manager app to only compile x86_64 and arm64 lib ? to avoid in case the system use x86/arm libs instead

Sure, please try this build: https://github.com/tiann/KernelSU/actions/runs/3709915866

@hmtheboy154
Copy link
Contributor Author

PXL_20221217_072017482 MP
The app does run but su still not working, here is what I got on dmesg.

@hmtheboy154
Copy link
Contributor Author

https://github.com/hmtheboy154/Darkmatter-kernel/tree/umbral
This is how I integrate it into my kernel

@tiann
Copy link
Owner

tiann commented Dec 19, 2022

Does the kernel have CONFIG_KPROBES enabled?

@hmtheboy154
Copy link
Contributor Author

Does the kernel have CONFIG_KPROBES enabled?

it haven't, and when compile it show this

ld.lld: error: undefined symbol: task_stack_page
>>> referenced by ld-temp.o
>>>               vmlinux.o:(sh_user_path)

@hmtheboy154
Copy link
Contributor Author

hmtheboy154 commented Dec 19, 2022

I'm including linux/sched/task_stack.h to sucompat.c right now, I'll see if that help

@tiann
Copy link
Owner

tiann commented Dec 19, 2022

Maybe you should enable CONFIG_THREAD_INFO_IN_TASK?

@hmtheboy154
Copy link
Contributor Author

I turn that on already

@hmtheboy154
Copy link
Contributor Author

Screenshot_20221219-121508_KernelSU
Screenshot_20221219-121615_Termux

It compiled and works perfectly

I also made a PR, can you check it, I don't know if older kernel have task_types.h like this

@hmtheboy154
Copy link
Contributor Author

guess we should close this issue, x86_64 is working now

@iiowoii3389
Copy link

Screenshot_20221219-121508_KernelSU Screenshot_20221219-121615_Termux

It compiled and works perfectly

I also made a PR, can you check it, I don't know if older kernel have task_types.h like this

Hello, I see that your Android x86 is using Linux kernel 5.15. Do you have any available source code? The 5.15 kernel compiled by myself does not work, and the system graphical interface does not refresh

logcat.log
dmesg.log

@hmtheboy154
Copy link
Contributor Author

Hello, I see that your Android x86 is using Linux kernel 5.15. Do you have any available source code? The 5.15 kernel compiled by myself does not work, and the system graphical interface does not refresh

logcat.log dmesg.log

Which Android version are you trying to build ?

arter97 added a commit to arter97/KernelSU that referenced this issue May 22, 2024
Nested iterate_dir() within the same shared parent directory is an
unsupported behavior and may cause deadlock when other processes
access files under the same directory.

Avoid it by using a linked-list and processing it after directory
traversal is done.

[24928.245837] sysrq: Show Blocked State
[24928.247448] task:binder:1535_1   state:D stack:    0 pid: 1594 ppid:     1 flags:0x04000000
[24928.247462] Call trace:
[24928.247471] __switch_to+0x148/0x250
[24928.247480] __schedule+0x454/0x6ec
[24928.247488] schedule+0x7c/0x118
[24928.247498] rwsem_down_read_slowpath+0x4c0/0x9b8
[24928.247506] down_read_killable+0x3c/0x174
[24928.247519] iterate_dir+0x40/0x184
[24928.247528] __arm64_sys_getdents64+0x58/0x148
[24928.247540] el0_svc_common.llvm.14247025778268414372+0xa8/0x138
[24928.247548] do_el0_svc+0x24/0x90
[24928.247559] el0_svc+0x10/0x1c
[24928.247567] el0_sync_handler+0xcc/0xe4
[24928.247576] el0_sync+0x1a0/0x1c0
[24928.247586] task:binder:1535_4   state:D stack:    0 pid: 2679 ppid:     1 flags:0x04000000
[24928.247597] Call trace:
[24928.247605] __switch_to+0x148/0x250
[24928.247613] __schedule+0x454/0x6ec
[24928.247621] schedule+0x7c/0x118
[24928.247629] rwsem_down_write_slowpath+0x44c/0xbd4
[24928.247637] down_write+0x94/0x138
[24928.247648] do_renameat2+0x1e4/0x4b4
[24928.247658] __arm64_sys_renameat2+0x68/0x84
[24928.247667] el0_svc_common.llvm.14247025778268414372+0xa8/0x138
[24928.247675] do_el0_svc+0x24/0x90
[24928.247683] el0_svc+0x10/0x1c
[24928.247691] el0_sync_handler+0xcc/0xe4
[24928.247698] el0_sync+0x1a0/0x1c0
[24928.247706] task:binder:1535_5   state:D stack:    0 pid: 2680 ppid:     1 flags:0x04000000
[24928.247716] Call trace:
[24928.247724] __switch_to+0x148/0x250
[24928.247731] __schedule+0x454/0x6ec
[24928.247738] schedule+0x7c/0x118
[24928.247746] rwsem_down_read_slowpath+0x4c0/0x9b8
[24928.247753] down_read_killable+0x3c/0x174
[24928.247760] iterate_dir+0x40/0x184
[24928.247767] __arm64_sys_getdents64+0x58/0x148
[24928.247775] el0_svc_common.llvm.14247025778268414372+0xa8/0x138
[24928.247783] do_el0_svc+0x24/0x90
[24928.247791] el0_svc+0x10/0x1c
[24928.247798] el0_sync_handler+0xcc/0xe4
[24928.247805] el0_sync+0x1a0/0x1c0
[24928.247815] task:binder:1535_9   state:D stack:    0 pid: 2684 ppid:     1 flags:0x04000000
[24928.247825] Call trace:
[24928.247832] __switch_to+0x148/0x250
[24928.247839] __schedule+0x454/0x6ec
[24928.247846] schedule+0x7c/0x118
[24928.247853] rwsem_down_read_slowpath+0x5b8/0x9b8
[24928.247860] down_read+0x3c/0x164
[24928.247869] lookup_slow+0x2c/0x60
[24928.247877] link_path_walk+0x31c/0x380
[24928.247884] path_lookupat+0x68/0x11c
[24928.247891] filename_lookup+0x88/0x17c
[24928.247901] vfs_statx+0x9c/0x1b0
[24928.247908] __arm64_sys_newfstatat+0x34/0x5c
[24928.247916] el0_svc_common.llvm.14247025778268414372+0xa8/0x138
[24928.247924] do_el0_svc+0x24/0x90
[24928.247932] el0_svc+0x10/0x1c
[24928.247939] el0_sync_handler+0xcc/0xe4
[24928.247946] el0_sync+0x1a0/0x1c0
[24928.248384] task:AnrConsumer     state:D stack:    0 pid:12893 ppid:  1158 flags:0x04000800
[24928.248396] Call trace:
[24928.248403] __switch_to+0x148/0x250
[24928.248411] __schedule+0x454/0x6ec
[24928.248418] schedule+0x7c/0x118
[24928.248426] rwsem_down_read_slowpath+0x5b8/0x9b8
[24928.248433] down_read+0x3c/0x164
[24928.248440] lookup_slow+0x2c/0x60
[24928.248448] link_path_walk+0x31c/0x380
[24928.248456] path_lookupat+0x68/0x11c
[24928.248464] filename_lookup+0x88/0x17c
[24928.248474] user_statfs+0x44/0x1c4
[24928.248481] __arm64_sys_statfs+0x28/0x104
[24928.248490] el0_svc_common.llvm.14247025778268414372+0xa8/0x138
[24928.248498] do_el0_svc+0x24/0x90
[24928.248506] el0_svc+0x10/0x1c
[24928.248514] el0_sync_handler+0xcc/0xe4
[24928.248520] el0_sync+0x1a0/0x1c0
[24928.249471] task:binder:4694_6   state:D stack:    0 pid: 7417 ppid:  1158 flags:0x04000800
[24928.249488] Call trace:
[24928.249502] __switch_to+0x148/0x250
[24928.249509] __schedule+0x454/0x6ec
[24928.249514] schedule+0x7c/0x118
[24928.249524] rwsem_down_read_slowpath+0x5b8/0x9b8
[24928.249531] down_read+0x3c/0x164
[24928.249538] lookup_slow+0x2c/0x60
[24928.249547] link_path_walk+0x31c/0x380
[24928.249554] path_openat+0x84/0xacc
[24928.249559] do_filp_open+0x6c/0xf8
[24928.249568] do_sys_openat2+0x7c/0x1e8
[24928.249576] __arm64_sys_openat+0x64/0x74
[24928.249584] el0_svc_common.llvm.14247025778268414372+0xa8/0x138
[24928.249589] do_el0_svc+0x24/0x90
[24928.249632] el0_svc+0x10/0x1c
[24928.249640] el0_sync_handler+0xcc/0xe4
[24928.249645] el0_sync+0x1a0/0x1c0
[24928.250868] task:othing.launcher state:D stack:    0 pid:29301 ppid:  1158 flags:0x04000801
[24928.250880] Call trace:
[24928.250887] __switch_to+0x148/0x250
[24928.250894] __schedule+0x454/0x6ec
[24928.250899] schedule+0x7c/0x118
[24928.250905] rwsem_down_read_slowpath+0x5b8/0x9b8
[24928.250910] down_read+0x3c/0x164
[24928.250916] lookup_slow+0x2c/0x60
[24928.250922] link_path_walk+0x31c/0x380
[24928.250928] path_openat+0x84/0xacc
[24928.250934] do_filp_open+0x6c/0xf8
[24928.250941] do_sys_openat2+0x7c/0x1e8
[24928.250947] __arm64_sys_openat+0x64/0x74
[24928.250954] el0_svc_common.llvm.14247025778268414372+0xa8/0x138
[24928.250959] do_el0_svc+0x24/0x90
[24928.250965] el0_svc+0x10/0x1c
[24928.250970] el0_sync_handler+0xcc/0xe4
[24928.250976] el0_sync+0x1a0/0x1c0
[24928.251020] task:BG Thread tiann#1    state:D stack:    0 pid: 9009 ppid:  1158 flags:0x04000800
[24928.251027] Call trace:
[24928.251033] __switch_to+0x148/0x250
[24928.251039] __schedule+0x454/0x6ec
[24928.251044] schedule+0x7c/0x118
[24928.251050] rwsem_down_read_slowpath+0x5b8/0x9b8
[24928.251056] down_read+0x3c/0x164
[24928.251062] lookup_slow+0x2c/0x60
[24928.251069] link_path_walk+0x31c/0x380
[24928.251075] path_openat+0x84/0xacc
[24928.251080] do_filp_open+0x6c/0xf8
[24928.251086] do_sys_openat2+0x7c/0x1e8
[24928.251092] __arm64_sys_openat+0x64/0x74
[24928.251098] el0_svc_common.llvm.14247025778268414372+0xa8/0x138
[24928.251104] do_el0_svc+0x24/0x90
[24928.251111] el0_svc+0x10/0x1c
[24928.251116] el0_sync_handler+0xcc/0xe4
[24928.251121] el0_sync+0x1a0/0x1c0
[24928.253819] task:Thread-221      state:D stack:    0 pid:11089 ppid:  1158 flags:0x04000809
[24928.253838] Call trace:
[24928.253849] __switch_to+0x148/0x250
[24928.253857] __schedule+0x454/0x6ec
[24928.253866] schedule+0x7c/0x118
[24928.253873] rwsem_down_read_slowpath+0x5b8/0x9b8
[24928.253878] down_read+0x3c/0x164
[24928.253885] lookup_slow+0x2c/0x60
[24928.253895] link_path_walk+0x31c/0x380
[24928.253901] path_openat+0x84/0xacc
[24928.253907] do_filp_open+0x6c/0xf8
[24928.253914] do_sys_openat2+0x7c/0x1e8
[24928.253922] __arm64_sys_openat+0x64/0x74
[24928.253929] el0_svc_common.llvm.14247025778268414372+0xa8/0x138
[24928.253934] do_el0_svc+0x24/0x90
[24928.253941] el0_svc+0x10/0x1c
[24928.253949] el0_sync_handler+0xcc/0xe4
[24928.253954] el0_sync+0x1a0/0x1c0
[24928.254415] task:kworker/u32:3   state:D stack:    0 pid:10599 ppid:     2 flags:0x00000008
[24928.254435] Workqueue: kernelsu_work_queue do_update_uid.llvm.10243150712685858777
[24928.254442] Call trace:
[24928.254449] __switch_to+0x148/0x250
[24928.254458] __schedule+0x454/0x6ec
[24928.254463] schedule+0x7c/0x118
[24928.254469] rwsem_down_read_slowpath+0x5b8/0x9b8
[24928.254475] down_read+0x3c/0x164
[24928.254481] path_openat+0x19c/0xacc
[24928.254487] do_filp_open+0x6c/0xf8
[24928.254493] filp_open+0x88/0xac
[24928.254501] ksu_filp_open_compat+0x2c/0x238
[24928.254507] my_actor+0x150/0x200
[24928.254516] f2fs_fill_dentries+0x18c/0x2b4
[24928.254522] f2fs_readdir.llvm.12898971218442528687+0x170/0x3c4
[24928.254528] iterate_dir+0xa0/0x184
[24928.254537] do_update_uid.llvm.10243150712685858777+0x2dc/0x2f8
[24928.254547] process_scheduled_works+0x1c8/0x550
[24928.254554] worker_thread+0x340/0x724
[24928.254561] kthread+0x13c/0x178
[24928.254566] ret_from_fork+0x10/0x30
[24928.254665] task:SysUiBg         state:D stack:    0 pid:12113 ppid:  1158 flags:0x04000800
[24928.254686] Call trace:
[24928.254698] __switch_to+0x148/0x250
[24928.254710] __schedule+0x454/0x6ec
[24928.254724] schedule+0x7c/0x118
[24928.254738] rwsem_down_read_slowpath+0x5b8/0x9b8
[24928.254750] down_read+0x3c/0x164
[24928.254762] lookup_slow+0x2c/0x60
[24928.254776] link_path_walk+0x31c/0x380
[24928.254789] path_openat+0x84/0xacc
[24928.254802] do_filp_open+0x6c/0xf8
[24928.254816] do_sys_openat2+0x7c/0x1e8
[24928.254824] __arm64_sys_openat+0x64/0x74
[24928.254831] el0_svc_common.llvm.14247025778268414372+0xa8/0x138
[24928.254837] do_el0_svc+0x24/0x90
[24928.254843] el0_svc+0x10/0x1c
[24928.254852] el0_sync_handler+0xcc/0xe4
[24928.254857] el0_sync+0x1a0/0x1c0
[24928.254924] task:facebook.katana state:D stack:    0 pid:12407 ppid:  1158 flags:0x04000801
[24928.254932] Call trace:
[24928.254939] __switch_to+0x148/0x250
[24928.254945] __schedule+0x454/0x6ec
[24928.254950] schedule+0x7c/0x118
[24928.254957] rwsem_down_read_slowpath+0x5b8/0x9b8
[24928.254965] down_read+0x3c/0x164
[24928.254970] lookup_slow+0x2c/0x60
[24928.254977] link_path_walk+0x31c/0x380
[24928.254982] path_lookupat+0x68/0x11c
[24928.254987] filename_lookup+0x88/0x17c
[24928.254993] vfs_statx+0x9c/0x1b0
[24928.254999] __arm64_sys_newfstatat+0x34/0x5c
[24928.255009] el0_svc_common.llvm.14247025778268414372+0xa8/0x138
[24928.255014] do_el0_svc+0x24/0x90
[24928.255020] el0_svc+0x10/0x1c
[24928.255027] el0_sync_handler+0xcc/0xe4
[24928.255032] el0_sync+0x1a0/0x1c0
[24928.255090] task:Thread-5        state:D stack:    0 pid:12798 ppid:  1158 flags:0x04000801
[24928.255099] Call trace:
[24928.255105] __switch_to+0x148/0x250
[24928.255111] __schedule+0x454/0x6ec
[24928.255120] schedule+0x7c/0x118
[24928.255126] rwsem_down_read_slowpath+0x5b8/0x9b8
[24928.255132] down_read+0x3c/0x164
[24928.255137] lookup_slow+0x2c/0x60
[24928.255144] link_path_walk+0x31c/0x380
[24928.255150] path_lookupat+0x68/0x11c
[24928.255155] filename_lookup+0x88/0x17c
[24928.255161] vfs_statx+0x9c/0x1b0
[24928.255166] __arm64_sys_newfstatat+0x34/0x5c
[24928.255174] el0_svc_common.llvm.14247025778268414372+0xa8/0x138
[24928.255183] do_el0_svc+0x24/0x90
[24928.255190] el0_svc+0x10/0x1c
[24928.255195] el0_sync_handler+0xcc/0xe4
[24928.255200] el0_sync+0x1a0/0x1c0

Signed-off-by: Juhyung Park <[email protected]>
@zsmweb
Copy link

zsmweb commented Oct 14, 2024

Hello, @tiann @hmtheboy154
I made a self-compiled blissos (Bliss-v16.9.7-x86_64-UNOFFICIAL-gapps-20241013.iso), and install it to virtualbox.
Why the manager app only has the home tab, but no SuperUser and Module tabs?
image
logcat.txt
dmesg.txt
Wish for your help, thks!!!

@hmtheboy154
Copy link
Contributor Author

Hello, @tiann @hmtheboy154 I made a self-compiled blissos (Bliss-v16.9.7-x86_64-UNOFFICIAL-gapps-20241013.iso), and install it to virtualbox. Why the manager app only has the home tab, but no SuperUser and Module tabs? image logcat.txt dmesg.txt Wish for your help, thks!!!

test #2102

@zsmweb
Copy link

zsmweb commented Oct 15, 2024

@hmtheboy154 working! thks!!!
But i have another question.
Do you have a note for how to porting KernelSU to Blissos that includes all commit?
I build my own aosp with the same kernel with BlissOS (umbral-20230826) .
but enter boot loop!
[ 1.090298] KernelSU: ksu_lsm_hook_init
[ 1.091956] KernelSU: sucompat: execve_kp: 0
[ 1.093310] KernelSU: sucompat: newfstatat_kp: 0
[ 1.094753] KernelSU: sucompat: faccessat_kp: 0
[ 1.095666] KernelSU: ksud: execve_kp: 0
[ 1.097137] KernelSU: ksud: vfs_read_kp: 0
[ 1.100009] KernelSU: ksud: input_handle_event_kp: 0
[ 1.111492] xt_time: kernel timezone is -0000
[ 1.111817] ipip: IPv4 and MPLS over IPv4 tunneling driver
[ 1.112266] gre: GRE over IPv4 demultiplexor driver
[ 1.112749] ip_gre: GRE over IPv4 tunneling driver
[ 1.113457] Initializing XFRM netlink socket
[ 1.113793] NET: Registered PF_INET6 protocol family
[ 1.115040] Segment Routing with IPv6
[ 1.115419] In-situ OAM (IOAM) with IPv6
[ 1.115699] mip6: Mobile IPv6
[ 1.115955] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 1.116726] NET: Registered PF_PACKET protocol family
[ 1.117246] NET: Registered PF_KEY protocol family
[ 1.117733] l2tp_core: L2TP core driver, V2.0
[ 1.118133] l2tp_ppp: PPPoL2TP kernel driver, V2.0
[ 1.118580] l2tp_ip: L2TP IP encapsulation support (L2TPv3)
[ 1.119171] l2tp_netlink: L2TP netlink interface
[ 1.119696] l2tp_eth: L2TP ethernet pseudowire support (L2TPv3)
[ 1.120298] l2tp_ip6: L2TP IP encapsulation support for IPv6 (L2TPv3)
[ 1.120963] NET: Registered PF_PHONET protocol family
[ 1.121483] Key type dns_resolver registered
[ 1.122223] IPI shorthand broadcast: enabled
[ 1.122516] AVX2 version of gcm_enc/dec engaged.
[ 1.122886] AES CTR mode by8 optimization enabled
[ 1.123361] sched_clock: Marking stable (1010647010, 111510919)->(1605382623, -483224694)
[ 1.124116] registered taskstats version 1
[ 1.124390] Loading compiled-in X.509 certificates
[ 1.126261] zswap: loaded using pool zstd/zbud
[ 1.126808] Key type .fscrypt registered
[ 1.127068] Key type fscrypt-provisioning registered
[ 1.127707] Btrfs loaded, crc32c=crc32c-intel, zoned=no, fsverity=no
[ 1.128670] PM: Magic number: 12:499:464
[ 1.131221] Freeing unused kernel image (initmem) memory: 3652K
[ 1.164199] Write protecting the kernel read-only data: 30720k
[ 1.173085] Freeing unused kernel image (text/rodata gap) memory: 2036K
[ 1.173640] Freeing unused kernel image (rodata/data gap) memory: 636K
[ 1.174143] rodata_test: all tests were successful
[ 1.174632] Run /init as init process
[ 1.189647] random: env: uninitialized urandom read (4 bytes read)
[ 1.190687] random: setsid: uninitialized urandom read (4 bytes read)
[ 1.191644] random: cttyhack: uninitialized urandom read (4 bytes read)
Detecting Androi[ 1.194807] EXT4-fs (sda3): mounted filesystem without journal. Opts: (null). Quota mode: none.
d-x86...try_mount ro /dev/sda3 /mnt
13 blocks
try_mount ro /dev/block/sda6 /mnt
[ 1.210823] EXT4-fs (sda6): mounted filesystem without journal. Opts: (null). Quota mode: none.
try_mount rw /dev/sda7 apex
[ 1.216019] EXT4-fs (sda7): mounted filesystem without journal. Opts: (null). Quota mode: none.
try_mount ro /dev/sda8 vendor
[ 1.218187] EXT4-fs (sda8): mounted filesystem without journal. Opts: (null). Quota mode: none.
Setting up swapspace version 1, size = 8589930496 bytes
[ 1.221898] Adding 8388604k swap on /dev/sdb2. Priority:-2 extents:1 across:8388604k SSFS
try_mount rw /dev/sdb1 ota
[ 1.225372] EXT4-fs (sdc3): warning: mounting fs with errors, running e2fsck is recommended
mount: mounting /dev/sdb1 on ota failed: No such file or directory
try_mount rw /dev/sdc3 data
[ 1.236971] EXT4-fs (sdc3): recovery complete
[ 1.237256] EXT4-fs (sdc3): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
try_mount ro /dev/sdd1 pcgame
mount: mounting /dev/sdd1 on pcgame failed: No such file or directory

Use Alt-F1-F2 or Alt-F7 to switch to debug console.
[ 1.240773] EXT4-fs (sdc1): recovery complete
[ 1.241058] EXT4-fs (sdc1): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
[ 1.241986] ext4 filesystem being mounted at /android/oem supports timestamps until 2038 (0x7fffffff)
[ 1.258171] init: init first stage started!
[ 1.269944] init: Unable to open /lib/modules, skipping module loading.
[ 1.270766] init: [libfs_mgr]ReadFstabFromDt(): failed to read fstab from dt
[ 1.271504] init: [libfs_mgr]ReadDefaultFstab(): failed to find device default fstab
[ 1.272823] init: Failed to create FirstStageMount failed to read default fstab for first stage mount
[ 1.273867] init: Failed to mount required partitions early ...
[ 1.274444] init: Skipped setting INIT_AVB_VERSION (not in recovery mode)
[ 1.275057] KernelSU: /system/bin/init argc: 3
[ 1.275444] KernelSU: first arg: second_stage
[ 1.275841] KernelSU: /system/bin/init second_stage executed
[ 1.276692] KernelSU: SELinux permissive or disabled, apply rules!
[ 1.276694] BUG: kernel NULL pointer dereference, address: 0000000000000068
[ 1.277937] #PF: supervisor read access in kernel mode
[ 1.278738] #PF: error_code(0x0000) - not-present page
[ 1.279220] PGD 0 P4D 0
[ 1.279440] Oops: 0000 [#1] PREEMPT SMP
[ 1.279800] CPU: 5 PID: 1 Comm: init Not tainted 5.15.125-GoogleLTS-xanmod1-umbral #13
[ 1.280767] Hardware name: innotek GmbH VirtualBox/VirtualBox, BIOS VirtualBox 12/01/2006
[ 1.281636] RIP: 0010:symtab_search+0x10/0x100
[ 1.282030] Code: eb 05 b8 ef ff ff ff 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f 5d c3 00 00 cc cc 0f 1f 44 00 00 55 48 89 e5 41 57 41 56 41 54 53 <44> 8b 67 08 31 db 45 85 e4 0f 84 d1 00 00 00 49 89 f6 49 89 ff 48
[ 1.284687] RSP: 0018:ffffb21b4009bcd8 EFLAGS: 00010202
[ 1.285165] RAX: 0000000000000036 RBX: ffffb21b4009bd40 RCX: 7536a2d1ab07f900
[ 1.285780] RDX: c0000000ffffefff RSI: ffffffff8b4fac69 RDI: 0000000000000060
[ 1.300896] RBP: ffffb21b4009bcf8 R08: 0000000000000000 R09: ffffffff8b86cdc0
[ 1.301543] R10: 00000000ffffefff R11: 0000000000000000 R12: 0000000000000060
[ 1.302797] R13: 0000000000000008 R14: ffff9313402aa040 R15: 0000000000000000
[ 1.303433] FS: 00007eff3cfd5000(0000) GS:ffff931557b40000(0000) knlGS:0000000000000000
[ 1.304671] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1.305454] CR2: 0000000000000068 CR3: 000000010228b000 CR4: 00000000000506e0
[ 1.306208] Call Trace:
[ 1.306861]
[ 1.307086] ? __die_body+0x80/0x160
[ 1.307426] ? page_fault_oops+0x2c2/0x3e0
[ 1.307848] ? vsnprintf+0x3ba/0x790
[ 1.308195] ? symtab_search+0x10/0x100
[ 1.308765] ? search_exception_tables+0x113/0x130
[ 1.309184] ? kernelmode_fixup_or_oops+0x124/0x1a0
[ 1.309610] ? __bad_area_nosemaphore+0x72/0x2d0
[ 1.310148] ? console_unlock+0x702/0x880
[ 1.310809] ? bad_area_nosemaphore+0x16/0x20
[ 1.311194] ? do_user_addr_fault+0x455/0x690
[ 1.311589] ? exc_page_fault+0x78/0xf0
[ 1.311930] ? asm_exc_page_fault+0x24/0x30
[ 1.312547] ? symtab_search+0x10/0x100
[ 1.312983] apply_kernelsu_rules+0x5a/0xa80
[ 1.313361] ksu_handle_execveat_ksud+0x145/0x1a0
[ 1.313798] execve_handler_pre.76049+0x38/0x60
[ 1.314297] aggr_pre_handler+0x6d/0x90
[ 1.314910] kprobe_ftrace_handler+0x177/0x220
[ 1.315292] ? do_execveat_common+0x5/0x3c0
[ 1.315656] 0xffffffffc01a90e3
[ 1.315989] RIP: 0010:do_execveat_common+0x1/0x3c0
[ 1.327958] Code: 6d 00 00 44 89 e7 48 89 c6 31 d2 4c 89 f1 45 31 c0 4d 89 f9 53 e8 0f 00 00 00 48 83 c4 08 48 98 5b 41 5c 41 5e 41 5f 5d c3 e8 fd 32 36 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 ec 28 89
[ 1.329982] RSP: 0018:ffffb21b4009bf00 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
[ 1.331070] RAX: ffff931340b2c000 RBX: 00007efccb3c3250 RCX: 00007efccb3c3250
[ 1.331717] RDX: 0000000000000000 RSI: ffff931340b2c000 RDI: 00000000ffffff9c
[ 1.332696] RBP: ffffb21b4009bf20 R08: 0000000000000000 R09: 00007efccb3c3400
[ 1.333375] R10: 0000000000000fe0 R11: 0000000000000020 R12: 0000000000000000
[ 1.334367] R13: 0000000000000000 R14: 00007efccb3c3400 R15: 0000000000000000
[ 1.335555] ? do_execveat_common+0x5/0x3c0
[ 1.335937] ? __x64_sys_execve+0x3e/0x50
[ 1.336535] ? do_execveat_common+0x5/0x3c0
[ 1.336899] ? __x64_sys_execve+0x3e/0x50
[ 1.337277] do_syscall_64+0x4a/0xa0
[ 1.337612] entry_SYSCALL_64_after_hwframe+0x61/0xcb
[ 1.338113] RIP: 0033:0x7eff3b6b7207
[ 1.338712] Code: cc cc cc 53 89 fb e8 c8 d9 01 00 89 18 48 c7 c0 ff ff ff ff 5b c3 cc cc cc cc cc cc cc cc cc cc cc cc cc b8 3b 00 00 00 0f 05 <48> 3d 01 f0 ff ff 72 09 f7 d8 89 c7 e8 c8 ff ff ff c3 0f 1f 80 00
[ 1.340719] RSP: 002b:00007ffdaecc9618 EFLAGS: 00000202 ORIG_RAX: 000000000000003b
[ 1.341462] RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007eff3b6b7207
[ 1.342472] RDX: 00007efccb3c3400 RSI: 00007efccb3c3250 RDI: 0000557d8fcedcef
[ 1.343366] RBP: 0000000000000002 R08: 0000000000000010 R09: 0000000000000001
[ 1.344221] R10: 0000000000000000 R11: 0000000000000202 R12: 00007efcdb3cbd00
[ 1.345485] R13: 00007efe0b3ce010 R14: 00007ffdaecc9720 R15: 00007ffdaecc9680
[ 1.346623]
[ 1.346822] Modules linked in:
[ 1.347108] CR2: 0000000000000068
[ 1.347533] ---[ end trace cda66bc331bb30c8 ]---
[ 1.359023] RIP: 0010:symtab_search+0x10/0x100
[ 1.359525] Code: eb 05 b8 ef ff ff ff 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f 5d c3 00 00 cc cc 0f 1f 44 00 00 55 48 89 e5 41 57 41 56 41 54 53 <44> 8b 67 08 31 db 45 85 e4 0f 84 d1 00 00 00 49 89 f6 49 89 ff 48
[ 1.361595] RSP: 0018:ffffb21b4009bcd8 EFLAGS: 00010202
[ 1.362043] RAX: 0000000000000036 RBX: ffffb21b4009bd40 RCX: 7536a2d1ab07f900
[ 1.363076] RDX: c0000000ffffefff RSI: ffffffff8b4fac69 RDI: 0000000000000060
[ 1.363738] RBP: ffffb21b4009bcf8 R08: 0000000000000000 R09: ffffffff8b86cdc0
[ 1.364936] R10: 00000000ffffefff R11: 0000000000000000 R12: 0000000000000060
[ 1.365805] R13: 0000000000000008 R14: ffff9313402aa040 R15: 0000000000000000
[ 1.366841] FS: 00007eff3cfd5000(0000) GS:ffff931557b40000(0000) knlGS:0000000000000000
[ 1.367675] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1.368195] CR2: 0000000000000068 CR3: 000000010228b000 CR4: 00000000000506e0
[ 1.369128] note: init[1] exited with preempt_count 1
[ 1.369576] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009
[ 1.370623] Kernel Offset: 0x8a00000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[ 1.371659] Rebooting in 5 seconds..

@hmtheboy154
Copy link
Contributor Author

@hmtheboy154 working! thks!!! But i have another question. Do you have a note for how to porting KernelSU to Blissos that includes all commit? I build my own aosp with the same kernel with BlissOS (umbral-20230826) . but enter boot loop!

I don't build 5.15 anymore so idk, you have to switch to newer ver

@2chiefk
Copy link

2chiefk commented Oct 15, 2024 via email

Howard20181 pushed a commit that referenced this issue Oct 17, 2024
Redmi Note 12 Turbo (marble) comes shipped with Android 13, but the
baseline/kernel target version is Android 12.

```
# getprop | grep api_level
[ro.board.api_level]: [31]
[ro.board.first_api_level]: [31]
[ro.product.first_api_level]: [33]
[ro.vendor.api_level]: [31]
# uname -a
Linux localhost 5.10.198-android12-9-00085-g226a9632f13d-ab11136126 #1 SMP PREEMPT Wed Nov 22 14:16:37 UTC 2023 aarch64 Toybox
```

Maybe we should use `ro.board.first_api_level` instead of
`ro.product.first_api_level`, or the minimum value. But anyway, it's
better to be consistent with ksud.

https://github.com/tiann/KernelSU/blob/2f9210b2e79338e7e7b1eb91878cada2b9a37ed6/userspace/ksud/src/boot_patch.rs#L407
LeCmnGend pushed a commit to LeCmnGend/KernelSU that referenced this issue Oct 18, 2024
Redmi Note 12 Turbo (marble) comes shipped with Android 13, but the
baseline/kernel target version is Android 12.

```
# getprop | grep api_level
[ro.board.api_level]: [31]
[ro.board.first_api_level]: [31]
[ro.product.first_api_level]: [33]
[ro.vendor.api_level]: [31]
# uname -a
Linux localhost 5.10.198-android12-9-00085-g226a9632f13d-ab11136126 tiann#1 SMP PREEMPT Wed Nov 22 14:16:37 UTC 2023 aarch64 Toybox
```

Maybe we should use `ro.board.first_api_level` instead of
`ro.product.first_api_level`, or the minimum value. But anyway, it's
better to be consistent with ksud.

https://github.com/tiann/KernelSU/blob/2f9210b2e79338e7e7b1eb91878cada2b9a37ed6/userspace/ksud/src/boot_patch.rs#L407
fukiame pushed a commit to TelegramAt25/KernelSU-shukusai that referenced this issue Nov 14, 2024
Redmi Note 12 Turbo (marble) comes shipped with Android 13, but the
baseline/kernel target version is Android 12.

```
# getprop | grep api_level
[ro.board.api_level]: [31]
[ro.board.first_api_level]: [31]
[ro.product.first_api_level]: [33]
[ro.vendor.api_level]: [31]
# uname -a
Linux localhost 5.10.198-android12-9-00085-g226a9632f13d-ab11136126 tiann#1 SMP PREEMPT Wed Nov 22 14:16:37 UTC 2023 aarch64 Toybox
```

Maybe we should use `ro.board.first_api_level` instead of
`ro.product.first_api_level`, or the minimum value. But anyway, it's
better to be consistent with ksud.

https://github.com/tiann/KernelSU/blob/2f9210b2e79338e7e7b1eb91878cada2b9a37ed6/userspace/ksud/src/boot_patch.rs#L407
whyakari pushed a commit to whyakari/KernelSU that referenced this issue Nov 15, 2024
Redmi Note 12 Turbo (marble) comes shipped with Android 13, but the
baseline/kernel target version is Android 12.

```
# getprop | grep api_level
[ro.board.api_level]: [31]
[ro.board.first_api_level]: [31]
[ro.product.first_api_level]: [33]
[ro.vendor.api_level]: [31]
# uname -a
Linux localhost 5.10.198-android12-9-00085-g226a9632f13d-ab11136126 tiann#1 SMP PREEMPT Wed Nov 22 14:16:37 UTC 2023 aarch64 Toybox
```

Maybe we should use `ro.board.first_api_level` instead of
`ro.product.first_api_level`, or the minimum value. But anyway, it's
better to be consistent with ksud.

https://github.com/tiann/KernelSU/blob/2f9210b2e79338e7e7b1eb91878cada2b9a37ed6/userspace/ksud/src/boot_patch.rs#L407
vbajs pushed a commit to vbajs/KernelSU that referenced this issue Nov 17, 2024
vbajs pushed a commit to vbajs/KernelSU that referenced this issue Dec 10, 2024
bryanyee33 pushed a commit to bryanyee33/KernelSU that referenced this issue Dec 22, 2024
Redmi Note 12 Turbo (marble) comes shipped with Android 13, but the
baseline/kernel target version is Android 12.

```
# getprop | grep api_level
[ro.board.api_level]: [31]
[ro.board.first_api_level]: [31]
[ro.product.first_api_level]: [33]
[ro.vendor.api_level]: [31]
# uname -a
Linux localhost 5.10.198-android12-9-00085-g226a9632f13d-ab11136126 tiann#1 SMP PREEMPT Wed Nov 22 14:16:37 UTC 2023 aarch64 Toybox
```

Maybe we should use `ro.board.first_api_level` instead of
`ro.product.first_api_level`, or the minimum value. But anyway, it's
better to be consistent with ksud.

https://github.com/tiann/KernelSU/blob/2f9210b2e79338e7e7b1eb91878cada2b9a37ed6/userspace/ksud/src/boot_patch.rs#L407
vbajs pushed a commit to vbajs/KernelSU that referenced this issue Jan 9, 2025
vbajs pushed a commit to vbajs/KernelSU that referenced this issue Jan 12, 2025
Bumps the maven group in /manager with 2 updates: com.android.application and com.android.library.


Updates `com.android.application` from 8.7.3 to 8.8.0

Updates `com.android.library` from 8.7.3 to 8.8.0

Updates `com.android.library` from 8.7.3 to 8.8.0

---
updated-dependencies:
- dependency-name: com.android.application
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: maven
- dependency-name: com.android.library
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: maven
- dependency-name: com.android.library
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: maven
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@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

No branches or pull requests

5 participants