Page MenuHomeFreeBSD

Simplify check for non-dumpable objects
ClosedPublic

Authored by markj on Sep 29 2020, 6:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 20 2023, 4:21 AM
Unknown Object (File)
Sep 7 2023, 2:34 AM
Unknown Object (File)
Sep 7 2023, 2:34 AM
Unknown Object (File)
Sep 1 2023, 6:57 PM
Unknown Object (File)
Sep 1 2023, 6:40 PM
Unknown Object (File)
Jun 30 2023, 10:58 PM
Unknown Object (File)
Jun 28 2023, 2:51 PM
Unknown Object (File)
Jun 28 2023, 2:50 PM
Subscribers

Details

Summary

OBJT_DEFAULT, _SWAP, _VNODE and _PHYS is exactly the set of
non-fictitious object types, so just check OBJ_FICTITIOUS.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 33879
Build 31087: arc lint + arc unit

Event Timeline

markj requested review of this revision.Sep 29 2020, 6:40 PM
markj created this revision.
This revision is now accepted and ready to land.Sep 29 2020, 6:44 PM
dougm added inline comments.
sys/kern/imgact_elf.c
1802

This is a change for object->type == OBJT_DEAD. Perhaps that's not a problem. I'll trust that it's not.

sys/kern/imgact_elf.c
1802

I don't think it is. Even if the backing object isn't dead here, it could become so later on, so that case has to be handled.

This revision was automatically updated to reflect the committed changes.