[Bug 1053911] Re: libguestfs-tools shouldn't have hard dependency on zfs-fuse daemon
Actually my comment there is wrong. Currently update-guestfs-appliance builds a supermin appliance, so the packages have to be installed on the host system in order for febootstrap-supermin-helper to grab the right files. However two things: (1) febootstrap-supermin-helper skips files it doesn't find (this is intentional). So you can have optional bits of appliance. Although it gets pretty hairy. (2) Could use libguestfs-make-fixed-appliance instead and build a real appliance. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1053911 Title: libguestfs-tools shouldn't have hard dependency on zfs-fuse daemon To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libguestfs/+bug/1053911/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1053911] Re: libguestfs-tools shouldn't have hard dependency on zfs-fuse daemon
Because of the way the appliance is built in Debian/Ubuntu, I suspect that none of these are dependencies (hard or otherwise). Check update- guestfs-appliance script -- it downloads the dependencies it needs when it builds the appliance. Note also this works differently in Fedora. We ship a supermin appliance, so the dependencies are required there. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1053911 Title: libguestfs-tools shouldn't have hard dependency on zfs-fuse daemon To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libguestfs/+bug/1053911/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1002991] Re: Should be built on powerpc as well
I'm guessing from the messages this is 1.14.8. That's an old version which we don't support upstream any longer. You should probably try something from the 1.18.x series. I got libguestfs (from git) working on ppc and ppc64 recently, and all of the fixes that I'm aware of have been cherry picked into 1.18.5. That doesn't mean it'll definitely work, but it's got a far far higher chance of working than anything from 1.14. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1002991 Title: Should be built on powerpc as well To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libguestfs/+bug/1002991/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1009489] Re: libguestfs version 1.18.0-1build1 failed to build with openjdk-7 as default-jdk
The error is: ../../../../gnulib/tests/test-lutimens.h:95: assertion failed /bin/bash: line 5: 32716 Aborted (core dumped) EXEEXT='' srcdir='../../../../gnulib/tests' LOCALE_FR='none' LOCALE_FR_UTF8='none' LOCALE_FR='none' LOCALE_TR_UTF8='none' LOCALE_FR='none' LOCALE_FR_UTF8='none' LOCALE_JA='none' LOCALE_ZH_CN='none' LOCALE_FR_UTF8='none' LOCALE_FR='none' LOCALE_FR_UTF8='none' LOCALE_JA='none' LOCALE_ZH_CN='none' LOCALE_FR='none' LOCALE_FR_UTF8='none' LOCALE_JA='none' LOCALE_ZH_CN='none' abs_aux_dir='/«PKGBUILDDIR»/build-aux' MAKE='make' LOCALE_FR='none' LOCALE_FR_UTF8='none' LOCALE_JA='none' LOCALE_ZH_CN='none' ${dir}$tst FAIL: test-utimens (in gnulib). Unfortunately it's rather hard to tell from the test exactly what system call failed, but it's not anything to do directly with libguestfs. It could be that we need to update gnulib. However we updated gnulib just recently, and I cannot see anything in recent gnulib git log which could relate to a fix to this bug. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1009489 Title: libguestfs version 1.18.0-1build1 failed to build with openjdk-7 as default-jdk To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libguestfs/+bug/1009489/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 930634] Re: guestmount does not work, libguestfs-test-tool test is not ok
Update to febootstrap 3.14-2. Run 'sudo update-guestfs-appliance'. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/930634 Title: guestmount does not work, libguestfs-test-tool test is not ok To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libguestfs/+bug/930634/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1002991] Re: Should be built on powerpc as well
Ignore that last comment, I got Ubuntu working in qemu-system-ppc fairly easily. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1002991 Title: Should be built on powerpc as well To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libguestfs/+bug/1002991/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1002991] Re: Should be built on powerpc as well
Can Ubuntu be easily installed under qemu-system-ppc/ppc64? If so I might have a go at testing how well it works. I don't have access to real ppc hardware though. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1002991 Title: Should be built on powerpc as well To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libguestfs/+bug/1002991/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 931371] Re: Seabios causing hang when adding a virtio disk
*** This bug is a duplicate of bug 930634 *** https://bugs.launchpad.net/bugs/930634 ** This bug has been marked a duplicate of bug 930634 guestmount does not work, libguestfs-test-tool test is not ok -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/931371 Title: Seabios causing hang when adding a virtio disk To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/931371/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 930634] Re: guestmount does not work, libguestfs-test-tool test is not ok
Not a libguestfs bug (it's in seabios), so setting libguestfs -> invalid. ** Changed in: libguestfs (Ubuntu Precise) Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/930634 Title: guestmount does not work, libguestfs-test-tool test is not ok To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libguestfs/+bug/930634/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 930634] Re: guestmount does not work, libguestfs-test-tool test is not ok
Not a libguestfs bug (it's in seabios), so setting libguestfs -> invalid. ** Changed in: libguestfs (Ubuntu Quantal) Status: Confirmed => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/930634 Title: guestmount does not work, libguestfs-test-tool test is not ok To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libguestfs/+bug/930634/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 931371] Re: Seabios causing hang when adding a virtio disk
Can we fix this? It's causing lots of people to have problems with libguestfs, and will cause random failures for *anyone* using virtio disks. I would say this bug should be urgent. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/931371 Title: Seabios causing hang when adding a virtio disk To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/931371/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 930634] Re: guestmount does not work, libguestfs-test-tool test is not ok
All of my thoughts on 12.04 are now collected in this thread. Make sure you read through the whole thread: https://www.redhat.com/archives/libguestfs/2012-April/thread.html#00028 In particular, there is a bug in the seabios shipped in Ubuntu 12.04 which looks like the one you are seeing. Note: (a) I cannot fix this, it's an Ubuntu bug and (b) my email to the maintainer hasn't been answered. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/930634 Title: guestmount does not work, libguestfs-test-tool test is not ok To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libguestfs/+bug/930634/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 905095] Re: qemu-img can't convert vmdk file: Operation not permitted
Actually support upstream has improved a lot in recent qemu (thanks to IBM), and Red Hat are planning on doing further work in this area. Right now / with old qemu, the best thing is to convert your proprietary vmdk files to a portable format, ie. raw or qcow2, and use that instead. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/905095 Title: qemu-img can't convert vmdk file: Operation not permitted To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/905095/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 931371] Re: Seabios causing hang when adding a virtio disk
** Package changed: linux (Ubuntu) => seabios (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/931371 Title: Seabios causing hang when adding a virtio disk To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/931371/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 931371] Re: Seabios causing hang when adding a virtio disk
Luckily my first guess was correct. The following patch needs to be applied to SeaBIOS: commit 3c5fcec00ce1317cda56d549259550fcc018c834 Author: Kevin O'Connor Date: Sat Oct 1 12:35:32 2011 -0400 Fix alignment bug in pci_bios_init_root_regions(). If there are no memory allocations for a given type then the "max" bar size is zero. However, ALIGN_DOWN does not handle an alignment of zero properly. Catch and handle the zero case. Signed-off-by: Kevin O'Connor diff --git a/src/pciinit.c b/src/pciinit.c index a857da0..0d8758e 100644 --- a/src/pciinit.c +++ b/src/pciinit.c @@ -536,7 +536,7 @@ static void pci_bios_init_bus_bases(struct pci_bus *bus) } } -#define ROOT_BASE(top, sum, align) ALIGN_DOWN((top)-(sum),(align)) +#define ROOT_BASE(top, sum, max) ALIGN_DOWN((top)-(sum),(max) ?: 1) static int pci_bios_init_root_regions(u32 start, u32 end) { I tested this by applying this patch to seabios 0.6.2-0ubuntu2 and it completely cures the problem. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/931371 Title: Seabios causing hang when adding a virtio disk To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/931371/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 931371] Re: QEMU 1.0 causing hang when adding a virtio disk
I've identified the commit which fixes the bug, which is: commit 41bd360325168b3c1db78eb7311420a1607d521f Author: Jan Kiszka Date: Sun Jan 15 17:48:25 2012 +0100 seabios: Update to release 1.6.3.1 User visible changes in seabios: - Probe HPET existence (fix for -no-hpet) - Probe PCI existence (fix for -machine isapc) - usb: fix boot paths Signed-off-by: Jan Kiszka diff --git a/pc-bios/bios.bin b/pc-bios/bios.bin index bd9ad0e..41e2b38 100644 Binary files a/pc-bios/bios.bin and b/pc-bios/bios.bin differ diff --git a/roms/seabios b/roms/seabios index 8e30147..80d11e8 16 --- a/roms/seabios +++ b/roms/seabios @@ -1 +1 @@ -Subproject commit 8e301472e324b6d6496d8b4ffc66863e99d7a505 +Subproject commit 80d11e8577bf03e98f2eb1b0cb3a281ab2879c9e So in fact the bug is in seabios, not in qemu-kvm. ** Summary changed: - QEMU 1.0 causing hang when adding a virtio disk + Seabios causing hang when adding a virtio disk -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/931371 Title: Seabios causing hang when adding a virtio disk To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/931371/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 931371] Re: QEMU 1.0 causing hang when adding a virtio disk
There are 1912 commits to check! None of them is obviously a fix for a hanging bug in virtio/block code. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/931371 Title: QEMU 1.0 causing hang when adding a virtio disk To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/931371/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 931371] Re: QEMU 1.0 causing hang when adding a virtio disk
I think this is a bug in the Ubuntu qemu-kvm package, not in the kernel. (How to change the package that this bug is reported against?) I tried compiling the Ubuntu qemu-kvm package without any patches (except define_AT_EMPTY_PATH.patch which is required in order for the package to compile). However the bug was still reproducible. So the bug is not caused by any Ubuntu patch. I compiled qemu from git tag 'v1.0' => bug was reproducible. I compiled qemu from git HEAD (currently da12872a097) => bug was NOT reproducible. This proves that some commit in that range fixes the problem, but I haven't yet worked out which one it is. ** Summary changed: - ADFS partition checking code hangs on empty virtio disk + QEMU 1.0 causing hang when adding a virtio disk ** Tags removed: kernel-bug-exists-upstream kernel-da-key precise -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/931371 Title: QEMU 1.0 causing hang when adding a virtio disk To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/931371/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 930634] Re: guestmount does not work, libguestfs-test-tool test is not ok
Note on febootstrap (may not be directly related to this bug): febootstrap 3.12 reveals a bug in Ubuntu 12.04's APT. You need 3.14 to work around that. I would recommend using at least 3.14. https://github.com/libguestfs/febootstrap/commit/6987ad1529dd67e7e1c990fe5b011c51e8625837 Furthermore, febootstrap <= 3.14 reveals a bug in e2fsprogs, which needs to be worked around with another patch: https://github.com/libguestfs/febootstrap/commit/386b5985098fedf7bcd111553b8b6b73599df6c9 http://www.spinics.net/lists/linux-ext4/index.html#31432 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/930634 Title: guestmount does not work, libguestfs-test-tool test is not ok To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libguestfs/+bug/930634/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 931371] Re: ADFS partition checking code hangs on empty virtio disk
Done: https://bugzilla.kernel.org/show_bug.cgi?id=42778 ** Bug watch added: Linux Kernel Bug Tracker #42778 http://bugzilla.kernel.org/show_bug.cgi?id=42778 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/931371 Title: ADFS partition checking code hangs on empty virtio disk To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/931371/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 931371] Re: ADFS partition checking code hangs on empty virtio disk
FYI is the call stack from the mainline kernel. It's basically the same as for the precise kernel. [ 241.283078] INFO: task swapper/0:1 blocked for more than 120 seconds. [ 241.283078] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 241.283078] swapper/0 D 8180c6c0 0 1 0 0x [ 241.283078] 88001ed69880 0046 88001ed69fd8 00013600 [ 241.283078] 88001ed68010 00013600 00013600 00013600 [ 241.287078] 88001ed69fd8 00013600 81c0d020 88001ed6 [ 241.291079] Call Trace: [ 241.291079] [] ? __lock_page+0x70/0x70 [ 241.291079] [] schedule+0x3f/0x60 [ 241.291079] [] io_schedule+0x8c/0xd0 [ 241.291079] [] sleep_on_page+0xe/0x20 [ 241.291079] [] __wait_on_bit_lock+0x5a/0xc0 [ 241.291079] [] __lock_page+0x67/0x70 [ 241.291079] [] ? autoremove_wake_function+0x40/0x40 [ 241.295079] [] ? blkdev_write_begin+0x30/0x30 [ 241.295079] [] do_read_cache_page+0x94/0x110 [ 241.295079] [] read_cache_page_async+0x19/0x20 [ 241.295079] [] read_cache_page+0xe/0x20 [ 241.299079] [] read_dev_sector+0x2d/0x90 [ 241.299079] [] adfspart_check_ICS+0x7a/0x290 [ 241.299079] [] ? snprintf+0x34/0x40 [ 241.299079] [] ? check_partition+0x210/0x210 [ 241.299079] [] check_partition+0x104/0x210 [ 241.299079] [] rescan_partitions+0xda/0x310 [ 241.299079] [] ? _raw_spin_lock+0xe/0x20 [ 241.303079] [] __blkdev_get+0x2d4/0x450 [ 241.303079] [] blkdev_get+0x5c/0x210 [ 241.303079] [] register_disk+0x177/0x1a0 [ 241.303079] [] add_disk+0xa6/0x1b0 [ 241.307080] [] virtblk_probe+0x44c/0x4f1 [ 241.307080] [] virtio_dev_probe+0xd3/0x120 [ 241.307080] [] really_probe+0x68/0x190 [ 241.307080] [] driver_probe_device+0x45/0x70 [ 241.315080] [] __driver_attach+0x9b/0xa0 [ 241.315080] [] ? driver_probe_device+0x70/0x70 [ 241.315080] [] bus_for_each_dev+0x68/0x90 [ 241.319080] [] driver_attach+0x1e/0x20 [ 241.323081] [] bus_add_driver+0xd0/0x270 [ 241.323081] [] ? max_loop_setup+0x1a/0x1a [ 241.323081] [] driver_register+0x80/0x150 [ 241.323081] [] ? max_loop_setup+0x1a/0x1a [ 241.327081] [] register_virtio_driver+0x20/0x30 [ 241.327081] [] init+0x57/0x81 [ 241.327081] [] do_one_initcall+0x42/0x180 [ 241.331081] [] kernel_init+0xd2/0x156 [ 241.335081] [] kernel_thread_helper+0x4/0x10 [ 241.335081] [] ? parse_early_options+0x20/0x20 [ 241.335081] [] ? gs_change+0x13/0x13 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/931371 Title: ADFS partition checking code hangs on empty virtio disk To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/931371/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 931371] Re: ADFS partition checking code hangs on empty virtio disk
This didn't happen on older versions of Ubuntu (eg. 11.10). I installed the following kernel: http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.3-rc3-precise/ and it *does* happen on this kernel so the flag should be 'kernel-bug-exists-upstream'. ** Tags removed: needs-upstream-testing ** Tags added: kernel-bug-exists-upstream -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/931371 Title: ADFS partition checking code hangs on empty virtio disk To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/931371/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 931371] Re: ADFS partition checking code hangs on empty virtio disk
Kernel version is: Linux tmpubuntu1204 3.2.0-12-generic #21-Ubuntu SMP Tue Jan 31 18:48:57 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux This is Ubuntu 12.04 alpha 2. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/931371 Title: ADFS partition checking code hangs on empty virtio disk To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/931371/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 931371] [NEW] ADFS partition checking code hangs on empty virtio disk
Public bug reported: Attaching a completely blank disk image to a virtual machine causes the following stack trace when loading the virtio block driver: [1.106728] loop: module loaded [1.125680] vda: unknown partition table [1.789721] Switching to clocksource tsc [8.373409] Clocksource tsc unstable (delta = 87849991 ns) [8.374642] Switching to clocksource jiffies [ 241.037694] INFO: task swapper/0:1 blocked for more than 120 seconds. [ 241.037966] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 241.038424] swapper/0 D 81806240 0 1 0 0x [ 241.039028] 88001ed7d870 0046 4dbb1e54 [ 241.039460] 88001ed7dfd8 88001ed7dfd8 88001ed7dfd8 00013780 [ 241.039839] 81c0d020 88001ed8 88001ed7d850 88001f014040 [ 241.040220] Call Trace: [ 241.041349] [] ? __lock_page+0x70/0x70 [ 241.041712] [] schedule+0x3f/0x60 [ 241.041798] [] io_schedule+0x8f/0xd0 [ 241.041943] [] sleep_on_page+0xe/0x20 [ 241.045386] [] __wait_on_bit_lock+0x5a/0xc0 [ 241.045467] [] __lock_page+0x67/0x70 [ 241.049105] [] ? autoremove_wake_function+0x40/0x40 [ 241.049416] [] do_read_cache_page+0x160/0x180 [ 241.049656] [] ? blkdev_write_begin+0x30/0x30 [ 241.049783] [] read_cache_page_async+0x19/0x20 [ 241.049931] [] read_cache_page+0xe/0x20 [ 241.053417] [] read_dev_sector+0x2d/0x90 [ 241.053629] [] adfspart_check_ICS+0x74/0x2d0 [ 241.053834] [] ? snprintf+0x34/0x40 [ 241.053987] [] ? rescan_partitions+0x300/0x300 [ 241.054210] [] check_partition+0xf8/0x200 [ 241.057501] [] rescan_partitions+0xda/0x300 [ 241.057746] [] __blkdev_get+0x2bc/0x420 [ 241.057888] [] ? bit_waitqueue+0x17/0xc0 [ 241.058000] [] blkdev_get+0x5e/0x1e0 [ 241.058080] [] register_disk+0x162/0x180 [ 241.058177] [] add_disk+0xa4/0x1b0 [ 241.061902] [] virtblk_probe+0x43d/0x4e2 [ 241.064195] [] ? virtblk_config_changed+0x30/0x30 [ 241.065436] [] ? vp_find_vqs+0xc0/0xc0 [ 241.065529] [] virtio_dev_probe+0xe3/0x140 [ 241.065617] [] really_probe+0x68/0x190 [ 241.065701] [] driver_probe_device+0x45/0x70 [ 241.065789] [] __driver_attach+0xab/0xb0 [ 241.065873] [] ? driver_probe_device+0x70/0x70 [ 241.065962] [] ? driver_probe_device+0x70/0x70 [ 241.066051] [] bus_for_each_dev+0x5c/0x90 [ 241.066137] [] driver_attach+0x1e/0x20 [ 241.069422] [] bus_add_driver+0x1a0/0x270 [ 241.073426] [] ? loop_init+0x12f/0x12f [ 241.073641] [] driver_register+0x76/0x140 [ 241.073801] [] ? loop_init+0x12f/0x12f [ 241.073951] [] register_virtio_driver+0x20/0x30 [ 241.077413] [] init+0x52/0x7c [ 241.077611] [] do_one_initcall+0x40/0x180 [ 241.077760] [] kernel_init+0xcf/0x14e [ 241.077913] [] kernel_thread_helper+0x4/0x10 [ 241.078061] [] ? start_kernel+0x3c7/0x3c7 [ 241.081352] [] ? gs_change+0x13/0x13 [ 361.089003] INFO: task swapper/0:1 blocked for more than 120 seconds. [ 361.089312] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 361.090036] swapper/0 D 81806240 0 1 0 0x [ 361.090322] 88001ed7d870 0046 4dbb1e54 [ 361.090716] 88001ed7dfd8 88001ed7dfd8 88001ed7dfd8 00013780 [ 361.091024] 81c0d020 88001ed8 88001ed7d850 88001f014040 [ 361.091332] Call Trace: [ 361.091570] [] ? __lock_page+0x70/0x70 [ 361.091797] [] schedule+0x3f/0x60 [ 361.091990] [] io_schedule+0x8f/0xd0 [ 361.092189] [] sleep_on_page+0xe/0x20 [ 361.092392] [] __wait_on_bit_lock+0x5a/0xc0 [ 361.092702] [] __lock_page+0x67/0x70 [ 361.092852] [] ? autoremove_wake_function+0x40/0x40 [ 361.092852] [] do_read_cache_page+0x160/0x180 [ 361.092852] [] ? blkdev_write_begin+0x30/0x30 [ 361.092945] [] read_cache_page_async+0x19/0x20 [ 361.093390] [] read_cache_page+0xe/0x20 [ 361.093600] [] read_dev_sector+0x2d/0x90 [ 361.097020] [] adfspart_check_ICS+0x74/0x2d0 [ 361.097194] [] ? snprintf+0x34/0x40 [ 361.097328] [] ? rescan_partitions+0x300/0x300 [ 361.097476] [] check_partition+0xf8/0x200 [ 361.097617] [] rescan_partitions+0xda/0x300 [ 361.100852] [] __blkdev_get+0x2bc/0x420 [ 361.100956] [] ? bit_waitqueue+0x17/0xc0 [ 361.101103] [] blkdev_get+0x5e/0x1e0 [ 361.101226] [] register_disk+0x162/0x180 [ 361.101328] [] add_disk+0xa4/0x1b0 [ 361.101461] [] virtblk_probe+0x43d/0x4e2 [ 361.101677] [] ? virtblk_config_changed+0x30/0x30 [ 361.108947] [] ? vp_find_vqs+0xc0/0xc0 [ 361.109136] [] virtio_dev_probe+0xe3/0x140 [ 361.109238] [] really_probe+0x68/0x190 [ 361.109373] [] driver_probe_device+0x45/0x70 [ 361.109519] [] __driver_attach+0xab/0xb0 [ 361.112917] [] ? driver_probe_device+0x70/0x70 [ 361.113131] [] ? driver_probe_device+0x70/0x70 [ 361.113290] [] bus_for_each_dev+0x5c/0x90 [ 361.113604] [] driver_attach+0x1e/0x20 [ 361.113733] [] bus_add_driver+0x1a0/0x27
Re: [Bug 759725] Re: The kernel is no longer readable by non-root users
On Tue, Apr 26, 2011 at 09:49:25PM -, Kees Cook wrote: > But because the symbols can be extracted in the way you point out is > why the kernel image itself needs to be unreadable. This change is > to block the class of attacks carried out by script kiddies and > automated systems that expect to be able to look up symbols locally > and make exploits totally portable to all kernel versions. You didn't appear to understand the code that I wrote: it gets out the symbols from any version of the kernel by simply reading the kernel *runtime memory*. So the attacker now has two alternative methods: (a) fire up a web browser or (b) inject shell code into the kernel which greps through physical memory to find the symbol tables, and note method (b) works with any kernel version without reference to the original vmlinuz file. > It changes the nature of future attacks, at least forcing attackers > to take additional steps. Yes, firing up a web browser or injecting an extra small piece of shell code into the kernel. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/759725 Title: The kernel is no longer readable by non-root users -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 759725] Re: The kernel is no longer readable by non-root users
By the way, I myself actually wrote code that walks through the kernel memory finding the location of the symbols. You're not gaining any extra security by making this change, but you are making Ubuntu less useful. http://git.annexia.org/?p=virt-mem.git;a=blob;f=lib/virt_mem_kallsyms.ml;h=9e6eccb6629a2ea067ee46a7c690aea17e44c0d2;hb=HEAD#l39 http://git.annexia.org/?p=virt-mem.git;a=blob;f=lib/virt_mem_ksyms.ml;h=8a38caec5b9fa05904c3b9e8b5fcdb76871f27ae;hb=HEAD#l29 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/759725 Title: The kernel is no longer readable by non-root users -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 759725] Re: The kernel is no longer readable by non-root users
On Tue, Apr 26, 2011 at 05:25:33PM -, Kees Cook wrote: > On Tue, Apr 26, 2011 at 11:21:38AM -0000, Richard W.M. Jones wrote: > > What is being protected by this mode change? This kernel is distributed > > on hundreds of mirrors -- there is no secret in here. > > The mode changes do not protect a system from any dedicated attacker (for > the reason you state), but it does have real-world benefits against > simplistic kernel exploitation (keeping kernel symbols away from non-root > users). It is absolutely a trade-off. This non-root user that we imagine has no access to the world wide web? This is absolutely nuts, sorry. Rich. -- Richard Jones Red Hat -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/759725 Title: The kernel is no longer readable by non-root users -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 759725] Re: The kernel is no longer readable by non-root users
What is being protected by this mode change? This kernel is distributed on hundreds of mirrors -- there is no secret in here. When we install libguestfs, we need to boot using this kernel. What change do I need to make to libguestfs so that when a sysadmin installs it, it will change the permissions back to 0644 automatically? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/759725 Title: The kernel is no longer readable by non-root users -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 759725] Re: The kernel is no longer readable by non-root users
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/759725 Title: The kernel is no longer readable by non-root users -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 759725] [NEW] The kernel is no longer readable by non-root users
Public bug reported: The mode of the latest kernel has changed so it is no longer readable by non-root users: -rw-r--r-- 1 root root 4336016 2010-10-17 01:37 /boot/vmlinuz-2.6.35-22-generic -rw-r--r-- 1 root root 4336912 2010-11-24 12:46 /boot/vmlinuz-2.6.35-23-generic -rw-r--r-- 1 root root 4523072 2011-03-08 18:47 /boot/vmlinuz-2.6.38-6-generic -rw--- 1 root root 4523936 2011-04-11 05:24 /boot/vmlinuz-2.6.38-8-generic This prevents people from using this kernel to boot qemu virtual machines as non-root. Please change the mode back to make the kernel readable. ProblemType: Bug DistroRelease: Ubuntu 11.04 Package: linux-image-2.6.38-8-generic 2.6.38-8.42 Regression: Yes Reproducible: Yes ProcVersionSignature: Ubuntu 2.6.35-22.35-generic 2.6.35.4 Uname: Linux 2.6.35-22-generic x86_64 AlsaDevices: Error: command ['ls', '-l', '/dev/snd/'] failed with exit code 2: ls: cannot access /dev/snd/: No such file or directory AplayDevices: aplay: device_list:240: no soundcards found... Architecture: amd64 ArecordDevices: arecord: device_list:240: no soundcards found... CRDA: Error: [Errno 2] No such file or directory Date: Wed Apr 13 13:05:01 2011 HibernationDevice: RESUME=UUID=112bf9c4-620e-441f-abb3-aeac6aa15294 InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007) IwConfig: lono wireless extensions. eth0 no wireless extensions. Lsusb: Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub MachineType: Red Hat KVM PciMultimedia: ProcEnviron: LANG=en_GB.UTF-8 SHELL=/bin/bash ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.35-22-generic root=UUID=1efa0b67-17df-484e-980c-8544fa2149fe ro quiet splash RelatedPackageVersions: linux-restricted-modules-2.6.35-22-generic N/A linux-backports-modules-2.6.35-22-generic N/A linux-firmware 1.50 RfKill: SourcePackage: linux UpgradeStatus: No upgrade log present (probably fresh install) dmi.bios.date: 01/01/2007 dmi.bios.vendor: Seabios dmi.bios.version: 0.5.1 dmi.chassis.type: 1 dmi.chassis.vendor: Red Hat dmi.modalias: dmi:bvnSeabios:bvr0.5.1:bd01/01/2007:svnRedHat:pnKVM:pvrRHEL6.0.0PC:cvnRedHat:ct1:cvr: dmi.product.name: KVM dmi.product.version: RHEL 6.0.0 PC dmi.sys.vendor: Red Hat ** Affects: linux (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug kernel-config natty needs-upstream-testing regression-release -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/759725 Title: The kernel is no longer readable by non-root users -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 474739] [NEW] debirf does not recognize Ubuntu generic kernel
Public bug reported: Binary package hint: debirf The Ubuntu kernel for x86/x86-64 is some sort of combined kernel that runs on both architectures. The architecture for this field is "generic" (not, eg. "amd64"). This seems to confuse debirf: run-parts: executing debian/modules/install-kernel W: Unable to locate package linux-image-2.6-generic E: No packages found Reading package lists... Done Building dependency tree Reading state information... Done Initializing package states... Done Writing extended state information... Done E: Can't find a package named "" run-parts: debian/modules/install-kernel exited with return code 255 $ uname -r 2.6.31-14-generic $ apt-cache search linux-image linux-image - Generic Linux kernel image. linux-image-2.6.31-14-generic - Linux kernel image for version 2.6.31 on x86/x86_64 linux-image-2.6.31-14-server - Linux kernel image for version 2.6.31 on x86_64 linux-image-2.6.31-14-virtual - Linux kernel image for version 2.6.31 on x86/x86_64 linux-image-2.6.31-302-ec2 - Linux kernel image for version 2.6.31 on x86/x86_64 linux-image-ec2 - Linux kernel image for ec2 machines linux-image-generic - Generic Linux kernel image linux-image-server - Linux kernel image on Server Equipment. linux-image-virtual - Linux kernel image for virtual machines linux-image-2.6.31-9-rt - Linux kernel image for version 2.6.31 on Ingo Molnar's full real time preemption patch linux-image-rt - Rt Linux kernel image Downloading the correct .deb file and using the -k / DEBIRF_KERNEL_PACKAGE option is a workaround for this problem. debirf 0.23-1 Ubuntu karmic (9.10) ** Affects: debirf (Ubuntu) Importance: Undecided Status: New -- debirf does not recognize Ubuntu generic kernel https://bugs.launchpad.net/bugs/474739 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs