audit: type=1804 audit(1672109003.977:9184): pid=32129 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.0" name="/root/syzkaller-testdir176678390/syzkaller.tn3xGk/109/bus" dev="sda1" ino=14530 res=1 ERROR: (device loop4): xtSearch: XT_GETPAGE: xtree page corrupt INFO: task syz-executor.0:25512 blocked for more than 140 seconds. Not tainted 4.19.211-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.0 D28648 25512 8143 0x00000004 Call Trace: context_switch kernel/sched/core.c:2828 [inline] __schedule+0x887/0x2040 kernel/sched/core.c:3517 schedule+0x8d/0x1b0 kernel/sched/core.c:3561 __rwsem_down_write_failed_common kernel/locking/rwsem-xadd.c:589 [inline] rwsem_down_write_failed+0x3aa/0x760 kernel/locking/rwsem-xadd.c:618 audit: type=1804 audit(1672109004.787:9185): pid=32177 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.0" name="/root/syzkaller-testdir176678390/syzkaller.tn3xGk/110/bus" dev="sda1" ino=14546 res=1 audit: type=1804 audit(1672109004.827:9186): pid=32183 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.0" name="/root/syzkaller-testdir176678390/syzkaller.tn3xGk/110/bus" dev="sda1" ino=14546 res=1 call_rwsem_down_write_failed+0x13/0x20 arch/x86/lib/rwsem.S:117 __down_write arch/x86/include/asm/rwsem.h:142 [inline] down_write+0x4f/0x90 kernel/locking/rwsem.c:72 inode_lock include/linux/fs.h:748 [inline] fuse_flush+0x1fd/0x5b0 fs/fuse/file.c:421 audit: type=1804 audit(1672109004.837:9187): pid=32177 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.0" name="/root/syzkaller-testdir176678390/syzkaller.tn3xGk/110/bus" dev="sda1" ino=14546 res=1 filp_close+0xb4/0x160 fs/open.c:1162 __close_fd+0x133/0x200 fs/file.c:636 __do_sys_close fs/open.c:1181 [inline] __se_sys_close fs/open.c:1179 [inline] __x64_sys_close+0x69/0x100 fs/open.c:1179 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f9dfaf0bf5b Code: Bad RIP value. RSP: 002b:00007ffff2930460 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f9dfaf0bf5b RDX: 0000001b30720000 RSI: 0000001b30728724 RDI: 0000000000000004 RBP: 00007f9dfb07b980 R08: 0000000000000000 R09: 00000000c9da3b11 R10: 000366360ae6ad16 R11: 0000000000000293 R12: 000000000009f351 R13: 00007ffff2930560 R14: 00007f9dfb07a120 R15: 0000000000000032 INFO: task syz-executor.0:25527 blocked for more than 140 seconds. audit: type=1804 audit(1672109005.777:9188): pid=32196 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir1382723317/syzkaller.LJjavH/365/bus" dev="sda1" ino=13884 res=1 Not tainted 4.19.211-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.0 D27616 25527 8143 0x00000004 Call Trace: context_switch kernel/sched/core.c:2828 [inline] __schedule+0x887/0x2040 kernel/sched/core.c:3517 schedule+0x8d/0x1b0 kernel/sched/core.c:3561 fuse_wait_on_page_writeback fs/fuse/file.c:383 [inline] fuse_wait_on_page_writeback.isra.0+0x11b/0x170 fs/fuse/file.c:379 fuse_launder_page fs/fuse/file.c:2033 [inline] fuse_launder_page+0xb6/0xe0 fs/fuse/file.c:2026 do_launder_page mm/truncate.c:655 [inline] invalidate_inode_pages2_range+0x795/0x1110 mm/truncate.c:725 fuse_finish_open+0x2e2/0x590 fs/fuse/file.c:182 fuse_open_common+0x254/0x2c0 fs/fuse/file.c:222 do_dentry_open+0x4aa/0x1160 fs/open.c:796 do_last fs/namei.c:3421 [inline] path_openat+0x793/0x2df0 fs/namei.c:3537 do_filp_open+0x18c/0x3f0 fs/namei.c:3567 do_sys_open+0x3b3/0x520 fs/open.c:1085 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f9dfaf5a0a9 ERROR: (device loop4): xtSearch: XT_GETPAGE: xtree page corrupt Code: Bad RIP value. RSP: 002b:00007f9df94cc168 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f9dfb079f80 RCX: 00007f9dfaf5a0a9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000200001c0 RBP: 00007f9dfafb5ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffff29303ff R14: 00007f9df94cc300 R15: 0000000000022000 Showing all locks held in the system: 4 locks held by kworker/u4:1/23: 1 lock held by khungtaskd/1570: #0: 00000000e9def3f8 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441 1 lock held by in:imklog/7812: #0: 00000000f17ef24c (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767 3 locks held by kworker/u4:2/8523: 1 lock held by syz-executor.0/25512: #0: 0000000008eef0b8 (&sb->s_type->i_mutex_key#33){+.+.}, at: inode_lock include/linux/fs.h:748 [inline] #0: 0000000008eef0b8 (&sb->s_type->i_mutex_key#33){+.+.}, at: fuse_flush+0x1fd/0x5b0 fs/fuse/file.c:421 2 locks held by syz-executor.0/25527: #0: 0000000050896a6d (sb_writers#22){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] #0: 0000000050896a6d (sb_writers#22){.+.+}, at: mnt_want_write+0x3a/0xb0 fs/namespace.c:360 #1: 0000000008eef0b8 (&sb->s_type->i_mutex_key#33){+.+.}, at: inode_lock include/linux/fs.h:748 [inline] #1: 0000000008eef0b8 (&sb->s_type->i_mutex_key#33){+.+.}, at: fuse_open_common+0x1bc/0x2c0 fs/fuse/file.c:215 2 locks held by kworker/0:0/30625: #0: 0000000020c358fc ((wq_completion)"rcu_gp"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124 #1: 000000006ff5e323 ((work_completion)(&rew.rew_work)){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128 2 locks held by syz-executor.3/32274: #0: 000000008a392d8b (&pipe->mutex/1){+.+.}, at: pipe_lock_nested fs/pipe.c:77 [inline] #0: 000000008a392d8b (&pipe->mutex/1){+.+.}, at: pipe_lock+0x63/0x80 fs/pipe.c:85 #1: 00000000514396c0 (&table[i].mutex){+.+.}, at: nfnl_lock net/netfilter/nfnetlink.c:62 [inline] #1: 00000000514396c0 (&table[i].mutex){+.+.}, at: nfnetlink_rcv_msg+0x98d/0xf60 net/netfilter/nfnetlink.c:228 1 lock held by syz-executor.0/32279: #0: 0000000050ce32d8 (&runtime->oss.params_lock){+.+.}, at: snd_pcm_oss_write1 sound/core/oss/pcm_oss.c:1400 [inline] #0: 0000000050ce32d8 (&runtime->oss.params_lock){+.+.}, at: snd_pcm_oss_write+0x380/0x910 sound/core/oss/pcm_oss.c:2786 1 lock held by syz-executor.2/32290: #0: 000000007d611e47 (&pipe->mutex/1){+.+.}, at: pipe_lock_nested fs/pipe.c:77 [inline] #0: 000000007d611e47 (&pipe->mutex/1){+.+.}, at: pipe_lock fs/pipe.c:85 [inline] #0: 000000007d611e47 (&pipe->mutex/1){+.+.}, at: pipe_wait+0x1bd/0x1e0 fs/pipe.c:133 3 locks held by syz-executor.2/32293: 1 lock held by syz-executor.2/32306: #0: 000000007d611e47 (&pipe->mutex/1){+.+.}, at: __pipe_lock fs/pipe.c:98 [inline] #0: 000000007d611e47 (&pipe->mutex/1){+.+.}, at: pipe_write+0xc1/0xf80 fs/pipe.c:395 2 locks held by syz-executor.1/32301: #0: 00000000e31766fb (rtnl_mutex){+.+.}, at: rtnl_lock net/core/rtnetlink.c:77 [inline] #0: 00000000e31766fb (rtnl_mutex){+.+.}, at: rtnetlink_rcv_msg+0x3fe/0xb80 net/core/rtnetlink.c:4779 #1: 00000000a4b00e4d (rcu_preempt_state.exp_mutex){+.+.}, at: exp_funnel_lock kernel/rcu/tree_exp.h:329 [inline] #1: 00000000a4b00e4d (rcu_preempt_state.exp_mutex){+.+.}, at: _synchronize_rcu_expedited+0x256/0x6f0 kernel/rcu/tree_exp.h:667 2 locks held by syz-executor.4/32318: audit: type=1804 audit(1672109008.967:9189): pid=32335 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir1382723317/syzkaller.LJjavH/367/bus" dev="sda1" ino=14738 res=1 #0: 00000000c7b81805 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:272 #1: 00000000883ffdb0 (&tty->atomic_write_lock){+.+.}, at: tty_write_lock drivers/tty/tty_io.c:886 [inline] #1: 00000000883ffdb0 (&tty->atomic_write_lock){+.+.}, at: do_tty_write drivers/tty/tty_io.c:909 [inline] #1: 00000000883ffdb0 (&tty->atomic_write_lock){+.+.}, at: tty_write+0x24e/0x810 drivers/tty/tty_io.c:1044 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 1570 Comm: khungtaskd Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 nmi_cpu_backtrace.cold+0x63/0xa2 lib/nmi_backtrace.c:101 nmi_trigger_cpumask_backtrace+0x1a6/0x1f0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline] watchdog+0x991/0xe60 kernel/hung_task.c:287 kthread+0x33f/0x460 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 4695 Comm: systemd-journal Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:check_kcov_mode kernel/kcov.c:67 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x14/0x50 kernel/kcov.c:101 Code: 35 00 e9 23 fe ff ff 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 48 8b 34 24 65 48 8b 04 25 c0 df 01 00 65 8b 15 cc 59 9f 7e <81> e2 00 01 1f 00 75 2b 8b 90 60 13 00 00 83 fa 02 75 20 48 8b 88 RSP: 0018:ffff8880a0fefee8 EFLAGS: 00000293 RAX: ffff8880a0fe2640 RBX: 0000000000000102 RCX: ffffffff813f1ae6 RDX: 0000000080000000 RSI: ffffffff810058c2 RDI: 0000000000000007 RBP: dffffc0000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000007 R11: 0000000000000000 R12: ffff8880a0feff58 R13: ffffed10141fc4c8 R14: ffff8880a0fe2640 R15: ffff8880a0fe2640 FS: 00007f8ba5c3a8c0(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8ba2f61018 CR3: 00000000a1ab9000 CR4: 00000000003426f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: tracehook_notify_resume include/linux/tracehook.h:195 [inline] exit_to_usermode_loop+0x122/0x2a0 arch/x86/entry/common.c:167 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f8ba51c985d Code: bb 20 00 00 75 10 b8 02 00 00 00 0f 05 48 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 1e f6 ff ff 48 89 04 24 b8 02 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 67 f6 ff ff 48 89 d0 48 83 c4 08 48 3d 01 RSP: 002b:00007ffe1e81add0 EFLAGS: 00000293 ORIG_RAX: 0000000000000002 RAX: fffffffffffffffe RBX: 00007ffe1e81b0e0 RCX: 00007f8ba51c985d RDX: 00000000000001a0 RSI: 0000000000080042 RDI: 000056078f11b000 RBP: 000000000000000d R08: 000000000000c0c1 R09: 00000000ffffffff R10: 0000000000000069 R11: 0000000000000293 R12: 00000000ffffffff R13: 000056078f115040 R14: 00007ffe1e81b0a0 R15: 000056078f122680