syzbot


WARNING: kmalloc bug in vfs_getxattr_alloc

Status: fixed on 2018/11/12 21:25
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+af1504df0807a083dbd9@syzkaller.appspotmail.com
Fix commit: 61448479a9f2 mm: don't warn about large allocations for slab
First crash: 2080d, last: 2038d
Discussions (18)
Title Replies (including bot) Last reply
[PATCH 4.19 000/110] 4.19.6-stable review 142 (142) 2018/12/14 17:42
[PATCH 4.14 000/100] 4.14.85-stable review 116 (116) 2018/12/03 11:38
[PATCH 4.9 00/92] 4.9.142-stable review 102 (102) 2018/11/30 22:28
[PATCH AUTOSEL 3.18 1/9] bfs: add sanity check at bfs_fill_super() 24 (24) 2018/11/22 21:01
[PATCH AUTOSEL 4.18 01/39] bfs: add sanity check at bfs_fill_super() 41 (41) 2018/11/22 19:35
[PATCH AUTOSEL 4.9 01/17] bfs: add sanity check at bfs_fill_super() 20 (20) 2018/11/22 15:53
[PATCH AUTOSEL 4.4 01/11] bfs: add sanity check at bfs_fill_super() 11 (11) 2018/11/13 05:52
[PATCH AUTOSEL 4.14 01/26] bfs: add sanity check at bfs_fill_super() 26 (26) 2018/11/13 05:51
[PATCH AUTOSEL 4.19 01/44] bfs: add sanity check at bfs_fill_super() 44 (44) 2018/11/13 05:49
[PATCH AUTOSEL 4.14 01/30] mm/vmstat.c: assert that vmstat_text is in sync with stat_items_size 33 (33) 2018/11/11 22:07
[PATCH AUTOSEL 4.19 01/57] mm: thp: fix MADV_DONTNEED vs migrate_misplaced_transhuge_page race condition 58 (58) 2018/11/05 22:26
[PATCH AUTOSEL 3.18 01/13] mm/vmstat.c: assert that vmstat_text is in sync with stat_items_size 13 (13) 2018/11/04 13:54
[PATCH AUTOSEL 4.4 01/15] mm/vmstat.c: assert that vmstat_text is in sync with stat_items_size 15 (15) 2018/11/04 13:54
[PATCH AUTOSEL 4.9 01/21] mm/vmstat.c: assert that vmstat_text is in sync with stat_items_size 21 (21) 2018/11/04 13:53
[PATCH AUTOSEL 4.18 01/45] mm: thp: fix MADV_DONTNEED vs migrate_misplaced_transhuge_page race condition 45 (45) 2018/11/04 13:52
[PATCH v2] mm: don't warn about large allocations for slab 2 (2) 2018/10/16 13:59
[PATCH] mm: don't warn about large allocations for slab 3 (3) 2018/09/27 17:17
WARNING: kmalloc bug in vfs_getxattr_alloc 1 (2) 2018/07/18 08:50

Sample crash report:
random: sshd: uninitialized urandom read (32 bytes read)
random: sshd: uninitialized urandom read (32 bytes read)
random: sshd: uninitialized urandom read (32 bytes read)
random: sshd: uninitialized urandom read (32 bytes read)
random: sshd: uninitialized urandom read (32 bytes read)
WARNING: CPU: 1 PID: 4528 at mm/slab_common.c:1031 kmalloc_slab+0x56/0x70 mm/slab_common.c:1031
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 4528 Comm: syz-executor989 Not tainted 4.18.0-rc5+ #154
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1c9/0x2b4 lib/dump_stack.c:113
 panic+0x238/0x4e7 kernel/panic.c:184
 __warn.cold.8+0x163/0x1ba kernel/panic.c:536
 report_bug+0x252/0x2d0 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 do_error_trap+0x1fc/0x4d0 arch/x86/kernel/traps.c:296
 do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:316
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:992
RIP: 0010:kmalloc_slab+0x56/0x70 mm/slab_common.c:1031
Code: c5 c0 1a d1 88 5d c3 b8 10 00 00 00 48 85 ff 74 f4 83 ef 01 c1 ef 03 0f b6 87 e0 19 d1 88 eb d8 31 c0 81 e6 00 02 00 00 75 db <0f> 0b 5d c3 48 8b 04 c5 00 1a d1 88 5d c3 66 90 66 2e 0f 1f 84 00 
RSP: 0018:ffff8801ac167830 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff81cf0bed
RDX: ffffffff81cf0c84 RSI: 0000000000000000 RDI: 000000002f2e0008
RBP: ffff8801ac167830 R08: ffff8801ac1aa640 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 000000002f2e0008
R13: 0000000000600040 R14: ffff8801ac167998 R15: 0000000000600040
 __do_kmalloc mm/slab.c:3713 [inline]
 __kmalloc_track_caller+0x21/0x760 mm/slab.c:3733
 __do_krealloc mm/slab_common.c:1468 [inline]
 krealloc+0x65/0xb0 mm/slab_common.c:1515
 vfs_getxattr_alloc+0x274/0x3c0 fs/xattr.c:289
 cap_inode_getsecurity+0x104/0x820 security/commoncap.c:396
 security_inode_getsecurity+0xe1/0x130 security/security.c:815
 xattr_getsecurity fs/xattr.c:244 [inline]
 vfs_getxattr+0x1db/0x390 fs/xattr.c:332
 getxattr+0x139/0x2c0 fs/xattr.c:538
 path_getxattr+0x103/0x1b0 fs/xattr.c:566
 __do_sys_getxattr fs/xattr.c:578 [inline]
 __se_sys_getxattr fs/xattr.c:575 [inline]
 __x64_sys_getxattr+0x9d/0x100 fs/xattr.c:575
 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x440559
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 fb 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00 
RSP: 002b:00007fff9dcf30d8 EFLAGS: 00000217 ORIG_RAX: 00000000000000bf
RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 0000000000440559
RDX: 00000000200002c0 RSI: 0000000020000500 RDI: 00000000200004c0
RBP: 64663d736e617274 R08: 00007fff9dcf3258 R09: 00007fff9dcf3258
R10: 0000000000000143 R11: 0000000000000217 R12: 0000000000401de0
R13: 0000000000401e70 R14: 0000000000000000 R15: 0000000000000000
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/07/19 17:40 upstream 024ddc0ce104 49f35839 .config console log report syz C ci-upstream-kasan-gce-root
2018/07/18 05:01 linux-next 1dcbe5f2c615 6d5bd5b5 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/08/29 14:33 upstream 3f16503b7d22 53ff8784 .config console log report ci-upstream-kasan-gce-root
2018/08/14 06:30 upstream 7796916146b8 7a88b141 .config console log report ci-upstream-kasan-gce-root
2018/08/11 06:57 upstream f313b43be461 7a88b141 .config console log report ci-upstream-kasan-gce-root
2018/08/08 12:19 upstream 1236568ee3cb ddeb9f8d .config console log report ci-upstream-kasan-gce-root
2018/07/19 18:33 upstream 024ddc0ce104 49f35839 .config console log report ci-upstream-kasan-gce-root
2018/08/12 09:32 linux-next 4110b42356f3 7a88b141 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/18 04:38 linux-next 1dcbe5f2c615 6d5bd5b5 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.