lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <8c9b2f4e-252c-fee7-ef52-4ec2b9b54042@molgen.mpg.de>
Date:   Fri, 26 Jul 2019 15:16:57 +0200
From:   Paul Menzel <pmenzel@...gen.mpg.de>
To:     Chris Mason <clm@...com>, Josef Bacik <josef@...icpanda.com>,
        David Sterba <dsterba@...e.com>
Cc:     linux-btrfs@...r.kernel.org,
        Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
        Catalin Marinas <catalin.marinas@....com>
Subject: BTRFS: Kmemleak errrors with do_sys_ftruncate

Dear Linux folks,


On a Power 8 server

    Linux power 5.3.0-rc1+ #1 SMP Fri Jul 26 11:34:28 CEST 2019 ppc64le ppc64le ppc64le GNU/Linux

Kmemleak reports the warnings below.

```
$ sudo more /sys/kernel/debug/kmemleak
unreferenced object 0xc00000f290866130 (size 80):
  comm "networkd-dispat", pid 7630, jiffies 4294903138 (age 6540.748s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 ff ff 00 00 00 00 00 00  ................
    40 61 86 90 f2 00 00 c0 00 00 00 00 00 00 00 00  @a..............
  backtrace:
    [<00000000ecec0137>] alloc_extent_state+0x4c/0x1b0 [btrfs]
    [<000000003f22a890>] __set_extent_bit+0x330/0x790 [btrfs]
    [<0000000020fcf70f>] lock_extent_bits+0x98/0x320 [btrfs]
    [<000000001d1d0f77>] btrfs_lock_and_flush_ordered_range+0xf0/0x1b0 [btrfs]
    [<00000000195c001c>] btrfs_cont_expand+0x14c/0x600 [btrfs]
    [<00000000f280c100>] btrfs_setattr+0x130/0x770 [btrfs]
    [<000000008f89382e>] notify_change+0x218/0x5b0
    [<00000000fc1ffb03>] do_truncate+0x9c/0x140
    [<000000008b736052>] do_sys_ftruncate+0x1e4/0x210
    [<00000000f67bba86>] system_call+0x5c/0x70
unreferenced object 0xc000007f9cc555f0 (size 80):
  comm "unattended-upgr", pid 8069, jiffies 4294903488 (age 6539.396s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 ff ff 00 00 00 00 00 00  ................
    00 56 c5 9c 7f 00 00 c0 00 00 00 00 00 00 00 00  .V..............
  backtrace:
    [<00000000ecec0137>] alloc_extent_state+0x4c/0x1b0 [btrfs]
    [<000000003f22a890>] __set_extent_bit+0x330/0x790 [btrfs]
    [<0000000020fcf70f>] lock_extent_bits+0x98/0x320 [btrfs]
    [<000000001d1d0f77>] btrfs_lock_and_flush_ordered_range+0xf0/0x1b0 [btrfs]
    [<00000000195c001c>] btrfs_cont_expand+0x14c/0x600 [btrfs]
    [<00000000f280c100>] btrfs_setattr+0x130/0x770 [btrfs]
    [<000000008f89382e>] notify_change+0x218/0x5b0
    [<00000000fc1ffb03>] do_truncate+0x9c/0x140
    [<000000008b736052>] do_sys_ftruncate+0x1e4/0x210
    [<00000000f67bba86>] system_call+0x5c/0x70
unreferenced object 0xc000007fa1431fe0 (size 80):
  comm "lxd", pid 8347, jiffies 4294904066 (age 6537.104s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 ff ff 00 00 00 00 00 00  ................
    f0 1f 43 a1 7f 00 00 c0 00 00 00 00 00 00 00 00  ..C.............
  backtrace:
    [<00000000ecec0137>] alloc_extent_state+0x4c/0x1b0 [btrfs]
    [<000000003f22a890>] __set_extent_bit+0x330/0x790 [btrfs]
    [<0000000020fcf70f>] lock_extent_bits+0x98/0x320 [btrfs]
    [<000000001d1d0f77>] btrfs_lock_and_flush_ordered_range+0xf0/0x1b0 [btrfs]
    [<00000000195c001c>] btrfs_cont_expand+0x14c/0x600 [btrfs]
    [<00000000f280c100>] btrfs_setattr+0x130/0x770 [btrfs]
    [<000000008f89382e>] notify_change+0x218/0x5b0
    [<00000000fc1ffb03>] do_truncate+0x9c/0x140
    [<000000008b736052>] do_sys_ftruncate+0x1e4/0x210
    [<00000000f67bba86>] system_call+0x5c/0x70
unreferenced object 0xc000007f98359470 (size 80):
  comm "lxd", pid 8347, jiffies 4294904738 (age 6534.416s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 ff ff 00 00 00 00 00 00  ................
    80 94 35 98 7f 00 00 c0 00 00 00 00 00 00 00 00  ..5.............
  backtrace:
    [<00000000ecec0137>] alloc_extent_state+0x4c/0x1b0 [btrfs]
    [<000000003f22a890>] __set_extent_bit+0x330/0x790 [btrfs]
    [<0000000020fcf70f>] lock_extent_bits+0x98/0x320 [btrfs]
    [<000000001d1d0f77>] btrfs_lock_and_flush_ordered_range+0xf0/0x1b0 [btrfs]
    [<00000000195c001c>] btrfs_cont_expand+0x14c/0x600 [btrfs]
    [<00000000f280c100>] btrfs_setattr+0x130/0x770 [btrfs]
    [<000000008f89382e>] notify_change+0x218/0x5b0
    [<00000000fc1ffb03>] do_truncate+0x9c/0x140
    [<000000008b736052>] do_sys_ftruncate+0x1e4/0x210
    [<00000000f67bba86>] system_call+0x5c/0x70
unreferenced object 0xc000007f9e7078f0 (size 80):
  comm "landscape-sysin", pid 10187, jiffies 4295061226 (age 5908.520s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 ff ff 00 00 00 00 00 00  ................
    00 79 70 9e 7f 00 00 c0 00 00 00 00 00 00 00 00  .yp.............
  backtrace:
    [<00000000ecec0137>] alloc_extent_state+0x4c/0x1b0 [btrfs]
    [<000000003f22a890>] __set_extent_bit+0x330/0x790 [btrfs]
    [<0000000020fcf70f>] lock_extent_bits+0x98/0x320 [btrfs]
    [<000000001d1d0f77>] btrfs_lock_and_flush_ordered_range+0xf0/0x1b0 [btrfs]
    [<00000000195c001c>] btrfs_cont_expand+0x14c/0x600 [btrfs]
    [<00000000f280c100>] btrfs_setattr+0x130/0x770 [btrfs]
    [<000000008f89382e>] notify_change+0x218/0x5b0
    [<00000000fc1ffb03>] do_truncate+0x9c/0x140
    [<000000008b736052>] do_sys_ftruncate+0x1e4/0x210
    [<00000000f67bba86>] system_call+0x5c/0x70
unreferenced object 0xc00000f29b4f48d0 (size 80):
  comm "landscape-sysin", pid 14433, jiffies 4295569439 (age 3876.396s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 ff ff 00 00 00 00 00 00  ................
    e0 48 4f 9b f2 00 00 c0 00 00 00 00 00 00 00 00  .HO.............
  backtrace:
    [<00000000ecec0137>] alloc_extent_state+0x4c/0x1b0 [btrfs]
    [<000000003f22a890>] __set_extent_bit+0x330/0x790 [btrfs]
    [<0000000020fcf70f>] lock_extent_bits+0x98/0x320 [btrfs]
    [<000000001d1d0f77>] btrfs_lock_and_flush_ordered_range+0xf0/0x1b0 [btrfs]
    [<00000000195c001c>] btrfs_cont_expand+0x14c/0x600 [btrfs]
    [<00000000f280c100>] btrfs_setattr+0x130/0x770 [btrfs]
    [<000000008f89382e>] notify_change+0x218/0x5b0
    [<00000000fc1ffb03>] do_truncate+0x9c/0x140
    [<000000008b736052>] do_sys_ftruncate+0x1e4/0x210
    [<00000000f67bba86>] system_call+0x5c/0x70
```

I believe these have been present for some releases already, but Kmemleak
was broken until now on that system, so that I could only report them now.


Kind regards,

Paul


Download attachment "smime.p7s" of type "application/pkcs7-signature" (5174 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