Bug 171794

Summary: [PATCH] PIO data out commands cause kernel segfault
Product: [Fedora] Fedora Reporter: Leonard den Ottolander <leonard-rh-bugzilla>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED ERRATA QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: wtogami
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-11-10 21:31:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Fixes segfault when issuing PIO data out commands. Patch by Tim Thelin for linux-2.6.14. none

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.