| Summary: | sys-auth/pam_mount-2.13-r1 mount.crypt helper broken | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Torben Kristensen <tokr> |
| Component: | [OLD] Library | Assignee: | Hanno Böck <hanno> |
| Status: | RESOLVED NEEDINFO | ||
| Severity: | normal | CC: | mattst88 |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | AMD64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
Steps to reproduce:
Issue 1:
------------
# lsblk -f /dev/sdc
NAME FSTYPE LABEL UUID MOUNTPOINT
sdc crypto_LUKS a0469a35-8700-47a4-89a0-78a5dca68631
# mount /dev/sdc /mnt
Password:
# cat /var/run/cmtab
/mnt /dev/sdc - /dev/mapper/_dev_sdc
# cd /mnt
# umount /dev/sdc
umount: /mnt: target is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
umount /mnt failed with run_sync status 3
# cat /var/run/cmtab
# cd /
# umount /dev/sdc
umount: /dev/sdc: not mounted
# grep /mnt /proc/mounts
/dev/mapper/_dev_sdc /mnt ext4 rw,relatime,data=ordered 0 0
Issue 2:
---------------
# mount -V
mount from util-linux 2.22.2 (libmount 2.22.0: debug)
# grep /dev/sdc /etc/fstab
/dev/sdc /mnt auto noauto 0 0
# mount /dev/sdc
Password:
# mount -o remount /dev/sdc &
[1] 359
# ps ww | grep mount
359 pts/0 S 0:00 mount -o remount /dev/sdc
360 pts/0 S 0:00 /sbin/mount.crypto_LUKS /dev/sdc /mnt -o rw,remount
361 pts/0 S 0:00 mount -o rw,remount /mnt
362 pts/0 S 0:00 /sbin/mount.crypto_LUKS /dev/sdc /mnt -o rw,remount
363 pts/0 S 0:00 mount -o rw,remount /mnt
364 pts/0 S 0:00 /sbin/mount.crypto_LUKS /dev/sdc /mnt -o rw,remount
365 pts/0 S 0:00 mount -o rw,remount /mnt
366 pts/0 S 0:00 /sbin/mount.crypto_LUKS /dev/sdc /mnt -o rw,remount
367 pts/0 S 0:00 mount -o rw,remount /mnt
368 pts/0 S 0:00 /sbin/mount.crypto_LUKS /dev/sdc /mnt -o rw,remount
369 pts/0 S 0:00 mount -o rw,remount /mnt
370 pts/0 S 0:00 /sbin/mount.crypto_LUKS /dev/sdc /mnt -o rw,remount
< snipped >
2347 pts/0 S 0:00 mount -o rw,remount /mnt
2348 pts/0 S 0:00 /sbin/mount.crypto_LUKS /dev/sdc /mnt -o rw,remount
2350 pts/0 S+ 0:00 grep --colour=auto mount
2351 pts/0 S 0:00 mount -o rw,remount /mnt
2352 pts/0 S 0:00 /sbin/mount.crypto_LUKS /dev/sdc /mnt -o rw,remount
2353 pts/0 S 0:00 mount -o rw,remount /mnt
2354 pts/0 S 0:00 /sbin/mount.crypto_LUKS /dev/sdc /mnt -o rw,remount
2355 pts/0 S 0:00 mount -o rw,remount /mnt
2356 pts/0 S 0:00 /sbin/mount.crypto_LUKS /dev/sdc /mnt -o rw,remount
2357 pts/0 S 0:00 mount -o rw,remount /mnt
2358 pts/0 S 0:00 /sbin/mount.crypto_LUKS /dev/sdc /mnt -o rw,remount
2359 pts/0 S 0:00 mount -o rw,remount /mnt
2360 pts/0 S 0:00 /sbin/mount.crypto_LUKS /dev/sdc /mnt -o rw,remount
2361 pts/0 S 0:00 mount -o rw,remount /mnt
2362 pts/0 S 0:00 /sbin/mount.crypto_LUKS /dev/sdc /mnt -o rw,remount
2363 pts/0 S 0:00 mount -o rw,remount /mnt
2364 pts/0 S 0:00 /sbin/mount.crypto_LUKS /dev/sdc /mnt -o rw,remount
2365 pts/0 S 0:00 mount -o rw,remount /mnt
2366 pts/0 S 0:00 /sbin/mount.crypto_LUKS /dev/sdc /mnt -o rw,remount
2367 pts/0 S 0:00 mount -o rw,remount /mnt
2368 pts/0 S 0:00 /sbin/mount.crypto_LUKS /dev/sdc /mnt -o rw,remount
2369 pts/0 S 0:00 mount -o rw,remount /mnt
2370 pts/0 S 0:00 /sbin/mount.crypto_LUKS /dev/sdc /mnt -o rw,remount
2371 pts/0 S 0:00 mount -o rw,remount /mnt
2372 pts/0 S 0:00 /sbin/mount.crypto_LUKS /dev/sdc /mnt -o rw,remount
# fg
mount -o remount /dev/sdc
^C
pam_mount-2.14 is now in the tree. Check if you still have the problem? Can't reproduce these and no feedback from reporter. If this is still an issue please re-open and report it upstream. Almost certainly not a gentoo bug. |
umount <some LUKS crypted mount> Removes entry from cmtab even if umount fails on busy mount -o remount <some LUKS crypted mount> Causes infinite process spawning. emerge --info pam_mount Portage 2.1.12.2 (default/linux/amd64/13.0/desktop/gnome, gcc-4.6.3, glibc-2.15-r3, 3.2.12-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.2.12-gentoo-x86_64-AMD_Phenom-tm-_II_X4_910e_Processor-with-gentoo-2.2 KiB Mem: 4044104 total, 2097484 free KiB Swap: 9787264 total, 9787264 free Timestamp of tree: Sun, 21 Jul 2013 10:30:01 +0000 ld GNU ld (GNU Binutils) 2.23.1 app-shells/bash: 4.2_p45 dev-java/java-config: 2.1.12-r1 dev-lang/python: 2.7.5, 3.2.5-r1 dev-util/cmake: 2.8.10.2-r2 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.11.8 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.10.3, 1.11.6, 1.12.6 sys-devel/binutils: 2.23.1 sys-devel/gcc: 4.6.3 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.7 (virtual/os-headers) sys-libs/glibc: 2.15-r3 Repositories: gentoo ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://ftp.klid.dk/ftp/gentoo/ http://ftp.df.lth.se/pub/gentoo/ rsync://de-mirror.org/gentoo/ rsync://ftp.df.lth.se/pub/gentoo/ ftp://ftp.df.lth.se/pub/gentoo/" LANG="da_DK" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cddb cdr cli colord consolekit cracklib crypt cups cxx dbus djvu dri dts dvd dvdr eds emboss encode evo exif fam ffmpeg firefox flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv imagemagick introspection jpeg lame lcms libnotify libsecret lzma mad mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses nls nptl ntp ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support qt4 readline sdl session socialweb spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vdpau vorbis wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en da" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="radeon r600" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON ================================================================= Package Settings ================================================================= sys-auth/pam_mount-2.13-r1 was built with the following: USE="crypt (multilib) ssl (-selinux)" ABI_X86="64"