syzbot


memory leak in v2_read_file_info

Status: fixed on 2021/04/09 19:46
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+77779c9b52ab78154b08@syzkaller.appspotmail.com
Fix commit: a4db1072e1a3 quota: Fix memory leak when handling corrupted quota file
First crash: 1249d, last: 1186d
Discussions (6)
Title Replies (including bot) Last reply
[PATCH 4.19 000/247] 4.19.178-rc1 review 277 (277) 2022/03/02 15:52
[PATCH 5.10 000/663] 5.10.20-rc1 review 673 (673) 2021/03/05 18:03
[PATCH 5.4 000/340] 5.4.102-rc1 review 348 (348) 2021/03/04 09:26
[PATCH 5.11 000/775] 5.11.3-rc1 review 776 (776) 2021/03/01 16:15
[PATCH 4.14 000/176] 4.14.223-rc1 review 177 (177) 2021/03/01 16:14
memory leak in v2_read_file_info 1 (2) 2020/12/22 11:13

Sample crash report:
BUG: memory leak
unreferenced object 0xffff888110d07900 (size 64):
  comm "syz-executor676", pid 8425, jiffies 4294942928 (age 12.460s)
  hex dump (first 32 bytes):
    00 10 e6 0d 81 88 ff ff 01 00 00 00 06 ca 9c 4d  ...............M
    ad 71 ed 5d 49 e5 ce 00 0a 00 00 00 48 00 00 00  .q.]I.......H...
  backtrace:
    [<00000000697e8ead>] kmalloc include/linux/slab.h:552 [inline]
    [<00000000697e8ead>] v2_read_file_info+0x1ae/0x430 fs/quota/quota_v2.c:122
    [<00000000425d7da0>] dquot_load_quota_sb+0x351/0x650 fs/quota/dquot.c:2387
    [<00000000b45fba8b>] dquot_load_quota_inode fs/quota/dquot.c:2423 [inline]
    [<00000000b45fba8b>] dquot_load_quota_inode+0xda/0x160 fs/quota/dquot.c:2415
    [<000000007be1312c>] ext4_quota_enable fs/ext4/super.c:6400 [inline]
    [<000000007be1312c>] ext4_enable_quotas+0x1b2/0x2f0 fs/ext4/super.c:6426
    [<0000000018687b3d>] ext4_fill_super+0x3fa5/0x5ad0 fs/ext4/super.c:5034
    [<000000006b6be00d>] mount_bdev+0x223/0x260 fs/super.c:1366
    [<00000000b334b287>] legacy_get_tree+0x2b/0x90 fs/fs_context.c:592
    [<00000000821a81de>] vfs_get_tree+0x28/0x100 fs/super.c:1496
    [<00000000ac4516b5>] do_new_mount fs/namespace.c:2881 [inline]
    [<00000000ac4516b5>] path_mount+0xc5e/0x1170 fs/namespace.c:3211
    [<0000000019d096f8>] do_mount fs/namespace.c:3224 [inline]
    [<0000000019d096f8>] __do_sys_mount fs/namespace.c:3432 [inline]
    [<0000000019d096f8>] __se_sys_mount fs/namespace.c:3409 [inline]
    [<0000000019d096f8>] __x64_sys_mount+0x18e/0x1d0 fs/namespace.c:3409
    [<000000008ead5c45>] do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
    [<00000000119e9b51>] entry_SYSCALL_64_after_hwframe+0x44/0xa9


