[Desktop-packages] [Bug 1398859] Re: unmounting NTFS causes mount.ntfs process to get stuck in eternal kernel deep sleep
> Curiously I do not see this when running the tests on my laptop And of course in the minute I write this it does happen again (I ran the test maybe 20 times today, and only just now it happened): [11359.569157] INFO: task systemd-udevd:341 blocked for more than 120 seconds. [11359.569163] Not tainted 4.8.0-29-generic #31~lp1626436ProposedWithTwoPatches [11359.569165] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [11359.569167] systemd-udevd D a31788e77ba8 0 341 1 0x0100 [11359.569173] a31788e77ba8 00ff84c71a68 a3149967 a31788e82ac0 [11359.569177] 88e77db0 a31788e78000 a317893bc070 a317893bc088 [11359.569179] a31788e77be0 a3149cf771c0 a31788e77bc0 85296905 [11359.569182] Call Trace: [11359.569190] [] schedule+0x35/0x80 [11359.569193] [] rwsem_down_read_failed+0x103/0x160 [11359.569197] [] call_rwsem_down_read_failed+0x18/0x30 [11359.569200] [] down_read+0x20/0x40 [11359.569202] [] get_super.part.7+0x95/0xd0 [11359.569204] [] get_super+0x26/0x30 [11359.569208] [] fsync_bdev+0x18/0x60 [11359.569211] [] invalidate_partition+0x24/0x50 [11359.569213] [] rescan_partitions+0x53/0x2b0 [11359.569216] [] ? security_capable+0x48/0x60 [11359.569218] [] __blkdev_reread_part+0x65/0x70 [11359.569220] [] blkdev_reread_part+0x23/0x40 [11359.569222] [] blkdev_ioctl+0x425/0x910 [11359.569225] [] ? __seccomp_filter+0x67/0x260 [11359.569228] [] block_ioctl+0x3d/0x50 [11359.569231] [] do_vfs_ioctl+0xa3/0x610 [11359.569233] [] ? __secure_computing+0x43/0xe0 [11359.569236] [] ? syscall_trace_enter+0xce/0x2f0 [11359.569239] [] SyS_ioctl+0x79/0x90 [11359.569241] [] do_syscall_64+0x5e/0xc0 [11359.569244] [] entry_SYSCALL64_slow_path+0x25/0x25 [11359.569320] INFO: task mount.ntfs:15670 blocked for more than 120 seconds. [11359.569323] Not tainted 4.8.0-29-generic #31~lp1626436ProposedWithTwoPatches [11359.569324] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [11359.569325] mount.ntfs D a314d0d1bd68 0 15670 5268 0x [11359.569329] a314d0d1bd68 00010003 a3178bef9c80 a3149967 [11359.569332] 3d862ecf a314d0d1c000 a3149cf771dc a3149967 [11359.569334] a3149cf771e0 a314d0d1bd80 85296905 [11359.569337] Call Trace: [11359.569340] [] schedule+0x35/0x80 [11359.569342] [] schedule_preempt_disabled+0xe/0x10 [11359.569344] [] __mutex_lock_slowpath+0xb9/0x130 [11359.569347] [] mutex_lock+0x1f/0x30 [11359.569350] [] blkdev_put+0x20/0x110 [11359.569352] [] blkdev_close+0x34/0x70 [11359.569354] [] __fput+0xe7/0x230 [11359.569356] [] fput+0xe/0x10 [11359.569358] [] task_work_run+0x80/0xa0 [11359.569361] [] exit_to_usermode_loop+0xc2/0xd0 [11359.569363] [] syscall_return_slowpath+0x4e/0x60 [11359.569366] [] entry_SYSCALL_64_fastpath+0xa6/0xa8 root 15670 0.0 0.0 16040 460 ?Ds 10:41 0:00 /sbin/mount.ntfs /dev/sdb /run/media/root/553BDB6430706196 -o rw,nodev,nosuid,uid=0,gid=0,uhelper=udisks2 (uninterruptible kernel deep sleep, 'D' state). -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to udisks2 in Ubuntu. https://bugs.launchpad.net/bugs/1398859 Title: unmounting NTFS causes mount.ntfs process to get stuck in eternal kernel deep sleep Status in linux package in Ubuntu: Confirmed Status in udisks2 package in Ubuntu: Fix Released Bug description: Since Mid-November the udisks2 test (https://jenkins.qa.ubuntu.com/job /vivid-adt-udisks2/? shows it happened between Nov 13 and 19) exhibits a regression with NTFS: Unmounting causes the ntfs-3g process to go into kernel deep sleep and umount hangs forever. This can be reproduced with sudo apt install ntfs-3g sudo modprobe scsi_debug # check dmesg which drive this created; e. g. /dev/sda sudo mkntfs -F /dev/sda sudo mount /dev/sda /mnt Now you have a process which is happy: root 12821 0.0 0.0 15272 1948 ?Ss 15:49 0:00 /sbin/mount.ntfs /dev/sda /mnt -o rw You can work with /mnt, edit files, etc. But now unmount: sudo umount /mnt This never returns, and the process goes into uninterruptible kernel sleep ("D"): root 12928 0.0 0.0 15272 1948 ?Ds 15:55 0:00 /sbin/mount.ntfs /dev/sda /mnt -o rw The strace for the umount until the hang is ubuntu@autopkgtest:~$ sudo strace -vvtts1024 -p 12928 Process 12928 attached 15:56:17.938299 read(4, "0\0\0\0\2\0\0\0\2\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0", 135168) = 48 15:56:22.338931 read(4, "(\0\0\0&\0\0\0\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", 135168) = 40 15:56:22.339637 sendto(5, "<29>Dec 3 15:56:22 ntfs-3g[12928]: Unmounting /dev/sda ()\n", 59, MSG_NOSIGNAL, NULL, 0) = 59 15:56:22.340509
[Desktop-packages] [Bug 1398859] Re: unmounting NTFS causes mount.ntfs process to get stuck in eternal kernel deep sleep
I also see this with exfat, so it rather seems to be related to fuse (as both ntfs-3g and exfat use fuse). Curiously I do not see this when running the tests on my laptop or on the Scalingstack cloud infra, just when I run them in QEMU. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to udisks2 in Ubuntu. https://bugs.launchpad.net/bugs/1398859 Title: unmounting NTFS causes mount.ntfs process to get stuck in eternal kernel deep sleep Status in linux package in Ubuntu: Confirmed Status in udisks2 package in Ubuntu: Fix Released Bug description: Since Mid-November the udisks2 test (https://jenkins.qa.ubuntu.com/job /vivid-adt-udisks2/? shows it happened between Nov 13 and 19) exhibits a regression with NTFS: Unmounting causes the ntfs-3g process to go into kernel deep sleep and umount hangs forever. This can be reproduced with sudo apt install ntfs-3g sudo modprobe scsi_debug # check dmesg which drive this created; e. g. /dev/sda sudo mkntfs -F /dev/sda sudo mount /dev/sda /mnt Now you have a process which is happy: root 12821 0.0 0.0 15272 1948 ?Ss 15:49 0:00 /sbin/mount.ntfs /dev/sda /mnt -o rw You can work with /mnt, edit files, etc. But now unmount: sudo umount /mnt This never returns, and the process goes into uninterruptible kernel sleep ("D"): root 12928 0.0 0.0 15272 1948 ?Ds 15:55 0:00 /sbin/mount.ntfs /dev/sda /mnt -o rw The strace for the umount until the hang is ubuntu@autopkgtest:~$ sudo strace -vvtts1024 -p 12928 Process 12928 attached 15:56:17.938299 read(4, "0\0\0\0\2\0\0\0\2\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0", 135168) = 48 15:56:22.338931 read(4, "(\0\0\0&\0\0\0\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", 135168) = 40 15:56:22.339637 sendto(5, "<29>Dec 3 15:56:22 ntfs-3g[12928]: Unmounting /dev/sda ()\n", 59, MSG_NOSIGNAL, NULL, 0) = 59 15:56:22.340509 fsync(3)= 0 15:56:22.341188 fcntl(3, F_SETLK, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0 15:56:22.341759 close(3 ProblemType: Bug DistroRelease: Ubuntu 15.04 Package: ntfs-3g 1:2013.1.13AR.1-2ubuntu3 ProcVersionSignature: Ubuntu 3.16.0-25.33-generic 3.16.7 Uname: Linux 3.16.0-25-generic x86_64 ApportVersion: 2.15-0ubuntu1 Architecture: amd64 CurrentDesktop: Unity Date: Wed Dec 3 15:48:12 2014 EcryptfsInUse: Yes InstallationDate: Installed on 2014-11-20 (13 days ago) InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Alpha amd64 (20141119) SourcePackage: ntfs-3g UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1398859/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1398859] Re: unmounting NTFS causes mount.ntfs process to get stuck in eternal kernel deep sleep
The workaround doesn't work any more, and the test does not actually depend on ntfs-3g any more, so this must rather be fixed in our base images. ** Changed in: udisks2 (Ubuntu) Status: In Progress => Fix Released ** Changed in: udisks2 (Ubuntu) Milestone: ubuntu-16.03 => None -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to udisks2 in Ubuntu. https://bugs.launchpad.net/bugs/1398859 Title: unmounting NTFS causes mount.ntfs process to get stuck in eternal kernel deep sleep Status in linux package in Ubuntu: Confirmed Status in udisks2 package in Ubuntu: Fix Released Bug description: Since Mid-November the udisks2 test (https://jenkins.qa.ubuntu.com/job /vivid-adt-udisks2/? shows it happened between Nov 13 and 19) exhibits a regression with NTFS: Unmounting causes the ntfs-3g process to go into kernel deep sleep and umount hangs forever. This can be reproduced with sudo apt install ntfs-3g sudo modprobe scsi_debug # check dmesg which drive this created; e. g. /dev/sda sudo mkntfs -F /dev/sda sudo mount /dev/sda /mnt Now you have a process which is happy: root 12821 0.0 0.0 15272 1948 ?Ss 15:49 0:00 /sbin/mount.ntfs /dev/sda /mnt -o rw You can work with /mnt, edit files, etc. But now unmount: sudo umount /mnt This never returns, and the process goes into uninterruptible kernel sleep ("D"): root 12928 0.0 0.0 15272 1948 ?Ds 15:55 0:00 /sbin/mount.ntfs /dev/sda /mnt -o rw The strace for the umount until the hang is ubuntu@autopkgtest:~$ sudo strace -vvtts1024 -p 12928 Process 12928 attached 15:56:17.938299 read(4, "0\0\0\0\2\0\0\0\2\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0", 135168) = 48 15:56:22.338931 read(4, "(\0\0\0&\0\0\0\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", 135168) = 40 15:56:22.339637 sendto(5, "<29>Dec 3 15:56:22 ntfs-3g[12928]: Unmounting /dev/sda ()\n", 59, MSG_NOSIGNAL, NULL, 0) = 59 15:56:22.340509 fsync(3)= 0 15:56:22.341188 fcntl(3, F_SETLK, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0 15:56:22.341759 close(3 ProblemType: Bug DistroRelease: Ubuntu 15.04 Package: ntfs-3g 1:2013.1.13AR.1-2ubuntu3 ProcVersionSignature: Ubuntu 3.16.0-25.33-generic 3.16.7 Uname: Linux 3.16.0-25-generic x86_64 ApportVersion: 2.15-0ubuntu1 Architecture: amd64 CurrentDesktop: Unity Date: Wed Dec 3 15:48:12 2014 EcryptfsInUse: Yes InstallationDate: Installed on 2014-11-20 (13 days ago) InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Alpha amd64 (20141119) SourcePackage: ntfs-3g UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1398859/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1398859] Re: unmounting NTFS causes mount.ntfs process to get stuck in eternal kernel deep sleep
The kernel issue still happens (see http://autopkgtest.ubuntu.com/packages/u/udisks2/xenial/amd64/), so the workaround needs to come back. ** Changed in: udisks2 (Ubuntu) Status: Fix Released => In Progress ** Changed in: udisks2 (Ubuntu) Milestone: ubuntu-15.01 => ubuntu-16.03 -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to udisks2 in Ubuntu. https://bugs.launchpad.net/bugs/1398859 Title: unmounting NTFS causes mount.ntfs process to get stuck in eternal kernel deep sleep Status in linux package in Ubuntu: Confirmed Status in udisks2 package in Ubuntu: In Progress Bug description: Since Mid-November the udisks2 test (https://jenkins.qa.ubuntu.com/job /vivid-adt-udisks2/? shows it happened between Nov 13 and 19) exhibits a regression with NTFS: Unmounting causes the ntfs-3g process to go into kernel deep sleep and umount hangs forever. This can be reproduced with sudo apt install ntfs-3g sudo modprobe scsi_debug # check dmesg which drive this created; e. g. /dev/sda sudo mkntfs -F /dev/sda sudo mount /dev/sda /mnt Now you have a process which is happy: root 12821 0.0 0.0 15272 1948 ?Ss 15:49 0:00 /sbin/mount.ntfs /dev/sda /mnt -o rw You can work with /mnt, edit files, etc. But now unmount: sudo umount /mnt This never returns, and the process goes into uninterruptible kernel sleep ("D"): root 12928 0.0 0.0 15272 1948 ?Ds 15:55 0:00 /sbin/mount.ntfs /dev/sda /mnt -o rw The strace for the umount until the hang is ubuntu@autopkgtest:~$ sudo strace -vvtts1024 -p 12928 Process 12928 attached 15:56:17.938299 read(4, "0\0\0\0\2\0\0\0\2\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0", 135168) = 48 15:56:22.338931 read(4, "(\0\0\0&\0\0\0\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", 135168) = 40 15:56:22.339637 sendto(5, "<29>Dec 3 15:56:22 ntfs-3g[12928]: Unmounting /dev/sda ()\n", 59, MSG_NOSIGNAL, NULL, 0) = 59 15:56:22.340509 fsync(3)= 0 15:56:22.341188 fcntl(3, F_SETLK, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0 15:56:22.341759 close(3 ProblemType: Bug DistroRelease: Ubuntu 15.04 Package: ntfs-3g 1:2013.1.13AR.1-2ubuntu3 ProcVersionSignature: Ubuntu 3.16.0-25.33-generic 3.16.7 Uname: Linux 3.16.0-25-generic x86_64 ApportVersion: 2.15-0ubuntu1 Architecture: amd64 CurrentDesktop: Unity Date: Wed Dec 3 15:48:12 2014 EcryptfsInUse: Yes InstallationDate: Installed on 2014-11-20 (13 days ago) InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Alpha amd64 (20141119) SourcePackage: ntfs-3g UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1398859/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1398859] Re: unmounting NTFS causes mount.ntfs process to get stuck in eternal kernel deep sleep
** Changed in: linux (Ubuntu) Importance: Undecided = High -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to udisks2 in Ubuntu. https://bugs.launchpad.net/bugs/1398859 Title: unmounting NTFS causes mount.ntfs process to get stuck in eternal kernel deep sleep Status in linux package in Ubuntu: Confirmed Status in udisks2 package in Ubuntu: Fix Released Bug description: Since Mid-November the udisks2 test (https://jenkins.qa.ubuntu.com/job /vivid-adt-udisks2/? shows it happened between Nov 13 and 19) exhibits a regression with NTFS: Unmounting causes the ntfs-3g process to go into kernel deep sleep and umount hangs forever. This can be reproduced with sudo apt install ntfs-3g sudo modprobe scsi_debug # check dmesg which drive this created; e. g. /dev/sda sudo mkntfs -F /dev/sda sudo mount /dev/sda /mnt Now you have a process which is happy: root 12821 0.0 0.0 15272 1948 ?Ss 15:49 0:00 /sbin/mount.ntfs /dev/sda /mnt -o rw You can work with /mnt, edit files, etc. But now unmount: sudo umount /mnt This never returns, and the process goes into uninterruptible kernel sleep (D): root 12928 0.0 0.0 15272 1948 ?Ds 15:55 0:00 /sbin/mount.ntfs /dev/sda /mnt -o rw The strace for the umount until the hang is ubuntu@autopkgtest:~$ sudo strace -vvtts1024 -p 12928 Process 12928 attached 15:56:17.938299 read(4, 0\0\0\0\2\0\0\0\2\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0, 135168) = 48 15:56:22.338931 read(4, (\0\0\0\0\0\0\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, 135168) = 40 15:56:22.339637 sendto(5, 29Dec 3 15:56:22 ntfs-3g[12928]: Unmounting /dev/sda ()\n, 59, MSG_NOSIGNAL, NULL, 0) = 59 15:56:22.340509 fsync(3)= 0 15:56:22.341188 fcntl(3, F_SETLK, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0 15:56:22.341759 close(3 ProblemType: Bug DistroRelease: Ubuntu 15.04 Package: ntfs-3g 1:2013.1.13AR.1-2ubuntu3 ProcVersionSignature: Ubuntu 3.16.0-25.33-generic 3.16.7 Uname: Linux 3.16.0-25-generic x86_64 ApportVersion: 2.15-0ubuntu1 Architecture: amd64 CurrentDesktop: Unity Date: Wed Dec 3 15:48:12 2014 EcryptfsInUse: Yes InstallationDate: Installed on 2014-11-20 (13 days ago) InstallationMedia: Ubuntu 15.04 Vivid Vervet - Alpha amd64 (20141119) SourcePackage: ntfs-3g UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1398859/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1398859] Re: unmounting NTFS causes mount.ntfs process to get stuck in eternal kernel deep sleep
** Also affects: linux (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to udisks2 in Ubuntu. https://bugs.launchpad.net/bugs/1398859 Title: unmounting NTFS causes mount.ntfs process to get stuck in eternal kernel deep sleep Status in linux package in Ubuntu: New Status in udisks2 package in Ubuntu: Fix Released Bug description: Since Mid-November the udisks2 test (https://jenkins.qa.ubuntu.com/job /vivid-adt-udisks2/? shows it happened between Nov 13 and 19) exhibits a regression with NTFS: Unmounting causes the ntfs-3g process to go into kernel deep sleep and umount hangs forever. This can be reproduced with sudo apt install ntfs-3g sudo modprobe scsi_debug # check dmesg which drive this created; e. g. /dev/sda sudo mkntfs -F /dev/sda sudo mount /dev/sda /mnt Now you have a process which is happy: root 12821 0.0 0.0 15272 1948 ?Ss 15:49 0:00 /sbin/mount.ntfs /dev/sda /mnt -o rw You can work with /mnt, edit files, etc. But now unmount: sudo umount /mnt This never returns, and the process goes into uninterruptible kernel sleep (D): root 12928 0.0 0.0 15272 1948 ?Ds 15:55 0:00 /sbin/mount.ntfs /dev/sda /mnt -o rw The strace for the umount until the hang is ubuntu@autopkgtest:~$ sudo strace -vvtts1024 -p 12928 Process 12928 attached 15:56:17.938299 read(4, 0\0\0\0\2\0\0\0\2\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0, 135168) = 48 15:56:22.338931 read(4, (\0\0\0\0\0\0\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, 135168) = 40 15:56:22.339637 sendto(5, 29Dec 3 15:56:22 ntfs-3g[12928]: Unmounting /dev/sda ()\n, 59, MSG_NOSIGNAL, NULL, 0) = 59 15:56:22.340509 fsync(3)= 0 15:56:22.341188 fcntl(3, F_SETLK, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0 15:56:22.341759 close(3 ProblemType: Bug DistroRelease: Ubuntu 15.04 Package: ntfs-3g 1:2013.1.13AR.1-2ubuntu3 ProcVersionSignature: Ubuntu 3.16.0-25.33-generic 3.16.7 Uname: Linux 3.16.0-25-generic x86_64 ApportVersion: 2.15-0ubuntu1 Architecture: amd64 CurrentDesktop: Unity Date: Wed Dec 3 15:48:12 2014 EcryptfsInUse: Yes InstallationDate: Installed on 2014-11-20 (13 days ago) InstallationMedia: Ubuntu 15.04 Vivid Vervet - Alpha amd64 (20141119) SourcePackage: ntfs-3g UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1398859/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1398859] Re: unmounting NTFS causes mount.ntfs process to get stuck in eternal kernel deep sleep
** Changed in: linux (Ubuntu) Status: Incomplete = Confirmed ** Tags added: bot-stop-nagging -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to udisks2 in Ubuntu. https://bugs.launchpad.net/bugs/1398859 Title: unmounting NTFS causes mount.ntfs process to get stuck in eternal kernel deep sleep Status in linux package in Ubuntu: Confirmed Status in udisks2 package in Ubuntu: Fix Released Bug description: Since Mid-November the udisks2 test (https://jenkins.qa.ubuntu.com/job /vivid-adt-udisks2/? shows it happened between Nov 13 and 19) exhibits a regression with NTFS: Unmounting causes the ntfs-3g process to go into kernel deep sleep and umount hangs forever. This can be reproduced with sudo apt install ntfs-3g sudo modprobe scsi_debug # check dmesg which drive this created; e. g. /dev/sda sudo mkntfs -F /dev/sda sudo mount /dev/sda /mnt Now you have a process which is happy: root 12821 0.0 0.0 15272 1948 ?Ss 15:49 0:00 /sbin/mount.ntfs /dev/sda /mnt -o rw You can work with /mnt, edit files, etc. But now unmount: sudo umount /mnt This never returns, and the process goes into uninterruptible kernel sleep (D): root 12928 0.0 0.0 15272 1948 ?Ds 15:55 0:00 /sbin/mount.ntfs /dev/sda /mnt -o rw The strace for the umount until the hang is ubuntu@autopkgtest:~$ sudo strace -vvtts1024 -p 12928 Process 12928 attached 15:56:17.938299 read(4, 0\0\0\0\2\0\0\0\2\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0, 135168) = 48 15:56:22.338931 read(4, (\0\0\0\0\0\0\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, 135168) = 40 15:56:22.339637 sendto(5, 29Dec 3 15:56:22 ntfs-3g[12928]: Unmounting /dev/sda ()\n, 59, MSG_NOSIGNAL, NULL, 0) = 59 15:56:22.340509 fsync(3)= 0 15:56:22.341188 fcntl(3, F_SETLK, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0 15:56:22.341759 close(3 ProblemType: Bug DistroRelease: Ubuntu 15.04 Package: ntfs-3g 1:2013.1.13AR.1-2ubuntu3 ProcVersionSignature: Ubuntu 3.16.0-25.33-generic 3.16.7 Uname: Linux 3.16.0-25-generic x86_64 ApportVersion: 2.15-0ubuntu1 Architecture: amd64 CurrentDesktop: Unity Date: Wed Dec 3 15:48:12 2014 EcryptfsInUse: Yes InstallationDate: Installed on 2014-11-20 (13 days ago) InstallationMedia: Ubuntu 15.04 Vivid Vervet - Alpha amd64 (20141119) SourcePackage: ntfs-3g UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1398859/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1398859] Re: unmounting NTFS causes mount.ntfs process to get stuck in eternal kernel deep sleep
This bug was fixed in the package udisks2 - 2.1.4-1git2 --- udisks2 (2.1.4-1git2) vivid; urgency=medium * debian/tests/upstream-system: Work around eternal udev BLKRRPART ioctl hang with ntfs-3g (LP: #1398859) -- Martin Pitt martin.p...@ubuntu.com Fri, 02 Jan 2015 17:20:05 +0100 ** Changed in: udisks2 (Ubuntu) Status: Fix Committed = Fix Released -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to udisks2 in Ubuntu. https://bugs.launchpad.net/bugs/1398859 Title: unmounting NTFS causes mount.ntfs process to get stuck in eternal kernel deep sleep Status in udisks2 package in Ubuntu: Fix Released Bug description: Since Mid-November the udisks2 test (https://jenkins.qa.ubuntu.com/job /vivid-adt-udisks2/? shows it happened between Nov 13 and 19) exhibits a regression with NTFS: Unmounting causes the ntfs-3g process to go into kernel deep sleep and umount hangs forever. This can be reproduced with sudo apt install ntfs-3g sudo modprobe scsi_debug # check dmesg which drive this created; e. g. /dev/sda sudo mkntfs -F /dev/sda sudo mount /dev/sda /mnt Now you have a process which is happy: root 12821 0.0 0.0 15272 1948 ?Ss 15:49 0:00 /sbin/mount.ntfs /dev/sda /mnt -o rw You can work with /mnt, edit files, etc. But now unmount: sudo umount /mnt This never returns, and the process goes into uninterruptible kernel sleep (D): root 12928 0.0 0.0 15272 1948 ?Ds 15:55 0:00 /sbin/mount.ntfs /dev/sda /mnt -o rw The strace for the umount until the hang is ubuntu@autopkgtest:~$ sudo strace -vvtts1024 -p 12928 Process 12928 attached 15:56:17.938299 read(4, 0\0\0\0\2\0\0\0\2\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0, 135168) = 48 15:56:22.338931 read(4, (\0\0\0\0\0\0\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, 135168) = 40 15:56:22.339637 sendto(5, 29Dec 3 15:56:22 ntfs-3g[12928]: Unmounting /dev/sda ()\n, 59, MSG_NOSIGNAL, NULL, 0) = 59 15:56:22.340509 fsync(3)= 0 15:56:22.341188 fcntl(3, F_SETLK, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0 15:56:22.341759 close(3 ProblemType: Bug DistroRelease: Ubuntu 15.04 Package: ntfs-3g 1:2013.1.13AR.1-2ubuntu3 ProcVersionSignature: Ubuntu 3.16.0-25.33-generic 3.16.7 Uname: Linux 3.16.0-25-generic x86_64 ApportVersion: 2.15-0ubuntu1 Architecture: amd64 CurrentDesktop: Unity Date: Wed Dec 3 15:48:12 2014 EcryptfsInUse: Yes InstallationDate: Installed on 2014-11-20 (13 days ago) InstallationMedia: Ubuntu 15.04 Vivid Vervet - Alpha amd64 (20141119) SourcePackage: ntfs-3g UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/udisks2/+bug/1398859/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1398859] Re: unmounting NTFS causes mount.ntfs process to get stuck in eternal kernel deep sleep
strace of udevd while it's hanging: 10134 open(/dev/sda, O_RDONLY|O_NONBLOCK|O_NOFOLLOW|O_CLOEXEC) = 11 10134 flock(11, LOCK_EX|LOCK_NB)= 0 10134 ioctl(11, BLKRRPART, 0 Corresponding kernel trace: [ 720.228114] INFO: task systemd-udevd:10134 blocked for more than 120 seconds. [ 720.230656] Not tainted 3.16.0-28-generic #38-Ubuntu [ 720.232666] echo 0 /proc/sys/kernel/hung_task_timeout_secs disables this message. [ 720.236283] systemd-udevd D 88007fc13840 0 10134 1 0x0007 [ 720.236293] 88007b76fcd0 0086 880037641e90 00013840 [ 720.236298] 88007b76ffd8 00013840 880037641e90 880037641e90 [ 720.236302] 8800371c5068 8800371c5080 88007be723c0 [ 720.236306] Call Trace: [ 720.236320] [81785049] schedule+0x29/0x70 [ 720.236326] [817888b5] rwsem_down_read_failed+0xf5/0x190 [ 720.236334] [811fc743] ? find_inode+0xa3/0xb0 [ 720.236341] [813a9284] call_rwsem_down_read_failed+0x14/0x30 [ 720.236346] [817881e0] ? down_read+0x20/0x30 [ 720.236351] [811e3db7] get_super+0x97/0xe0 [ 720.236357] [812197a4] fsync_bdev+0x14/0x60 [ 720.236363] [8137b604] invalidate_partition+0x24/0x50 [ 720.236369] [8137e3cb] drop_partitions.isra.12+0x1b/0x40 [ 720.236373] [8137e88e] rescan_partitions+0x3e/0x2a0 [ 720.236377] [8137a4dc] blkdev_ioctl+0x71c/0x7c0 [ 720.236382] [81218e3d] block_ioctl+0x3d/0x50 [ 720.236386] [811f5138] do_vfs_ioctl+0x2c8/0x4a0 [ 720.236393] [81082f30] ? ptrace_notify+0x60/0x110 [ 720.236397] [811f5391] SyS_ioctl+0x81/0xa0 [ 720.236402] [8178a0ff] tracesys+0xe1/0xe6 ** Attachment added: udevd trace for umount https://bugs.launchpad.net/ubuntu/+source/udisks2/+bug/1398859/+attachment/4291284/+files/udevd.trace -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to udisks2 in Ubuntu. https://bugs.launchpad.net/bugs/1398859 Title: unmounting NTFS causes mount.ntfs process to get stuck in eternal kernel deep sleep Status in udisks2 package in Ubuntu: In Progress Bug description: Since Mid-November the udisks2 test (https://jenkins.qa.ubuntu.com/job /vivid-adt-udisks2/? shows it happened between Nov 13 and 19) exhibits a regression with NTFS: Unmounting causes the ntfs-3g process to go into kernel deep sleep and umount hangs forever. This can be reproduced with sudo apt install ntfs-3g sudo modprobe scsi_debug # check dmesg which drive this created; e. g. /dev/sda sudo mkntfs -F /dev/sda sudo mount /dev/sda /mnt Now you have a process which is happy: root 12821 0.0 0.0 15272 1948 ?Ss 15:49 0:00 /sbin/mount.ntfs /dev/sda /mnt -o rw You can work with /mnt, edit files, etc. But now unmount: sudo umount /mnt This never returns, and the process goes into uninterruptible kernel sleep (D): root 12928 0.0 0.0 15272 1948 ?Ds 15:55 0:00 /sbin/mount.ntfs /dev/sda /mnt -o rw The strace for the umount until the hang is ubuntu@autopkgtest:~$ sudo strace -vvtts1024 -p 12928 Process 12928 attached 15:56:17.938299 read(4, 0\0\0\0\2\0\0\0\2\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0, 135168) = 48 15:56:22.338931 read(4, (\0\0\0\0\0\0\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, 135168) = 40 15:56:22.339637 sendto(5, 29Dec 3 15:56:22 ntfs-3g[12928]: Unmounting /dev/sda ()\n, 59, MSG_NOSIGNAL, NULL, 0) = 59 15:56:22.340509 fsync(3)= 0 15:56:22.341188 fcntl(3, F_SETLK, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0 15:56:22.341759 close(3 ProblemType: Bug DistroRelease: Ubuntu 15.04 Package: ntfs-3g 1:2013.1.13AR.1-2ubuntu3 ProcVersionSignature: Ubuntu 3.16.0-25.33-generic 3.16.7 Uname: Linux 3.16.0-25-generic x86_64 ApportVersion: 2.15-0ubuntu1 Architecture: amd64 CurrentDesktop: Unity Date: Wed Dec 3 15:48:12 2014 EcryptfsInUse: Yes InstallationDate: Installed on 2014-11-20 (13 days ago) InstallationMedia: Ubuntu 15.04 Vivid Vervet - Alpha amd64 (20141119) SourcePackage: ntfs-3g UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/udisks2/+bug/1398859/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1398859] Re: unmounting NTFS causes mount.ntfs process to get stuck in eternal kernel deep sleep
** Changed in: udisks2 (Ubuntu) Status: In Progress = Fix Committed -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to udisks2 in Ubuntu. https://bugs.launchpad.net/bugs/1398859 Title: unmounting NTFS causes mount.ntfs process to get stuck in eternal kernel deep sleep Status in udisks2 package in Ubuntu: Fix Committed Bug description: Since Mid-November the udisks2 test (https://jenkins.qa.ubuntu.com/job /vivid-adt-udisks2/? shows it happened between Nov 13 and 19) exhibits a regression with NTFS: Unmounting causes the ntfs-3g process to go into kernel deep sleep and umount hangs forever. This can be reproduced with sudo apt install ntfs-3g sudo modprobe scsi_debug # check dmesg which drive this created; e. g. /dev/sda sudo mkntfs -F /dev/sda sudo mount /dev/sda /mnt Now you have a process which is happy: root 12821 0.0 0.0 15272 1948 ?Ss 15:49 0:00 /sbin/mount.ntfs /dev/sda /mnt -o rw You can work with /mnt, edit files, etc. But now unmount: sudo umount /mnt This never returns, and the process goes into uninterruptible kernel sleep (D): root 12928 0.0 0.0 15272 1948 ?Ds 15:55 0:00 /sbin/mount.ntfs /dev/sda /mnt -o rw The strace for the umount until the hang is ubuntu@autopkgtest:~$ sudo strace -vvtts1024 -p 12928 Process 12928 attached 15:56:17.938299 read(4, 0\0\0\0\2\0\0\0\2\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0, 135168) = 48 15:56:22.338931 read(4, (\0\0\0\0\0\0\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, 135168) = 40 15:56:22.339637 sendto(5, 29Dec 3 15:56:22 ntfs-3g[12928]: Unmounting /dev/sda ()\n, 59, MSG_NOSIGNAL, NULL, 0) = 59 15:56:22.340509 fsync(3)= 0 15:56:22.341188 fcntl(3, F_SETLK, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0 15:56:22.341759 close(3 ProblemType: Bug DistroRelease: Ubuntu 15.04 Package: ntfs-3g 1:2013.1.13AR.1-2ubuntu3 ProcVersionSignature: Ubuntu 3.16.0-25.33-generic 3.16.7 Uname: Linux 3.16.0-25-generic x86_64 ApportVersion: 2.15-0ubuntu1 Architecture: amd64 CurrentDesktop: Unity Date: Wed Dec 3 15:48:12 2014 EcryptfsInUse: Yes InstallationDate: Installed on 2014-11-20 (13 days ago) InstallationMedia: Ubuntu 15.04 Vivid Vervet - Alpha amd64 (20141119) SourcePackage: ntfs-3g UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/udisks2/+bug/1398859/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1398859] Re: unmounting NTFS causes mount.ntfs process to get stuck in eternal kernel deep sleep
** Changed in: udisks2 (Ubuntu) Status: Fix Committed = In Progress -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to udisks2 in Ubuntu. https://bugs.launchpad.net/bugs/1398859 Title: unmounting NTFS causes mount.ntfs process to get stuck in eternal kernel deep sleep Status in udisks2 package in Ubuntu: In Progress Bug description: Since Mid-November the udisks2 test (https://jenkins.qa.ubuntu.com/job /vivid-adt-udisks2/? shows it happened between Nov 13 and 19) exhibits a regression with NTFS: Unmounting causes the ntfs-3g process to go into kernel deep sleep and umount hangs forever. This can be reproduced with sudo apt install ntfs-3g sudo modprobe scsi_debug # check dmesg which drive this created; e. g. /dev/sda sudo mkntfs -F /dev/sda sudo mount /dev/sda /mnt Now you have a process which is happy: root 12821 0.0 0.0 15272 1948 ?Ss 15:49 0:00 /sbin/mount.ntfs /dev/sda /mnt -o rw You can work with /mnt, edit files, etc. But now unmount: sudo umount /mnt This never returns, and the process goes into uninterruptible kernel sleep (D): root 12928 0.0 0.0 15272 1948 ?Ds 15:55 0:00 /sbin/mount.ntfs /dev/sda /mnt -o rw The strace for the umount until the hang is ubuntu@autopkgtest:~$ sudo strace -vvtts1024 -p 12928 Process 12928 attached 15:56:17.938299 read(4, 0\0\0\0\2\0\0\0\2\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0, 135168) = 48 15:56:22.338931 read(4, (\0\0\0\0\0\0\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, 135168) = 40 15:56:22.339637 sendto(5, 29Dec 3 15:56:22 ntfs-3g[12928]: Unmounting /dev/sda ()\n, 59, MSG_NOSIGNAL, NULL, 0) = 59 15:56:22.340509 fsync(3)= 0 15:56:22.341188 fcntl(3, F_SETLK, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0 15:56:22.341759 close(3 ProblemType: Bug DistroRelease: Ubuntu 15.04 Package: ntfs-3g 1:2013.1.13AR.1-2ubuntu3 ProcVersionSignature: Ubuntu 3.16.0-25.33-generic 3.16.7 Uname: Linux 3.16.0-25-generic x86_64 ApportVersion: 2.15-0ubuntu1 Architecture: amd64 CurrentDesktop: Unity Date: Wed Dec 3 15:48:12 2014 EcryptfsInUse: Yes InstallationDate: Installed on 2014-11-20 (13 days ago) InstallationMedia: Ubuntu 15.04 Vivid Vervet - Alpha amd64 (20141119) SourcePackage: ntfs-3g UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/udisks2/+bug/1398859/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1398859] Re: unmounting NTFS causes mount.ntfs process to get stuck in eternal kernel deep sleep
A stack trace of the blocked process might help, maybe magic-sysrq-w when it happens? -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to udisks2 in Ubuntu. https://bugs.launchpad.net/bugs/1398859 Title: unmounting NTFS causes mount.ntfs process to get stuck in eternal kernel deep sleep Status in udisks2 package in Ubuntu: Fix Committed Bug description: Since Mid-November the udisks2 test (https://jenkins.qa.ubuntu.com/job /vivid-adt-udisks2/? shows it happened between Nov 13 and 19) exhibits a regression with NTFS: Unmounting causes the ntfs-3g process to go into kernel deep sleep and umount hangs forever. This can be reproduced with sudo apt install ntfs-3g sudo modprobe scsi_debug # check dmesg which drive this created; e. g. /dev/sda sudo mkntfs -F /dev/sda sudo mount /dev/sda /mnt Now you have a process which is happy: root 12821 0.0 0.0 15272 1948 ?Ss 15:49 0:00 /sbin/mount.ntfs /dev/sda /mnt -o rw You can work with /mnt, edit files, etc. But now unmount: sudo umount /mnt This never returns, and the process goes into uninterruptible kernel sleep (D): root 12928 0.0 0.0 15272 1948 ?Ds 15:55 0:00 /sbin/mount.ntfs /dev/sda /mnt -o rw The strace for the umount until the hang is ubuntu@autopkgtest:~$ sudo strace -vvtts1024 -p 12928 Process 12928 attached 15:56:17.938299 read(4, 0\0\0\0\2\0\0\0\2\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0, 135168) = 48 15:56:22.338931 read(4, (\0\0\0\0\0\0\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, 135168) = 40 15:56:22.339637 sendto(5, 29Dec 3 15:56:22 ntfs-3g[12928]: Unmounting /dev/sda ()\n, 59, MSG_NOSIGNAL, NULL, 0) = 59 15:56:22.340509 fsync(3)= 0 15:56:22.341188 fcntl(3, F_SETLK, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0 15:56:22.341759 close(3 ProblemType: Bug DistroRelease: Ubuntu 15.04 Package: ntfs-3g 1:2013.1.13AR.1-2ubuntu3 ProcVersionSignature: Ubuntu 3.16.0-25.33-generic 3.16.7 Uname: Linux 3.16.0-25-generic x86_64 ApportVersion: 2.15-0ubuntu1 Architecture: amd64 CurrentDesktop: Unity Date: Wed Dec 3 15:48:12 2014 EcryptfsInUse: Yes InstallationDate: Installed on 2014-11-20 (13 days ago) InstallationMedia: Ubuntu 15.04 Vivid Vervet - Alpha amd64 (20141119) SourcePackage: ntfs-3g UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/udisks2/+bug/1398859/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1398859] Re: unmounting NTFS causes mount.ntfs process to get stuck in eternal kernel deep sleep
I'll fix this in udisks2's test suite instead. ** Package changed: systemd (Ubuntu) = udisks2 (Ubuntu) -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to udisks2 in Ubuntu. https://bugs.launchpad.net/bugs/1398859 Title: unmounting NTFS causes mount.ntfs process to get stuck in eternal kernel deep sleep Status in udisks2 package in Ubuntu: In Progress Bug description: Since Mid-November the udisks2 test (https://jenkins.qa.ubuntu.com/job /vivid-adt-udisks2/? shows it happened between Nov 13 and 19) exhibits a regression with NTFS: Unmounting causes the ntfs-3g process to go into kernel deep sleep and umount hangs forever. This can be reproduced with sudo apt install ntfs-3g sudo modprobe scsi_debug # check dmesg which drive this created; e. g. /dev/sda sudo mkntfs -F /dev/sda sudo mount /dev/sda /mnt Now you have a process which is happy: root 12821 0.0 0.0 15272 1948 ?Ss 15:49 0:00 /sbin/mount.ntfs /dev/sda /mnt -o rw You can work with /mnt, edit files, etc. But now unmount: sudo umount /mnt This never returns, and the process goes into uninterruptible kernel sleep (D): root 12928 0.0 0.0 15272 1948 ?Ds 15:55 0:00 /sbin/mount.ntfs /dev/sda /mnt -o rw The strace for the umount until the hang is ubuntu@autopkgtest:~$ sudo strace -vvtts1024 -p 12928 Process 12928 attached 15:56:17.938299 read(4, 0\0\0\0\2\0\0\0\2\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0, 135168) = 48 15:56:22.338931 read(4, (\0\0\0\0\0\0\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, 135168) = 40 15:56:22.339637 sendto(5, 29Dec 3 15:56:22 ntfs-3g[12928]: Unmounting /dev/sda ()\n, 59, MSG_NOSIGNAL, NULL, 0) = 59 15:56:22.340509 fsync(3)= 0 15:56:22.341188 fcntl(3, F_SETLK, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0 15:56:22.341759 close(3 ProblemType: Bug DistroRelease: Ubuntu 15.04 Package: ntfs-3g 1:2013.1.13AR.1-2ubuntu3 ProcVersionSignature: Ubuntu 3.16.0-25.33-generic 3.16.7 Uname: Linux 3.16.0-25-generic x86_64 ApportVersion: 2.15-0ubuntu1 Architecture: amd64 CurrentDesktop: Unity Date: Wed Dec 3 15:48:12 2014 EcryptfsInUse: Yes InstallationDate: Installed on 2014-11-20 (13 days ago) InstallationMedia: Ubuntu 15.04 Vivid Vervet - Alpha amd64 (20141119) SourcePackage: ntfs-3g UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/udisks2/+bug/1398859/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1398859] Re: unmounting NTFS causes mount.ntfs process to get stuck in eternal kernel deep sleep
** Changed in: udisks2 (Ubuntu) Status: In Progress = Fix Committed -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to udisks2 in Ubuntu. https://bugs.launchpad.net/bugs/1398859 Title: unmounting NTFS causes mount.ntfs process to get stuck in eternal kernel deep sleep Status in udisks2 package in Ubuntu: Fix Committed Bug description: Since Mid-November the udisks2 test (https://jenkins.qa.ubuntu.com/job /vivid-adt-udisks2/? shows it happened between Nov 13 and 19) exhibits a regression with NTFS: Unmounting causes the ntfs-3g process to go into kernel deep sleep and umount hangs forever. This can be reproduced with sudo apt install ntfs-3g sudo modprobe scsi_debug # check dmesg which drive this created; e. g. /dev/sda sudo mkntfs -F /dev/sda sudo mount /dev/sda /mnt Now you have a process which is happy: root 12821 0.0 0.0 15272 1948 ?Ss 15:49 0:00 /sbin/mount.ntfs /dev/sda /mnt -o rw You can work with /mnt, edit files, etc. But now unmount: sudo umount /mnt This never returns, and the process goes into uninterruptible kernel sleep (D): root 12928 0.0 0.0 15272 1948 ?Ds 15:55 0:00 /sbin/mount.ntfs /dev/sda /mnt -o rw The strace for the umount until the hang is ubuntu@autopkgtest:~$ sudo strace -vvtts1024 -p 12928 Process 12928 attached 15:56:17.938299 read(4, 0\0\0\0\2\0\0\0\2\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0, 135168) = 48 15:56:22.338931 read(4, (\0\0\0\0\0\0\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, 135168) = 40 15:56:22.339637 sendto(5, 29Dec 3 15:56:22 ntfs-3g[12928]: Unmounting /dev/sda ()\n, 59, MSG_NOSIGNAL, NULL, 0) = 59 15:56:22.340509 fsync(3)= 0 15:56:22.341188 fcntl(3, F_SETLK, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0 15:56:22.341759 close(3 ProblemType: Bug DistroRelease: Ubuntu 15.04 Package: ntfs-3g 1:2013.1.13AR.1-2ubuntu3 ProcVersionSignature: Ubuntu 3.16.0-25.33-generic 3.16.7 Uname: Linux 3.16.0-25-generic x86_64 ApportVersion: 2.15-0ubuntu1 Architecture: amd64 CurrentDesktop: Unity Date: Wed Dec 3 15:48:12 2014 EcryptfsInUse: Yes InstallationDate: Installed on 2014-11-20 (13 days ago) InstallationMedia: Ubuntu 15.04 Vivid Vervet - Alpha amd64 (20141119) SourcePackage: ntfs-3g UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/udisks2/+bug/1398859/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1398859] Re: unmounting NTFS causes mount.ntfs process to get stuck in eternal kernel deep sleep
Isn't there still an underlying kernel bug that should be fixed here? -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to udisks2 in Ubuntu. https://bugs.launchpad.net/bugs/1398859 Title: unmounting NTFS causes mount.ntfs process to get stuck in eternal kernel deep sleep Status in udisks2 package in Ubuntu: Fix Committed Bug description: Since Mid-November the udisks2 test (https://jenkins.qa.ubuntu.com/job /vivid-adt-udisks2/? shows it happened between Nov 13 and 19) exhibits a regression with NTFS: Unmounting causes the ntfs-3g process to go into kernel deep sleep and umount hangs forever. This can be reproduced with sudo apt install ntfs-3g sudo modprobe scsi_debug # check dmesg which drive this created; e. g. /dev/sda sudo mkntfs -F /dev/sda sudo mount /dev/sda /mnt Now you have a process which is happy: root 12821 0.0 0.0 15272 1948 ?Ss 15:49 0:00 /sbin/mount.ntfs /dev/sda /mnt -o rw You can work with /mnt, edit files, etc. But now unmount: sudo umount /mnt This never returns, and the process goes into uninterruptible kernel sleep (D): root 12928 0.0 0.0 15272 1948 ?Ds 15:55 0:00 /sbin/mount.ntfs /dev/sda /mnt -o rw The strace for the umount until the hang is ubuntu@autopkgtest:~$ sudo strace -vvtts1024 -p 12928 Process 12928 attached 15:56:17.938299 read(4, 0\0\0\0\2\0\0\0\2\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0, 135168) = 48 15:56:22.338931 read(4, (\0\0\0\0\0\0\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, 135168) = 40 15:56:22.339637 sendto(5, 29Dec 3 15:56:22 ntfs-3g[12928]: Unmounting /dev/sda ()\n, 59, MSG_NOSIGNAL, NULL, 0) = 59 15:56:22.340509 fsync(3)= 0 15:56:22.341188 fcntl(3, F_SETLK, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0 15:56:22.341759 close(3 ProblemType: Bug DistroRelease: Ubuntu 15.04 Package: ntfs-3g 1:2013.1.13AR.1-2ubuntu3 ProcVersionSignature: Ubuntu 3.16.0-25.33-generic 3.16.7 Uname: Linux 3.16.0-25-generic x86_64 ApportVersion: 2.15-0ubuntu1 Architecture: amd64 CurrentDesktop: Unity Date: Wed Dec 3 15:48:12 2014 EcryptfsInUse: Yes InstallationDate: Installed on 2014-11-20 (13 days ago) InstallationMedia: Ubuntu 15.04 Vivid Vervet - Alpha amd64 (20141119) SourcePackage: ntfs-3g UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/udisks2/+bug/1398859/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1398859] Re: unmounting NTFS causes mount.ntfs process to get stuck in eternal kernel deep sleep
Quite possibly,but at this point I don't quite understand this any more, at least not yet with the level of debugging that I did so far. :-( -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to udisks2 in Ubuntu. https://bugs.launchpad.net/bugs/1398859 Title: unmounting NTFS causes mount.ntfs process to get stuck in eternal kernel deep sleep Status in udisks2 package in Ubuntu: Fix Committed Bug description: Since Mid-November the udisks2 test (https://jenkins.qa.ubuntu.com/job /vivid-adt-udisks2/? shows it happened between Nov 13 and 19) exhibits a regression with NTFS: Unmounting causes the ntfs-3g process to go into kernel deep sleep and umount hangs forever. This can be reproduced with sudo apt install ntfs-3g sudo modprobe scsi_debug # check dmesg which drive this created; e. g. /dev/sda sudo mkntfs -F /dev/sda sudo mount /dev/sda /mnt Now you have a process which is happy: root 12821 0.0 0.0 15272 1948 ?Ss 15:49 0:00 /sbin/mount.ntfs /dev/sda /mnt -o rw You can work with /mnt, edit files, etc. But now unmount: sudo umount /mnt This never returns, and the process goes into uninterruptible kernel sleep (D): root 12928 0.0 0.0 15272 1948 ?Ds 15:55 0:00 /sbin/mount.ntfs /dev/sda /mnt -o rw The strace for the umount until the hang is ubuntu@autopkgtest:~$ sudo strace -vvtts1024 -p 12928 Process 12928 attached 15:56:17.938299 read(4, 0\0\0\0\2\0\0\0\2\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0, 135168) = 48 15:56:22.338931 read(4, (\0\0\0\0\0\0\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, 135168) = 40 15:56:22.339637 sendto(5, 29Dec 3 15:56:22 ntfs-3g[12928]: Unmounting /dev/sda ()\n, 59, MSG_NOSIGNAL, NULL, 0) = 59 15:56:22.340509 fsync(3)= 0 15:56:22.341188 fcntl(3, F_SETLK, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0 15:56:22.341759 close(3 ProblemType: Bug DistroRelease: Ubuntu 15.04 Package: ntfs-3g 1:2013.1.13AR.1-2ubuntu3 ProcVersionSignature: Ubuntu 3.16.0-25.33-generic 3.16.7 Uname: Linux 3.16.0-25-generic x86_64 ApportVersion: 2.15-0ubuntu1 Architecture: amd64 CurrentDesktop: Unity Date: Wed Dec 3 15:48:12 2014 EcryptfsInUse: Yes InstallationDate: Installed on 2014-11-20 (13 days ago) InstallationMedia: Ubuntu 15.04 Vivid Vervet - Alpha amd64 (20141119) SourcePackage: ntfs-3g UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/udisks2/+bug/1398859/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp