syzbot


BUG: stack guard page was hit in sys_chdir

Status: closed as invalid on 2022/02/28 16:09
Reported-by: syzbot+db4593921eebe80601cd@syzkaller.appspotmail.com
Fix commit: 6f915dd2af92 ANDROID: incremental-fs: remove index and incomplete dir on umount
First crash: 1069d, last: 997d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-10 BUG: stack guard page was hit in sys_chdir (4) 1 965d 965d 2/2 fixed on 2022/05/12 07:47
android-5-10 BUG: stack guard page was hit in sys_chdir (2) C error 5 992d 996d 0/2 closed as dup on 2022/03/01 18:43
android-5-10 BUG: stack guard page was hit in sys_chdir (3) C error 11 968d 969d 0/2 closed as dup on 2022/03/30 17:22

Sample crash report:
BUG: stack guard page was hit at ffffc90002427ff8 (stack is ffffc90002428000..ffffc9000242ffff)
kernel stack overflow (double-fault): 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 8677 Comm: syz-executor.0 Tainted: G        W         5.10.102-syzkaller-00171-ge1b86e7f5cbb #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__unwind_start+0x8/0x420 arch/x86/kernel/unwind_frame.c:365
Code: ff ff 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c 3f fe ff ff e8 2b d5 72 00 e9 35 fe ff ff e8 31 db 67 03 90 55 48 89 e5 41 57 41 56 <41> 55 41 54 53 48 83 ec 50 48 89 4d d0 49 89 d7 49 89 f6 49 89 fd
RSP: 0018:ffffc90002428000 EFLAGS: 00010246
RAX: ffff888114392780 RBX: 1ffff92000485022 RCX: ffffc900024280b0
RDX: 0000000000000000 RSI: ffff888114392780 RDI: ffffc90002428020
RBP: ffffc90002428010 R08: dffffc0000000000 R09: ffffc90002428100
R10: fffff52000485023 R11: 0000000000000000 R12: ffff888114392780
R13: ffffffff815bef40 R14: ffffc90002428100 R15: 0000000000000000
FS:  00007f77a2b1f700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90002427ff8 CR3: 000000015d0dd000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 00000000e08e0077 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 unwind_start arch/x86/include/asm/unwind.h:60 [inline]
 arch_stack_walk+0xdc/0x140 arch/x86/kernel/stacktrace.c:24
 stack_trace_save+0x11b/0x1e0 kernel/stacktrace.c:121
 kasan_save_stack mm/kasan/common.c:38 [inline]
 kasan_set_track mm/kasan/common.c:46 [inline]
 set_alloc_info mm/kasan/common.c:428 [inline]
 __kasan_slab_alloc+0xb2/0xe0 mm/kasan/common.c:461
 kasan_slab_alloc include/linux/kasan.h:259 [inline]
 slab_post_alloc_hook mm/slab.h:583 [inline]
 slab_alloc_node mm/slub.c:2954 [inline]
 slab_alloc mm/slub.c:2962 [inline]
 kmem_cache_alloc+0x1a2/0x380 mm/slub.c:2967
 __d_alloc+0x2d/0x6b0 fs/dcache.c:1709
 d_alloc fs/dcache.c:1788 [inline]
 d_alloc_parallel+0xf3/0x1360 fs/dcache.c:2540
 __lookup_slow+0x14e/0x400 fs/namei.c:1613
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_one_len+0x17f/0x2c0 fs/namei.c:2642
 incfs_lookup_dentry+0x5f/0xb0 fs/incfs/data_mgmt.c:212
 dir_lookup+0x3b8/0x6e0 fs/incfs/vfs.c:967
 __lookup_slow+0x2b3/0x400 fs/namei.c:1628
 lookup_slow fs/namei.c:1645 [inline]
 walk_component+0x516/0x790 fs/namei.c:1940
 lookup_last fs/namei.c:2389 [inline]
 path_lookupat+0x19d/0x6c0 fs/namei.c:2413
 filename_lookup+0x23f/0x6c0 fs/namei.c:2446
 user_path_at_empty+0x40/0x50 fs/namei.c:2726
 user_path_at include/linux/namei.h:59 [inline]
 __do_sys_chdir fs/open.c:492 [inline]
 __se_sys_chdir+0x9c/0x230 fs/open.c:486
 __x64_sys_chdir+0x38/0x40 fs/open.c:486
 do_syscall_64+0x31/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f77a39a9049
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:00007f77a2b1f168 EFLAGS: 00000246 ORIG_RAX: 0000000000000050
RAX: ffffffffffffffda RBX: 00007f77a3abbf60 RCX: 00007f77a39a9049
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020001740
RBP: 00007f77a3a0308d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffc5b6b0eef R14: 00007f77a2b1f300 R15: 0000000000022000
Modules linked in:
---[ end trace bd8a98361054b39b ]---
RIP: 0010:__unwind_start+0x8/0x420 arch/x86/kernel/unwind_frame.c:365
Code: ff ff 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c 3f fe ff ff e8 2b d5 72 00 e9 35 fe ff ff e8 31 db 67 03 90 55 48 89 e5 41 57 41 56 <41> 55 41 54 53 48 83 ec 50 48 89 4d d0 49 89 d7 49 89 f6 49 89 fd
RSP: 0018:ffffc90002428000 EFLAGS: 00010246
RAX: ffff888114392780 RBX: 1ffff92000485022 RCX: ffffc900024280b0
RDX: 0000000000000000 RSI: ffff888114392780 RDI: ffffc90002428020
RBP: ffffc90002428010 R08: dffffc0000000000 R09: ffffc90002428100
R10: fffff52000485023 R11: 0000000000000000 R12: ffff888114392780
R13: ffffffff815bef40 R14: ffffc90002428100 R15: 0000000000000000
FS:  00007f77a2b1f700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90002427ff8 CR3: 000000015d0dd000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 00000000e08e0077 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	ff 89 f9 80 e1 07    	decl   0x7e180f9(%rcx)
   6:	80 c1 03             	add    $0x3,%cl
   9:	38 c1                	cmp    %al,%cl
   b:	0f 8c 3f fe ff ff    	jl     0xfffffe50
  11:	e8 2b d5 72 00       	callq  0x72d541
  16:	e9 35 fe ff ff       	jmpq   0xfffffe50
  1b:	e8 31 db 67 03       	callq  0x367db51
  20:	90                   	nop
  21:	55                   	push   %rbp
  22:	48 89 e5             	mov    %rsp,%rbp
  25:	41 57                	push   %r15
  27:	41 56                	push   %r14
