syzbot


memory leak in lapb_register

Status: fixed on 2019/07/10 21:40
Subsystems: x25
[Documentation on labels]
Reported-by: syzbot+afb980676c836b4a0afa@syzkaller.appspotmail.com
Fix commit: 6be8e297f9bc lapb: fixed leak of control-blocks.
First crash: 1831d, last: 1804d
Discussions (7)
Title Replies (including bot) Last reply
[PATCH 4.19 00/61] 4.19.54-stable review 66 (66) 2019/06/22 08:20
[PATCH 5.1 00/98] 5.1.13-stable review 106 (106) 2019/06/22 05:43
[PATCH 4.14 00/45] 4.14.129-stable review 49 (49) 2019/06/22 00:44
[PATCH 4.9 000/117] 4.9.183-stable review 121 (121) 2019/06/22 00:44
[PATCH 4.4 00/84] 4.4.183-stable review 88 (88) 2019/06/22 00:43
[PATCH net] lapb: fixed leak of control-blocks. 2 (2) 2019/06/17 03:44
memory leak in lapb_register 0 (1) 2019/05/21 13:43

Sample crash report:
e list of known hosts.
executing program
BUG: memory leak
unreferenced object 0xffff8881171d1600 (size 256):
  comm "softirq", pid 0, jiffies 4294942390 (age 7.930s)
  hex dump (first 32 bytes):
    00 01 00 00 00 00 ad de 00 02 00 00 00 00 ad de  ................
    00 20 2c 1f 81 88 ff ff 00 00 00 00 00 00 00 00  . ,.............
  backtrace:
    [<0000000082963841>] kmemleak_alloc_recursive include/linux/kmemleak.h:43 [inline]
    [<0000000082963841>] slab_post_alloc_hook mm/slab.h:439 [inline]
    [<0000000082963841>] slab_alloc mm/slab.c:3326 [inline]
    [<0000000082963841>] kmem_cache_alloc_trace+0x13d/0x280 mm/slab.c:3553
    [<0000000054eab101>] kmalloc include/linux/slab.h:547 [inline]
    [<0000000054eab101>] kzalloc include/linux/slab.h:742 [inline]
    [<0000000054eab101>] lapb_create_cb net/lapb/lapb_iface.c:116 [inline]
    [<0000000054eab101>] lapb_register+0x90/0x1c0 net/lapb/lapb_iface.c:153
    [<000000005e4be75d>] x25_asy_open drivers/net/wan/x25_asy.c:483 [inline]
    [<000000005e4be75d>] x25_asy_open_tty+0x26b/0x2f6 drivers/net/wan/x25_asy.c:573
    [<00000000a1955d0d>] tty_ldisc_open.isra.0+0x40/0x70 drivers/tty/tty_ldisc.c:469
    [<00000000c1fd4b60>] tty_set_ldisc+0x149/0x240 drivers/tty/tty_ldisc.c:596
    [<000000001fcd470c>] tiocsetd drivers/tty/tty_io.c:2332 [inline]
    [<000000001fcd470c>] tty_ioctl+0x366/0xa30 drivers/tty/tty_io.c:2592
    [<00000000235046e7>] vfs_ioctl fs/ioctl.c:46 [inline]
    [<00000000235046e7>] file_ioctl fs/ioctl.c:509 [inline]
    [<00000000235046e7>] do_vfs_ioctl+0x62a/0x810 fs/ioctl.c:696
    [<00000000a7aeefa2>] ksys_ioctl+0x86/0xb0 fs/ioctl.c:713
    [<0000000058c53352>] __do_sys_ioctl fs/ioctl.c:720 [inline]
    [<0000000058c53352>] __se_sys_ioctl fs/ioctl.c:718 [inline]
    [<0000000058c53352>] __x64_sys_ioctl+0x1e/0x30 fs/ioctl.c:718
    [<0000000012af6732>] do_syscall_64+0x76/0x1a0 arch/x86/entry/common.c:301
    [<0000000011b03c2e>] entry_SYSCALL_64_after_hwframe+0x44/0xa9


Crashes (16):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/06/17 06:48 upstream 963172d9c7e8 442206d7 .config console log report syz C ci-upstream-gce-leak
2019/06/15 03:53 upstream fd6b99fa41dd 442206d7 .config console log report syz C ci-upstream-gce-leak
2019/06/14 01:20 upstream c11fb13a117e a139f92f .config console log report syz C ci-upstream-gce-leak
2019/06/11 04:44 upstream 01ccc3ad4413 0159583c .config console log report syz C ci-upstream-gce-leak
2019/06/10 04:46 upstream d1fdb6d8f6a4 0159583c .config console log report syz C ci-upstream-gce-leak
2019/06/07 21:06 upstream 16d72dd4891f ce9107d0 .config console log report syz C ci-upstream-gce-leak
2019/06/07 20:38 upstream 16d72dd4891f ce9107d0 .config console log report syz C ci-upstream-gce-leak
2019/06/06 09:57 upstream 156c05917e09 a547defc .config console log report syz C ci-upstream-gce-leak
2019/06/01 15:20 upstream 3ab4436f688c 53c81ea5 .config console log report syz C ci-upstream-gce-leak
2019/05/31 14:56 upstream 036e34310931 142ce681 .config console log report syz C ci-upstream-gce-leak
2019/05/28 03:04 upstream cd6c84d8f0cd 6bd61501 .config console log report syz C ci-upstream-gce-leak
2019/05/26 04:59 upstream b2ad81363f12 85c57315 .config console log report syz C ci-upstream-gce-leak
2019/05/25 12:38 upstream c50bbf615f2f 85c57315 .config console log report syz C ci-upstream-gce-leak
2019/05/25 11:44 upstream c50bbf615f2f 85c57315 .config console log report syz C ci-upstream-gce-leak
2019/05/22 15:17 upstream 9c7db5004280 84b9d384 .config console log report syz C ci-upstream-gce-leak
2019/05/21 05:14 upstream f49aa1de9836 8285069f .config console log report syz C ci-upstream-gce-leak
* Struck through repros no longer work on HEAD.