netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: syzbot <syzbot+722da59ccb264bc19910@syzkaller.appspotmail.com>
To: coreteam@netfilter.org, davem@davemloft.net, fw@strlen.de,
	kadlec@blackhole.kfki.hu, linux-kernel@vger.kernel.org,
	netdev@vger.kernel.org, netfilter-devel@vger.kernel.org,
	pablo@netfilter.org, syzkaller-bugs@googlegroups.com
Subject: memory leak in nf_hook_entries_grow
Date: Mon, 03 Jun 2019 12:02:07 -0700	[thread overview]
Message-ID: <0000000000002b2262058a70001d@google.com> (raw)

Hello,

syzbot found the following crash on:

HEAD commit:    3ab4436f Merge tag 'nfsd-5.2-1' of git://linux-nfs.org/~bf..
git tree:       upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=15feaf82a00000
kernel config:  https://syzkaller.appspot.com/x/.config?x=50393f7bfe444ff6
dashboard link: https://syzkaller.appspot.com/bug?extid=722da59ccb264bc19910
compiler:       gcc (GCC) 9.0.0 20181231 (experimental)
syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=12f02772a00000
C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=1657b80ea00000

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

035][ T7273] IPVS: ftp: loaded support on port[0] = 21
BUG: memory leak
unreferenced object 0xffff88810acd8a80 (size 96):
   comm "syz-executor073", pid 7254, jiffies 4294950560 (age 22.250s)
   hex dump (first 32 bytes):
     02 00 00 00 00 00 00 00 50 8b bb 82 ff ff ff ff  ........P.......
     00 00 00 00 00 00 00 00 00 77 bb 82 ff ff ff ff  .........w......
   backtrace:
     [<0000000013db61f1>] kmemleak_alloc_recursive  
include/linux/kmemleak.h:55 [inline]
     [<0000000013db61f1>] slab_post_alloc_hook mm/slab.h:439 [inline]
     [<0000000013db61f1>] slab_alloc_node mm/slab.c:3269 [inline]
     [<0000000013db61f1>] kmem_cache_alloc_node_trace+0x15b/0x2a0  
mm/slab.c:3597
     [<000000001a27307d>] __do_kmalloc_node mm/slab.c:3619 [inline]
     [<000000001a27307d>] __kmalloc_node+0x38/0x50 mm/slab.c:3627
     [<0000000025054add>] kmalloc_node include/linux/slab.h:590 [inline]
     [<0000000025054add>] kvmalloc_node+0x4a/0xd0 mm/util.c:431
     [<0000000050d1bc00>] kvmalloc include/linux/mm.h:637 [inline]
     [<0000000050d1bc00>] kvzalloc include/linux/mm.h:645 [inline]
     [<0000000050d1bc00>] allocate_hook_entries_size+0x3b/0x60  
net/netfilter/core.c:61
     [<00000000e8abe142>] nf_hook_entries_grow+0xae/0x270  
net/netfilter/core.c:128
     [<000000004b94797c>] __nf_register_net_hook+0x9a/0x170  
net/netfilter/core.c:337
     [<00000000d1545cbc>] nf_register_net_hook+0x34/0xc0  
net/netfilter/core.c:464
     [<00000000876c9b55>] nf_register_net_hooks+0x53/0xc0  
net/netfilter/core.c:480
     [<000000002ea868e0>] __ip_vs_init+0xe8/0x170  
net/netfilter/ipvs/ip_vs_core.c:2280
     [<000000002eb2d451>] ops_init+0x4c/0x140 net/core/net_namespace.c:130
     [<000000000284ec48>] setup_net+0xde/0x230 net/core/net_namespace.c:316
     [<00000000a70600fa>] copy_net_ns+0xf0/0x1e0 net/core/net_namespace.c:439
     [<00000000ff26c15e>] create_new_namespaces+0x141/0x2a0  
kernel/nsproxy.c:107
     [<00000000b103dc79>] copy_namespaces+0xa1/0xe0 kernel/nsproxy.c:165
     [<000000007cc008a2>] copy_process.part.0+0x11fd/0x2150  
kernel/fork.c:2035
     [<00000000c344af7c>] copy_process kernel/fork.c:1800 [inline]
     [<00000000c344af7c>] _do_fork+0x121/0x4f0 kernel/fork.c:2369

BUG: memory leak
unreferenced object 0xffff8881065de500 (size 96):
   comm "syz-executor073", pid 7254, jiffies 4294950560 (age 22.250s)
   hex dump (first 32 bytes):
     02 00 00 00 00 00 00 00 e0 8a bb 82 ff ff ff ff  ................
     00 00 00 00 00 00 00 00 90 76 bb 82 ff ff ff ff  .........v......
   backtrace:
     [<0000000013db61f1>] kmemleak_alloc_recursive  
include/linux/kmemleak.h:55 [inline]
     [<0000000013db61f1>] slab_post_alloc_hook mm/slab.h:439 [inline]
     [<0000000013db61f1>] slab_alloc_node mm/slab.c:3269 [inline]
     [<0000000013db61f1>] kmem_cache_alloc_node_trace+0x15b/0x2a0  
mm/slab.c:3597
     [<000000001a27307d>] __do_kmalloc_node mm/slab.c:3619 [inline]
     [<000000001a27307d>] __kmalloc_node+0x38/0x50 mm/slab.c:3627
     [<0000000025054add>] kmalloc_node include/linux/slab.h:590 [inline]
     [<0000000025054add>] kvmalloc_node+0x4a/0xd0 mm/util.c:431
     [<0000000050d1bc00>] kvmalloc include/linux/mm.h:637 [inline]
     [<0000000050d1bc00>] kvzalloc include/linux/mm.h:645 [inline]
     [<0000000050d1bc00>] allocate_hook_entries_size+0x3b/0x60  
net/netfilter/core.c:61
     [<00000000e8abe142>] nf_hook_entries_grow+0xae/0x270  
net/netfilter/core.c:128
     [<000000004b94797c>] __nf_register_net_hook+0x9a/0x170  
net/netfilter/core.c:337
     [<00000000d1545cbc>] nf_register_net_hook+0x34/0xc0  
net/netfilter/core.c:464
     [<00000000876c9b55>] nf_register_net_hooks+0x53/0xc0  
net/netfilter/core.c:480
     [<000000002ea868e0>] __ip_vs_init+0xe8/0x170  
net/netfilter/ipvs/ip_vs_core.c:2280
     [<000000002eb2d451>] ops_init+0x4c/0x140 net/core/net_namespace.c:130
     [<000000000284ec48>] setup_net+0xde/0x230 net/core/net_namespace.c:316
     [<00000000a70600fa>] copy_net_ns+0xf0/0x1e0 net/core/net_namespace.c:439
     [<00000000ff26c15e>] create_new_namespaces+0x141/0x2a0  
kernel/nsproxy.c:107
     [<00000000b103dc79>] copy_namespaces+0xa1/0xe0 kernel/nsproxy.c:165
     [<000000007cc008a2>] copy_process.part.0+0x11fd/0x2150  
kernel/fork.c:2035
     [<00000000c344af7c>] copy_process kernel/fork.c:1800 [inline]
     [<00000000c344af7c>] _do_fork+0x121/0x4f0 kernel/fork.c:2369

BUG: memory leak
unreferenced object 0xffff888103533c80 (size 96):
   comm "syz-executor073", pid 7254, jiffies 4294950626 (age 21.590s)
   hex dump (first 32 bytes):
     02 00 00 00 00 00 00 00 70 77 bb 82 ff ff ff ff  ........pw......
     00 00 00 00 00 00 00 00 50 8b bb 82 ff ff ff ff  ........P.......
   backtrace:
     [<0000000013db61f1>] kmemleak_alloc_recursive  
include/linux/kmemleak.h:55 [inline]
     [<0000000013db61f1>] slab_post_alloc_hook mm/slab.h:439 [inline]
     [<0000000013db61f1>] slab_alloc_node mm/slab.c:3269 [inline]
     [<0000000013db61f1>] kmem_cache_alloc_node_trace+0x15b/0x2a0  
mm/slab.c:3597
     [<000000001a27307d>] __do_kmalloc_node mm/slab.c:3619 [inline]
     [<000000001a27307d>] __kmalloc_node+0x38/0x50 mm/slab.c:3627
     [<0000000025054add>] kmalloc_node include/linux/slab.h:590 [inline]
     [<0000000025054add>] kvmalloc_node+0x4a/0xd0 mm/util.c:431
     [<0000000050d1bc00>] kvmalloc include/linux/mm.h:637 [inline]
     [<0000000050d1bc00>] kvzalloc include/linux/mm.h:645 [inline]
     [<0000000050d1bc00>] allocate_hook_entries_size+0x3b/0x60  
net/netfilter/core.c:61
     [<00000000343067d2>] __nf_hook_entries_try_shrink+0xbd/0x190  
net/netfilter/core.c:248
     [<0000000004051f14>] __nf_unregister_net_hook+0x12f/0x1b0  
net/netfilter/core.c:416
     [<00000000f74d14d1>] nf_unregister_net_hook+0x32/0x70  
net/netfilter/core.c:431
     [<00000000de019d2a>] nf_unregister_net_hooks+0x3d/0x50  
net/netfilter/core.c:499
     [<00000000fbdf13a9>] selinux_nf_unregister+0x22/0x30  
security/selinux/hooks.c:7089
     [<00000000ff82a3bf>] ops_exit_list.isra.0+0x4c/0x80  
net/core/net_namespace.c:154
     [<000000008a424b95>] setup_net+0x14a/0x230 net/core/net_namespace.c:333
     [<00000000a70600fa>] copy_net_ns+0xf0/0x1e0 net/core/net_namespace.c:439
     [<00000000ff26c15e>] create_new_namespaces+0x141/0x2a0  
kernel/nsproxy.c:107
     [<00000000b103dc79>] copy_namespaces+0xa1/0xe0 kernel/nsproxy.c:165
     [<000000007cc008a2>] copy_process.part.0+0x11fd/0x2150  
kernel/fork.c:2035
     [<00000000c344af7c>] copy_process kernel/fork.c:1800 [inline]
     [<00000000c344af7c>] _do_fork+0x121/0x4f0 kernel/fork.c:2369

BUG: memory leak
unreferenced object 0xffff88810acd8a80 (size 96):
   comm "syz-executor073", pid 7254, jiffies 4294950560 (age 23.590s)
   hex dump (first 32 bytes):
     02 00 00 00 00 00 00 00 50 8b bb 82 ff ff ff ff  ........P.......
     00 00 00 00 00 00 00 00 00 77 bb 82 ff ff ff ff  .........w......
   backtrace:
     [<0000000013db61f1>] kmemleak_alloc_recursive  
include/linux/kmemleak.h:55 [inline]
     [<0000000013db61f1>] slab_post_alloc_hook mm/slab.h:439 [inline]
     [<0000000013db61f1>] slab_alloc_node mm/slab.c:3269 [inline]
     [<0000000013db61f1>] kmem_cache_alloc_node_trace+0x15b/0x2a0  
mm/slab.c:3597
     [<000000001a27307d>] __do_kmalloc_node mm/slab.c:3619 [inline]
     [<000000001a27307d>] __kmalloc_node+0x38/0x50 mm/slab.c:3627
     [<0000000025054add>] kmalloc_node include/linux/slab.h:590 [inline]
     [<0000000025054add>] kvmalloc_node+0x4a/0xd0 mm/util.c:431
     [<0000000050d1bc00>] kvmalloc include/linux/mm.h:637 [inline]
     [<0000000050d1bc00>] kvzalloc include/linux/mm.h:645 [inline]
     [<0000000050d1bc00>] allocate_hook_entries_size+0x3b/0x60  
net/netfilter/core.c:61
     [<00000000e8abe142>] nf_hook_entries_grow+0xae/0x270  
net/netfilter/core.c:128
     [<000000004b94797c>] __nf_register_net_hook+0x9a/0x170  
net/netfilter/core.c:337
     [<00000000d1545cbc>] nf_register_net_hook+0x34/0xc0  
net/netfilter/core.c:464
     [<00000000876c9b55>] nf_register_net_hooks+0x53/0xc0  
net/netfilter/core.c:480
     [<000000002ea868e0>] __ip_vs_init+0xe8/0x170  
net/netfilter/ipvs/ip_vs_core.c:2280
     [<000000002eb2d451>] ops_init+0x4c/0x140 net/core/net_namespace.c:130
     [<000000000284ec48>] setup_net+0xde/0x230 net/core/net_namespace.c:316
     [<00000000a70600fa>] copy_net_ns+0xf0/0x1e0 net/core/net_namespace.c:439
     [<00000000ff26c15e>] create_new_namespaces+0x141/0x2a0  
kernel/nsproxy.c:107
     [<00000000b103dc79>] copy_namespaces+0xa1/0xe0 kernel/nsproxy.c:165
     [<000000007cc008a2>] copy_process.part.0+0x11fd/0x2150  
kernel/fork.c:2035
     [<00000000c344af7c>] copy_process kernel/fork.c:1800 [inline]
     [<00000000c344af7c>] _do_fork+0x121/0x4f0 kernel/fork.c:2369

BUG: memory leak
unreferenced object 0xffff8881065de500 (size 96):
   comm "syz-executor073", pid 7254, jiffies 4294950560 (age 23.590s)
   hex dump (first 32 bytes):
     02 00 00 00 00 00 00 00 e0 8a bb 82 ff ff ff ff  ................
     00 00 00 00 00 00 00 00 90 76 bb 82 ff ff ff ff  .........v......
   backtrace:
     [<0000000013db61f1>] kmemleak_alloc_recursive  
include/linux/kmemleak.h:55 [inline]
     [<0000000013db61f1>] slab_post_alloc_hook mm/slab.h:439 [inline]
     [<0000000013db61f1>] slab_alloc_node mm/slab.c:3269 [inline]
     [<0000000013db61f1>] kmem_cache_alloc_node_trace+0x15b/0x2a0  
mm/slab.c:3597
     [<000000001a27307d>] __do_kmalloc_node mm/slab.c:3619 [inline]
     [<000000001a27307d>] __kmalloc_node+0x38/0x50 mm/slab.c:3627
     [<0000000025054add>] kmalloc_node include/linux/slab.h:590 [inline]
     [<0000000025054add>] kvmalloc_node+0x4a/0xd0 mm/util.c:431
     [<0000000050d1bc00>] kvmalloc include/linux/mm.h:637 [inline]
     [<0000000050d1bc00>] kvzalloc include/linux/mm.h:645 [inline]
     [<0000000050d1bc00>] allocate_hook_entries_size+0x3b/0x60  
net/netfilter/core.c:61
     [<00000000e8abe142>] nf_hook_entries_grow+0xae/0x270  
net/netfilter/core.c:128
     [<000000004b94797c>] __nf_register_net_hook+0x9a/0x170  
net/netfilter/core.c:337
     [<00000000d1545cbc>] nf_register_net_hook+0x34/0xc0  
net/netfilter/core.c:464
     [<00000000876c9b55>] nf_register_net_hooks+0x53/0xc0  
net/netfilter/core.c:480
     [<000000002ea868e0>] __ip_vs_init+0xe8/0x170  
net/netfilter/ipvs/ip_vs_core.c:2280
     [<000000002eb2d451>] ops_init+0x4c/0x140 net/core/net_namespace.c:130
     [<000000000284ec48>] setup_net+0xde/0x230 net/core/net_namespace.c:316
     [<00000000a70600fa>] copy_net_ns+0xf0/0x1e0 net/core/net_namespace.c:439
     [<00000000ff26c15e>] create_new_namespaces+0x141/0x2a0  
kernel/nsproxy.c:107
     [<00000000b103dc79>] copy_namespaces+0xa1/0xe0 kernel/nsproxy.c:165
     [<000000007cc008a2>] copy_process.part.0+0x11fd/0x2150  
kernel/fork.c:2035
     [<00000000c344af7c>] copy_process kernel/fork.c:1800 [inline]
     [<00000000c344af7c>] _do_fork+0x121/0x4f0 kernel/fork.c:2369

BUG: memory leak
unreferenced object 0xffff888103533c80 (size 96):
   comm "syz-executor073", pid 7254, jiffies 4294950626 (age 22.930s)
   hex dump (first 32 bytes):
     02 00 00 00 00 00 00 00 70 77 bb 82 ff ff ff ff  ........pw......
     00 00 00 00 00 00 00 00 50 8b bb 82 ff ff ff ff  ........P.......
   backtrace:
     [<0000000013db61f1>] kmemleak_alloc_recursive  
include/linux/kmemleak.h:55 [inline]
     [<0000000013db61f1>] slab_post_alloc_hook mm/slab.h:439 [inline]
     [<0000000013db61f1>] slab_alloc_node mm/slab.c:3269 [inline]
     [<0000000013db61f1>] kmem_cache_alloc_node_trace+0x15b/0x2a0  
mm/slab.c:3597
     [<000000001a27307d>] __do_kmalloc_node mm/slab.c:3619 [inline]
     [<000000001a27307d>] __kmalloc_node+0x38/0x50 mm/slab.c:3627
     [<0000000025054add>] kmalloc_node include/linux/slab.h:590 [inline]
     [<0000000025054add>] kvmalloc_node+0x4a/0xd0 mm/util.c:431
     [<0000000050d1bc00>] kvmalloc include/linux/mm.h:637 [inline]
     [<0000000050d1bc00>] kvzalloc include/linux/mm.h:645 [inline]
     [<0000000050d1bc00>] allocate_hook_entries_size+0x3b/0x60  
net/netfilter/core.c:61
     [<00000000343067d2>] __nf_hook_entries_try_shrink+0xbd/0x190  
net/netfilter/core.c:248
     [<0000000004051f14>] __nf_unregister_net_hook+0x12f/0x1b0  
net/netfilter/core.c:416
     [<00000000f74d14d1>] nf_unregister_net_hook+0x32/0x70  
net/netfilter/core.c:431
     [<00000000de019d2a>] nf_unregister_net_hooks+0x3d/0x50  
net/netfilter/core.c:499
     [<00000000fbdf13a9>] selinux_nf_unregister+0x22/0x30  
security/selinux/hooks.c:7089
     [<00000000ff82a3bf>] ops_exit_list.isra.0+0x4c/0x80  
net/core/net_namespace.c:154
     [<000000008a424b95>] setup_net+0x14a/0x230 net/core/net_namespace.c:333
     [<00000000a70600fa>] copy_net_ns+0xf0/0x1e0 net/core/net_namespace.c:439
     [<00000000ff26c15e>] create_new_namespaces+0x141/0x2a0  
kernel/nsproxy.c:107
     [<00000000b103dc79>] copy_namespaces+0xa1/0xe0 kernel/nsproxy.c:165
     [<000000007cc008a2>] copy_process.part.0+0x11fd/0x2150  
kernel/fork.c:2035
     [<00000000c344af7c>] copy_process kernel/fork.c:1800 [inline]
     [<00000000c344af7c>] _do_fork+0x121/0x4f0 kernel/fork.c:2369

BUG: memory leak
unreferenced object 0xffff88810acd8a80 (size 96):
   comm "syz-executor073", pid 7254, jiffies 4294950560 (age 24.970s)
   hex dump (first 32 bytes):
     02 00 00 00 00 00 00 00 50 8b bb 82 ff ff ff ff  ........P.......
     00 00 00 00 00 00 00 00 00 77 bb 82 ff ff ff ff  .........w......
   backtrace:
     [<0000000013db61f1>] kmemleak_alloc_recursive  
include/linux/kmemleak.h:55 [inline]
     [<0000000013db61f1>] slab_post_alloc_hook mm/slab.h:439 [inline]
     [<0000000013db61f1>] slab_alloc_node mm/slab.c:3269 [inline]
     [<0000000013db61f1>] kmem_cache_alloc_node_trace+0x15b/0x2a0  
mm/slab.c:3597
     [<000000001a27307d>] __do_kmalloc_node mm/slab.c:3619 [inline]
     [<000000001a27307d>] __kmalloc_node+0x38/0x50 mm/slab.c:3627
     [<0000000025054add>] kmalloc_node include/linux/slab.h:590 [inline]
     [<0000000025054add>] kvmalloc_node+0x4a/0xd0 mm/util.c:431
     [<0000000050d1bc00>] kvmalloc include/linux/mm.h:637 [inline]
     [<0000000050d1bc00>] kvzalloc include/linux/mm.h:645 [inline]
     [<0000000050d1bc00>] allocate_hook_entries_size+0x3b/0x60  
net/netfilter/core.c:61
     [<00000000e8abe142>] nf_hook_entries_grow+0xae/0x270  
net/netfilter/core.c:128
     [<000000004b94797c>] __nf_register_net_hook+0x9a/0x170  
net/netfilter/core.c:337
     [<00000000d1545cbc>] nf_register_net_hook+0x34/0xc0  
net/netfilter/core.c:464
     [<00000000876c9b55>] nf_register_net_hooks+0x53/0xc0  
net/netfilter/core.c:480
     [<000000002ea868e0>] __ip_vs_init+0xe8/0x170  
net/netfilter/ipvs/ip_vs_core.c:2280
     [<000000002eb2d451>] ops_init+0x4c/0x140 net/core/net_namespace.c:130
     [<000000000284ec48>] setup_net+0xde/0x230 net/core/net_namespace.c:316
     [<00000000a70600fa>] copy_net_ns+0xf0/0x1e0 net/core/net_namespace.c:439
     [<00000000ff26c15e>] create_new_namespaces+0x141/0x2a0  
kernel/nsproxy.c:107
     [<00000000b103dc79>] copy_namespaces+0xa1/0xe0 kernel/nsproxy.c:165
     [<000000007cc008a2>] copy_process.part.0+0x11fd/0x2150  
kernel/fork.c:2035
     [<00000000c344af7c>] copy_process kernel/fork.c:1800 [inline]
     [<00000000c344af7c>] _do_fork+0x121/0x4f0 kernel/fork.c:2369

BUG: memory leak
unreferenced object 0xffff8881065de500 (size 96):
   comm "syz-executor073", pid 7254, jiffies 4294950560 (age 24.970s)
   hex dump (first 32 bytes):
     02 00 00 00 00 00 00 00 e0 8a bb 82 ff ff ff ff  ................
     00 00 00 00 00 00 00 00 90 76 bb 82 ff ff ff ff  .........v......
   backtrace:
     [<0000000013db61f1>] kmemleak_alloc_recursive  
include/linux/kmemleak.h:55 [inline]
     [<0000000013db61f1>] slab_post_alloc_hook mm/slab.h:439 [inline]
     [<0000000013db61f1>] slab_alloc_node mm/slab.c:3269 [inline]
     [<0000000013db61f1>] kmem_cache_alloc_node_trace+0x15b/0x2a0  
mm/slab.c:3597
     [<000000001a27307d>] __do_kmalloc_node mm/slab.c:3619 [inline]
     [<000000001a27307d>] __kmalloc_node+0x38/0x50 mm/slab.c:3627
     [<0000000025054add>] kmalloc_node include/linux/slab.h:590 [inline]
     [<0000000025054add>] kvmalloc_node+0x4a/0xd0 mm/util.c:431
     [<0000000050d1bc00>] kvmalloc include/linux/mm.h:637 [inline]
     [<0000000050d1bc00>] kvzalloc include/linux/mm.h:645 [inline]
     [<0000000050d1bc00>] allocate_hook_entries_size+0x3b/0x60  
