Project

General

Profile

Actions

Bug #14685

open

procfs lets go of file-table entry too soon

Added by Dan McDonald 17 days ago. Updated 17 days ago.

Status:
New
Priority:
High
Assignee:
Category:
kernel
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Related to #12046 ...

The pair of prdgetfdinfosize() and prdgetfdinfo() perform operations with vnodes, but their callers first release the hold on the inspected-process's file-table entry. This involves releasing-and-re-holding the process lock, which may enable a process thread to close the file, deleting vnode data that the aforementioned functions' subsequent calls ASSERT is there.

Short of refactoring how procfs does and does not obtain FDINFO, a tested course of action is to call the aforementioned functions PRIOR to releasing the file-table entry.

Actions #1

Updated by Electric Monk 17 days ago

  • Gerrit CR set to 2144
Actions

Also available in: Atom PDF