|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #81472 Cannot support large linux major/minor device number when read /proc/self/maps
Submitted: 2021-09-24 06:14 UTC Modified: -
From: lin dot a dot yang at intel dot com Assigned:
Status: Closed Package: *General Issues
PHP Version: master-Git-2021-09-24 (Git) OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
37 - 21 = ?
Subscribe to this entry?

 [2021-09-24 06:14 UTC] lin dot a dot yang at intel dot com
Latest linux kernel already uses a large number (12 bits for major device, 20 bits for minor device).

The current code only supports previous standard (5 chars) when read /proc/self/maps file during enable opcache.huge_code_pages, which means 8 bits for major and 8 bits for minor device.

It will fail to find the text segment if device number is out of that range. It can be easily fixed by increasing the device string size to 9 chars when do fscanf.


Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2021-09-24 06:16 UTC] lin dot a dot yang at intel dot com
The following pull request has been associated:

Patch Name: Support large device major/minor number
On GitHub:
 [2021-09-24 07:58 UTC]
Automatic comment on behalf of linericyang (author) and nikic (committer)
Log: Fix bug #81472: Support large device major/minor number
 [2021-09-24 07:58 UTC]
-Status: Open +Status: Closed
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Dec 07 07:05:52 2022 UTC