memory leak in nfs_get_client

27 views
Skip to first unread message

syzbot

unread,
Jun 11, 2019, 12:05:08 AM6/11/19
to anna.sc...@netapp.com, linux-...@vger.kernel.org, linu...@vger.kernel.org, syzkall...@googlegroups.com, trond.m...@hammerspace.com
Hello,

syzbot found the following crash on:

HEAD commit: d1fdb6d8 Linux 5.2-rc4
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=117e0f71a00000
kernel config: https://syzkaller.appspot.com/x/.config?x=cb38d33cd06d8d48
dashboard link: https://syzkaller.appspot.com/bug?extid=7fe11b49c1cc30e3fce2
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15a46001a00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=174b24d1a00000

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+7fe11b...@syzkaller.appspotmail.com

fl=212 nc=0 na=0]
BUG: memory leak
unreferenced object 0xffff888121b91400 (size 1024):
comm "syz-executor400", pid 6969, jiffies 4294941900 (age 18.210s)
hex dump (first 32 bytes):
01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<000000009c69e9c0>] kmemleak_alloc_recursive
include/linux/kmemleak.h:43 [inline]
[<000000009c69e9c0>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000009c69e9c0>] slab_alloc mm/slab.c:3326 [inline]
[<000000009c69e9c0>] kmem_cache_alloc_trace+0x13d/0x280 mm/slab.c:3553
[<000000007d1011ce>] kmalloc include/linux/slab.h:547 [inline]
[<000000007d1011ce>] kzalloc include/linux/slab.h:742 [inline]
[<000000007d1011ce>] nfs_alloc_client+0x2e/0x170 fs/nfs/client.c:152
[<000000007f1bdfa5>] nfs_get_client+0x1cb/0x500 fs/nfs/client.c:425
[<000000004dc18603>] nfs_init_server+0xc6/0x450 fs/nfs/client.c:671
[<0000000072615bbf>] nfs_create_server+0x83/0x1f0 fs/nfs/client.c:958
[<00000000d12e9a98>] nfs_try_mount+0x5a/0x350 fs/nfs/super.c:1883
[<00000000b2735769>] nfs_fs_mount+0x448/0xc52 fs/nfs/super.c:2719
[<000000000b19c7d0>] legacy_get_tree+0x27/0x80 fs/fs_context.c:661
[<00000000d4887a5c>] vfs_get_tree+0x2e/0x120 fs/super.c:1476
[<000000008eec78b0>] do_new_mount fs/namespace.c:2790 [inline]
[<000000008eec78b0>] do_mount+0x932/0xc50 fs/namespace.c:3110
[<00000000d0ad59a7>] ksys_mount+0xab/0x120 fs/namespace.c:3319
[<0000000082fa14d6>] __do_sys_mount fs/namespace.c:3333 [inline]
[<0000000082fa14d6>] __se_sys_mount fs/namespace.c:3330 [inline]
[<0000000082fa14d6>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3330
[<00000000ce916bab>] do_syscall_64+0x76/0x1a0
arch/x86/entry/common.c:301
[<0000000070865558>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff88811e758400 (size 1024):
comm "syz-executor400", pid 6973, jiffies 4294941906 (age 18.150s)
hex dump (first 32 bytes):
01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<000000009c69e9c0>] kmemleak_alloc_recursive
include/linux/kmemleak.h:43 [inline]
[<000000009c69e9c0>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000009c69e9c0>] slab_alloc mm/slab.c:3326 [inline]
[<000000009c69e9c0>] kmem_cache_alloc_trace+0x13d/0x280 mm/slab.c:3553
[<000000007d1011ce>] kmalloc include/linux/slab.h:547 [inline]
[<000000007d1011ce>] kzalloc include/linux/slab.h:742 [inline]
[<000000007d1011ce>] nfs_alloc_client+0x2e/0x170 fs/nfs/client.c:152
[<000000007f1bdfa5>] nfs_get_client+0x1cb/0x500 fs/nfs/client.c:425
[<000000004dc18603>] nfs_init_server+0xc6/0x450 fs/nfs/client.c:671
[<0000000072615bbf>] nfs_create_server+0x83/0x1f0 fs/nfs/client.c:958
[<00000000d12e9a98>] nfs_try_mount+0x5a/0x350 fs/nfs/super.c:1883
[<00000000b2735769>] nfs_fs_mount+0x448/0xc52 fs/nfs/super.c:2719
[<000000000b19c7d0>] legacy_get_tree+0x27/0x80 fs/fs_context.c:661
[<00000000d4887a5c>] vfs_get_tree+0x2e/0x120 fs/super.c:1476
[<000000008eec78b0>] do_new_mount fs/namespace.c:2790 [inline]
[<000000008eec78b0>] do_mount+0x932/0xc50 fs/namespace.c:3110
[<00000000d0ad59a7>] ksys_mount+0xab/0x120 fs/namespace.c:3319
[<0000000082fa14d6>] __do_sys_mount fs/namespace.c:3333 [inline]
[<0000000082fa14d6>] __se_sys_mount fs/namespace.c:3330 [inline]
[<0000000082fa14d6>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3330
[<00000000ce916bab>] do_syscall_64+0x76/0x1a0
arch/x86/entry/common.c:301
[<0000000070865558>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff888118ef9360 (size 32):
comm "syz-executor400", pid 6973, jiffies 4294941906 (age 18.150s)
hex dump (first 32 bytes):
00 71 54 04 00 ea ff ff c0 6e 9a 04 00 ea ff ff .qT......n......
c0 0b 81 04 00 ea ff ff c0 05 86 04 00 ea ff ff ................
backtrace:
[<000000003e75bb46>] kmemleak_alloc_recursive
include/linux/kmemleak.h:43 [inline]
[<000000003e75bb46>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000003e75bb46>] slab_alloc mm/slab.c:3326 [inline]
[<000000003e75bb46>] __do_kmalloc mm/slab.c:3658 [inline]
[<000000003e75bb46>] __kmalloc_track_caller+0x15d/0x2c0 mm/slab.c:3675
[<0000000010f1326b>] kstrdup+0x3a/0x70 mm/util.c:52
[<0000000070b2f357>] nfs_alloc_client+0xbd/0x170 fs/nfs/client.c:169
[<000000007f1bdfa5>] nfs_get_client+0x1cb/0x500 fs/nfs/client.c:425
[<000000004dc18603>] nfs_init_server+0xc6/0x450 fs/nfs/client.c:671
[<0000000072615bbf>] nfs_create_server+0x83/0x1f0 fs/nfs/client.c:958
[<00000000d12e9a98>] nfs_try_mount+0x5a/0x350 fs/nfs/super.c:1883
[<00000000b2735769>] nfs_fs_mount+0x448/0xc52 fs/nfs/super.c:2719
[<000000000b19c7d0>] legacy_get_tree+0x27/0x80 fs/fs_context.c:661
[<00000000d4887a5c>] vfs_get_tree+0x2e/0x120 fs/super.c:1476
[<000000008eec78b0>] do_new_mount fs/namespace.c:2790 [inline]
[<000000008eec78b0>] do_mount+0x932/0xc50 fs/namespace.c:3110
[<00000000d0ad59a7>] ksys_mount+0xab/0x120 fs/namespace.c:3319
[<0000000082fa14d6>] __do_sys_mount fs/namespace.c:3333 [inline]
[<0000000082fa14d6>] __se_sys_mount fs/namespace.c:3330 [inline]
[<0000000082fa14d6>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3330
[<00000000ce916bab>] do_syscall_64+0x76/0x1a0
arch/x86/entry/common.c:301
[<0000000070865558>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff888121b91400 (size 1024):
comm "syz-executor400", pid 6969, jiffies 4294941900 (age 19.230s)
hex dump (first 32 bytes):
01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<000000009c69e9c0>] kmemleak_alloc_recursive
include/linux/kmemleak.h:43 [inline]
[<000000009c69e9c0>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000009c69e9c0>] slab_alloc mm/slab.c:3326 [inline]
[<000000009c69e9c0>] kmem_cache_alloc_trace+0x13d/0x280 mm/slab.c:3553
[<000000007d1011ce>] kmalloc include/linux/slab.h:547 [inline]
[<000000007d1011ce>] kzalloc include/linux/slab.h:742 [inline]
[<000000007d1011ce>] nfs_alloc_client+0x2e/0x170 fs/nfs/client.c:152
[<000000007f1bdfa5>] nfs_get_client+0x1cb/0x500 fs/nfs/client.c:425
[<000000004dc18603>] nfs_init_server+0xc6/0x450 fs/nfs/client.c:671
[<0000000072615bbf>] nfs_create_server+0x83/0x1f0 fs/nfs/client.c:958
[<00000000d12e9a98>] nfs_try_mount+0x5a/0x350 fs/nfs/super.c:1883
[<00000000b2735769>] nfs_fs_mount+0x448/0xc52 fs/nfs/super.c:2719
[<000000000b19c7d0>] legacy_get_tree+0x27/0x80 fs/fs_context.c:661
[<00000000d4887a5c>] vfs_get_tree+0x2e/0x120 fs/super.c:1476
[<000000008eec78b0>] do_new_mount fs/namespace.c:2790 [inline]
[<000000008eec78b0>] do_mount+0x932/0xc50 fs/namespace.c:3110
[<00000000d0ad59a7>] ksys_mount+0xab/0x120 fs/namespace.c:3319
[<0000000082fa14d6>] __do_sys_mount fs/namespace.c:3333 [inline]
[<0000000082fa14d6>] __se_sys_mount fs/namespace.c:3330 [inline]
[<0000000082fa14d6>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3330
[<00000000ce916bab>] do_syscall_64+0x76/0x1a0
arch/x86/entry/common.c:301
[<0000000070865558>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff88811e758400 (size 1024):
comm "syz-executor400", pid 6973, jiffies 4294941906 (age 19.170s)
hex dump (first 32 bytes):
01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<000000009c69e9c0>] kmemleak_alloc_recursive
include/linux/kmemleak.h:43 [inline]
[<000000009c69e9c0>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000009c69e9c0>] slab_alloc mm/slab.c:3326 [inline]
[<000000009c69e9c0>] kmem_cache_alloc_trace+0x13d/0x280 mm/slab.c:3553
[<000000007d1011ce>] kmalloc include/linux/slab.h:547 [inline]
[<000000007d1011ce>] kzalloc include/linux/slab.h:742 [inline]
[<000000007d1011ce>] nfs_alloc_client+0x2e/0x170 fs/nfs/client.c:152
[<000000007f1bdfa5>] nfs_get_client+0x1cb/0x500 fs/nfs/client.c:425
[<000000004dc18603>] nfs_init_server+0xc6/0x450 fs/nfs/client.c:671
[<0000000072615bbf>] nfs_create_server+0x83/0x1f0 fs/nfs/client.c:958
[<00000000d12e9a98>] nfs_try_mount+0x5a/0x350 fs/nfs/super.c:1883
[<00000000b2735769>] nfs_fs_mount+0x448/0xc52 fs/nfs/super.c:2719
[<000000000b19c7d0>] legacy_get_tree+0x27/0x80 fs/fs_context.c:661
[<00000000d4887a5c>] vfs_get_tree+0x2e/0x120 fs/super.c:1476
[<000000008eec78b0>] do_new_mount fs/namespace.c:2790 [inline]
[<000000008eec78b0>] do_mount+0x932/0xc50 fs/namespace.c:3110
[<00000000d0ad59a7>] ksys_mount+0xab/0x120 fs/namespace.c:3319
[<0000000082fa14d6>] __do_sys_mount fs/namespace.c:3333 [inline]
[<0000000082fa14d6>] __se_sys_mount fs/namespace.c:3330 [inline]
[<0000000082fa14d6>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3330
[<00000000ce916bab>] do_syscall_64+0x76/0x1a0
arch/x86/entry/common.c:301
[<0000000070865558>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff888118ef9360 (size 32):
comm "syz-executor400", pid 6973, jiffies 4294941906 (age 19.170s)
hex dump (first 32 bytes):
00 71 54 04 00 ea ff ff c0 6e 9a 04 00 ea ff ff .qT......n......
c0 0b 81 04 00 ea ff ff c0 05 86 04 00 ea ff ff ................
backtrace:
[<000000003e75bb46>] kmemleak_alloc_recursive
include/linux/kmemleak.h:43 [inline]
[<000000003e75bb46>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000003e75bb46>] slab_alloc mm/slab.c:3326 [inline]
[<000000003e75bb46>] __do_kmalloc mm/slab.c:3658 [inline]
[<000000003e75bb46>] __kmalloc_track_caller+0x15d/0x2c0 mm/slab.c:3675
[<0000000010f1326b>] kstrdup+0x3a/0x70 mm/util.c:52
[<0000000070b2f357>] nfs_alloc_client+0xbd/0x170 fs/nfs/client.c:169
[<000000007f1bdfa5>] nfs_get_client+0x1cb/0x500 fs/nfs/client.c:425
[<000000004dc18603>] nfs_init_server+0xc6/0x450 fs/nfs/client.c:671
[<0000000072615bbf>] nfs_create_server+0x83/0x1f0 fs/nfs/client.c:958
[<00000000d12e9a98>] nfs_try_mount+0x5a/0x350 fs/nfs/super.c:1883
[<00000000b2735769>] nfs_fs_mount+0x448/0xc52 fs/nfs/super.c:2719
[<000000000b19c7d0>] legacy_get_tree+0x27/0x80 fs/fs_context.c:661
[<00000000d4887a5c>] vfs_get_tree+0x2e/0x120 fs/super.c:1476
[<000000008eec78b0>] do_new_mount fs/namespace.c:2790 [inline]
[<000000008eec78b0>] do_mount+0x932/0xc50 fs/namespace.c:3110
[<00000000d0ad59a7>] ksys_mount+0xab/0x120 fs/namespace.c:3319
[<0000000082fa14d6>] __do_sys_mount fs/namespace.c:3333 [inline]
[<0000000082fa14d6>] __se_sys_mount fs/namespace.c:3330 [inline]
[<0000000082fa14d6>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3330
[<00000000ce916bab>] do_syscall_64+0x76/0x1a0
arch/x86/entry/common.c:301
[<0000000070865558>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff888121b91400 (size 1024):
comm "syz-executor400", pid 6969, jiffies 4294941900 (age 21.200s)
hex dump (first 32 bytes):
01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<000000009c69e9c0>] kmemleak_alloc_recursive
include/linux/kmemleak.h:43 [inline]
[<000000009c69e9c0>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000009c69e9c0>] slab_alloc mm/slab.c:3326 [inline]
[<000000009c69e9c0>] kmem_cache_alloc_trace+0x13d/0x280 mm/slab.c:3553
[<000000007d1011ce>] kmalloc include/linux/slab.h:547 [inline]
[<000000007d1011ce>] kzalloc include/linux/slab.h:742 [inline]
[<000000007d1011ce>] nfs_alloc_client+0x2e/0x170 fs/nfs/client.c:152
[<000000007f1bdfa5>] nfs_get_client+0x1cb/0x500 fs/nfs/client.c:425
[<000000004dc18603>] nfs_init_server+0xc6/0x450 fs/nfs/client.c:671
[<0000000072615bbf>] nfs_create_server+0x83/0x1f0 fs/nfs/client.c:958
[<00000000d12e9a98>] nfs_try_mount+0x5a/0x350 fs/nfs/super.c:1883
[<00000000b2735769>] nfs_fs_mount+0x448/0xc52 fs/nfs/super.c:2719
[<000000000b19c7d0>] legacy_get_tree+0x27/0x80 fs/fs_context.c:661
[<00000000d4887a5c>] vfs_get_tree+0x2e/0x120 fs/super.c:1476
[<000000008eec78b0>] do_new_mount fs/namespace.c:2790 [inline]
[<000000008eec78b0>] do_mount+0x932/0xc50 fs/namespace.c:3110
[<00000000d0ad59a7>] ksys_mount+0xab/0x120 fs/namespace.c:3319
[<0000000082fa14d6>] __do_sys_mount fs/namespace.c:3333 [inline]
[<0000000082fa14d6>] __se_sys_mount fs/namespace.c:3330 [inline]
[<0000000082fa14d6>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3330
[<00000000ce916bab>] do_syscall_64+0x76/0x1a0
arch/x86/entry/common.c:301
[<0000000070865558>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff88811e758400 (size 1024):
comm "syz-executor400", pid 6973, jiffies 4294941906 (age 21.140s)
hex dump (first 32 bytes):
01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<000000009c69e9c0>] kmemleak_alloc_recursive
include/linux/kmemleak.h:43 [inline]
[<000000009c69e9c0>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000009c69e9c0>] slab_alloc mm/slab.c:3326 [inline]
[<000000009c69e9c0>] kmem_cache_alloc_trace+0x13d/0x280 mm/slab.c:3553
[<000000007d1011ce>] kmalloc include/linux/slab.h:547 [inline]
[<000000007d1011ce>] kzalloc include/linux/slab.h:742 [inline]
[<000000007d1011ce>] nfs_alloc_client+0x2e/0x170 fs/nfs/client.c:152
[<000000007f1bdfa5>] nfs_get_client+0x1cb/0x500 fs/nfs/client.c:425
[<000000004dc18603>] nfs_init_server+0xc6/0x450 fs/nfs/client.c:671
[<0000000072615bbf>] nfs_create_server+0x83/0x1f0 fs/nfs/client.c:958
[<00000000d12e9a98>] nfs_try_mount+0x5a/0x350 fs/nfs/super.c:1883
[<00000000b2735769>] nfs_fs_mount+0x448/0xc52 fs/nfs/super.c:2719
[<000000000b19c7d0>] legacy_get_tree+0x27/0x80 fs/fs_context.c:661
[<00000000d4887a5c>] vfs_get_tree+0x2e/0x120 fs/super.c:1476
[<000000008eec78b0>] do_new_mount fs/namespace.c:2790 [inline]
[<000000008eec78b0>] do_mount+0x932/0xc50 fs/namespace.c:3110
[<00000000d0ad59a7>] ksys_mount+0xab/0x120 fs/namespace.c:3319
[<0000000082fa14d6>] __do_sys_mount fs/namespace.c:3333 [inline]
[<0000000082fa14d6>] __se_sys_mount fs/namespace.c:3330 [inline]
[<0000000082fa14d6>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3330
[<00000000ce916bab>] do_syscall_64+0x76/0x1a0
arch/x86/entry/common.c:301
[<0000000070865558>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff888118ef9360 (size 32):
comm "syz-executor400", pid 6973, jiffies 4294941906 (age 21.140s)
hex dump (first 32 bytes):
00 71 54 04 00 ea ff ff c0 6e 9a 04 00 ea ff ff .qT......n......
c0 0b 81 04 00 ea ff ff c0 05 86 04 00 ea ff ff ................
backtrace:
[<000000003e75bb46>] kmemleak_alloc_recursive
include/linux/kmemleak.h:43 [inline]
[<000000003e75bb46>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000003e75bb46>] slab_alloc mm/slab.c:3326 [inline]
[<000000003e75bb46>] __do_kmalloc mm/slab.c:3658 [inline]
[<000000003e75bb46>] __kmalloc_track_caller+0x15d/0x2c0 mm/slab.c:3675
[<0000000010f1326b>] kstrdup+0x3a/0x70 mm/util.c:52
[<0000000070b2f357>] nfs_alloc_client+0xbd/0x170 fs/nfs/client.c:169
[<000000007f1bdfa5>] nfs_get_client+0x1cb/0x500 fs/nfs/client.c:425
[<000000004dc18603>] nfs_init_server+0xc6/0x450 fs/nfs/client.c:671
[<0000000072615bbf>] nfs_create_server+0x83/0x1f0 fs/nfs/client.c:958
[<00000000d12e9a98>] nfs_try_mount+0x5a/0x350 fs/nfs/super.c:1883
[<00000000b2735769>] nfs_fs_mount+0x448/0xc52 fs/nfs/super.c:2719
[<000000000b19c7d0>] legacy_get_tree+0x27/0x80 fs/fs_context.c:661
[<00000000d4887a5c>] vfs_get_tree+0x2e/0x120 fs/super.c:1476
[<000000008eec78b0>] do_new_mount fs/namespace.c:2790 [inline]
[<000000008eec78b0>] do_mount+0x932/0xc50 fs/namespace.c:3110
[<00000000d0ad59a7>] ksys_mount+0xab/0x120 fs/namespace.c:3319
[<0000000082fa14d6>] __do_sys_mount fs/namespace.c:3333 [inline]
[<0000000082fa14d6>] __se_sys_mount fs/namespace.c:3330 [inline]
[<0000000082fa14d6>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3330
[<00000000ce916bab>] do_syscall_64+0x76/0x1a0
arch/x86/entry/common.c:301
[<0000000070865558>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff888121b91400 (size 1024):
comm "syz-executor400", pid 6969, jiffies 4294941900 (age 22.200s)
hex dump (first 32 bytes):
01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<000000009c69e9c0>] kmemleak_alloc_recursive
include/linux/kmemleak.h:43 [inline]
[<000000009c69e9c0>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000009c69e9c0>] slab_alloc mm/slab.c:3326 [inline]
[<000000009c69e9c0>] kmem_cache_alloc_trace+0x13d/0x280 mm/slab.c:3553
[<000000007d1011ce>] kmalloc include/linux/slab.h:547 [inline]
[<000000007d1011ce>] kzalloc include/linux/slab.h:742 [inline]
[<000000007d1011ce>] nfs_alloc_client+0x2e/0x170 fs/nfs/client.c:152
[<000000007f1bdfa5>] nfs_get_client+0x1cb/0x500 fs/nfs/client.c:425
[<000000004dc18603>] nfs_init_server+0xc6/0x450 fs/nfs/client.c:671
[<0000000072615bbf>] nfs_create_server+0x83/0x1f0 fs/nfs/client.c:958
[<00000000d12e9a98>] nfs_try_mount+0x5a/0x350 fs/nfs/super.c:1883
[<00000000b2735769>] nfs_fs_mount+0x448/0xc52 fs/nfs/super.c:2719
[<000000000b19c7d0>] legacy_get_tree+0x27/0x80 fs/fs_context.c:661
[<00000000d4887a5c>] vfs_get_tree+0x2e/0x120 fs/super.c:1476
[<000000008eec78b0>] do_new_mount fs/namespace.c:2790 [inline]
[<000000008eec78b0>] do_mount+0x932/0xc50 fs/namespace.c:3110
[<00000000d0ad59a7>] ksys_mount+0xab/0x120 fs/namespace.c:3319
[<0000000082fa14d6>] __do_sys_mount fs/namespace.c:3333 [inline]
[<0000000082fa14d6>] __se_sys_mount fs/namespace.c:3330 [inline]
[<0000000082fa14d6>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3330
[<00000000ce916bab>] do_syscall_64+0x76/0x1a0
arch/x86/entry/common.c:301
[<0000000070865558>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff88811e758400 (size 1024):
comm "syz-executor400", pid 6973, jiffies 4294941906 (age 22.140s)
hex dump (first 32 bytes):
01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<000000009c69e9c0>] kmemleak_alloc_recursive
include/linux/kmemleak.h:43 [inline]
[<000000009c69e9c0>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000009c69e9c0>] slab_alloc mm/slab.c:3326 [inline]
[<000000009c69e9c0>] kmem_cache_alloc_trace+0x13d/0x280 mm/slab.c:3553
[<000000007d1011ce>] kmalloc include/linux/slab.h:547 [inline]
[<000000007d1011ce>] kzalloc include/linux/slab.h:742 [inline]
[<000000007d1011ce>] nfs_alloc_client+0x2e/0x170 fs/nfs/client.c:152
[<000000007f1bdfa5>] nfs_get_client+0x1cb/0x500 fs/nfs/client.c:425
[<000000004dc18603>] nfs_init_server+0xc6/0x450 fs/nfs/client.c:671
[<0000000072615bbf>] nfs_create_server+0x83/0x1f0 fs/nfs/client.c:958
[<00000000d12e9a98>] nfs_try_mount+0x5a/0x350 fs/nfs/super.c:1883
[<00000000b2735769>] nfs_fs_mount+0x448/0xc52 fs/nfs/super.c:2719
[<000000000b19c7d0>] legacy_get_tree+0x27/0x80 fs/fs_context.c:661
[<00000000d4887a5c>] vfs_get_tree+0x2e/0x120 fs/super.c:1476
[<000000008eec78b0>] do_new_mount fs/namespace.c:2790 [inline]
[<000000008eec78b0>] do_mount+0x932/0xc50 fs/namespace.c:3110
[<00000000d0ad59a7>] ksys_mount+0xab/0x120 fs/namespace.c:3319
[<0000000082fa14d6>] __do_sys_mount fs/namespace.c:3333 [inline]
[<0000000082fa14d6>] __se_sys_mount fs/namespace.c:3330 [inline]
[<0000000082fa14d6>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3330
[<00000000ce916bab>] do_syscall_64+0x76/0x1a0
arch/x86/entry/common.c:301
[<0000000070865558>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff888118ef9360 (size 32):
comm "syz-executor400", pid 6973, jiffies 4294941906 (age 22.140s)
hex dump (first 32 bytes):
00 71 54 04 00 ea ff ff c0 6e 9a 04 00 ea ff ff .qT......n......
c0 0b 81 04 00 ea ff ff c0 05 86 04 00 ea ff ff ................
backtrace:
[<000000003e75bb46>] kmemleak_alloc_recursive
include/linux/kmemleak.h:43 [inline]
[<000000003e75bb46>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000003e75bb46>] slab_alloc mm/slab.c:3326 [inline]
[<000000003e75bb46>] __do_kmalloc mm/slab.c:3658 [inline]
[<000000003e75bb46>] __kmalloc_track_caller+0x15d/0x2c0 mm/slab.c:3675
[<0000000010f1326b>] kstrdup+0x3a/0x70 mm/util.c:52
[<0000000070b2f357>] nfs_alloc_client+0xbd/0x170 fs/nfs/client.c:169
[<000000007f1bdfa5>] nfs_get_client+0x1cb/0x500 fs/nfs/client.c:425
[<000000004dc18603>] nfs_init_server+0xc6/0x450 fs/nfs/client.c:671
[<0000000072615bbf>] nfs_create_server+0x83/0x1f0 fs/nfs/client.c:958
[<00000000d12e9a98>] nfs_try_mount+0x5a/0x350 fs/nfs/super.c:1883
[<00000000b2735769>] nfs_fs_mount+0x448/0xc52 fs/nfs/super.c:2719
[<000000000b19c7d0>] legacy_get_tree+0x27/0x80 fs/fs_context.c:661
[<00000000d4887a5c>] vfs_get_tree+0x2e/0x120 fs/super.c:1476
[<000000008eec78b0>] do_new_mount fs/namespace.c:2790 [inline]
[<000000008eec78b0>] do_mount+0x932/0xc50 fs/namespace.c:3110
[<00000000d0ad59a7>] ksys_mount+0xab/0x120 fs/namespace.c:3319
[<0000000082fa14d6>] __do_sys_mount fs/namespace.c:3333 [inline]
[<0000000082fa14d6>] __se_sys_mount fs/namespace.c:3330 [inline]
[<0000000082fa14d6>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3330
[<00000000ce916bab>] do_syscall_64+0x76/0x1a0
arch/x86/entry/common.c:301
[<0000000070865558>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff888121b91400 (size 1024):
comm "syz-executor400", pid 6969, jiffies 4294941900 (age 23.180s)
hex dump (first 32 bytes):
01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<000000009c69e9c0>] kmemleak_alloc_recursive
include/linux/kmemleak.h:43 [inline]
[<000000009c69e9c0>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000009c69e9c0>] slab_alloc mm/slab.c:3326 [inline]
[<000000009c69e9c0>] kmem_cache_alloc_trace+0x13d/0x280 mm/slab.c:3553
[<000000007d1011ce>] kmalloc include/linux/slab.h:547 [inline]
[<000000007d1011ce>] kzalloc include/linux/slab.h:742 [inline]
[<000000007d1011ce>] nfs_alloc_client+0x2e/0x170 fs/nfs/client.c:152
[<000000007f1bdfa5>] nfs_get_client+0x1cb/0x500 fs/nfs/client.c:425
[<000000004dc18603>] nfs_init_server+0xc6/0x450 fs/nfs/client.c:671
[<0000000072615bbf>] nfs_create_server+0x83/0x1f0 fs/nfs/client.c:958
[<00000000d12e9a98>] nfs_try_mount+0x5a/0x350 fs/nfs/super.c:1883
[<00000000b2735769>] nfs_fs_mount+0x448/0xc52 fs/nfs/super.c:2719
[<000000000b19c7d0>] legacy_get_tree+0x27/0x80 fs/fs_context.c:661
[<00000000d4887a5c>] vfs_get_tree+0x2e/0x120 fs/super.c:1476
[<000000008eec78b0>] do_new_mount fs/namespace.c:2790 [inline]
[<000000008eec78b0>] do_mount+0x932/0xc50 fs/namespace.c:3110
[<00000000d0ad59a7>] ksys_mount+0xab/0x120 fs/namespace.c:3319
[<0000000082fa14d6>] __do_sys_mount fs/namespace.c:3333 [inline]
[<0000000082fa14d6>] __se_sys_mount fs/namespace.c:3330 [inline]
[<0000000082fa14d6>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3330
[<00000000ce916bab>] do_syscall_64+0x76/0x1a0
arch/x86/entry/common.c:301
[<0000000070865558>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff88811e758400 (size 1024):
comm "syz-executor400", pid 6973, jiffies 4294941906 (age 23.120s)
hex dump (first 32 bytes):
01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<000000009c69e9c0>] kmemleak_alloc_recursive
include/linux/kmemleak.h:43 [inline]
[<000000009c69e9c0>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000009c69e9c0>] slab_alloc mm/slab.c:3326 [inline]
[<000000009c69e9c0>] kmem_cache_alloc_trace+0x13d/0x280 mm/slab.c:3553
[<000000007d1011ce>] kmalloc include/linux/slab.h:547 [inline]
[<000000007d1011ce>] kzalloc include/linux/slab.h:742 [inline]
[<000000007d1011ce>] nfs_alloc_client+0x2e/0x170 fs/nfs/client.c:152
[<000000007f1bdfa5>] nfs_get_client+0x1cb/0x500 fs/nfs/client.c:425
[<000000004dc18603>] nfs_init_server+0xc6/0x450 fs/nfs/client.c:671
[<0000000072615bbf>] nfs_create_server+0x83/0x1f0 fs/nfs/client.c:958
[<00000000d12e9a98>] nfs_try_mount+0x5a/0x350 fs/nfs/super.c:1883
[<00000000b2735769>] nfs_fs_mount+0x448/0xc52 fs/nfs/super.c:2719
[<000000000b19c7d0>] legacy_get_tree+0x27/0x80 fs/fs_context.c:661
[<00000000d4887a5c>] vfs_get_tree+0x2e/0x120 fs/super.c:1476
[<000000008eec78b0>] do_new_mount fs/namespace.c:2790 [inline]
[<000000008eec78b0>] do_mount+0x932/0xc50 fs/namespace.c:3110
[<00000000d0ad59a7>] ksys_mount+0xab/0x120 fs/namespace.c:3319
[<0000000082fa14d6>] __do_sys_mount fs/namespace.c:3333 [inline]
[<0000000082fa14d6>] __se_sys_mount fs/namespace.c:3330 [inline]
[<0000000082fa14d6>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3330
[<00000000ce916bab>] do_syscall_64+0x76/0x1a0
arch/x86/entry/common.c:301
[<0000000070865558>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff888118ef9360 (size 32):
comm "syz-executor400", pid 6973, jiffies 4294941906 (age 23.120s)
hex dump (first 32 bytes):
00 71 54 04 00 ea ff ff c0 6e 9a 04 00 ea ff ff .qT......n......
c0 0b 81 04 00 ea ff ff c0 05 86 04 00 ea ff ff ................
backtrace:
[<000000003e75bb46>] kmemleak_alloc_recursive
include/linux/kmemleak.h:43 [inline]
[<000000003e75bb46>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000003e75bb46>] slab_alloc mm/slab.c:3326 [inline]
[<000000003e75bb46>] __do_kmalloc mm/slab.c:3658 [inline]
[<000000003e75bb46>] __kmalloc_track_caller+0x15d/0x2c0 mm/slab.c:3675
[<0000000010f1326b>] kstrdup+0x3a/0x70 mm/util.c:52
[<0000000070b2f357>] nfs_alloc_client+0xbd/0x170 fs/nfs/client.c:169
[<000000007f1bdfa5>] nfs_get_client+0x1cb/0x500 fs/nfs/client.c:425
[<000000004dc18603>] nfs_init_server+0xc6/0x450 fs/nfs/client.c:671
[<0000000072615bbf>] nfs_create_server+0x83/0x1f0 fs/nfs/client.c:958
[<00000000d12e9a98>] nfs_try_mount+0x5a/0x350 fs/nfs/super.c:1883
[<00000000b2735769>] nfs_fs_mount+0x448/0xc52 fs/nfs/super.c:2719
[<000000000b19c7d0>] legacy_get_tree+0x27/0x80 fs/fs_context.c:661
[<00000000d4887a5c>] vfs_get_tree+0x2e/0x120 fs/super.c:1476
[<000000008eec78b0>] do_new_mount fs/namespace.c:2790 [inline]
[<000000008eec78b0>] do_mount+0x932/0xc50 fs/namespace.c:3110
[<00000000d0ad59a7>] ksys_mount+0xab/0x120 fs/namespace.c:3319
[<0000000082fa14d6>] __do_sys_mount fs/namespace.c:3333 [inline]
[<0000000082fa14d6>] __se_sys_mount fs/namespace.c:3330 [inline]
[<0000000082fa14d6>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3330
[<00000000ce916bab>] do_syscall_64+0x76/0x1a0
arch/x86/entry/common.c:301
[<0000000070865558>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff888121b91400 (size 1024):
comm "syz-executor400", pid 6969, jiffies 4294941900 (age 24.200s)
hex dump (first 32 bytes):
01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<000000009c69e9c0>] kmemleak_alloc_recursive
include/linux/kmemleak.h:43 [inline]
[<000000009c69e9c0>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000009c69e9c0>] slab_alloc mm/slab.c:3326 [inline]
[<000000009c69e9c0>] kmem_cache_alloc_trace+0x13d/0x280 mm/slab.c:3553
[<000000007d1011ce>] kmalloc include/linux/slab.h:547 [inline]
[<000000007d1011ce>] kzalloc include/linux/slab.h:742 [inline]
[<000000007d1011ce>] nfs_alloc_client+0x2e/0x170 fs/nfs/client.c:152
[<000000007f1bdfa5>] nfs_get_client+0x1cb/0x500 fs/nfs/client.c:425
[<000000004dc18603>] nfs_init_server+0xc6/0x450 fs/nfs/client.c:671
[<0000000072615bbf>] nfs_create_server+0x83/0x1f0 fs/nfs/client.c:958
[<00000000d12e9a98>] nfs_try_mount+0x5a/0x350 fs/nfs/super.c:1883
[<00000000b2735769>] nfs_fs_mount+0x448/0xc52 fs/nfs/super.c:2719
[<000000000b19c7d0>] legacy_get_tree+0x27/0x80 fs/fs_context.c:661
[<00000000d4887a5c>] vfs_get_tree+0x2e/0x120 fs/super.c:1476
[<000000008eec78b0>] do_new_mount fs/namespace.c:2790 [inline]
[<000000008eec78b0>] do_mount+0x932/0xc50 fs/namespace.c:3110
[<00000000d0ad59a7>] ksys_mount+0xab/0x120 fs/namespace.c:3319
[<0000000082fa14d6>] __do_sys_mount fs/namespace.c:3333 [inline]
[<0000000082fa14d6>] __se_sys_mount fs/namespace.c:3330 [inline]
[<0000000082fa14d6>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3330
[<00000000ce916bab>] do_syscall_64+0x76/0x1a0
arch/x86/entry/common.c:301
[<0000000070865558>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff88811e758400 (size 1024):
comm "syz-executor400", pid 6973, jiffies 4294941906 (age 24.140s)
hex dump (first 32 bytes):
01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<000000009c69e9c0>] kmemleak_alloc_recursive
include/linux/kmemleak.h:43 [inline]
[<000000009c69e9c0>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000009c69e9c0>] slab_alloc mm/slab.c:3326 [inline]
[<000000009c69e9c0>] kmem_cache_alloc_trace+0x13d/0x280 mm/slab.c:3553
[<000000007d1011ce>] kmalloc include/linux/slab.h:547 [inline]
[<000000007d1011ce>] kzalloc include/linux/slab.h:742 [inline]
[<000000007d1011ce>] nfs_alloc_client+0x2e/0x170 fs/nfs/client.c:152
[<000000007f1bdfa5>] nfs_get_client+0x1cb/0x500 fs/nfs/client.c:425
[<000000004dc18603>] nfs_init_server+0xc6/0x450 fs/nfs/client.c:671
[<0000000072615bbf>] nfs_create_server+0x83/0x1f0 fs/nfs/client.c:958
[<00000000d12e9a98>] nfs_try_mount+0x5a/0x350 fs/nfs/super.c:1883
[<00000000b2735769>] nfs_fs_mount+0x448/0xc52 fs/nfs/super.c:2719
[<000000000b19c7d0>] legacy_get_tree+0x27/0x80 fs/fs_context.c:661
[<00000000d4887a5c>] vfs_get_tree+0x2e/0x120 fs/super.c:1476
[<000000008eec78b0>] do_new_mount fs/namespace.c:2790 [inline]
[<000000008eec78b0>] do_mount+0x932/0xc50 fs/namespace.c:3110
[<00000000d0ad59a7>] ksys_mount+0xab/0x120 fs/namespace.c:3319
[<0000000082fa14d6>] __do_sys_mount fs/namespace.c:3333 [inline]
[<0000000082fa14d6>] __se_sys_mount fs/namespace.c:3330 [inline]
[<0000000082fa14d6>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3330
[<00000000ce916bab>] do_syscall_64+0x76/0x1a0
arch/x86/entry/common.c:301
[<0000000070865558>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff888118ef9360 (size 32):
comm "syz-executor400", pid 6973, jiffies 4294941906 (age 24.140s)
hex dump (first 32 bytes):
00 71 54 04 00 ea ff ff c0 6e 9a 04 00 ea ff ff .qT......n......
c0 0b 81 04 00 ea ff ff c0 05 86 04 00 ea ff ff ................
backtrace:
[<000000003e75bb46>] kmemleak_alloc_recursive
include/linux/kmemleak.h:43 [inline]
[<000000003e75bb46>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000003e75bb46>] slab_alloc mm/slab.c:3326 [inline]
[<000000003e75bb46>] __do_kmalloc mm/slab.c:3658 [inline]
[<000000003e75bb46>] __kmalloc_track_caller+0x15d/0x2c0 mm/slab.c:3675
[<0000000010f1326b>] kstrdup+0x3a/0x70 mm/util.c:52
[<0000000070b2f357>] nfs_alloc_client+0xbd/0x170 fs/nfs/client.c:169
[<000000007f1bdfa5>] nfs_get_client+0x1cb/0x500 fs/nfs/client.c:425
[<000000004dc18603>] nfs_init_server+0xc6/0x450 fs/nfs/client.c:671
[<0000000072615bbf>] nfs_create_server+0x83/0x1f0 fs/nfs/client.c:958
[<00000000d12e9a98>] nfs_try_mount+0x5a/0x350 fs/nfs/super.c:1883
[<00000000b2735769>] nfs_fs_mount+0x448/0xc52 fs/nfs/super.c:2719
[<000000000b19c7d0>] legacy_get_tree+0x27/0x80 fs/fs_context.c:661
[<00000000d4887a5c>] vfs_get_tree+0x2e/0x120 fs/super.c:1476
[<000000008eec78b0>] do_new_mount fs/namespace.c:2790 [inline]
[<000000008eec78b0>] do_mount+0x932/0xc50 fs/namespace.c:3110
[<00000000d0ad59a7>] ksys_mount+0xab/0x120 fs/namespace.c:3319
[<0000000082fa14d6>] __do_sys_mount fs/namespace.c:3333 [inline]
[<0000000082fa14d6>] __se_sys_mount fs/namespace.c:3330 [inline]
[<0000000082fa14d6>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3330
[<00000000ce916bab>] do_syscall_64+0x76/0x1a0
arch/x86/entry/common.c:301
[<0000000070865558>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff888121b91400 (size 1024):
comm "syz-executor400", pid 6969, jiffies 4294941900 (age 25.180s)
hex dump (first 32 bytes):
01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<000000009c69e9c0>] kmemleak_alloc_recursive
include/linux/kmemleak.h:43 [inline]
[<000000009c69e9c0>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000009c69e9c0>] slab_alloc mm/slab.c:3326 [inline]
[<000000009c69e9c0>] kmem_cache_alloc_trace+0x13d/0x280 mm/slab.c:3553
[<000000007d1011ce>] kmalloc include/linux/slab.h:547 [inline]
[<000000007d1011ce>] kzalloc include/linux/slab.h:742 [inline]
[<000000007d1011ce>] nfs_alloc_client+0x2e/0x170 fs/nfs/client.c:152
[<000000007f1bdfa5>] nfs_get_client+0x1cb/0x500 fs/nfs/client.c:425
[<000000004dc18603>] nfs_init_server+0xc6/0x450 fs/nfs/client.c:671
[<0000000072615bbf>] nfs_create_server+0x83/0x1f0 fs/nfs/client.c:958
[<00000000d12e9a98>] nfs_try_mount+0x5a/0x350 fs/nfs/super.c:1883
[<00000000b2735769>] nfs_fs_mount+0x448/0xc52 fs/nfs/super.c:2719
[<000000000b19c7d0>] legacy_get_tree+0x27/0x80 fs/fs_context.c:661
[<00000000d4887a5c>] vfs_get_tree+0x2e/0x120 fs/super.c:1476
[<000000008eec78b0>] do_new_mount fs/namespace.c:2790 [inline]
[<000000008eec78b0>] do_mount+0x932/0xc50 fs/namespace.c:3110
[<00000000d0ad59a7>] ksys_mount+0xab/0x120 fs/namespace.c:3319
[<0000000082fa14d6>] __do_sys_mount fs/namespace.c:3333 [inline]
[<0000000082fa14d6>] __se_sys_mount fs/namespace.c:3330 [inline]
[<0000000082fa14d6>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3330
[<00000000ce916bab>] do_syscall_64+0x76/0x1a0
arch/x86/entry/common.c:301
[<0000000070865558>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff88811e758400 (size 1024):
comm "syz-executor400", pid 6973, jiffies 4294941906 (age 25.120s)
hex dump (first 32 bytes):
01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<000000009c69e9c0>] kmemleak_alloc_recursive
include/linux/kmemleak.h:43 [inline]
[<000000009c69e9c0>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000009c69e9c0>] slab_alloc mm/slab.c:3326 [inline]
[<000000009c69e9c0>] kmem_cache_alloc_trace+0x13d/0x280 mm/slab.c:3553
[<000000007d1011ce>] kmalloc include/linux/slab.h:547 [inline]
[<000000007d1011ce>] kzalloc include/linux/slab.h:742 [inline]
[<000000007d1011ce>] nfs_alloc_client+0x2e/0x170 fs/nfs/client.c:152
[<000000007f1bdfa5>] nfs_get_client+0x1cb/0x500 fs/nfs/client.c:425
[<000000004dc18603>] nfs_init_server+0xc6/0x450 fs/nfs/client.c:671
[<0000000072615bbf>] nfs_create_server+0x83/0x1f0 fs/nfs/client.c:958
[<00000000d12e9a98>] nfs_try_mount+0x5a/0x350 fs/nfs/super.c:1883
[<00000000b2735769>] nfs_fs_mount+0x448/0xc52 fs/nfs/super.c:2719
[<000000000b19c7d0>] legacy_get_tree+0x27/0x80 fs/fs_context.c:661
[<00000000d4887a5c>] vfs_get_tree+0x2e/0x120 fs/super.c:1476
[<000000008eec78b0>] do_new_mount fs/namespace.c:2790 [inline]
[<000000008eec78b0>] do_mount+0x932/0xc50 fs/namespace.c:3110
[<00000000d0ad59a7>] ksys_mount+0xab/0x120 fs/namespace.c:3319
[<0000000082fa14d6>] __do_sys_mount fs/namespace.c:3333 [inline]
[<0000000082fa14d6>] __se_sys_mount fs/namespace.c:3330 [inline]
[<0000000082fa14d6>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3330
[<00000000ce916bab>] do_syscall_64+0x76/0x1a0
arch/x86/entry/common.c:301
[<0000000070865558>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff888118ef9360 (size 32):
comm "syz-executor400", pid 6973, jiffies 4294941906 (age 25.120s)
hex dump (first 32 bytes):
00 71 54 04 00 ea ff ff c0 6e 9a 04 00 ea ff ff .qT......n......
c0 0b 81 04 00 ea ff ff c0 05 86 04 00 ea ff ff ................
backtrace:
[<000000003e75bb46>] kmemleak_alloc_recursive
include/linux/kmemleak.h:43 [inline]
[<000000003e75bb46>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000003e75bb46>] slab_alloc mm/slab.c:3326 [inline]
[<000000003e75bb46>] __do_kmalloc mm/slab.c:3658 [inline]
[<000000003e75bb46>] __kmalloc_track_caller+0x15d/0x2c0 mm/slab.c:3675
[<0000000010f1326b>] kstrdup+0x3a/0x70 mm/util.c:52
[<0000000070b2f357>] nfs_alloc_client+0xbd/0x170 fs/nfs/client.c:169
[<000000007f1bdfa5>] nfs_get_client+0x1cb/0x500 fs/nfs/client.c:425
[<000000004dc18603>] nfs_init_server+0xc6/0x450 fs/nfs/client.c:671
[<0000000072615bbf>] nfs_create_server+0x83/0x1f0 fs/nfs/client.c:958
[<00000000d12e9a98>] nfs_try_mount+0x5a/0x350 fs/nfs/super.c:1883
[<00000000b2735769>] nfs_fs_mount+0x448/0xc52 fs/nfs/super.c:2719
[<000000000b19c7d0>] legacy_get_tree+0x27/0x80 fs/fs_context.c:661
[<00000000d4887a5c>] vfs_get_tree+0x2e/0x120 fs/super.c:1476
[<000000008eec78b0>] do_new_mount fs/namespace.c:2790 [inline]
[<000000008eec78b0>] do_mount+0x932/0xc50 fs/namespace.c:3110
[<00000000d0ad59a7>] ksys_mount+0xab/0x120 fs/namespace.c:3319
[<0000000082fa14d6>] __do_sys_mount fs/namespace.c:3333 [inline]
[<0000000082fa14d6>] __se_sys_mount fs/namespace.c:3330 [inline]
[<0000000082fa14d6>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3330
[<00000000ce916bab>] do_syscall_64+0x76/0x1a0
arch/x86/entry/common.c:301
[<0000000070865558>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

executing program


---
This bug is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
syzbot can test patches for this bug, for details see:
https://goo.gl/tpsmEJ#testing-patches

Hillf Danton

unread,
Jun 11, 2019, 11:31:07 AM6/11/19
to syzbot, anna.sc...@netapp.com, linux-...@vger.kernel.org, linu...@vger.kernel.org, syzkall...@googlegroups.com, trond.m...@hammerspace.com

Hello Syzbot

On Mon, 10 Jun 2019 21:05:07 -0700 (PDT) syzbot wrote:
> Hello,
>
> syzbot found the following crash on:
>
> HEAD commit: d1fdb6d8 Linux 5.2-rc4
> git tree: upstream
> console output: https://syzkaller.appspot.com/x/log.txt?x=117e0f71a00000
> kernel config: https://syzkaller.appspot.com/x/.config?x=cb38d33cd06d8d48
> dashboard link: https://syzkaller.appspot.com/bug?extid=7fe11b49c1cc30e3fce2
> compiler: gcc (GCC) 9.0.0 20181231 (experimental)
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15a46001a00000
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=174b24d1a00000
>
> IMPORTANT: if you fix the bug, please add the following tag to the commit:
> Reported-by: syzbot+7fe11b...@syzkaller.appspotmail.com
>
[duplicated dump info trimed]

Ignore my noise if you have no interest seeing the syzbot report.

It took more than five hours to get the stuff for putting into reply to
the report, in hope that it may help you perhaps reproduce or handle the
report, but no diff tonight. My local time is now 22:55, 11 Jun 2019.

In commit 212bf41d88c ("fs, nfs: convert nfs_client.cl_count from
atomic_t to refcount_t"), seemingly trivial changes were added. Just the
first a few glances at the subject line, with an eye on the dump info in
this report, hinted it is worth scrutinising more than two mugs of black
tea, but nothing was found at the end of the first two/three hours.

I have no idea how hours lapsed away before noting, at least by their
comments, atomic_dec_and_lock() is a bit different from
refcount_dec_and_lock(). And there is not some material about that
difference in the log, sigh.

Thanks
Hillf

Benjamin Coddington

unread,
Jun 11, 2019, 12:23:35 PM6/11/19
to syzbot, anna.sc...@netapp.com, linux-...@vger.kernel.org, linu...@vger.kernel.org, syzkall...@googlegroups.com, trond.m...@hammerspace.com
Ugh.. Now that you can cancel the wait, you have to also handle if "new"
was allocated. I think this needs:

diff --git a/fs/nfs/client.c b/fs/nfs/client.c
index d7e4f0848e28..4d90f5bf0b0a 100644
--- a/fs/nfs/client.c
+++ b/fs/nfs/client.c
@@ -406,10 +406,10 @@ struct nfs_client *nfs_get_client(const struct
nfs_client_initdata *cl_init)
clp = nfs_match_client(cl_init);
if (clp) {
spin_unlock(&nn->nfs_client_lock);
- if (IS_ERR(clp))
- return clp;
if (new)
new->rpc_ops->free_client(new);
+ if (IS_ERR(clp))
+ return clp;
return nfs_found_client(cl_init, clp);
}
if (new) {

I'll patch/test and send it along.

Ben

Hillf Danton

unread,
Jun 12, 2019, 9:43:40 AM6/12/19
to syzbot, anna.sc...@netapp.com, linux-...@vger.kernel.org, linu...@vger.kernel.org, syzkall...@googlegroups.com, trond.m...@hammerspace.com

Hello Syzbot

On Mon, 10 Jun 2019 21:05:07 -0700 (PDT) syzbot wrote:
> Hello,
>
> syzbot found the following crash on:
>
> HEAD commit: d1fdb6d8 Linux 5.2-rc4
> git tree: upstream
> console output: https://syzkaller.appspot.com/x/log.txt?x=117e0f71a00000
> kernel config: https://syzkaller.appspot.com/x/.config?x=cb38d33cd06d8d48
> dashboard link: https://syzkaller.appspot.com/bug?extid=7fe11b49c1cc30e3fce2
> compiler: gcc (GCC) 9.0.0 20181231 (experimental)
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15a46001a00000
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=174b24d1a00000
>
> IMPORTANT: if you fix the bug, please add the following tag to the commit:
> Reported-by: syzbot+7fe11b...@syzkaller.appspotmail.com
>
[duplicated dump info trimmed]

Ignore my noise if you have no interest seeing the syzbot report.

The following tiny diff, made in hope that it may help you perhaps handle or
reproduce the memory leak, releases the current client before switching to
the new one which is claimed to be freed somewhere else.


Thanks
Hillf
---
fs/nfs/callback_proc.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/fs/nfs/callback_proc.c b/fs/nfs/callback_proc.c
index 3159673..402b15d 100644
--- a/fs/nfs/callback_proc.c
+++ b/fs/nfs/callback_proc.c
@@ -568,6 +568,7 @@ out_unlock:
spin_unlock(&tbl->slot_tbl_lock);

out:
+ nfs_put_client(cps->clp);
cps->clp = clp; /* put in nfs4_callback_compound */
for (i = 0; i < args->csa_nrclists; i++)
kfree(args->csa_rclists[i].rcl_refcalls);
--

Eric Biggers

unread,
Jul 2, 2019, 2:31:43 AM7/2/19
to Benjamin Coddington, syzbot, anna.sc...@netapp.com, linux-...@vger.kernel.org, linu...@vger.kernel.org, syzkall...@googlegroups.com, trond.m...@hammerspace.com
On Tue, Jun 11, 2019 at 12:23:12PM -0400, Benjamin Coddington wrote:
> Ugh.. Now that you can cancel the wait, you have to also handle if "new" was
> allocated. I think this needs:
>
> diff --git a/fs/nfs/client.c b/fs/nfs/client.c
> index d7e4f0848e28..4d90f5bf0b0a 100644
> --- a/fs/nfs/client.c
> +++ b/fs/nfs/client.c
> @@ -406,10 +406,10 @@ struct nfs_client *nfs_get_client(const struct
> nfs_client_initdata *cl_init)
> clp = nfs_match_client(cl_init);
> if (clp) {
> spin_unlock(&nn->nfs_client_lock);
> - if (IS_ERR(clp))
> - return clp;
> if (new)
> new->rpc_ops->free_client(new);
> + if (IS_ERR(clp))
> + return clp;
> return nfs_found_client(cl_init, clp);
> }
> if (new) {
>
> I'll patch/test and send it along.
>
> Ben

Hi Ben, what happened to this patch?

- Eric

Benjamin Coddington

unread,
Jul 2, 2019, 7:23:58 AM7/2/19
to Eric Biggers, syzbot, anna.sc...@netapp.com, linux-...@vger.kernel.org, linu...@vger.kernel.org, syzkall...@googlegroups.com, trond.m...@hammerspace.com
I sent it along:

https://lore.kernel.org/linux-nfs/65b675cec79d140df64bc30def88b1de...@redhat.com/

I don't think it will go in 5.2.. it's not a huge problem.

Ben

Eric Biggers

unread,
Jul 2, 2019, 12:11:13 PM7/2/19
to Benjamin Coddington, syzbot, anna.sc...@netapp.com, linux-...@vger.kernel.org, linu...@vger.kernel.org, syzkall...@googlegroups.com, trond.m...@hammerspace.com
Okay, great. I didn't see it in linux-next and there was no further reply to
this thread, which usually (having seen it happen on lots of syzbot bugs) means
the person forgot about it.

Tip: you can use the '--in-reply-to=<MESSAGE_ID>' option to 'git send-email' or
'git format-patch' to send the patch in response to the original thread, which
makes it very easy to see that a patch was actually sent out.

- Eric

Benjamin Coddington

unread,
Jul 2, 2019, 2:29:54 PM7/2/19
to Eric Biggers, syzbot, anna.sc...@netapp.com, linux-...@vger.kernel.org, linu...@vger.kernel.org, syzkall...@googlegroups.com, trond.m...@hammerspace.com
Yep, that's nice for those following along, but sometimes I think that
makes
it harder for the maintainers to scrape the patches off the list. I've
had
patches get dropped that were buried at the end of a long discussion, so
I've made a habit of always making patches the top.

Ben
Reply all
Reply to author
Forward
0 new messages