Moriah Advocate
Joined: 27 Mar 2004 Posts: 2383 Location: Kentucky
|
Posted: Wed Dec 13, 2006 11:29 pm Post subject: squashfs on dvd thru /dev/loop e=aes hangs in kernel |
|
|
I am seeing this problem repeatedly, but not deterministicly. It happens enough to be very annoying, as I must reboot the box to get out of it.
I have a dvd mounted in /dev/hdc that is encrypted with dev/loop using aes, and it has a squashfs file system on it. I use these all the time, as they are my offline backup media. Occasionally, an I/O erro will occur on the dvd that causes the volume to get hung in the kernel. The rest of the activity on the machine still works fine, but the reading of the dvd stops, and the task reading it is hung. It cannot be killed, or even killed -9. The only way I have found to unhang it is to reboot the machine, as since the task has the dvd busy, I cannot unmount the dvd either.
Here is /var/log/messages: Code: | Dec 13 11:48:51 hilkiah hdc: media error (bad sector): status=0x51 { DriveReady SeekComplete Error }
Dec 13 11:48:51 hilkiah hdc: media error (bad sector): error=0x30 { LastFailedSense=0x03 }
Dec 13 11:48:51 hilkiah ide: failed opcode was: unknown
Dec 13 11:48:51 hilkiah end_request: I/O error, dev hdc, sector 19144
Dec 13 11:48:51 hilkiah Buffer I/O error on device hdc, logical block 2393
Dec 13 11:48:52 hilkiah VFS: brelse: Trying to free free buffer
Dec 13 11:48:52 hilkiah Badness in __brelse at fs/buffer.c:1279
Dec 13 11:48:52 hilkiah
Dec 13 11:48:52 hilkiah Call Trace:<ffffffff8800c560>{:squashfs:read_data+1376} <ffffffff8800ff25>{:squashfs:squashfs_readpage+357}
Dec 13 11:48:52 hilkiah <ffffffff8015a272>{__do_page_cache_readahead+578} <ffffffff803fa19e>{preempt_schedule_irq+110}
Dec 13 11:48:52 hilkiah <ffffffff8037acc5>{dm_table_any_congested+21} <ffffffff8015a4dd>{blockable_page_cache_readahead+109}
Dec 13 11:48:52 hilkiah <ffffffff8015a5da>{make_ahead_window+138} <ffffffff8015a7c7>{page_cache_readahead+455}
Dec 13 11:48:52 hilkiah <ffffffff801538ed>{do_generic_mapping_read+381} <ffffffff80153d00>{file_read_actor+0}
Dec 13 11:48:52 hilkiah <ffffffff80155c79>{__generic_file_aio_read+425} <ffffffff80155e32>{generic_file_read+178}
Dec 13 11:48:52 hilkiah <ffffffff803fcdc9>{do_page_fault+1081} <ffffffff80147890>{autoremove_wake_function+0}
Dec 13 11:48:52 hilkiah <ffffffff80174975>{vfs_read+197} <ffffffff80174d13>{sys_read+83}
Dec 13 11:48:52 hilkiah <ffffffff8010d7b6>{system_call+126}
Dec 13 11:48:52 hilkiah VFS: brelse: Trying to free free buffer
Dec 13 11:48:52 hilkiah Badness in __brelse at fs/buffer.c:1279
Dec 13 11:48:52 hilkiah
| The call trace stuff repeats about 60 times, all in the same second, before finally finishing up with: Code: | Dec 13 11:48:52 hilkiah
Dec 13 11:48:52 hilkiah Call Trace:<ffffffff8800c560>{:squashfs:read_data+1376} <ffffffff8800ff25>{:squashfs:squashfs_readpage+357}
Dec 13 11:48:52 hilkiah <ffffffff8015a272>{__do_page_cache_readahead+578} <ffffffff803fa19e>{preempt_schedule_irq+110}
Dec 13 11:48:52 hilkiah <ffffffff8037acc5>{dm_table_any_congested+21} <ffffffff8015a4dd>{blockable_page_cache_readahead+109}
Dec 13 11:48:52 hilkiah <ffffffff8015a5da>{make_ahead_window+138} <ffffffff8015a7c7>{page_cache_readahead+455}
Dec 13 11:48:52 hilkiah <ffffffff801538ed>{do_generic_mapping_read+381} <ffffffff80153d00>{file_read_actor+0}
Dec 13 11:48:52 hilkiah <ffffffff80155c79>{__generic_file_aio_read+425} <ffffffff80155e32>{generic_file_read+178}
Dec 13 11:48:52 hilkiah <ffffffff803fcdc9>{do_page_fault+1081} <ffffffff80147890>{autoremove_wake_function+0}
Dec 13 11:48:52 hilkiah <ffffffff80174975>{vfs_read+197} <ffffffff80174d13>{sys_read+83}
Dec 13 11:48:52 hilkiah <ffffffff8010d7b6>{system_call+126}
Dec 13 11:48:52 hilkiah SQUASHFS error: sb_bread failed reading block 0x256e
Dec 13 11:48:52 hilkiah SQUASHFS error: Unable to read page, block 94baa1, size fff2
|
I should mention that I am running: Code: | hilkiah ~ # emerge -s squashfs
Searching...
[ Results for search key : squashfs ]
[ Applications found : 1 ]
* sys-fs/squashfs-tools
Latest version available: 2.2_p2
Latest version installed: 2.2_p2
Size of files: 229 kB
Homepage: http://squashfs.sourceforge.net/
Description: Tool for creating compressed filesystem type squashfs
License: GPL-2
hilkiah ~ #
| This should be a recoverable error, as most of the time I can try to read the dvd again after the reboot, and it works fine.
Has anyone else seen this behavior?
What can be done about it? _________________ The MyWord KJV Bible tool is at http://www.elilabs.com/~myword
Foghorn Leghorn is a Warner Bros. cartoon character. |
|