[COMMIT osv master] tests: new pthread should inherit parent CPU affinity

2016-11-30 Thread Commit Bot
From: Justin Cinkelj Committer: Nadav Har'El Branch: master tests: new pthread should inherit parent CPU affinity New pthread should have CPU affinity requested be cpuset in attributes. If explicit cpu pinning is not requested, than parent thread CPU

[COMMIT osv master] pthread: pthread_spin_lock must not disabled preemption

2016-11-30 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master pthread: pthread_spin_lock must not disabled preemption Our pthread_spin_lock implementation incorrectly used the kernel spinlock implementation which disabled preemption, which is both

[COMMIT osv master] pthread_mutex_trylock: Return EBUSY not -EBUSY

2016-12-04 Thread Commit Bot
From: Rick Payne Committer: Nadav Har'El Branch: master pthread_mutex_trylock: Return EBUSY not -EBUSY Signed-off-by: Rick Payne Message-Id: <1480693088-22453-1-git-send-email-ri...@rossfell.co.uk> --- diff --git

[COMMIT osv master] sendfile: don't try to send beyond the end of file

2016-12-05 Thread Commit Bot
From: Rick Payne Committer: Nadav Har'El Branch: master sendfile: don't try to send beyond the end of file Ensure that sendfile doesn't try to send beyond the end of the source file. Added some tests, and ensured that the same result is observed under

[COMMIT osv master] dhcp: do not release assigned IP just to update DNS name

2017-01-04 Thread Commit Bot
From: Justin Cinkelj Committer: Nadav Har'El Branch: master dhcp: do not release assigned IP just to update DNS name We want to propagate new hostname to DNS server via DHCP server. Previously, a DHCP release followed by a new DORA cycle was used.

[COMMIT osv master] align: add helper to check alignment

2017-01-05 Thread Commit Bot
From: Timmons C. Player Committer: Nadav Har'El Branch: master align: add helper to check alignment Signed-off-by: Timmons C. Player Message-Id: <1483547132-22868-2-git-send-email-timmons.pla...@spirent.com> --- diff

[COMMIT osv master] percpu: enforce alignment for dynamic percpu allocations

2017-01-05 Thread Commit Bot
From: Timmons C. Player Committer: Nadav Har'El Branch: master percpu: enforce alignment for dynamic percpu allocations If the dynamic memory buffer used for percpu allocations wasn't congruent to the requested alignment, then the returned memory

[COMMIT osv-apps master] apps: Added openjdk8-zulu-compact3-with-java-beans and modified JDK java apps to allow building images in isolated or non-isolated mode

2016-12-20 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Nadav Har'El Branch: master apps: Added openjdk8-zulu-compact3-with-java-beans and modified JDK java apps to allow building images in isolated or non-isolated mode Modified openjdk8-fedora ond openjdk9-ea-java-base

[COMMIT osv master] Add missing pthread_getname_np()

2016-12-21 Thread Commit Bot
From: Rick Payne Committer: Nadav Har'El Branch: master Add missing pthread_getname_np() Signed-off-by: Rick Payne Message-Id: <20161221123601.5879-1-ri...@rossfell.co.uk> --- diff --git a/include/api/pthread.h

[COMMIT osv master] Move vfprintf.c from musl/ to libc/

2016-12-18 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master Move vfprintf.c from musl/ to libc/ Copy vfprintf.c from musl/ to libc/, unchanged, in preperation for fixing the bug in issue #818. Signed-off-by: Nadav Har'El Message-Id:

[COMMIT osv master] printf(): fix "L" and "ll" prefixes

2016-12-18 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master printf(): fix "L" and "ll" prefixes Musl, like Posix, allows the "L" prefix to be used only on long doubles, and "ll" prefix on long long int. However, glibc actually allows both on both types. So

[COMMIT osv master] osv::run const correctness

2016-12-28 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master osv::run const correctness The variant of osv::run which takes argv does not need the strings or their array to be writable, since it copies them into an std::vector anyway, so we can take a const

[COMMIT osv master] libc: move pthread_barrier to a separate file

2016-12-28 Thread Commit Bot
From: Justin Cinkelj Committer: Nadav Har'El Branch: master libc: move pthread_barrier to a separate file As @nyh noted in #823 gcc 4.8 doesn't like both using and redefining pthread_mutex_lock in the same file. This is a workaround for what seems to

[COMMIT osv master] build: strip binaries in bootfs as well

