Red Hat Bugzilla – Bug 49426
The file /proc/tty/driver/serial does not get deleted on module unload (serial.o)
Last modified: 2008-08-01 12:22:51 EDT
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.
Steps to Reproduce:
1. insmod serial
2. rmmod serial
3. ls /proc/tty/driver
Actual Results: The ls outputs:
Expected Results: The ls shoud show an empty directory.
Created attachment 24128 [details]
My bug-report on the Kernel-Mailinglist.
Created attachment 24129 [details]
My proposed patch, that solves the problem.
Looks sane, added to our kernel.
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?
Please confirm whether the bug still exists in Marcelo's 2.4.16 kernel. Thanks.
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 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
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/