syzbot


WARNING in __kernel_read (2)

Status: fixed on 2023/06/08 14:41
Subsystems: fsverity
[Documentation on labels]
Reported-by: syzbot+51177e4144d764827c45@syzkaller.appspotmail.com
Fix commit: 04839139213c fsverity: reject FS_IOC_ENABLE_VERITY on mode 3 fds
First crash: 1311d, last: 366d
Cause bisection: failed (error log, bisect log)
  
Discussions (2)
Title Replies (including bot) Last reply
[PATCH] fsverity: reject FS_IOC_ENABLE_VERITY on mode 3 fds 3 (3) 2023/04/11 08:56
WARNING in __kernel_read (2) 9 (10) 2020/09/29 10:21
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in __kernel_read fs C done 60 1323d 1382d 15/26 fixed on 2020/09/16 22:51
Last patch testing requests (1)
Created Duration User Patch Repo Result
2022/10/16 13:30 17m retest repro linux-next error OK

Sample crash report:
fs-verity: sha256 using implementation "sha256-avx2"
------------[ cut here ]------------
WARNING: CPU: 1 PID: 5071 at fs/read_write.c:414 __kernel_read+0x787/0x8a0
Modules linked in:
CPU: 1 PID: 5071 Comm: syz-executor348 Not tainted 6.2.0-syzkaller-02172-g9e58df973d22 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
RIP: 0010:__kernel_read+0x787/0x8a0 fs/read_write.c:414
Code: 25 28 00 00 00 48 3b 84 24 40 01 00 00 0f 85 29 01 00 00 4c 89 f0 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 49 1e 9c ff <0f> 0b 49 c7 c6 ea ff ff ff eb 9d e8 39 1e 9c ff 49 bd 00 00 00 00
RSP: 0018:ffffc90003ddf2a0 EFLAGS: 00010293
RAX: ffffffff81efe5c7 RBX: 000000004858801c RCX: ffff88802bc50000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90003ddf430 R08: ffffffff81efdfb8 R09: ffffc90003ddf390
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff920007bbe6c
R13: dffffc0000000000 R14: ffffc90003ddf360 R15: 1ffff920007bbe60
FS:  00005555556f1300(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000005fdeb8 CR3: 000000001c0f8000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 build_merkle_tree fs/verity/enable.c:112 [inline]
 enable_verity+0xa7e/0x1ea0 fs/verity/enable.c:251
 fsverity_ioctl_enable+0x430/0x5d0 fs/verity/enable.c:369
 __ext4_ioctl fs/ext4/ioctl.c:1576 [inline]
 ext4_ioctl+0x19ea/0x6200 fs/ext4/ioctl.c:1610
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f4ede4f7b89
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:00007fff08cb8208 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f4ede4f7b89
RDX: 0000000020000240 RSI: 0000000040806685 RDI: 0000000000000003
RBP: 00007f4ede4bbd30 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f4ede4bbdc0
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Crashes (318):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/22 06:11 upstream 9e58df973d22 42a4d508 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __kernel_read
2020/09/22 02:56 linux-next b10b8ad86211 9e1fa68e .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2023/04/12 03:22 upstream e62252bc55b6 49faf98d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __kernel_read
2023/04/11 05:07 upstream 0d3eb744aed4 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __kernel_read
2023/04/09 04:40 upstream a79d5c76f705 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __kernel_read
2023/04/08 17:31 upstream aa318c48808c 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __kernel_read
2023/04/07 06:25 upstream f2afccfefe7b 00ce4c67 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __kernel_read
2023/04/05 11:40 upstream 76f598ba7d8e 831373d3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __kernel_read
2023/04/04 17:15 upstream 148341f0a2f5 928dd177 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in __kernel_read
2023/04/02 08:09 upstream 00c7b5f4ddc5 f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __kernel_read
2023/03/30 15:33 upstream ffe78bbd5121 f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __kernel_read
2023/03/24 03:33 upstream 9fd6ba5420ba f94b4a29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __kernel_read
2023/03/17 21:06 upstream 38e04b3e4240 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __kernel_read
2023/03/15 19:55 upstream 6015b1aca1a2 18b58603 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __kernel_read
2023/03/15 12:30 upstream 6015b1aca1a2 18b58603 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __kernel_read
2023/03/05 23:18 upstream f915322fe014 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __kernel_read
2023/03/03 06:06 upstream 04a357b1f6f0 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __kernel_read
2023/02/28 23:17 upstream ae3419fbac84 95aee97a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __kernel_read
2023/02/22 05:54 upstream 9e58df973d22 42a4d508 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __kernel_read
2021/10/19 03:12 upstream 519d81956ee2 24dc29db .config console log report info ci-upstream-kasan-gce-root WARNING in __kernel_read
2021/10/16 22:39 upstream 304040fb4909 0c5d9412 .config console log report info ci-upstream-kasan-gce-root WARNING in __kernel_read
2021/10/16 08:15 upstream 8fe31e0995f0 0c5d9412 .config console log report info ci-upstream-kasan-gce-root WARNING in __kernel_read
2021/10/16 06:02 upstream 8fe31e0995f0 0c5d9412 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in __kernel_read
2021/10/16 03:41 upstream 8fe31e0995f0 0c5d9412 .config console log report info ci-qemu-upstream WARNING in __kernel_read
2021/10/14 10:57 upstream 348949d9a444 5462d470 .config console log report info ci-upstream-kasan-gce-root WARNING in __kernel_read
2021/10/14 10:54 upstream 348949d9a444 5462d470 .config console log report info ci-upstream-kasan-gce-selinux-root WARNING in __kernel_read
2021/10/14 02:10 upstream 348949d9a444 5462d470 .config console log report info ci-upstream-kasan-gce-root WARNING in __kernel_read
2021/10/11 16:42 upstream 64570fbc14f8 838e7e2c .config console log report info ci-upstream-kasan-gce-selinux-root WARNING in __kernel_read
2021/10/09 00:36 upstream 741668ef7832 efe0f24d .config console log report info ci-upstream-kasan-gce-smack-root WARNING in __kernel_read
2021/10/03 12:06 upstream 7b66f4393ad4 db0f5787 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in __kernel_read
2021/10/03 10:30 upstream 7b66f4393ad4 db0f5787 .config console log report info ci-upstream-kasan-gce-root WARNING in __kernel_read
2021/09/20 04:02 upstream 20621d2f27a0 70b76c1d .config console log report info ci-upstream-kasan-gce-root WARNING in __kernel_read
2021/09/11 23:26 upstream c605c39677b9 5ae8508a .config console log report info ci-upstream-kasan-gce-smack-root WARNING in __kernel_read
2021/09/11 18:08 upstream 926de8c4326c 5ae8508a .config console log report info ci-upstream-kasan-gce-selinux-root WARNING in __kernel_read
2021/09/10 17:26 upstream bf9f243f23e6 5ae8508a .config console log report info ci-upstream-kasan-gce-selinux-root WARNING in __kernel_read
2021/09/10 16:01 upstream bf9f243f23e6 5ae8508a .config console log report info ci-upstream-kasan-gce-root WARNING in __kernel_read
2021/09/10 08:59 upstream bf9f243f23e6 e2776ee4 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in __kernel_read
2021/09/01 05:17 upstream b91db6a0b52e 7eb7e152 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in __kernel_read
2021/08/31 02:21 upstream 7d2a07b76933 8f58a0ef .config console log report info ci-upstream-kasan-gce-root WARNING in __kernel_read
2021/08/26 15:21 upstream 73f3af7b4611 b599f2fc .config console log report info ci-upstream-kasan-gce-root WARNING in __kernel_read
2021/08/26 13:49 upstream 73f3af7b4611 b599f2fc .config console log report info ci-upstream-kasan-gce-selinux-root WARNING in __kernel_read
2021/08/25 11:53 upstream 6e764bcd1cf7 b599f2fc .config console log report info ci-upstream-kasan-gce-selinux-root WARNING in __kernel_read
2021/08/24 15:35 upstream d5ae8d7f85b7 b599f2fc .config console log report info ci-upstream-kasan-gce-smack-root WARNING in __kernel_read
2021/08/23 20:52 upstream e22ce8eb631b b599f2fc .config console log report info ci-upstream-kasan-gce-selinux-root WARNING in __kernel_read
2021/08/22 22:04 upstream 1bdc3d5be7e1 b599f2fc .config console log report info ci-upstream-kasan-gce-selinux-root WARNING in __kernel_read
2021/08/22 19:04 upstream 9ff50bf2f2ff b599f2fc .config console log report info ci-upstream-kasan-gce-root WARNING in __kernel_read
2021/08/22 12:37 upstream 9ff50bf2f2ff b599f2fc .config console log report info ci-upstream-kasan-gce-root WARNING in __kernel_read
2021/08/19 02:51 upstream 614cb2751d31 a2fe1cb5 .config console log report info ci-upstream-kasan-gce-root WARNING in __kernel_read
2021/08/18 17:36 upstream 614cb2751d31 a2fe1cb5 .config console log report info ci-upstream-kasan-gce-selinux-root WARNING in __kernel_read
2023/04/08 11:46 upstream aa318c48808c 71147e29 .config console log report info ci-qemu-upstream-386 WARNING in __kernel_read
2021/06/14 16:35 upstream 009c9aa5be65 1ba81399 .config console log report info ci-qemu-upstream-386 WARNING in __kernel_read
2023/04/11 03:20 linux-next e134c93f788f 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __kernel_read
2021/10/08 22:44 linux-next 683f29b781ae efe0f24d .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in __kernel_read
2021/10/08 22:44 linux-next 683f29b781ae efe0f24d .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in __kernel_read
2021/10/03 09:07 linux-next a25006a77348 db0f5787 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in __kernel_read
2021/09/20 01:41 linux-next 9004fd387338 70b76c1d .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in __kernel_read
2021/09/08 20:28 linux-next 999569d59a0a e2776ee4 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in __kernel_read
2021/08/23 20:51 linux-next 46debfec12b4 b599f2fc .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in __kernel_read
2021/08/22 13:38 linux-next 86ed57fd8c93 b599f2fc .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in __kernel_read
2021/08/21 06:25 linux-next 86ed57fd8c93 b599f2fc .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in __kernel_read
2021/08/19 21:42 linux-next 33e65b1f975c b599f2fc .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in __kernel_read
2023/04/25 05:27 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 14f8db1c0f9a fdc18293 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in __kernel_read
2023/04/19 13:42 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 327bf9bb94cf 94b4184e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in __kernel_read
2023/04/16 19:07 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1f5b16c51aef ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in __kernel_read
2023/04/09 01:43 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 9a03cbd79d3a 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in __kernel_read
2020/12/13 06:08 upstream 7b1b868e1d91 bca53db9 .config console log report info ci-upstream-kasan-gce-selinux-root
* Struck through repros no longer work on HEAD.