Uploaded image for project: ' AGL Development'
  1. AGL Development
  2. SPEC-3323

DoS initd/systemd-init with afm-util

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • None
    • None
    • QEMU x86_64

      I'm installing/uinstalling homescreen and sometimes I see that afm-system-daemon gets stuck:

      root 1417 0.0 0.1 3624 2724 ? Ss 10:13 0:00 /bin/bash /usr/bin/afm-util uninstall homescreen
      root 1418 0.0 0.0 3528 1052 ? S 10:13 0:00 \_ afb-client-demo -H -d unix:/run/platform/apis/ws/afm-main uninstall "homescreen"
      root 1419 0.0 0.0 4148 1124 ? S 10:13 0:00 \_ awk $1=="ON-REPLY && $3!="success {$1="ERROR: ;$2=" ;print > "/dev/stderr ;exit 1;NR >1

      Effectively you won't be able to do anything. Like install start/terminate anything. 

      It it also seems that initd from systemd is running with 100% CPU. 

      root 20 0 102064 9268 5468 R 91.4 0.5 4:08.09 /sbin/init

      A wild guess here is that afm-system is using the event loop from sd-event and somehow that gets abused.  I am yet to determine what exactly causes/caused it. 

        # Subject Branch Project Status CR V

            jobol-iot jose bollo
            mvlad Marius Vlad
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: