HomeFreeBSD

cpuset: Handle CPU_WHICH_TIDPID wherever cpuset_which() is called.

Description

cpuset: Handle CPU_WHICH_TIDPID wherever cpuset_which() is called.

cpuset_which() resolves the argument pair which and id and returns references
to an appropriate resources. To avoid leaking resources or accessing unresolved
references to a resources handle new which CPU_WHICH_TIDPID wherever
cpuset_which() is called.
To avoid code duplication cpuset_which2() has been added.

Reported by: syzbot+331e8402e0f7347f0f2a@syzkaller.appspotmail.com
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D38272
MFC after: 2 weeks

(cherry picked from commit 2058f075b4afc543b8735599bea7278e37b2e9f9)

Details

Provenance
dchaginAuthored on Jan 30 2023, 4:28 PM
Reviewer
kib
Differential Revision
D38272: cpuset: Handle CPU_WHICH_TIDPID wherever cpuset_which() is called.
Parents
rGd23a3b412955: mp_x86: Trim trailing whitespaces.
Branches
Unknown
Tags
Unknown