Bug 156029
| Summary: | kernel may oops if more than 4k worth of string data returned in /proc/devices | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 2.1 | Reporter: | Neil Horman <nhorman> | ||||
| Component: | kernel | Assignee: | Don Howard <dhoward> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Brian Brock <bbrock> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 2.1 | CC: | tao | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | RHSA-2007-0013 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2007-01-17 10:14:35 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: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 143573 | ||||||
| Attachments: |
|
||||||
|
Description
Neil Horman
2005-04-26 19:00:40 UTC
Created attachment 113681 [details]
patch to add missing length check to /proc/devices file
Hi Neil - This ticket fell off my radar. It looks like the RHEL3 patch applies to 2.1. Can you attach a test case for this issue? hey don- I don't think I have my old test case laying about any more, but suffice it to say, all you need to do is write a kernel module that calls register_chrdev for 256 different major/minor combinations, and give each device a name that is at least 20 characters long. That will overrun the 4k buffer that is allocated for /proc/devices and cause an oops. with the patch the file will be truncated at 4096 bytes. I'll see if I can throw my old test code back together in a little bit. Thanks for checking, Neil. Don't worry about re-creating your testcase, I can do that. bug reproduced using e.70 and fix verified on e.71. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2007-0013.html |