-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathtry.patch
More file actions
29 lines (23 loc) · 1.09 KB
/
Copy pathtry.patch
File metadata and controls
29 lines (23 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
diff --git a/kernel/supercalls.c b/kernel/supercalls.c
index e7436836a..f537ccca7 100644
--- a/kernel/supercalls.c
+++ b/kernel/supercalls.c
@@ -897,13 +897,13 @@ int ksu_handle_sys_reboot(int magic1, int magic2, unsigned int cmd,
uint64_t u_pptr = 0;
uint64_t u_ptr = 0;
- pr_info("sys_reboot: ppptr: 0x%lx \n", ppptr);
+ pr_info("sys_reboot: ppptr: %px\n", ppptr);
// arg here is ***, dereference to pull out **
if (copy_from_user(&u_pptr, (void __user *)*ppptr, sizeof(u_pptr)))
return 0;
- pr_info("sys_reboot: u_pptr: 0x%lx \n", u_pptr);
+ pr_info("sys_reboot: u_pptr: %llx\n", (unsigned long long)u_pptr);
// now we got the __user **
// we cannot dereference this as this is __user
@@ -911,7 +911,7 @@ int ksu_handle_sys_reboot(int magic1, int magic2, unsigned int cmd,
if (copy_from_user(&u_ptr, (void __user *)u_pptr, sizeof(u_ptr)))
return 0;
- pr_info("sys_reboot: u_ptr: 0x%lx \n", u_ptr);
+ pr_info("sys_reboot: u_ptr: %llx\n", (unsigned long long)u_ptr);
// for release
if (strncpy_from_user(release_buf, (char __user *)u_ptr, sizeof(release_buf)) < 0)