lkml.org 
[lkml]   [1998]   [Oct]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: AHA1542 and SCSI tape (HP 35480A) again
    This is a SCSI question and should be on the linux-scsi list.

    On Sat, 10 Oct 1998, Matthias Andree wrote:

    > Apart from the already known not working aha1542 reset/abort code, I
    > encountered a new, strange one today:
    >
    > while playing a little with mt, mtst and dump-0.3 on my HP 35480A
    > (attached to my AHA1542CF), I got these:
    >
    > Oct 9 22:01:43 emma1 kernel: Wrong buffer length supplied for request sense (256)
    This comes from the following code in aha1542.c

    if(*cmd == REQUEST_SENSE){
    #ifndef DEBUG
    if (bufflen != sizeof(SCpnt->sense_buffer)) {
    printk("Wrong buffer length supplied for request sense
    (%d)\n",bufflen);
    };
    #endif

    The SCSI tape driver does not send any REQUEST SENSE command. It is used
    by the error processing in the middle level SCSI driver. So, this is not a
    problem specific to SCSI tapes. An easy and safe fix might be to change
    the test from != to < (this should catch any buffer overflow).

    Kai


    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.rutgers.edu
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:44    [W:0.021 / U:60.256 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site