Re: RFR: 8327114: Attach in Linux may have wrong behaviour when pid == ns_pid (Kubernetes debug container)

2024-05-03 Thread jdoylei
On Thu, 2 May 2024 10:13:51 GMT, Sebastian Lövdahl wrote: > 8327114: Attach in Linux may have wrong behaviour when pid == ns_pid > (Kubernetes debug container) > I think it boils down to the same reason as why the fix for JDK-8226919 was > needed in the first place - a non-root user cannot rea

Re: RFR: 8226919: attach in linux hangs due to permission denied accessing /proc/pid/root

2024-03-01 Thread jdoylei
e /tmp instead of `/proc//root/tmp`, based on >> `findTargetProcessTmpDirectory`. >> >> We are lucky currently that the only place the current OpenJDK 17 code >> checks `pid == ns_pid` is the `createAttachFile` catch block that ru... > > Logged https://bugs.openjdk.org/browse/JDK-8327114 for investigation. Thanks > @jdoylei ! @kevinjwalls - Perfect, thank you for opening the JBS bug! - PR Comment: https://git.openjdk.org/jdk/pull/17628#issuecomment-1973380664

Re: RFR: 8226919: attach in linux hangs due to permission denied accessing /proc/pid/root

2024-02-28 Thread jdoylei
On Fri, 9 Feb 2024 18:40:04 GMT, Sebastian Lövdahl wrote: >>> I'll still fix this. So, I should change the PR title to match JDK-8226919, >>> and issue an `/issue remove` command for JDK-8307977, is that correct? >> >> Yes exactly, thanks. > > Thank you @kevinjwalls and @jerboaa for reviewing a