mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paul Menzel <pmenzel@molgen.mpg.de>
To: Chris Mason <clm@fb.com>, Josef Bacik <josef@toxicpanda.com>,
	David Sterba <dsterba@suse.com>
Cc: linux-btrfs@vger.kernel.org,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Catalin Marinas <catalin.marinas@arm.com>
Subject: BTRFS: Kmemleak errrors with do_sys_ftruncate
Date: Fri, 26 Jul 2019 15:16:57 +0200	[thread overview]
Message-ID: <8c9b2f4e-252c-fee7-ef52-4ec2b9b54042@molgen.mpg.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 5833 bytes --]

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


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 5174 bytes --]

             reply	other threads:[~2019-07-26 13:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-26 13:16 Paul Menzel [this message]
2019-07-26 13:25 ` Nikolay Borisov
2019-07-26 13:29 ` David Sterba

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8c9b2f4e-252c-fee7-ef52-4ec2b9b54042@molgen.mpg.de \
    --to=pmenzel@molgen.mpg.de \
    --cc=catalin.marinas@arm.com \
    --cc=clm@fb.com \
    --cc=dsterba@suse.com \
    --cc=josef@toxicpanda.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®