syzbot


WARNING in __kernel_write

Status: fixed on 2020/09/16 22:51
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+e6f77e16ff68b2434a2c@syzkaller.appspotmail.com
Fix commit: a39c46067c84 net/9p: validate fds in p9_fd_open
First crash: 1446d, last: 1426d
Cause bisection: introduced by (bisect log) :
commit 81238b2cff1469ff5b94390d026cd075105d6dcd
Author: Christoph Hellwig <hch@lst.de>
Date: Thu May 7 17:33:03 2020 +0000

  fs: implement kernel_write using __kernel_write

Crash: WARNING in __kernel_write (log)
Repro: C syz .config
  
Discussions (8)
Title Replies (including bot) Last reply
[PATCH 4.4 000/149] 4.4.233-rc1 review 163 (163) 2020/10/31 20:04
[PATCH 4.9 000/212] 4.9.233-rc1 review 220 (220) 2020/08/21 09:40
[PATCH 4.14 000/228] 4.14.194-rc1 review 234 (234) 2020/08/21 06:59
[PATCH 4.19 00/48] 4.19.139-rc1 review 61 (61) 2020/08/11 16:45
[PATCH 5.7 00/79] 5.7.15-rc1 review 83 (83) 2020/08/11 14:23
[PATCH 5.4 00/67] 5.4.58-rc1 review 71 (71) 2020/08/11 14:23
[PATCH] net/9p: validate fds in p9_fd_open 11 (11) 2020/07/16 20:13
WARNING in __kernel_write 1 (3) 2020/07/14 23:15
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING in __kernel_write origin:upstream C error 115 204d 457d 0/3 upstream: reported C repro on 2023/03/25 03:02

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 2662 at fs/read_write.c:528 __kernel_write+0x828/0x9b0 fs/read_write.c:528
Kernel panic - not syncing: panic_on_warn set ...
CPU: 0 PID: 2662 Comm: kworker/0:2 Not tainted 5.8.0-rc4-next-20200713-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events p9_write_work
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x18f/0x20d lib/dump_stack.c:118
 panic+0x2e3/0x75c kernel/panic.c:231
 __warn.cold+0x20/0x45 kernel/panic.c:600
 report_bug+0x1bd/0x210 lib/bug.c:198
 handle_bug+0x38/0x90 arch/x86/kernel/traps.c:234
 exc_invalid_op+0x13/0x40 arch/x86/kernel/traps.c:254
 asm_exc_invalid_op+0x12/0x20 arch/x86/include/asm/idtentry.h:542
RIP: 0010:__kernel_write+0x828/0x9b0 fs/read_write.c:528
Code: 01 89 c6 89 04 24 e8 a7 97 b5 ff 8b 04 24 85 c0 0f 84 c7 fa ff ff e9 b9 fa ff ff e8 12 9b b5 ff e9 e9 fe ff ff e8 08 9b b5 ff <0f> 0b 49 c7 c5 f7 ff ff ff e9 0e ff ff ff 4c 89 f7 e8 72 43 f5 ff
RSP: 0018:ffffc900086e7b18 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 1ffff920010dcf67 RCX: ffffffff81be8f0e
RDX: ffff88809f118000 RSI: ffffffff81be9668 RDI: 0000000000000005
RBP: ffff88809e58d118 R08: 0000000000000001 R09: ffff88809f1188d0
R10: 0000000000000000 R11: 0000000000000000 R12: ffff88809e58d000
R13: 0000000000000000 R14: ffff88809e58d084 R15: 00000000040a0001
 kernel_write fs/read_write.c:569 [inline]
 kernel_write+0xe2/0x200 fs/read_write.c:559
 p9_fd_write net/9p/trans_fd.c:424 [inline]
 p9_write_work+0x25e/0xca0 net/9p/trans_fd.c:475
 process_one_work+0x94c/0x1670 kernel/workqueue.c:2269
 worker_thread+0x64c/0x1120 kernel/workqueue.c:2415
 kthread+0x3b5/0x4a0 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (522):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/07/13 22:38 linux-next be978f8feb1d f90ec899 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2020/07/09 11:36 linux-next 8903263671cb bc238812 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2020/07/16 04:47 upstream e9919e11e219 f3bec699 .config console log report syz ci-upstream-kasan-gce-selinux-root
