syzbot


INFO: task hung in do_truncate2

Status: auto-closed as invalid on 2020/01/06 18:14
Reported-by: syzbot+253c905d1eb4611bb739@syzkaller.appspotmail.com
First crash: 1924d, last: 1900d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-414 INFO: task hung in do_truncate2 C 9 2069d 2050d 0/1 public: reported C repro on 2019/04/12 00:00
android-49 INFO: task hung in do_truncate2 16 2089d 2048d 0/3 auto-closed as invalid on 2019/08/31 11:12

Sample crash report:
INFO: task syz-executor.4:12587 blocked for more than 140 seconds.
      Not tainted 4.4.174+ #4
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.4  D ffff8801d382f868 28992 12587   2112 0x00000004
 ffff8801d382f868 ffff8801bcf9af80 9d8962a25eb2756a ffff8801bcf9af80
 0000000000000001 ffff8801bcf9b800 ffff8801db61f180 ffff8801db61f1a8
 ffff8801db61e898 ffff8801d3c697c0 ffff8801bcf9af80 ffffed003a705001
Call Trace:
 [<ffffffff82709b79>] schedule+0x99/0x1d0 kernel/sched/core.c:3355
 [<ffffffff8270a333>] schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3388
 [<ffffffff8270c492>] __mutex_lock_common kernel/locking/mutex.c:582 [inline]
 [<ffffffff8270c492>] mutex_lock_nested+0x3c2/0xb80 kernel/locking/mutex.c:621
 [<ffffffff81492aa2>] do_truncate2+0x132/0x210 fs/open.c:61
 [<ffffffff814c7766>] handle_truncate fs/namei.c:2816 [inline]
 [<ffffffff814c7766>] do_last fs/namei.c:3286 [inline]
 [<ffffffff814c7766>] path_openat+0x2cf6/0x4470 fs/namei.c:3406
 [<ffffffff814ccab1>] do_filp_open+0x1a1/0x270 fs/namei.c:3440
 [<ffffffff81495668>] do_sys_open+0x2f8/0x600 fs/open.c:1038
 [<ffffffff81495a17>] SYSC_open fs/open.c:1056 [inline]
 [<ffffffff81495a17>] SyS_open fs/open.c:1051 [inline]
 [<ffffffff81495a17>] SYSC_creat fs/open.c:1076 [inline]
 [<ffffffff81495a17>] SyS_creat+0x27/0x30 fs/open.c:1074
 [<ffffffff82718ba1>] entry_SYSCALL_64_fastpath+0x1e/0x9a
2 locks held by syz-executor.4/12587:
 #0:  (sb_writers#4){.+.+.+}, at: [<ffffffff814fcd3f>] sb_start_write include/linux/fs.h:1517 [inline]
 #0:  (sb_writers#4){.+.+.+}, at: [<ffffffff814fcd3f>] mnt_want_write+0x3f/0xb0 fs/namespace.c:391
 #1:  (&sb->s_type->i_mutex_key#9){+.+.+.}, at: [<ffffffff81492aa2>] do_truncate2+0x132/0x210 fs/open.c:61
Sending NMI to all CPUs:
NMI backtrace for cpu 0
CPU: 0 PID: 12557 Comm: syz-executor.4 Not tainted 4.4.174+ #4
task: ffff8801be812f80 task.stack: ffff8801cf650000
RIP: 0010:[<ffffffff8115d3bc>]  [<ffffffff8115d3bc>] preempt_count_add+0x8c/0x1d0 kernel/sched/core.c:3077
RSP: 0018:ffff8801cf657b98  EFLAGS: 00000246
RAX: 0000000080000002 RBX: 0000000000000003 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff81b0abec RDI: 0000000000000001
RBP: ffff8801cf657ba8 R08: 0000000000000002 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001
R13: ffff8801cee15134 R14: ffff8801cf657e44 R15: 0000000000000000
FS:  00007f11ffa3d700(0000) GS:ffff8801db600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000001bca308 CR3: 00000001d5efa000 CR4: 00000000001606b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Stack:
 ffffffff82fb8bc0 0000000000000001 ffff8801cf657bd0 ffffffff81242ee5
 ffffffff8123d925 ffffffff82fb8bc0 0000000000000001 ffff8801cf657be8
 ffffffff8123a917 0000000000000000 ffff8801cf657c40 ffffffff81745465
Call Trace:
 [<ffffffff81242ee5>] rcu_lockdep_current_cpu_online kernel/rcu/tree.c:1050 [inline]
 [<ffffffff81242ee5>] rcu_lockdep_current_cpu_online+0x35/0x140 kernel/rcu/tree.c:1042
 [<ffffffff8123a917>] rcu_read_lock_sched_held+0x97/0x130 kernel/rcu/update.c:105
 [<ffffffff81745465>] trace_ext4_es_lookup_extent_exit include/trace/events/ext4.h:2384 [inline]
 [<ffffffff81745465>] ext4_es_lookup_extent+0x985/0xc30 fs/ext4/extents_status.c:835
 [<ffffffff8164b026>] ext4_map_blocks+0x156/0x16f0 fs/ext4/inode.c:492
 [<ffffffff81634dcb>] ext4_seek_data fs/ext4/file.c:576 [inline]
 [<ffffffff81634dcb>] ext4_llseek+0x68b/0x970 fs/ext4/file.c:717
 [<ffffffff81497af3>] vfs_llseek fs/read_write.c:260 [inline]
 [<ffffffff81497af3>] SYSC_lseek fs/read_write.c:285 [inline]
 [<ffffffff81497af3>] SyS_lseek+0x113/0x180 fs/read_write.c:276
 [<ffffffff82718ba1>] entry_SYSCALL_64_fastpath+0x1e/0x9a
