syzbot


INFO: task hung in copy_process

Status: auto-closed as invalid on 2019/10/25 13:42
Reported-by: syzbot+cb8ad9d508ea4878794d@syzkaller.appspotmail.com
First crash: 1873d, last: 1764d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: task hung in copy_process 1 1456d 1456d 0/1 auto-closed as invalid on 2020/08/29 04:01
upstream INFO: task hung in copy_process (2) kernel 1 1821d 1821d 0/26 closed as invalid on 2019/05/08 13:05
android-414 INFO: task hung in copy_process (2) 1 1635d 1635d 0/1 auto-closed as invalid on 2020/03/02 19:22
upstream INFO: task hung in copy_process kernel 2 1911d 2056d 0/26 closed as dup on 2018/09/08 14:03
linux-4.19 INFO: task hung in copy_process (2) 1 877d 877d 0/1 auto-closed as invalid on 2022/03/30 21:31
linux-4.19 INFO: task hung in copy_process (3) 1 467d 467d 0/1 upstream: reported on 2023/01/14 12:40
android-49 INFO: task hung in copy_process 1 1850d 1842d 0/3 auto-closed as invalid on 2019/09/30 05:31
linux-4.14 INFO: task hung in copy_process 4 1818d 1823d 0/1 auto-closed as invalid on 2019/10/25 08:48

Sample crash report:
ip6_tunnel: file0 xmit: Local address not yet configured!
ip6_tunnel: ip6tnl4 xmit: Local address not yet configured!
ip6_tunnel: ip6tnl3 xmit: Local address not yet configured!
ip6_tunnel: ip6tnl1 xmit: Local address not yet configured!
INFO: task syz-executor.2:1868 blocked for more than 140 seconds.
      Not tainted 4.14.129+ #11
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.2  D25160  1868   1848 0x00000000
Call Trace:
 schedule+0x92/0x1c0 kernel/sched/core.c:3498
 __rwsem_down_write_failed_common kernel/locking/rwsem-xadd.c:588 [inline]
 rwsem_down_write_failed+0x3b1/0x760 kernel/locking/rwsem-xadd.c:617
 call_rwsem_down_write_failed+0x13/0x20 arch/x86/lib/rwsem.S:105
 __down_write arch/x86/include/asm/rwsem.h:126 [inline]
 down_write+0x4f/0x90 kernel/locking/rwsem.c:56
 i_mmap_lock_write include/linux/fs.h:473 [inline]
 dup_mmap kernel/fork.c:684 [inline]
 dup_mm kernel/fork.c:1211 [inline]
 copy_mm kernel/fork.c:1266 [inline]
 copy_process.part.0+0x3eab/0x65d0 kernel/fork.c:1789
 copy_process kernel/fork.c:1598 [inline]
 _do_fork+0x193/0xcc0 kernel/fork.c:2094
 do_syscall_64+0x19b/0x510 arch/x86/entry/common.c:292
INFO: task syz-executor.1:32557 blocked for more than 140 seconds.
      Not tainted 4.14.129+ #11
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.1  D27472 32557   1856 0x80000004
Call Trace:
 schedule+0x92/0x1c0 kernel/sched/core.c:3498
 __rwsem_down_write_failed_common kernel/locking/rwsem-xadd.c:588 [inline]
 rwsem_down_write_failed+0x3b1/0x760 kernel/locking/rwsem-xadd.c:617
 call_rwsem_down_write_failed+0x13/0x20 arch/x86/lib/rwsem.S:105
 __down_write arch/x86/include/asm/rwsem.h:126 [inline]
 down_write+0x4f/0x90 kernel/locking/rwsem.c:56
 i_mmap_lock_write include/linux/fs.h:473 [inline]
 unlink_file_vma+0x6e/0xa0 mm/mmap.c:158
 free_pgtables+0xb3/0x1c0 mm/memory.c:644
 exit_mmap+0x222/0x440 mm/mmap.c:3073
 __mmput kernel/fork.c:938 [inline]
 mmput kernel/fork.c:959 [inline]
 mmput+0xc8/0x350 kernel/fork.c:954
 exit_mm kernel/exit.c:545 [inline]
 do_exit+0x84e/0x2960 kernel/exit.c:861
