syzbot


BUG: stack guard page was hit in sys_newlstat

Status: closed as dup on 2022/04/07 14:41
Reported-by: syzbot+4f9229fa877a529122c0@syzkaller.appspotmail.com
First crash: 959d, last: 959d
Cause bisection: failed (error log, bisect log)
  
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
BUG: stack guard page was hit in file_open C error 25 992d 1070d

Sample crash report:
BUG: stack guard page was hit at ffffc90000bdfff8 (stack is ffffc90000be0000..ffffc90000be7fff)
kernel stack overflow (double-fault): 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 365 Comm: syz-executor367 Not tainted 5.10.109-syzkaller-00693-g414e6c8e941c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:memset+0x6/0x40 mm/kasan/shadow.c:43
Code: 00 00 66 90 55 48 89 e5 89 f6 48 8b 4d 08 ba 01 00 00 00 e8 9c ed ff ff 5d c3 66 2e 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57 <41> 56 53 49 89 d7 41 89 f6 48 89 fb 48 8b 4d 08 48 89 d6 ba 01 00
RSP: 0018:ffffc90000be0000 EFLAGS: 00010246
RAX: ffff88811d21bb40 RBX: 1ffff9200017c032 RCX: ffffc90000be0130
RDX: 0000000000000060 RSI: 0000000000000000 RDI: ffffc90000be00a0
RBP: ffffc90000be0008 R08: dffffc0000000000 R09: ffffc90000be0230
R10: 0000000000000006 R11: 0000000000000000 R12: ffff88811d21bb40
R13: ffffc90000be00a0 R14: dffffc0000000000 R15: 0000000000000000
FS:  0000555555b9a300(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90000bdfff8 CR3: 000000011c99e000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __unwind_start+0x34/0x420 arch/x86/kernel/unwind_frame.c:368
 unwind_start arch/x86/include/asm/unwind.h:60 [inline]
 arch_stack_walk+0xdc/0x140 arch/x86/kernel/stacktrace.c:24
 stack_trace_save+0x12d/0x1f0 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:2956 [inline]
 slab_alloc mm/slub.c:2964 [inline]
 kmem_cache_alloc+0x16c/0x300 mm/slub.c:2969
 __d_alloc+0x2d/0x6b0 fs/dcache.c:1709
 d_alloc fs/dcache.c:1788 [inline]
 d_alloc_parallel+0xe6/0x1330 fs/dcache.c:2540
 __lookup_slow+0x14e/0x400 fs/namei.c:1613
 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_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_slow+0x5a/0x80 fs/namei.c:1645
 walk_component+0x425/0x5a0 fs/namei.c:1940
 lookup_last fs/namei.c:2389 [inline]
 path_lookupat+0x18d/0x460 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]
 vfs_statx+0x116/0x3f0 fs/stat.c:193
 vfs_fstatat fs/stat.c:215 [inline]
 vfs_lstat include/linux/fs.h:3186 [inline]
 __do_sys_newlstat fs/stat.c:370 [inline]
 __se_sys_newlstat+0xba/0x760 fs/stat.c:364
 __x64_sys_newlstat+0x5b/0x70 fs/stat.c:364
 do_syscall_64+0x34/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f2742903069
Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 00 00 00 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff0a105e68 EFLAGS: 00000246 ORIG_RAX: 0000000000000006
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f2742903069
RDX: 00007f2742903069 RSI: 0000000000000000 RDI: 0000000020000100
RBP: 00007f27428c7050 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f27428c70e0
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 593812228923d824 ]---
RIP: 0010:memset+0x6/0x40 mm/kasan/shadow.c:43
Code: 00 00 66 90 55 48 89 e5 89 f6 48 8b 4d 08 ba 01 00 00 00 e8 9c ed ff ff 5d c3 66 2e 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57 <41> 56 53 49 89 d7 41 89 f6 48 89 fb 48 8b 4d 08 48 89 d6 ba 01 00
RSP: 0018:ffffc90000be0000 EFLAGS: 00010246
RAX: ffff88811d21bb40 RBX: 1ffff9200017c032 RCX: ffffc90000be0130
RDX: 0000000000000060 RSI: 0000000000000000 RDI: ffffc90000be00a0
RBP: ffffc90000be0008 R08: dffffc0000000000 R09: ffffc90000be0230
R10: 0000000000000006 R11: 0000000000000000 R12: ffff88811d21bb40
R13: ffffc90000be00a0 R14: dffffc0000000000 R15: 0000000000000000
FS:  0000555555b9a300(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90000bdfff8 CR3: 000000011c99e000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	00 00                	add    %al,(%rax)
   2:	66 90                	xchg   %ax,%ax
   4:	55                   	push   %rbp
   5:	48 89 e5             	mov    %rsp,%rbp
   8:	89 f6                	mov    %esi,%esi
   a:	48 8b 4d 08          	mov    0x8(%rbp),%rcx
   e:	ba 01 00 00 00       	mov    $0x1,%edx
  13:	e8 9c ed ff ff       	callq  0xffffedb4
  18:	5d                   	pop    %rbp
  19:	c3                   	retq
  1a:	66 2e 0f 1f 84 00 00 	nopw   %cs:0x0(%rax,%rax,1)
  21:	00 00 00
  24:	55                   	push   %rbp
  25:	48 89 e5             	mov    %rsp,%rbp
  28:	41 57                	push   %r15
* 2a:	41 56                	push   %r14 <-- trapping instruction
  2c:	53                   	push   %rbx
  2d:	49 89 d7             	mov    %rdx,%r15
  30:	41 89 f6             	mov    %esi,%r14d
  33:	48 89 fb             	mov    %rdi,%rbx
  36:	48 8b 4d 08          	mov    0x8(%rbp),%rcx
  3a:	48 89 d6             	mov    %rdx,%rsi
  3d:	ba                   	.byte 0xba
  3e:	01 00                	add    %eax,(%rax)

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/04/07 12:38 android12-5.10-lts 414e6c8e941c 53c67432 .config console log report syz C ci2-android-5-10 BUG: stack guard page was hit in sys_newlstat
2022/04/07 12:23 android12-5.10-lts 414e6c8e941c 53c67432 .config console log report info ci2-android-5-10 BUG: stack guard page was hit in sys_newlstat
* Struck through repros no longer work on HEAD.