tags 750734 upstream fixed-upstream
thanks

Hi Frederik,

upstream now contains a workaround which should ignore the broken device ID field in /proc/<pid>/maps on btrfs filesystems. The patch will be part of the next needrestart release.

Thanks for your support in finding the root of this bug.


Cheers,
Thomas


On 06/12/2014 08:10 PM, Thomas Liske wrote:
Re,

On 06/11/2014 10:17 AM, Frederik Himpe wrote:
I am thinking of another thing the two affected systems have in common:
they use BTRFS and file systems are mounted noatime.

BTRFS seems to be the trigger. I've create two vanilla KVM VMs using
Jessie's netinst alpha CD-ROM image and virtio block devices with ext4
and btrfs as rootfs:


1) ext4: everything is fine

root@exttb:~# grep /usr/sbin/sshd /proc/1898/maps
7fa226c20000-7fa226cd5000 r-xp 00000000 fe:01 26941  /usr/sbin/sshd
7fa226ed5000-7fa226ed8000 r--p 000b5000 fe:01 26941  /usr/sbin/sshd
7fa226ed8000-7fa226ed9000 rw-p 000b8000 fe:01 26941  /usr/sbin/sshd
root@exttb:~# stat /usr/sbin/sshd
  File: ‘/usr/sbin/sshd’
  Size: 758440          Blocks: 1488       IO Block: 4096   regular file
Device: fe01h/65025d    Inode: 26941       Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2014-06-12 19:25:16.061519000 +0200
Modify: 2014-05-01 18:44:14.000000000 +0200
Change: 2014-06-12 19:22:54.228088000 +0200
 Birth: -


2) btrfs: device IDs seems to be broken?!

root@btrtb:~# grep /usr/sbin/sshd /proc/1928/maps
7f05fb58b000-7f05fb640000 r-xp 00000000 00:10 66330  /usr/sbin/sshd
7f05fb840000-7f05fb843000 r--p 000b5000 00:10 66330  /usr/sbin/sshd
7f05fb843000-7f05fb844000 rw-p 000b8000 00:10 66330  /usr/sbin/sshd
root@btrtb:~# stat /usr/sbin/sshd
  File: ‘/usr/sbin/sshd’
  Size: 758440          Blocks: 1488       IO Block: 4096   regular file
Device: 11h/17d Inode: 66330       Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2014-06-11 23:32:17.179767000 +0200
Modify: 2014-05-01 18:44:14.000000000 +0200
Change: 2014-06-11 23:28:55.148348000 +0200
 Birth: -

Hmm, the device id reported by stat seems to be broken, too:

root@btrtb:~# mount |grep ' on / '
/dev/vda1 on / type btrfs (rw,relatime,space_cache)
root@btrtb:~# ls -lha /dev/vda1
brw-rw---- 1 root disk 254, 1 Jun 11 23:32 /dev/vda1

This looks weird to me! After looking around I've found a bug at redhats
bug tracker (https://bugzilla.redhat.com/show_bug.cgi?id=711881)... it
seems to me that btrfs breaks the bijective device ID/inode concept :-/


Cheers,
Thomas



--

    ::  WWW:                         http://fiasko-nw.net/~thomas/  ::
   :::  Jabber:                   xmpp:tho...@jabber.fiasko-nw.net  :::
    ::  flickr:              http://www.flickr.com/photos/laugufe/  ::


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to