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)
Wed, Dec 11, 8:33 AM
Unknown Object (File)
Oct 1 2024, 5:30 AM
Unknown Object (File)
Sep 30 2024, 8:11 AM
Unknown Object (File)
Sep 28 2024, 10:09 AM
Unknown Object (File)
Sep 28 2024, 7:46 AM
Unknown Object (File)
Sep 28 2024, 2:12 AM
Unknown Object (File)
Sep 27 2024, 9:37 PM
Unknown Object (File)
Sep 27 2024, 8:53 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.