Activity log for bug #969384

Date Who What changed Old value New value Message
2012-03-30 16:59:30 Paul Gortmaker bug added bug
2012-03-30 17:01:30 Paul Gortmaker attachment added configuration file for md0 layout https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/969384/+attachment/2968911/+files/mdadm.conf
2012-04-28 09:52:16 Launchpad Janitor mdadm (Ubuntu): status New Confirmed
2012-06-09 17:23:57 ilia bug added subscriber ilia
2012-06-09 19:04:34 ilia attachment added Upstream fix https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/969384/+attachment/3182621/+files/9f1b0f0f1ed.patch
2012-06-09 19:32:08 Dimitri John Ledkov bug added subscriber Steve Langasek
2012-06-09 19:32:16 Dimitri John Ledkov mdadm (Ubuntu): assignee Dmitrijs Ledkovs (dmitrij.ledkov)
2012-06-09 19:32:20 Dimitri John Ledkov mdadm (Ubuntu): importance Undecided Critical
2012-06-09 20:17:54 Ubuntu Foundations Team Bug Bot tags patch
2012-06-09 20:18:05 Ubuntu Foundations Team Bug Bot bug added subscriber Ubuntu Review Team
2012-06-12 17:14:47 Steve Langasek nominated for series Ubuntu Precise
2012-06-12 17:14:47 Steve Langasek bug task added mdadm (Ubuntu Precise)
2012-06-12 17:14:47 Steve Langasek nominated for series Ubuntu Quantal
2012-06-12 17:14:47 Steve Langasek bug task added mdadm (Ubuntu Quantal)
2012-06-12 17:14:55 Steve Langasek mdadm (Ubuntu Precise): status New Triaged
2012-06-12 17:14:57 Steve Langasek mdadm (Ubuntu Quantal): status Confirmed Triaged
2012-06-12 17:14:59 Steve Langasek mdadm (Ubuntu Precise): importance Undecided Critical
2012-06-12 17:15:10 Steve Langasek mdadm (Ubuntu Precise): assignee Dmitrijs Ledkovs (dmitrij.ledkov)
2012-06-12 17:15:15 Steve Langasek mdadm (Ubuntu Precise): milestone ubuntu-12.04.1
2012-06-12 17:15:44 Steve Langasek bug added subscriber Kees Cook
2012-06-15 14:40:21 Launchpad Janitor branch linked lp:~dmitrij.ledkov/ubuntu/quantal/mdadm/merge
2012-06-22 04:09:28 Kate Stewart tags patch patch rls-q-incoming
2012-06-22 04:27:52 Steve Langasek tags patch rls-q-incoming patch
2012-06-22 19:50:17 Launchpad Janitor mdadm (Ubuntu Quantal): status Triaged Fix Released
2012-06-25 18:26:58 Dimitri John Ledkov description ubuntu precise, Installed version of mdadm is 3.2.3-2ubuntu1 mdadm segfaults on ubuntu precise during update-initramfs step. You can reproduce it by running the command separately. Stealing an older mdadm binary from an older ubuntu can be used as a workaround. ------------------------- root@yow-lpgnfs-02:/home/paul# mdadm --detail --scan Segmentation fault root@yow-lpgnfs-02:/home/paul# dmesg [ 577.478657] scsi_verify_blk_ioctl: 6 callbacks suppressed [ 577.478661] mdadm: sending ioctl 1261 to a partition! [ 577.478664] mdadm: sending ioctl 1261 to a partition! [ 577.487510] mdadm: sending ioctl 1261 to a partition! [ 577.487514] mdadm: sending ioctl 1261 to a partition! [ 577.488595] mdadm: sending ioctl 1261 to a partition! [ 577.488598] mdadm: sending ioctl 1261 to a partition! [ 577.508385] mdadm: sending ioctl 1261 to a partition! [ 577.508389] mdadm: sending ioctl 1261 to a partition! [ 577.508680] mdadm: sending ioctl 1261 to a partition! [ 577.508683] mdadm: sending ioctl 1261 to a partition! [ 577.509875] mdadm[2244]: segfault at 0 ip 00007fc3b44bcb91 sp 00007fffca905c28 error 4 in libc-2.15.so[7fc3b4434000+1b2000] ---------------------------- Using old v3.1.4 is a workaround: root@yow-lpgnfs-02:/home/paul# mdadm --version mdadm - v3.2.3 - 23rd December 2011 root@yow-lpgnfs-02:/home/paul# /sbin/mdadm.old --version mdadm - v3.1.4 - 31st August 2010 root@yow-lpgnfs-02:/home/paul# /sbin/mdadm.old --detail --scan ARRAY /dev/md0 metadata=0.90 UUID=48165815:e3a4f8ba:63476e95:1b06b14d root@yow-lpgnfs-02:/home/paul# ---------------------------------- root@yow-lpgnfs-02:/home/paul# gdb --args mdadm --detail --scan GNU gdb (Ubuntu/Linaro 7.4-2012.02-0ubuntu2) 7.4-2012.02 Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: <http://bugs.launchpad.net/gdb-linaro/>... Reading symbols from /sbin/mdadm...(no debugging symbols found)...done. (gdb) run Starting program: /sbin/mdadm --detail --scan Program received signal SIGSEGV, Segmentation fault. 0x00007ffff7aa5b91 in ?? () from /lib/x86_64-linux-gnu/libc.so.6 (gdb) bt #0 0x00007ffff7aa5b91 in ?? () from /lib/x86_64-linux-gnu/libc.so.6 #1 0x00007ffff7ae39c9 in fnmatch () from /lib/x86_64-linux-gnu/libc.so.6 #2 0x0000000000409e88 in ?? () #3 0x000000000040a1b3 in ?? () #4 0x000000000044d10b in ?? () #5 0x000000000044d585 in ?? () #6 0x000000000044d67d in ?? () #7 0x0000000000407335 in ?? () #8 0x00007ffff7a3e76d in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6 #9 0x0000000000407ee9 in ?? () #10 0x00007fffffffe668 in ?? () #11 0x000000000000001c in ?? () #12 0x0000000000000003 in ?? () #13 0x00007fffffffe8a8 in ?? () #14 0x00007fffffffe8b4 in ?? () #15 0x00007fffffffe8bd in ?? () #16 0x0000000000000000 in ?? () (gdb) ------------------------------- Tail end of an strace: open("/dev/sda1", O_RDONLY|O_DIRECT) = 3 fstat(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 1), ...}) = 0 ioctl(3, BLKGETSIZE64, 0x7fffc589fda0) = 0 ioctl(3, BLKFLSBUF, 0) = 0 lseek(3, 250055622656, SEEK_SET) = 250055622656 read(3, "\374N+\251\0\0\0\0Z\0\0\0\0\0\0\0\0\0\0\0\25X\26H\332\374NN\0\0\0\0"..., 4096) = 4096 fstat(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 1), ...}) = 0 ioctl(3, BLKGETSIZE64, 0x7fffc589fc50) = 0 ioctl(3, BLKFLSBUF, 0) = 0 lseek(3, 250055680000, SEEK_SET) = 250055680000 ioctl(3, BLKSSZGET, 0x7fffc589fc4c) = 0 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1024) = 1024 fstat(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 1), ...}) = 0 ioctl(3, BLKGETSIZE64, 0x7fffc589fc50) = 0 ioctl(3, BLKFLSBUF, 0) = 0 lseek(3, 0, SEEK_SET) = 0 ioctl(3, BLKSSZGET, 0x7fffc589fc4c) = 0 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1024) = 1024 fstat(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 1), ...}) = 0 ioctl(3, BLKGETSIZE64, 0x7fffc589fc50) = 0 ioctl(3, BLKFLSBUF, 0) = 0 lseek(3, 4096, SEEK_SET) = 4096 ioctl(3, BLKSSZGET, 0x7fffc589fc4c) = 0 read(3, "\1\4\0\0\21\4\0\0!\4\0\0\331[\365\37\2\0\4\0\0\0\0\0\0\0\0\0\0\0E,"..., 1024) = 1024 fstat(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 1), ...}) = 0 ioctl(3, BLKGETSIZE64, 0x7fffc589fdb0) = 0 ioctl(3, BLKPG, 0x7fffc589fd10) = -1 EINVAL (Invalid argument) ioctl(3, BLKPG, 0x7fffc589fd20) = -1 EINVAL (Invalid argument) ioctl(3, BLKFLSBUF, 0) = 0 lseek(3, 0, SEEK_SET) = 0 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 512) = 512 ioctl(3, BLKFLSBUF, 0) = 0 lseek(3, 0, SEEK_SET) = 0 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 512) = 512 fstat(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 1), ...}) = 0 ioctl(3, BLKGETSIZE64, 0x7fffc589fda0) = 0 ioctl(3, BLKFLSBUF, 0) = 0 lseek(3, 250055622656, SEEK_SET) = 250055622656 read(3, "\374N+\251\0\0\0\0Z\0\0\0\0\0\0\0\0\0\0\0\25X\26H\332\374NN\0\0\0\0"..., 4096) = 4096 fstat(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 1), ...}) = 0 ioctl(3, BLKGETSIZE64, 0x7fffc589ff80) = 0 ioctl(3, BLKFLSBUF, 0) = 0 lseek(3, 250055622656, SEEK_SET) = 250055622656 read(3, "\374N+\251\0\0\0\0Z\0\0\0\0\0\0\0\0\0\0\0\25X\26H\332\374NN\0\0\0\0"..., 4096) = 4096 close(3) = 0 --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV +++ ------------------------------------- root@yow-lpgnfs-02:/home/paul# cat /proc/mdstat Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] md0 : active raid0 sda1[0] sdb1[1] 488389888 blocks 64k chunks unused devices: <none> root@yow-lpgnfs-02:/home/paul# cat /proc/partitions major minor #blocks name 8 0 293036184 sda 8 1 244195008 sda1 8 2 48837600 sda2 8 16 244198584 sdb 8 17 244195008 sdb1 9 0 488389888 md0 root@yow-lpgnfs-02:/home/paul# [IMPACT] * mdadm --detail --scan segfauls, when used with raw device names * This may result in update-initramfs call failure, preventing users from updating linux kernel and other parts which are included in the initramfs. * The bug is fixed in the upstream bug fix point release [TESTCASE] * Reproduce a segfault by running mdadm --detail --scan with raw device names * Upgrade the package * Notice that running mdadm --detail --scan no longer segfaults [Regression Potential] * Minimal, worst thing that can happen is that the said call still segfaults or has other new problems.
2012-07-25 13:55:17 St├ęphane Graber mdadm (Ubuntu Precise): status Triaged In Progress
2012-07-26 05:07:02 Steve Langasek mdadm (Ubuntu Precise): status In Progress Fix Committed
2012-07-26 05:07:04 Steve Langasek bug added subscriber Ubuntu Stable Release Updates Team
2012-07-26 05:07:07 Steve Langasek bug added subscriber SRU Verification
2012-07-26 05:07:10 Steve Langasek tags patch patch verification-needed
2012-08-13 17:03:46 Steve Langasek tags patch verification-needed patch verification-done
2012-08-13 19:43:06 Steve Langasek removed subscriber Ubuntu Stable Release Updates Team
2012-08-13 19:43:18 Launchpad Janitor mdadm (Ubuntu Precise): status Fix Committed Fix Released
2012-08-21 16:56:43 Launchpad Janitor branch linked lp:~ubuntu-branches/ubuntu/quantal/mdadm/quantal
2012-08-21 16:57:33 Launchpad Janitor branch linked lp:~ubuntu-branches/ubuntu/precise/mdadm/precise-proposed