Code: c3 03 65 44 01 25 75 93 eb 7e 0f b6 04 02 38 c3 7c 08 84 c0 0f 85 12 01 00 00 8b 15 cf 32 ea 02 85 d2 75 15 65 8b 05 54 93 eb 7e <0f> b6 c0 3d f4 00 00 00 0f 8f 8a 00 00 00 65 8b 05 3f 93 eb 7e 
NMI backtrace for cpu 1
CPU: 1 PID: 20 Comm: khungtaskd Not tainted 4.4.174+ #4
task: ffff8801da6f4740 task.stack: ffff8800001d0000
RIP: 0010:[<ffffffff8109b617>]  [<ffffffff8109b617>] _flat_send_IPI_mask arch/x86/kernel/apic/apic_flat_64.c:62 [inline]
RIP: 0010:[<ffffffff8109b617>]  [<ffffffff8109b617>] flat_send_IPI_mask+0xf7/0x1b0 arch/x86/kernel/apic/apic_flat_64.c:69
RSP: 0018:ffff8800001d7c88  EFLAGS: 00000046
RAX: 0000000000000000 RBX: 0000000000000c00 RCX: 0000000000000000
RDX: 0000000000000c00 RSI: 0000000000000000 RDI: ffffffffff5fc300
RBP: ffff8800001d7cb8 R08: 0000000000000018 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000246
R13: 0000000003000000 R14: ffffffff82e5f2e0 R15: 0000000000000002
FS:  0000000000000000(0000) GS:ffff8801db700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000001bcc000 CR3: 00000000ba43a000 CR4: 00000000001606b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Stack:
 0000000000000001 ffffffff82e5f2e0 ffffffff831a6ac0 fffffbfff0634c34
 000000000001b6c0 0000000000000008 ffff8800001d7cd8 ffffffff81092bee
 0000000000000008 ffffffff82924260 ffff8800001d7d30 ffffffff81ab8252
Call Trace:
 [<ffffffff81092bee>] nmi_raise_cpu_backtrace+0x5e/0x80 arch/x86/kernel/apic/hw_nmi.c:33
 [<ffffffff81ab8252>] nmi_trigger_all_cpu_backtrace.cold+0xa1/0xae lib/nmi_backtrace.c:85
 [<ffffffff81092ca4>] arch_trigger_all_cpu_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38
 [<ffffffff813b4762>] trigger_all_cpu_backtrace include/linux/nmi.h:44 [inline]
 [<ffffffff813b4762>] check_hung_task kernel/hung_task.c:125 [inline]
 [<ffffffff813b4762>] check_hung_uninterruptible_tasks kernel/hung_task.c:182 [inline]
 [<ffffffff813b4762>] watchdog.cold+0xd3/0xee kernel/hung_task.c:238
 [<ffffffff811342c3>] kthread+0x273/0x310 kernel/kthread.c:211
 [<ffffffff82718fc5>] ret_from_fork+0x55/0x80 arch/x86/entry/entry_64.S:537
Code: 00 c3 5f ff 80 e6 10 75 e1 41 c1 e5 18 44 89 2c 25 10 c3 5f ff 44 89 fa 09 da 80 cf 04 41 83 ff 02 0f 44 d3 89 14 25 00 c3 5f ff <41> f7 c4 00 02 00 00 75 1e 4c 89 e7 57 9d 0f 1f 44 00 00 e8 f1 

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/09/08 18:13 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b a60cb4cd .config console log report ci-android-44-kasan-gce
2019/09/07 00:45 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b a60cb4cd .config console log report ci-android-44-kasan-gce
2019/09/02 10:41 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b db7c31ca .config console log report ci-android-44-kasan-gce
2019/08/28 17:45 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b fd37b39e .config console log report ci-android-44-kasan-gce
2019/08/25 23:38 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b d21c5d9d .config console log report ci-android-44-kasan-gce
2019/08/22 09:56 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 984250d5 .config console log report ci-android-44-kasan-gce
2019/08/19 07:58 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b b8ceabfc .config console log report ci-android-44-kasan-gce
2019/08/19 00:25 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 55bf8926 .config console log report ci-android-44-kasan-gce
2019/08/17 11:34 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 8fd428a1 .config console log report ci-android-44-kasan-gce
2019/08/16 15:10 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 8fd428a1 .config console log report ci-android-44-kasan-gce
* Struck through repros no longer work on HEAD.