INFO: task syz-executor.5:32610 blocked for more than 140 seconds.
      Not tainted 4.14.129+ #11
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.5  D27256 32610  16631 0x80000000
Call Trace:
 schedule+0x92/0x1c0 kernel/sched/core.c:3498
 __rwsem_down_write_failed_common kernel/locking/rwsem-xadd.c:588 [inline]
 rwsem_down_write_failed+0x3b1/0x760 kernel/locking/rwsem-xadd.c:617
 call_rwsem_down_write_failed+0x13/0x20 arch/x86/lib/rwsem.S:105
 __down_write arch/x86/include/asm/rwsem.h:126 [inline]
 down_write+0x4f/0x90 kernel/locking/rwsem.c:56
 i_mmap_lock_write include/linux/fs.h:473 [inline]
 unlink_file_vma+0x6e/0xa0 mm/mmap.c:158
 free_pgtables+0xb3/0x1c0 mm/memory.c:644
 exit_mmap+0x222/0x440 mm/mmap.c:3073
 __mmput kernel/fork.c:938 [inline]
 mmput kernel/fork.c:959 [inline]
 mmput+0xc8/0x350 kernel/fork.c:954
 exit_mm kernel/exit.c:545 [inline]
 do_exit+0x84e/0x2960 kernel/exit.c:861
INFO: task syz-executor.4:32608 blocked for more than 140 seconds.
      Not tainted 4.14.129+ #11
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.4  D28344 32608  26140 0x80000000
Call Trace:
 schedule+0x92/0x1c0 kernel/sched/core.c:3498
 __rwsem_down_write_failed_common kernel/locking/rwsem-xadd.c:588 [inline]
 rwsem_down_write_failed+0x3b1/0x760 kernel/locking/rwsem-xadd.c:617
 call_rwsem_down_write_failed+0x13/0x20 arch/x86/lib/rwsem.S:105
 __down_write arch/x86/include/asm/rwsem.h:126 [inline]
 down_write+0x4f/0x90 kernel/locking/rwsem.c:56
 i_mmap_lock_write include/linux/fs.h:473 [inline]
 unlink_file_vma+0x6e/0xa0 mm/mmap.c:158
 free_pgtables+0xb3/0x1c0 mm/memory.c:644
 exit_mmap+0x222/0x440 mm/mmap.c:3073
 __mmput kernel/fork.c:938 [inline]
 mmput kernel/fork.c:959 [inline]
 mmput+0xc8/0x350 kernel/fork.c:954
 exit_mm kernel/exit.c:545 [inline]
 do_exit+0x84e/0x2960 kernel/exit.c:861
INFO: task syz-executor.0:32605 blocked for more than 140 seconds.
      Not tainted 4.14.129+ #11
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.0  D28944 32605  32598 0x80000004
Call Trace:
 schedule+0x92/0x1c0 kernel/sched/core.c:3498
 __rwsem_down_write_failed_common kernel/locking/rwsem-xadd.c:588 [inline]
 rwsem_down_write_failed+0x3b1/0x760 kernel/locking/rwsem-xadd.c:617
 call_rwsem_down_write_failed+0x13/0x20 arch/x86/lib/rwsem.S:105
 __down_write arch/x86/include/asm/rwsem.h:126 [inline]
 down_write+0x4f/0x90 kernel/locking/rwsem.c:56
 i_mmap_lock_write include/linux/fs.h:473 [inline]
 unlink_file_vma+0x6e/0xa0 mm/mmap.c:158
 free_pgtables+0xb3/0x1c0 mm/memory.c:644
 exit_mmap+0x222/0x440 mm/mmap.c:3073
 __mmput kernel/fork.c:938 [inline]
 mmput kernel/fork.c:959 [inline]
 mmput+0xc8/0x350 kernel/fork.c:954
 exit_mm kernel/exit.c:545 [inline]
 do_exit+0x84e/0x2960 kernel/exit.c:861

Showing all locks held in the system:
1 lock held by khungtaskd/23:
 #0:  (tasklist_lock){.+.?}, at: [<00000000b416d6ca>] debug_show_all_locks+0x7c/0x21a kernel/locking/lockdep.c:4541
2 locks held by getty/1761:
 #0:  (&tty->ldisc_sem){++++}, at: [<00000000b941a0a1>] tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:284
 #1:  (&ldata->atomic_read_lock){+.+.}, at: [<00000000faab479d>] n_tty_read+0x1f7/0x1700 drivers/tty/n_tty.c:2156
1 lock held by syz-executor.0/1842:
 #0:  (&mapping->i_mmap_rwsem){++++}, at: [<00000000c6966861>] i_mmap_lock_write include/linux/fs.h:473 [inline]
 #0:  (&mapping->i_mmap_rwsem){++++}, at: [<00000000c6966861>] unlink_file_vma+0x6e/0xa0 mm/mmap.c:158
