[gutsy] aha1542 causes kernel panic

Bug #127928 reported by Craig Sampson
14
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Won't Fix
Undecided
Unassigned
linux-source-2.6.22 (Ubuntu)
Won't Fix
Medium
Unassigned

Bug Description

Binary package hint: linux-image-2.6.22-8-generic

Using scanimage -L with adaptec 1542CF ISA card and a Umax 610S SCSI scanner. Sane-find-scanner or scanimage -L causes a kernel panic as follows:

Bad Segment list supplied to AHA1542.c (1,0)
0:C0008000 5
<ptr C04B000 00 00 00 00 00 00 00 00 02 00 08 12 00 00 00 00 00

00 <0> Kernel Panic - not syncing:Foooooooood fight!

Googling around a bit suggests that this might be a regression in the aha1542 kernel driver as it seems to have appeared at irregualr intervals from late 2.4.x kernels, been fixed but then reappeared in 2.6.x kernels.

I've not seen this before on this machine, but then I last ran breezy on it so perhaps the module was still ok then.

Scanner/card/etc all seems ok on dual boot Windows XP.

Regards,
Craig

Tags: cft-2.6.27
Changed in linux-source-2.6.22:
importance: Undecided → Medium
Revision history for this message
Brian Murray (brian-murray) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Unfortunately we can't fix it, because your description doesn't yet have enough information.
Please include as attachments the following additional information, if you have not already done so (please pay attention to lspci's additional options), as required by the Ubuntu Kernel Team:
1. Please include the output of the command 'uname -a' in your next response. It should be one, long line of text which includes the exact kernel version you're running, as well as the CPU architecture.
2. Please run the command 'dmesg > dmesg.log' after reproducing the issue and attach the resulting file 'dmesg.log' to this bug report.
3. Please run the command 'sudo lspci -vvnn > lspci-vvnn.log' and attach the resulting file 'lspci-vvnn.log' to this bug report.
For your reference, the full description of procedures for kernel-related bug reports is available at https://wiki.ubuntu.com/KernelTeamBugPolicies . Thanks in advance!

Changed in linux-source-2.6.22:
assignee: nobody → brian-murray
status: New → Incomplete
Revision history for this message
Craig Sampson (ubuntu-psi-aus) wrote :

>> 1. Please include the output of the command 'uname -a' in your next response.

Linux hombre 2.6.22-8-generic #1 SMP Thu Jul 12 15:59:45 GMT 2007 i686 GNU/Linux

>>2. Please run the command 'dmesg > dmesg.log' after reproducing the issue and attach the resulting file 'dmesg.log' to this bug report.

I can't do this because there is a kernel panic and dmesg is rewritten at the next boot, sorry.

>>3. Please run the command 'sudo lspci -vvnn > lspci-vvnn.log' and attach the resulting file 'lspci-vvnn.log' to this bug report.

Ok. Done as requested, though the adaptor in question is ISA so I'm not sure of the value of the lspci, nevertheless, its attached.

Cheers,
Craig

Revision history for this message
Brian Murray (brian-murray) wrote :

I missed that it was an ISA card - sorry about that. Could you look in your kernel log files in '/var/log/kern*' to see if the panic happens to be captured there? Thanks again.

Revision history for this message
Craig Sampson (ubuntu-psi-aus) wrote :

Hmm, no apparently nothing there. I'll attach the kernel logs anyway, but I can't see anything resembling a panic.

Changed in linux-source-2.6.22:
assignee: brian-murray → ubuntu-kernel-team
status: Incomplete → Triaged
Revision history for this message
Craig Sampson (ubuntu-psi-aus) wrote :

-10 variation of the kernel, current as of today spits a kernel panic by just loading the module for the aha1542, you don't have to invoke scanimage -L, at boot, during module loading....bam, fooooood fight!

Cheers,
Craig

Revision history for this message
Yves Lavoie (ylavoie) wrote :

I have done some testing on Ubuntu Hardy and Linux 2.6.23.1 and 2.6.24-rc1. Seems that AHA1542 doesn't like odd length requests.
A temporary fix is to patch line 709 of the aha1542 driver (drivers/scsi/aha1542.c) like this:
                scsi_for_each_sg(SCpnt, sg, SCpnt->use_sg, i) {
                        if (sg->length == 0 || SCpnt->use_sg > 16 ||
                          (((int) sg->offset) & 1) /* || (sg->length & 1) */ ) { /* YL: Why be shy of odd length requests? */
                                unsigned char *ptr;
                                ...
                                panic("Foooooooood fight!");
                        };

This is by no means a fix, it's only an ugly patch to remove kernel panics until someone knowledgeable solve the issue properly.

Regards,

Yves

Revision history for this message
Craig Sampson (ubuntu-psi-aus) wrote :

Hi Yves,

Thanks for the response. I'll try to build that against the Gutsy kernel this weekend and if successful it might be worth trying to push it into gutsy-updates. This sensitivity to odd length requests must be a regression as I don't remember previous kernels responding this way and I've had a stack of 1542 cards running happily for years.

Thanks again,
Craig

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

The Hardy Heron Alpha series was recently released which contains an updated version of the kernel. You can download and try the new Hardy Heron Alpha release from http://cdimage.ubuntu.com/releases/hardy/ . You should be able to then test the new kernel via the LiveCD. If you can, please verify if this bug still exists or not and report back your results. General information regarding the release can also be found here: http://www.ubuntu.com/testing/ . Thanks

Changed in linux:
status: New → Incomplete
Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Please note that we will keep this report open against the actively developed kernel but against 2.6.22 this will be closed. Thanks.

Changed in linux-source-2.6.22:
status: Triaged → Won't Fix
Revision history for this message
Frank Bokhorst (frank-tilting) wrote : Re: [Bug 127928] Re: [gutsy] aha1542 causes kernel panic

On Fri, 2008-02-29 at 18:13 +0000, Leann Ogasawara wrote:
> The Hardy Heron Alpha series was recently released which contains an
> updated version of the kernel. You can download and try the new Hardy
> Heron Alpha release from http://cdimage.ubuntu.com/releases/hardy/ .
> You should be able to then test the new kernel via the LiveCD. If you
> can, please verify if this bug still exists or not and report back your
> results.

Thank you for the information. Unfortunately after several attempts, I
still have not been able to download the CD image. Is it possible to
obtain a copy on CD directly somehow?

Regards,
Frank Bokhorst

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Hi Frank,

You could try to use https://shipit.ubuntu.com/ however I don't think they ship the Alpha releases and it can take some time before you'd actually get the CD.

Craig, since you are the original bug reporter, care to test the latest Hardy Alpha release and provide any feedback? Thanks.

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

The Ubuntu Kernel Team is planning to move to the 2.6.27 kernel for the upcoming Intrepid Ibex 8.10 release. As a result, the kernel team would appreciate it if you could please test this newer 2.6.27 Ubuntu kernel. There are one of two ways you should be able to test:

1) If you are comfortable installing packages on your own, the linux-image-2.6.27-* package is currently available for you to install and test.

--or--

2) The upcoming Alpha5 for Intrepid Ibex 8.10 will contain this newer 2.6.27 Ubuntu kernel. Alpha5 is set to be released Thursday Sept 4. Please watch http://www.ubuntu.com/testing for Alpha5 to be announced. You should then be able to test via a LiveCD.

