INFO: task syz-executor.1:18911 blocked for more than 143 seconds. Not tainted 5.4.0-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.1 D23800 18911 7893 0x00004004 Call Trace: context_switch kernel/sched/core.c:3385 [inline] __schedule+0x7b7/0xc30 kernel/sched/core.c:4079 schedule+0x181/0x210 kernel/sched/core.c:4153 io_schedule+0x8b/0x100 kernel/sched/core.c:5797 wait_on_page_bit_common+0x918/0xc90 mm/filemap.c:1175 wait_on_page_bit+0x46/0x50 mm/filemap.c:1224 wait_on_page_writeback+0x13e/0x180 mm/page-writeback.c:2822 __filemap_fdatawait_range+0x1b5/0x3b0 mm/filemap.c:526 file_write_and_wait_range+0x141/0x1a0 mm/filemap.c:786 __generic_file_fsync+0x76/0x1a0 fs/libfs.c:1000 fat_file_fsync+0x7c/0x190 fs/fat/file.c:199 vfs_fsync_range+0xfd/0x1a0 fs/sync.c:197 generic_write_sync include/linux/fs.h:2847 [inline] generic_file_write_iter+0x575/0x630 mm/filemap.c:3470 do_iter_readv_writev+0x651/0x8e0 include/linux/fs.h:1887 do_iter_write+0x180/0x590 fs/read_write.c:970 vfs_iter_write+0x7c/0xa0 fs/read_write.c:983 iter_file_splice_write+0x6d8/0xe20 fs/splice.c:746 do_splice_from fs/splice.c:848 [inline] direct_splice_actor+0xf7/0x130 fs/splice.c:1020 splice_direct_to_actor+0x463/0xac0 fs/splice.c:975 do_splice_direct+0x200/0x330 fs/splice.c:1063 do_sendfile+0x7e4/0xfd0 fs/read_write.c:1464 __do_sys_sendfile64 fs/read_write.c:1519 [inline] __se_sys_sendfile64 fs/read_write.c:1511 [inline] __x64_sys_sendfile64+0xfc/0x1b0 fs/read_write.c:1511 do_syscall_64+0xf7/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45a649 Code: ec 08 10 00 00 48 89 ac 24 00 10 00 00 48 8d ac 24 00 10 00 00 48 8b 59 20 48 85 db 75 67 48 8b b4 24 20 10 00 00 8b 8c 24 28 <10> 00 00 48 89 e7 f3 a4 48 8b 94 24 18 10 00 00 ff 12 48 8b 94 24 RSP: 002b:00007f368435dc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 000000000045a649 RDX: 0000000020000000 RSI: 0000000000000004 RDI: 0000000000000004 RBP: 000000000075bfc8 R08: 0000000000000000 R09: 0000000000000000 R10: 00008080fffffffe R11: 0000000000000246 R12: 00007f368435e6d4 R13: 00000000004c85ca R14: 00000000004dec58 R15: 00000000ffffffff Showing all locks held in the system: 1 lock held by khungtaskd/1071: #0: ffffffff88ad4040 (rcu_read_lock){....}, at: rcu_lock_acquire+0x4/0x30 include/linux/rcupdate.h:207 1 lock held by rsyslogd/7719: #0: ffff888099de91a0 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x22f/0x2f0 fs/file.c:801 3 locks held by getty/7809: #0: ffff88809a475360 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x22f/0x2f0 fs/file.c:801 #1: ffff8880a060c090 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:272 #2: ffffc90005f2d2e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x221/0x1b00 drivers/tty/n_tty.c:2156 3 locks held by getty/7810: #0: ffff8880a8d9a160 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x22f/0x2f0 fs/file.c:801 #1: ffff888095513090 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:272 #2: ffffc90005f4f2e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x221/0x1b00 drivers/tty/n_tty.c:2156 3 locks held by getty/7811: #0: ffff8880a0a31b20 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x22f/0x2f0 fs/file.c:801 #1: ffff8880a4aea090 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:272 #2: ffffc90005f3f2e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x221/0x1b00 drivers/tty/n_tty.c:2156 3 locks held by getty/7812: #0: ffff8880a4f605e0 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x22f/0x2f0 fs/file.c:801 #1: ffff88808effb090 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:272 #2: ffffc90005f532e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x221/0x1b00 drivers/tty/n_tty.c:2156 3 locks held by getty/7813: #0: ffff88809f9675e0 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x22f/0x2f0 fs/file.c:801 #1: ffff8880a4da4090 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:272 #2: ffffc90005f4b2e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x221/0x1b00 drivers/tty/n_tty.c:2156 3 locks held by getty/7814: #0: ffff8880a0c87120 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x22f/0x2f0 fs/file.c:801 #1: ffff88809a87b090 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:272 #2: ffffc90005f472e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x221/0x1b00 drivers/tty/n_tty.c:2156 3 locks held by getty/7815: #0: ffff8880a90e5860 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x22f/0x2f0 fs/file.c:801 #1: ffff8880a3619090 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:272 #2: ffffc90005f212e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x221/0x1b00 drivers/tty/n_tty.c:2156 1 lock held by syz-executor.1/18911: #0: ffff8880703f8428 (sb_writers#14){.+.+}, at: file_start_write include/linux/fs.h:2876 [inline] #0: ffff8880703f8428 (sb_writers#14){.+.+}, at: do_sendfile+0x7c2/0xfd0 fs/read_write.c:1463 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 1071 Comm: khungtaskd Not tainted 5.4.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fb/0x318 lib/dump_stack.c:118 nmi_cpu_backtrace+0xaf/0x1a0 lib/nmi_backtrace.c:101 nmi_trigger_cpumask_backtrace+0x174/0x290 lib/nmi_backtrace.c:62 arch_trigger_cpumask_backtrace+0x10/0x20 arch/x86/kernel/apic/hw_nmi.c:38 trigger_all_cpu_backtrace+0x17/0x20 include/linux/nmi.h:146 check_hung_uninterruptible_tasks kernel/hung_task.c:205 [inline] watchdog+0xbb9/0xbd0 kernel/hung_task.c:289 kthread+0x332/0x350 kernel/kthread.c:255 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 13781 Comm: kworker/u4:8 Not tainted 5.4.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: bat_events batadv_tt_purge RIP: 0010:__this_cpu_preempt_check+0x5/0x20 lib/smp_processor_id.c:63 Code: 63 fe e9 08 ff ff ff 44 89 e1 80 e1 07 80 c1 03 38 c1 7c 93 4c 89 e7 e8 a9 5a 63 fe eb 89 e8 72 59 29 fe 0f 0b 55 48 89 e5 53 <48> 89 fb e8 63 59 29 fe 48 c7 c7 ba 65 61 88 48 89 de e8 44 fd ff RSP: 0018:ffff88809690fb40 EFLAGS: 00000046 RAX: 0000000080000001 RBX: ffff8880920fce94 RCX: 0000000000000201 RDX: dffffc0000000000 RSI: ffffffff87814404 RDI: ffffffff887056fa RBP: ffff88809690fb48 R08: ffffffff8179c356 R09: ffffed100f6496d6 R10: ffffed100f6496d6 R11: 0000000000000000 R12: ffff8880920fce60 R13: dffffc0000000000 R14: ffffffff8766d8de R15: 0000000000000200 FS: 0000000000000000(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000022c8e40 CR3: 00000000a49c4000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __local_bh_enable_ip+0x11e/0x240 kernel/softirq.c:184 __raw_spin_unlock_bh include/linux/spinlock_api_smp.h:176 [inline] _raw_spin_unlock_bh+0x34/0x40 kernel/locking/spinlock.c:207 spin_unlock_bh include/linux/spinlock.h:383 [inline] batadv_tt_local_purge+0x2ee/0x370 net/batman-adv/translation-table.c:1446 batadv_tt_purge+0x34/0x910 net/batman-adv/translation-table.c:3801 process_one_work+0x7ef/0x10e0 kernel/workqueue.c:2271 worker_thread+0xc01/0x1630 kernel/workqueue.c:2417 kthread+0x332/0x350 kernel/kthread.c:255 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352