syzbot


WARNING in shmem_evict_inode

Status: upstream: reported syz repro on 2023/01/09 17:14
Labels: mm (incorrect?)
Reported-by: syzbot+3d4aa0d3e784b29b1520@syzkaller.appspotmail.com
First crash: 146d, last: 26d

Cause bisection: introduced by (bisect log) :
commit 12904d953364e3bd21789a45137bf90df7cc78ee
Author: Jiaqi Yan <jiaqiyan@google.com>
Date: Wed Mar 29 15:11:21 2023 +0000

  mm/khugepaged: recover from poisoned file-backed memory

Crash: WARNING in shmem_evict_inode (log)
Repro: syz .config
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [tmpfs?] WARNING in shmem_evict_inode 1 (4) 2023/05/06 03:02

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 6362 at mm/shmem.c:1186 shmem_evict_inode+0x873/0xb60 mm/shmem.c:1186
Modules linked in:
CPU: 0 PID: 6362 Comm: syz-executor.1 Not tainted 6.3.0-syzkaller-13091-g3c4aa4434377 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
RIP: 0010:shmem_evict_inode+0x873/0xb60 mm/shmem.c:1186
Code: 89 fe e8 70 1c ca ff 45 85 ff 75 ab e8 46 20 ca ff 48 8b 74 24 18 48 8b 7c 24 20 e8 a7 de a7 ff e9 fc fd ff ff e8 2d 20 ca ff <0f> 0b e9 a0 f8 ff ff e8 21 20 ca ff 4c 89 ea 48 b8 00 00 00 00 00
RSP: 0018:ffffc9000b147858 EFLAGS: 00010293
RAX: 0000000000000000 RBX: fffffffffffff840 RCX: 0000000000000000
RDX: ffff88807c94e040 RSI: ffffffff81b95ec3 RDI: 0000000000000007
RBP: ffffc9000b147950 R08: 0000000000000007 R09: 0000000000000000
R10: fffffffffffff840 R11: 0000000000000000 R12: ffff888076f85450
R13: ffff888076f854a0 R14: ffff888076f85380 R15: ffff888076f85390
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7087f5e108 CR3: 000000007c6b6000 CR4: 00000000003506f0
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:1747 [inline]
 iput.part.0+0x50a/0x740 fs/inode.c:1773
 iput+0x5c/0x80 fs/inode.c:1763
 dentry_unlink_inode+0x2b1/0x460 fs/dcache.c:401
 __dentry_kill+0x3c0/0x640 fs/dcache.c:607
 dentry_kill fs/dcache.c:733 [inline]
 dput+0x865/0xe10 fs/dcache.c:913
 __fput+0x3cc/0xa90 fs/file_table.c:329
 task_work_run+0x16f/0x270 kernel/task_work.c:179
 exit_task_work include/linux/task_work.h:38 [inline]
 do_exit+0xad3/0x2960 kernel/exit.c:871
 do_group_exit+0xd4/0x2a0 kernel/exit.c:1021
 get_signal+0x2315/0x25b0 kernel/signal.c:2874
 arch_do_signal_or_restart+0x79/0x5c0 arch/x86/kernel/signal.c:306
 exit_to_user_mode_loop kernel/entry/common.c:168 [inline]
 exit_to_user_mode_prepare+0x11f/0x240 kernel/entry/common.c:204
 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline]
 syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:297
 do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7efe7028c169
Code: Unable to access opcode bytes at 0x7efe7028c13f.
RSP: 002b:00007efe70fe2168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: 0000000000116000 RBX: 00007efe703abf80 RCX: 00007efe7028c169
RDX: 00000000fffffd2c RSI: 0000000020000000 RDI: 0000000000000004
RBP: 00007efe702e7ca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffc607e699f R14: 00007efe70fe2300 R15: 0000000000022000
 </TASK>

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Manager Title
2023/05/05 10:43 upstream 3c4aa4434377 518a39a6 .config console log report syz [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in shmem_evict_inode
2023/05/05 07:46 upstream 3c4aa4434377 518a39a6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in shmem_evict_inode
2023/01/05 17:10 upstream 41c03ba9beea 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 WARNING in shmem_evict_inode
* Struck through repros no longer work on HEAD.