Crashes (71):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/02/19 19:02 upstream f40ddce88593 f689d40a .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/02/18 06:47 upstream f40ddce88593 14052202 .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/02/17 14:37 upstream f40ddce88593 052f8d9f .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/02/17 10:17 upstream f40ddce88593 052f8d9f .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/02/15 05:10 upstream f40ddce88593 98682e5e .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/02/14 18:21 upstream 358feceebbf6 98682e5e .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/02/14 01:37 upstream ac30d8ce28d6 98682e5e .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/02/13 16:42 upstream c6d8570e4d64 98682e5e .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/02/13 01:21 upstream dcc0b49040c7 98682e5e .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/02/12 14:15 upstream dcc0b49040c7 a5f86b15 .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/02/08 18:52 upstream 92bf22614b21 2ce644fc .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/02/08 17:26 upstream 92bf22614b21 2ce644fc .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/02/08 14:53 upstream 92bf22614b21 2ce644fc .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/02/08 06:09 upstream b75dba7f472c 2ce644fc .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/02/07 17:29 upstream 825b5991a46e 2ce644fc .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/02/07 12:47 upstream 825b5991a46e 2ce644fc .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/02/07 11:23 upstream 825b5991a46e 2ce644fc .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/02/07 05:19 upstream 964d069f93c4 0655e081 .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/02/07 04:11 upstream 964d069f93c4 0655e081 .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/02/05 15:41 upstream dd86e7fa07a3 23a562df .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/02/04 14:23 upstream 61556703b610 42b90a7c .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/02/04 09:32 upstream 3afe9076a7c1 624dad51 .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/02/01 20:32 upstream 1048ba83fb1c e6b95f32 .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/02/01 18:06 upstream 1048ba83fb1c e6b95f32 .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/01/31 09:07 upstream 8c947645151c fc9fd31e .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/01/30 03:48 upstream bec4c2968fce fc9fd31e .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/01/29 14:28 upstream bec4c2968fce 6593fd32 .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/01/29 04:47 upstream e5ff2cb9cf67 7df34f59 .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/01/28 03:45 upstream 76c057c84d28 eefc07f2 .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/01/27 15:48 upstream 2ab38c17aac1 a0ebf917 .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/01/27 14:09 upstream 2ab38c17aac1 a0ebf917 .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/01/25 12:08 upstream 6ee1d745b7c9 52e37319 .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/01/25 05:55 upstream e68061375f79 52e37319 .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/01/24 09:38 upstream e1ae4b0be158 52e37319 .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/01/23 15:35 upstream fe75a21824e7 52e37319 .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/01/22 05:53 upstream 9f29bd8b2e71 d4f4eca5 .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/01/21 16:15 upstream 9791581c049c d4f4eca5 .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/01/20 16:57 upstream 45dfb8a5659a d4f4eca5 .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/01/19 07:58 upstream 1e2a199f6ccd 63631df1 .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/01/18 09:16 upstream a1339d6355ac fd103621 .config console log report syz C ci-upstream-gce-leak memory leak in v2_read_file_info
2021/01/16 00:35 upstream 5ee88057889b 65a7a854 .config console log report syz C ci-upstream-gce-leak
2021/01/14 07:23 upstream 65f0d2414b70 269d24e8 .config console log report syz C ci-upstream-gce-leak
2021/01/14 06:00 upstream 65f0d2414b70 269d24e8 .config console log report syz C ci-upstream-gce-leak
2021/01/14 04:29 upstream 65f0d2414b70 269d24e8 .config console log report syz C ci-upstream-gce-leak
2021/01/13 23:39 upstream e609571b5ffa a945f0a3 .config console log report syz C ci-upstream-gce-leak
2021/01/12 22:49 upstream e609571b5ffa 0cdd6185 .config console log report syz C ci-upstream-gce-leak
2021/01/10 08:50 upstream 2ff90100ace8 2c1f2513 .config console log report syz C ci-upstream-gce-leak
2021/01/09 21:29 upstream 996e435fd401 2c1f2513 .config console log report syz C ci-upstream-gce-leak
2021/01/08 10:47 upstream f5e6c330254a c104d4a3 .config console log report syz C ci-upstream-gce-leak
2021/01/06 11:00 upstream 6207214a70bf b1c228e1 .config console log report syz C ci-upstream-gce-leak
2021/01/06 09:36 upstream 6207214a70bf b1c228e1 .config console log report syz C ci-upstream-gce-leak
2021/01/06 08:37 upstream 6207214a70bf b1c228e1 .config console log report syz C ci-upstream-gce-leak
2021/01/05 07:29 upstream 36bbbd0e234d 2a28ff1f .config console log report syz C ci-upstream-gce-leak
2021/01/05 06:19 upstream 36bbbd0e234d 2a28ff1f .config console log report syz C ci-upstream-gce-leak
2021/01/03 08:37 upstream 3516bd729358 79264ae3 .config console log report syz C ci-upstream-gce-leak
2021/01/02 15:40 upstream eda809aef534 79264ae3 .config console log report syz C ci-upstream-gce-leak
2020/12/31 22:02 upstream f6e1ea196492 79264ae3 .config console log report syz C ci-upstream-gce-leak
2020/12/31 12:25 upstream f6e1ea196492 5cc121d6 .config console log report syz C ci-upstream-gce-leak
2020/12/30 19:11 upstream 139711f033f6 ecb8c012 .config console log report syz C ci-upstream-gce-leak
2020/12/30 07:16 upstream 139711f033f6 0fa352f2 .config console log report syz C ci-upstream-gce-leak
2020/12/29 09:09 upstream dea8dcf2a9fa 8259d56c .config console log report syz C ci-upstream-gce-leak
2020/12/28 08:28 upstream 5c8fe583cce5 2242f77f .config console log report syz C ci-upstream-gce-leak
2020/12/26 08:45 upstream 5814bc2d4cc2 821e0b09 .config console log report syz C ci-upstream-gce-leak
2020/12/26 03:10 upstream 5814bc2d4cc2 821e0b09 .config console log report syz C ci-upstream-gce-leak
2020/12/23 15:31 upstream 614cb5894306 c2c1d1dd .config console log report syz C ci-upstream-gce-leak
2020/12/23 03:49 upstream 614cb5894306 04201c06 .config console log report syz C ci-upstream-gce-leak
2020/12/22 05:28 upstream 8653b778e454 04201c06 .config console log report syz C ci-upstream-gce-leak
2020/12/21 18:31 upstream e37b12e4bb21 04201c06 .config console log report syz C ci-upstream-gce-leak
2020/12/20 04:32 upstream 467f8165a2b0 04201c06 .config console log report syz C ci-upstream-gce-leak
2020/12/18 22:40 upstream a409ed156a90 04201c06 .config console log report syz C ci-upstream-gce-leak
2020/12/18 10:21 upstream d64c6f96ba86 04201c06 .config console log report syz C ci-upstream-gce-leak
* Struck through repros no longer work on HEAD.