syzbot


WARNING in io_uring_cancel_task_requests

Status: fixed on 2021/03/10 01:48
Subsystems: io-uring fs
[Documentation on labels]
Reported-by: syzbot+3e3d9bd0c6ce9efbc3ef@syzkaller.appspotmail.com
Fix commit: 70b2c60d3797 io_uring: fix sqo ownership false positive warning
First crash: 1346d, last: 1342d
Cause bisection: introduced by (bisect log) :
commit 4d004099a668c41522242aa146a38cc4eb59cb1e
Author: Peter Zijlstra <peterz@infradead.org>
Date: Fri Oct 2 09:04:21 2020 +0000

  lockdep: Fix lockdep recursion

Crash: BUG: using __this_cpu_read() in preemptible code in trace_hardirqs_on (log)
Repro: syz .config
  
Discussions (3)
Title Replies (including bot) Last reply
[PATCH 5.10 00/54] 5.10.16-rc1 review 68 (68) 2021/02/17 22:45
WARNING in io_uring_cancel_task_requests 1 (4) 2021/01/29 01:38
[PATCH 0/2] io_uring-file req cancel syzbot reports 3 (3) 2021/01/28 18:39

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 9199 at fs/io_uring.c:9042 io_uring_cancel_task_requests+0xe55/0x10c0 fs/io_uring.c:9042
Modules linked in:
CPU: 1 PID: 9199 Comm: syz-executor.0 Not tainted 5.11.0-rc5-next-20210129-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:io_uring_cancel_task_requests+0xe55/0x10c0 fs/io_uring.c:9042
Code: 00 00 e9 1c fe ff ff 48 8b 7c 24 18 e8 f4 b4 da ff e9 f2 fc ff ff 48 8b 7c 24 18 e8 e5 b4 da ff e9 64 f2 ff ff e8 db 15 97 ff <0f> 0b e9 ed f2 ff ff e8 df b4 da ff e9 c8 f5 ff ff 4c 89 ef e8 52
RSP: 0018:ffffc90003557950 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff8880259fc000 RCX: 0000000000000000
RDX: ffff8880138a3800 RSI: ffffffff81dc0a25 RDI: ffff8880259fc0d0
RBP: ffff8880259fc0e8 R08: 0000000000000000 R09: ffff8880138a3807
R10: ffffffff81dbfc9f R11: 0000000000000000 R12: ffff8880259fc000
R13: ffff8880138a3800 R14: ffff88801c10b800 R15: ffff888013db2018
FS:  0000000000000000(0000) GS:ffff8880b9e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000558f1227b180 CR3: 000000001a9a8000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 io_uring_flush+0x47b/0x6e0 fs/io_uring.c:9227
 filp_close+0xb4/0x170 fs/open.c:1295
 close_files fs/file.c:403 [inline]
 put_files_struct fs/file.c:418 [inline]
 put_files_struct+0x1cc/0x350 fs/file.c:415
 exit_files+0x7e/0xa0 fs/file.c:435
 do_exit+0xc22/0x2ae0 kernel/exit.c:820
 do_group_exit+0x125/0x310 kernel/exit.c:922
 get_signal+0x427/0x20f0 kernel/signal.c:2773
 arch_do_signal_or_restart+0x2a8/0x1eb0 arch/x86/kernel/signal.c:811
 handle_signal_work kernel/entry/common.c:147 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:171 [inline]
 exit_to_user_mode_prepare+0x148/0x250 kernel/entry/common.c:201
 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline]
 syscall_exit_to_user_mode+0x19/0x50 kernel/entry/common.c:302
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45e219
Code: Unable to access opcode bytes at RIP 0x45e1ef.
RSP: 002b:00007f557522ccf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 000000000119bf88 RCX: 000000000045e219
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 000000000119bf88
RBP: 000000000119bf80 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000119bf8c
R13: 00007ffdf583202f R14: 00007f557522d9c0 R15: 000000000119bf8c

Crashes (69):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/01/30 06:16 linux-next b01f250d83f6 fc9fd31e .config console log report syz ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/28 23:17 linux-next d03154e8bb6a 7df34f59 .config console log report syz ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/28 22:32 linux-next d03154e8bb6a 7df34f59 .config console log report syz ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/28 22:16 linux-next d03154e8bb6a 7df34f59 .config console log report syz ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/02/01 10:29 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/02/01 08:46 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/02/01 07:45 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/02/01 05:18 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/02/01 04:18 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/02/01 02:56 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/02/01 01:11 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/31 23:34 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/31 22:33 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/31 21:00 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/31 17:01 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/31 13:49 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/31 12:38 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/31 10:48 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/31 08:39 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/31 07:09 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/31 06:05 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/31 04:31 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/31 03:24 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/31 00:16 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/30 22:04 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/30 20:32 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/30 18:10 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/30 17:57 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/30 17:19 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/30 16:23 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/30 16:03 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/30 15:36 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/30 14:43 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/30 14:17 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/30 13:50 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/30 13:29 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/30 11:27 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/30 11:16 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/30 10:54 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/30 10:53 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/30 10:45 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/30 10:35 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/30 09:32 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/30 07:49 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/30 07:02 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/30 02:48 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/30 01:44 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/29 22:39 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/29 20:38 linux-next b01f250d83f6 6593fd32 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/29 20:21 linux-next b01f250d83f6 6593fd32 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/29 20:08 linux-next b01f250d83f6 6593fd32 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/29 15:43 linux-next b01f250d83f6 6593fd32 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/29 11:22 linux-next b01f250d83f6 6593fd32 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/29 10:20 linux-next b01f250d83f6 6593fd32 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/28 21:38 linux-next d03154e8bb6a 7df34f59 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/28 21:00 linux-next d03154e8bb6a 7df34f59 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/28 17:07 linux-next d03154e8bb6a 7df34f59 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/28 13:48 linux-next d03154e8bb6a eefc07f2 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
2021/01/28 11:56 linux-next d03154e8bb6a eefc07f2 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in io_uring_cancel_task_requests
* Struck through repros no longer work on HEAD.