audit: type=1804 audit(2000001599.590:4223): pid=22838 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor1" name="/root/syzkaller-testdir445084264/syzkaller.yfNJlS/872/file0/bus" dev="ramfs" ino=278787 res=1 ip6_tunnel: 6tnl0 xmit: Local address not yet configured! ip6_tunnel: 6tnl0 xmit: Local address not yet configured! ip6_tunnel: 6tnl0 xmit: Local address not yet configured! INFO: task syz-executor0:22858 blocked for more than 140 seconds. Not tainted 4.19.0-rc8+ #293 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor0 D25400 22858 5345 0x00000004 Call Trace: context_switch kernel/sched/core.c:2825 [inline] __schedule+0x86c/0x1ed0 kernel/sched/core.c:3473 schedule+0xfe/0x460 kernel/sched/core.c:3517 __rwsem_down_write_failed_common+0xbb9/0x1670 kernel/locking/rwsem-xadd.c:566 rwsem_down_write_failed+0xe/0x10 kernel/locking/rwsem-xadd.c:595 call_rwsem_down_write_failed+0x17/0x30 arch/x86/lib/rwsem.S:117 __down_write arch/x86/include/asm/rwsem.h:142 [inline] down_write+0xa5/0x130 kernel/locking/rwsem.c:72 inode_lock include/linux/fs.h:738 [inline] chmod_common+0x1b1/0x590 fs/open.c:535 do_fchmodat+0xc3/0x160 fs/open.c:579 __do_sys_chmod fs/open.c:597 [inline] __se_sys_chmod fs/open.c:595 [inline] __x64_sys_chmod+0x5c/0x80 fs/open.c:595 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457569 Code: 83 c4 18 c3 e8 d8 64 00 00 48 8b 04 24 48 8b 4c 24 08 48 89 01 e8 d7 2d fc ff e8 22 7a fc ff b8 02 00 00 00 48 8d 0d 2a 60 09 <01> 87 01 8b 05 22 60 09 01 83 f8 01 0f 85 8a 00 00 00 b8 01 00 00 RSP: 002b:00007f253b2bec78 EFLAGS: 00000246 ORIG_RAX: 000000000000005a RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 0000000000457569 RDX: 0000000000000000 RSI: 00000000ffffff8c RDI: 00000000200006c0 RBP: 000000000072c040 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f253b2bf6d4 R13: 00000000004bd325 R14: 00000000004cc388 R15: 00000000ffffffff Showing all locks held in the system: 1 lock held by khungtaskd/982: #0: 0000000004eba500 (rcu_read_lock){....}, at: debug_show_all_locks+0xd0/0x424 kernel/locking/lockdep.c:4435 2 locks held by rsyslogd/5216: #0: 0000000094645969 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x1bb/0x200 fs/file.c:766 #1: 0000000059dc5ebd (&rq->lock){-.-.}, at: rq_lock kernel/sched/sched.h:1822 [inline] #1: 0000000059dc5ebd (&rq->lock){-.-.}, at: __schedule+0x236/0x1ed0 kernel/sched/core.c:3411 2 locks held by getty/5306: #0: 0000000008c44f73 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353 #1: 000000001a6a6fa9 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by getty/5307: #0: 000000001a761015 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353 #1: 00000000e1902b39 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by getty/5308: #0: 00000000548a2530 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353 #1: 00000000ee9bd19f (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by getty/5309: #0: 0000000093f82099 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353 #1: 000000007f178046 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by getty/5310: #0: 00000000e2680a8e (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353 #1: 000000002a78c322 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by getty/5311: #0: 000000004f837e52 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353 #1: 000000006f780517 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by getty/5312: #0: 000000006f94b099 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353 #1: 00000000df352438 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by syz-executor0/22796: #0: 00000000c8b74aab (sb_writers#25){.+.+}, at: sb_start_write include/linux/fs.h:1566 [inline] #0: 00000000c8b74aab (sb_writers#25){.+.+}, at: mnt_want_write+0x3f/0xc0 fs/namespace.c:360 #1: 000000005a80e3ec (&sb->s_type->i_mutex_key#30){+.+.}, at: inode_lock include/linux/fs.h:738 [inline] #1: 000000005a80e3ec (&sb->s_type->i_mutex_key#30){+.+.}, at: chmod_common+0x1b1/0x590 fs/open.c:535 2 locks held by syz-executor0/22858: #0: 00000000c8b74aab (sb_writers#25){.+.+}, at: sb_start_write include/linux/fs.h:1566 [inline] #0: 00000000c8b74aab (sb_writers#25){.+.+}, at: mnt_want_write+0x3f/0xc0 fs/namespace.c:360 #1: 000000005a80e3ec (&sb->s_type->i_mutex_key#30){+.+.}, at: inode_lock include/linux/fs.h:738 [inline] #1: 000000005a80e3ec (&sb->s_type->i_mutex_key#30){+.+.}, at: chmod_common+0x1b1/0x590 fs/open.c:535 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 982 Comm: khungtaskd Not tainted 4.19.0-rc8+ #293 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+0x1c4/0x2b4 lib/dump_stack.c:113 nmi_cpu_backtrace.cold.3+0x63/0xa2 lib/nmi_backtrace.c:101 nmi_trigger_cpumask_backtrace+0x1b3/0x1ed lib/nmi_backtrace.c:62 arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38 trigger_all_cpu_backtrace include/linux/nmi.h:144 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:204 [inline] watchdog+0xb3e/0x1050 kernel/hung_task.c:265 kthread+0x35a/0x420 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:413 Sending NMI from CPU 1 to CPUs 0: INFO: NMI handler (nmi_cpu_backtrace_handler) took too long to run: 1.143 msecs NMI backtrace for cpu 0 CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.19.0-rc8+ #293 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:_nohz_idle_balance+0xb7/0x7a0 kernel/sched/fair.c:9278 Code: c7 40 14 04 f2 f2 f2 c7 40 18 f2 f2 f2 f2 c7 40 1c 04 f2 f2 f2 c7 40 20 f2 f2 f2 f2 c7 40 24 00 f2 f2 f2 c7 40 28 f2 f2 f2 f2 40 2c 00 f2 f2 f2 65 48 8b 04 25 28 00 00 00 48 89 45 d0 31 c0 RSP: 0018:ffff8801dae077b8 EFLAGS: 00000282 RAX: ffffed003b5c0f02 RBX: ffff8801dae2cb40 RCX: ffffffff815b4398 RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff8801dae2cb40 RBP: ffff8801dae079d8 R08: 1ffff1003b5c0f46 R09: ffffed003b5c5979 R10: ffffed003b5c5979 R11: ffff8801dae2cbcb R12: 1ffff1003b5c0f42 R13: ffff8801dae07ab0 R14: ffff8801dae2cb40 R15: ffff8801dae079b0 FS: 0000000000000000(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffff600400 CR3: 00000001bf49e000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: nohz_idle_balance kernel/sched/fair.c:9402 [inline] run_rebalance_domains+0x2ec/0x500 kernel/sched/fair.c:9585 __do_softirq+0x30b/0xad8 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x17f/0x1c0 kernel/softirq.c:412 scheduler_ipi+0x55a/0xad0 kernel/sched/core.c:1780 smp_reschedule_interrupt+0x109/0x650 arch/x86/kernel/smp.c:278 reschedule_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:888 RIP: 0010:native_safe_halt+0x6/0x10 arch/x86/include/asm/irqflags.h:57 Code: e9 2c ff ff ff 48 89 c7 48 89 45 d8 e8 23 d7 11 fa 48 8b 45 d8 e9 ca fe ff ff 48 89 df e8 12 d7 11 fa eb 82 55 48 89 e5 fb f4 <5d> c3 0f 1f 84 00 00 00 00 00 55 48 89 e5 f4 5d c3 90 90 90 90 90 RSP: 0018:ffffffff89207bb8 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff02 RAX: dffffc0000000000 RBX: 1ffffffff1240f7b RCX: 0000000000000000 RDX: 1ffffffff1263e44 RSI: 0000000000000001 RDI: ffffffff8931f220 RBP: ffffffff89207bb8 R08: ffffffff89276e40 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff89207c78 R13: ffffffff89f3bd20 R14: 0000000000000000 R15: 0000000000000000 arch_safe_halt arch/x86/include/asm/paravirt.h:94 [inline] default_idle+0xbf/0x490 arch/x86/kernel/process.c:498 arch_cpu_idle+0x10/0x20 arch/x86/kernel/process.c:489 default_idle_call+0x6d/0x90 kernel/sched/idle.c:93 cpuidle_idle_call kernel/sched/idle.c:153 [inline] do_idle+0x3db/0x5b0 kernel/sched/idle.c:262 cpu_startup_entry+0x10c/0x120 kernel/sched/idle.c:368 rest_init+0xe2/0xe5 init/main.c:442 start_kernel+0x8f4/0x92f init/main.c:739 x86_64_start_reservations+0x29/0x2b arch/x86/kernel/head64.c:470 x86_64_start_kernel+0x76/0x79 arch/x86/kernel/head64.c:451 secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:243