Bug 171794 - [PATCH] PIO data out commands cause kernel segfault
Summary: [PATCH] PIO data out commands cause kernel segfault
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-10-26 15:58 UTC by Leonard den Ottolander
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-11-10 21:31:05 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Fixes segfault when issuing PIO data out commands. Patch by Tim Thelin for linux-2.6.14. (325 bytes, patch)
2005-10-26 15:58 UTC, Leonard den Ottolander
no flags Details | Diff

Description Leonard den Ottolander 2005-10-26 15:58:14 UTC
Description of problem:

hdparm as of 6.2 features the PIO data out security commands that enable the
user to lock and unlock IDE drives.

However issuing these commands will cause a kernel segfault. On older version
I've even experienced kernel crashes (RHEL4 2.6.9-x kernel). Although I haven't
tested this patch against these older kernels I assume it will fix at least part
of the problem. Segfault in the FC4 kernel is totally fixed by this one line patch.

Version-Release number of selected component (if applicable):
kernel-2.6.12-1.1456_FC4

How reproducible:
Rebuild the kernel with CONFIG_IDE_TASK_IOCTL enabled. Issue a security PIO data
out command with hdparm >= 6.2. See the kernel segfault (or even panic on
kernels older than 2.6.12).

Comment 1 Leonard den Ottolander 2005-10-26 15:58:15 UTC
Created attachment 120419 [details]
Fixes segfault when issuing PIO data out commands. Patch by Tim Thelin for linux-2.6.14.

Comment 2 Dave Jones 2005-11-10 20:10:03 UTC
2.6.14-1.1637_FC4 has been released as an update for FC4.
Please retest with this update, as a large amount of code has been changed in
this release, which may have fixed your problem.

Thank you.


Comment 3 Leonard den Ottolander 2005-11-10 21:31:05 UTC
As mentioned in comment #1 this fix went into 2.6.14 so the issue is hereby
fixed. Now we still need CONFIG_IDE_TASK_IOCTL to be enabled to actually be able
to use the PIO data commands.



Note You need to log in before you can comment on or make changes to this bug.