fix memory leak in bio handling

pthread_mutex uses lazy_indirect object to allocate actual object
on a first use. The lazily allocated object is not destroyed unless
pthread_mutex_destroy is called.

Reviewed-by: Nadav Har'El <nyh@cloudius-systems.com>
Signed-off-by: Gleb Natapov <gleb@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
gdb: make 'osv leak show' work with python3

Signed-off-by: Tomasz Grabiec <tgrabiec@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
gdb: fix 'osv leak show'

Traceback (most recent call last):
  File "/home/tgrabiec/src/osv/scripts/loader.py", line 1165, in invoke
    show_leak()
  File "/home/tgrabiec/src/osv/scripts/loader.py", line 1104, in show_leak
    si = syminfo(f)
  File "/home/tgrabiec/src/osv/scripts/loader.py", line 117, in syminfo
    return symbol_formatter(syminfo_resolver(addr))
TypeError: object() takes no parameters
Error occurred in Python command: object() takes no parameters

Reported-by: Gleb Natapov <gleb@cloudius-systems.com>
Signed-off-by: Tomasz Grabiec <tgrabiec@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
Remove warning from mgmt.log when no tests are present

Fixes #282

Signed-off-by: Jaspal Singh Dhillon <jaspal.iiith@gmail.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
aarch64: exceptions: implement interrupt table

implement a simple interrupt table with descriptors
which record interrupt IDs, handlers and interrupt type.

Signed-off-by: Claudio Fontana <claudio.fontana@huawei.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
ec2-upload: Fix batch upload with small instances

Due to a global variable in image type definition code
small instance directive becomes sticky and applies automatically
to all further images of the batch.

Fixed by making the variable local.

Signed-off-by: Dmitry Fleytman <dmitry@daynix.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
Merge branch 'master' of https://github.com/cloudius-systems/osv