1 lock held by syz-executor.1/1845:
 #0:  (&mapping->i_mmap_rwsem){++++}, at: [<00000000c6966861>] i_mmap_lock_write include/linux/fs.h:473 [inline]
 #0:  (&mapping->i_mmap_rwsem){++++}, at: [<00000000c6966861>] unlink_file_vma+0x6e/0xa0 mm/mmap.c:158
1 lock held by syz-executor.2/1848:
 #0:  (&mapping->i_mmap_rwsem){++++}, at: [<00000000c6966861>] i_mmap_lock_write include/linux/fs.h:473 [inline]
 #0:  (&mapping->i_mmap_rwsem){++++}, at: [<00000000c6966861>] unlink_file_vma+0x6e/0xa0 mm/mmap.c:158
4 locks held by syz-executor.2/1868:
 #0:  (&dup_mmap_sem){.+.+}, at: [<00000000d3bebd60>] dup_mmap kernel/fork.c:609 [inline]
 #0:  (&dup_mmap_sem){.+.+}, at: [<00000000d3bebd60>] dup_mm kernel/fork.c:1211 [inline]
 #0:  (&dup_mmap_sem){.+.+}, at: [<00000000d3bebd60>] copy_mm kernel/fork.c:1266 [inline]
 #0:  (&dup_mmap_sem){.+.+}, at: [<00000000d3bebd60>] copy_process.part.0+0x39db/0x65d0 kernel/fork.c:1789
 #1:  (&mm->mmap_sem){++++}, at: [<0000000005d408eb>] dup_mmap kernel/fork.c:610 [inline]
 #1:  (&mm->mmap_sem){++++}, at: [<0000000005d408eb>] dup_mm kernel/fork.c:1211 [inline]
 #1:  (&mm->mmap_sem){++++}, at: [<0000000005d408eb>] copy_mm kernel/fork.c:1266 [inline]
 #1:  (&mm->mmap_sem){++++}, at: [<0000000005d408eb>] copy_process.part.0+0x39f7/0x65d0 kernel/fork.c:1789
 #2:  (&mm->mmap_sem/1){+.+.}, at: [<00000000e907b18e>] dup_mmap kernel/fork.c:619 [inline]
 #2:  (&mm->mmap_sem/1){+.+.}, at: [<00000000e907b18e>] dup_mm kernel/fork.c:1211 [inline]
 #2:  (&mm->mmap_sem/1){+.+.}, at: [<00000000e907b18e>] copy_mm kernel/fork.c:1266 [inline]
 #2:  (&mm->mmap_sem/1){+.+.}, at: [<00000000e907b18e>] copy_process.part.0+0x3a3f/0x65d0 kernel/fork.c:1789
 #3:  (&mapping->i_mmap_rwsem){++++}, at: [<000000004ab64178>] i_mmap_lock_write include/linux/fs.h:473 [inline]
 #3:  (&mapping->i_mmap_rwsem){++++}, at: [<000000004ab64178>] dup_mmap kernel/fork.c:684 [inline]
 #3:  (&mapping->i_mmap_rwsem){++++}, at: [<000000004ab64178>] dup_mm kernel/fork.c:1211 [inline]
 #3:  (&mapping->i_mmap_rwsem){++++}, at: [<000000004ab64178>] copy_mm kernel/fork.c:1266 [inline]
 #3:  (&mapping->i_mmap_rwsem){++++}, at: [<000000004ab64178>] copy_process.part.0+0x3eab/0x65d0 kernel/fork.c:1789
1 lock held by syz-executor.4/26139:
 #0:  (&mapping->i_mmap_rwsem){++++}, at: [<00000000c6966861>] i_mmap_lock_write include/linux/fs.h:473 [inline]
 #0:  (&mapping->i_mmap_rwsem){++++}, at: [<00000000c6966861>] unlink_file_vma+0x6e/0xa0 mm/mmap.c:158
1 lock held by syz-executor.5/16630:
 #0:  (&mapping->i_mmap_rwsem){++++}, at: [<00000000c6966861>] i_mmap_lock_write include/linux/fs.h:473 [inline]
 #0:  (&mapping->i_mmap_rwsem){++++}, at: [<00000000c6966861>] unlink_file_vma+0x6e/0xa0 mm/mmap.c:158
1 lock held by syz-executor.1/32557:
 #0:  (&mapping->i_mmap_rwsem){++++}, at: [<00000000c6966861>] i_mmap_lock_write include/linux/fs.h:473 [inline]
 #0:  (&mapping->i_mmap_rwsem){++++}, at: [<00000000c6966861>] unlink_file_vma+0x6e/0xa0 mm/mmap.c:158
