syzbot


WARNING: still has locks held in io_ring_submit_lock

Status: upstream: reported C repro on 2022/05/15 14:52
Reported-by: syzbot+987d7bb19195ae45208c@syzkaller.appspotmail.com
Fix commit: e7637a492b9f io_uring: fix locking state for empty buffer group
Patched on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-leak ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce ci-upstream-kmsan-gce-386 ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu2-riscv64]
First crash: 45d, last: 44d

Cause bisection: introduced by (bisect log) :
commit 6da69b1da130e7d96766042750cd9f902e890eba
Author: Xiaomeng Tong <xiam0nd.tong@gmail.com>
Date: Mon Mar 28 03:24:31 2022 +0000

  net: dsa: bcm_sf2_cfp: fix an incorrect NULL check on list iterator

Crash: SYZFATAL: executor failed NUM times: executor NUM: failed to write control pipe: write |NUM: broken pipe (log)
Repro: C syz .config
Patch testing requests:
Created Duration User Patch Repo Result
2022/05/15 17:45 17m axboe@kernel.dk git://git.kernel.dk/linux-block.git for-next OK
2022/05/15 17:23 9m axboe@kernel.dk git://git.kernel.dk/linux-block.git for-next report log

Sample crash report:
====================================
WARNING: iou-wrk-3613/3623 still has locks held!
5.18.0-rc6-next-20220513-syzkaller #0 Not tainted
------------------------------------
1 lock held by iou-wrk-3613/3623:
 #0: ffff888140bfe0a8 (&ctx->uring_lock){+.+.}-{3:3}, at: io_ring_submit_lock+0x75/0xc0 fs/io_uring.c:1494

stack backtrace:
CPU: 0 PID: 3623 Comm: iou-wrk-3613 Not tainted 5.18.0-rc6-next-20220513-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
 try_to_freeze include/linux/freezer.h:66 [inline]
 get_signal+0x1424/0x2600 kernel/signal.c:2647
 io_wqe_worker+0x64b/0xdb0 fs/io-wq.c:663
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:297
 </TASK>

Crashes (3):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-linux-next-kasan-gce-root 2022/05/15 01:09 linux-next 1e1b28b936ae 744a39e2 .config log report syz C WARNING: still has locks held in io_ring_submit_lock
ci-upstream-linux-next-kasan-gce-root 2022/05/15 19:31 linux-next 1e1b28b936ae 744a39e2 .config log report info WARNING: still has locks held in io_ring_submit_lock
ci-upstream-linux-next-kasan-gce-root 2022/05/15 00:53 linux-next 1e1b28b936ae 744a39e2 .config log report info WARNING: still has locks held in io_ring_submit_lock