Skip to content

cpey/serene

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

serene

Collection of scripts to automate VM creation for testing Linux kernel builds.

Workflow example

  1. Pull the Linux source code
$ git submodule update --init -- src/linux
  1. Create rootfs and host configurations
$ ./tools/create-rootfs.sh
  1. Make default kernel config
$ ./tools/make-defconfig.sh
  1. Build the Linux kernel
$ ./tools/build-kernel.sh
  1. Start VM
$ ./tools/start-vm.sh
  1. SSH into vm
$ ssh test
  1. Stop VM
$ ./tools/stop-vm.sh

Arguments to the VM

Optional arguments to start-vm.sh:

-c: CPU security related parameters (smep, smap)
-k: Kernel security (kpti=1, kaslr)

Examples:

$ ./tools/start-vm.sh -c smep
$ ./tools/start-vm.sh -c smap
$ ./tools/start-vm.sh -c smep,smap
$ ./tools/start-vm.sh -k kpti=1
$ ./tools/start-vm.sh -k kaslr
$ ./tools/start-vm.sh -k kpti=1,kaslr
$ ./tools/start-vm.sh -c smep,smap -k kpti=1,kaslr

About

Linux kernel testing tools.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages