Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8229957

Harden pid verification in attach mechanism

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 14
    • 8, 11, 14
    • hotspot
    • svc
    • b12

      Currently, any number could be used as a pid in
      com.sun.tools.attach.VirtualMachine.attach(String vmid);
      on Linux/Mac/Solaris

      However, attach mechanism use signal (SIGQIT) as a part of attaching. Sending a signal to PID with a negative number is sending a signal to the process and all its childs.

      So a user could just kill a bunch of processes using "-1" for example.

            lmesnik Leonid Mesnik
            lmesnik Leonid Mesnik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: