syzbot


memory leak in tls_init

Status: closed as invalid on 2020/12/29 19:01
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+35bc8fe94c9f38db8320@syzkaller.appspotmail.com
First crash: 1665d, last: 1665d
Discussions (1)
Title Replies (including bot) Last reply
memory leak in tls_init 1 (2) 2020/12/29 19:01

Sample crash report:
2019/09/26 13:11:21 executed programs: 23
BUG: memory leak
unreferenced object 0xffff88810e482a00 (size 512):
  comm "syz-executor.4", pid 6874, jiffies 4295090041 (age 14.090s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<00000000e93f019a>] kmemleak_alloc_recursive include/linux/kmemleak.h:43 [inline]
    [<00000000e93f019a>] slab_post_alloc_hook mm/slab.h:586 [inline]
    [<00000000e93f019a>] slab_alloc mm/slab.c:3319 [inline]
    [<00000000e93f019a>] kmem_cache_alloc_trace+0x145/0x2c0 mm/slab.c:3548
    [<00000000268637bd>] kmalloc include/linux/slab.h:552 [inline]
    [<00000000268637bd>] kzalloc include/linux/slab.h:686 [inline]
    [<00000000268637bd>] create_ctx net/tls/tls_main.c:611 [inline]
    [<00000000268637bd>] tls_init net/tls/tls_main.c:794 [inline]
    [<00000000268637bd>] tls_init+0xbc/0x200 net/tls/tls_main.c:773
    [<00000000f52c33c5>] __tcp_set_ulp net/ipv4/tcp_ulp.c:139 [inline]
    [<00000000f52c33c5>] tcp_set_ulp+0xe2/0x190 net/ipv4/tcp_ulp.c:160
    [<0000000009cb49a0>] do_tcp_setsockopt.isra.0+0x1c1/0xe10 net/ipv4/tcp.c:2825
    [<00000000b9d96429>] tcp_setsockopt+0x71/0x80 net/ipv4/tcp.c:3152
    [<0000000038a5546c>] sock_common_setsockopt+0x38/0x50 net/core/sock.c:3142
    [<00000000d945b2a0>] __sys_setsockopt+0x10f/0x220 net/socket.c:2084
    [<000000003c3afaa0>] __do_sys_setsockopt net/socket.c:2100 [inline]
    [<000000003c3afaa0>] __se_sys_setsockopt net/socket.c:2097 [inline]
    [<000000003c3afaa0>] __x64_sys_setsockopt+0x26/0x30 net/socket.c:2097
    [<00000000f7f21cbd>] do_syscall_64+0x73/0x1f0 arch/x86/entry/common.c:290
    [<00000000d4c003b9>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff88810e71e600 (size 512):
  comm "syz-executor.4", pid 6888, jiffies 4295090060 (age 13.900s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<00000000e93f019a>] kmemleak_alloc_recursive include/linux/kmemleak.h:43 [inline]
    [<00000000e93f019a>] slab_post_alloc_hook mm/slab.h:586 [inline]
    [<00000000e93f019a>] slab_alloc mm/slab.c:3319 [inline]
    [<00000000e93f019a>] kmem_cache_alloc_trace+0x145/0x2c0 mm/slab.c:3548
    [<00000000268637bd>] kmalloc include/linux/slab.h:552 [inline]
    [<00000000268637bd>] kzalloc include/linux/slab.h:686 [inline]
    [<00000000268637bd>] create_ctx net/tls/tls_main.c:611 [inline]
    [<00000000268637bd>] tls_init net/tls/tls_main.c:794 [inline]
    [<00000000268637bd>] tls_init+0xbc/0x200 net/tls/tls_main.c:773
    [<00000000f52c33c5>] __tcp_set_ulp net/ipv4/tcp_ulp.c:139 [inline]
    [<00000000f52c33c5>] tcp_set_ulp+0xe2/0x190 net/ipv4/tcp_ulp.c:160
    [<0000000009cb49a0>] do_tcp_setsockopt.isra.0+0x1c1/0xe10 net/ipv4/tcp.c:2825
    [<00000000b9d96429>] tcp_setsockopt+0x71/0x80 net/ipv4/tcp.c:3152
    [<0000000038a5546c>] sock_common_setsockopt+0x38/0x50 net/core/sock.c:3142
    [<00000000d945b2a0>] __sys_setsockopt+0x10f/0x220 net/socket.c:2084
    [<000000003c3afaa0>] __do_sys_setsockopt net/socket.c:2100 [inline]
    [<000000003c3afaa0>] __se_sys_setsockopt net/socket.c:2097 [inline]
    [<000000003c3afaa0>] __x64_sys_setsockopt+0x26/0x30 net/socket.c:2097
    [<00000000f7f21cbd>] do_syscall_64+0x73/0x1f0 arch/x86/entry/common.c:290
    [<00000000d4c003b9>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff88810e356800 (size 512):
  comm "syz-executor.0", pid 6926, jiffies 4295090085 (age 13.650s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<00000000e93f019a>] kmemleak_alloc_recursive include/linux/kmemleak.h:43 [inline]
    [<00000000e93f019a>] slab_post_alloc_hook mm/slab.h:586 [inline]
    [<00000000e93f019a>] slab_alloc mm/slab.c:3319 [inline]
    [<00000000e93f019a>] kmem_cache_alloc_trace+0x145/0x2c0 mm/slab.c:3548
    [<00000000268637bd>] kmalloc include/linux/slab.h:552 [inline]
    [<00000000268637bd>] kzalloc include/linux/slab.h:686 [inline]
    [<00000000268637bd>] create_ctx net/tls/tls_main.c:611 [inline]
    [<00000000268637bd>] tls_init net/tls/tls_main.c:794 [inline]
    [<00000000268637bd>] tls_init+0xbc/0x200 net/tls/tls_main.c:773
    [<00000000f52c33c5>] __tcp_set_ulp net/ipv4/tcp_ulp.c:139 [inline]
    [<00000000f52c33c5>] tcp_set_ulp+0xe2/0x190 net/ipv4/tcp_ulp.c:160
    [<0000000009cb49a0>] do_tcp_setsockopt.isra.0+0x1c1/0xe10 net/ipv4/tcp.c:2825
    [<00000000b9d96429>] tcp_setsockopt+0x71/0x80 net/ipv4/tcp.c:3152
    [<0000000038a5546c>] sock_common_setsockopt+0x38/0x50 net/core/sock.c:3142
    [<00000000d945b2a0>] __sys_setsockopt+0x10f/0x220 net/socket.c:2084
    [<000000003c3afaa0>] __do_sys_setsockopt net/socket.c:2100 [inline]
    [<000000003c3afaa0>] __se_sys_setsockopt net/socket.c:2097 [inline]
    [<000000003c3afaa0>] __x64_sys_setsockopt+0x26/0x30 net/socket.c:2097
    [<00000000f7f21cbd>] do_syscall_64+0x73/0x1f0 arch/x86/entry/common.c:290
    [<00000000d4c003b9>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff88810e3df600 (size 512):
  comm "syz-executor.4", pid 6933, jiffies 4295090088 (age 13.620s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<00000000e93f019a>] kmemleak_alloc_recursive include/linux/kmemleak.h:43 [inline]
    [<00000000e93f019a>] slab_post_alloc_hook mm/slab.h:586 [inline]
    [<00000000e93f019a>] slab_alloc mm/slab.c:3319 [inline]
    [<00000000e93f019a>] kmem_cache_alloc_trace+0x145/0x2c0 mm/slab.c:3548
    [<00000000268637bd>] kmalloc include/linux/slab.h:552 [inline]
    [<00000000268637bd>] kzalloc include/linux/slab.h:686 [inline]
    [<00000000268637bd>] create_ctx net/tls/tls_main.c:611 [inline]
    [<00000000268637bd>] tls_init net/tls/tls_main.c:794 [inline]
    [<00000000268637bd>] tls_init+0xbc/0x200 net/tls/tls_main.c:773
    [<00000000f52c33c5>] __tcp_set_ulp net/ipv4/tcp_ulp.c:139 [inline]
    [<00000000f52c33c5>] tcp_set_ulp+0xe2/0x190 net/ipv4/tcp_ulp.c:160
    [<0000000009cb49a0>] do_tcp_setsockopt.isra.0+0x1c1/0xe10 net/ipv4/tcp.c:2825
    [<00000000b9d96429>] tcp_setsockopt+0x71/0x80 net/ipv4/tcp.c:3152
    [<0000000038a5546c>] sock_common_setsockopt+0x38/0x50 net/core/sock.c:3142
    [<00000000d945b2a0>] __sys_setsockopt+0x10f/0x220 net/socket.c:2084
    [<000000003c3afaa0>] __do_sys_setsockopt net/socket.c:2100 [inline]
    [<000000003c3afaa0>] __se_sys_setsockopt net/socket.c:2097 [inline]
    [<000000003c3afaa0>] __x64_sys_setsockopt+0x26/0x30 net/socket.c:2097
    [<00000000f7f21cbd>] do_syscall_64+0x73/0x1f0 arch/x86/entry/common.c:290
    [<00000000d4c003b9>] entry_SYSCALL_64_after_hwframe+0x44/0xa9


Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/09/26 13:41 upstream f41def397161 24d405a3 .config console log report syz ci-upstream-gce-leak
* Struck through repros no longer work on HEAD.