Re: [PATCH 1/3] Infiniband: make ehca_pd use struct pid pointer rather thanpid_t

From: Hoang-Nam Nguyen
Date: Wed Mar 19 2008 - 16:54:06 EST


> > Reason for above checking is to prevent a child process releasing
> > a resource that the parent process has created and still wants to use.
> > Do you think that's something we can generalize into ib_core?
> Clearly if we want that check then it should be in the core uverbs
> module. But I'm not sure why we would want that check -- I don't see
> any realistic scenario where that would cause problems, and it seems
> at least as likely that the check would break an app that
> intentionally does something clever.
Right, above checking is based on a very simple policy "creator of a
resource is also the owner in term of releasing it" and will not cover
other customized patterns. We had a case - believe on sles9, in which
a child process manipulated/released resources from parent one, and
it was not easy to find the bug.
Wrt/ your actual question: we can remove the tgid stuff from ehca kernel
code. When do you expect me to send a patch at latest?

Nam

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/