Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1294758lqs; Sat, 15 Jun 2024 02:58:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXCkBrKMNO1vGVGLZ3rHXjKzFaQTa8SpCpvwaYxqfKwKDYKgS9sMlM0+R6KGyE/+J1bl8/CXQXNZ0AQ+Ll/6sgyueYBAWd21Y98NaCZ0A== X-Google-Smtp-Source: AGHT+IFpjKaLccQM9+FNbUIUH7WIwGr7kPXKWRCC774zr/02XN0lq7S7YyxFW+s7Z7IxI8MxBBi1 X-Received: by 2002:a05:620a:2990:b0:795:59dc:232d with SMTP id af79cd13be357-798d2430e1bmr577734285a.37.1718445535104; Sat, 15 Jun 2024 02:58:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718445535; cv=pass; d=google.com; s=arc-20160816; b=nLRvdzr2QkUcdAziZGw3SUyeadgNiW2gDuSCv39n2VluhAv9RI9fe7ZUim3McyN1W3 566Ogoyy/WZUcScRbAskQMdbgr3bzxs4iSbjmzvdDOlux/zJHHoGZNnVeNuOnXQLJoJo G1Z+vpTN3y3Dc8496iGtR2rKufVL+XeYfb4hWATeNaN+q+mdwzsh4ynU1aH+H9XV7Zdq H5ToLwu6XBWOCWwVwt4gL0DlgquTAsQ321vXk+RmhWEYEOcb1qEsUXEUk6JAgP+OEkbk 3yjojUCEqjpZKelNBalHJ8hyfZkyuc+/4DmuiD0Yp7oRgoYh3mLl8CcRVMlI1FdIsKRs Fsag== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:message-id:date:mime-version:list-unsubscribe :list-subscribe:list-id:precedence; bh=hgAz2JZL22bf7lXOcSE5KeRR5btAdr72+RJxfSbwclc=; fh=0G8ylLZ7W/x9sh0L6SZzUtMrQV3ZKXYcji9QIE/V4T0=; b=xiCA+VMGq56X6F86vNHgdXg3T3/y/C5XqYnLkTNfFi1wZRQcw+1Ebh31c0yTgZkitL xtD55DGtVUkDV6Ka/DIGC5WPJ8JFCmyUS2fxZgD3boA7xWTp9o/6HdB8TvqQ3P3uB+9b UjJF/RLiUpsTLbPzyECZrC9+5dlOlz+Vd4q182FNPz2OF8NoYmohpgZstxNQILjhfB5M Oc++mC4VCmFCr+y8fHCiAzMgxr3YkadXBsGCOFKPWgk6UbxqGBIU4hqHEkDXz91OWHnO 2XceT+QXg+a0rRBRRi0AqNm8Gg5uTavr7EDuonT+lo71eqiO5eeoNTETwoD6oj3aFJa/ BeZw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-215821-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215821-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-798abe5c185si605652685a.650.2024.06.15.02.58.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jun 2024 02:58:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215821-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-215821-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215821-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id CD36E1C21D6D for ; Sat, 15 Jun 2024 09:58:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 84E5728DDF; Sat, 15 Jun 2024 09:58:23 +0000 (UTC) Received: from mail-il1-f207.google.com (mail-il1-f207.google.com [209.85.166.207]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0C9F0381C2 for ; Sat, 15 Jun 2024 09:58:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.207 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718445502; cv=none; b=ZpZxR3wBMaSPDRNOTbQ1EVO0UR7Cfc9WnFjxUUUrUFCWMUA94+z6c9YCLC3xXN9S1FBgHGhkVWvGVM5Liw49GuxFJRJNilBLbKldA/qMJfTedzO8ysjw3RlGdxebr/agf1Aj0RORiGxrmQROEpjM7/AawHd2rUYpIWlOABa0fpw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718445502; c=relaxed/simple; bh=nKlN2QBUp9ZR3tphHEwe/c3JF7pOqc8Z3AIvqXvJFr4=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=gOZ609ixrvQJLI++T+kC2rGsX/GYYh+EA0lYajxrWdgBa0PuXIjfkLGOykGKsuHDzZK8lBIVfdzMC/4gbM4ERJhU3losY6KsACkBpihkb7Jw40Mc8t6tWOZsbOtS2Ng5Ojv1wXz0sp7eLgrAEYbclQHyYylIsQK8I/c0gXU01pc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.166.207 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-il1-f207.google.com with SMTP id e9e14a558f8ab-37596e877e9so35639665ab.3 for ; Sat, 15 Jun 2024 02:58:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718445500; x=1719050300; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=hgAz2JZL22bf7lXOcSE5KeRR5btAdr72+RJxfSbwclc=; b=DwA1q1H2VD0r+TFG1cQBGzn6ElyvaPtCxWZx0cXPcD6nYOxFu3iP/5FGXD+O/bk8Hf NhPN7pnb+LGBPMDPMGEZaQ1HXCjHP/UrR/Bb8u3rlXSyHro5lm+x36UjTVCB5B/51fWG VwoHRITZnBWkiTd50EwQ2utUConDqMkETzn0Fko2LUdK+O2faOOHQuZS+iPfIrbnuGk6 r3rhykvwglgQbqRfnesxdSUHzl5OGpee1va1nh4gcxE702qUAVxwXT4sodUioRsb27xN OGwEqONnT8GqNwwoMrX0/eS5y9Ym/D/ZSmpneN6uqMNUTrH+kkwKvnNazmtL1UC84MQi oVrQ== X-Forwarded-Encrypted: i=1; AJvYcCVNZ9wFUF/GAIpGrXTMeqPEbFxZMkgJ3B+dm1rWd9j3KHN+j0UZia6ePIJl56Su4P6UCsDHvdiQDCprVCMXhRqRxm355YKZvnH5+2tl X-Gm-Message-State: AOJu0Ywd968kyaX7j8Cpg0q9QcrSqnq+Vz6QBnB/8w6rp3hhQN2edG+3 p5NzOny04hQ2GPH/acJdYOjqPCRAuadrQrnz6DtxWQMKobmQpCPlC+tDL79rRplE1IX5Q82NufD PHr1sZPUK7MSVSt2ztPTIVmU31/1OJyKvpfRVYiswDdZdVp1BVlIYOKQ= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6e02:1a28:b0:375:8fd0:c939 with SMTP id e9e14a558f8ab-375e0e14abamr3267955ab.1.1718445500166; Sat, 15 Jun 2024 02:58:20 -0700 (PDT) Date: Sat, 15 Jun 2024 02:58:20 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000009a83e9061aeac50d@google.com> Subject: [syzbot] [bcachefs?] INFO: task hung in __bch2_fs_stop From: syzbot To: bfoster@redhat.com, kent.overstreet@linux.dev, linux-bcachefs@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot found the following issue on: HEAD commit: 83a7eefedc9b Linux 6.10-rc3 git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=164ac82e980000 kernel config: https://syzkaller.appspot.com/x/.config?x=c79815c08cc14227 dashboard link: https://syzkaller.appspot.com/bug?extid=6d3e28b33490b3085412 compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1653cfba980000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1316587a980000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/b45273014a8f/disk-83a7eefe.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/94cd5708292e/vmlinux-83a7eefe.xz kernel image: https://storage.googleapis.com/syzbot-assets/a89698812e8b/bzImage-83a7eefe.xz mounted in repro: https://storage.googleapis.com/syzbot-assets/3ef828450a9b/mount_0.gz The issue was bisected to: commit 267b801fda10b70eca4001a819fcac07f023df6b Author: Kent Overstreet Date: Mon Dec 4 18:45:33 2023 +0000 bcachefs: BCH_IOCTL_FSCK_ONLINE bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=15166a54980000 final oops: https://syzkaller.appspot.com/x/report.txt?x=17166a54980000 console output: https://syzkaller.appspot.com/x/log.txt?x=13166a54980000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+6d3e28b33490b3085412@syzkaller.appspotmail.com Fixes: 267b801fda10 ("bcachefs: BCH_IOCTL_FSCK_ONLINE") INFO: task syz-executor427:5081 blocked for more than 143 seconds. Not tainted 6.10.0-rc3-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor427 state:D stack:22048 pid:5081 tgid:5081 ppid:5078 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5408 [inline] __schedule+0x1796/0x49d0 kernel/sched/core.c:6745 __schedule_loop kernel/sched/core.c:6822 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6837 __bch2_fs_stop+0x35b/0x540 fs/bcachefs/super.c:628 generic_shutdown_super+0x136/0x2d0 fs/super.c:642 bch2_kill_sb+0x41/0x50 fs/bcachefs/fs.c:2034 deactivate_locked_super+0xc4/0x130 fs/super.c:473 cleanup_mnt+0x41f/0x4b0 fs/namespace.c:1267 task_work_run+0x24f/0x310 kernel/task_work.c:180 ptrace_notify+0x2d2/0x380 kernel/signal.c:2402 ptrace_report_syscall include/linux/ptrace.h:415 [inline] ptrace_report_syscall_exit include/linux/ptrace.h:477 [inline] syscall_exit_work+0xc6/0x190 kernel/entry/common.c:173 syscall_exit_to_user_mode_prepare kernel/entry/common.c:200 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:205 [inline] syscall_exit_to_user_mode+0x273/0x370 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f70db0df3c7 RSP: 002b:00007ffd58b093d8 EFLAGS: 00000206 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f70db0df3c7 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffd58b09490 RBP: 00007ffd58b09490 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000206 R12: 00007ffd58b0a4f0 R13: 000055558a2c86c0 R14: 0000000000000019 R15: 431bde82d7b634db Showing all locks held in the system: 1 lock held by khungtaskd/30: #0: ffffffff8e333fa0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline] #0: ffffffff8e333fa0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:781 [inline] #0: ffffffff8e333fa0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614 2 locks held by kworker/u8:7/1105: 1 lock held by klogd/4526: 2 locks held by getty/4836: #0: ffff88802f6310a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc90002f162f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b5/0x1e10 drivers/tty/n_tty.c:2201 1 lock held by syz-executor427/5081: #0: ffff88807e8180e0 (&type->s_umount_key#44){+.+.}-{3:3}, at: __super_lock fs/super.c:56 [inline] #0: ffff88807e8180e0 (&type->s_umount_key#44){+.+.}-{3:3}, at: __super_lock_excl fs/super.c:71 [inline] #0: ffff88807e8180e0 (&type->s_umount_key#44){+.+.}-{3:3}, at: deactivate_super+0xb5/0xf0 fs/super.c:505 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 30 Comm: khungtaskd Not tainted 6.10.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 nmi_cpu_backtrace+0x49c/0x4d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x198/0x320 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline] watchdog+0xfde/0x1020 kernel/hung_task.c:379 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 1105 Comm: kworker/u8:7 Not tainted 6.10.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:PagePoisoned include/linux/page-flags.h:296 [inline] RIP: 0010:PageReserved include/linux/page-flags.h:536 [inline] RIP: 0010:__text_poke+0x187/0xd30 arch/x86/kernel/alternative.c:1864 Code: 00 00 00 00 00 ea ff ff 4c 89 ff e8 13 33 0d 00 49 89 c4 49 c1 ec 06 49 83 e4 c0 49 01 dc 4c 89 e3 48 c1 eb 03 42 80 3c 2b 00 <74> 08 4c 89 e7 e8 ff 88 c3 00 4d 8b 34 24 48 c7 c7 ff ff ff ff 4c RSP: 0018:ffffc900043f7740 EFLAGS: 00000246 RAX: 0000000001ed289c RBX: 1ffffd400000f690 RCX: ffff888022338000 RDX: 0000000000000000 RSI: 0000000001ed289c RDI: 000000001fffffff RBP: ffffc900043f7910 R08: ffffffff81424c05 R09: 1ffffffff1f583d5 R10: dffffc0000000000 R11: fffffbfff1f583d6 R12: ffffea000007b480 R13: dffffc0000000000 R14: 0000000000000001 R15: ffffffff81ed289c FS: 0000000000000000(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005622c0cea600 CR3: 000000000e132000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: text_poke arch/x86/kernel/alternative.c:1968 [inline] text_poke_bp_batch+0x8cd/0xb30 arch/x86/kernel/alternative.c:2357 text_poke_flush arch/x86/kernel/alternative.c:2470 [inline] text_poke_finish+0x30/0x50 arch/x86/kernel/alternative.c:2477 arch_jump_label_transform_apply+0x1c/0x30 arch/x86/kernel/jump_label.c:146 static_key_enable_cpuslocked+0x136/0x260 kernel/jump_label.c:205 static_key_enable+0x1a/0x20 kernel/jump_label.c:218 toggle_allocation_gate+0xb5/0x250 mm/kfence/core.c:826 process_one_work kernel/workqueue.c:3231 [inline] process_scheduled_works+0xa2c/0x1830 kernel/workqueue.c:3312 worker_thread+0x86d/0xd70 kernel/workqueue.c:3393 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 INFO: NMI handler (nmi_cpu_backtrace_handler) took too long to run: 1.167 msecs --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. For information about bisection process see: https://goo.gl/tpsmEJ#bisection If the report is already addressed, let syzbot know by replying with: #syz fix: exact-commit-title If you want syzbot to run the reproducer, reply with: #syz test: git://repo/address.git branch-or-commit-hash If you attach or paste a git patch, syzbot will apply it before testing. If you want to overwrite report's subsystems, reply with: #syz set subsystems: new-subsystem (See the list of subsystem names on the web dashboard) If the report is a duplicate of another one, reply with: #syz dup: exact-subject-of-another-report If you want to undo deduplication, reply with: #syz undup