[Bug 1720627] Re: Segfault when using docker and overlay2

Launchpad Bug Tracker 1720627 at bugs.launchpad.net
Mon Dec 18 16:34:31 UTC 2017


This bug was fixed in the package sysstat - 11.2.0-1ubuntu0.2

---------------
sysstat (11.2.0-1ubuntu0.2) xenial; urgency=medium

  * Add 14-fix-mtab-reading.patch to fix a crash occurring in sadc while
    reading really long lines in /etc/mtab (LP: #1720627).

 -- Dariusz Gadomski <dariusz.gadomski at canonical.com>  Wed, 06 Dec 2017
16:57:50 +0100

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1720627

Title:
  Segfault when using docker and overlay2

Status in sysstat package in Ubuntu:
  Fix Released
Status in sysstat source package in Xenial:
  Fix Released
Status in sysstat source package in Zesty:
  Fix Released
Status in sysstat source package in Artful:
  Fix Committed
Status in sysstat package in Debian:
  Fix Released

Bug description:
  [Impact]

   * With long entries in mtab tools utilizing the get_filesystem_nr and read_filesystem functions cause a segfault due to a fact that they don't
  check strchr result for being null.

  [Test Case]

   * Have a long entry in /etc/mtab, e.g.
  overlay /var/lib/docker/overlay2/f23d2377a67b9ab1b49555ecd09b2ccdc03
  7e0ee5d9e54f87e59f07f4398e71f/merged overlay rw,relatime,lowerdir=/v
  ar/lib/docker/overlay2/l/L6VKIYXWBQSJ5R7V35SS43R6Y6:/var/lib/docker/
  overlay2/l/UCCHKGXUJPWCMLHR36IZJNNIQP:/var/lib/docker/overlay2/l/RKV
  YEXD2FH65FTMK76RDWPLESX:/var/lib/docker/overlay2/l/DX4JZRKTFP2GOO4V6
  OWQ6CPJFY:/var/lib/docker/overlay2/l/6CYNWDKADUPPDZJ5IHOH2R7Y5S:/var
  /lib/docker/overlay2/l/JTPINUZIATXADL6XWFHG2OYGSF:/var/lib/docker/ov
  erlay2/l/OTSTIV5TTRHF4IUD7BODQ2FUON:/var/lib/docker/overlay2/l/QFNH3
  EFS5EZGRTC4DPHU3PJ4TU:/var/lib/docker/overlay2/l/ZOOUKT2E5U4CSLP57Z7
  MXYX5CD:/var/lib/docker/overlay2/l/3LUU6IDR2HWPTVBARC5K6XSMRC:/var/l
  ib/docker/overlay2/l/XOHYBP4RWXQKQZ43I7JKG24KE4:/var/lib/docker/over
  lay2/l/MN5M5B7AY5LPXQQC6V2MBJWWBF:/var/lib/docker/overlay2/l/3DRMKQ3
  4AIZD2AROU3TVK3OCUT:/var/lib/docker/overlay2/l/73ZXDHBV6C53Q3SPXA57E
  OLGHU:/var/lib/docker/overlay2/l/C2IZBQ55EUTGEAAORSLE73ZPNM:/var/lib
  /docker/overlay2/l/ITHARNV7RPWN5S3BCZ2QDMZIMJ:/var/lib/docker/overla
  y2/l/TQKUV4LEG4AFUUCMFHHRLDBHAH:/var/lib/docker/overlay2/l/N75JZWPPD
  EKJ4DTN4GMEGTDIZL:/var/lib/docker/overlay2/l/QGUUYAETPMK643DG3AKWJAI
  IZA,upperdir=/var/lib/docker/overlay2/f23d2377a67b9ab1b49555ecd09b2c
  cdc037e0ee5d9e54f87e59f07f4398e71f/diff,workdir=/var/lib/docker/over
  lay2/f23d2377a67b9ab1b49555ecd09b2ccdc037e0ee5d9e54f87e59f07f4398e71
  f/work 0 0
  (the above is from the upstream bug description).

   * Run
  sadc -F -L -S DISK 1 1 /var/log/sysstat

   * Note a segfault in the log/console.

  [Regression Potential]

   * The fix is present upstream, so the behaviour will be consistent
  with the upstream version.

   * I don't see any potential regression manifestation, as this is a
  simple bugfix fixing ignoring function return values.

  [Other Info]
  Original bug description:

  This is the same bug as https://bugs.debian.org/cgi-
  bin/bugreport.cgi?bug=872926 which is fixed upstream by
  https://github.com/sysstat/sysstat/commit/d40c8ecc530303d7e802617f21a9ac85dbcd68bd

  Would it be possible to get this patch added?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sysstat/+bug/1720627/+subscriptions



More information about the Ubuntu-sponsors mailing list