memory leak in v9fs_cache_session_get_cookie

From: syzbot
Date: Tue May 21 2019 - 09:41:41 EST


Hello,

syzbot found the following crash on:

HEAD commit: f49aa1de Merge tag 'for-5.2-rc1-tag' of git://git.kernel.o..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=1224e228a00000
kernel config: https://syzkaller.appspot.com/x/.config?x=61dd9e15a761691d
dashboard link: https://syzkaller.appspot.com/bug?extid=3a030a73b6c1e9833815
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=17ffe1f8a00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=151e66bca00000

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+3a030a73b6c1e9833815@xxxxxxxxxxxxxxxxxxxxxxxxx

fl=222 nc=0 na=1]
BUG: memory leak
unreferenced object 0xffff88811d5b7ce0 (size 32):
comm "syz-executor234", pid 7220, jiffies 4294945629 (age 16.870s)
hex dump (first 32 bytes):
34 32 39 34 39 34 35 36 32 39 00 00 00 00 00 00 4294945629......
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<000000002cabdadb>] kmemleak_alloc_recursive include/linux/kmemleak.h:55 [inline]
[<000000002cabdadb>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000002cabdadb>] slab_alloc mm/slab.c:3326 [inline]
[<000000002cabdadb>] kmem_cache_alloc_trace+0x13d/0x280 mm/slab.c:3553
[<00000000c9696bd2>] kmalloc include/linux/slab.h:547 [inline]
[<00000000c9696bd2>] v9fs_random_cachetag fs/9p/cache.c:51 [inline]
[<00000000c9696bd2>] v9fs_cache_session_get_cookie+0xa6/0x100 fs/9p/cache.c:67
[<000000009f2e3d4c>] v9fs_session_init+0x5c3/0x880 fs/9p/v9fs.c:485
[<000000003e76ac4c>] v9fs_mount+0x5e/0x3a0 fs/9p/vfs_super.c:135
[<00000000de1b2937>] legacy_get_tree+0x27/0x80 fs/fs_context.c:665
[<000000009d8e25aa>] vfs_get_tree+0x2e/0x120 fs/super.c:1476
[<0000000012e90ac4>] do_new_mount fs/namespace.c:2790 [inline]
[<0000000012e90ac4>] do_mount+0x932/0xc50 fs/namespace.c:3110
[<0000000055e18c39>] ksys_mount+0xab/0x120 fs/namespace.c:3319
[<000000003fbb869f>] __do_sys_mount fs/namespace.c:3333 [inline]
[<000000003fbb869f>] __se_sys_mount fs/namespace.c:3330 [inline]
[<000000003fbb869f>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3330
[<000000005a440e8e>] do_syscall_64+0x76/0x1a0 arch/x86/entry/common.c:301
[<0000000091465610>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff888114735700 (size 32):
comm "syz-executor234", pid 7227, jiffies 4294945629 (age 16.870s)
hex dump (first 32 bytes):
34 32 39 34 39 34 35 36 32 39 00 00 00 00 00 00 4294945629......
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<000000002cabdadb>] kmemleak_alloc_recursive include/linux/kmemleak.h:55 [inline]
[<000000002cabdadb>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000002cabdadb>] slab_alloc mm/slab.c:3326 [inline]
[<000000002cabdadb>] kmem_cache_alloc_trace+0x13d/0x280 mm/slab.c:3553
[<00000000c9696bd2>] kmalloc include/linux/slab.h:547 [inline]
[<00000000c9696bd2>] v9fs_random_cachetag fs/9p/cache.c:51 [inline]
[<00000000c9696bd2>] v9fs_cache_session_get_cookie+0xa6/0x100 fs/9p/cache.c:67
[<000000009f2e3d4c>] v9fs_session_init+0x5c3/0x880 fs/9p/v9fs.c:485
[<000000003e76ac4c>] v9fs_mount+0x5e/0x3a0 fs/9p/vfs_super.c:135
[<00000000de1b2937>] legacy_get_tree+0x27/0x80 fs/fs_context.c:665
[<000000009d8e25aa>] vfs_get_tree+0x2e/0x120 fs/super.c:1476
[<0000000012e90ac4>] do_new_mount fs/namespace.c:2790 [inline]
[<0000000012e90ac4>] do_mount+0x932/0xc50 fs/namespace.c:3110
[<0000000055e18c39>] ksys_mount+0xab/0x120 fs/namespace.c:3319
[<000000003fbb869f>] __do_sys_mount fs/namespace.c:3333 [inline]
[<000000003fbb869f>] __se_sys_mount fs/namespace.c:3330 [inline]
[<000000003fbb869f>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3330
[<000000005a440e8e>] do_syscall_64+0x76/0x1a0 arch/x86/entry/common.c:301
[<0000000091465610>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff88811d5b7860 (size 32):
comm "syz-executor234", pid 7225, jiffies 4294945634 (age 16.820s)
hex dump (first 32 bytes):
34 32 39 34 39 34 35 36 33 34 00 00 00 00 00 00 4294945634......
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<000000002cabdadb>] kmemleak_alloc_recursive include/linux/kmemleak.h:55 [inline]
[<000000002cabdadb>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000002cabdadb>] slab_alloc mm/slab.c:3326 [inline]
[<000000002cabdadb>] kmem_cache_alloc_trace+0x13d/0x280 mm/slab.c:3553
[<00000000c9696bd2>] kmalloc include/linux/slab.h:547 [inline]
[<00000000c9696bd2>] v9fs_random_cachetag fs/9p/cache.c:51 [inline]
[<00000000c9696bd2>] v9fs_cache_session_get_cookie+0xa6/0x100 fs/9p/cache.c:67
[<000000009f2e3d4c>] v9fs_session_init+0x5c3/0x880 fs/9p/v9fs.c:485
[<000000003e76ac4c>] v9fs_mount+0x5e/0x3a0 fs/9p/vfs_super.c:135
[<00000000de1b2937>] legacy_get_tree+0x27/0x80 fs/fs_context.c:665
[<000000009d8e25aa>] vfs_get_tree+0x2e/0x120 fs/super.c:1476
[<0000000012e90ac4>] do_new_mount fs/namespace.c:2790 [inline]
[<0000000012e90ac4>] do_mount+0x932/0xc50 fs/namespace.c:3110
[<0000000055e18c39>] ksys_mount+0xab/0x120 fs/namespace.c:3319
[<000000003fbb869f>] __do_sys_mount fs/namespace.c:3333 [inline]
[<000000003fbb869f>] __se_sys_mount fs/namespace.c:3330 [inline]
[<000000003fbb869f>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3330
[<000000005a440e8e>] do_syscall_64+0x76/0x1a0 arch/x86/entry/common.c:301
[<0000000091465610>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff88811d5b7ce0 (size 32):
comm "syz-executor234", pid 7220, jiffies 4294945629 (age 17.810s)
hex dump (first 32 bytes):
34 32 39 34 39 34 35 36 32 39 00 00 00 00 00 00 4294945629......
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<000000002cabdadb>] kmemleak_alloc_recursive include/linux/kmemleak.h:55 [inline]
[<000000002cabdadb>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000002cabdadb>] slab_alloc mm/slab.c:3326 [inline]
[<000000002cabdadb>] kmem_cache_alloc_trace+0x13d/0x280 mm/slab.c:3553
[<00000000c9696bd2>] kmalloc include/linux/slab.h:547 [inline]
[<00000000c9696bd2>] v9fs_random_cachetag fs/9p/cache.c:51 [inline]
[<00000000c9696bd2>] v9fs_cache_session_get_cookie+0xa6/0x100 fs/9p/cache.c:67
[<000000009f2e3d4c>] v9fs_session_init+0x5c3/0x880 fs/9p/v9fs.c:485
[<000000003e76ac4c>] v9fs_mount+0x5e/0x3a0 fs/9p/vfs_super.c:135
[<00000000de1b2937>] legacy_get_tree+0x27/0x80 fs/fs_context.c:665
[<000000009d8e25aa>] vfs_get_tree+0x2e/0x120 fs/super.c:1476
[<0000000012e90ac4>] do_new_mount fs/namespace.c:2790 [inline]
[<0000000012e90ac4>] do_mount+0x932/0xc50 fs/namespace.c:3110
[<0000000055e18c39>] ksys_mount+0xab/0x120 fs/namespace.c:3319
[<000000003fbb869f>] __do_sys_mount fs/namespace.c:3333 [inline]
[<000000003fbb869f>] __se_sys_mount fs/namespace.c:3330 [inline]
[<000000003fbb869f>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3330
[<000000005a440e8e>] do_syscall_64+0x76/0x1a0 arch/x86/entry/common.c:301
[<0000000091465610>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff888114735700 (size 32):
comm "syz-executor234", pid 7227, jiffies 4294945629 (age 17.810s)
hex dump (first 32 bytes):
34 32 39 34 39 34 35 36 32 39 00 00 00 00 00 00 4294945629......
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<000000002cabdadb>] kmemleak_alloc_recursive include/linux/kmemleak.h:55 [inline]
[<000000002cabdadb>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000002cabdadb>] slab_alloc mm/slab.c:3326 [inline]
[<000000002cabdadb>] kmem_cache_alloc_trace+0x13d/0x280 mm/slab.c:3553
[<00000000c9696bd2>] kmalloc include/linux/slab.h:547 [inline]
[<00000000c9696bd2>] v9fs_random_cachetag fs/9p/cache.c:51 [inline]
[<00000000c9696bd2>] v9fs_cache_session_get_cookie+0xa6/0x100 fs/9p/cache.c:67
[<000000009f2e3d4c>] v9fs_session_init+0x5c3/0x880 fs/9p/v9fs.c:485
[<000000003e76ac4c>] v9fs_mount+0x5e/0x3a0 fs/9p/vfs_super.c:135
[<00000000de1b2937>] legacy_get_tree+0x27/0x80 fs/fs_context.c:665
[<000000009d8e25aa>] vfs_get_tree+0x2e/0x120 fs/super.c:1476
[<0000000012e90ac4>] do_new_mount fs/namespace.c:2790 [inline]
[<0000000012e90ac4>] do_mount+0x932/0xc50 fs/namespace.c:3110
[<0000000055e18c39>] ksys_mount+0xab/0x120 fs/namespace.c:3319
[<000000003fbb869f>] __do_sys_mount fs/namespace.c:3333 [inline]
[<000000003fbb869f>] __se_sys_mount fs/namespace.c:3330 [inline]
[<000000003fbb869f>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3330
[<000000005a440e8e>] do_syscall_64+0x76/0x1a0 arch/x86/entry/common.c:301
[<0000000091465610>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff88811d5b7860 (size 32):
comm "syz-executor234", pid 7225, jiffies 4294945634 (age 17.760s)
hex dump (first 32 bytes):
34 32 39 34 39 34 35 36 33 34 00 00 00 00 00 00 4294945634......
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<000000002cabdadb>] kmemleak_alloc_recursive include/linux/kmemleak.h:55 [inline]
[<000000002cabdadb>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000002cabdadb>] slab_alloc mm/slab.c:3326 [inline]
[<000000002cabdadb>] kmem_cache_alloc_trace+0x13d/0x280 mm/slab.c:3553
[<00000000c9696bd2>] kmalloc include/linux/slab.h:547 [inline]
[<00000000c9696bd2>] v9fs_random_cachetag fs/9p/cache.c:51 [inline]
[<00000000c9696bd2>] v9fs_cache_session_get_cookie+0xa6/0x100 fs/9p/cache.c:67
[<000000009f2e3d4c>] v9fs_session_init+0x5c3/0x880 fs/9p/v9fs.c:485
[<000000003e76ac4c>] v9fs_mount+0x5e/0x3a0 fs/9p/vfs_super.c:135
[<00000000de1b2937>] legacy_get_tree+0x27/0x80 fs/fs_context.c:665
[<000000009d8e25aa>] vfs_get_tree+0x2e/0x120 fs/super.c:1476
[<0000000012e90ac4>] do_new_mount fs/namespace.c:2790 [inline]
[<0000000012e90ac4>] do_mount+0x932/0xc50 fs/namespace.c:3110
[<0000000055e18c39>] ksys_mount+0xab/0x120 fs/namespace.c:3319
[<000000003fbb869f>] __do_sys_mount fs/namespace.c:3333 [inline]
[<000000003fbb869f>] __se_sys_mount fs/namespace.c:3330 [inline]
[<000000003fbb869f>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3330
[<000000005a440e8e>] do_syscall_64+0x76/0x1a0 arch/x86/entry/common.c:301
[<0000000091465610>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff88811d5b7ce0 (size 32):
comm "syz-executor234", pid 7220, jiffies 4294945629 (age 18.730s)
hex dump (first 32 bytes):
34 32 39 34 39 34 35 36 32 39 00 00 00 00 00 00 4294945629......
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<000000002cabdadb>] kmemleak_alloc_recursive include/linux/kmemleak.h:55 [inline]
[<000000002cabdadb>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000002cabdadb>] slab_alloc mm/slab.c:3326 [inline]
[<000000002cabdadb>] kmem_cache_alloc_trace+0x13d/0x280 mm/slab.c:3553
[<00000000c9696bd2>] kmalloc include/linux/slab.h:547 [inline]
[<00000000c9696bd2>] v9fs_random_cachetag fs/9p/cache.c:51 [inline]
[<00000000c9696bd2>] v9fs_cache_session_get_cookie+0xa6/0x100 fs/9p/cache.c:67
[<000000009f2e3d4c>] v9fs_session_init+0x5c3/0x880 fs/9p/v9fs.c:485
[<000000003e76ac4c>] v9fs_mount+0x5e/0x3a0 fs/9p/vfs_super.c:135
[<00000000de1b2937>] legacy_get_tree+0x27/0x80 fs/fs_context.c:665
[<000000009d8e25aa>] vfs_get_tree+0x2e/0x120 fs/super.c:1476
[<0000000012e90ac4>] do_new_mount fs/namespace.c:2790 [inline]
[<0000000012e90ac4>] do_mount+0x932/0xc50 fs/namespace.c:3110
[<0000000055e18c39>] ksys_mount+0xab/0x120 fs/namespace.c:3319
[<000000003fbb869f>] __do_sys_mount fs/namespace.c:3333 [inline]
[<000000003fbb869f>] __se_sys_mount fs/namespace.c:3330 [inline]
[<000000003fbb869f>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3330
[<000000005a440e8e>] do_syscall_64+0x76/0x1a0 arch/x86/entry/common.c:301
[<0000000091465610>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff888114735700 (size 32):
comm "syz-executor234", pid 7227, jiffies 4294945629 (age 18.730s)
hex dump (first 32 bytes):
34 32 39 34 39 34 35 36 32 39 00 00 00 00 00 00 4294945629......
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<000000002cabdadb>] kmemleak_alloc_recursive include/linux/kmemleak.h:55 [inline]
[<000000002cabdadb>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000002cabdadb>] slab_alloc mm/slab.c:3326 [inline]
[<000000002cabdadb>] kmem_cache_alloc_trace+0x13d/0x280 mm/slab.c:3553
[<00000000c9696bd2>] kmalloc include/linux/slab.h:547 [inline]
[<00000000c9696bd2>] v9fs_random_cachetag fs/9p/cache.c:51 [inline]
[<00000000c9696bd2>] v9fs_cache_session_get_cookie+0xa6/0x100 fs/9p/cache.c:67
[<000000009f2e3d4c>] v9fs_session_init+0x5c3/0x880 fs/9p/v9fs.c:485
[<000000003e76ac4c>] v9fs_mount+0x5e/0x3a0 fs/9p/vfs_super.c:135
[<00000000de1b2937>] legacy_get_tree+0x27/0x80 fs/fs_context.c:665
[<000000009d8e25aa>] vfs_get_tree+0x2e/0x120 fs/super.c:1476
[<0000000012e90ac4>] do_new_mount fs/namespace.c:2790 [inline]
[<0000000012e90ac4>] do_mount+0x932/0xc50 fs/namespace.c:3110
[<0000000055e18c39>] ksys_mount+0xab/0x120 fs/namespace.c:3319
[<000000003fbb869f>] __do_sys_mount fs/namespace.c:3333 [inline]
[<000000003fbb869f>] __se_sys_mount fs/namespace.c:3330 [inline]
[<000000003fbb869f>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3330
[<000000005a440e8e>] do_syscall_64+0x76/0x1a0 arch/x86/entry/common.c:301
[<0000000091465610>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff88811d5b7860 (size 32):
comm "syz-executor234", pid 7225, jiffies 4294945634 (age 18.680s)
hex dump (first 32 bytes):
34 32 39 34 39 34 35 36 33 34 00 00 00 00 00 00 4294945634......
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<000000002cabdadb>] kmemleak_alloc_recursive include/linux/kmemleak.h:55 [inline]
[<000000002cabdadb>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000002cabdadb>] slab_alloc mm/slab.c:3326 [inline]
[<000000002cabdadb>] kmem_cache_alloc_trace+0x13d/0x280 mm/slab.c:3553
[<00000000c9696bd2>] kmalloc include/linux/slab.h:547 [inline]
[<00000000c9696bd2>] v9fs_random_cachetag fs/9p/cache.c:51 [inline]
[<00000000c9696bd2>] v9fs_cache_session_get_cookie+0xa6/0x100 fs/9p/cache.c:67
[<000000009f2e3d4c>] v9fs_session_init+0x5c3/0x880 fs/9p/v9fs.c:485
[<000000003e76ac4c>] v9fs_mount+0x5e/0x3a0 fs/9p/vfs_super.c:135
[<00000000de1b2937>] legacy_get_tree+0x27/0x80 fs/fs_context.c:665
[<000000009d8e25aa>] vfs_get_tree+0x2e/0x120 fs/super.c:1476
[<0000000012e90ac4>] do_new_mount fs/namespace.c:2790 [inline]
[<0000000012e90ac4>] do_mount+0x932/0xc50 fs/namespace.c:3110
[<0000000055e18c39>] ksys_mount+0xab/0x120 fs/namespace.c:3319
[<000000003fbb869f>] __do_sys_mount fs/namespace.c:3333 [inline]
[<000000003fbb869f>] __se_sys_mount fs/namespace.c:3330 [inline]
[<000000003fbb869f>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3330
[<000000005a440e8e>] do_syscall_64+0x76/0x1a0 arch/x86/entry/common.c:301
[<0000000091465610>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff88811d5b7ce0 (size 32):
comm "syz-executor234", pid 7220, jiffies 4294945629 (age 20.550s)
hex dump (first 32 bytes):
34 32 39 34 39 34 35 36 32 39 00 00 00 00 00 00 4294945629......
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<000000002cabdadb>] kmemleak_alloc_recursive include/linux/kmemleak.h:55 [inline]
[<000000002cabdadb>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000002cabdadb>] slab_alloc mm/slab.c:3326 [inline]
[<000000002cabdadb>] kmem_cache_alloc_trace+0x13d/0x280 mm/slab.c:3553
[<00000000c9696bd2>] kmalloc include/linux/slab.h:547 [inline]
[<00000000c9696bd2>] v9fs_random_cachetag fs/9p/cache.c:51 [inline]
[<00000000c9696bd2>] v9fs_cache_session_get_cookie+0xa6/0x100 fs/9p/cache.c:67
[<000000009f2e3d4c>] v9fs_session_init+0x5c3/0x880 fs/9p/v9fs.c:485
[<000000003e76ac4c>] v9fs_mount+0x5e/0x3a0 fs/9p/vfs_super.c:135
[<00000000de1b2937>] legacy_get_tree+0x27/0x80 fs/fs_context.c:665
[<000000009d8e25aa>] vfs_get_tree+0x2e/0x120 fs/super.c:1476
[<0000000012e90ac4>] do_new_mount fs/namespace.c:2790 [inline]
[<0000000012e90ac4>] do_mount+0x932/0xc50 fs/namespace.c:3110
[<0000000055e18c39>] ksys_mount+0xab/0x120 fs/namespace.c:3319
[<000000003fbb869f>] __do_sys_mount fs/namespace.c:3333 [inline]
[<000000003fbb869f>] __se_sys_mount fs/namespace.c:3330 [inline]
[<000000003fbb869f>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3330
[<000000005a440e8e>] do_syscall_64+0x76/0x1a0 arch/x86/entry/common.c:301
[<0000000091465610>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff888114735700 (size 32):
comm "syz-executor234", pid 7227, jiffies 4294945629 (age 20.550s)
hex dump (first 32 bytes):
34 32 39 34 39 34 35 36 32 39 00 00 00 00 00 00 4294945629......
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<000000002cabdadb>] kmemleak_alloc_recursive include/linux/kmemleak.h:55 [inline]
[<000000002cabdadb>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000002cabdadb>] slab_alloc mm/slab.c:3326 [inline]
[<000000002cabdadb>] kmem_cache_alloc_trace+0x13d/0x280 mm/slab.c:3553
[<00000000c9696bd2>] kmalloc include/linux/slab.h:547 [inline]
[<00000000c9696bd2>] v9fs_random_cachetag fs/9p/cache.c:51 [inline]
[<00000000c9696bd2>] v9fs_cache_session_get_cookie+0xa6/0x100 fs/9p/cache.c:67
[<000000009f2e3d4c>] v9fs_session_init+0x5c3/0x880 fs/9p/v9fs.c:485
[<000000003e76ac4c>] v9fs_mount+0x5e/0x3a0 fs/9p/vfs_super.c:135
[<00000000de1b2937>] legacy_get_tree+0x27/0x80 fs/fs_context.c:665
[<000000009d8e25aa>] vfs_get_tree+0x2e/0x120 fs/super.c:1476
[<0000000012e90ac4>] do_new_mount fs/namespace.c:2790 [inline]
[<0000000012e90ac4>] do_mount+0x932/0xc50 fs/namespace.c:3110
[<0000000055e18c39>] ksys_mount+0xab/0x120 fs/namespace.c:3319
[<000000003fbb869f>] __do_sys_mount fs/namespace.c:3333 [inline]
[<000000003fbb869f>] __se_sys_mount fs/namespace.c:3330 [inline]
[<000000003fbb869f>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3330
[<000000005a440e8e>] do_syscall_64+0x76/0x1a0 arch/x86/entry/common.c:301
[<0000000091465610>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff88811d5b7860 (size 32):
comm "syz-executor234", pid 7225, jiffies 4294945634 (age 20.510s)
hex dump (first 32 bytes):
34 32 39 34 39 34 35 36 33 34 00 00 00 00 00 00 4294945634......
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<000000002cabdadb>] kmemleak_alloc_recursive include/linux/kmemleak.h:55 [inline]
[<000000002cabdadb>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000002cabdadb>] slab_alloc mm/slab.c:3326 [inline]
[<000000002cabdadb>] kmem_cache_alloc_trace+0x13d/0x280 mm/slab.c:3553
[<00000000c9696bd2>] kmalloc include/linux/slab.h:547 [inline]
[<00000000c9696bd2>] v9fs_random_cachetag fs/9p/cache.c:51 [inline]
[<00000000c9696bd2>] v9fs_cache_session_get_cookie+0xa6/0x100 fs/9p/cache.c:67
[<000000009f2e3d4c>] v9fs_session_init+0x5c3/0x880 fs/9p/v9fs.c:485
[<000000003e76ac4c>] v9fs_mount+0x5e/0x3a0 fs/9p/vfs_super.c:135
[<00000000de1b2937>] legacy_get_tree+0x27/0x80 fs/fs_context.c:665
[<000000009d8e25aa>] vfs_get_tree+0x2e/0x120 fs/super.c:1476
[<0000000012e90ac4>] do_new_mount fs/namespace.c:2790 [inline]
[<0000000012e90ac4>] do_mount+0x932/0xc50 fs/namespace.c:3110
[<0000000055e18c39>] ksys_mount+0xab/0x120 fs/namespace.c:3319
[<000000003fbb869f>] __do_sys_mount fs/namespace.c:3333 [inline]
[<000000003fbb869f>] __se_sys_mount fs/namespace.c:3330 [inline]
[<000000003fbb869f>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3330
[<000000005a440e8e>] do_syscall_64+0x76/0x1a0 arch/x86/entry/common.c:301
[<0000000091465610>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff88811d5b7ce0 (size 32):
comm "syz-executor234", pid 7220, jiffies 4294945629 (age 21.520s)
hex dump (first 32 bytes):
34 32 39 34 39 34 35 36 32 39 00 00 00 00 00 00 4294945629......
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<000000002cabdadb>] kmemleak_alloc_recursive include/linux/kmemleak.h:55 [inline]
[<000000002cabdadb>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000002cabdadb>] slab_alloc mm/slab.c:3326 [inline]
[<000000002cabdadb>] kmem_cache_alloc_trace+0x13d/0x280 mm/slab.c:3553
[<00000000c9696bd2>] kmalloc include/linux/slab.h:547 [inline]
[<00000000c9696bd2>] v9fs_random_cachetag fs/9p/cache.c:51 [inline]
[<00000000c9696bd2>] v9fs_cache_session_get_cookie+0xa6/0x100 fs/9p/cache.c:67
[<000000009f2e3d4c>] v9fs_session_init+0x5c3/0x880 fs/9p/v9fs.c:485
[<000000003e76ac4c>] v9fs_mount+0x5e/0x3a0 fs/9p/vfs_super.c:135
[<00000000de1b2937>] legacy_get_tree+0x27/0x80 fs/fs_context.c:665
[<000000009d8e25aa>] vfs_get_tree+0x2e/0x120 fs/super.c:1476
[<0000000012e90ac4>] do_new_mount fs/namespace.c:2790 [inline]
[<0000000012e90ac4>] do_mount+0x932/0xc50 fs/namespace.c:3110
[<0000000055e18c39>] ksys_mount+0xab/0x120 fs/namespace.c:3319
[<000000003fbb869f>] __do_sys_mount fs/namespace.c:3333 [inline]
[<000000003fbb869f>] __se_sys_mount fs/namespace.c:3330 [inline]
[<000000003fbb869f>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3330
[<000000005a440e8e>] do_syscall_64+0x76/0x1a0 arch/x86/entry/common.c:301
[<0000000091465610>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff888114735700 (size 32):
comm "syz-executor234", pid 7227, jiffies 4294945629 (age 21.520s)
hex dump (first 32 bytes):
34 32 39 34 39 34 35 36 32 39 00 00 00 00 00 00 4294945629......
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<000000002cabdadb>] kmemleak_alloc_recursive include/linux/kmemleak.h:55 [inline]
[<000000002cabdadb>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000002cabdadb>] slab_alloc mm/slab.c:3326 [inline]
[<000000002cabdadb>] kmem_cache_alloc_trace+0x13d/0x280 mm/slab.c:3553
[<00000000c9696bd2>] kmalloc include/linux/slab.h:547 [inline]
[<00000000c9696bd2>] v9fs_random_cachetag fs/9p/cache.c:51 [inline]
[<00000000c9696bd2>] v9fs_cache_session_get_cookie+0xa6/0x100 fs/9p/cache.c:67
[<000000009f2e3d4c>] v9fs_session_init+0x5c3/0x880 fs/9p/v9fs.c:485
[<000000003e76ac4c>] v9fs_mount+0x5e/0x3a0 fs/9p/vfs_super.c:135
[<00000000de1b2937>] legacy_get_tree+0x27/0x80 fs/fs_context.c:665
[<000000009d8e25aa>] vfs_get_tree+0x2e/0x120 fs/super.c:1476
[<0000000012e90ac4>] do_new_mount fs/namespace.c:2790 [inline]
[<0000000012e90ac4>] do_mount+0x932/0xc50 fs/namespace.c:3110
[<0000000055e18c39>] ksys_mount+0xab/0x120 fs/namespace.c:3319
[<000000003fbb869f>] __do_sys_mount fs/namespace.c:3333 [inline]
[<000000003fbb869f>] __se_sys_mount fs/namespace.c:3330 [inline]
[<000000003fbb869f>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3330
[<000000005a440e8e>] do_syscall_64+0x76/0x1a0 arch/x86/entry/common.c:301
[<0000000091465610>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff88811d5b7860 (size 32):
comm "syz-executor234", pid 7225, jiffies 4294945634 (age 21.470s)
hex dump (first 32 bytes):
34 32 39 34 39 34 35 36 33 34 00 00 00 00 00 00 4294945634......
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<000000002cabdadb>] kmemleak_alloc_recursive include/linux/kmemleak.h:55 [inline]
[<000000002cabdadb>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000002cabdadb>] slab_alloc mm/slab.c:3326 [inline]
[<000000002cabdadb>] kmem_cache_alloc_trace+0x13d/0x280 mm/slab.c:3553
[<00000000c9696bd2>] kmalloc include/linux/slab.h:547 [inline]
[<00000000c9696bd2>] v9fs_random_cachetag fs/9p/cache.c:51 [inline]
[<00000000c9696bd2>] v9fs_cache_session_get_cookie+0xa6/0x100 fs/9p/cache.c:67
[<000000009f2e3d4c>] v9fs_session_init+0x5c3/0x880 fs/9p/v9fs.c:485
[<000000003e76ac4c>] v9fs_mount+0x5e/0x3a0 fs/9p/vfs_super.c:135
[<00000000de1b2937>] legacy_get_tree+0x27/0x80 fs/fs_context.c:665
[<000000009d8e25aa>] vfs_get_tree+0x2e/0x120 fs/super.c:1476
[<0000000012e90ac4>] do_new_mount fs/namespace.c:2790 [inline]
[<0000000012e90ac4>] do_mount+0x932/0xc50 fs/namespace.c:3110
[<0000000055e18c39>] ksys_mount+0xab/0x120 fs/namespace.c:3319
[<000000003fbb869f>] __do_sys_mount fs/namespace.c:3333 [inline]
[<000000003fbb869f>] __se_sys_mount fs/namespace.c:3330 [inline]
[<000000003fbb869f>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3330
[<000000005a440e8e>] do_syscall_64+0x76/0x1a0 arch/x86/entry/common.c:301
[<0000000091465610>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff88811d5b7ce0 (size 32):
comm "syz-executor234", pid 7220, jiffies 4294945629 (age 23.430s)
hex dump (first 32 bytes):
34 32 39 34 39 34 35 36 32 39 00 00 00 00 00 00 4294945629......
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<000000002cabdadb>] kmemleak_alloc_recursive include/linux/kmemleak.h:55 [inline]
[<000000002cabdadb>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000002cabdadb>] slab_alloc mm/slab.c:3326 [inline]
[<000000002cabdadb>] kmem_cache_alloc_trace+0x13d/0x280 mm/slab.c:3553
[<00000000c9696bd2>] kmalloc include/linux/slab.h:547 [inline]
[<00000000c9696bd2>] v9fs_random_cachetag fs/9p/cache.c:51 [inline]
[<00000000c9696bd2>] v9fs_cache_session_get_cookie+0xa6/0x100 fs/9p/cache.c:67
[<000000009f2e3d4c>] v9fs_session_init+0x5c3/0x880 fs/9p/v9fs.c:485
[<000000003e76ac4c>] v9fs_mount+0x5e/0x3a0 fs/9p/vfs_super.c:135
[<00000000de1b2937>] legacy_get_tree+0x27/0x80 fs/fs_context.c:665
[<000000009d8e25aa>] vfs_get_tree+0x2e/0x120 fs/super.c:1476
[<0000000012e90ac4>] do_new_mount fs/namespace.c:2790 [inline]
[<0000000012e90ac4>] do_mount+0x932/0xc50 fs/namespace.c:3110
[<0000000055e18c39>] ksys_mount+0xab/0x120 fs/namespace.c:3319
[<000000003fbb869f>] __do_sys_mount fs/namespace.c:3333 [inline]
[<000000003fbb869f>] __se_sys_mount fs/namespace.c:3330 [inline]
[<000000003fbb869f>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3330
[<000000005a440e8e>] do_syscall_64+0x76/0x1a0 arch/x86/entry/common.c:301
[<0000000091465610>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff888114735700 (size 32):
comm "syz-executor234", pid 7227, jiffies 4294945629 (age 23.430s)
hex dump (first 32 bytes):
34 32 39 34 39 34 35 36 32 39 00 00 00 00 00 00 4294945629......
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<000000002cabdadb>] kmemleak_alloc_recursive include/linux/kmemleak.h:55 [inline]
[<000000002cabdadb>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000002cabdadb>] slab_alloc mm/slab.c:3326 [inline]
[<000000002cabdadb>] kmem_cache_alloc_trace+0x13d/0x280 mm/slab.c:3553
[<00000000c9696bd2>] kmalloc include/linux/slab.h:547 [inline]
[<00000000c9696bd2>] v9fs_random_cachetag fs/9p/cache.c:51 [inline]
[<00000000c9696bd2>] v9fs_cache_session_get_cookie+0xa6/0x100 fs/9p/cache.c:67
[<000000009f2e3d4c>] v9fs_session_init+0x5c3/0x880 fs/9p/v9fs.c:485
[<000000003e76ac4c>] v9fs_mount+0x5e/0x3a0 fs/9p/vfs_super.c:135
[<00000000de1b2937>] legacy_get_tree+0x27/0x80 fs/fs_context.c:665
[<000000009d8e25aa>] vfs_get_tree+0x2e/0x120 fs/super.c:1476
[<0000000012e90ac4>] do_new_mount fs/namespace.c:2790 [inline]
[<0000000012e90ac4>] do_mount+0x932/0xc50 fs/namespace.c:3110
[<0000000055e18c39>] ksys_mount+0xab/0x120 fs/namespace.c:3319
[<000000003fbb869f>] __do_sys_mount fs/namespace.c:3333 [inline]
[<000000003fbb869f>] __se_sys_mount fs/namespace.c:3330 [inline]
[<000000003fbb869f>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3330
[<000000005a440e8e>] do_syscall_64+0x76/0x1a0 arch/x86/entry/common.c:301
[<0000000091465610>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff88811d5b7860 (size 32):
comm "syz-executor234", pid 7225, jiffies 4294945634 (age 23.380s)
hex dump (first 32 bytes):
34 32 39 34 39 34 35 36 33 34 00 00 00 00 00 00 4294945634......
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<000000002cabdadb>] kmemleak_alloc_recursive include/linux/kmemleak.h:55 [inline]
[<000000002cabdadb>] slab_post_alloc_hook mm/slab.h:439 [inline]
[<000000002cabdadb>] slab_alloc mm/slab.c:3326 [inline]
[<000000002cabdadb>] kmem_cache_alloc_trace+0x13d/0x280 mm/slab.c:3553
[<00000000c9696bd2>] kmalloc include/linux/slab.h:547 [inline]
[<00000000c9696bd2>] v9fs_random_cachetag fs/9p/cache.c:51 [inline]
[<00000000c9696bd2>] v9fs_cache_session_get_cookie+0xa6/0x100 fs/9p/cache.c:67
[<000000009f2e3d4c>] v9fs_session_init+0x5c3/0x880 fs/9p/v9fs.c:485
[<000000003e76ac4c>] v9fs_mount+0x5e/0x3a0 fs/9p/vfs_super.c:135
[<00000000de1b2937>] legacy_get_tree+0x27/0x80 fs/fs_context.c:665
[<000000009d8e25aa>] vfs_get_tree+0x2e/0x120 fs/super.c:1476
[<0000000012e90ac4>] do_new_mount fs/namespace.c:2790 [inline]
[<0000000012e90ac4>] do_mount+0x932/0xc50 fs/namespace.c:3110
[<0000000055e18c39>] ksys_mount+0xab/0x120 fs/namespace.c:3319
[<000000003fbb869f>] __do_sys_mount fs/namespace.c:3333 [inline]
[<000000003fbb869f>] __se_sys_mount fs/namespace.c:3330 [inline]
[<000000003fbb869f>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3330
[<000000005a440e8e>] do_syscall_64+0x76/0x1a0 arch/x86/entry/common.c:301
[<0000000091465610>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

executing program
executing program
executing program
executing program
executing program
executing program
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 syzkaller@xxxxxxxxxxxxxxxxx

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