Linux ATA/IDE development
 help / color / mirror / Atom feed
From: "Norman Diamond" <n0diamond@yahoo.co.jp>
To: Chuck Ebbert <cebbert@redhat.com>
Cc: linux-ide@vger.kernel.org, Jens Axboe <jens.axboe@oracle.com>
Subject: Re: Kernel bug crashing in HDIO_DRIVE_TASKFILE
Date: Wed, 25 Feb 2009 20:43:44 +0900	[thread overview]
Message-ID: <26917692A9574F3A9363ED5253B42D2F@DIAMOND8600> (raw)
In-Reply-To: 20090224171044.52e70a6b@dhcp-100-2-144.bos.redhat.com

Chuck Ebbert wrote:
> Norman Diamond wrote:
>
>> Kernel 2.6.27.7 in Slax gets a panic or oops (I can't tell which).
>> Of course I had to recompile the Slax kernel with CONFIG_IDE_TASK_IOCTL
>> enabled.
>> Kernel 2.6.19 in Knoppix handles the same HDIO_DRIVE_TASKFILE perfectly.
>> 100% reproduced in four configurations: [WRITE_DMA_EXT and WRITE_DMA].
>> (Of course the real purpose of the program will not be to write 126
>> sectors starting at 0.)
>>
>> kernel BUG at block/cfg-iosched.c:2001!
>> invalid opcode: 0000 [#1] SMP
>> Pid: 3634, comm: pee3en Tainted: G        W (2.6.27.7 #1)
>> EIP: 0060:[<c03be1a5>] EFLAGS: 00010046 CPU: 0
>> EIP is at cfq_put_request+0x45/0x50
>>  [<c03b20c0>] elv_put_request+0x10/0x20
>>  [<c03b4441>] __blk_put_request+0x71/0x80
>>  [<c03b4829>] blk_put_request+0x29/0x50
>>  [<c045e308>] ide_raw_taskfile+0x78/0x90
>>  [<c045f273>] ide_taskfile_ioctl+0x283/0x4c0
>
> block/cfq-iosched.c:
> static void cfq_put_request(struct request *rq)
> BUG_ON(!cfqq->allocated[rw]);     <================
>
> You should try 2.6.27.6 and 2.6.27.19 to see if they have the bug too.

The latest kernel available from Slax with their build script is 2.6.27.8. 
Today I modified their config to enable CONFIG_IDE_TASK_IOCTL and reproed 
the bug with 2.6.27.8.

Tomorrow I will try to figure out if I can combine 2.6.27.19 with Slax's
build script but I might not be able to figure it out.

Does anyone know when this bug was added?  2.6.19 is too old for my needs,
but the range 2.6.24 to 2.6.26 might be OK if they had taskfiles working.
Maybe I should look for a Slax version that had a kernel from 2.6.24 or so,
since I can probably customize it in a single day by now.  But if the bug
was already present in 2.6.24 then it would be a waste of time. 

--------------------------------------
Power up the Internet with Yahoo! Toolbar.
http://pr.mail.yahoo.co.jp/toolbar/

  reply	other threads:[~2009-02-25 11:44 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-24 11:36 Kernel bug crashing in HDIO_DRIVE_TASKFILE Norman Diamond
2009-02-24 22:10 ` Chuck Ebbert
2009-02-25 11:43   ` Norman Diamond [this message]
2009-02-25 16:24     ` Mark Lord
2009-02-25 19:35       ` Bartlomiej Zolnierkiewicz
2009-02-25 21:18         ` Norman Diamond
2009-02-25 22:43           ` Mark Lord
2009-02-26 11:56             ` Norman Diamond
2009-02-28  3:14               ` Robert Hancock
2009-03-01  0:58                 ` Norman Diamond
2009-03-01  1:16                   ` Alan Cox
2009-03-01 11:06                   ` Robert Hancock
2009-03-02  0:24                     ` Norman Diamond
2009-03-02  2:38                       ` Robert Hancock
2009-03-02 11:43                         ` Norman Diamond
2009-03-11 22:33                       ` Bartlomiej Zolnierkiewicz
2009-03-11 23:00                         ` Norman Diamond
  -- strict thread matches above, loose matches on Subject: below --
2009-03-03 11:44 Norman Diamond

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=26917692A9574F3A9363ED5253B42D2F@DIAMOND8600 \
    --to=n0diamond@yahoo.co.jp \
    --cc=cebbert@redhat.com \
    --cc=jens.axboe@oracle.com \
    --cc=linux-ide@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox