在 2025/10/11 17:24, Mateusz Guzik 写道:
Is that something you ran into or perhaps you are going off of reading the code?
The only way that I see to get here requires a file with pidfs_file_operations, so AFAICS this shouuld never trigger.
In the worst case perhaps this can WARN_ON?
Thanks for the review.
I did not hit this in real testing, but only inferred the potential issue from reading the code context. After taking another look at the call paths into pidfd_info(), I agree this is indeed an over-defensive check and not actually reachable.
I'll drop this patch. Thanks for the clarification.
Zhen