[Bug 232992] New: mount of cryptoloop device hangs
https://bugzilla.novell.com/show_bug.cgi?id=232992
Summary: mount of cryptoloop device hangs
Product: openSUSE 10.2
Version: Final
Platform: i586
OS/Version: SuSE Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Kernel
AssignedTo: kernel-maintainers@forge.provo.novell.com
ReportedBy: volker.dietze@gmx.de
QAContact: qa@suse.de
After setu of a cryptoloop device:
max:/ # losetup -e twofish256 /dev/loop0 /dev/hdb3
and entering the password (may be wrong!) I mounted the device:
max:/ # mount -t ext3 /dev/loop0 /data
the prompt did not return.
The mount command hangs. No kill is possible, the mount process is in
uninterrupable state.
After a (long) wile I find the kernel bug output in the logfile
/var/log/messages (see below).
----------------------------------------------------------------------------------
commands given:
---------------
losetup -e twofish256 /dev/loop0 /dev/hdb3
==> password entered (may be wrong!)
mount /dev/loop0 /data -t ext3
==> no return - mount hangs
ps output:
----------
max:/etc # ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
..
root 4855 0.0 0.3 1976 640 ? D 12:11 0:00 mount
/dev/loop0 /data -t ext3
..
system logfile:
---------------
Jan 9 12:10:43 max kernel: ------------[ cut here ]------------
Jan 9 12:10:43 max kernel: kernel BUG at drivers/block/loop.c:679!
Jan 9 12:10:43 max kernel: invalid opcode: 0000 [#1]
Jan 9 12:10:43 max kernel: SMP
Jan 9 12:10:43 max kernel: last sysfs file:
/devices/pci0000:00/0000:00:07.1/ide0/0.0/media
Jan 9 12:10:43 max kernel: Modules linked in: twofish cryptoloop xt_tcpudp
xt_pkttype ipt_LOG xt_limit snd_pcm_oss snd_
mixer_oss snd_seq_midi snd_seq_midi_event snd_seq af_packet button battery ac
ipt_REJECT xt_state iptable_mangle iptable
_nat ip_nat iptable_filter ip6table_mangle ip6table_filter ip_conntrack
nfnetlink ip_tables ip6_tables x_tables usbhid o
hci_hcd ehci_hcd ext2 loop dm_mod ide_cd cdrom via_rhine mii snd_au8820
gameport snd_ac97_codec snd_pcm snd_timer snd_pa
ge_alloc snd_ac97_bus snd_mpu401_uart snd_rawmidi uhci_hcd shpchp intel_agp
snd_seq_device agpgart snd usbcore pci_hotpl
ug soundcore i2c_piix4 i2c_core ext3 mbcache jbd edd fan piix thermal processor
ide_disk ide_core
Jan 9 12:10:43 max kernel: CPU: 0
Jan 9 12:10:43 max kernel: EIP: 0060:[<cd43a3e0>] Not tainted VLI
Jan 9 12:10:43 max kernel: EFLAGS: 00010246 (2.6.18.2-34-default #1)
Jan 9 12:10:43 max kernel: EIP is at loop_thread+0xdd/0x3d0 [loop]
Jan 9 12:10:43 max kernel: eax: 00000000 ebx: cd43a303 ecx: 00000000
edx: 00000000
Jan 9 12:10:43 max kernel: esi: 00000000 edi: cabb2000 ebp: 00000000
esp: c8573f88
Jan 9 12:10:43 max kernel: ds: 007b es: 007b ss: 0068
Jan 9 12:10:43 max kernel: Process loop0 (pid: 4852, ti=c8572000 task=cb5021b0
task.ti=c8572000)
Jan 9 12:10:43 max kernel: Stack: cd43ab59 00000000 00000000 ffffffff 00000000
00000000 cb477920 c1181200
Jan 9 12:10:43 max kernel: cb5021b0 00000000 c5b53c6c c0103ca6 00000202
cd43a303 00000000 cabb2000
Jan 9 12:10:43 max kernel: 00000000 00000000 00000000 00000000 cd43a303
00000000 00000000 00000000
Jan 9 12:10:43 max kernel: Call Trace:
Jan 9 12:10:43 max kernel: [<c0103ca6>] ret_from_fork+0x6/0x20
Jan 9 12:10:43 max kernel: [<cd43a303>] loop_thread+0x0/0x3d0 [loop]
Jan 9 12:10:43 max kernel: [<cd43a303>] loop_thread+0x0/0x3d0 [loop]
Jan 9 12:10:43 max kernel: [<c0102005>] kernel_thread_helper+0x5/0xb
Jan 9 12:10:43 max kernel: Code: 00 00 00 c7 42 08 00 00 00 00 8b 8f 2c 01 00
00 b0 01 49 89 4c 24 10 89 8f 2c 01 00 00
86 87 ec 00 00 00 fb 83 7c 24 14 00 75 08 <0f> 0b a7 02 2d ab 43 cd 8b 44 24
14 83 78 0c 00 75 75 8b 97 d8
Jan 9 12:10:43 max kernel: EIP: [<cd43a3e0>] loop_thread+0xdd/0x3d0 [loop]
SS:ESP 0068:c8573f88
Additional Information:
-----------------------
max:/ # losetup -a
/dev/loop0: [000e]:2501 (/dev/hdb3) encryption=CryptoAPI/twofish-cbc
---------------------------------------------------------------------------
information about the system:
-----------------------------
max:~ # uname -a
Linux max 2.6.18.2-34-default #1 SMP Mon Nov 27 11:46:27 UTC 2006 i686 i686
i386 GNU/Linux
max:/usr/lib # cat /proc/version
Linux version 2.6.18.2-34-default (geeko@buildhost) (gcc version 4.1.2 20061115
(prerelease) (SUSE Linux)) #1 SMP Mon Nov 27 11:46:27 UTC 2006
max:/usr/lib # cat /proc/version
Linux version 2.6.18.2-34-default (geeko@buildhost) (gcc version 4.1.2 20061115
(prerelease) (SUSE Linux)) #1 SMP Mon No
v 27 11:46:27 UTC 2006
max:/usr/lib #
max:/usr/lib # cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 7
model name : Pentium III (Katmai)
stepping : 3
cpu MHz : 451.058
cache size : 512 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat
pse36 mmx fxsr sse up
bogomips : 902.97
max:/usr/lib # cat /proc/modules
twofish 47488 1 - Live 0xcd0dd000
cryptoloop 7680 1 - Live 0xcd0b6000
xt_tcpudp 7296 11 - Live 0xcd0ac000
xt_pkttype 6016 4 - Live 0xcd0af000
ipt_LOG 10624 11 - Live 0xcd08e000
xt_limit 6912 11 - Live 0xcd092000
snd_pcm_oss 53376 0 - Live 0xcd0bd000
snd_mixer_oss 21248 1 snd_pcm_oss, Live 0xcd0a5000
snd_seq_midi 13824 0 - Live 0xcd081000
snd_seq_midi_event 11520 1 snd_seq_midi, Live 0xcd086000
snd_seq 60272 2 snd_seq_midi,snd_seq_midi_event, Live 0xcd095000
af_packet 29320 2 - Live 0xcd678000
button 10896 0 - Live 0xcd635000
battery 14340 0 - Live 0xcd669000
ac 9476 0 - Live 0xcd65f000
ipt_REJECT 9472 3 - Live 0xcd65b000
xt_state 6272 12 - Live 0xcd658000
iptable_mangle 7040 0 - Live 0xcd639000
iptable_nat 11524 0 - Live 0xcd654000
ip_nat 21804 1 iptable_nat, Live 0xcd63d000
iptable_filter 7168 1 - Live 0xcd61c000
ip6table_mangle 6528 0 - Live 0xcd54a000
ip6table_filter 7040 0 - Live 0xcc83e000
ip_conntrack 52960 3 xt_state,iptable_nat,ip_nat, Live 0xcd646000
nfnetlink 11032 2 ip_nat,ip_conntrack, Live 0xcd431000
ip_tables 17604 3 iptable_mangle,iptable_nat,iptable_filter, Live 0xcd62f000
ip6_tables 18756 2 ip6table_mangle,ip6table_filter, Live 0xcd616000
x_tables 18180 9
xt_tcpudp,xt_pkttype,ipt_LOG,xt_limit,ipt_REJECT,xt_state,iptable_nat,ip_tables,ip6_tables,
Live 0xcd610000
usbhid 52192 0 - Live 0xcd621000
ohci_hcd 23428 0 - Live 0xcd609000
ehci_hcd 34696 0 - Live 0xcd461000
ext2 68104 1 - Live 0xcd5e6000
loop 20488 3 cryptoloop, Live 0xcd439000
dm_mod 60184 0 - Live 0xcd5f9000
ide_cd 42272 0 - Live 0xcd558000
cdrom 38432 1 ide_cd, Live 0xcd54d000
via_rhine 28680 0 - Live 0xcd46b000
mii 9600 1 via_rhine, Live 0xcd435000
snd_au8820 36512 0 - Live 0xcd3e7000
gameport 19464 2 snd_au8820, Live 0xcd42b000
snd_ac97_codec 95648 1 snd_au8820, Live 0xcd3f9000
snd_pcm 86916 3 snd_pcm_oss,snd_au8820,snd_ac97_codec, Live 0xcd414000
snd_timer 27908 2 snd_seq,snd_pcm, Live 0xcd3f1000
snd_page_alloc 14472 1 snd_pcm, Live 0xcd3dd000
snd_ac97_bus 6400 1 snd_ac97_codec, Live 0xcd375000
snd_mpu401_uart 13056 1 snd_au8820, Live 0xcd3e2000
snd_rawmidi 29824 2 snd_seq_midi,snd_mpu401_uart, Live 0xcd3ae000
uhci_hcd 26892 0 - Live 0xcd3b7000
shpchp 40224 0 - Live 0xcd34e000
intel_agp 27804 1 - Live 0xcd3a6000
snd_seq_device 12812 3 snd_seq_midi,snd_seq,snd_rawmidi, Live 0xcd334000
agpgart 35528 1 intel_agp, Live 0xcd39c000
snd 61188 11
snd_pcm_oss,snd_mixer_oss,snd_seq_midi,snd_seq,snd_au8820,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,
snd_rawmidi,snd_seq_device, Live 0xcd365000
usbcore 114896 4 usbhid,ohci_hcd,ehci_hcd,uhci_hcd, Live 0xcd3bf000
pci_hotplug 35136 1 shpchp, Live 0xcd35b000
soundcore 13792 1 snd, Live 0xcd323000
i2c_piix4 12428 0 - Live 0xcc879000
i2c_core 25216 1 i2c_piix4, Live 0xcd32c000
ext3 141192 4 - Live 0xcd378000
mbcache 12804 2 ext2,ext3, Live 0xcc874000
jbd 70324 1 ext3, Live 0xcd33b000
edd 13892 0 - Live 0xcc86f000
fan 8964 0 - Live 0xcc83a000
piix 13700 0 [permanent], Live 0xcc82a000
thermal 18568 0 - Live 0xcc824000
processor 34664 1 thermal, Live 0xcc830000
ide_disk 20480 7 - Live 0xcc81e000
ide_core 129992 3 ide_cd,piix,ide_disk, Live 0xcd302000
max:/usr/lib # cat /proc/ioports
0000-001f : dma1
0020-0021 : pic1
0040-0043 : timer0
0050-0053 : timer1
0060-006f : keyboard
0070-0077 : rtc
0080-008f : dma page reg
00a0-00a1 : pic2
00c0-00df : dma2
00f0-00ff : fpu
0170-0177 : ide1
01f0-01f7 : ide0
0376-0376 : ide1
03c0-03df : vesafb
03f6-03f6 : ide0
0cf8-0cff : PCI conf1
4000-403f : 0000:00:07.3
4000-4003 : ACPI PM1a_EVT_BLK
4008-400b : ACPI PM_TMR
400c-400f : ACPI GPE0_BLK
4010-4015 : ACPI CPU throttle
4040-4041 : ACPI PM1a_CNT_BLK
5000-500f : 0000:00:07.3
5000-5007 : piix4_smbus
d000-dfff : PCI Bus #01
e000-e01f : 0000:00:07.2
e000-e01f : uhci_hcd
e400-e407 : 0000:00:0d.0
e400-e407 : au8820
e800-e807 : 0000:00:0d.0
e800-e807 : au8820
ec00-ec7f : 0000:00:11.0
ec00-ec7f : via-rhine
f000-f00f : 0000:00:07.1
f000-f007 : ide0
f008-f00f : ide1
max:/usr/lib # cat /proc/iomem
00000000-0009fbff : System RAM
00000000-00000000 : Crash kernel
0009fc00-0009ffff : reserved
000a0000-000bffff : Video RAM area
000c0000-000c7fff : Video ROM
000f0000-000fffff : System ROM
00100000-0bfeffff : System RAM
00100000-002a8585 : Kernel code
002a8586-0039a7b7 : Kernel data
0bff0000-0bff2fff : ACPI Non-volatile Storage
0bff3000-0bffffff : ACPI Tables
e0000000-e1ffffff : PCI Bus #01
e0000000-e0ffffff : 0000:01:00.0
e1000000-e13fffff : 0000:01:00.0
e2000000-e2ffffff : PCI Bus #01
e2000000-e2ffffff : 0000:01:00.0
e2000000-e27fffff : vesafb
e3000000-e300ffff : 0000:00:11.0
e4000000-e47fffff : 0000:00:00.0
e4800000-e481ffff : 0000:00:0d.0
e4800000-e481ffff : au8820
e4820000-e482007f : 0000:00:11.0
e4820000-e482007f : via-rhine
ffff0000-ffffffff : reserved
max:/usr/lib # lspci -vvv
00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge
(rev 03)
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
https://bugzilla.novell.com/show_bug.cgi?id=232992 jack@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232992 ------- Comment #2 from jack@novell.com 2007-01-12 02:31 MST ------- Looks like a bug in the kernel loopback device. Are you able to reproduce the problem or was it just one-time problem? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232992 ------- Comment #3 from volker.dietze@gmx.de 2007-01-12 08:52 MST ------- I produced the problem twice under the same circumstances. The first time I got the following lines in the system log: Jan 8 17:18:17 ax kernel: VFS: Can't find ext3 filesystem on dev loop0. Jan 8 17:19:23 ax kernel: VFS: Can't find ext3 filesystem on dev loop0. Jan 8 17:20:43 ax kernel: VFS: Can't find ext3 filesystem on dev loop0. Jan 8 17:21:04 ax kernel: EXT3-fs: unable to read superblock Jan 8 17:21:22 ax kernel: ------------[ cut here ]------------ Jan 8 17:21:22 ax kernel: kernel BUG at drivers/block/loop.c:679! Jan 8 17:21:22 ax kernel: invalid opcode: 0000 [#1] Jan 8 17:21:22 ax kernel: SMP Jan 8 17:21:22 ax kernel: last sysfs file: /kernel/uevent_seqnum Jan 8 17:21:22 ax kernel: Modules linked in: sg st sd_mod sr_mod scsi_mod reiserfs hfs vfat fat joydev xt_tcpudp xt_pk Jan 8 17:21:22 ax kernel: CPU: 0 Jan 8 17:21:22 ax kernel: EIP: 0060:[<cd3b03e0>] Not tainted VLI Jan 8 17:21:22 ax kernel: EFLAGS: 00010246 (2.6.18.2-34-default #1) Jan 8 17:21:22 ax kernel: EIP is at loop_thread+0xdd/0x3d0 [loop] Jan 8 17:21:22 ax kernel: eax: 00000000 ebx: cd3b0303 ecx: 00000000 edx: 00000000 Jan 8 17:21:22 ax kernel: esi: 00000000 edi: ca085000 ebp: 00000000 esp: c54aff88 Jan 8 17:21:22 ax kernel: ds: 007b es: 007b ss: 0068 Jan 8 17:21:22 ax kernel: Process loop0 (pid: 8303, ti=c54ae000 task=cb01f670 task.ti=c54ae000) Jan 8 17:21:22 ax kernel: Stack: cd3b0b59 00000000 00000000 00000000 00000000 00000000 cb01e280 c1181200 Jan 8 17:21:22 ax kernel: cb01f670 00000000 cbcfbc6c c0103ca6 00000202 cd3b0303 00000000 ca085000 Jan 8 17:21:22 ax kernel: 00000000 00000000 00000000 00000000 cd3b0303 00000000 00000000 00000000 Jan 8 17:21:22 ax kernel: Call Trace: Jan 8 17:21:22 ax kernel: [<c0103ca6>] ret_from_fork+0x6/0x20 Jan 8 17:21:22 ax kernel: [<cd3b0303>] loop_thread+0x0/0x3d0 [loop] Jan 8 17:21:22 ax kernel: [<cd3b0303>] loop_thread+0x0/0x3d0 [loop] Jan 8 17:21:22 ax kernel: [<c0102005>] kernel_thread_helper+0x5/0xb Jan 8 17:21:22 ax kernel: Code: 00 00 00 c7 42 08 00 00 00 00 8b 8f 2c 01 00 00 b0 01 49 89 4c 24 10 89 8f 2c 01 00 00 Jan 8 17:21:22 ax kernel: EIP: [<cd3b03e0>] loop_thread+0xdd/0x3d0 [loop] SS:ESP 0068:c54aff88 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232992 ------- Comment #4 from volker.dietze@gmx.de 2007-01-12 08:59 MST ------- I now use dm-crypt with luks and I have no further free partition, so I can not reproduce the problem. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232992 ------- Comment #5 from jack@novell.com 2007-02-06 11:55 MST ------- OK, I've been able to reproduce the problem. It's somehow connected with the signal being delivered to the loop-thread while it's processing requests (at least that's how I was able to reproduce it). I'll investigate a bit more. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232992 ------- Comment #6 from jack@novell.com 2007-02-07 06:24 MST ------- OK, I've finally traced down the bug - it happenned when loop_make_request() has been called before loopback device has been fully set up. Attached is a patch that should fix it. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232992 ------- Comment #7 from jack@novell.com 2007-02-07 06:27 MST ------- Created an attachment (id=117821) --> (https://bugzilla.novell.com/attachment.cgi?id=117821&action=view) Patch fixing Oops when loop_make_request is called too early -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232992 jack@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #117821|0 |1 is obsolete| | ------- Comment #8 from jack@novell.com 2007-02-07 07:26 MST ------- Created an attachment (id=117832) --> (https://bugzilla.novell.com/attachment.cgi?id=117832&action=view) New patch fixing oops in loop_make_request() After thinking for a while I found out the culprit is actually slightly different. Attached patch fixes the problem more cleanly. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232992 jack@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Comment #9 from jack@novell.com 2007-02-07 07:33 MST ------- Committed fix to SL10.2 tree. Closing. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com