syzbot


WARNING in shmem_evict_inode (2)

Status: upstream: reported on 2023/10/04 08:50
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+511ea6c5201cd9855fea@syzkaller.appspotmail.com
First crash: 210d, last: 98d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [mm?] WARNING in shmem_evict_inode (2) 0 (1) 2023/10/04 08:50
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in shmem_evict_inode mm syz done unreliable 4 315d 473d 0/26 auto-obsoleted due to no activity on 2023/09/25 00:58

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 3 PID: 7380 at mm/shmem.c:1265 shmem_evict_inode+0x89d/0xba0 mm/shmem.c:1265
Modules linked in:
CPU: 3 PID: 7380 Comm: syz-executor.1 Not tainted 6.7.0-syzkaller-12377-g9d1694dc91ce #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
RIP: 0010:shmem_evict_inode+0x89d/0xba0 mm/shmem.c:1265
Code: e6 e8 e7 e2 c5 ff 45 85 e4 75 aa e8 6d e7 c5 ff 48 8b 74 24 28 48 8b 7c 24 30 e8 1e a8 a2 ff e9 1a fe ff ff e8 54 e7 c5 ff 90 <0f> 0b 90 e9 a3 f9 ff ff e8 46 e7 c5 ff 4c 89 e2 48 b8 00 00 00 00
RSP: 0018:ffffc90006937b48 EFLAGS: 00010246
RAX: 0000000000040000 RBX: ffff888026520810 RCX: ffffc9000c631000
RDX: 0000000000040000 RSI: ffffffff81c23a2c RDI: 0000000000000007
RBP: ffffc90006937c78 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000008 R11: 0000000000000000 R12: 0000000000000008
R13: 0000000000000000 R14: ffff888026520840 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff88802c900000(0063) knlGS:00000000f7ed0b40
CS:  0010 DS: 002b ES: 002b CR0: 0000000080050033
CR2: 000000003104d000 CR3: 000000004c609000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 evict+0x2ed/0x6b0 fs/inode.c:665
 iput_final fs/inode.c:1739 [inline]
 iput.part.0+0x560/0x7b0 fs/inode.c:1765
 iput+0x5c/0x80 fs/inode.c:1755
 dentry_unlink_inode+0x292/0x430 fs/dcache.c:400
 __dentry_kill+0x1ca/0x5f0 fs/dcache.c:603
 dput.part.0+0x4ac/0x9a0 fs/dcache.c:845
 dput+0x1f/0x30 fs/dcache.c:835
 __fput+0x3b9/0xb70 fs/file_table.c:384
 task_work_run+0x14d/0x240 kernel/task_work.c:180
 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:108 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:201 [inline]
 syscall_exit_to_user_mode+0x281/0x2b0 kernel/entry/common.c:212
 __do_fast_syscall_32+0x86/0x110 arch/x86/entry/common.c:324
 do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:346
 entry_SYSENTER_compat_after_hwframe+0x70/0x7a
RIP: 0023:0xf7f17579
Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00
RSP: 002b:00000000f7ed05ac EFLAGS: 00000292 ORIG_RAX: 00000000000000c0
RAX: 0000000020000000 RBX: 0000000020000000 RCX: 0000000000b36000
RDX: 0000000000000002 RSI: 0000000000000011 RDI: 0000000000000009
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000292 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
----------------
Code disassembly (best guess), 2 bytes skipped:
   0:	10 06                	adc    %al,(%rsi)
   2:	03 74 b4 01          	add    0x1(%rsp,%rsi,4),%esi
   6:	10 07                	adc    %al,(%rdi)
   8:	03 74 b0 01          	add    0x1(%rax,%rsi,4),%esi
   c:	10 08                	adc    %cl,(%rax)
   e:	03 74 d8 01          	add    0x1(%rax,%rbx,8),%esi
  1e:	00 51 52             	add    %dl,0x52(%rcx)
  21:	55                   	push   %rbp
  22:	89 e5                	mov    %esp,%ebp
  24:	0f 34                	sysenter
  26:	cd 80                	int    $0x80
* 28:	5d                   	pop    %rbp <-- trapping instruction
  29:	5a                   	pop    %rdx
  2a:	59                   	pop    %rcx
  2b:	c3                   	ret
  2c:	90                   	nop
  2d:	90                   	nop
  2e:	90                   	nop
  2f:	90                   	nop
  30:	8d b4 26 00 00 00 00 	lea    0x0(%rsi,%riz,1),%esi
  37:	8d b4 26 00 00 00 00 	lea    0x0(%rsi,%riz,1),%esi

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/01/19 17:42 upstream 9d1694dc91ce 9bd8dcda .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in shmem_evict_inode
2023/12/13 02:12 upstream eaadbbaaff74 ebcad15c .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in shmem_evict_inode
2023/11/29 15:50 upstream 18d46e76d7c2 6e78f9ce .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in shmem_evict_inode
2023/10/11 23:50 upstream 8182d7a3f1b8 83165b57 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in shmem_evict_inode
2023/09/30 08:43 upstream 9f3ebbef746f 8e26a358 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in shmem_evict_inode
* Struck through repros no longer work on HEAD.