[pkg-cryptsetup-devel] Bug#581712: [cryptsetup] cryptdisks_start fail to remove loop device after MAX passphrase tries.
Roger Pettersson
noname at tele2.se
Sat May 15 07:32:53 UTC 2010
Package: cryptsetup
Version: 2:1.1.0-2.1
Severity: normal
--- Please enter the report below this line. ---
If i enter wrong passphrase it doesnt remove loop device.
I think the problem is in cryptdisks.functions
rm_lo_setup () {
if [ ! -f "$src" ]; then
return 0
fi
if [ -n "$loopdev" ]; then
losetup -d "$loopdev" || return 1
fi
return 0
}
should probably be:
rm_lo_setup () {
if [ ! -b "$src" ]; then
return 0
fi
if [ -n "$loopdev" ]; then
losetup -d "$loopdev" || return 1
fi
return 0
}
but maybe it needs some more love.
--- System information. ---
Architecture: i386
Kernel: Linux 2.6.32-3-686
Debian Release: squeeze/sid
900 testing ftp.sunet.se
900 testing ftp.se.debian.org
600 unstable ftp.se.debian.org
500 stable dl.google.com
--- Package information. ---
Depends (Version) | Installed
=====================================-+-===============
libc6 (>= 2.3) | 2.10.2-6
libdevmapper1.02.1 (>= 2:1.02.24) | 2:1.02.45-1
libpopt0 (>= 1.15) | 1.15-1
libuuid1 (>= 2.16) | 2.16.2-0
dmsetup | 2:1.02.45-1
Package's Recommends field is empty.
Suggests (Version) | Installed
===================================-+-===========
udev | 153-2
initramfs-tools (>= 0.91) | 0.93.4
OR linux-initramfs-tool |
dosfstools | 3.0.9-1
--- Output from package bug script ---
-- /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-2.6.32-3-686 root=UUID=5cb08141-4232-4d6d-ba1f-a8db4f239fec ro quiet quiet rootflags=data=writeback commit=100 nobh
-- /etc/crypttab
# <target name> <source device> <key file> <options>
keys /mnt/secure/key.img none cipher=aes-cbc-essiv:sha256,size=256,hash=sha256,luks,tries=2,keyscript=/mnt/secure/scripts/askpass.pl
-- /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
UUID=5cb08141-4232-4d6d-ba1f-a8db4f239fec / ext3 noatime,errors=remount-ro,data=writeback 0 1
UUID=20b1e5c9-4c4f-4f2f-b5a5-8dd0ac46236c none swap sw 0 0
##
# /dev/hda /media/cdrom0 udf,iso9660 user,noauto 0 0
##
##
# /dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
##
# crypt device
/dev/mapper/keys /mnt/secure/keys ext3 noauto,defaults 0 0
-- lsmod
Module Size Used by
sha256_generic 10748 0
aes_i586 6816 0
aes_generic 25738 1 aes_i586
cbc 2047 0
dm_crypt 9127 0
dm_mod 46074 1 dm_crypt
vboxnetadp 5154 0
vboxnetflt 10202 0
vboxdrv 114837 2 vboxnetadp,vboxnetflt
nls_utf8 908 1
ntfs 163909 0
fglrx 2049464 40
powernow_k8 9788 0
cpufreq_powersave 602 0
cpufreq_stats 1940 0
cpufreq_conservative 4018 0
cpufreq_userspace 1476 0
act_police 2968 0
cls_flow 4836 0
cls_fw 2733 0
cls_u32 4706 0
sch_htb 10423 0
sch_hfsc 13150 0
sch_ingress 1092 0
sch_sfq 3870 0
xt_time 1391 0
xt_connlimit 2323 0
xt_realm 615 0
iptable_raw 1471 0
xt_comment 599 19
xt_recent 4905 0
xt_policy 1794 0
ipt_ULOG 4645 8
ipt_REJECT 1517 4
ipt_REDIRECT 803 0
ipt_NETMAP 825 0
ipt_MASQUERADE 1134 1
ipt_ECN 1276 0
ipt_ecn 928 0
ipt_CLUSTERIP 3982 0
ipt_ah 749 0
ipt_addrtype 1345 3
nf_nat_tftp 702 0
nf_nat_snmp_basic 6381 0
nf_nat_sip 4440 0
nf_nat_pptp 1702 0
nf_nat_proto_gre 869 1 nf_nat_pptp
nf_nat_irc 1002 0
nf_nat_h323 4391 0
nf_nat_ftp 1519 0
nf_nat_amanda 828 0
ts_kmp 1287 5
nf_conntrack_amanda 1637 1 nf_nat_amanda
nf_conntrack_sane 2672 0
nf_conntrack_tftp 2321 1 nf_nat_tftp
nf_conntrack_sip 10718 1 nf_nat_sip
nf_conntrack_proto_sctp 4754 0
nf_conntrack_pptp 3077 1 nf_nat_pptp
nf_conntrack_proto_gre 2831 1 nf_conntrack_pptp
nf_conntrack_netlink 11048 0
nf_conntrack_netbios_ns 914 0
nf_conntrack_irc 2531 1 nf_nat_irc
nf_conntrack_h323 30924 1 nf_nat_h323
nf_conntrack_ftp 4272 1 nf_nat_ftp
xt_TPROXY 977 0
nf_tproxy_core 1221 1 xt_TPROXY,[permanent]
xt_tcpmss 1017 0
xt_pkttype 683 0
xt_physdev 1228 0
xt_owner 747 0
xt_NFQUEUE 1565 0
xt_NFLOG 718 0
nfnetlink_log 5644 1 xt_NFLOG
xt_multiport 1775 4
xt_MARK 617 1
xt_mark 613 0
xt_mac 675 0
xt_limit 1088 1
xt_length 796 0
xt_iprange 1049 0
xt_helper 879 0
xt_hashlimit 6157 0
xt_DSCP 1451 4
xt_dscp 1123 0
xt_dccp 1507 0
xt_conntrack 1955 0
xt_CONNMARK 943 0
xt_connmark 799 0
xt_CLASSIFY 617 0
ipt_LOG 3570 0
xt_tcpudp 1743 32
xt_state 927 14
iptable_nat 3551 1
nf_nat 10568 12 ipt_REDIRECT,ipt_NETMAP,ipt_MASQUERADE,nf_nat_tftp,nf_nat_sip,nf_nat_pptp,nf_nat_proto_gre,nf_nat_irc,nf_nat_h323,nf_nat_ftp,nf_nat_amanda,iptable_nat
nf_conntrack_ipv4 7597 17 iptable_nat,nf_nat
nf_defrag_ipv4 779 2 xt_TPROXY,nf_conntrack_ipv4
nf_conntrack 38063 31 xt_connlimit,ipt_MASQUERADE,ipt_CLUSTERIP,nf_nat_tftp,nf_nat_snmp_basic,nf_nat_sip,nf_nat_pptp,nf_nat_irc,nf_nat_h323,nf_nat_ftp,nf_nat_amanda,nf_conntrack_amanda,nf_conntrack_sane,nf_conntrack_tftp,nf_conntrack_sip,nf_conntrack_proto_sctp,nf_conntrack_pptp,nf_conntrack_proto_gre,nf_conntrack_netlink,nf_conntrack_netbios_ns,nf_conntrack_irc,nf_conntrack_h323,nf_conntrack_ftp,xt_helper,xt_conntrack,xt_CONNMARK,xt_connmark,xt_state,iptable_nat,nf_nat,nf_conntrack_ipv4
iptable_mangle 2325 1
nfnetlink 1798 2 nf_conntrack_netlink,nfnetlink_log
iptable_filter 1790 1
ip_tables 7690 4 iptable_raw,iptable_nat,iptable_mangle,iptable_filter
x_tables 8327 44 xt_time,xt_connlimit,xt_realm,xt_comment,xt_recent,xt_policy,ipt_ULOG,ipt_REJECT,ipt_REDIRECT,ipt_NETMAP,ipt_MASQUERADE,ipt_ECN,ipt_ecn,ipt_CLUSTERIP,ipt_ah,ipt_addrtype,xt_TPROXY,xt_tcpmss,xt_pkttype,xt_physdev,xt_owner,xt_NFQUEUE,xt_NFLOG,xt_multiport,xt_MARK,xt_mark,xt_mac,xt_limit,xt_length,xt_iprange,xt_helper,xt_hashlimit,xt_DSCP,xt_dscp,xt_dccp,xt_conntrack,xt_CONNMARK,xt_connmark,xt_CLASSIFY,ipt_LOG,xt_tcpudp,xt_state,iptable_nat,ip_tables
fuse 43750 3
tun 8760 1
it87 11447 0
hwmon_vid 1528 1 it87
loop 9753 1
snd_hda_codec_atihdmi 1687 1
snd_hda_codec_realtek 163098 1
snd_hda_intel 16427 3
snd_hda_codec 46002 3 snd_hda_codec_atihdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep 4054 1 snd_hda_codec
snd_pcm_oss 28671 0
snd_mixer_oss 10461 1 snd_pcm_oss
snd_pcm 47362 3 snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_seq_midi 3576 0
snd_rawmidi 12505 1 snd_seq_midi
snd_seq_midi_event 3684 1 snd_seq_midi
snd_seq 35459 2 snd_seq_midi,snd_seq_midi_event
snd_timer 12258 2 snd_pcm,snd_seq
snd_seq_device 3673 3 snd_seq_midi,snd_rawmidi,snd_seq
snd 34363 17 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
soundcore 3450 1 snd
snd_page_alloc 5041 2 snd_hda_intel,snd_pcm
i2c_piix4 7076 0
i2c_core 12648 1 i2c_piix4
psmouse 44413 0
pcspkr 1207 0
serio_raw 2916 0
evdev 5609 10
processor 26571 1 powernow_k8
ext3 94192 1
jbd 32161 1 ext3
mbcache 3762 1 ext3
ide_cd_mod 21076 0
usbhid 27888 0
hid 50657 1 usbhid
cdrom 26487 1 ide_cd_mod
sd_mod 25781 3
crc_t10dif 1012 1 sd_mod
ata_generic 2015 0
usb_storage 29805 0
ohci_hcd 16904 0
ide_pci_generic 1924 0
r8169 24784 0
firewire_ohci 16509 0
firewire_core 31139 1 firewire_ohci
mii 2714 1 r8169
crc_itu_t 1035 1 firewire_core
ahci 26966 2
libata 114408 2 ata_generic,ahci
button 3598 0
scsi_mod 101297 3 sd_mod,usb_storage,libata
ehci_hcd 27574 0
atiixp 1848 0
ide_core 64146 3 ide_cd_mod,ide_pci_generic,atiixp
usbcore 98126 5 usbhid,usb_storage,ohci_hcd,ehci_hcd
nls_base 4541 3 nls_utf8,ntfs,usbcore
ati_agp 3966 0
agpgart 19516 2 fglrx,ati_agp
thermal 9206 0
fan 2586 0
thermal_sys 9378 3 processor,thermal,fan
More information about the pkg-cryptsetup-devel
mailing list