syzbot


memory leak in reiserfs_parse_options

Status: fixed on 2020/11/16 12:12
Subsystems: reiserfs
[Documentation on labels]
Reported-by: syzbot+c9e294bbe0333a6b7640@syzkaller.appspotmail.com
Fix commit: e9d4709fcc26 reiserfs: Fix memory leak in reiserfs_parse_options()
First crash: 1688d, last: 1493d
Discussions (16)
Title Replies (including bot) Last reply
[PATCH 5.9 000/757] 5.9.2-rc1 review 766 (766) 2020/10/30 08:32
[PATCH 4.19 000/264] 4.19.153-rc1 review 275 (275) 2020/10/29 08:56
[PATCH 5.8 000/633] 5.8.17-rc1 review 638 (638) 2020/10/28 22:08
[PATCH 4.4 000/112] 4.4.241-rc1 review 115 (115) 2020/10/28 15:54
[PATCH 4.9 000/139] 4.9.241-rc1 review 141 (141) 2020/10/28 13:53
[PATCH 4.14 000/191] 4.14.203-rc1 review 194 (194) 2020/10/28 12:43
[PATCH 5.4 000/408] 5.4.73-rc1 review 410 (410) 2020/10/28 06:53
[PATCH AUTOSEL 5.9 001/111] md/bitmap: fix memory leak of temporary bitmap 126 (126) 2020/10/25 23:48
[PATCH AUTOSEL 4.4 01/33] media: firewire: fix memory leak 33 (33) 2020/10/18 19:27
[PATCH AUTOSEL 4.9 01/41] crypto: ccp - fix error handling 41 (41) 2020/10/18 19:26
[PATCH AUTOSEL 4.14 01/52] crypto: ccp - fix error handling 52 (52) 2020/10/18 19:25
[PATCH AUTOSEL 4.19 01/56] block: ratelimit handle_bad_sector() message 56 (56) 2020/10/18 19:24
[PATCH AUTOSEL 5.4 01/80] md/bitmap: fix memory leak of temporary bitmap 80 (80) 2020/10/18 19:22
[PATCH AUTOSEL 5.8 001/101] md/bitmap: fix memory leak of temporary bitmap 101 (101) 2020/10/18 19:20
[PATCH] reiserfs: Fix memory leak in reiserfs_parse_options() 1 (1) 2020/03/04 13:18
memory leak in reiserfs_parse_options 0 (1) 2020/03/01 19:13
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream memory leak in reiserfs_parse_options (2) reiserfs C 5 289d 643d 0/28 auto-obsoleted due to no activity on 2024/06/10 22:01

Sample crash report:
executing program
BUG: memory leak
unreferenced object 0xffff888118d545a0 (size 32):
  comm "syz-executor875", pid 6496, jiffies 4294942702 (age 12.830s)
  hex dump (first 32 bytes):
    73 79 7a 00 00 00 00 00 c0 f4 2e 19 81 88 ff ff  syz.............
    01 00 00 00 03 00 00 00 11 00 00 00 00 00 00 00  ................
  backtrace:
    [<00000000b09c3c6c>] kstrdup+0x36/0x70 mm/util.c:60
    [<00000000700877c1>] reiserfs_parse_options+0x8b0/0xdd0 fs/reiserfs/super.c:1277
    [<0000000085aac41b>] reiserfs_fill_super+0x180/0x10ac fs/reiserfs/super.c:1941
    [<00000000e2f81fd9>] mount_bdev+0x1d3/0x210 fs/super.c:1417
    [<00000000cfb8f4fa>] legacy_get_tree+0x26/0x70 fs/fs_context.c:592
    [<00000000cdc6c89c>] vfs_get_tree+0x28/0xe0 fs/super.c:1547
    [<0000000084ca15da>] do_new_mount fs/namespace.c:2875 [inline]
    [<0000000084ca15da>] path_mount+0x90e/0xda0 fs/namespace.c:3192
    [<00000000a0716d08>] do_mount fs/namespace.c:3205 [inline]
    [<00000000a0716d08>] __do_sys_mount fs/namespace.c:3413 [inline]
    [<00000000a0716d08>] __se_sys_mount fs/namespace.c:3390 [inline]
    [<00000000a0716d08>] __x64_sys_mount+0x140/0x190 fs/namespace.c:3390
    [<0000000082d042cf>] do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
    [<0000000053f8569b>] entry_SYSCALL_64_after_hwframe+0x44/0xa9


Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/09/13 04:29 upstream 729e3d091984 ce441f06 .config console log report syz C ci-upstream-gce-leak
2020/07/18 16:06 upstream 6a70f89cc58f 9c812472 .config console log report syz C ci-upstream-gce-leak
2020/03/11 23:31 upstream f35111a94654 e7caca8e .config console log report syz C ci-upstream-gce-leak
2020/03/01 14:29 upstream 63623fd44972 c88c7b75 .config console log report syz C ci-upstream-gce-leak
* Struck through repros no longer work on HEAD.