ci2 starts bisection 2023-04-26 04:45:27.884752835 +0000 UTC m=+57426.182027750 bisecting fixing commit since 115472395b0a9ea522ba0e106d6dfd7a73df8ba6 building syzkaller on fbf0499acc828df26995835e51d83c3a0117e716 ensuring issue is reproducible on original commit 115472395b0a9ea522ba0e106d6dfd7a73df8ba6 testing commit 115472395b0a9ea522ba0e106d6dfd7a73df8ba6 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 9045695e87ab7d7c39b7916b0402e2e9ce9cd60e1615794e1b09c63a9c331cd6 all runs: crashed: INFO: task hung in blkdev_fallocate testing current HEAD 3299fb36854fdc288bddc2c4d265f8a2e5105944 testing commit 3299fb36854fdc288bddc2c4d265f8a2e5105944 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: b13ec3aa25af6038aad3189ccbb9b2ab8fb22539ea1b141deddffbfebbedbb77 all runs: crashed: INFO: task hung in blkdev_fallocate revisions tested: 2, total time: 47m25.491094248s (build: 32m56.630348624s, test: 13m52.567745969s) the crash still happens on HEAD commit msg: Linux 5.15.108 crash: INFO: task hung in blkdev_fallocate INFO: task syz-executor.5:4212 blocked for more than 143 seconds. Not tainted 5.15.108-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.5 state:D stack:27488 pid: 4212 ppid: 3872 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5026 [inline] __schedule+0x12af/0x4550 kernel/sched/core.c:6372 schedule+0x11b/0x1f0 kernel/sched/core.c:6455 rwsem_down_write_slowpath+0xebb/0x15c0 kernel/locking/rwsem.c:1157 __down_write_common kernel/locking/rwsem.c:1284 [inline] __down_write kernel/locking/rwsem.c:1293 [inline] down_write+0x164/0x170 kernel/locking/rwsem.c:1542 filemap_invalidate_lock include/linux/fs.h:832 [inline] blkdev_fallocate+0x1ca/0x300 block/fops.c:600 vfs_fallocate+0x3ad/0x530 fs/open.c:308 ksys_fallocate fs/open.c:331 [inline] __do_sys_fallocate fs/open.c:339 [inline] __se_sys_fallocate fs/open.c:337 [inline] __x64_sys_fallocate+0xa6/0xd0 fs/open.c:337 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fd0477800f9 RSP: 002b:00007fd046af2168 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007fd04789ff80 RCX: 00007fd0477800f9 RDX: 0000000000000000 RSI: 0000000000000011 RDI: 0000000000000004 RBP: 00007fd0477dbb39 R08: 0000000000000000 R09: 0000000000000000 R10: 0008000001002000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe3e14ccaf R14: 00007fd046af2300 R15: 0000000000022000 INFO: task syz-executor.4:4216 blocked for more than 143 seconds. Not tainted 5.15.108-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:27416 pid: 4216 ppid: 3879 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5026 [inline] __schedule+0x12af/0x4550 kernel/sched/core.c:6372 schedule+0x11b/0x1f0 kernel/sched/core.c:6455 rwsem_down_write_slowpath+0xebb/0x15c0 kernel/locking/rwsem.c:1157 __down_write_common kernel/locking/rwsem.c:1284 [inline] __down_write kernel/locking/rwsem.c:1293 [inline] down_write+0x164/0x170 kernel/locking/rwsem.c:1542 filemap_invalidate_lock include/linux/fs.h:832 [inline] blkdev_fallocate+0x1ca/0x300 block/fops.c:600 vfs_fallocate+0x3ad/0x530 fs/open.c:308 ksys_fallocate fs/open.c:331 [inline] __do_sys_fallocate fs/open.c:339 [inline] __se_sys_fallocate fs/open.c:337 [inline] __x64_sys_fallocate+0xa6/0xd0 fs/open.c:337 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f75ea5150f9 RSP: 002b:00007f75e9887168 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007f75ea634f80 RCX: 00007f75ea5150f9 RDX: 0000000000000000 RSI: 0000000000000011 RDI: 0000000000000004 RBP: 00007f75ea570b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0008000001002000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff32da8e8f R14: 00007f75e9887300 R15: 0000000000022000 INFO: task syz-executor.0:4224 blocked for more than 144 seconds. Not tainted 5.15.108-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:27488 pid: 4224 ppid: 3874 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5026 [inline] __schedule+0x12af/0x4550 kernel/sched/core.c:6372 schedule+0x11b/0x1f0 kernel/sched/core.c:6455 rwsem_down_write_slowpath+0xebb/0x15c0 kernel/locking/rwsem.c:1157 __down_write_common kernel/locking/rwsem.c:1284 [inline] __down_write kernel/locking/rwsem.c:1293 [inline] down_write+0x164/0x170 kernel/locking/rwsem.c:1542 filemap_invalidate_lock include/linux/fs.h:832 [inline] blkdev_fallocate+0x1ca/0x300 block/fops.c:600 vfs_fallocate+0x3ad/0x530 fs/open.c:308 ksys_fallocate fs/open.c:331 [inline] __do_sys_fallocate fs/open.c:339 [inline] __se_sys_fallocate fs/open.c:337 [inline] __x64_sys_fallocate+0xa6/0xd0 fs/open.c:337 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fea0c79f0f9 RSP: 002b:00007fea0bb11168 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007fea0c8bef80 RCX: 00007fea0c79f0f9 RDX: 0000000000000000 RSI: 0000000000000011 RDI: 0000000000000004 RBP: 00007fea0c7fab39 R08: 0000000000000000 R09: 0000000000000000 R10: 0008000001002000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff8dbadd0f R14: 00007fea0bb11300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by khungtaskd/27: #0: ffffffff8b90ed00 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by getty/3253: #0: ffff888023706098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x1c/0x60 drivers/tty/tty_ldisc.c:252 #1: ffffc90001f262e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x5ea/0x1880 drivers/tty/n_tty.c:2147 1 lock held by syz-executor.2/4209: 1 lock held by syz-executor.5/4212: #0: ffff888010c36778 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:832 [inline] #0: ffff888010c36778 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x1ca/0x300 block/fops.c:600 1 lock held by syz-executor.4/4216: #0: ffff888010c36778 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:832 [inline] #0: ffff888010c36778 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x1ca/0x300 block/fops.c:600 1 lock held by syz-executor.0/4224: #0: ffff888010c36778 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:832 [inline] #0: ffff888010c36778 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x1ca/0x300 block/fops.c:600 1 lock held by syz-executor.3/4377: #0: ffff888010c36778 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:832 [inline] #0: ffff888010c36778 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x1ca/0x300 block/fops.c:600 1 lock held by syz-executor.1/4386: #0: ffff888010c36778 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:832 [inline] #0: ffff888010c36778 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x1ca/0x300 block/fops.c:600 1 lock held by syz-executor.2/4414: #0: ffff888010c36778 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:832 [inline] #0: ffff888010c36778 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x1ca/0x300 block/fops.c:600 1 lock held by syz-executor.5/4419: #0: ffff888010c36778 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:832 [inline] #0: ffff888010c36778 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x1ca/0x300 block/fops.c:600 1 lock held by syz-executor.0/4421: #0: ffff888010c36778 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:832 [inline] #0: ffff888010c36778 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x1ca/0x300 block/fops.c:600 1 lock held by syz-executor.4/4423: #0: ffff888010c36778 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:832 [inline] #0: ffff888010c36778 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x1ca/0x300 block/fops.c:600 1 lock held by syz-executor.3/4449: #0: ffff888010c36778 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:832 [inline] #0: ffff888010c36778 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x1ca/0x300 block/fops.c:600 1 lock held by syz-executor.1/4461: #0: ffff888010c36778 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:832 [inline] #0: ffff888010c36778 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x1ca/0x300 block/fops.c:600 1 lock held by syz-executor.2/4481: #0: ffff888010c36778 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:832 [inline] #0: ffff888010c36778 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x1ca/0x300 block/fops.c:600 1 lock held by syz-executor.0/4527: #0: ffff888010c36778 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:832 [inline] #0: ffff888010c36778 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x1ca/0x300 block/fops.c:600 1 lock held by syz-executor.5/4530: #0: ffff888010c36778 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:832 [inline] #0: ffff888010c36778 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x1ca/0x300 block/fops.c:600 1 lock held by syz-executor.4/4532: #0: ffff888010c36778 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:832 [inline] #0: ffff888010c36778 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x1ca/0x300 block/fops.c:600 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 27 Comm: khungtaskd Not tainted 5.15.108-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x163/0x213 lib/dump_stack.c:106 nmi_cpu_backtrace+0x347/0x380 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0xf6/0x1a0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline] watchdog+0xa3a/0xa80 kernel/hung_task.c:295 kthread+0x3a8/0x480 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 4213 Comm: kworker/u4:5 Not tainted 5.15.108-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 Workqueue: bat_events batadv_nc_worker RIP: 0010:validate_chain+0xd0/0x58b0 kernel/locking/lockdep.c:3754 Code: 89 44 21 23 48 89 8c 24 98 00 00 00 42 c6 44 21 2b f3 48 89 b4 24 a8 00 00 00 4c 8d 6e 20 4c 89 e8 48 c1 e8 03 48 89 44 24 60 <42> 0f b6 04 20 84 c0 0f 85 a8 46 00 00 41 8b 5d 00 89 d8 25 00 80 RSP: 0018:ffffc90002dbf6e0 EFLAGS: 00000806 RAX: 1ffff11002e4f882 RBX: ffffffff8e64ade0 RCX: 1ffff920005b7efc RDX: 0000000000000000 RSI: ffff88801727c3f0 RDI: ffff88801727b980 RBP: ffffc90002dbf990 R08: dffffc0000000000 R09: fffffbfff1d2a615 R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: ffff88801727c410 R14: 1ef09494c14e416b R15: ffff88801727c410 FS: 0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555556e52848 CR3: 0000000067a65000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __lock_acquire+0x1295/0x1ff0 kernel/locking/lockdep.c:5011 lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5622 rcu_lock_acquire+0x20/0x30 include/linux/rcupdate.h:269 rcu_read_lock include/linux/rcupdate.h:696 [inline] batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:412 [inline] batadv_nc_worker+0xb0/0x4a0 net/batman-adv/network-coding.c:723 process_one_work+0x799/0xe10 kernel/workqueue.c:2306 worker_thread+0x8f2/0xfb0 kernel/workqueue.c:2453 kthread+0x3a8/0x480 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298