net/netfilter/core.c:61
     [<00000000e8abe142>] nf_hook_entries_grow+0xae/0x270  
net/netfilter/core.c:128
     [<000000004b94797c>] __nf_register_net_hook+0x9a/0x170  
net/netfilter/core.c:337
     [<00000000d1545cbc>] nf_register_net_hook+0x34/0xc0  
net/netfilter/core.c:464
     [<00000000876c9b55>] nf_register_net_hooks+0x53/0xc0  
net/netfilter/core.c:480
     [<000000002ea868e0>] __ip_vs_init+0xe8/0x170  
net/netfilter/ipvs/ip_vs_core.c:2280
     [<000000002eb2d451>] ops_init+0x4c/0x140 net/core/net_namespace.c:130
     [<000000000284ec48>] setup_net+0xde/0x230 net/core/net_namespace.c:316
     [<00000000a70600fa>] copy_net_ns+0xf0/0x1e0 net/core/net_namespace.c:439
     [<00000000ff26c15e>] create_new_namespaces+0x141/0x2a0  
kernel/nsproxy.c:107
     [<00000000b103dc79>] copy_namespaces+0xa1/0xe0 kernel/nsproxy.c:165
     [<000000007cc008a2>] copy_process.part.0+0x11fd/0x2150  
kernel/fork.c:2035
     [<00000000c344af7c>] copy_process kernel/fork.c:1800 [inline]
     [<00000000c344af7c>] _do_fork+0x121/0x4f0 kernel/fork.c:2369

BUG: memory leak
unreferenced object 0xffff888103533c80 (size 96):
   comm "syz-executor073", pid 7254, jiffies 4294950626 (age 24.310s)
   hex dump (first 32 bytes):
     02 00 00 00 00 00 00 00 70 77 bb 82 ff ff ff ff  ........pw......
     00 00 00 00 00 00 00 00 50 8b bb 82 ff ff ff ff  ........P.......
   backtrace:
     [<0000000013db61f1>] kmemleak_alloc_recursive  
include/linux/kmemleak.h:55 [inline]
     [<0000000013db61f1>] slab_post_alloc_hook mm/slab.h:439 [inline]
     [<0000000013db61f1>] slab_alloc_node mm/slab.c:3269 [inline]
     [<0000000013db61f1>] kmem_cache_alloc_node_trace+0x15b/0x2a0  
mm/slab.c:3597
     [<000000001a27307d>] __do_kmalloc_node mm/slab.c:3619 [inline]
     [<000000001a27307d>] __kmalloc_node+0x38/0x50 mm/slab.c:3627
     [<0000000025054add>] kmalloc_node include/linux/slab.h:590 [inline]
     [<0000000025054add>] kvmalloc_node+0x4a/0xd0 mm/util.c:431
     [<0000000050d1bc00>] kvmalloc include/linux/mm.h:637 [inline]
     [<0000000050d1bc00>] kvzalloc include/linux/mm.h:645 [inline]
     [<0000000050d1bc00>] allocate_hook_entries_size+0x3b/0x60  
net/netfilter/core.c:61
     [<00000000343067d2>] __nf_hook_entries_try_shrink+0xbd/0x190  
net/netfilter/core.c:248
     [<0000000004051f14>] __nf_unregister_net_hook+0x12f/0x1b0  
net/netfilter/core.c:416
     [<00000000f74d14d1>] nf_unregister_net_hook+0x32/0x70  
net/netfilter/core.c:431
     [<00000000de019d2a>] nf_unregister_net_hooks+0x3d/0x50  
net/netfilter/core.c:499
     [<00000000fbdf13a9>] selinux_nf_unregister+0x22/0x30  
security/selinux/hooks.c:7089
     [<00000000ff82a3bf>] ops_exit_list.isra.0+0x4c/0x80  
net/core/net_namespace.c:154
     [<000000008a424b95>] setup_net+0x14a/0x230 net/core/net_namespace.c:333
     [<00000000a70600fa>] copy_net_ns+0xf0/0x1e0 net/core/net_namespace.c:439
     [<00000000ff26c15e>] create_new_namespaces+0x141/0x2a0  
kernel/nsproxy.c:107
     [<00000000b103dc79>] copy_namespaces+0xa1/0xe0 kernel/nsproxy.c:165
     [<000000007cc008a2>] copy_process.part.0+0x11fd/0x2150  
kernel/fork.c:2035
     [<00000000c344af7c>] copy_process kernel/fork.c:1800 [inline]
     [<00000000c344af7c>] _do_fork+0x121/0x4f0 kernel/fork.c:2369

