syzbot


memory leak in smc_create

Status: fixed on 2019/11/29 15:48
Subsystems: net s390
[Documentation on labels]
Reported-by: syzbot+4b73ad6fc767e576e275@syzkaller.appspotmail.com
Fix commit: 6d6dd528d5af net/smc: fix refcount non-blocking connect() -part 2
First crash: 1664d, last: 1651d
Discussions (3)
Title Replies (including bot) Last reply
[PATCH 5.3 00/48] 5.3.12-stable review 57 (57) 2019/11/20 06:00
[PATCH net] net/smc: fix refcount non-blocking connect() -part 2 2 (2) 2019/11/12 20:17
memory leak in smc_create 0 (1) 2019/11/03 19:42
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream memory leak in smc_create (2) net s390 C 2 791d 787d 22/26 fixed on 2023/02/24 13:50

Sample crash report:
udit: type=1400 audit(1573935105.573:42): avc:  denied  { map } for  pid=6993 comm="syz-executor986" path="/root/syz-executor986874846" dev="sda1" ino=16484 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1
executing program
executing program
BUG: memory leak
unreferenced object 0xffff888121e1f640 (size 1376):
  comm "syz-executor986", pid 6994, jiffies 4294943557 (age 14.210s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    2b 00 07 40 00 00 00 00 00 00 00 00 00 00 00 00  +..@............
  backtrace:
    [<000000005f714a66>] kmemleak_alloc_recursive include/linux/kmemleak.h:43 [inline]
    [<000000005f714a66>] slab_post_alloc_hook mm/slab.h:586 [inline]
    [<000000005f714a66>] slab_alloc mm/slab.c:3319 [inline]
    [<000000005f714a66>] kmem_cache_alloc+0x13f/0x2c0 mm/slab.c:3483
    [<000000001374c47e>] sk_prot_alloc+0x41/0x170 net/core/sock.c:1599
    [<00000000e47fa94a>] sk_alloc+0x35/0x2f0 net/core/sock.c:1659
    [<000000006cdd344d>] smc_sock_alloc+0x4a/0x1a0 net/smc/af_smc.c:222
    [<000000001dd2845f>] smc_create+0x6b/0x160 net/smc/af_smc.c:1979
    [<0000000065987873>] __sock_create+0x164/0x250 net/socket.c:1418
    [<0000000052ffb0ac>] sock_create net/socket.c:1469 [inline]
    [<0000000052ffb0ac>] __sys_socket+0x69/0x110 net/socket.c:1511
    [<0000000059e9f56c>] __do_sys_socket net/socket.c:1520 [inline]
    [<0000000059e9f56c>] __se_sys_socket net/socket.c:1518 [inline]
    [<0000000059e9f56c>] __x64_sys_socket+0x1e/0x30 net/socket.c:1518
    [<00000000198053f9>] do_syscall_64+0x73/0x1f0 arch/x86/entry/common.c:290
    [<0000000001bbaaab>] entry_SYSCALL_64_after_hwframe+0x44/0xa9


Crashes (19):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/11/16 20:14 upstream 6c9594bdd474 d5696d51 .config console log report syz C ci-upstream-gce-leak
2019/11/16 16:34 upstream 6c9594bdd474 d5696d51 .config console log report syz C ci-upstream-gce-leak
2019/11/15 19:44 upstream 96b95eff4a59 cdac920b .config console log report syz C ci-upstream-gce-leak
2019/11/13 12:05 upstream 0e3f1ad80fc8 048f2d49 .config console log report syz C ci-upstream-gce-leak
2019/11/13 11:19 upstream 0e3f1ad80fc8 048f2d49 .config console log report syz C ci-upstream-gce-leak
2019/11/13 11:01 upstream 0e3f1ad80fc8 048f2d49 .config console log report syz C ci-upstream-gce-leak
2019/11/13 01:35 upstream eb094f06963b 048f2d49 .config console log report syz C ci-upstream-gce-leak
2019/11/12 15:21 upstream de620fb99ef2 048f2d49 .config console log report syz C ci-upstream-gce-leak
2019/11/11 22:07 upstream 31f4f5b495a6 048f2d49 .config console log report syz C ci-upstream-gce-leak
2019/11/11 01:31 upstream 9805a68371ce dc438b91 .config console log report syz C ci-upstream-gce-leak
2019/11/10 14:58 upstream 00aff6836241 dc438b91 .config console log report syz C ci-upstream-gce-leak
2019/11/09 16:11 upstream 0058b0a506e4 dc438b91 .config console log report syz C ci-upstream-gce-leak
2019/11/09 06:30 upstream 6737e7634951 dc438b91 .config console log report syz C ci-upstream-gce-leak
2019/11/09 05:50 upstream 6737e7634951 dc438b91 .config console log report syz C ci-upstream-gce-leak
2019/11/07 19:15 upstream 4dd58158254c f39aff9e .config console log report syz C ci-upstream-gce-leak
2019/11/07 13:43 upstream 4dd58158254c d797d201 .config console log report syz C ci-upstream-gce-leak
2019/11/05 04:15 upstream a99d8080aaf3 76630fc9 .config console log report syz C ci-upstream-gce-leak
2019/11/03 13:55 upstream 56cfd2507d3e c9610487 .config console log report syz C ci-upstream-gce-leak
2019/11/03 05:14 upstream 9d2345057538 a41ca8fa .config console log report syz C ci-upstream-gce-leak
* Struck through repros no longer work on HEAD.