New: Zip drive parallel-port driver causes segfault in 2.5.x

New: Zip drive parallel-port driver causes segfault in 2.5.x

Post by Martin J. Blig » Tue, 25 Mar 2003 00:20:13



http://bugme.osdl.org/show_bug.cgi?id=492

           Summary: Zip drive parallel-port driver causes segfault in 2.5.x
    Kernel Version: 2.5.x
            Status: NEW
          Severity: high


Distribution:gentoo linux 1.4
Hardware Environment:soyo k7via/single Athlon mb
Software Environment:gcc3.2.2/module-init-tools 0.9.10-r4
Problem Description: ppa module doesn't work properly and, if compiled into
kernel it causes a kernel panic at boot.
Steps to reproduce:compile ppa.ko as a module and modprobe ppa:

Error messages include 'scheduling while atomic' and 'oops: 0004 [#2]'
and 'unable to handle kernel paging request' and 'modprobe exited with
preempt_count 1'.

This same problem has existed at least since kernel 2.5.49 when I
started trying the 2.5 series, and I suspect that ppa has never
worked with 2.5 kernels, but I don't know for sure.  The driver
works fine with 2.4 kernels.

Note:  it is NOT necessary to have a parallel Zip drive to test this
kernel module.  The ppa module should load without error even with no
Zip drive connected!

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

New: Zip drive parallel-port driver causes segfault in 2.5.x

Post by Andries Brouwe » Tue, 25 Mar 2003 01:00:19



> http://bugme.osdl.org/show_bug.cgi?id=492

>            Summary: Zip drive parallel-port driver causes segfault in 2.5.x
>     Kernel Version: 2.5.x
>             Status: NEW
>           Severity: high


> Problem Description: ppa module doesn't work properly and, if compiled into
> kernel it causes a kernel panic at boot.
> Steps to reproduce:compile ppa.ko as a module and modprobe ppa:

> Error messages include 'scheduling while atomic' and 'oops: 0004 [#2]'
> and 'unable to handle kernel paging request' and 'modprobe exited with
> preempt_count 1'.

> This same problem has existed at least since kernel 2.5.49 when I
> started trying the 2.5 series, and I suspect that ppa has never
> worked with 2.5 kernels, but I don't know for sure.  The driver
> works fine with 2.4 kernels.

> Note:  it is NOT necessary to have a parallel Zip drive to test this
> kernel module.  The ppa module should load without error even with no
> Zip drive connected!

Just compiled ppa and insmod'ed. No problems. [2.5.65, no such Zip drive]

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

New: Zip drive parallel-port driver causes segfault in 2.5.x

Post by Andrew Morto » Tue, 25 Mar 2003 02:20:10



Quote:

> Problem Description: ppa module doesn't work properly and, if compiled into
> kernel it causes a kernel panic at boot.
> Steps to reproduce:compile ppa.ko as a module and modprobe ppa:

Null-pointer deref.  This fixes it for me, but I'm not sure why the detect
routing is returning with the host lock held.  Maybe scsi detect routines are
supposed to do that?

diff -puN drivers/scsi/ppa.c~ppa-null-pointer-fix drivers/scsi/ppa.c
--- 25/drivers/scsi/ppa.c~ppa-null-pointer-fix  2003-03-23 16:08:37.000000000 -0800

            printk("  supported by the imm (ZIP Plus) driver. If the\n");
            printk("  cable is marked with \"AutoDetect\", this is what has\n");
            printk("  happened.\n");
-           spin_lock_irq(hreg->host_lock);
+           if (hreg)   /* This is silly */
+               spin_lock_irq(hreg->host_lock);
            return 0;
        }
        try_again = 1;
        goto retry_entry;
     } else {
-       spin_lock_irq(hreg->host_lock);
+       if (hreg)       /* And this should be unnecessary */
+               spin_lock_irq(hreg->host_lock);
        return 1;               /* return number of hosts detected */
     }
 }

_

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. [OOPS] Linux 2.5 and Parallel Port Zip 100

I found that booting 2.5.* with a disk in the ZIP drive
causes an immediate crash. Also, that this is fixed by
the patch by Rich Baum from a few days ago.

Andries
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. squid and sunscreen

3. support for parallel-port ZIP drive under redhat 4.2 ?

4. SAMBA problem connecting win95 clients ...

5. Linux 2.5 and Parallel Port Zip 100

6. system message

7. Parallel port drivers for scanners, Iomega 2GB tape and Zip drives

8. DHCP setup

9. Loading module for ocasionally-used parallel-port ZIP drive

10. Driver for Iomega Parallel Port Zip 100 Drive

11. Q: support for parallel-port version of Iomega Zip drive?

12. Iomega Zip drive: parallel port linux device driver?

13. drivers for Iomega 100 Meg parallel port zip drive