syzbot


memory leak in fasync_helper

Status: fixed on 2020/04/15 17:19
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+4b1fe8105f8044a26162@syzkaller.appspotmail.com
Fix commit: 67f562e3e147 net/smc: transfer fasync_list in case of fallback
First crash: 1682d, last: 1597d
Discussions (4)
Title Replies (including bot) Last reply
[PATCH 5.5 000/176] 5.5.8-stable review 201 (201) 2020/03/04 22:14
[PATCH 5.4 000/152] 5.4.24-stable review 160 (160) 2020/03/04 16:52
[PATCH net 0/2] net/smc: fixes for -net 4 (4) 2020/02/14 15:14
memory leak in fasync_helper 2 (3) 2019/12/10 17:49
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream memory leak in fasync_helper (2) net C 1 194d 275d 0/27 upstream: reported C repro on 2023/09/21 06:52

Sample crash report:
executing program
executing program
BUG: memory leak
unreferenced object 0xffff88811423f360 (size 48):
  comm "syz-executor669", pid 7120, jiffies 4294944108 (age 13.680s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 01 46 00 00 03 00 00 00  .........F......
    00 00 00 00 00 00 00 00 00 15 9d 18 81 88 ff ff  ................
  backtrace:
    [<00000000c6f34c21>] kmemleak_alloc_recursive include/linux/kmemleak.h:43 [inline]
    [<00000000c6f34c21>] slab_post_alloc_hook mm/slab.h:586 [inline]
    [<00000000c6f34c21>] slab_alloc mm/slab.c:3320 [inline]
    [<00000000c6f34c21>] kmem_cache_alloc+0x13f/0x2c0 mm/slab.c:3484
    [<0000000047574cc2>] fasync_alloc fs/fcntl.c:895 [inline]
    [<0000000047574cc2>] fasync_add_entry fs/fcntl.c:953 [inline]
    [<0000000047574cc2>] fasync_helper+0x37/0xa9 fs/fcntl.c:982
    [<000000002840787e>] sock_fasync+0x4d/0xa0 net/socket.c:1308
    [<000000003a1b88e1>] ioctl_fioasync fs/ioctl.c:584 [inline]
    [<000000003a1b88e1>] do_vfs_ioctl+0x646/0x7f0 fs/ioctl.c:687
    [<00000000dd222d04>] ksys_ioctl+0x88/0xe0 fs/ioctl.c:745
    [<00000000ecc91f7a>] __do_sys_ioctl fs/ioctl.c:756 [inline]
    [<00000000ecc91f7a>] __se_sys_ioctl fs/ioctl.c:754 [inline]
    [<00000000ecc91f7a>] __x64_sys_ioctl+0x1e/0x30 fs/ioctl.c:754
    [<000000008c336732>] do_syscall_64+0x73/0x220 arch/x86/entry/common.c:294
    [<00000000c1936b11>] entry_SYSCALL_64_after_hwframe+0x44/0xa9


Crashes (14):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/02/06 23:24 upstream 4c46bef2e96a c91cbc9d .config console log report syz C ci-upstream-gce-leak
2020/02/01 00:29 upstream ccaaaf6fe5a5 c30117b2 .config console log report syz C ci-upstream-gce-leak
2020/01/21 22:07 upstream d96d875ef5dd 8eda0b95 .config console log report syz C ci-upstream-gce-leak
2020/01/19 19:39 upstream 8f8972a3127f 0342f8c7 .config console log report syz C ci-upstream-gce-leak
2020/01/09 10:00 upstream b07f636fca1c ddc3e859 .config console log report syz C ci-upstream-gce-leak
2019/12/26 04:28 upstream 46cf053efec6 be5c2c81 .config console log report syz C ci-upstream-gce-leak
2019/12/20 11:43 upstream 7e0165b2f1a9 e30cbdae .config console log report syz C ci-upstream-gce-leak
2019/12/10 01:14 upstream e42617b825f8 b31eda3d .config console log report syz C ci-upstream-gce-leak
2019/12/03 23:21 upstream 76bb8b05960c ae13a849 .config console log report syz C ci-upstream-gce-leak
2019/12/03 08:14 upstream 596cf45cbf6e ab342da3 .config console log report syz C ci-upstream-gce-leak
2019/12/02 08:53 upstream ceb307474506 f879db37 .config console log report syz C ci-upstream-gce-leak
2019/11/21 21:14 upstream c74386d50fba 8098ea0f .config console log report syz C ci-upstream-gce-leak
2019/11/19 15:53 upstream af42d3466bdc 5bc70212 .config console log report syz C ci-upstream-gce-leak
2019/11/14 03:25 upstream bf9294798930 048f2d49 .config console log report syz C ci-upstream-gce-leak
* Struck through repros no longer work on HEAD.