2016-12-25 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master build: strip binaries in bootfs as well Before this patch, mkbootfs.py, unlike upload_manifest.py, did not do stripping. This was leading to unnecessary inflating of the bootfs. With this patch,

[COMMIT osv master] build: strip binaries in modules/ dir as well

2016-12-25 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master build: strip binaries in modules/ dir as well upload_manifest.py stripped only binaries in the build/ directory, so binaries in modules, such as modules/httpserver/libhttpserver.so were not

[COMMIT osv master] build: possibly use cross-compilation strip

2016-12-25 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master build: possibly use cross-compilation strip In the previous patch, scripts/mkbootfs.py started to use 'strip'. However, this is run from the Makefile which allows cross-compilation, and in that

[COMMIT osv master] loader: do not kill httpserver prematurely

2016-12-27 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master loader: do not kill httpserver prematurely Commit e270cf9c (more than two years ago) was well-intentioned, but introduced a new bug: we no longer wait for the background programs to finish before

[COMMIT osv master] aarch64: fix compilation on gcc 6

2016-12-25 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master aarch64: fix compilation on gcc 6 Gcc 6 doesn't like the member "x" being redefined, and starts complaining about its visibility. If it's just a shortcut we want, let's just use auto& and not a

[COMMIT osv master] makefile: remove space from cross-compilation prefix

2016-12-25 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master makefile: remove space from cross-compilation prefix The spaces in $(if ...) are not ignored - they result in a space in the beginning of the CROSS_PREFIX variable. This is mostly harmless, except

[COMMIT osv master] DHCP - additional refinements

2017-03-26 Thread Commit Bot
From: Justin Cinkelj Committer: Nadav Har'El Branch: master DHCP - additional refinements From RFC 2131, page 30-31 o DHCPREQUEST generated during SELECTING state: Client inserts the address of the selected server in 'server identifier', 'ciaddr'

[COMMIT osv master] Changed DHCP client logic to properly broadcast DHCPREQUEST during

2017-03-22 Thread Commit Bot
From: wkozaczuk Committer: Nadav Har'El Branch: master Changed DHCP client logic to properly broadcast DHCPREQUEST during The patch addressing issue #816 changed dhcp_mbuf::compose_request() method to make it unicast DHCPREQUEST message to a DHCP

[COMMIT osv master] math: disable optimizations on files which gcc 4.8.4 miscompiles

