From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f197.google.com (mail-il1-f197.google.com [209.85.166.197]) (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 9A21F201260 for ; Wed, 27 Nov 2024 21:22:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.197 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732742548; cv=none; b=hB/UJC4Aci5mOc19UocHF9idJV7SMi5xwKmP64tC4hj0+x2fU5FHuCqGHN5WwsrJlnf2czsbC14aepyDqPzSaJCX2t/EybEhdaj3CqDiFVNRYXBs14h/SA9mphtaRRIfHbJwHE+9nJpoNkgCn4fHtnCnilK0HRV7h9Ptn6fObh0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732742548; c=relaxed/simple; bh=yFbgcHeMHyIvKDJ4TL0bBAORSg87sc3mNPdjcKC4euk=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=C/rV69b3uii6LZfXxTEsyVxImIDi4vYy1cQFD3RPufz2c4lUn0I9elc4tG4QAXbcUDWsA9C6pzV3QZX5QiheLJavhG6la1oveTiX+2LoLKlsCUPvm+D50SMcafrVl6Jo0MmhKo1+3Uw8bvPlXGORX2Lrv2DFuSeaHynfg0oUvvA= 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.197 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-f197.google.com with SMTP id e9e14a558f8ab-3a7c729bfbaso1723805ab.0 for ; Wed, 27 Nov 2024 13:22:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732742546; x=1733347346; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=c6w/ragAH6fNV1kVvMrzZ4MY5D3euj2lCORACOs9Ins=; b=ELlqwe5xct91QvdDeKTF2bJA3gZ8AuY4zFBu+EobiT5maKlqJuFRYJm8ItjO6+g2ba 7ZfucAUwt4VdaoaH7a0cOL0rfjBn8ENg3dnX7bWyDf8YpBZQ3AO/jWV3aTF3w4ykhMKH xGr6jdxbGUzZyVYW3eqm4eS0HpjqEwch+8QjhPE23ieaOTPaRAE5NEFcj71b0+gj0E4w J5I52jp4IInQTw6InYCeIcWWjepdhgoY67QWG3CD9YghQ5ZcqXpEfAExz2UWl86qwNaM RoCp0FC7jwOHl/LIDygwmXK6m0EsZVCoKEgMB/1Rk0667orZdqrjtfzl2figQB6hNaTv KzEA== X-Forwarded-Encrypted: i=1; AJvYcCXNdLxGrfqhWhBLiyV/ee45OmT6MHtvhy/ytZxCNTxg1yVQhiwkQFApx3k95hL+gUSc4BWqik1H0ji4sfvQiDlj2wQ=@vger.kernel.org X-Gm-Message-State: AOJu0YzJNyBIDNGWT6lxjbnRDagEYnNjbUgZ0z7hXWiNUhv3bf0PN/OQ Qg+PMEvu1zn0tKmDdVjWH1laMilVHNlRkYG/IZ/N8/U+OzAL1zOBMrmz8kM3clrFsHJr2BvbUgP zLRExCb3jFXRdZ9jQ1DeaYddP/kYCF2vkPyJcl8Y/gjlP0r+mX02aXLg= X-Google-Smtp-Source: AGHT+IHkmj8EeYdD0jdKVhuczxXDyaO0/L8rIBgOTIAxmjMRJSe40gzKjtwDt9Zm2d3nTBtYmpYeeyPhXdVFSHyJu5zkMDHGAN1o Precedence: bulk X-Mailing-List: linux-trace-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6e02:1caf:b0:3a7:8720:9de8 with SMTP id e9e14a558f8ab-3a7c552677amr54613075ab.5.1732742545753; Wed, 27 Nov 2024 13:22:25 -0800 (PST) Date: Wed, 27 Nov 2024 13:22:25 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <67478d91.050a0220.253251.0061.GAE@google.com> Subject: [syzbot] [netfs?] INFO: task hung in netfs_unbuffered_read_iter From: syzbot To: asmadeus@codewreck.org, bharathsm@microsoft.com, brauner@kernel.org, dhowells@redhat.com, ericvh@kernel.org, jlayton@kernel.org, linux-afs@lists.infradead.org, linux-cifs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux_oss@crudebyte.com, lucho@ionkov.net, marc.dionne@auristor.com, mathieu.desnoyers@efficios.com, mhiramat@kernel.org, netfs@lists.linux.dev, pc@manguebit.com, ronniesahlberg@gmail.com, rostedt@goodmis.org, samba-technical@lists.samba.org, sfrench@samba.org, sprasad@microsoft.com, syzkaller-bugs@googlegroups.com, tom@talpey.com, v9fs@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Hello, syzbot found the following issue on: HEAD commit: ed9a4ad6e5bd Add linux-next specific files for 20241126 git tree: linux-next console+strace: https://syzkaller.appspot.com/x/log.txt?x=17615530580000 kernel config: https://syzkaller.appspot.com/x/.config?x=e348a4873516af92 dashboard link: https://syzkaller.appspot.com/bug?extid=8965fea6a159ab9aa32d 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=175c8dc0580000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1103a1e8580000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/3b9ba5fbd895/disk-ed9a4ad6.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/e30aed8d0305/vmlinux-ed9a4ad6.xz kernel image: https://storage.googleapis.com/syzbot-assets/1092546e50cf/bzImage-ed9a4ad6.xz The issue was bisected to: commit 1bd9011ee163e11f186b72705978fd6b21bdc07b Author: David Howells Date: Fri Nov 8 17:32:29 2024 +0000 netfs: Change the read result collector to only use one work item bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=174cc3c0580000 final oops: https://syzkaller.appspot.com/x/report.txt?x=14ccc3c0580000 console output: https://syzkaller.appspot.com/x/log.txt?x=10ccc3c0580000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+8965fea6a159ab9aa32d@syzkaller.appspotmail.com Fixes: 1bd9011ee163 ("netfs: Change the read result collector to only use one work item") INFO: task syz-executor246:5857 blocked for more than 143 seconds. Not tainted 6.12.0-next-20241126-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor246 state:D stack:22584 pid:5857 tgid:5857 ppid:5854 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5369 [inline] __schedule+0x1850/0x4c30 kernel/sched/core.c:6756 __schedule_loop kernel/sched/core.c:6833 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6848 bit_wait+0x12/0xd0 kernel/sched/wait_bit.c:237 __wait_on_bit+0xb0/0x2f0 kernel/sched/wait_bit.c:49 out_of_line_wait_on_bit+0x1d5/0x260 kernel/sched/wait_bit.c:64 wait_on_bit include/linux/wait_bit.h:77 [inline] netfs_dispatch_unbuffered_reads fs/netfs/direct_read.c:107 [inline] netfs_unbuffered_read fs/netfs/direct_read.c:146 [inline] netfs_unbuffered_read_iter_locked+0xd7e/0x1560 fs/netfs/direct_read.c:231 netfs_unbuffered_read_iter+0xbf/0xe0 fs/netfs/direct_read.c:266 new_sync_read fs/read_write.c:484 [inline] vfs_read+0x991/0xb70 fs/read_write.c:565 ksys_read+0x18f/0x2b0 fs/read_write.c:708 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f1999cb4f79 RSP: 002b:00007ffef9ec4f98 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f1999cb4f79 RDX: 0000000000002020 RSI: 000000002001b640 RDI: 0000000000000006 RBP: 00007f1999cfe04e R08: 0000000000000006 R09: 0000000000000006 R10: 0000000000000006 R11: 0000000000000246 R12: 00007ffef9ec4fac R13: 431bde82d7b634db R14: 0000000000000001 R15: 0000000000000001 Showing all locks held in the system: 1 lock held by khungtaskd/30: #0: ffffffff8e937ae0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #0: ffffffff8e937ae0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #0: ffffffff8e937ae0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6744 5 locks held by kworker/u8:2/35: 2 locks held by getty/5592: #0: ffff888034e320a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc90002fde2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x6a6/0x1e00 drivers/tty/n_tty.c:2211 1 lock held by syz-executor246/5857: #0: ffff888072050148 (&sb->s_type->i_mutex_key#15){++++}-{4:4}, at: netfs_start_io_direct+0x1d4/0x210 fs/netfs/locking.c:188 ============================================= NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.12.0-next-20241126-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 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:234 [inline] watchdog+0xffb/0x1040 kernel/hung_task.c:397 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 UID: 0 PID: 35 Comm: kworker/u8:2 Not tainted 6.12.0-next-20241126-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:insn_get_sib arch/x86/lib/insn.c:447 [inline] RIP: 0010:insn_get_displacement+0x2ca/0x9a0 arch/x86/lib/insn.c:484 Code: cb f5 49 bc 00 00 00 00 00 fc ff df e9 12 04 00 00 49 8d 5d 25 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 0f b6 04 08 <84> c0 0f 85 95 05 00 00 0f b6 1b 31 ff 89 de e8 72 c9 cb f5 85 db RSP: 0018:ffffc90000ab7790 EFLAGS: 00000a07 RAX: 0000000000000000 RBX: ffffc90000ab7945 RCX: dffffc0000000000 RDX: ffff888020a81e00 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90000ab794c R08: ffffffff8bd3c21d R09: ffffffff8bd395b6 R10: 0000000000000002 R11: ffff888020a81e00 R12: 1ffff92000156f29 R13: ffffc90000ab7920 R14: 1ffff92000156f2a R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fbd0e4b4580 CR3: 000000000e736000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: insn_get_immediate+0x62/0x11f0 arch/x86/lib/insn.c:650 insn_get_length arch/x86/lib/insn.c:723 [inline] insn_decode+0x2d6/0x4c0 arch/x86/lib/insn.c:762 text_poke_loc_init+0xed/0x870 arch/x86/kernel/alternative.c:2432 arch_jump_label_transform_queue+0x8f/0x100 arch/x86/kernel/jump_label.c:138 __jump_label_update+0x177/0x3a0 kernel/jump_label.c:513 static_key_disable_cpuslocked+0xd2/0x1c0 kernel/jump_label.c:240 static_key_disable+0x1a/0x20 kernel/jump_label.c:248 toggle_allocation_gate+0x1bf/0x260 mm/kfence/core.c:854 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0xa63/0x1850 kernel/workqueue.c:3310 worker_thread+0x870/0xd30 kernel/workqueue.c:3391 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.344 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