2013-03-18 01:10:56 |
nomike |
bug |
|
|
added bug |
2013-03-18 01:11:33 |
nomike |
information type |
Private Security |
Public Security |
|
2013-03-20 01:23:56 |
nomike |
summary |
"scp-debus-service" creates 100s of thousands symlinks to the ppd-file in "/tmp" untill the root filesystem runs out of inodes everytime I print something |
"scp-dbus-service" creates 100s of thousands symlinks to the ppd-file in "/tmp" untill the root filesystem runs out of inodes everytime I print something |
|
2013-03-22 20:13:41 |
Jamie Strandboge |
information type |
Public Security |
Public |
|
2014-10-10 11:22:44 |
Launchpad Janitor |
system-config-printer (Ubuntu): status |
New |
Confirmed |
|
2014-10-13 07:43:09 |
Till Kamppeter |
bug watch added |
|
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=764472 |
|
2014-10-13 07:43:09 |
Till Kamppeter |
bug task added |
|
system-config-printer (Debian) |
|
2014-10-13 09:05:56 |
Bug Watch Updater |
system-config-printer (Debian): status |
Unknown |
New |
|
2014-10-23 18:12:07 |
Bug Watch Updater |
system-config-printer (Debian): status |
New |
Fix Released |
|
2014-10-28 17:11:53 |
Launchpad Janitor |
system-config-printer (Ubuntu): status |
Confirmed |
Fix Released |
|
2014-10-30 01:39:25 |
Launchpad Janitor |
branch linked |
|
lp:ubuntu/system-config-printer |
|
2014-10-30 21:21:37 |
Till Kamppeter |
system-config-printer (Ubuntu): importance |
Undecided |
High |
|
2014-10-30 21:22:37 |
Till Kamppeter |
nominated for series |
|
Ubuntu Utopic |
|
2014-10-30 21:22:37 |
Till Kamppeter |
bug task added |
|
system-config-printer (Ubuntu Utopic) |
|
2014-10-30 21:22:49 |
Till Kamppeter |
system-config-printer (Ubuntu Utopic): importance |
Undecided |
High |
|
2014-10-30 21:22:54 |
Till Kamppeter |
system-config-printer (Ubuntu Utopic): status |
New |
Triaged |
|
2014-10-30 21:46:03 |
Till Kamppeter |
description |
When I print e.g. a webpage in Firefox, shortly after the printing finished, the root filesystem is running out of available inodes.
"/tmp/" is populated with hundreds of thousands of symlinks to "/etc/cups/ppd/Hewlett-Packard-hp-LaserJet-4350.ppd" which are all named like "51465xxxxxxxx" (where x is a hexadecimal digit) and are created at a rate of aprox. 1500 new symlinks per second. The filenames are not counted up but seem to appear in random order.
During this time the process "/usr/bin/python /usr/share/system-config-printer/scp-dbus-service.py" is using ~130% CPU.
As soon as I kill this process, no more symlinks are created.
When I wait for the inodes to run out, this process's CPU usage drops to ~7% for a few seconds before the process suddenly disapears from the process list. This indicates that all the symlinks are created by this one process.
If I delete the symlinks now and print another document, things start over again.
---+ Furher notes
This does not happen when printing with
lpr
gv
It does happen when printing with
Firefox
Chromium
LibreOffice
An unpriviledged user could break down the system by filling up all free inodes on the root fs, so this might be security relevant.
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: system-config-printer-common 1.3.11+20120807-0ubuntu10
ProcVersionSignature: Ubuntu 3.5.0-25.39-generic 3.5.7.4
Uname: Linux 3.5.0-25-generic x86_64
NonfreeKernelModules: openafs fglrx
ApportVersion: 2.6.1-0ubuntu10
Architecture: amd64
Date: Mon Mar 18 00:45:56 2013
Lpstat: Error: command ['lpstat', '-v'] failed with exit code 1: lpstat: Transport endpoint is not connected
MachineType: Gigabyte Technology Co., Ltd. GA-A75M-UD2H
MarkForUpload: True
PackageArchitecture: all
Papersize: letter
PpdFiles: Hewlett-Packard-hp-LaserJet-4350: HP LaserJet 4350 pcl3, hpcups 3.12.2
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.5.0-25-generic root=/dev/mapper/hostname-root ro splash quiet vt.handoff=7
SourcePackage: system-config-printer
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 11/03/2011
dmi.bios.vendor: Award Software International, Inc.
dmi.bios.version: F5
dmi.board.name: GA-A75M-UD2H
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.modalias: dmi:bvnAwardSoftwareInternational,Inc.:bvrF5:bd11/03/2011:svnGigabyteTechnologyCo.,Ltd.:pnGA-A75M-UD2H:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnGA-A75M-UD2H:rvr:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr:
dmi.product.name: GA-A75M-UD2H
dmi.sys.vendor: Gigabyte Technology Co., Ltd. |
When I print e.g. a webpage in Firefox, shortly after the printing finished, the root filesystem is running out of available inodes.
"/tmp/" is populated with hundreds of thousands of symlinks to "/etc/cups/ppd/Hewlett-Packard-hp-LaserJet-4350.ppd" which are all named like "51465xxxxxxxx" (where x is a hexadecimal digit) and are created at a rate of aprox. 1500 new symlinks per second. The filenames are not counted up but seem to appear in random order.
During this time the process "/usr/bin/python /usr/share/system-config-printer/scp-dbus-service.py" is using ~130% CPU.
As soon as I kill this process, no more symlinks are created.
When I wait for the inodes to run out, this process's CPU usage drops to ~7% for a few seconds before the process suddenly disapears from the process list. This indicates that all the symlinks are created by this one process.
If I delete the symlinks now and print another document, things start over again.
---+ Furher notes
This does not happen when printing with
lpr
gv
It does happen when printing with
Firefox
Chromium
LibreOffice
An unpriviledged user could break down the system by filling up all free inodes on the root fs, so this might be security relevant.
[Impact]
On an attempt to print out of an application like for example Firefox a process runs crazy and does nothing than creating links in /tmp until the file system runs out of inodes. If the /tmp directory is on the root partition (and not a RAM disk) the system cannot create files any more and on the next boot it can take hours for the system to clean up, making the impression that the system is not able to boot any more.
[Test Case]
WARNING: To get your system easily back into a usable state by a siumple reboot, at first configure /tmp to be on a RAM disk.
Modify the permissions of the PPD file of your print queue to remove the world-readable bit:
sudo chmod o-r /etc/cups/ppd/*.ppd
Then try to print from Firefox (or another desktop application). Run the "top" command and observe, scp-dbus-service will pick up 100% CPU. /tmp will fill up with links quickly.
Kill the scp-dbus-service process to stop this. A quick workaround is removing the executable bit of scp-dbus-service.py but this will disable functionality of system-config-printer and other printer setup tools.
With the proposed package this will not happen any more. No mass creation of symlinks in /tmp and no CPU hogging by scp-dbus-service.
[Regression Potential]
Lo, the patch is rather simple, erroring out correctly when the PPD file is not readable to avoid an infinite loop.
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: system-config-printer-common 1.3.11+20120807-0ubuntu10
ProcVersionSignature: Ubuntu 3.5.0-25.39-generic 3.5.7.4
Uname: Linux 3.5.0-25-generic x86_64
NonfreeKernelModules: openafs fglrx
ApportVersion: 2.6.1-0ubuntu10
Architecture: amd64
Date: Mon Mar 18 00:45:56 2013
Lpstat: Error: command ['lpstat', '-v'] failed with exit code 1: lpstat: Transport endpoint is not connected
MachineType: Gigabyte Technology Co., Ltd. GA-A75M-UD2H
MarkForUpload: True
PackageArchitecture: all
Papersize: letter
PpdFiles: Hewlett-Packard-hp-LaserJet-4350: HP LaserJet 4350 pcl3, hpcups 3.12.2
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.5.0-25-generic root=/dev/mapper/hostname-root ro splash quiet vt.handoff=7
SourcePackage: system-config-printer
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 11/03/2011
dmi.bios.vendor: Award Software International, Inc.
dmi.bios.version: F5
dmi.board.name: GA-A75M-UD2H
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.modalias: dmi:bvnAwardSoftwareInternational,Inc.:bvrF5:bd11/03/2011:svnGigabyteTechnologyCo.,Ltd.:pnGA-A75M-UD2H:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnGA-A75M-UD2H:rvr:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr:
dmi.product.name: GA-A75M-UD2H
dmi.sys.vendor: Gigabyte Technology Co., Ltd. |
|
2014-10-30 22:10:42 |
Till Kamppeter |
attachment added |
|
system-config-printer_1.5.1+20141010-0ubuntu2_1.5.1+20141010-0ubuntu2.1.debdiff https://bugs.launchpad.net/ubuntu/+source/system-config-printer/+bug/1156398/+attachment/4249487/+files/system-config-printer_1.5.1%2B20141010-0ubuntu2_1.5.1%2B20141010-0ubuntu2.1.debdiff |
|
2014-10-30 22:11:07 |
Till Kamppeter |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2014-10-30 22:13:28 |
Till Kamppeter |
system-config-printer (Ubuntu Utopic): status |
Triaged |
In Progress |
|
2014-11-04 14:42:39 |
Chris J Arges |
system-config-printer (Ubuntu Utopic): status |
In Progress |
Fix Committed |
|
2014-11-04 14:42:46 |
Chris J Arges |
bug |
|
|
added subscriber SRU Verification |
2014-11-04 14:42:49 |
Chris J Arges |
tags |
amd64 apport-bug quantal |
amd64 apport-bug quantal verification-needed |
|
2014-11-04 14:54:22 |
Launchpad Janitor |
branch linked |
|
lp:ubuntu/utopic-proposed/system-config-printer |
|
2014-11-04 17:50:14 |
Leoaloha |
tags |
amd64 apport-bug quantal verification-needed |
amd64 apport-bug quantal verification-failed verification-needed |
|
2014-11-04 18:02:55 |
Leoaloha |
bug |
|
|
added subscriber Leoaloha |
2014-11-04 23:16:49 |
Leoaloha |
tags |
amd64 apport-bug quantal verification-failed verification-needed |
amd64 apport-bug quantal verification-done verification-failed verification-needed |
|
2014-11-04 23:54:43 |
Till Kamppeter |
tags |
amd64 apport-bug quantal verification-done verification-failed verification-needed |
amd64 apport-bug quantal verification-done |
|
2014-12-09 01:34:37 |
Michael Hsu |
bug |
|
|
added subscriber Michael Hsu |
2014-12-11 17:46:41 |
Launchpad Janitor |
system-config-printer (Ubuntu Utopic): status |
Fix Committed |
Fix Released |
|
2014-12-11 17:46:57 |
Brian Murray |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|