Bug 49426

Summary: The file /proc/tty/driver/serial does not get deleted on module unload (serial.o)
Product: [Retired] Red Hat Linux Reporter: Johannes Kolb <johannes.kolb>
Component: kernelAssignee: Arjan van de Ven <arjanv>
Status: CLOSED CURRENTRELEASE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1CC: borro04, rmk
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: 2004-09-30 15:39: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
My bug-report on the Kernel-Mailinglist.
none
My proposed patch, that solves the problem. none

Description Johannes Kolb 2001-07-19 14:55:03 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.5 [en] (X11; I; Linux 2.4.6 i586)

Description of problem:
If the serial driver (compiled as module) is loaded and then unloaded, the
proc-entry tty/driver/serial does not get deleted.
The remaining file is invalid and produces a kernel-oops on access.

I already reported this bug on the Kernel-Mailinglist, but there was no
answer. I attach my original email to this request.

How reproducible:
Always

Steps to Reproduce:
1.  insmod serial
2.  rmmod serial
3.  ls /proc/tty/driver

Actual Results:  The ls outputs:
serial


Expected Results:  The ls shoud show an empty directory.

Additional info:

Comment 1 Johannes Kolb 2001-07-19 14:57:04 UTC
Created attachment 24128 [details]
My bug-report on the Kernel-Mailinglist.

Comment 2 Johannes Kolb 2001-07-19 14:58:38 UTC
Created attachment 24129 [details]
My proposed patch, that solves the problem.

Comment 3 Arjan van de Ven 2001-07-19 15:07:54 UTC
Looks sane, added to our kernel.

Comment 4 Need Real Name 2001-10-18 13:08:20 UTC
I am running kernel 2.2.14 RedHat 6.2 and I get a SIGSEGV on 
cat /proc/tty/driver/serial.  Could this be related?

Comment 5 Russell King 2001-11-29 12:43:31 UTC
Please confirm whether the bug still exists in Marcelo's 2.4.16 kernel.  Thanks.

Comment 6 Need Real Name 2001-11-29 13:01:30 UTC
User does not want to upgrade. Only option for the user is to do without this 
functionality.  Specific to their UP kernels Compaq DL360 and not a problem on 
the MP machines.  I will keep 2.4.16 in mind if the user decides to upgrade and 
let you know.
Thanks.

Comment 7 Bugzilla owner 2004-09-30 15:39:05 UTC
Thanks for the bug report. However, Red Hat no longer maintains this version of
the product. Please upgrade to the latest version and open a new bug if the problem
persists.

The Fedora Legacy project (http://fedoralegacy.org/) maintains some older releases, 
and if you believe this bug is interesting to them, please report the problem in
the bug tracker at: http://bugzilla.fedora.us/