Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 364421

Summary: Kernel panic when using sg driver to write
Product: Red Hat Enterprise Linux 5 Reporter: Sean Bruno <sbruno>
Component: kernelAssignee: Red Hat Kernel Manager <kernel-mgr>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Jenner <mjenner>
Severity: high Docs Contact:
Priority: low    
Version: 5.0CC: jfeeney
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
URL: http://pastebin.com/m634cc129
Whiteboard:
Fixed In Version: RHEL 5.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-04-21 13:40:19 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
source file that exhibits failure
none
Additional header file required none

Description Sean Bruno 2007-11-02 18:55:59 UTC
Description of problem:
Using a custom program(attached) to write to an sg device causes a kernel panic.
 This behavior is seen with all CentOS 5 kernels. It is not seen in CentOS 4 or
in 2.6.23.1

Version-Release number of selected component (if applicable):
2.6.18-8.1.15

How reproducible:
Everytime

Steps to Reproduce:
1. Use the attached code to write data to an sg device
2.
3.
  
Actual results:
Kerne panic

Expected results:
sg write succeeds

Additional info:

Comment 1 Sean Bruno 2007-11-02 18:55:59 UTC
Created attachment 246961 [details]
source file that exhibits failure

Comment 2 Sean Bruno 2007-11-02 18:56:57 UTC
Created attachment 246971 [details]
Additional header file required

Comment 3 John Feeney 2008-04-16 21:23:15 UTC
Sean,
Does this still fail in RHEL5.1? A fix was added to RHEL5.1 to prevent a 
panic within the sg driver when writing so I was wondering. I don't see a 
call trace of the panic so I can't compare it to the one found in the other
bugzilla. Hence my question.
Thanks for any feedback.
 

Comment 4 Sean Bruno 2008-04-19 03:37:16 UTC
Thanks for the follow up.  The code in attachment 1 [details] and 2 does not panic under
RHEL 5.1 ... Thanks!