1 lock held by syz-executor.5/32610:
 #0:  (&mapping->i_mmap_rwsem){++++}, at: [<00000000c6966861>] i_mmap_lock_write include/linux/fs.h:473 [inline]
 #0:  (&mapping->i_mmap_rwsem){++++}, at: [<00000000c6966861>] unlink_file_vma+0x6e/0xa0 mm/mmap.c:158
1 lock held by syz-executor.4/32608:
 #0:  (&mapping->i_mmap_rwsem){++++}, at: [<00000000c6966861>] i_mmap_lock_write include/linux/fs.h:473 [inline]
 #0:  (&mapping->i_mmap_rwsem){++++}, at: [<00000000c6966861>] unlink_file_vma+0x6e/0xa0 mm/mmap.c:158
1 lock held by syz-executor.0/32605:
 #0:  (&mapping->i_mmap_rwsem){++++}, at: [<00000000c6966861>] i_mmap_lock_write include/linux/fs.h:473 [inline]
 #0:  (&mapping->i_mmap_rwsem){++++}, at: [<00000000c6966861>] unlink_file_vma+0x6e/0xa0 mm/mmap.c:158

=============================================

NMI backtrace for cpu 1
CPU: 1 PID: 23 Comm: khungtaskd Not tainted 4.14.129+ #11
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0xb9/0x10e lib/dump_stack.c:53
 nmi_cpu_backtrace.cold+0x47/0x86 lib/nmi_backtrace.c:101
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 32598 Comm: syz-executor.0 Not tainted 4.14.129+ #11
task: 00000000a5d57efb task.stack: 00000000c1c5e62d
RIP: 0010:native_apic_mem_write+0x8/0x10 arch/x86/include/asm/apic.h:100
RSP: 0018:ffff8881d7607ef0 EFLAGS: 00000046
RAX: ffffffffad89c1e0 RBX: ffffffffafaa7880 RCX: 0000000000000020
RDX: 1ffffffff5f54f2d RSI: 000000000000003e RDI: 0000000000000380
RBP: ffff8881d761df40 R08: ffff88821ffff01c R09: ffff88821ffff008
R10: ffff88821ffff010 R11: 00000216d7c9055d R12: 000000000000003e
R13: 0000000000000003 R14: 00000215ed30b0b7 R15: ffff8881d7624b28
FS:  00007f2be503d700(0000) GS:ffff8881d7600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055ad5f3bea98 CR3: 00000001a848c003 CR4: 00000000001606b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 <IRQ>
 apic_write arch/x86/include/asm/apic.h:395 [inline]
 lapic_next_event+0x59/0x90 arch/x86/kernel/apic/apic.c:469
 clockevents_program_event+0x1fd/0x2e0 kernel/time/clockevents.c:339
 tick_program_event+0x78/0xd0 kernel/time/tick-oneshot.c:47
 hrtimer_interrupt+0x20b/0x490 kernel/time/hrtimer.c:1370
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1037 [inline]
 smp_apic_timer_interrupt+0x136/0x620 arch/x86/kernel/apic/apic.c:1062
 apic_timer_interrupt+0x84/0x90 arch/x86/entry/entry_64.S:789
 </IRQ>
RIP: 0010:arch_local_save_flags arch/x86/include/asm/paravirt.h:773 [inline]
RIP: 0010:arch_local_irq_save arch/x86/include/asm/paravirt.h:795 [inline]
RIP: 0010:lock_release+0xa6/0x730 kernel/locking/lockdep.c:4006
RSP: 0018:ffff88819e987860 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff10
RAX: 0000000000000007 RBX: 1ffff11033d30f10 RCX: 1ffffffff5f54e84
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88819b341fac
RBP: ffff88819b341780 R08: 0000000000000000 R09: 0000000000000000
R10: ffff88819b342050 R11: 0000000000000001 R12: ffffffffafcd3c60
R13: ffffea00074050a0 R14: dead000000000100 R15: ffff8881a4f11700
Code: 83 3d fc e3 db 02 01 77 02 5d c3 89 ef 5d e9 7a e7 fe ff 48 c7 c7 c0 a5 65 b0 e8 c4 6c 49 00 eb df 66 90 89 ff 89 b7 00 d0 5f ff <c3> 0f 1f 80 00 00 00 00 48 b8 00 00 00 00 00 fc ff df 53 89 fb 

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/06/27 13:41 android-4.14 93c338c2e7ba 7509bf36 .config console log report ci-android-414-kasan-gce-root
2019/03/11 04:49 android-4.14 b11964adfe4c 12365b99 .config console log report ci-android-414-kasan-gce-root
* Struck through repros no longer work on HEAD.