2017-03-29 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master math: disable optimizations on files which gcc 4.8.4 miscompiles It appears (see details in issue #867) that one of the optimizations in Gcc 4.8.4's "-O1" miscompiles code which uses a function

[COMMIT osv master] gdb: fix error on connect on older distros

2017-03-19 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master gdb: fix error on connect on older distros In commit adf78de4, I noticed that to access values of an enum class, we needed to add the class's name, which we previously didn't. I speculated that is

[COMMIT osv master] gdb: fix "osv mmap" on connect on older distros

2017-03-19 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master gdb: fix "osv mmap" on connect on older distros In commit ce177a50, I fixed "osv mmap" on newer distros as gdb started requiring quotes around the typename mmu::vma. Unfortunately, these quotes are

[COMMIT osv master] SIOCGIFFLAGS ioctl: remove BSD-specific bits

2017-03-15 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master SIOCGIFFLAGS ioctl: remove BSD-specific bits The SIOCGIFFLAGS ioctl returns a set of flags for a network interface. Many of the classic bits there, like IFF_UP and IFF_LOOPBACK, are the same in our

[COMMIT osv master] osv: xen: independent event interrupt bring up

2017-03-21 Thread Commit Bot
From: Sergiy Kibrik Committer: Nadav Har'El Branch: master osv: xen: independent event interrupt bring up Initialize Xen event interrupt separately from xenbus driver, so that events can be served before xenbus is up, or even in case when

[COMMIT osv master] osv: xen: split xenbus into generic & PCI parts

2017-03-21 Thread Commit Bot
From: Sergiy Kibrik Committer: Nadav Har'El Branch: master osv: xen: split xenbus into generic & PCI parts Xen platform PCI is x86-specific feature, not currently present on aarch64. For xenbus to work on both platforms the generic xenbus

[COMMIT osv master] aarch64: mmu: dispose of device address ranges

2017-03-21 Thread Commit Bot
From: Sergiy Kibrik' via OSv Development Committer: Nadav Har'El Branch: master aarch64: mmu: dispose of device address ranges Each ARM SOCs (System On Chip) family have different address space division into device and regular memory. So hard-coded

[COMMIT osv master] bsd: xen: extend features.h with additional definitions

2017-03-21 Thread Commit Bot
From: Sergiy Kibrik' via OSv Development Committer: Nadav Har'El Branch: master bsd: xen: extend features.h with additional definitions Signed-off-by: Sergiy Kibrik Message-Id:

[COMMIT osv master] osv: aarch64: support processor::features()

2017-03-21 Thread Commit Bot
From: Sergiy Kibrik Committer: Nadav Har'El Branch: master osv: aarch64: support processor::features() Features used by various Xen drivers, i.e. xenbus. Signed-off-by: Sergiy Kibrik Reviewed-by: Nadav Har'El

[COMMIT osv master] osv: aarch64: map Xen shared_info page

2017-03-21 Thread Commit Bot
From: Sergiy Kibrik Committer: Nadav Har'El Branch: master osv: aarch64: map Xen shared_info page Shared structure is used by various protocols communicating with hypervisor (e.g. for events processing). Signed-off-by: Sergiy Kibrik

[COMMIT osv master] build: aarch64: eliminate warnings from imgedit.py

2017-03-21 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master build: aarch64: eliminate warnings from imgedit.py Commit 6703d2283158f062eb0bccf0db9ccb73c6bbe6ac eliminated some annoying complaints by newer qemu that we didn't explicitly specify the format of

[COMMIT osv master] xenconsole: shared ring suport

2017-03-21 Thread Commit Bot
From: Sergiy Kibrik Committer: Nadav Har'El Branch: master xenconsole: shared ring suport Complete driver to properly work with xl console utility, i.e. full read/write access. Driver is extended to work with shared structure (ring) and

[COMMIT osv master] bsd: xen: add console parameters

2017-03-21 Thread Commit Bot
From: Sergiy Kibrik' via OSv Development Committer: Nadav Har'El Branch: master bsd: xen: add console parameters Add standard console HVM interface parameters. They're intended for use by console driver to get shared ring page and event channel No.

[COMMIT osv-apps master] Update redis-memonly package to version 3.2.8

2017-03-22 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master Update redis-memonly package to version 3.2.8 Unfortunately required another small source code patch to redis, which didn't gracefully handle OSv's total lack of recognition for IPv6. See issue

[COMMIT osv master] Update apps submodule

2017-03-22 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master Update apps submodule Signed-off-by: Nadav Har'El --- diff --git a/apps b/apps --- a/apps +++ b/apps @@ -1 +1 @@ -Subproject commit 3bf4a46abb0a95bb9998d1877131ef543ab0abbb

[COMMIT osv master] command line: expand environ vars for runscript and REST commands

2017-04-03 Thread Commit Bot
From: Justin Cinkelj Committer: Nadav Har'El Branch: master command line: expand environ vars for runscript and REST commands When command is run via CLI (run.py -e "CMD"), the CMD string can contain $KEY, and KEY will be replaced with corresponding

[COMMIT osv master] Fix SMP initialization of paravirtual KVM clock

2017-04-18 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master Fix SMP initialization of paravirtual KVM clock Issue #869 reported that the bug which was supposedly fixed by commit 34232de9 has returned when running OSv in a Linux 4.10 host. This patch fixes

[COMMIT osv master] command line: add makefile-like syntax to conditionally set environ var

2017-04-23 Thread Commit Bot
From: Justin Cinkelj Committer: Nadav Har'El Branch: master command line: add makefile-like syntax to conditionally set environ var Add "KEY?=value" syntax to set environ variable only if not set yet. This allows runscript to contain default value in

[COMMIT osv master] line-discipline: move and update comment

2017-03-13 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master line-discipline: move and update comment The code in drivers/line-discipline.cc moved around a lot, and as a result the comment trying to explain the purpose of this file got moved to the middle of

[COMMIT osv master] kill(): remove duplicate code

2017-03-06 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master kill(): remove duplicate code Just a few lines above, we had exactly the same code... No need to do it again. Signed-off-by: Nadav Har'El Message-Id:

[COMMIT osv master] scripts/setup.py: support for Fedora 25

2017-03-06 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master scripts/setup.py: support for Fedora 25 Signed-off-by: Nadav Har'El --- diff --git a/scripts/setup.py b/scripts/setup.py --- a/scripts/setup.py +++ b/scripts/setup.py @@ -77,7

[COMMIT osv master] tests/tst-kill: set flag global to 0 before waiting for 1

2017-03-06 Thread Commit Bot
From: Justin Cinkelj Committer: Nadav Har'El Branch: master tests/tst-kill: set flag global to 0 before waiting for 1 The global was already set to 1 by kill above second wait loop. If test VM/program was "slow" enough, the signal handler got cleaned

[COMMIT osv master] loader: fix log redirection append option

2017-03-06 Thread Commit Bot
From: Justin Cinkelj Committer: Nadav Har'El Branch: master loader: fix log redirection append option The O_APPEND flag was missing when "--redirect=>>my.log ..." was used. Thus new output started to overwrite old content. Signed-off-by: Justin

[COMMIT osv master] tests/tst-kill: fix failing test on Linux

2017-03-06 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master tests/tst-kill: fix failing test on Linux We tested that killing a non-existant process 17 resulted in an error. But on Linux, it is quite possible that process 17 does exist, and this test will

[COMMIT osv master] cli: fix run command

2017-08-03 Thread Commit Bot
From: Justin Cinkelj Committer: Nadav Har'El Branch: master cli: fix run command The c621a007340913aa4832f3fda195b29114a41a6a broke cli run command. It was possible to "run --newprogram /myapp". But "run /myapp" didn't do anything - it didn't even

[COMMIT osv master] runtime.c: avoid explicit "extern C" when header files are available

2017-08-01 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master runtime.c: avoid explicit "extern C" when header files are available Signed-off-by: Nadav Har'El --- diff --git a/runtime.cc b/runtime.cc --- a/runtime.cc +++ b/runtime.cc @@

[COMMIT osv master] libc: add functions required for libpython2.7.so

2017-08-01 Thread Commit Bot
From: Justin Cinkelj Committer: Nadav Har'El Branch: master libc: add functions required for libpython2.7.so When we try to reuse python from the build system (instead of compiling it from source), libpython2.7.so requires additional libc/glibc

[COMMIT osv-apps master] Add busybox

2017-08-16 Thread Commit Bot
From: Justin Cinkelj Committer: Nadav Har'El Branch: master Add busybox Busybox ash shell is more powerful than OSv --runscript option. Use ash when fancy shell is required. While busybox config file includes default options (e.g. nearly all options

[COMMIT osv master] Fixed httpserver module tests

2017-08-15 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Nadav Har'El Branch: master Fixed httpserver module tests This patch fixes httpserver module tests by correcting 2 issues: - tests/basetest.py was incorrectly loading jvm.json file - the format of timestamp returned

[COMMIT osv master] command line: expand env vars before using them to expand cmdline

2017-07-12 Thread Commit Bot
From: Justin Cinkelj Committer: Nadav Har'El Branch: master command line: expand env vars before using them to expand cmdline Previously, runscript with content "--env=PORT?= /usr/lib/mpi_hello.so aaa $PORT ccc", run as /scripts/run.py -Vd -e

[COMMIT osv master] add openat64() and creat64() functions

2017-07-12 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master add openat64() and creat64() functions Add functions openat64() and creat64() as aliases to the usual functions. Refs #747. Signed-off-by: Nadav Har'El Message-Id:

[COMMIT osv master] Support mmap() flag MAP_32BIT

2017-07-12 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master Support mmap() flag MAP_32BIT Support the mmap() flag MAP_32BIT which asks for the allocated address to be in the lower 32 bits. Some applications (like wrk and luajit) use this flag and need it to

[COMMIT osv master] tests: avoid GOLD linker on three problematic tests

2017-07-17 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master tests: avoid GOLD linker on three problematic tests Three tests fail if the system's default linker is gold. In OSv's makefile, we explicitly choose the bfd linker because of gold's shortcomings,

[COMMIT osv master] boot.S: Increase main() stack size

2017-07-16 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master boot.S: Increase main() stack size We use "init_stack_top" as the end of the stack for loader.cc's premain() and main() functions (all other threads will allocate their stacks dynamically). A size

[COMMIT osv master] gcc 7: fix alignment of main()'s stack

2017-07-16 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master gcc 7: fix alignment of main()'s stack This patch fixes an early boot crash (a #GP) of the optimized build built with gcc 7. According to the x86_64 ABI, C functions must be called with the stack

[COMMIT osv master] gcc 7: do not use dynamic exception specifications

2017-07-16 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master gcc 7: do not use dynamic exception specifications Dynamic exception specifications (throw(...) specification on functions) were deprecated in C++11 so we shouldn't use them. Gcc 7 started

[COMMIT osv master] Remove unused interrupt stack

2017-07-16 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master Remove unused interrupt stack In boot.S we reserved 40960 bytes for an "interrupt stack" that is not actually used anywhere since almost the start of OSv (see commit

[COMMIT osv master] cloud-init: support standard ISO images

2017-07-16 Thread Commit Bot
From: Justin Cinkelj Committer: Nadav Har'El Branch: master cloud-init: support standard ISO images In 56c6195b252b127c7fe90cb9fa46c370b384b51a was added option for reading configuration file from a secondary disk. This is so-called NoCloud

[COMMIT osv master] Added ability to OSv boot logic to detect if running of Hyper/V and implemented Hyper/V specific clock.

2017-07-16 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Nadav Har'El Branch: master Added ability to OSv boot logic to detect if running of Hyper/V and implemented Hyper/V specific clock. These changes are enough to allow execution of simple OSv apps that do NOT need

[COMMIT osv master] Added subset of original FreeBSD driver code for Hyper/V.

2017-07-16 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Nadav Har'El Branch: master Added subset of original FreeBSD driver code for Hyper/V. - added subset of original FreeBSD driver code for Hyper/V

[COMMIT osv master] gcc 7: ignore warning in bsd/sys/netinet/in_mcast

2017-07-16 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master gcc 7: ignore warning in bsd/sys/netinet/in_mcast In bsd/sys/netinet/in_mcast we get a "maybe uninitialized" warning which as far as I can tell, is a false alarm. I also checked the freebsd tree,

[COMMIT osv master] gcc 7: add missing include

2017-07-16 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master gcc 7: add missing include Gcc 7 complains about defining memset when we don't include a header file with its prototype. So let's do. Signed-off-by: Nadav Har'El Message-Id:

[COMMIT osv master] gcc 7: fix use of uninitialized variable

2017-07-16 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master gcc 7: fix use of uninitialized variable Gcc 7 rightly complains that in bsd_init() we create an uninitialized timeval structure, and then use it to see the random number generator. The intention

[COMMIT osv master] gcc 7: array should have non-negative length

2017-07-16 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master gcc 7: array should have non-negative length Gcc 7 rightly complains when we try to allocate an array with a signed int length. Changing the length variable to unsigned int fixes it.

[COMMIT osv master] gcc 7: remove inappropriate use of "constexpr".

2017-07-16 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master gcc 7: remove inappropriate use of "constexpr". In one test we assigned a constant-expression-but-not-marked-constexpr pointer into a constexpr variable, which gcc 7 didn't like. There is no need

[COMMIT osv master] gcc 7: fix "osv info threads"

2017-07-16 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master gcc 7: fix "osv info threads" The internal structure of std::unique_ptr changed, and we need it to support the "osv info threads" gdb command. With this patch both old and new layouts will be

[COMMIT osv master] Update apps submodule

2017-07-11 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master Update apps submodule Signed-off-by: Nadav Har'El --- diff --git a/apps b/apps --- a/apps +++ b/apps @@ -1 +1 @@ -Subproject commit b36e0d61f16a1b434ab02555443abc746ac92998

[COMMIT osv-apps master] netperf: update download link

2017-07-11 Thread Commit Bot
From: Justin Cinkelj Committer: Nadav Har'El Branch: master netperf: update download link The netperf.org site was migrated to github. The ftp.netperf.org is not even in DNS anymore. Signed-off-by: Justin Cinkelj Message-Id:

[COMMIT osv master] update apps/ submodule

2017-07-11 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master update apps/ submodule Adds lighttpd application. Signed-off-by: Nadav Har'El --- diff --git a/apps b/apps --- a/apps +++ b/apps @@ -1 +1 @@ -Subproject commit

[COMMIT osv master] modules: add libcdio

2017-07-11 Thread Commit Bot
From: Justin Cinkelj Committer: Nadav Har'El Branch: master modules: add libcdio The iso-read from libcdio will be used to read ISO image (contextualization CD, cloud metadata image). This will allow use of standard ISO images in OSv cloud-init

[COMMIT osv master] calloc: allow 0-sized allocation

2017-07-11 Thread Commit Bot
From: Justin Cinkelj Committer: Nadav Har'El Branch: master calloc: allow 0-sized allocation The calloc(nmemb, size=0) failed due to division by 0 in "std::numeric_limits::max() / size". Fix this by checking for 0 value before division. Included is

[COMMIT osv master] fcntl: stub F_SETOWN

2017-07-18 Thread Commit Bot
From: Justin Cinkelj Committer: Nadav Har'El Branch: master fcntl: stub F_SETOWN fcntl(F_SETOWN) is used in nginx. We stub it so that nginx can be started unmodified. Signed-off-by: Justin Cinkelj Message-Id:

[COMMIT osv master] signals: provide sigsuspend symbol

2017-07-18 Thread Commit Bot
From: Justin Cinkelj Committer: Nadav Har'El Branch: master signals: provide sigsuspend symbol sigsuspend is used in nginx. With current (not yet commited) patch, it is never really called. Nginx master process code is used to execute worker code,

[COMMIT osv-apps master] Adjust grep expression used in lighttpd Makefile to filter out

2017-07-18 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Nadav Har'El Branch: master Adjust grep expression used in lighttpd Makefile to filter out On some host systems (used to build) ldd tool returns list with invalid pointers like so (the first line being the

[COMMIT osv master] lua: Add a check for openssl header version

2017-07-25 Thread Commit Bot
From: Benoît Canet Committer: Nadav Har'El Branch: master lua: Add a check for openssl header version If OpenSSL version is 1.1 prompt a message explaining to the user how to install the compat headers. Signed-off-by: Benoît Canet

[COMMIT osv master] libc: add tcflow

2017-07-23 Thread Commit Bot
From: Justin Cinkelj Committer: Nadav Har'El Branch: master libc: add tcflow At least a symbol needs to be defined for python2.7. Signed-off-by: Justin Cinkelj Message-Id: <20170721104513.9854-2-justin.cink...@xlab.si> ---

[COMMIT osv master] Update apps submodule

2017-07-23 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master Update apps submodule Adds the "python27" application Signed-off-by: Nadav Har'El --- diff --git a/apps b/apps --- a/apps +++ b/apps @@ -1 +1 @@ -Subproject commit

[COMMIT osv master] libc: add __mbrlen

2017-07-23 Thread Commit Bot
From: Justin Cinkelj Committer: Nadav Har'El Branch: master libc: add __mbrlen At least a symbol needs to be defined for python2.7. File mbrlen.c is moved from musl/ to libc/, as the weak alias declaration must be in same file as function definition.

[COMMIT osv master] Use musl's unchanged mbsrtowcs()

2017-07-23 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master Use musl's unchanged mbsrtowcs() Our change from musl's mbsrtowcs() is unnecessary, it's just taken from a slightly older version of musl. Signed-off-by: Nadav Har'El --- diff

[COMMIT osv-apps master] Add python2.7

2017-07-23 Thread Commit Bot
From: Justin Cinkelj Committer: Nadav Har'El Branch: master Add python2.7 Based on @gberginc work. Usage example: ./scripts/run.py -e "/python" ./scripts/run.py -e "/python -c \"aa={1:22,3:44}; print aa; print 'asdf'\"" Signed-off-by: Justin

[COMMIT osv master] Revert "lua: Upgrade LuaSec"

2017-07-24 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master Revert "lua: Upgrade LuaSec" Compilation fails on both Fedora 25 and Fedora 26. Benoit asked to try a different approach. This reverts commit dc447e66dea85d283fa98425837f1c983adc9067. --- diff

[COMMIT osv master] setup: Make Fedora26 take the compat openssl header

2017-07-24 Thread Commit Bot
From: Benoît Canet Committer: Nadav Har'El Branch: master setup: Make Fedora26 take the compat openssl header Using the default openssl-devel package would break lua sec and start a dependency mess. Use the compatibility header package so the

[COMMIT osv master] gcc 7: fix crashes due to corruption of xmm0 register

2017-07-23 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master gcc 7: fix crashes due to corruption of xmm0 register This patch fixes #890, which reported multiple cases of early crashes of OSv when compiled with gcc 7. The common feature of all these crashes

[COMMIT osv master] run.py: drop unnecessary qemu option

2017-07-23 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master run.py: drop unnecessary qemu option Recent versions of qemu complain about the do-nothing and deprecated "default" option to "-mon". We can just get rid of it. Signed-off-by: Nadav Har'El

[COMMIT osv master] Fix compilation error on older compilers

2017-07-27 Thread Commit Bot
From: HawxChen Committer: Avi Kivity Branch: master Fix compilation error on older compilers Complete the commit: a675ae787660648a22cef984522e27bafb398bc8. Fixes #896. Signed-off-by: HawxChen Message-Id:

[COMMIT osv master] Fix compilation error on older compilers

2017-07-26 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master Fix compilation error on older compilers Allowing a static_assert without a separate message string is, unfortunately, a C++17 extension. Older compiler needs this string, as silly as it is. Fixes

[COMMIT osv master] update apps submodule

2017-07-19 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master update apps submodule Signed-off-by: Nadav Har'El --- diff --git a/apps b/apps --- a/apps +++ b/apps @@ -1 +1 @@ -Subproject commit 945ebfd812bf0d2d430f2e2ab606ae1bc1e7bfdc

[COMMIT osv master] pci-generic: free the device pointer when parse device config failure

2017-07-24 Thread Commit Bot
From: Dongjiu Geng Committer: Nadav Har'El Branch: master pci-generic: free the device pointer when parse device config failure when parse device config failure, it will break out of the circulation loop, but not free the allocated device pointer. so

[COMMIT osv master] lua: Upgrade LuaSec

2017-07-24 Thread Commit Bot
From: Benoît Canet Committer: Nadav Har'El Branch: master lua: Upgrade LuaSec The LuaRock repository is not up to date - the latest release it has of LuaSec is a year old and does not successfully compile on new distributions with Gcc 7 and

[COMMIT osv master] gcc 7: replacement for "new" for types of special alignment

2017-07-19 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master gcc 7: replacement for "new" for types of special alignment OSv has various types which have special alignment requirements - e.g., some objects are aligned to cache-line size for performance, some

[COMMIT osv master] ramfs: support symbolic links

2017-04-27 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master ramfs: support symbolic links This patch adds the missing support in ramfs for creating and reading symbolic links, and then modifies the "bootfs" format (which we use to pack and unpack the ram

[COMMIT osv-apps master] Add python2.7 from the build system

2017-08-03 Thread Commit Bot
From: Justin Cinkelj Committer: Nadav Har'El Branch: master Add python2.7 from the build system Instead of compiling python from source, we reuse libpython2.7.so from the build system. Only the python executable is recompiled as shared object. The

[COMMIT osv master] Update apps submodule

2017-08-03 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master Update apps submodule Renames from-source python package to "python27-fromsource" and a new "python27" package which takes the unmodified Python 2.7 from the build machine. Signed-off-by: Nadav

[COMMIT osv-apps master] apps: rename python27 to python27-fromsource

2017-08-03 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master apps: rename python27 to python27-fromsource This version gets the Python 2.7 sources and compiles them. We will want to also add a package which takes the one installed on this machine instead of

[COMMIT osv-apps master] python2.7: add README

2017-08-03 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master python2.7: add README Signed-off-by: Nadav Har'El --- diff --git a/python27/README b/python27/README --- a/python27/README +++ b/python27/README @@ -0,0 +1,8 @@ +This app

[COMMIT osv master] ELF: fix assertion failure when trying to run short non-executable

2017-08-20 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master ELF: fix assertion failure when trying to run short non-executable When trying to run a short non-executable (e.g. "scripts/run.py -e /etc/hosts") we used to fail with an assertion failure in

[COMMIT osv master] osv_execve: fail gracefully if program file does not exist

2017-08-20 Thread Commit Bot
From: Justin Cinkelj Committer: Nadav Har'El Branch: master osv_execve: fail gracefully if program file does not exist If non-existent path is passed to osv_execve, osv::launch_error is raised. This terminates VM if nobody catches the exception.

[COMMIT osv-apps master] busybox ash: do not exit if command doesn't exist

2017-08-20 Thread Commit Bot
From: Justin Cinkelj Committer: Nadav Har'El Branch: master busybox ash: do not exit if command doesn't exist 0004 patch prevents poping up spurious error message 'command not found' when running in ash say 'ls /'. It requires patch to osv_execve to

[COMMIT osv master] ramfs: strip ! from usr.manifest filenames

2017-06-08 Thread Commit Bot
From: Justin Cinkelj Committer: Nadav Har'El Branch: master ramfs: strip ! from usr.manifest filenames usr.manifest can contain lines like "/osv-path: !/host-path", when "/host-path" is a symlink. We need to remove the ! before searching host

<    1   2   3   4   5   6   7   8   9   10   >