BUG: memory leak
unreferenced object 0xffff88810acd8a80 (size 96):
   comm "syz-executor073", pid 7254, jiffies 4294950560 (age 26.290s)
   hex dump (first 32 bytes):
     02 00 00 00 00 00 00 00 50 8b bb 82 ff ff ff ff  ........P.......
     00 00 00 00 00 00 00 00 00 77 bb 82 ff ff ff ff  .........w......
   backtrace:
     [<0000000013db61f1>] kmemleak_alloc_recursive  
include/linux/kmemleak.h:55 [inline]
     [<0000000013db61f1>] slab_post_alloc_hook mm/slab.h:439 [inline]
     [<0000000013db61f1>] slab_alloc_node mm/slab.c:3269 [inline]
     [<0000000013db61f1>] kmem_cache_alloc_node_trace+0x15b/0x2a0  
mm/slab.c:3597
     [<000000001a27307d>] __do_kmalloc_node mm/slab.c:3619 [inline]
     [<000000001a27307d>] __kmalloc_node+0x38/0x50 mm/slab.c:3627
     [<0000000025054add>] kmalloc_node include/linux/slab.h:590 [inline]
     [<0000000025054add>] kvmalloc_node+0x4a/0xd0 mm/util.c:431
     [<0000000050d1bc00>] kvmalloc include/linux/mm.h:637 [inline]
     [<0000000050d1bc00>] kvzalloc include/linux/mm.h:645 [inline]
     [<0000000050d1bc00>] allocate_hook_entries_size+0x3b/0x60  
net/netfilter/core.c:61
     [<00000000e8abe142>] nf_hook_entries_grow+0xae/0x270  
net/netfilter/core.c:128
     [<000000004b94797c>] __nf_register_net_hook+0x9a/0x170  
net/netfilter/core.c:337
     [<00000000d1545cbc>] nf_register_net_hook+0x34/0xc0  
net/netfilter/core.c:464
     [<00000000876c9b55>] nf_register_net_hooks+0x53/0xc0  
net/netfilter/core.c:480
     [<000000002ea868e0>] __ip_vs_init+0xe8/0x170  
net/netfilter/ipvs/ip_vs_core.c:2280
     [<000000002eb2d451>] ops_init+0x4c/0x140 net/core/net_namespace.c:130
     [<000000000284ec48>] setup_net+0xde/0x230 net/core/net_namespace.c:316
     [<00000000a70600fa>] copy_net_ns+0xf0/0x1e0 net/core/net_namespace.c:439
     [<00000000ff26c15e>] create_new_namespaces+0x141/0x2a0  
kernel/nsproxy.c:107
     [<00000000b103dc79>] copy_namespaces+0xa1/0xe0 kernel/nsproxy.c:165
     [<000000007cc008a2>] copy_process.part.0+0x11fd/0x2150  
kernel/fork.c:2035
     [<00000000c344af7c>] copy_process kernel/fork.c:1800 [inline]
     [<00000000c344af7c>] _do_fork+0x121/0x4f0 kernel/fork.c:2369

BUG: memory leak
unreferenced object 0xffff8881065de500 (size 96):
   comm "syz-executor073", pid 7254, jiffies 4294950560 (age 26.290s)
   hex dump (first 32 bytes):
     02 00 00 00 00 00 00 00 e0 8a bb 82 ff ff ff ff  ................
     00 00 00 00 00 00 00 00 90 76 bb 82 ff ff ff ff  .........v......
   backtrace:
     [<0000000013db61f1>] kmemleak_alloc_recursive  
include/linux/kmemleak.h:55 [inline]
     [<0000000013db61f1>] slab_post_alloc_hook mm/slab.h:439 [inline]
     [<0000000013db61f1>] slab_alloc_node mm/slab.c:3269 [inline]
     [<0000000013db61f1>] kmem_cache_alloc_node_trace+0x15b/0x2a0  
mm/slab.c:3597
     [<000000001a27307d>] __do_kmalloc_node mm/slab.c:3619 [inline]
     [<000000001a27307d>] __kmalloc_node+0x38/0x50 mm/slab.c:3627
     [<0000000025054add>] kmalloc_node include/linux/slab.h:590 [inline]
     [<0000000025054add>] kvmalloc_node+0x4a/0xd0 mm/util.c:431
     [<0000000050d1bc00>] kvmalloc include/linux/mm.h:637 [inline]
     [<0000000050d1bc00>] kvzalloc include/linux/mm.h:645 [inline]
     [<0000000050d1bc00>] allocate_hook_entries_size+0x3b/0x60  
net/netfilter/core.c:61
     [<00000000e8abe142>] nf_hook_entries_grow+0xae/0x270  
net/netfilter/core.c:128
     [<000000004b94797c>] __nf_register_net_hook+0x9a/0x170  
net/netfilter/core.c:337
     [<00000000d1545cbc>] nf_register_net_hook+0x34/0xc0  
net/netfilter/core.c:464
     [<00000000876c9b55>] nf_register_net_hooks+0x53/0xc0  