2020/07/15 23:02 upstream e9919e11e219 f3bec699 .config console log report syz ci-upstream-kasan-gce-smack-root
2020/07/14 02:09 upstream 11ba468877bb f90ec899 .config console log report syz ci-upstream-kasan-gce-root
2020/07/13 21:46 upstream 11ba468877bb f90ec899 .config console log report syz ci-upstream-kasan-gce-smack-root
2020/07/13 21:24 upstream 11ba468877bb f90ec899 .config console log report syz ci-upstream-kasan-gce-selinux-root
2020/07/15 23:03 linux-next ca0e494af5ed f3bec699 .config console log report syz ci-upstream-linux-next-kasan-gce-root
2020/07/29 22:15 upstream 6ba1b005ffc3 19a8de55 .config console log report ci-upstream-kasan-gce-root
2020/07/29 18:11 upstream 6ba1b005ffc3 19a8de55 .config console log report ci-upstream-kasan-gce-selinux-root
2020/07/29 18:07 upstream 6ba1b005ffc3 19a8de55 .config console log report ci-upstream-kasan-gce-root
2020/07/29 15:35 upstream 6ba1b005ffc3 19a8de55 .config console log report ci-upstream-kasan-gce-smack-root
2020/07/29 09:50 upstream 6ba1b005ffc3 19a8de55 .config console log report ci-upstream-kasan-gce-smack-root
2020/07/29 08:00 upstream 6ba1b005ffc3 cb93dc6a .config console log report ci-upstream-kasan-gce-smack-root
2020/07/29 04:44 upstream 6ba1b005ffc3 cb93dc6a .config console log report ci-upstream-kasan-gce-root
2020/07/29 03:03 upstream 6ba1b005ffc3 cb93dc6a .config console log report ci-upstream-kasan-gce-root
2020/07/29 01:47 upstream 6ba1b005ffc3 cb93dc6a .config console log report ci-upstream-kasan-gce-smack-root
2020/07/29 00:10 upstream 6ba1b005ffc3 cb93dc6a .config console log report ci-upstream-kasan-gce-root
2020/07/28 22:34 upstream 6ba1b005ffc3 cb93dc6a .config console log report ci-upstream-kasan-gce-root
2020/07/28 21:29 upstream 6ba1b005ffc3 cb93dc6a .config console log report ci-qemu-upstream
2020/07/28 20:23 upstream 92ed30191993 cb93dc6a .config console log report ci-upstream-kasan-gce-root
2020/07/28 18:13 upstream 92ed30191993 cb93dc6a .config console log report ci-upstream-kasan-gce-selinux-root
2020/07/28 16:47 upstream 92ed30191993 cb93dc6a .config console log report ci-upstream-kasan-gce-root
2020/07/28 13:56 upstream 92ed30191993 cb93dc6a .config console log report ci-upstream-kasan-gce-root
2020/07/28 12:38 upstream 92ed30191993 cb93dc6a .config console log report ci-upstream-kasan-gce-smack-root
2020/07/28 04:06 upstream 92ed30191993 cb93dc6a .config console log report ci-upstream-kasan-gce-root
2020/07/28 01:53 upstream 92ed30191993 cb93dc6a .config console log report ci-upstream-kasan-gce-root
2020/07/28 00:04 upstream 92ed30191993 cb93dc6a .config console log report ci-upstream-kasan-gce-root
2020/07/27 22:52 upstream 92ed30191993 cb93dc6a .config console log report ci-upstream-kasan-gce-smack-root
2020/07/27 22:01 upstream 92ed30191993 cb93dc6a .config console log report ci-upstream-kasan-gce-selinux-root
2020/07/27 20:04 upstream 92ed30191993 cb93dc6a .config console log report ci-upstream-kasan-gce-root
2020/07/27 14:03 upstream 92ed30191993 cb93dc6a .config console log report ci-upstream-kasan-gce-selinux-root
2020/07/27 10:34 upstream 92ed30191993 51265195 .config console log report ci-upstream-kasan-gce-selinux-root
2020/07/27 07:55 upstream 92ed30191993 51265195 .config console log report ci-upstream-kasan-gce-selinux-root
2020/07/27 06:13 upstream 92ed30191993 51265195 .config console log report ci-upstream-kasan-gce-root
2020/07/27 04:27 upstream 92ed30191993 51265195 .config console log report ci-upstream-kasan-gce-root
2020/07/27 02:46 upstream 04300d66f0a0 51265195 .config console log report ci-upstream-kasan-gce-root
2020/07/27 01:12 upstream 04300d66f0a0 51265195 .config console log report ci-upstream-kasan-gce-selinux-root
2020/07/26 16:38 upstream 04300d66f0a0 51265195 .config console log report ci-upstream-kasan-gce-selinux-root
2020/07/26 16:14 upstream 04300d66f0a0 51265195 .config console log report ci-upstream-kasan-gce-selinux-root
2020/07/26 15:05 upstream 04300d66f0a0 51265195 .config console log report ci-upstream-kasan-gce-root
2020/07/26 11:02 upstream 04300d66f0a0 1f7cc1ca .config console log report ci-upstream-kasan-gce-root
2020/07/26 08:41 upstream 23ee3e4e5bd2 1f7cc1ca .config console log report ci-upstream-kasan-gce-smack-root
2020/07/26 05:24 upstream 23ee3e4e5bd2 1f7cc1ca .config console log report ci-upstream-kasan-gce-smack-root
2020/07/26 01:29 upstream 23ee3e4e5bd2 1f7cc1ca .config console log report ci-upstream-kasan-gce-smack-root
2020/07/26 00:25 upstream 23ee3e4e5bd2 1f7cc1ca .config console log report ci-upstream-kasan-gce-selinux-root
2020/07/25 22:51 upstream 23ee3e4e5bd2 1f7cc1ca .config console log report ci-upstream-kasan-gce-root
2020/07/25 21:26 upstream 23ee3e4e5bd2 1f7cc1ca .config console log report ci-upstream-kasan-gce-smack-root
2020/07/25 20:22 upstream 68845a55c31b 1f7cc1ca .config console log report ci-upstream-kasan-gce-selinux-root
2020/07/25 18:23 upstream 68845a55c31b 1f7cc1ca .config console log report ci-upstream-kasan-gce-smack-root
2020/07/25 17:06 upstream 68845a55c31b 1f7cc1ca .config console log report ci-upstream-kasan-gce-smack-root
2020/07/25 16:04 upstream 68845a55c31b 1f7cc1ca .config console log report ci-upstream-kasan-gce-smack-root
2020/07/25 15:59 upstream 68845a55c31b 1f7cc1ca .config console log report ci-upstream-kasan-gce-root
2020/07/13 08:24 upstream 11ba468877bb f90ec899 .config console log report ci-qemu-upstream-386
2020/07/20 09:20 linux-next 4c43049f19a2 9c812472 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/07/08 22:59 linux-next 8903263671cb bc238812 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.