INFO: task syz-executor.1:8702 blocked for more than 143 seconds. Not tainted 5.4.0-rc8-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.1 D27208 8702 7866 0x00004004 Call Trace: context_switch kernel/sched/core.c:3384 [inline] __schedule+0x7b7/0xc30 kernel/sched/core.c:4078 schedule+0x131/0x1e0 kernel/sched/core.c:4145 io_schedule+0x8b/0x100 kernel/sched/core.c:5789 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 truncate_inode_pages_range+0x119b/0x16e0 mm/truncate.c:448 truncate_inode_pages mm/truncate.c:476 [inline] truncate_pagecache mm/truncate.c:817 [inline] truncate_setsize+0xd9/0x100 mm/truncate.c:842 fat_setattr+0x8d4/0xd60 fs/fat/file.c:547 notify_change+0xa27/0xe70 fs/attr.c:337 do_truncate+0x194/0x230 fs/open.c:64 handle_truncate fs/namei.c:2998 [inline] do_last fs/namei.c:3414 [inline] path_openat+0x2fe3/0x4420 fs/namei.c:3525 do_filp_open+0x192/0x3d0 fs/namei.c:3555 do_sys_open+0x29f/0x560 fs/open.c:1097 ksys_open include/linux/syscalls.h:1385 [inline] __do_sys_creat fs/open.c:1155 [inline] __se_sys_creat fs/open.c:1153 [inline] __x64_sys_creat+0x65/0x70 fs/open.c:1153 do_syscall_64+0xf7/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45a639 Code: 03 00 00 48 29 f0 48 3d f8 12 00 00 76 7d 48 81 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 RSP: 002b:00007f2e83256c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 000000000045a639 RDX: 0000000000000000 RSI: 0000000000000026 RDI: 0000000020000400 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f2e832576d4 R13: 00000000004c0ee8 R14: 00000000004d3960 R15: 00000000ffffffff INFO: task syz-executor.1:8708 blocked for more than 143 seconds. Not tainted 5.4.0-rc8-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.1 D26808 8708 7866 0x00004004 Call Trace: context_switch kernel/sched/core.c:3384 [inline] __schedule+0x7b7/0xc30 kernel/sched/core.c:4078 schedule+0x131/0x1e0 kernel/sched/core.c:4145 rwsem_down_write_slowpath+0x823/0xde0 kernel/locking/rwsem.c:1238 __down_write kernel/locking/rwsem.c:1392 [inline] down_write+0x12b/0x140 kernel/locking/rwsem.c:1535 inode_lock include/linux/fs.h:791 [inline] process_measurement+0x2d4/0x1800 security/integrity/ima/ima_main.c:230 ima_file_check+0x9b/0xe0 security/integrity/ima/ima_main.c:438 do_last fs/namei.c:3412 [inline] path_openat+0x1760/0x4420 fs/namei.c:3525 do_filp_open+0x192/0x3d0 fs/namei.c:3555 do_sys_open+0x29f/0x560 fs/open.c:1097 __do_sys_open fs/open.c:1115 [inline] __se_sys_open fs/open.c:1110 [inline] __x64_sys_open+0x87/0x90 fs/open.c:1110 do_syscall_64+0xf7/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45a639 Code: 03 00 00 48 29 f0 48 3d f8 12 00 00 76 7d 48 81 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 RSP: 002b:00007f2e83234c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045a639 RDX: 0000000000000000 RSI: 0000000000141042 RDI: 00000000200001c0 RBP: 000000000075bfc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f2e832356d4 R13: 00000000004fb41f R14: 00000000004dccc0 R15: 00000000ffffffff INFO: task syz-executor.1:8711 blocked for more than 143 seconds. Not tainted 5.4.0-rc8-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.1 D26208 8711 7866 0x00004004 Call Trace: context_switch kernel/sched/core.c:3384 [inline] __schedule+0x7b7/0xc30 kernel/sched/core.c:4078 schedule+0x131/0x1e0 kernel/sched/core.c:4145 io_schedule+0x8b/0x100 kernel/sched/core.c:5789 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:2853 [inline] generic_file_write_iter+0x575/0x630 mm/filemap.c:3470 do_iter_readv_writev+0x651/0x8e0 include/linux/fs.h:1889 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:0x45a639 Code: 03 00 00 48 29 f0 48 3d f8 12 00 00 76 7d 48 81 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 RSP: 002b:00007f2e83213c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 000000000045a639 RDX: 0000000020000000 RSI: 0000000000000005 RDI: 0000000000000005 RBP: 000000000075c070 R08: 0000000000000000 R09: 0000000000000000 R10: 00008080fffffffe R11: 0000000000000246 R12: 00007f2e832146d4 R13: 00000000004c83bf R14: 00000000004de7f0 R15: 00000000ffffffff INFO: task syz-executor.1:8721 blocked for more than 144 seconds. Not tainted 5.4.0-rc8-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.1 D28480 8721 7866 0x00004004 Call Trace: context_switch kernel/sched/core.c:3384 [inline] __schedule+0x7b7/0xc30 kernel/sched/core.c:4078 schedule+0x131/0x1e0 kernel/sched/core.c:4145 rwsem_down_write_slowpath+0x823/0xde0 kernel/locking/rwsem.c:1238 __down_write kernel/locking/rwsem.c:1392 [inline] down_write+0x12b/0x140 kernel/locking/rwsem.c:1535 inode_lock include/linux/fs.h:791 [inline] process_measurement+0x2d4/0x1800 security/integrity/ima/ima_main.c:230 ima_file_check+0x9b/0xe0 security/integrity/ima/ima_main.c:438 do_last fs/namei.c:3412 [inline] path_openat+0x1760/0x4420 fs/namei.c:3525 do_filp_open+0x192/0x3d0 fs/namei.c:3555 do_sys_open+0x29f/0x560 fs/open.c:1097 ksys_open include/linux/syscalls.h:1385 [inline] __do_sys_creat fs/open.c:1155 [inline] __se_sys_creat fs/open.c:1153 [inline] __x64_sys_creat+0x65/0x70 fs/open.c:1153 do_syscall_64+0xf7/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45a639 Code: 03 00 00 48 29 f0 48 3d f8 12 00 00 76 7d 48 81 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 RSP: 002b:00007f2e831f2c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 000000000045a639 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000700 RBP: 000000000075c118 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f2e831f36d4 R13: 00000000004c0ee8 R14: 00000000004d3960 R15: 00000000ffffffff Showing all locks held in the system: 1 lock held by khungtaskd/1072: #0: ffffffff888d3e40 (rcu_read_lock){....}, at: rcu_lock_acquire+0x4/0x30 include/linux/rcupdate.h:207 2 locks held by rsyslogd/7738: #0: ffff88809a29e1a0 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x243/0x2e0 fs/file.c:801 #1: ffff8880aa401818 (&(&parent->list_lock)->rlock){-.-.}, at: rcu_lock_acquire+0x9/0x40 include/linux/rcupdate.h:207 2 locks held by getty/7829: #0: ffff888096306090 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:272 #1: ffffc90005f492e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x221/0x1b00 drivers/tty/n_tty.c:2156 2 locks held by getty/7830: #0: ffff8880a7daa090 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:272 #1: ffffc90005f292e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x221/0x1b00 drivers/tty/n_tty.c:2156 2 locks held by getty/7831: #0: ffff88809de74090 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:272 #1: ffffc90005f352e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x221/0x1b00 drivers/tty/n_tty.c:2156 2 locks held by getty/7832: #0: ffff888096db7090 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:272 #1: ffffc90005f452e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x221/0x1b00 drivers/tty/n_tty.c:2156 2 locks held by getty/7833: #0: ffff888098489090 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:272 #1: ffffc90005f412e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x221/0x1b00 drivers/tty/n_tty.c:2156 2 locks held by getty/7834: #0: ffff888099c11090 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:272 #1: ffffc90005f392e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x221/0x1b00 drivers/tty/n_tty.c:2156 2 locks held by getty/7835: #0: ffff8880a7de4090 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:272 #1: ffffc90005f192e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x221/0x1b00 drivers/tty/n_tty.c:2156 3 locks held by syz-executor.1/8702: #0: ffff88809bc00428 (sb_writers#12){.+.+}, at: sb_start_write include/linux/fs.h:1650 [inline] #0: ffff88809bc00428 (sb_writers#12){.+.+}, at: mnt_want_write+0x4a/0xa0 fs/namespace.c:354 #1: ffff88809398d830 (&sb->s_type->i_mutex_key#22){++++}, at: inode_lock include/linux/fs.h:791 [inline] #1: ffff88809398d830 (&sb->s_type->i_mutex_key#22){++++}, at: do_truncate+0x186/0x230 fs/open.c:62 #2: ffff88809398d6d0 (&ei->truncate_lock){+.+.}, at: fat_setattr+0x8b9/0xd60 fs/fat/file.c:546 1 lock held by syz-executor.1/8708: #0: ffff88809398d830 (&sb->s_type->i_mutex_key#22){++++}, at: inode_lock include/linux/fs.h:791 [inline] #0: ffff88809398d830 (&sb->s_type->i_mutex_key#22){++++}, at: process_measurement+0x2d4/0x1800 security/integrity/ima/ima_main.c:230 1 lock held by syz-executor.1/8711: #0: ffff88809bc00428 (sb_writers#12){.+.+}, at: file_start_write include/linux/fs.h:2882 [inline] #0: ffff88809bc00428 (sb_writers#12){.+.+}, at: do_sendfile+0x7c2/0xfd0 fs/read_write.c:1463 2 locks held by syz-executor.1/8721: #0: ffff88809bc00428 (sb_writers#12){.+.+}, at: sb_start_write include/linux/fs.h:1650 [inline] #0: ffff88809bc00428 (sb_writers#12){.+.+}, at: mnt_want_write+0x4a/0xa0 fs/namespace.c:354 #1: ffff88809398d830 (&sb->s_type->i_mutex_key#22){++++}, at: inode_lock include/linux/fs.h:791 [inline] #1: ffff88809398d830 (&sb->s_type->i_mutex_key#22){++++}, at: process_measurement+0x2d4/0x1800 security/integrity/ima/ima_main.c:230 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 1072 Comm: khungtaskd Not tainted 5.4.0-rc8-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 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 8098 Comm: kworker/u4:5 Not tainted 5.4.0-rc8-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: bat_events batadv_nc_worker RIP: 0010:arch_atomic_try_cmpxchg arch/x86/include/asm/atomic.h:200 [inline] RIP: 0010:atomic_try_cmpxchg include/asm-generic/atomic-instrumented.h:695 [inline] RIP: 0010:queued_spin_lock include/asm-generic/qspinlock.h:78 [inline] RIP: 0010:do_raw_spin_lock+0x107/0x2d0 kernel/locking/spinlock_debug.c:113 Code: 4c 89 e7 be 04 00 00 00 e8 76 df 51 00 42 8a 04 33 84 c0 4c 89 f2 0f 85 5c 01 00 00 8b 45 cc b9 01 00 00 00 f0 41 0f b1 4d 00 <4c> 8b 65 c0 75 7e 65 8b 1d a4 e7 a6 7e 41 8a 04 17 84 c0 0f 85 5b RSP: 0018:ffff8880517e7b58 EFLAGS: 00000246 RAX: 0000000000000000 RBX: 1ffff1100a2fcf6f RCX: 0000000000000001 RDX: dffffc0000000000 RSI: 0000000000000004 RDI: ffff8880517e7b7c RBP: ffff8880517e7bb0 R08: dffffc0000000000 R09: ffffed100a2fcf70 R10: ffffed100a2fcf70 R11: 0000000000000000 R12: ffff8880517e7b7c R13: ffff88804ff94770 R14: dffffc0000000000 R15: 1ffff11009ff28ef FS: 0000000000000000(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffff600400 CR3: 000000009574b000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __raw_spin_lock_bh include/linux/spinlock_api_smp.h:136 [inline] _raw_spin_lock_bh+0x40/0x50 kernel/locking/spinlock.c:175 spin_lock_bh include/linux/spinlock.h:343 [inline] batadv_nc_purge_paths+0xe9/0x3e0 net/batman-adv/network-coding.c:441 batadv_nc_worker+0x30e/0x600 net/batman-adv/network-coding.c:719 process_one_work+0x7ef/0x10e0 kernel/workqueue.c:2269 worker_thread+0xc01/0x1630 kernel/workqueue.c:2415 kthread+0x332/0x350 kernel/kthread.c:255 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352