1. In kernel 3.3.8-desktop-2.mga2, os-prober (1.57-6) shows the bug
(probing a logical partition), and the kernel's mount call hangs.
dmesg shows this:
[ 2036.520345] INFO: task mount:22332 blocked for more than 120 seconds.
[ 2036.520345] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs"
disables this message.
[ 2036.520346] mount D ffffffff8160c1c0 0 22332 22325
0x00000004
[ 2036.520348] ffff88042bbd3c68 0000000000000082 ffff88042bbd3c18
ffff88042f028de0
[ 2036.520350] ffff880416bd0000 ffff88042bbd3fd8 ffff88042bbd3fd8
ffff88042bbd3fd8
[ 2036.520352] ffff88042d972d20 ffff880416bd0000 ffff88042bbd3cc8
ffff880428000400
[ 2036.520354] Call Trace:
[ 2036.520355] [<ffffffff8144fe9f>] schedule+0x3f/0x60
[ 2036.520357] [<ffffffff8144ecea>] __mutex_lock_slowpath+0xca/0x140
[ 2036.520359] [<ffffffff8144e93a>] mutex_lock+0x2a/0x50
[ 2036.520360] [<ffffffff811601ef>] mount_bdev+0x7f/0x200
[ 2036.520362] [<ffffffff811d80b0>] ? ext2_error+0x130/0x130
[ 2036.520364] [<ffffffff811526bd>] ? __kmalloc_track_caller+0x13d/0x190
[ 2036.520365] [<ffffffff811d6a35>] ext2_mount+0x15/0x20
[ 2036.520367] [<ffffffff81161103>] mount_fs+0x43/0x1b0
[ 2036.520369] [<ffffffff81126710>] ? __alloc_percpu+0x10/0x20
[ 2036.520370] [<ffffffff8117ac92>] vfs_kern_mount+0x72/0x110
[ 2036.520372] [<ffffffff8117b4f4>] do_kern_mount+0x54/0x110
[ 2036.520373] [<ffffffff8117cce4>] do_mount+0x1a4/0x850
[ 2036.520375] [<ffffffff81120bab>] ? memdup_user+0x4b/0x90
[ 2036.520376] [<ffffffff81120c4b>] ? strndup_user+0x5b/0x80
[ 2036.520378] [<ffffffff8117d4d0>] sys_mount+0x90/0xe0
[ 2036.520379] [<ffffffff81458e79>] system_call_fastpath+0x16/0x1b
2. In kernel 3.8.11-desktop-1.mga3, os-prober still tries to probe the
logical partition (sda2), but does so safely, and the kernel doesn't
hang when mounting. Fragment of syslog below.
May 3 23:23:57 chocolate logger: os-prober: debug: running
/usr/lib/os-probes/50mounted-tests on /dev/sda2
May 3 23:23:57 chocolate logger: os-prober: debug: running
/usr/lib/os-probes/50mounted-tests.0007 on /dev/sda2
May 3 23:23:57 chocolate kernel: EXT2-fs (sda2): error: unable to read
superblock
May 3 23:23:57 chocolate kernel: EXT4-fs (sda2): unable to read superblock
May 3 23:23:57 chocolate kernel: cramfs: wrong magic
May 3 23:23:57 chocolate kernel: EXT3-fs (sda2): error: unable to read
superblock
May 3 23:23:57 chocolate kernel: REISERFS warning (device sda2):
sh-2006 read_super_block: bread failed (dev sda2, block 8, size 1024)
May 3 23:23:57 chocolate kernel: REISERFS warning (device sda2):
sh-2006 read_super_block: bread failed (dev sda2, block 64, size 1024)
May 3 23:23:57 chocolate kernel: REISERFS warning (device sda2):
sh-2021 reiserfs_fill_super: can not find reiserfs on sda2
May 3 23:23:57 chocolate kernel: XFS (sda2): bad magic number
May 3 23:23:57 chocolate kernel: XFS (sda2): SB validate failed
May 3 23:23:57 chocolate kernel: FAT-fs (sda2): bogus number of
reserved sectors
May 3 23:23:57 chocolate kernel: FAT-fs (sda2): Can't find a valid FAT
filesystem
May 3 23:23:57 chocolate kernel: FAT-fs (sda2): bogus number of
reserved sectors
May 3 23:23:57 chocolate kernel: FAT-fs (sda2): Can't find a valid FAT
filesystem
May 3 23:23:57 chocolate kernel: MINIX-fs: unable to read superblock
May 3 23:23:57 chocolate kernel: attempt to access beyond end of device
May 3 23:23:57 chocolate kernel: sda2: rw=0, want=3, limit=2
May 3 23:23:57 chocolate kernel: hfs: unable to find HFS+ superblock
May 3 23:23:57 chocolate kernel: qnx4: wrong fsid in superblock.
May 3 23:23:57 chocolate kernel: You didn't specify the type of your
ufs filesystem
May 3 23:23:57 chocolate kernel:
May 3 23:23:57 chocolate kernel: mount -t ufs -o
ufstype=sun|sunx86|44bsd|ufs2|5xbsd|old|hp|nextstep|nextstep-cd|openstep ...
May 3 23:23:57 chocolate kernel:
May 3 23:23:57 chocolate kernel: >>>WARNING<<< Wrong ufstype may
corrupt your filesystem, default is ufstype=old
May 3 23:23:57 chocolate kernel: hfs: can't find a HFS filesystem on
dev sda2.
3. This still affects the latest version 1.58-1, which still probes
/dev/sda2.
All the above has been extracted from Mageia bug report:-
https://bugs.mageia.org/show_bug.cgi?id=9832
os-prober should not be trying to mount a logical partition, can it be
fixed so it does not attempt to?
Thanks
Barry
--
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/51859b29.7040...@zen.co.uk