syzbot


BUG: stack guard page was hit in sys_mkdirat

Status: fixed on 2022/05/12 07:47
Reported-by: syzbot+601c96e4316c1ffd2bf4@syzkaller.appspotmail.com
Fix commit: 3e45af8a72c0 ANDROID: incremental-fs: limit mount stack depth
First crash: 960d, last: 927d
Cause bisection: failed (error log, bisect log)
  

Sample crash report:
BUG: stack guard page was hit at ffffc90003c4fff8 (stack is ffffc90003c50000..ffffc90003c57fff)
kernel stack overflow (double-fault): 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 1399 Comm: syz-executor.0 Not tainted 5.10.111-syzkaller-00181-g904c5c08bb41 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__sanitizer_cov_trace_pc+0x0/0x60 kernel/kcov.c:190
Code: c3 66 0f 1f 84 00 00 00 00 00 55 48 89 e5 be 0c 00 00 00 48 c7 c7 20 dc 3b 86 e8 bb bb 39 00 5d c3 cc cc cc cc cc cc cc cc cc <55> 48 89 e5 48 8b 45 08 65 48 8b 0c 25 80 6d 02 00 65 8b 15 24 bd
RSP: 0018:ffffc90003c50000 EFLAGS: 00010282
RAX: 1ffff9200078a000 RBX: ffff88810b479000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88810b479000
RBP: ffffc90003c50050 R08: ffffffff81db1fb4 R09: ffffc90003c50120
R10: fffff5200078a029 R11: 1ffff9200078a024 R12: dffffc0000000000
R13: dffffc0000000000 R14: 1ffff9200078a020 R15: 0000000000000000
FS:  00007fa371c29700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90003c4fff8 CR3: 0000000116cf6000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __ext4_get_inode_loc+0x254/0xd70 fs/ext4/inode.c:4386
 ext4_get_inode_loc+0x128/0x1d0 fs/ext4/inode.c:4525
 ext4_xattr_ibody_get+0x10c/0xb20 fs/ext4/xattr.c:587
 ext4_xattr_get+0x115/0x810 fs/ext4/xattr.c:651
 ext4_xattr_user_get+0xc2/0xf0 fs/ext4/xattr_user.c:28
 __vfs_getxattr+0x62f/0x700 fs/xattr.c:399
 vfs_getxattr+0x54/0x60 fs/xattr.c:406
 incfs_getxattr fs/incfs/vfs.c:1668 [inline]
 incfs_handler_getxattr+0xfa/0x2e0 fs/incfs/vfs.c:164
 __vfs_getxattr+0x62f/0x700 fs/xattr.c:399
 vfs_getxattr+0x54/0x60 fs/xattr.c:406
 incfs_getxattr fs/incfs/vfs.c:1668 [inline]
 incfs_handler_getxattr+0xfa/0x2e0 fs/incfs/vfs.c:164
 __vfs_getxattr+0x62f/0x700 fs/xattr.c:399
 vfs_getxattr+0x54/0x60 fs/xattr.c:406
 incfs_getxattr fs/incfs/vfs.c:1668 [inline]
 incfs_handler_getxattr+0xfa/0x2e0 fs/incfs/vfs.c:164
 __vfs_getxattr+0x62f/0x700 fs/xattr.c:399
 vfs_getxattr+0x54/0x60 fs/xattr.c:406
 incfs_getxattr fs/incfs/vfs.c:1668 [inline]
 incfs_handler_getxattr+0xfa/0x2e0 fs/incfs/vfs.c:164
 __vfs_getxattr+0x62f/0x700 fs/xattr.c:399
 vfs_getxattr+0x54/0x60 fs/xattr.c:406
 incfs_getxattr fs/incfs/vfs.c:1668 [inline]
 incfs_handler_getxattr+0xfa/0x2e0 fs/incfs/vfs.c:164
 __vfs_getxattr+0x62f/0x700 fs/xattr.c:399
 vfs_getxattr+0x54/0x60 fs/xattr.c:406
 incfs_getxattr fs/incfs/vfs.c:1668 [inline]
 incfs_handler_getxattr+0xfa/0x2e0 fs/incfs/vfs.c:164
 __vfs_getxattr+0x62f/0x700 fs/xattr.c:399
 vfs_getxattr+0x54/0x60 fs/xattr.c:406
 incfs_getxattr fs/incfs/vfs.c:1668 [inline]
 incfs_handler_getxattr+0xfa/0x2e0 fs/incfs/vfs.c:164
 __vfs_getxattr+0x62f/0x700 fs/xattr.c:399
 vfs_getxattr+0x54/0x60 fs/xattr.c:406
 incfs_getxattr fs/incfs/vfs.c:1668 [inline]
 incfs_handler_getxattr+0xfa/0x2e0 fs/incfs/vfs.c:164
 __vfs_getxattr+0x62f/0x700 fs/xattr.c:399
 vfs_getxattr+0x54/0x60 fs/xattr.c:406
 incfs_getxattr fs/incfs/vfs.c:1668 [inline]
 incfs_handler_getxattr+0xfa/0x2e0 fs/incfs/vfs.c:164
 __vfs_getxattr+0x62f/0x700 fs/xattr.c:399
 vfs_getxattr+0x54/0x60 fs/xattr.c:406
 incfs_getxattr fs/incfs/vfs.c:1668 [inline]
 incfs_handler_getxattr+0xfa/0x2e0 fs/incfs/vfs.c:164
 __vfs_getxattr+0x62f/0x700 fs/xattr.c:399
 vfs_getxattr+0x54/0x60 fs/xattr.c:406
 read_size_attr fs/incfs/vfs.c:293 [inline]
 fetch_regular_inode+0x155/0x300 fs/incfs/vfs.c:374
 dir_lookup+0x673/0x6e0 fs/incfs/vfs.c:1008
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x43d/0x6a0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:211
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x43d/0x6a0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:211
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x43d/0x6a0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:211
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x43d/0x6a0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:211
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x43d/0x6a0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:211
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x43d/0x6a0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:211
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x43d/0x6a0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:211
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x43d/0x6a0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:211
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x43d/0x6a0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:211
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x43d/0x6a0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:211
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x43d/0x6a0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:211
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x43d/0x6a0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:211
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x43d/0x6a0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:211
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x43d/0x6a0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:211
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x43d/0x6a0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:211
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x43d/0x6a0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:211
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x43d/0x6a0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:211
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x43d/0x6a0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:211
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x43d/0x6a0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:211
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x43d/0x6a0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:211
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x43d/0x6a0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:211
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x43d/0x6a0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:211
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x43d/0x6a0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:211
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x43d/0x6a0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:211
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x43d/0x6a0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:211
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x43d/0x6a0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:211
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x43d/0x6a0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:211
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x43d/0x6a0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:211
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x43d/0x6a0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:211
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x43d/0x6a0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:211
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x43d/0x6a0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:211
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x43d/0x6a0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:211
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x43d/0x6a0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:211
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x43d/0x6a0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:211
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x43d/0x6a0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:211
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_hash+0x141/0x290 fs/namei.c:1529
 filename_create+0x207/0x770 fs/namei.c:3543
 user_path_create fs/namei.c:3600 [inline]
 do_mkdirat+0xcf/0x2d0 fs/namei.c:3740
 __do_sys_mkdirat fs/namei.c:3759 [inline]
 __se_sys_mkdirat fs/namei.c:3757 [inline]
 __x64_sys_mkdirat+0x7b/0x90 fs/namei.c:3757
 do_syscall_64+0x34/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7fa371cd40e9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fa371c29168 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007fa371de7030 RCX: 00007fa371cd40e9
RDX: 0000000000000000 RSI: 0000000020000100 RDI: ffffffffffffff9c
RBP: 00007fa371d2e08d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe086b307f R14: 00007fa371c29300 R15: 0000000000022000
Modules linked in:
---[ end trace fb6fa83759f14178 ]---
RIP: 0010:__sanitizer_cov_trace_pc+0x0/0x60 kernel/kcov.c:190
Code: c3 66 0f 1f 84 00 00 00 00 00 55 48 89 e5 be 0c 00 00 00 48 c7 c7 20 dc 3b 86 e8 bb bb 39 00 5d c3 cc cc cc cc cc cc cc cc cc <55> 48 89 e5 48 8b 45 08 65 48 8b 0c 25 80 6d 02 00 65 8b 15 24 bd
RSP: 0018:ffffc90003c50000 EFLAGS: 00010282
RAX: 1ffff9200078a000 RBX: ffff88810b479000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88810b479000
RBP: ffffc90003c50050 R08: ffffffff81db1fb4 R09: ffffc90003c50120
R10: fffff5200078a029 R11: 1ffff9200078a024 R12: dffffc0000000000
R13: dffffc0000000000 R14: 1ffff9200078a020 R15: 0000000000000000
FS:  00007fa371c29700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90003c4fff8 CR3: 0000000116cf6000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	c3                   	retq
   1:	66 0f 1f 84 00 00 00 	nopw   0x0(%rax,%rax,1)
   8:	00 00
   a:	55                   	push   %rbp
   b:	48 89 e5             	mov    %rsp,%rbp
   e:	be 0c 00 00 00       	mov    $0xc,%esi
  13:	48 c7 c7 20 dc 3b 86 	mov    $0xffffffff863bdc20,%rdi
  1a:	e8 bb bb 39 00       	callq  0x39bbda
  1f:	5d                   	pop    %rbp
  20:	c3                   	retq
  21:	cc                   	int3
  22:	cc                   	int3
  23:	cc                   	int3
  24:	cc                   	int3
  25:	cc                   	int3
  26:	cc                   	int3
  27:	cc                   	int3
  28:	cc                   	int3
  29:	cc                   	int3
* 2a:	55                   	push   %rbp <-- trapping instruction
  2b:	48 89 e5             	mov    %rsp,%rbp
  2e:	48 8b 45 08          	mov    0x8(%rbp),%rax
  32:	65 48 8b 0c 25 80 6d 	mov    %gs:0x26d80,%rcx
  39:	02 00
  3b:	65                   	gs
  3c:	8b                   	.byte 0x8b
  3d:	15                   	.byte 0x15
  3e:	24 bd                	and    $0xbd,%al

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/04/28 23:46 android12-5.10-lts 904c5c08bb41 e9076525 .config console log report syz ci2-android-5-10 BUG: stack guard page was hit in sys_mkdirat
2022/05/11 08:33 android12-5.10-lts de64d941a71a 8d7b3b67 .config console log report info ci2-android-5-10 BUG: stack guard page was hit in sys_mkdirat
2022/04/07 19:52 android12-5.10-lts 414e6c8e941c 53c67432 .config console log report info ci2-android-5-10 BUG: stack guard page was hit in sys_mkdirat
* Struck through repros no longer work on HEAD.