audit: type=1400 audit(1537923119.213:36): avc: denied { map } for pid=5536 comm="syz-executor814" path="/root/syz-executor814259453" dev="sda1" ino=16481 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 INFO: task jbd2/sda1-8:3081 blocked for more than 140 seconds. Not tainted 4.19.0-rc5+ #33 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. jbd2/sda1-8 D18264 3081 2 0x80000000 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 jbd2_journal_commit_transaction+0xd42/0x89f8 fs/jbd2/commit.c:435 kjournald2+0x26d/0xb30 fs/jbd2/journal.c:229 kthread+0x35a/0x420 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:413 INFO: task restorecond:5463 blocked for more than 140 seconds. Not tainted 4.19.0-rc5+ #33 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. restorecond D23512 5463 1 0x00000000 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] vfs_setxattr+0x96/0x100 fs/xattr.c:218 setxattr+0x2ea/0x450 fs/xattr.c:450 path_setxattr+0x1e3/0x230 fs/xattr.c:469 __do_sys_lsetxattr fs/xattr.c:491 [inline] __se_sys_lsetxattr fs/xattr.c:487 [inline] __x64_sys_lsetxattr+0xc1/0x150 fs/xattr.c:487 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f90394afffa Code: Bad RIP value. RSP: 002b:00007ffea9e66758 EFLAGS: 00000202 ORIG_RAX: 00000000000000bd RAX: ffffffffffffffda RBX: 00000000ffffffff RCX: 00007f90394afffa RDX: 000055665ed3faf0 RSI: 00007f9039edbf69 RDI: 000055665e9a72e0 RBP: 000055665e9a72e0 R08: 0000000000000000 R09: 73753a725f746365 R10: 0000000000000025 R11: 0000000000000202 R12: 000055665ed97700 R13: 000055665e9a83f0 R14: 00007ffea9e667a0 R15: 0000000000000000 Showing all locks held in the system: 4 locks held by kworker/u4:4/363: #0: 0000000073bdca6d ((wq_completion)"writeback"){+.+.}, at: __write_once_size include/linux/compiler.h:215 [inline] #0: 0000000073bdca6d ((wq_completion)"writeback"){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: 0000000073bdca6d ((wq_completion)"writeback"){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:40 [inline] #0: 0000000073bdca6d ((wq_completion)"writeback"){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:59 [inline] #0: 0000000073bdca6d ((wq_completion)"writeback"){+.+.}, at: set_work_data kernel/workqueue.c:617 [inline] #0: 0000000073bdca6d ((wq_completion)"writeback"){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:644 [inline] #0: 0000000073bdca6d ((wq_completion)"writeback"){+.+.}, at: process_one_work+0xb43/0x1b90 kernel/workqueue.c:2124 #1: 00000000df09446e ((work_completion)(&(&wb->dwork)->work)){+.+.}, at: process_one_work+0xb9a/0x1b90 kernel/workqueue.c:2128 #2: 000000004637b529 (&type->s_umount_key#45){++++}, at: trylock_super+0x22/0x110 fs/super.c:412 #3: 00000000a415550e (&sbi->s_journal_flag_rwsem){.+.+}, at: do_writepages+0x9a/0x1a0 mm/page-writeback.c:2340 1 lock held by khungtaskd/988: #0: 00000000ae271898 (rcu_read_lock){....}, at: debug_show_all_locks+0xd0/0x424 kernel/locking/lockdep.c:4435 3 locks held by rs:main Q:Reg/5381: #0: 00000000efe19302 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x1bb/0x200 fs/file.c:766 #1: 00000000a3ee7daf (sb_writers#4){.+.+}, at: file_start_write include/linux/fs.h:2759 [inline] #1: 00000000a3ee7daf (sb_writers#4){.+.+}, at: vfs_write+0x42a/0x560 fs/read_write.c:548 #2: 00000000305011bf (&sb->s_type->i_mutex_key#9){+.+.}, at: inode_trylock include/linux/fs.h:758 [inline] #2: 00000000305011bf (&sb->s_type->i_mutex_key#9){+.+.}, at: ext4_file_write_iter+0x2a1/0x1420 fs/ext4/file.c:232 1 lock held by rsyslogd/5383: #0: 00000000987001e3 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x1bb/0x200 fs/file.c:766 2 locks held by restorecond/5463: #0: 00000000a3ee7daf (sb_writers#4){.+.+}, at: sb_start_write include/linux/fs.h:1566 [inline] #0: 00000000a3ee7daf (sb_writers#4){.+.+}, at: mnt_want_write+0x3f/0xc0 fs/namespace.c:360 #1: 0000000029e06ab6 (&sb->s_type->i_mutex_key#9){+.+.}, at: inode_lock include/linux/fs.h:738 [inline] #1: 0000000029e06ab6 (&sb->s_type->i_mutex_key#9){+.+.}, at: vfs_setxattr+0x96/0x100 fs/xattr.c:218 2 locks held by getty/5505: #0: 000000007fb8c255 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353 #1: 000000006425178e (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by getty/5506: #0: 000000009b7ac44b (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353 #1: 00000000f0a64dd1 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by getty/5507: #0: 00000000c556fc2d (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353 #1: 00000000e6f5453a (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by getty/5508: #0: 000000001d81ca20 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353 #1: 000000000042f33f (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by getty/5509: #0: 00000000393324f5 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353 #1: 0000000092cc7995 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by getty/5510: #0: 00000000630ab07f (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353 #1: 00000000064b0278 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by getty/5511: #0: 00000000a2bae924 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353 #1: 000000003594154b (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 6 locks held by syz-executor814/5536: ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 988 Comm: khungtaskd Not tainted 4.19.0-rc5+ #33 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 0 to CPUs 1: INFO: NMI handler (nmi_cpu_backtrace_handler) took too long to run: 1.239 msecs NMI backtrace for cpu 1 CPU: 1 PID: 5536 Comm: syz-executor814 Not tainted 4.19.0-rc5+ #33 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__sanitizer_cov_trace_pc+0x4c/0x50 kernel/kcov.c:111 Code: d0 12 00 00 83 fa 02 75 20 48 8b 88 d8 12 00 00 8b 80 d4 12 00 00 48 8b 11 48 83 c2 01 48 39 d0 76 07 48 89 34 d1 48 89 11 5d 0f 1f 00 55 40 0f b6 d6 40 0f b6 f7 31 ff 48 89 e5 48 8b 4d 08 RSP: 0018:ffff8801d20ef148 EFLAGS: 00000293 RAX: ffff8801c4ce05c0 RBX: ffff8801ba71a600 RCX: ffffffff8211649c RDX: 0000000000000000 RSI: ffffffff821165a8 RDI: 0000000000000003 RBP: ffff8801d20ef1b0 R08: ffff8801c4ce05c0 R09: 1ffffffff12f45ed R10: ffffed003b5a4732 R11: ffff8801dad23993 R12: ffff8801b239e24c R13: ffff8801b239e258 R14: ffff8801b239e24c R15: ffff8801ba71a600 FS: 00000000024de880(0000) GS:ffff8801dad00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffff600400 CR3: 00000001c3204000 CR4: 00000000001406e0 Call Trace: get_ext_path fs/ext4/move_extent.c:31 [inline] mext_check_coverage.constprop.13+0x2b0/0x510 fs/ext4/move_extent.c:98 move_extent_per_page fs/ext4/move_extent.c:323 [inline] ext4_move_extents+0x2784/0x3c20 fs/ext4/move_extent.c:669 ext4_ioctl+0x3154/0x4210 fs/ext4/ioctl.c:799 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0x1de/0x1720 fs/ioctl.c:685 ksys_ioctl+0xa9/0xd0 fs/ioctl.c:702 __do_sys_ioctl fs/ioctl.c:709 [inline] __se_sys_ioctl fs/ioctl.c:707 [inline] __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:707 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x440169 Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 fb 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffd53fc8248 EFLAGS: 00000217 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440169 RDX: 0000000020000040 RSI: 00000000c028660f RDI: 0000000000000003 RBP: 00000000006ca018 R08: 00000000004002c8 R09: 00000000004002c8 R10: 00000000004002c8 R11: 0000000000000217 R12: 00000000004019f0 R13: 0000000000401a80 R14: 0000000000000000 R15: 0000000000000000