* 29:	41 55                	push   %r13 <-- trapping instruction
  2b:	41 54                	push   %r12
  2d:	53                   	push   %rbx
  2e:	48 83 ec 50          	sub    $0x50,%rsp
  32:	48 89 4d d0          	mov    %rcx,-0x30(%rbp)
  36:	49 89 d7             	mov    %rdx,%r15
  39:	49 89 f6             	mov    %rsi,%r14
  3c:	49 89 fd             	mov    %rdi,%r13

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/02/27 23:52 android12-5.10-lts e1b86e7f5cbb 45a13a73 .config console log report info ci2-android-5-10 BUG: stack guard page was hit in sys_chdir
2022/02/08 17:45 android12-5.10-lts e33a5b611c98 0b33604d .config console log report info ci2-android-5-10 BUG: stack guard page was hit in sys_chdir
2022/01/26 08:31 android12-5.10-lts 0347b1658399 2cbffd88 .config console log report info ci2-android-5-10 BUG: stack guard page was hit in sys_chdir
2022/01/15 12:19 android12-5.10-lts d605f2f30d54 723cfaf0 .config console log report info ci2-android-5-10 BUG: stack guard page was hit in sys_chdir
2021/12/18 01:15 android12-5.10-lts afc997898ece 44068e19 .config console log report info ci2-android-5-10 BUG: stack guard page was hit in sys_chdir
* Struck through repros no longer work on HEAD.