Please let us know immediately if this newer 2.6.27 kernel resolves the bug reported here or if the issue remains. More importantly, please open a new bug report for each new bug/regression introduced by the 2.6.27 kernel and tag the bug report with 'linux-2.6.27'. Also, please specifically note if the issue does or does not appear in the 2.6.26 kernel. Thanks again, we really appreicate your help and feedback.

Revision history for this message
Frank Bokhorst (frank-tilting) wrote :

On Fri, 2008-08-29 at 10:15 +0000, Leann Ogasawara wrote:
> Please let us know immediately if this newer 2.6.27 kernel resolves the
> bug reported here or if the issue remains. More importantly, please
> open a new bug report for each new bug/regression introduced by the
> 2.6.27 kernel and tag the bug report with 'linux-2.6.27'. Also, please
> specifically note if the issue does or does not appear in the 2.6.26
> kernel. Thanks again, we really appreicate your help and feedback.

I regret that I am no longer able to test the Hewlett Packard Photosmart
C5100A scanner using the Adaptec AHA1542 SCSI controller, which requires
a computer with an AT bus. That computer failed before I was able to
install Ubuntu version 8.04. I have not used the AHA1542 with Ubuntu
version 8.04.

I can report that the HP Photosmart C5100A scanner works very well with
the Adaptec 19160 SCSI adapter under Ubuntu version 8.04.

I have nothing further to report regarding bug 127928.

Regards,
Frank Bokhorst

Revision history for this message
Launchpad Janitor (janitor) wrote : Kernel team bugs

Per a decision made by the Ubuntu Kernel Team, bugs will longer be assigned to the ubuntu-kernel-team in Launchpad as part of the bug triage process. The ubuntu-kernel-team is being unassigned from this bug report. Refer to https://wiki.ubuntu.com/KernelTeamBugPolicies for more information. Thanks.

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Having not heard back from Craig, the original bug reporter, and Frank unfortunately no longer have the hw available to test I'm closing this bug. Feel free to reopen if this issue remains with the latest Jaunty release - http://www.ubuntu.com/getubuntu/download . Thanks.

Changed in linux (Ubuntu):
status: Incomplete → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers