Red Hat Bugzilla – Bug 171794
[PATCH] PIO data out commands cause kernel segfault
Last modified: 2007-11-30 17:11:16 EST
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):
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).
Created attachment 120419 [details]
Fixes segfault when issuing PIO data out commands. Patch by Tim Thelin for linux-2.6.14.
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.
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.