Commit Graph

19 Commits

Author SHA1 Message Date
Dmitry Vyukov
afba0b55e6 sys/linux: add binder descriptions 2017-11-27 15:09:30 +01:00
Dmitry Vyukov
2f7fc0ff65 pkg/kernel: sandbox make invocation 2017-11-17 14:56:34 +03:00
Dmitry Vyukov
c4d43f4773 pkg/osutil: don't leace runaway processes
When manager is stopped there are sometimes runaway qemu
processes still running. Set PDEATHSIG for all subprocesses.
We never need child processes outliving parents.
2017-11-16 12:48:02 +01:00
Dmitry Vyukov
b19edae954 pkg/kernel: remove unused function 2017-08-18 20:03:52 +02:00
Dmitry Vyukov
a0330c0f5e tools/create-gce-image.sh: explicitly specify target for grub
On most distributions default grub target is i386-pc, which works.
However, on some default is x86_64-efi, which fails with:

grub-install: error: cannot find EFI directory.

Explicitly specify i386-pc target.
2017-08-11 20:04:33 +02:00
Dmitry Vyukov
7c1ee0634b tools/create-gce-image.sh: ignore SIGINT
If the script is aborted at an unfortunate point, it leaves the whole system broken.
E.g. we've seen that fdisk cannot update partition table until the next reboot.
If you really need to kill it, use a different signal. But better wait.
2017-07-17 14:45:41 +02:00
Dmitry Vyukov
8382eb648f pkg/kernel: actually pass cmdline/sysctl files to the build script 2017-07-17 14:45:41 +02:00
Dmitry Vyukov
cc1c342923 syz-ci: allow to specify cmdline/sysctls
Allow to specify per-kernel command line and sysctl values
to more closely mimic the target kernel.
2017-07-17 12:39:11 +02:00
Dmitry Vyukov
a7b199253f all: use consistent file permissions
Currently we have unix permissions for new files/dirs
hardcoded throughout the code base. Some places use 0644,
some - 0640, some - 0600 and a variety of other constants.

Introduce osutil.MkdirAll/WriteFile that use the default
permissions and use them throughout the code base.

This makes permissions consistent and also allows to easily
change the permissions later if we change our minds.

Also merge pkg/fileutil into pkg/osutil as they become
dependent on each other. The line between them was poorly
defined anyway as both operate on files.
2017-07-03 14:00:47 +02:00
Dmitry Vyukov
1b20342f25 pkg/email: move patch parsing from pkg/kernel
ParsePatch is used by appengine app.
Appengine apps can't depend on syscall/unsafe,
but pkg/kernel currently does.
Move patch parsing to pkg/email which does not
depend on syscall/unsafe.
2017-06-30 16:20:19 +02:00
Dmitry Vyukov
e39114dc0c pkg/kernel: move partial config functionality into a separate function
Move partial config functionality into BuildWithPartConfig.
It is used only for syz-gce which will be removed soon.
Provide a better interface for new continuous build system.
2017-06-20 19:59:42 +02:00
Dmitry Vyukov
f94617a321 pkg/kernel: reduce Build parallelism
NumCPU*2 can create excessive number of subprocesses
in the case machine is busy with other things as well.
2017-06-19 16:48:46 +02:00
Dmitry Vyukov
9dcb6799c7 pkg/kernel: fix CreateImage
- Move does not work across filesystems (i.e. tmpfs->disk)
- set proper permissions for ssh key
2017-06-19 16:47:42 +02:00
Dmitry Vyukov
e130d95518 vm/gce: accept un-tar-ed image
vm/gce differs from other VM types in that it accepts image
in a weird, GCE-specific format (namely, image named disk.raw
is put into .tar.gz file). This makes it impossible to write
generic code that creates images for any VM types.

Make vm/gce accept just image like e.g. vm/qemu
and handle own specifics internally.
2017-06-17 17:06:29 +02:00
Dmitry Vyukov
4c571f8413 pkg/kernel: add an option to provide full config for build
Normally config is applied on top of defconfig+kvmconfig.
This allows to provide full config that is used unmodified.
2017-06-15 18:29:47 +02:00
Dmitry Vyukov
c64814428a pkg/kernel: skip test if gcc is not in PATH
gcc is not necessary available everywhere.
Skip the test instead of failing it.
2017-06-14 13:19:28 +02:00
Dmitry Vyukov
54e36636a1 syz-dash: move patch parsing to pkg/kernel
Patch parsing is not dashboard-specific and can
be reused by other programs.
2017-06-14 10:18:10 +02:00
Dmitry Vyukov
03ad13e655 pkg/kernel: add CompilerIdentity function 2017-06-03 10:41:09 +02:00
Dmitry Vyukov
1a7e5fb38d pkg/kernel: add new package
Move functionality to build kernel/image
from syz-gce to a separate package.
2017-06-03 10:41:09 +02:00