net/netfilter/core.c:480
     [<000000002ea868e0>] __ip_vs_init+0xe8/0x170  
net/netfilter/ipvs/ip_vs_core.c:2280
     [<000000002eb2d451>] ops_init+0x4c/0x140 net/core/net_namespace.c:130
     [<000000000284ec48>] setup_net+0xde/0x230 net/core/net_namespace.c:316
     [<00000000a70600fa>] copy_net_ns+0xf0/0x1e0 net/core/net_namespace.c:439
     [<00000000ff26c15e>] create_new_namespaces+0x141/0x2a0  
kernel/nsproxy.c:107
     [<00000000b103dc79>] copy_namespaces+0xa1/0xe0 kernel/nsproxy.c:165
     [<000000007cc008a2>] copy_process.part.0+0x11fd/0x2150  
kernel/fork.c:2035
     [<00000000c344af7c>] copy_process kernel/fork.c:1800 [inline]
     [<00000000c344af7c>] _do_fork+0x121/0x4f0 kernel/fork.c:2369

BUG: memory leak
unreferenced object 0xffff888103533c80 (size 96):
   comm "syz-executor073", pid 7254, jiffies 4294950626 (age 25.640s)
   hex dump (first 32 bytes):
     02 00 00 00 00 00 00 00 70 77 bb 82 ff ff ff ff  ........pw......
     00 00 00 00 00 00 00 00 50 8b bb 82 ff ff ff ff  ........P.......
   backtrace:
     [<0000000013db61f1>] kmemleak_alloc_recursive  
include/linux/kmemleak.h:55 [inline]
     [<0000000013db61f1>] slab_post_alloc_hook mm/slab.h:439 [inline]
     [<0000000013db61f1>] slab_alloc_node mm/slab.c:3269 [inline]
     [<0000000013db61f1>] kmem_cache_alloc_node_trace+0x15b/0x2a0  
mm/slab.c:3597
     [<000000001a27307d>] __do_kmalloc_node mm/slab.c:3619 [inline]
     [<000000001a27307d>] __kmalloc_node+0x38/0x50 mm/slab.c:3627
     [<0000000025054add>] kmalloc_node include/linux/slab.h:590 [inline]
     [<0000000025054add>] kvmalloc_node+0x4a/0xd0 mm/util.c:431
     [<0000000050d1bc00>] kvmalloc include/linux/mm.h:637 [inline]
     [<0000000050d1bc00>] kvzalloc include/linux/mm.h:645 [inline]
     [<0000000050d1bc00>] allocate_hook_entries_size+0x3b/0x60  
net/netfilter/core.c:61
     [<00000000343067d2>] __nf_hook_entries_try_shrink+0xbd/0x190  
net/netfilter/core.c:248
     [<0000000004051f14>] __nf_unregister_net_hook+0x12f/0x1b0  
net/netfilter/core.c:416
     [<00000000f74d14d1>] nf_unregister_net_hook+0x32/0x70  
net/netfilter/core.c:431
     [<00000000de019d2a>] nf_unregister_net_hooks+0x3d/0x50  
net/netfilter/core.c:499
     [<00000000fbdf13a9>] selinux_nf_unregister+0x22/0x30  
security/selinux/hooks.c:7089
     [<00000000ff82a3bf>] ops_exit_list.isra.0+0x4c/0x80  
net/core/net_namespace.c:154
     [<000000008a424b95>] setup_net+0x14a/0x230 net/core/net_namespace.c:333
     [<00000000a70600fa>] copy_net_ns+0xf0/0x1e0 net/core/net_namespace.c:439
     [<00000000ff26c15e>] create_new_namespaces+0x141/0x2a0  
kernel/nsproxy.c:107
     [<00000000b103dc79>] copy_namespaces+0xa1/0xe0 kernel/nsproxy.c:165
     [<000000007cc008a2>] copy_process.part.0+0x11fd/0x2150  
kernel/fork.c:2035
     [<00000000c344af7c>] copy_process kernel/fork.c:1800 [inline]
     [<00000000c344af7c>] _do_fork+0x121/0x4f0 kernel/fork.c:2369

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@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

             reply	other threads:[~2019-06-03 19:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-03 19:02 syzbot [this message]
2019-06-03 21:32 ` memory leak in nf_hook_entries_grow Julian Anastasov

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=0000000000002b2262058a70001d@google.com \
    --to=syzbot+722da59ccb264bc19910@syzkaller.appspotmail.com \
    --cc=coreteam@netfilter.org \
    --cc=davem@davemloft.net \
    --cc=fw@strlen.de \
    --cc=kadlec@blackhole.kfki.hu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=pablo@netfilter.org \
    --cc=syzkaller-bugs@googlegroups.com \
    /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;
as well as URLs for NNTP newsgroup(s).