bisecting fixing commit since 1e986fe9ad15b8406034c504afc5ae76f0a8e852 building syzkaller on 3c7fef3361a6007112b26adc1c5a550189ef43fe testing commit 1e986fe9ad15b8406034c504afc5ae76f0a8e852 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 75d6e53ed819943ba18cccb7d4cb05219b929c7e3a33ce0db18a1bb868a556ab all runs: crashed: INFO: task hung in __sync_dirty_buffer testing current HEAD 4938296e03bd227e5020d63d418956fe52baf97c testing commit 4938296e03bd227e5020d63d418956fe52baf97c compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 4dd89950187bfe8585bbdba94d85a3535d65f20922e02186451b9bd1224febc2 all runs: crashed: INFO: task hung in __sync_dirty_buffer revisions tested: 2, total time: 35m19.6730403s (build: 22m43.160501452s, test: 12m2.972098533s) the crash still happens on HEAD commit msg: Linux 4.19.198 crash: INFO: task hung in __sync_dirty_buffer Bluetooth: hci2: command 0x0406 tx timeout Bluetooth: hci5: command 0x0406 tx timeout Bluetooth: hci4: command 0x0406 tx timeout ieee802154 phy0 wpan0: encryption failed: -22 ieee802154 phy1 wpan1: encryption failed: -22 INFO: task syz-executor.3:9896 blocked for more than 140 seconds. Not tainted 4.19.198-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.3 D26664 9896 8440 0x00000004 Call Trace: context_switch kernel/sched/core.c:2828 [inline] __schedule+0x80c/0x1f70 kernel/sched/core.c:3517 schedule+0x7f/0x1b0 kernel/sched/core.c:3561 io_schedule+0x1c/0x70 kernel/sched/core.c:5181 bit_wait_io+0xf/0x90 kernel/sched/wait_bit.c:207 __wait_on_bit_lock+0xbb/0x160 kernel/sched/wait_bit.c:89 out_of_line_wait_on_bit_lock+0xde/0x110 kernel/sched/wait_bit.c:116 wait_on_bit_lock_io include/linux/wait_bit.h:208 [inline] __lock_buffer+0x3c/0x40 fs/buffer.c:65 lock_buffer include/linux/buffer_head.h:374 [inline] __sync_dirty_buffer+0x180/0x1f0 fs/buffer.c:3178 sync_dirty_buffer+0xe/0x10 fs/buffer.c:3204 __ext4_handle_dirty_metadata+0x17a/0x520 fs/ext4/ext4_jbd2.c:300 ext4_convert_inline_data_nolock+0x4f8/0xc40 fs/ext4/inline.c:1240 ext4_convert_inline_data+0x299/0x3c0 fs/ext4/inline.c:2027 ext4_punch_hole+0x15a/0xfd0 fs/ext4/inode.c:4305 ext4_fallocate+0x290/0x1920 fs/ext4/extents.c:4960 vfs_fallocate+0x2b5/0x7c0 fs/open.c:308 ksys_fallocate+0x3c/0x80 fs/open.c:331 __do_sys_fallocate fs/open.c:339 [inline] __se_sys_fallocate fs/open.c:337 [inline] __x64_sys_fallocate+0x92/0xf0 fs/open.c:337 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4665d9 Code: Bad RIP value. RSP: 002b:00007fbdf10cc188 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665d9 RDX: 0000000000000000 RSI: 0000000100000003 RDI: 0000000000000003 RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000008001a0 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007ffcea534fdf R14: 00007fbdf10cc300 R15: 0000000000022000 INFO: task syz-executor.3:9910 blocked for more than 140 seconds. Not tainted 4.19.198-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.3 D28408 9910 8440 0x00000004 Call Trace: context_switch kernel/sched/core.c:2828 [inline] __schedule+0x80c/0x1f70 kernel/sched/core.c:3517 schedule+0x7f/0x1b0 kernel/sched/core.c:3561 __rwsem_down_write_failed_common kernel/locking/rwsem-xadd.c:589 [inline] rwsem_down_write_failed+0x3bb/0x780 kernel/locking/rwsem-xadd.c:618 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+0x53/0x90 kernel/locking/rwsem.c:72 inode_lock include/linux/fs.h:748 [inline] process_measurement+0x324/0x14a0 security/integrity/ima/ima_main.c:205 ima_file_check+0xc8/0x110 security/integrity/ima/ima_main.c:391 do_last fs/namei.c:3425 [inline] path_openat+0x970/0x2900 fs/namei.c:3537 do_filp_open+0x177/0x250 fs/namei.c:3567 do_sys_open+0x1dc/0x350 fs/open.c:1085 ksys_open include/linux/syscalls.h:1276 [inline] __do_sys_creat fs/open.c:1143 [inline] __se_sys_creat fs/open.c:1141 [inline] __x64_sys_creat+0x5c/0x80 fs/open.c:1141 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4665d9 Code: Bad RIP value. RSP: 002b:00007fbdf10ab188 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 000000000056c038 RCX: 00000000004665d9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000300 RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c038 R13: 00007ffcea534fdf R14: 00007fbdf10ab300 R15: 0000000000022000 INFO: task syz-executor.3:9965 blocked for more than 140 seconds. Not tainted 4.19.198-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.3 D28840 9965 8440 0x00000004 Call Trace: context_switch kernel/sched/core.c:2828 [inline] __schedule+0x80c/0x1f70 kernel/sched/core.c:3517 schedule+0x7f/0x1b0 kernel/sched/core.c:3561 __rwsem_down_write_failed_common kernel/locking/rwsem-xadd.c:589 [inline] rwsem_down_write_failed+0x3bb/0x780 kernel/locking/rwsem-xadd.c:618 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+0x53/0x90 kernel/locking/rwsem.c:72 ext4_setattr+0xe2c/0x1f50 fs/ext4/inode.c:5694 notify_change+0x6c3/0xcc0 fs/attr.c:334 do_truncate+0xef/0x1a0 fs/open.c:63 handle_truncate fs/namei.c:3009 [inline] do_last fs/namei.c:3427 [inline] path_openat+0x1b3a/0x2900 fs/namei.c:3537 do_filp_open+0x177/0x250 fs/namei.c:3567 do_sys_open+0x1dc/0x350 fs/open.c:1085 ksys_open include/linux/syscalls.h:1276 [inline] __do_sys_creat fs/open.c:1143 [inline] __se_sys_creat fs/open.c:1141 [inline] __x64_sys_creat+0x5c/0x80 fs/open.c:1141 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4665d9 Code: Bad RIP value. RSP: 002b:00007fbdf108a188 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 000000000056c0f0 RCX: 00000000004665d9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000100 RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c0f0 R13: 00007ffcea534fdf R14: 00007fbdf108a300 R15: 0000000000022000 INFO: task syz-executor.4:9913 blocked for more than 140 seconds. Not tainted 4.19.198-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.4 D25800 9913 8445 0x00000004 Call Trace: context_switch kernel/sched/core.c:2828 [inline] __schedule+0x80c/0x1f70 kernel/sched/core.c:3517 schedule+0x7f/0x1b0 kernel/sched/core.c:3561 io_schedule+0x1c/0x70 kernel/sched/core.c:5181 bit_wait_io+0xf/0x90 kernel/sched/wait_bit.c:207 __wait_on_bit_lock+0xbb/0x160 kernel/sched/wait_bit.c:89 out_of_line_wait_on_bit_lock+0xde/0x110 kernel/sched/wait_bit.c:116 wait_on_bit_lock_io include/linux/wait_bit.h:208 [inline] __lock_buffer+0x3c/0x40 fs/buffer.c:65 lock_buffer include/linux/buffer_head.h:374 [inline] __sync_dirty_buffer+0x180/0x1f0 fs/buffer.c:3178 sync_dirty_buffer+0xe/0x10 fs/buffer.c:3204 __ext4_handle_dirty_metadata+0x17a/0x520 fs/ext4/ext4_jbd2.c:300 ext4_convert_inline_data_nolock+0x4f8/0xc40 fs/ext4/inline.c:1240 ext4_convert_inline_data+0x299/0x3c0 fs/ext4/inline.c:2027 ext4_punch_hole+0x15a/0xfd0 fs/ext4/inode.c:4305 ext4_fallocate+0x290/0x1920 fs/ext4/extents.c:4960 vfs_fallocate+0x2b5/0x7c0 fs/open.c:308 ksys_fallocate+0x3c/0x80 fs/open.c:331 __do_sys_fallocate fs/open.c:339 [inline] __se_sys_fallocate fs/open.c:337 [inline] __x64_sys_fallocate+0x92/0xf0 fs/open.c:337 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4665d9 Code: Bad RIP value. RSP: 002b:00007fa969a31188 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665d9 RDX: 0000000000000000 RSI: 0000000100000003 RDI: 0000000000000003 RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000008001a0 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007ffc08db604f R14: 00007fa969a31300 R15: 0000000000022000 INFO: task syz-executor.4:9968 blocked for more than 140 seconds. Not tainted 4.19.198-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.4 D28408 9968 8445 0x00000004 Call Trace: context_switch kernel/sched/core.c:2828 [inline] __schedule+0x80c/0x1f70 kernel/sched/core.c:3517 schedule+0x7f/0x1b0 kernel/sched/core.c:3561 __rwsem_down_write_failed_common kernel/locking/rwsem-xadd.c:589 [inline] rwsem_down_write_failed+0x3bb/0x780 kernel/locking/rwsem-xadd.c:618 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+0x53/0x90 kernel/locking/rwsem.c:72 inode_lock include/linux/fs.h:748 [inline] process_measurement+0x324/0x14a0 security/integrity/ima/ima_main.c:205 ima_file_check+0xc8/0x110 security/integrity/ima/ima_main.c:391 do_last fs/namei.c:3425 [inline] path_openat+0x970/0x2900 fs/namei.c:3537 do_filp_open+0x177/0x250 fs/namei.c:3567 do_sys_open+0x1dc/0x350 fs/open.c:1085 ksys_open include/linux/syscalls.h:1276 [inline] __do_sys_creat fs/open.c:1143 [inline] __se_sys_creat fs/open.c:1141 [inline] __x64_sys_creat+0x5c/0x80 fs/open.c:1141 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4665d9 Code: Bad RIP value. RSP: 002b:00007fa969a10188 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 000000000056c038 RCX: 00000000004665d9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000300 RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c038 R13: 00007ffc08db604f R14: 00007fa969a10300 R15: 0000000000022000 INFO: task syz-executor.4:9969 blocked for more than 140 seconds. Not tainted 4.19.198-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.4 D28968 9969 8445 0x00000004 Call Trace: context_switch kernel/sched/core.c:2828 [inline] __schedule+0x80c/0x1f70 kernel/sched/core.c:3517 schedule+0x7f/0x1b0 kernel/sched/core.c:3561 __rwsem_down_write_failed_common kernel/locking/rwsem-xadd.c:589 [inline] rwsem_down_write_failed+0x3bb/0x780 kernel/locking/rwsem-xadd.c:618 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+0x53/0x90 kernel/locking/rwsem.c:72 ext4_setattr+0xe2c/0x1f50 fs/ext4/inode.c:5694 notify_change+0x6c3/0xcc0 fs/attr.c:334 do_truncate+0xef/0x1a0 fs/open.c:63 handle_truncate fs/namei.c:3009 [inline] do_last fs/namei.c:3427 [inline] path_openat+0x1b3a/0x2900 fs/namei.c:3537 do_filp_open+0x177/0x250 fs/namei.c:3567 do_sys_open+0x1dc/0x350 fs/open.c:1085 ksys_open include/linux/syscalls.h:1276 [inline] __do_sys_creat fs/open.c:1143 [inline] __se_sys_creat fs/open.c:1141 [inline] __x64_sys_creat+0x5c/0x80 fs/open.c:1141 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4665d9 Code: Bad RIP value. RSP: 002b:00007fa9699ef188 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 000000000056c0f0 RCX: 00000000004665d9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000100 RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c0f0 R13: 00007ffc08db604f R14: 00007fa9699ef300 R15: 0000000000022000 INFO: task syz-executor.2:9919 blocked for more than 140 seconds. Not tainted 4.19.198-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.2 D25624 9919 8439 0x00000004 Call Trace: context_switch kernel/sched/core.c:2828 [inline] __schedule+0x80c/0x1f70 kernel/sched/core.c:3517 schedule+0x7f/0x1b0 kernel/sched/core.c:3561 io_schedule+0x1c/0x70 kernel/sched/core.c:5181 bit_wait_io+0xf/0x90 kernel/sched/wait_bit.c:207 __wait_on_bit_lock+0xbb/0x160 kernel/sched/wait_bit.c:89 out_of_line_wait_on_bit_lock+0xde/0x110 kernel/sched/wait_bit.c:116 wait_on_bit_lock_io include/linux/wait_bit.h:208 [inline] __lock_buffer+0x3c/0x40 fs/buffer.c:65 lock_buffer include/linux/buffer_head.h:374 [inline] __sync_dirty_buffer+0x180/0x1f0 fs/buffer.c:3178 sync_dirty_buffer+0xe/0x10 fs/buffer.c:3204 __ext4_handle_dirty_metadata+0x17a/0x520 fs/ext4/ext4_jbd2.c:300 ext4_convert_inline_data_nolock+0x4f8/0xc40 fs/ext4/inline.c:1240 ext4_convert_inline_data+0x299/0x3c0 fs/ext4/inline.c:2027 ext4_punch_hole+0x15a/0xfd0 fs/ext4/inode.c:4305 ext4_fallocate+0x290/0x1920 fs/ext4/extents.c:4960 vfs_fallocate+0x2b5/0x7c0 fs/open.c:308 ksys_fallocate+0x3c/0x80 fs/open.c:331 __do_sys_fallocate fs/open.c:339 [inline] __se_sys_fallocate fs/open.c:337 [inline] __x64_sys_fallocate+0x92/0xf0 fs/open.c:337 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4665d9 Code: Bad RIP value. RSP: 002b:00007f3cc3f1d188 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665d9 RDX: 0000000000000000 RSI: 0000000100000003 RDI: 0000000000000003 RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000008001a0 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007fff6e18595f R14: 00007f3cc3f1d300 R15: 0000000000022000 INFO: task syz-executor.2:9972 blocked for more than 140 seconds. Not tainted 4.19.198-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.2 D28024 9972 8439 0x00000004 Call Trace: context_switch kernel/sched/core.c:2828 [inline] __schedule+0x80c/0x1f70 kernel/sched/core.c:3517 schedule+0x7f/0x1b0 kernel/sched/core.c:3561 __rwsem_down_write_failed_common kernel/locking/rwsem-xadd.c:589 [inline] rwsem_down_write_failed+0x3bb/0x780 kernel/locking/rwsem-xadd.c:618 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+0x53/0x90 kernel/locking/rwsem.c:72 inode_lock include/linux/fs.h:748 [inline] process_measurement+0x324/0x14a0 security/integrity/ima/ima_main.c:205 ima_file_check+0xc8/0x110 security/integrity/ima/ima_main.c:391 do_last fs/namei.c:3425 [inline] path_openat+0x970/0x2900 fs/namei.c:3537 do_filp_open+0x177/0x250 fs/namei.c:3567 do_sys_open+0x1dc/0x350 fs/open.c:1085 ksys_open include/linux/syscalls.h:1276 [inline] __do_sys_creat fs/open.c:1143 [inline] __se_sys_creat fs/open.c:1141 [inline] __x64_sys_creat+0x5c/0x80 fs/open.c:1141 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4665d9 Code: Bad RIP value. RSP: 002b:00007f3cc3efc188 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 000000000056c038 RCX: 00000000004665d9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000300 RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c038 R13: 00007fff6e18595f R14: 00007f3cc3efc300 R15: 0000000000022000 INFO: task syz-executor.2:9973 blocked for more than 140 seconds. Not tainted 4.19.198-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.2 D28968 9973 8439 0x00000004 Call Trace: context_switch kernel/sched/core.c:2828 [inline] __schedule+0x80c/0x1f70 kernel/sched/core.c:3517 schedule+0x7f/0x1b0 kernel/sched/core.c:3561 __rwsem_down_write_failed_common kernel/locking/rwsem-xadd.c:589 [inline] rwsem_down_write_failed+0x3bb/0x780 kernel/locking/rwsem-xadd.c:618 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+0x53/0x90 kernel/locking/rwsem.c:72 ext4_setattr+0xe2c/0x1f50 fs/ext4/inode.c:5694 notify_change+0x6c3/0xcc0 fs/attr.c:334 do_truncate+0xef/0x1a0 fs/open.c:63 handle_truncate fs/namei.c:3009 [inline] do_last fs/namei.c:3427 [inline] path_openat+0x1b3a/0x2900 fs/namei.c:3537 do_filp_open+0x177/0x250 fs/namei.c:3567 do_sys_open+0x1dc/0x350 fs/open.c:1085 ksys_open include/linux/syscalls.h:1276 [inline] __do_sys_creat fs/open.c:1143 [inline] __se_sys_creat fs/open.c:1141 [inline] __x64_sys_creat+0x5c/0x80 fs/open.c:1141 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4665d9 Code: Bad RIP value. RSP: 002b:00007f3cc3edb188 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 000000000056c0f0 RCX: 00000000004665d9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000100 RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c0f0 R13: 00007fff6e18595f R14: 00007f3cc3edb300 R15: 0000000000022000 INFO: task syz-executor.5:9935 blocked for more than 140 seconds. Not tainted 4.19.198-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.5 D25800 9935 8447 0x00000004 Call Trace: context_switch kernel/sched/core.c:2828 [inline] __schedule+0x80c/0x1f70 kernel/sched/core.c:3517 schedule+0x7f/0x1b0 kernel/sched/core.c:3561 io_schedule+0x1c/0x70 kernel/sched/core.c:5181 bit_wait_io+0xf/0x90 kernel/sched/wait_bit.c:207 __wait_on_bit_lock+0xbb/0x160 kernel/sched/wait_bit.c:89 out_of_line_wait_on_bit_lock+0xde/0x110 kernel/sched/wait_bit.c:116 wait_on_bit_lock_io include/linux/wait_bit.h:208 [inline] __lock_buffer+0x3c/0x40 fs/buffer.c:65 lock_buffer include/linux/buffer_head.h:374 [inline] __sync_dirty_buffer+0x180/0x1f0 fs/buffer.c:3178 sync_dirty_buffer+0xe/0x10 fs/buffer.c:3204 __ext4_handle_dirty_metadata+0x17a/0x520 fs/ext4/ext4_jbd2.c:300 ext4_convert_inline_data_nolock+0x4f8/0xc40 fs/ext4/inline.c:1240 ext4_convert_inline_data+0x299/0x3c0 fs/ext4/inline.c:2027 ext4_punch_hole+0x15a/0xfd0 fs/ext4/inode.c:4305 ext4_fallocate+0x290/0x1920 fs/ext4/extents.c:4960 vfs_fallocate+0x2b5/0x7c0 fs/open.c:308 ksys_fallocate+0x3c/0x80 fs/open.c:331 __do_sys_fallocate fs/open.c:339 [inline] __se_sys_fallocate fs/open.c:337 [inline] __x64_sys_fallocate+0x92/0xf0 fs/open.c:337 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4665d9 Code: Bad RIP value. RSP: 002b:00007f19e234e188 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665d9 RDX: 0000000000000000 RSI: 0000000100000003 RDI: 0000000000000003 RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000008001a0 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007ffd36aa0d4f R14: 00007f19e234e300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by khungtaskd/1570: #0: 000000008db1bd9d (rcu_read_lock){....}, at: debug_show_all_locks+0x5b/0x27a kernel/locking/lockdep.c:4443 1 lock held by in:imklog/7775: #0: 00000000691e03d0 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0xa7/0xd0 fs/file.c:767 3 locks held by syz-executor.3/9896: #0: 00000000dd275361 (sb_writers#3){.+.+}, at: file_start_write include/linux/fs.h:2779 [inline] #0: 00000000dd275361 (sb_writers#3){.+.+}, at: vfs_fallocate+0x4df/0x7c0 fs/open.c:307 #1: 0000000064ee2622 (&ei->i_mmap_sem){++++}, at: ext4_punch_hole+0x152/0xfd0 fs/ext4/inode.c:4304 #2: 000000004242fce0 (&ei->xattr_sem){++++}, at: ext4_write_lock_xattr fs/ext4/xattr.h:141 [inline] #2: 000000004242fce0 (&ei->xattr_sem){++++}, at: ext4_convert_inline_data+0x1dc/0x3c0 fs/ext4/inline.c:2025 2 locks held by syz-executor.3/9910: #0: 00000000dd275361 (sb_writers#3){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] #0: 00000000dd275361 (sb_writers#3){.+.+}, at: mnt_want_write+0x3c/0xa0 fs/namespace.c:360 #1: 0000000021f05726 (&sb->s_type->i_mutex_key#10){+.+.}, at: inode_lock include/linux/fs.h:748 [inline] #1: 0000000021f05726 (&sb->s_type->i_mutex_key#10){+.+.}, at: process_measurement+0x324/0x14a0 security/integrity/ima/ima_main.c:205 3 locks held by syz-executor.3/9965: #0: 00000000dd275361 (sb_writers#3){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] #0: 00000000dd275361 (sb_writers#3){.+.+}, at: mnt_want_write+0x3c/0xa0 fs/namespace.c:360 #1: 0000000021f05726 (&sb->s_type->i_mutex_key#10){+.+.}, at: inode_lock include/linux/fs.h:748 [inline] #1: 0000000021f05726 (&sb->s_type->i_mutex_key#10){+.+.}, at: do_truncate+0xe1/0x1a0 fs/open.c:61 #2: 0000000064ee2622 (&ei->i_mmap_sem){++++}, at: ext4_setattr+0xe2c/0x1f50 fs/ext4/inode.c:5694 3 locks held by syz-executor.4/9913: #0: 0000000018c4b9a2 (sb_writers#3){.+.+}, at: file_start_write include/linux/fs.h:2779 [inline] #0: 0000000018c4b9a2 (sb_writers#3){.+.+}, at: vfs_fallocate+0x4df/0x7c0 fs/open.c:307 #1: 00000000cc203b9e (&ei->i_mmap_sem){++++}, at: ext4_punch_hole+0x152/0xfd0 fs/ext4/inode.c:4304 #2: 000000008934fd0a (&ei->xattr_sem){++++}, at: ext4_write_lock_xattr fs/ext4/xattr.h:141 [inline] #2: 000000008934fd0a (&ei->xattr_sem){++++}, at: ext4_convert_inline_data+0x1dc/0x3c0 fs/ext4/inline.c:2025 2 locks held by syz-executor.4/9968: #0: 0000000018c4b9a2 (sb_writers#3){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] #0: 0000000018c4b9a2 (sb_writers#3){.+.+}, at: mnt_want_write+0x3c/0xa0 fs/namespace.c:360 #1: 000000009a28523d (&sb->s_type->i_mutex_key#10){+.+.}, at: inode_lock include/linux/fs.h:748 [inline] #1: 000000009a28523d (&sb->s_type->i_mutex_key#10){+.+.}, at: process_measurement+0x324/0x14a0 security/integrity/ima/ima_main.c:205 3 locks held by syz-executor.4/9969: #0: 0000000018c4b9a2 (sb_writers#3){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] #0: 0000000018c4b9a2 (sb_writers#3){.+.+}, at: mnt_want_write+0x3c/0xa0 fs/namespace.c:360 #1: 000000009a28523d (&sb->s_type->i_mutex_key#10){+.+.}, at: inode_lock include/linux/fs.h:748 [inline] #1: 000000009a28523d (&sb->s_type->i_mutex_key#10){+.+.}, at: do_truncate+0xe1/0x1a0 fs/open.c:61 #2: 00000000cc203b9e (&ei->i_mmap_sem){++++}, at: ext4_setattr+0xe2c/0x1f50 fs/ext4/inode.c:5694 3 locks held by syz-executor.2/9919: #0: 00000000d616e0f2 (sb_writers#3){.+.+}, at: file_start_write include/linux/fs.h:2779 [inline] #0: 00000000d616e0f2 (sb_writers#3){.+.+}, at: vfs_fallocate+0x4df/0x7c0 fs/open.c:307 #1: 0000000080a88e29 (&ei->i_mmap_sem){++++}, at: ext4_punch_hole+0x152/0xfd0 fs/ext4/inode.c:4304 #2: 00000000190e834f (&ei->xattr_sem){++++}, at: ext4_write_lock_xattr fs/ext4/xattr.h:141 [inline] #2: 00000000190e834f (&ei->xattr_sem){++++}, at: ext4_convert_inline_data+0x1dc/0x3c0 fs/ext4/inline.c:2025 2 locks held by syz-executor.2/9972: #0: 00000000d616e0f2 (sb_writers#3){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] #0: 00000000d616e0f2 (sb_writers#3){.+.+}, at: mnt_want_write+0x3c/0xa0 fs/namespace.c:360 #1: 000000005e483137 (&sb->s_type->i_mutex_key#10){+.+.}, at: inode_lock include/linux/fs.h:748 [inline] #1: 000000005e483137 (&sb->s_type->i_mutex_key#10){+.+.}, at: process_measurement+0x324/0x14a0 security/integrity/ima/ima_main.c:205 3 locks held by syz-executor.2/9973: #0: 00000000d616e0f2 (sb_writers#3){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] #0: 00000000d616e0f2 (sb_writers#3){.+.+}, at: mnt_want_write+0x3c/0xa0 fs/namespace.c:360 #1: 000000005e483137 (&sb->s_type->i_mutex_key#10){+.+.}, at: inode_lock include/linux/fs.h:748 [inline] #1: 000000005e483137 (&sb->s_type->i_mutex_key#10){+.+.}, at: do_truncate+0xe1/0x1a0 fs/open.c:61 #2: 0000000080a88e29 (&ei->i_mmap_sem){++++}, at: ext4_setattr+0xe2c/0x1f50 fs/ext4/inode.c:5694 3 locks held by syz-executor.5/9935: #0: 000000009b955bc8 (sb_writers#3){.+.+}, at: file_start_write include/linux/fs.h:2779 [inline] #0: 000000009b955bc8 (sb_writers#3){.+.+}, at: vfs_fallocate+0x4df/0x7c0 fs/open.c:307 #1: 00000000838e3ee2 (&ei->i_mmap_sem){++++}, at: ext4_punch_hole+0x152/0xfd0 fs/ext4/inode.c:4304 #2: 00000000c81e7cb8 (&ei->xattr_sem){++++}, at: ext4_write_lock_xattr fs/ext4/xattr.h:141 [inline] #2: 00000000c81e7cb8 (&ei->xattr_sem){++++}, at: ext4_convert_inline_data+0x1dc/0x3c0 fs/ext4/inline.c:2025 2 locks held by syz-executor.5/9978: #0: 000000009b955bc8 (sb_writers#3){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] #0: 000000009b955bc8 (sb_writers#3){.+.+}, at: mnt_want_write+0x3c/0xa0 fs/namespace.c:360 #1: 00000000ee13a296 (&sb->s_type->i_mutex_key#10){+.+.}, at: inode_lock include/linux/fs.h:748 [inline] #1: 00000000ee13a296 (&sb->s_type->i_mutex_key#10){+.+.}, at: process_measurement+0x324/0x14a0 security/integrity/ima/ima_main.c:205 3 locks held by syz-executor.5/9979: #0: 000000009b955bc8 (sb_writers#3){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] #0: 000000009b955bc8 (sb_writers#3){.+.+}, at: mnt_want_write+0x3c/0xa0 fs/namespace.c:360 #1: 00000000ee13a296 (&sb->s_type->i_mutex_key#10){+.+.}, at: inode_lock include/linux/fs.h:748 [inline] #1: 00000000ee13a296 (&sb->s_type->i_mutex_key#10){+.+.}, at: do_truncate+0xe1/0x1a0 fs/open.c:61 #2: 00000000838e3ee2 (&ei->i_mmap_sem){++++}, at: ext4_setattr+0xe2c/0x1f50 fs/ext4/inode.c:5694 3 locks held by syz-executor.0/9952: #0: 00000000519d5068 (sb_writers#3){.+.+}, at: file_start_write include/linux/fs.h:2779 [inline] #0: 00000000519d5068 (sb_writers#3){.+.+}, at: vfs_fallocate+0x4df/0x7c0 fs/open.c:307 #1: 00000000370f2c8c (&ei->i_mmap_sem){++++}, at: ext4_punch_hole+0x152/0xfd0 fs/ext4/inode.c:4304 #2: 000000003b5f3a9e (&ei->xattr_sem){++++}, at: ext4_write_lock_xattr fs/ext4/xattr.h:141 [inline] #2: 000000003b5f3a9e (&ei->xattr_sem){++++}, at: ext4_convert_inline_data+0x1dc/0x3c0 fs/ext4/inline.c:2025 2 locks held by syz-executor.0/9983: #0: 00000000519d5068 (sb_writers#3){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] #0: 00000000519d5068 (sb_writers#3){.+.+}, at: mnt_want_write+0x3c/0xa0 fs/namespace.c:360 #1: 00000000596fc6b2 (&sb->s_type->i_mutex_key#10){+.+.}, at: inode_lock include/linux/fs.h:748 [inline] #1: 00000000596fc6b2 (&sb->s_type->i_mutex_key#10){+.+.}, at: process_measurement+0x324/0x14a0 security/integrity/ima/ima_main.c:205 3 locks held by syz-executor.0/9985: #0: 00000000519d5068 (sb_writers#3){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] #0: 00000000519d5068 (sb_writers#3){.+.+}, at: mnt_want_write+0x3c/0xa0 fs/namespace.c:360 #1: 00000000596fc6b2 (&sb->s_type->i_mutex_key#10){+.+.}, at: inode_lock include/linux/fs.h:748 [inline] #1: 00000000596fc6b2 (&sb->s_type->i_mutex_key#10){+.+.}, at: do_truncate+0xe1/0x1a0 fs/open.c:61 #2: 00000000370f2c8c (&ei->i_mmap_sem){++++}, at: ext4_setattr+0xe2c/0x1f50 fs/ext4/inode.c:5694 3 locks held by syz-executor.1/9958: #0: 00000000b9938709 (sb_writers#3){.+.+}, at: file_start_write include/linux/fs.h:2779 [inline] #0: 00000000b9938709 (sb_writers#3){.+.+}, at: vfs_fallocate+0x4df/0x7c0 fs/open.c:307 #1: 00000000dad10f3a (&ei->i_mmap_sem){++++}, at: ext4_punch_hole+0x152/0xfd0 fs/ext4/inode.c:4304 #2: 0000000048e7c02b (&ei->xattr_sem){++++}, at: ext4_write_lock_xattr fs/ext4/xattr.h:141 [inline] #2: 0000000048e7c02b (&ei->xattr_sem){++++}, at: ext4_convert_inline_data+0x1dc/0x3c0 fs/ext4/inline.c:2025 2 locks held by syz-executor.1/9987: #0: 00000000b9938709 (sb_writers#3){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] #0: 00000000b9938709 (sb_writers#3){.+.+}, at: mnt_want_write+0x3c/0xa0 fs/namespace.c:360 #1: 000000007f377103 (&sb->s_type->i_mutex_key#10){+.+.}, at: inode_lock include/linux/fs.h:748 [inline] #1: 000000007f377103 (&sb->s_type->i_mutex_key#10){+.+.}, at: process_measurement+0x324/0x14a0 security/integrity/ima/ima_main.c:205 3 locks held by syz-executor.1/9989: #0: 00000000b9938709 (sb_writers#3){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] #0: 00000000b9938709 (sb_writers#3){.+.+}, at: mnt_want_write+0x3c/0xa0 fs/namespace.c:360 #1: 000000007f377103 (&sb->s_type->i_mutex_key#10){+.+.}, at: inode_lock include/linux/fs.h:748 [inline] #1: 000000007f377103 (&sb->s_type->i_mutex_key#10){+.+.}, at: do_truncate+0xe1/0x1a0 fs/open.c:61 #2: 00000000dad10f3a (&ei->i_mmap_sem){++++}, at: ext4_setattr+0xe2c/0x1f50 fs/ext4/inode.c:5694 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 1570 Comm: khungtaskd Not tainted 4.19.198-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+0x17c/0x226 lib/dump_stack.c:118 nmi_cpu_backtrace.cold.0+0x3c/0x78 lib/nmi_backtrace.c:101 nmi_trigger_cpumask_backtrace+0xf6/0x120 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:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline] watchdog+0x5c3/0xb40 kernel/hung_task.c:287 kthread+0x347/0x410 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 9994 Comm: kworker/u4:8 Not tainted 4.19.198-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: phy12 ieee80211_iface_work RIP: 0010:__trace_hardirqs_on_caller kernel/locking/lockdep.c:2825 [inline] RIP: 0010:lockdep_hardirqs_on+0x251/0x5b0 kernel/locking/lockdep.c:2884 Code: 48 89 fa 48 c1 ea 03 0f b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 fa 01 00 00 c7 83 84 08 00 00 01 00 00 00 <48> b8 00 00 00 00 00 fc ff df 65 48 8b 1c 25 80 df 01 00 48 8d bb RSP: 0018:ffff888095a2fb88 EFLAGS: 00000046 RAX: 0000000000000007 RBX: ffff8880b28d8440 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8880b28d8cc4 RBP: ffff888095a2fb98 R08: 0000000000000058 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff818b7f56 R13: ffff88813bff6940 R14: ffffffff86126574 R15: ffffffff872f0e08 FS: 0000000000000000(0000) GS:ffff8880ba300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6d8c867018 CR3: 00000000a1c97000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: trace_hardirqs_on+0x28/0x190 kernel/trace/trace_preemptirq.c:30 kfree+0x116/0x220 mm/slab.c:3823 skb_free_head+0x74/0x90 net/core/skbuff.c:563 skb_release_data+0x513/0x760 net/core/skbuff.c:583 skb_release_all+0x3d/0x50 net/core/skbuff.c:640 __kfree_skb net/core/skbuff.c:654 [inline] kfree_skb+0x99/0x280 net/core/skbuff.c:672 ieee80211_iface_work+0x1f8/0x6e0 net/mac80211/iface.c:1353 process_one_work+0x7b9/0x15a0 kernel/workqueue.c:2153 worker_thread+0x85/0xb60 kernel/workqueue.c:2296 kthread+0x347/0x410 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415