|  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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: lin dot a dot yang at intel dot com
New email:
PHP Version: OS:


 [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 Nov 30 23:05:54 2022 UTC