Skip to content

Commit f2b7c65

Browse files
committed
Reduce Log and Prepare Release
1 parent a4b8177 commit f2b7c65

4 files changed

Lines changed: 11 additions & 7 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
VERSION = 6
33
PATCHLEVEL = 6
44
SUBLEVEL = 0
5-
EXTRAVERSION =
6-
NAME = Hurr durr I'ma ninja sloth
5+
EXTRAVERSION = -Danger
6+
NAME = Linux Kernel Danger
77

88
# *DOCUMENTATION*
99
# To see a list of typical targets execute "make help"

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ Sources
3636

3737
[arch/x86/entry/entry_64.S](arch/x86/entry/entry_64.S) - idt/syscall/sysret
3838

39+
[arch/x86/entry/common.c](arch/x86/entry/common.c) - syscall
40+
3941
[arch/x86/kernel/idt.c](arch/x86/kernel/idt.c) - IDT Setup
4042

4143
[arch/x86/mm/fault.c](arch/x86/mm/fault.c) - Page Fault Handler
@@ -93,7 +95,8 @@ qemu-system-x86_64 -kernel vmlinuz -initrd initrd.img -append "root=/dev/ram0 co
9395
~~- [x] Disable Alternatives~~
9496
- [x] Adjust IST to FORCE Interrupt Stack always available (Most interrupts/exceptions will use #DF stack, then Manually carry stack back if from Kernel-Mode)
9597
- [x] Replace `sysretq` with `iretq`
96-
- [x] `/mini_shell` SUCCESSFULLY RUNS IN Ring 0!!!
98+
- [x] `/mini_shell` successfully run in Ring 0
99+
- [x] Much orignal ELFs can run in Ring 0 !!!
97100

98101
## Tested on
99102

arch/x86/entry/common.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,19 +76,19 @@ static __always_inline bool do_syscall_x32(struct pt_regs *regs, int nr)
7676

7777
__visible noinstr void do_syscall_64(struct pt_regs *regs, int nr)
7878
{
79-
pr_alert("!!! %s %s %d, orignal_nr = %d, rdi = 0x%llx, rsi = 0x%llx, rdx = 0x%llx !!!\n", __FILE__, __func__, __LINE__, nr, regs->di, regs->si, regs->dx);
79+
//pr_alert("!!! %s %s %d, orignal_nr = %d, rdi = 0x%llx, rsi = 0x%llx, rdx = 0x%llx !!!\n", __FILE__, __func__, __LINE__, nr, regs->di, regs->si, regs->dx);
8080
add_random_kstack_offset();
8181
nr = syscall_enter_from_user_mode(regs, nr);
8282

8383
instrumentation_begin();
8484

8585
if (!do_syscall_x64(regs, nr) && !do_syscall_x32(regs, nr) && nr != -1) {
8686
/* Invalid system call, but still a system call. */
87-
pr_alert("!!! %s %s %d, nr = %d, INVALID SYSCALL !!!\n", __FILE__, __func__, __LINE__, nr);
87+
//pr_alert("!!! %s %s %d, nr = %d, INVALID SYSCALL !!!\n", __FILE__, __func__, __LINE__, nr);
8888
regs->ax = __x64_sys_ni_syscall(regs);
8989
}
9090

91-
pr_alert("!!! %s %s %d, return 0x%llx !!!\n", __FILE__, __func__, __LINE__, regs->ax);
91+
//pr_alert("!!! %s %s %d, return 0x%llx !!!\n", __FILE__, __func__, __LINE__, regs->ax);
9292
instrumentation_end();
9393
syscall_exit_to_user_mode(regs);
9494
}

init/main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ static size_t initargs_offs;
156156
#endif
157157

158158
static char *execute_command;
159-
static char *ramdisk_execute_command = "/mini_shell";
159+
//static char *ramdisk_execute_command = "/mini_shell";
160+
static char *ramdisk_execute_command = "/init";
160161

161162
/*
162163
* Used to generate warnings if static_key manipulation functions are used

0 commit comments

Comments
 (0)