Bug#779019: aufs is leaking original paths in /proc/*/map_files
Package: src:linux
Version: 3.16.7-ckt4-3
Severity: wishlist
File: /boot/vmlinuz-3.16.0-4-amd64
Tags: patch
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hi!
aufs is leaking the layer paths when looking at /proc/*/map_files:
$ ls -l /proc/$$/map_files | head
total 0
lr-------- 1 root root 64 févr. 23 10:25 400000-4aa000 -> /tmp/target/ro/bin/zsh5
lr-------- 1 root root 64 févr. 23 10:25 6a9000-6aa000 -> /tmp/target/ro/bin/zsh5
lr-------- 1 root root 64 févr. 23 10:25 6aa000-6b0000 -> /tmp/target/ro/bin/zsh5
lr-------- 1 root root 64 févr. 23 10:25 7fd1a73e1000-7fd1a73f1000 -> /tmp/target/ro/usr/lib/x86_64-linux-gnu/zsh/5.0.7/zsh/computil.so
lr-------- 1 root root 64 févr. 23 10:25 7fd1a73f1000-7fd1a75f0000 -> /tmp/target/ro/usr/lib/x86_64-linux-gnu/zsh/5.0.7/zsh/computil.so
lr-------- 1 root root 64 févr. 23 10:25 7fd1a75f0000-7fd1a75f1000 -> /tmp/target/ro/usr/lib/x86_64-linux-gnu/zsh/5.0.7/zsh/computil.so
lr-------- 1 root root 64 févr. 23 10:25 7fd1a75f1000-7fd1a75f2000 -> /tmp/target/ro/usr/lib/x86_64-linux-gnu/zsh/5.0.7/zsh/computil.so
lr-------- 1 root root 64 févr. 23 10:25 7fd1a75f3000-7fd1a75f5000 -> /tmp/target/ro/usr/lib/x86_64-linux-gnu/zsh/5.0.7/zsh/zleparameter.so
lr-------- 1 root root 64 févr. 23 10:25 7fd1a75f5000-7fd1a77f4000 -> /tmp/target/ro/usr/lib/x86_64-linux-gnu/zsh/5.0.7/zsh/zleparameter.so
ro
This has been fixed in more recent versions of aufs (for example, the
one applied for 3.17 in experimental Debian packages). I don't have a
clean patch, but look at:
http://lists.alioth.debian.org/pipermail/kernel-svn-changes/2014-November/019612.html
I suppose the patch could be:
#v+
diff --git a/fs/proc/base.c b/fs/proc/base.c
index baf852b..6389b5e 100644
- --- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -1764,7 +1764,7 @@ static int proc_map_files_get_link(struct dentry *dentry, struct path *path)
down_read(&mm->mmap_sem);
vma = find_exact_vma(mm, vm_start, vm_end);
if (vma && vma->vm_file) {
- - *path = vma->vm_file->f_path;
+ *path = vma_pr_or_file(vma)->f_path;
path_get(path);
rc = 0;
}
#v-
Filed as wishlist as it may be too late to fix that for Jessie.
- -- Package-specific info:
** Kernel log: boot messages should be attached
** Model information
sys_vendor: LENOVO
product_name: 20A7005UMZ
product_version: ThinkPad X1 Carbon 2nd
chassis_vendor: LENOVO
chassis_version: Not Available
bios_vendor: LENOVO
bios_version: GRET39WW (1.16 )
board_vendor: LENOVO
board_name: 20A7005UMZ
board_version: SDK0E50510 Pro
** PCI devices:
00:00.0 Host bridge [0600]: Intel Corporation Haswell-ULT DRAM Controller [8086:0a04] (rev 0b)
Subsystem: Lenovo Device [17aa:2218]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ >SERR- <PERR- INTx-
Latency: 0
Capabilities: <access denied>
00:02.0 VGA compatible controller [0300]: Intel Corporation Haswell-ULT Integrated Graphics Controller [8086:0a16] (rev 0b) (prog-if 00 [VGA controller])
Subsystem: Lenovo Device [17aa:2218]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 43
Region 0: Memory at f0000000 (64-bit, non-prefetchable) [size=4M]
Region 2: Memory at e0000000 (64-bit, prefetchable) [size=256M]
Region 4: I/O ports at 3000 [size=64]
Expansion ROM at <unassigned> [disabled]
Capabilities: <access denied>
Kernel driver in use: i915
00:03.0 Audio device [0403]: Intel Corporation Haswell-ULT HD Audio Controller [8086:0a0c] (rev 0b)
Subsystem: Lenovo Device [17aa:2218]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 42
Region 0: Memory at f0530000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: snd_hda_intel
00:14.0 USB controller [0c03]: Intel Corporation 8 Series USB xHCI HC [8086:9c31] (rev 04) (prog-if 30 [XHCI])
Subsystem: Lenovo Device [17aa:2218]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 46
Region 0: Memory at f0520000 (64-bit, non-prefetchable) [size=64K]
Capabilities: <access denied>
Kernel driver in use: xhci_hcd
00:16.0 Communication controller [0780]: Intel Corporation 8 Series HECI #0 [8086:9c3a] (rev 04)
Subsystem: Lenovo Device [17aa:2218]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 45
Region 0: Memory at f0539000 (64-bit, non-prefetchable) [size=32]
Capabilities: <access denied>
Kernel driver in use: mei_me
00:16.3 Serial controller [0700]: Intel Corporation 8 Series HECI KT [8086:9c3d] (rev 04) (prog-if 02 [16550])
Subsystem: Lenovo Device [17aa:2218]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin D routed to IRQ 17
Region 0: I/O ports at 30b0 [size=8]
Region 1: Memory at f053f000 (32-bit, non-prefetchable) [size=4K]
Capabilities: <access denied>
Kernel driver in use: serial
00:19.0 Ethernet controller [0200]: Intel Corporation Ethernet Connection I218-LM [8086:155a] (rev 04)
Subsystem: Lenovo ThinkPad X240 [17aa:2214]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 48
Region 0: Memory at f0500000 (32-bit, non-prefetchable) [size=128K]
Region 1: Memory at f053e000 (32-bit, non-prefetchable) [size=4K]
Region 2: I/O ports at 3080 [size=32]
Capabilities: <access denied>
Kernel driver in use: e1000e
00:1b.0 Audio device [0403]: Intel Corporation 8 Series HD Audio Controller [8086:9c20] (rev 04)
Subsystem: Lenovo Device [17aa:2218]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 47
Region 0: Memory at f0534000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: snd_hda_intel
00:1c.0 PCI bridge [0604]: Intel Corporation 8 Series PCI Express Root Port 6 [8086:9c1a] (rev e4) (prog-if 00 [Normal decode])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
I/O behind bridge: 00002000-00002fff
Memory behind bridge: dfb00000-dfcfffff
Prefetchable memory behind bridge: 00000000dfd00000-00000000dfefffff
Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Capabilities: <access denied>
Kernel driver in use: pcieport
00:1c.1 PCI bridge [0604]: Intel Corporation 8 Series PCI Express Root Port 3 [8086:9c14] (rev e4) (prog-if 00 [Normal decode])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
Memory behind bridge: f0400000-f04fffff
Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Capabilities: <access denied>
Kernel driver in use: pcieport
00:1d.0 USB controller [0c03]: Intel Corporation 8 Series USB EHCI #1 [8086:9c26] (rev 04) (prog-if 20 [EHCI])
Subsystem: Lenovo Device [17aa:2218]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 23
Region 0: Memory at f053d000 (32-bit, non-prefetchable) [size=1K]
Capabilities: <access denied>
Kernel driver in use: ehci-pci
00:1f.0 ISA bridge [0601]: Intel Corporation 8 Series LPC Controller [8086:9c43] (rev 04)
Subsystem: Lenovo Device [17aa:2218]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Capabilities: <access denied>
Kernel driver in use: lpc_ich
00:1f.2 SATA controller [0106]: Intel Corporation 8 Series SATA Controller 1 [AHCI mode] [8086:9c03] (rev 04) (prog-if 01 [AHCI 1.0])
Subsystem: Lenovo Device [17aa:2218]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin B routed to IRQ 44
Region 0: I/O ports at 30a8 [size=8]
Region 1: I/O ports at 30bc [size=4]
Region 2: I/O ports at 30a0 [size=8]
Region 3: I/O ports at 30b8 [size=4]
Region 4: I/O ports at 3060 [size=32]
Region 5: Memory at f053c000 (32-bit, non-prefetchable) [size=2K]
Capabilities: <access denied>
Kernel driver in use: ahci
00:1f.3 SMBus [0c05]: Intel Corporation 8 Series SMBus Controller [8086:9c22] (rev 04)
Subsystem: Lenovo Device [17aa:2218]
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin C routed to IRQ 18
Region 0: Memory at f0538000 (64-bit, non-prefetchable) [size=256]
Region 4: I/O ports at efa0 [size=32]
Kernel driver in use: i801_smbus
03:00.0 Network controller [0280]: Intel Corporation Wireless 7260 [8086:08b2] (rev 83)
Subsystem: Intel Corporation Dual Band Wireless-AC 7260 [8086:c270]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 49
Region 0: Memory at f0400000 (64-bit, non-prefetchable) [size=8K]
Capabilities: <access denied>
Kernel driver in use: iwlwifi
** USB devices:
Bus 001 Device 004: ID 04ca:7036 Lite-On Technology Corp.
Bus 001 Device 003: ID 04f3:012d Elan Microelectronics Corp.
Bus 001 Device 002: ID 8087:8000 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 019: ID 17ef:304f Lenovo
Bus 003 Device 018: ID 2109:0812
Bus 003 Device 017: ID 2109:0812
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 011: ID 8087:07dc Intel Corp.
Bus 002 Device 003: ID 138a:0017 Validity Sensors, Inc.
Bus 002 Device 104: ID 1199:a001 Sierra Wireless, Inc.
Bus 002 Device 105: ID 0853:0111 Topre Corporation
Bus 002 Device 103: ID 046d:c52f Logitech, Inc. Unifying Receiver
Bus 002 Device 102: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 002 Device 107: ID 17ef:304e Lenovo
Bus 002 Device 106: ID 2109:2812
Bus 002 Device 101: ID 2109:2812
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
- -- System Information:
Debian Release: 8.0
APT prefers unstable
APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.19.0-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages linux-image-3.16.0-4-amd64 depends on:
ii debconf [debconf-2.0] 1.5.55
ii initramfs-tools [linux-initramfs-tool] 0.118
ii kmod 18-3
ii linux-base 3.5
Versions of packages linux-image-3.16.0-4-amd64 recommends:
ii firmware-linux-free 3.3
ii irqbalance 1.0.6-3
Versions of packages linux-image-3.16.0-4-amd64 suggests:
pn debian-kernel-handbook <none>
ii extlinux 3:6.03+dfsg-5
ii grub-efi 2.02~beta2-21
pn linux-doc-3.16 <none>
Versions of packages linux-image-3.16.0-4-amd64 is related to:
pn firmware-atheros <none>
pn firmware-bnx2 <none>
pn firmware-bnx2x <none>
pn firmware-brcm80211 <none>
pn firmware-intelwimax <none>
pn firmware-ipw2x00 <none>
pn firmware-ivtv <none>
ii firmware-iwlwifi 0.43
pn firmware-libertas <none>
ii firmware-linux 0.43
ii firmware-linux-nonfree 0.43
pn firmware-myricom <none>
pn firmware-netxen <none>
pn firmware-qlogic <none>
pn firmware-ralink <none>
pn firmware-realtek <none>
pn xen-hypervisor <none>
- -- debconf information excluded
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBCAAGBQJU6v7bAAoJEJWkL+g1NSX5He0QAJO7WGZy0p4hV/9khbCDbdvo
0Ng3dE0xOoqGyrAUTfSRTEx0WAVDqnLy+oquhA44dJ/h1crteAnCS+XM9z0gYaRJ
nItgczsJn3ouFSGQnuLYC5iGuLNMd92vy8SUP21S8EmcnswrwY/r4sc0adGzV+c8
nSqPvVvycl/XkSI5dbinRRUgzmPlJ8f4/BaXGORMSvQr7ppIRIHZc8CoAbqWHxx4
0MfivhMHQklhp6jcwWLvSPVF3NVYevu/30r9ePxnKJLVRGJd/+OKXthAuhW6GXFM
w5vJM5Ru0zK99yidNvkurmZXH0qMpbT+h+ujFs9E3XbOxMKzzVHOepk+DAOsjI1h
eUs8/hiG0VHLdOv9oF/FdS6tpG/Nn4c5cTwvT1DpGK4wV+vVucXO9YWH/JJs+W7E
RGD7uvBLAHQ9KGzX7ikQt5EYGeF+G5jnStZTdKhCaW2skfAFK6vgLzKAvgI+sBfU
WIIie8Dq/xWRctdeMDgluHlRHD2ulsIzTqJih7OS2aLABNTzbopS1KpIcyGcAHOd
vAkQG15jO/Yee2ZUT4WDE7wh8Ow268ucKjMloeIFqknUVwtUwt0a/eHR4jKYJO7H
Z43892swyhh/qZi/QqsKQ/KtfmHqsyMjexOJF/8SaJD8SwYumSXPP9DARjlt4Mnx
n77TzlXrRDG+o5KdEFkQ
=5Jn4
-----END PGP SIGNATURE-----
Reply to: