RFR: 8229957: Harden pid verification in attach mechanism

Severin Gehwolf sgehwolf at redhat.com
Wed Aug 21 14:45:40 UTC 2019


On Wed, 2019-08-21 at 23:22 +0900, Yasumasa Suenaga wrote:
> Hi Leonid,
> 
> In case of Linux on Docker container, java might be run with PID=1.
> So I think `pid <= 1` is incorrect.

That's a very good point, Yasumasa. Nice catch.

I believe changing the condition to < 1 would work.

Thanks,
Severin



More information about the serviceability-dev mailing list