All of lore.kernel.org
 help / color / mirror / Atom feed
* INFO: task hung in tls_push_record
@ 2018-05-06 17:37 syzbot
  2018-05-20  2:03 ` syzbot
  0 siblings, 1 reply; 4+ messages in thread
From: syzbot @ 2018-05-06 17:37 UTC (permalink / raw)
  To: aviadye, borisp, davejwatson, davem, linux-kernel, netdev,
	syzkaller-bugs

Hello,

syzbot found the following crash on:

HEAD commit:    8fb11a9a8d51 net/ipv6: rename rt6_next to fib6_next
git tree:       net-next
console output: https://syzkaller.appspot.com/x/log.txt?x=108e9237800000
kernel config:  https://syzkaller.appspot.com/x/.config?x=c416c61f3cd96be
dashboard link: https://syzkaller.appspot.com/bug?extid=4006516aae0b06e7050f
compiler:       gcc (GCC) 8.0.1 20180413 (experimental)

Unfortunately, I don't have any reproducer for this crash yet.

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+4006516aae0b06e7050f@syzkaller.appspotmail.com

INFO: task syz-executor7:20304 blocked for more than 120 seconds.
       Not tainted 4.17.0-rc3+ #33
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor7   D24680 20304   4547 0x00000004
Call Trace:
  context_switch kernel/sched/core.c:2848 [inline]
  __schedule+0x801/0x1e30 kernel/sched/core.c:3490
  schedule+0xef/0x430 kernel/sched/core.c:3549
  schedule_timeout+0x1b5/0x240 kernel/time/timer.c:1777
  do_wait_for_common kernel/sched/completion.c:83 [inline]
  __wait_for_common kernel/sched/completion.c:104 [inline]
  wait_for_common kernel/sched/completion.c:115 [inline]
  wait_for_completion+0x3e7/0x870 kernel/sched/completion.c:136
  crypto_wait_req include/linux/crypto.h:512 [inline]
  tls_do_encryption net/tls/tls_sw.c:217 [inline]
  tls_push_record+0xedc/0x13e0 net/tls/tls_sw.c:248
  tls_sw_sendmsg+0x8d7/0x12b0 net/tls/tls_sw.c:440
  inet_sendmsg+0x19f/0x690 net/ipv4/af_inet.c:798
  sock_sendmsg_nosec net/socket.c:629 [inline]
  sock_sendmsg+0xd5/0x120 net/socket.c:639
  sock_write_iter+0x35a/0x5a0 net/socket.c:908
  call_write_iter include/linux/fs.h:1784 [inline]
  new_sync_write fs/read_write.c:474 [inline]
  __vfs_write+0x64d/0x960 fs/read_write.c:487
  vfs_write+0x1f8/0x560 fs/read_write.c:549
  ksys_write+0xf9/0x250 fs/read_write.c:598
  __do_sys_write fs/read_write.c:610 [inline]
  __se_sys_write fs/read_write.c:607 [inline]
  __x64_sys_write+0x73/0xb0 fs/read_write.c:607
  do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287
  entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x455979
RSP: 002b:00007fad08582c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fad085836d4 RCX: 0000000000455979
RDX: 0000000000000050 RSI: 0000000020000280 RDI: 0000000000000013
RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 0000000000000713 R14: 00000000006fea68 R15: 0000000000000000

Showing all locks held in the system:
2 locks held by khungtaskd/892:
  #0: 000000003f978916 (rcu_read_lock){....}, at:  
check_hung_uninterruptible_tasks kernel/hung_task.c:175 [inline]
  #0: 000000003f978916 (rcu_read_lock){....}, at: watchdog+0x1ff/0xf60  
kernel/hung_task.c:249
  #1: 00000000a6e1e84d (tasklist_lock){.+.+}, at:  
debug_show_all_locks+0xde/0x34a kernel/locking/lockdep.c:4470
2 locks held by getty/4466:
  #0: 00000000bb90ee4c (&tty->ldisc_sem){++++}, at:  
ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365
  #1: 000000005c64e739 (&ldata->atomic_read_lock){+.+.}, at:  
n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131
2 locks held by getty/4467:
  #0: 00000000a703ee54 (&tty->ldisc_sem){++++}, at:  
ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365
  #1: 00000000c6bc54dc (&ldata->atomic_read_lock){+.+.}, at:  
n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131
2 locks held by getty/4468:
  #0: 000000007e39712e (&tty->ldisc_sem){++++}, at:  
ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365
  #1: 000000003afa8b0a (&ldata->atomic_read_lock){+.+.}, at:  
n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131
2 locks held by getty/4469:
  #0: 000000004a2f1f14 (&tty->ldisc_sem){++++}, at:  
ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365
  #1: 00000000a9bb6673 (&ldata->atomic_read_lock){+.+.}, at:  
n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131
2 locks held by getty/4470:
  #0: 000000005c9ac5a5 (&tty->ldisc_sem){++++}, at:  
ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365
  #1: 00000000e940f7ee (&ldata->atomic_read_lock){+.+.}, at:  
n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131
2 locks held by getty/4471:
  #0: 00000000b0318201 (&tty->ldisc_sem){++++}, at:  
ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365
  #1: 00000000faa92852 (&ldata->atomic_read_lock){+.+.}, at:  
n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131
2 locks held by getty/4472:
  #0: 000000002f556699 (&tty->ldisc_sem){++++}, at:  
ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365
  #1: 00000000c5b4fb47 (&ldata->atomic_read_lock){+.+.}, at:  
n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131
1 lock held by syz-executor7/20304:
  #0: 000000001da4f4a9 (sk_lock-AF_INET6){+.+.}, at: lock_sock  
include/net/sock.h:1474 [inline]
  #0: 000000001da4f4a9 (sk_lock-AF_INET6){+.+.}, at:  
tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
1 lock held by syz-executor7/20375:
  #0: 00000000286d2e23 (sk_lock-AF_INET6){+.+.}, at: lock_sock  
include/net/sock.h:1474 [inline]
  #0: 00000000286d2e23 (sk_lock-AF_INET6){+.+.}, at:  
tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384

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

NMI backtrace for cpu 1
CPU: 1 PID: 892 Comm: khungtaskd Not tainted 4.17.0-rc3+ #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+0x1b9/0x294 lib/dump_stack.c:113
  nmi_cpu_backtrace.cold.4+0x19/0xce lib/nmi_backtrace.c:103
  nmi_trigger_cpumask_backtrace+0x151/0x192 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:138 [inline]
  check_hung_task kernel/hung_task.c:132 [inline]
  check_hung_uninterruptible_tasks kernel/hung_task.c:190 [inline]
  watchdog+0xc10/0xf60 kernel/hung_task.c:249
  kthread+0x345/0x410 kernel/kthread.c:238
  ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:412
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0 skipped: idling at native_safe_halt+0x6/0x10  
arch/x86/include/asm/irqflags.h:54


---
This bug is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller@googlegroups.com.

syzbot will keep track of this bug report.
If you forgot to add the Reported-by tag, once the fix for this bug is  
merged
into any tree, please reply to this email with:
#syz fix: exact-commit-title
To mark this as a duplicate of another syzbot report, please reply with:
#syz dup: exact-subject-of-another-report
If it's a one-off invalid bug report, please reply with:
#syz invalid
Note: if the crash happens again, it will cause creation of a new bug  
report.
Note: all commands must start from beginning of the line in the email body.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: INFO: task hung in tls_push_record
  2018-05-06 17:37 INFO: task hung in tls_push_record syzbot
@ 2018-05-20  2:03 ` syzbot
  2018-07-18 11:52     ` Dmitry Vyukov
  0 siblings, 1 reply; 4+ messages in thread
From: syzbot @ 2018-05-20  2:03 UTC (permalink / raw)
  To: aviadye, borisp, davejwatson, davem, linux-kernel, netdev,
	syzkaller-bugs

syzbot has found a reproducer for the following crash on:

HEAD commit:    eb38401c779d net: stmmac: Populate missing callbacks in HW..
git tree:       net-next
console output: https://syzkaller.appspot.com/x/log.txt?x=16d0820f800000
kernel config:  https://syzkaller.appspot.com/x/.config?x=b632d8e2c2ab2c1
dashboard link: https://syzkaller.appspot.com/bug?extid=4006516aae0b06e7050f
compiler:       gcc (GCC) 8.0.1 20180413 (experimental)
syzkaller repro:https://syzkaller.appspot.com/x/repro.syz?x=10f6927b800000
C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=15b7a20f800000

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+4006516aae0b06e7050f@syzkaller.appspotmail.com

INFO: task syz-executor793:4489 blocked for more than 120 seconds.
       Not tainted 4.17.0-rc4+ #52
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor793 D23464  4489   4486 0x00000000
Call Trace:
  context_switch kernel/sched/core.c:2848 [inline]
  __schedule+0x801/0x1e30 kernel/sched/core.c:3490
  schedule+0xef/0x430 kernel/sched/core.c:3549
  schedule_timeout+0x1b5/0x240 kernel/time/timer.c:1777
  do_wait_for_common kernel/sched/completion.c:83 [inline]
  __wait_for_common kernel/sched/completion.c:104 [inline]
  wait_for_common kernel/sched/completion.c:115 [inline]
  wait_for_completion+0x3e7/0x870 kernel/sched/completion.c:136
  crypto_wait_req include/linux/crypto.h:512 [inline]
  tls_do_encryption net/tls/tls_sw.c:217 [inline]
  tls_push_record+0xedc/0x13e0 net/tls/tls_sw.c:248
  tls_sw_sendmsg+0x8d7/0x12b0 net/tls/tls_sw.c:440
  inet_sendmsg+0x19f/0x690 net/ipv4/af_inet.c:798
  sock_sendmsg_nosec net/socket.c:629 [inline]
  sock_sendmsg+0xd5/0x120 net/socket.c:639
  __sys_sendto+0x3d7/0x670 net/socket.c:1789
  __do_sys_sendto net/socket.c:1801 [inline]
  __se_sys_sendto net/socket.c:1797 [inline]
  __x64_sys_sendto+0xe1/0x1a0 net/socket.c:1797
  do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287
  entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4457d9
RSP: 002b:00007fa388d06da8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00000000006dac24 RCX: 00000000004457d9
RDX: 00000000fffffdef RSI: 00000000200005c0 RDI: 0000000000000022
RBP: 00000000006dac20 R08: 0000000020000000 R09: 000000000000001c
R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000
R13: 00007ffd5148ecaf R14: 00007fa388d079c0 R15: 0000000000000001

Showing all locks held in the system:
2 locks held by khungtaskd/892:
  #0: 000000009dfaae0c (rcu_read_lock){....}, at:  
check_hung_uninterruptible_tasks kernel/hung_task.c:175 [inline]
  #0: 000000009dfaae0c (rcu_read_lock){....}, at: watchdog+0x1ff/0xf60  
kernel/hung_task.c:249
  #1: 0000000058f79a8d (tasklist_lock){.+.+}, at:  
debug_show_all_locks+0xde/0x34a kernel/locking/lockdep.c:4470
1 lock held by rsyslogd/4370:
  #0: 0000000059c3c7ae (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x1a9/0x1e0  
fs/file.c:766
2 locks held by getty/4460:
  #0: 00000000e25a52c3 (&tty->ldisc_sem){++++}, at:  
ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365
  #1: 000000002caea50f (&ldata->atomic_read_lock){+.+.}, at:  
n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131
2 locks held by getty/4461:
  #0: 00000000d38c9806 (&tty->ldisc_sem){++++}, at:  
ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365
  #1: 00000000eaffe99d (&ldata->atomic_read_lock){+.+.}, at:  
n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131
2 locks held by getty/4462:
  #0: 00000000cec6abe7 (&tty->ldisc_sem){++++}, at:  
ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365
  #1: 0000000000afd91c (&ldata->atomic_read_lock){+.+.}, at:  
n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131
2 locks held by getty/4463:
  #0: 000000003456fca5 (&tty->ldisc_sem){++++}, at:  
ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365
  #1: 0000000038a65d91 (&ldata->atomic_read_lock){+.+.}, at:  
n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131
2 locks held by getty/4464:
  #0: 0000000001e783b1 (&tty->ldisc_sem){++++}, at:  
ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365
  #1: 000000003ecd2e34 (&ldata->atomic_read_lock){+.+.}, at:  
n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131
2 locks held by getty/4465:
  #0: 000000007ef8b451 (&tty->ldisc_sem){++++}, at:  
ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365
  #1: 000000006996c3ed (&ldata->atomic_read_lock){+.+.}, at:  
n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131
2 locks held by getty/4466:
  #0: 00000000d15d9a92 (&tty->ldisc_sem){++++}, at:  
ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365
  #1: 00000000ee44bcf4 (&ldata->atomic_read_lock){+.+.}, at:  
n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131
1 lock held by syz-executor793/4489:
  #0: 0000000008c84b0d (sk_lock-AF_INET6){+.+.}, at: lock_sock  
include/net/sock.h:1474 [inline]
  #0: 0000000008c84b0d (sk_lock-AF_INET6){+.+.}, at:  
tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
1 lock held by syz-executor793/4494:
  #0: 00000000f2de7555 (sk_lock-AF_INET6){+.+.}, at: lock_sock  
include/net/sock.h:1474 [inline]
  #0: 00000000f2de7555 (sk_lock-AF_INET6){+.+.}, at:  
tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
1 lock held by syz-executor793/4499:
  #0: 0000000058a54751 (sk_lock-AF_INET6){+.+.}, at: lock_sock  
include/net/sock.h:1474 [inline]
  #0: 0000000058a54751 (sk_lock-AF_INET6){+.+.}, at:  
tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
1 lock held by syz-executor793/4504:
  #0: 0000000045694cb9 (sk_lock-AF_INET6){+.+.}, at: lock_sock  
include/net/sock.h:1474 [inline]
  #0: 0000000045694cb9 (sk_lock-AF_INET6){+.+.}, at:  
tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
1 lock held by syz-executor793/4509:
  #0: 00000000b663e61f (sk_lock-AF_INET6){+.+.}, at: lock_sock  
include/net/sock.h:1474 [inline]
  #0: 00000000b663e61f (sk_lock-AF_INET6){+.+.}, at:  
tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
1 lock held by syz-executor793/4514:
  #0: 00000000603baf06 (sk_lock-AF_INET6){+.+.}, at: lock_sock  
include/net/sock.h:1474 [inline]
  #0: 00000000603baf06 (sk_lock-AF_INET6){+.+.}, at:  
tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
1 lock held by syz-executor793/4519:
  #0: 00000000344afb7e (sk_lock-AF_INET6){+.+.}, at: lock_sock  
include/net/sock.h:1474 [inline]
  #0: 00000000344afb7e (sk_lock-AF_INET6){+.+.}, at:  
tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
1 lock held by syz-executor793/4524:
  #0: 000000004aa3e1ce (sk_lock-AF_INET6){+.+.}, at: lock_sock  
include/net/sock.h:1474 [inline]
  #0: 000000004aa3e1ce (sk_lock-AF_INET6){+.+.}, at:  
tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
1 lock held by syz-executor793/4529:
  #0: 00000000b6c4b2ea (sk_lock-AF_INET6){+.+.}, at: lock_sock  
include/net/sock.h:1474 [inline]
  #0: 00000000b6c4b2ea (sk_lock-AF_INET6){+.+.}, at:  
tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
1 lock held by syz-executor793/4534:
  #0: 000000005bae881e (sk_lock-AF_INET6){+.+.}, at: lock_sock  
include/net/sock.h:1474 [inline]
  #0: 000000005bae881e (sk_lock-AF_INET6){+.+.}, at:  
tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
1 lock held by syz-executor793/4539:
  #0: 000000004b04f235 (sk_lock-AF_INET6){+.+.}, at: lock_sock  
include/net/sock.h:1474 [inline]
  #0: 000000004b04f235 (sk_lock-AF_INET6){+.+.}, at:  
tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
1 lock held by syz-executor793/4544:
  #0: 00000000b5888be7 (sk_lock-AF_INET6){+.+.}, at: lock_sock  
include/net/sock.h:1474 [inline]
  #0: 00000000b5888be7 (sk_lock-AF_INET6){+.+.}, at:  
tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
1 lock held by syz-executor793/4549:
  #0: 00000000e902c819 (sk_lock-AF_INET6){+.+.}, at: lock_sock  
include/net/sock.h:1474 [inline]
  #0: 00000000e902c819 (sk_lock-AF_INET6){+.+.}, at:  
tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
1 lock held by syz-executor793/4554:
  #0: 000000009cd1d95e (sk_lock-AF_INET6){+.+.}, at: lock_sock  
include/net/sock.h:1474 [inline]
  #0: 000000009cd1d95e (sk_lock-AF_INET6){+.+.}, at:  
tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
1 lock held by syz-executor793/4559:
  #0: 000000001f3edf17 (sk_lock-AF_INET6){+.+.}, at: lock_sock  
include/net/sock.h:1474 [inline]
  #0: 000000001f3edf17 (sk_lock-AF_INET6){+.+.}, at:  
tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
1 lock held by syz-executor793/4563:
  #0: 00000000802085f8 (sk_lock-AF_INET6){+.+.}, at: lock_sock  
include/net/sock.h:1474 [inline]
  #0: 00000000802085f8 (sk_lock-AF_INET6){+.+.}, at:  
tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384

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

NMI backtrace for cpu 0
CPU: 0 PID: 892 Comm: khungtaskd Not tainted 4.17.0-rc4+ #52
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+0x1b9/0x294 lib/dump_stack.c:113
  nmi_cpu_backtrace.cold.4+0x19/0xce lib/nmi_backtrace.c:103
  nmi_trigger_cpumask_backtrace+0x151/0x192 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:138 [inline]
  check_hung_task kernel/hung_task.c:132 [inline]
  check_hung_uninterruptible_tasks kernel/hung_task.c:190 [inline]
  watchdog+0xc10/0xf60 kernel/hung_task.c:249
  kthread+0x345/0x410 kernel/kthread.c:238
  ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:412
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 4486 Comm: sshd Not tainted 4.17.0-rc4+ #52
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS  
Google 01/01/2011
RIP: 0010:__debug_object_init+0x25/0x12c0 lib/debugobjects.c:371
RSP: 0018:ffff8801b30f73d0 EFLAGS: 00000a02
RAX: 1ffff1003661ee3d RBX: ffff8801b30f7440 RCX: ffffffff877175fb
RDX: 0000000000000001 RSI: ffffffff88d9a5e0 RDI: ffff8801b30f7440
RBP: ffff8801b30f73f0 R08: ffff8801b0a10740 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8801b30f73c8
R13: dffffc0000000000 R14: ffff8801b30f74c0 R15: 0000000000000001
FS:  00007f15863b87c0(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f38c25af9ce CR3: 00000001d0b17000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
  debug_object_init_on_stack+0x19/0x20 lib/debugobjects.c:444
  hrtimer_init_on_stack kernel/time/hrtimer.c:435 [inline]
  schedule_hrtimeout_range_clock+0xcc/0x470 kernel/time/hrtimer.c:1936
  schedule_hrtimeout_range+0x2a/0x40 kernel/time/hrtimer.c:1989
  poll_schedule_timeout+0x11a/0x200 fs/select.c:243
  do_select+0x1606/0x1ae0 fs/select.c:581
  core_sys_select+0x768/0xb60 fs/select.c:655
  kern_select+0x1b7/0x250 fs/select.c:696
  __do_sys_select fs/select.c:705 [inline]
  __se_sys_select fs/select.c:702 [inline]
  __x64_sys_select+0xbe/0x150 fs/select.c:702
  do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287
  entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f1584758dd3
RSP: 002b:00007ffe596ca1f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000017
RAX: ffffffffffffffda RBX: 00007ffe596ca280 RCX: 00007f1584758dd3
RDX: 000055a15612aab0 RSI: 000055a15612aad0 RDI: 000000000000000c
RBP: 000055a1559bf8dc R08: 00007ffe596ca220 R09: 0101010101010101
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffe596ca288
R13: 0000000000000000 R14: 00007ffe596ca278 R15: 00007ffe596ca27c
Code: 84 00 00 00 00 00 55 48 89 e5 41 57 41 56 48 8d 85 f8 fd ff ff 41 55  
48 c1 e8 03 49 bd 00 00 00 00 00 fc ff df 41 54 4c 8d 65 d8 <53> 48 89 fb  
48 81 ec 30 02 00 00 48 89 85 d8 fd ff ff 4c 01 e8

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: INFO: task hung in tls_push_record
  2018-05-20  2:03 ` syzbot
@ 2018-07-18 11:52     ` Dmitry Vyukov
  0 siblings, 0 replies; 4+ messages in thread
From: Dmitry Vyukov @ 2018-07-18 11:52 UTC (permalink / raw)
  To: syzbot, Herbert Xu,
	open list:HARDWARE RANDOM NUMBER GENERATOR CORE, Jaegeuk Kim
  Cc: aviadye, borisp, davejwatson, David Miller, LKML, netdev, syzkaller-bugs

On Sun, May 20, 2018 at 4:03 AM, syzbot
<syzbot+4006516aae0b06e7050f@syzkaller.appspotmail.com> wrote:
> syzbot has found a reproducer for the following crash on:
>
> HEAD commit:    eb38401c779d net: stmmac: Populate missing callbacks in HW..
> git tree:       net-next
> console output: https://syzkaller.appspot.com/x/log.txt?x=16d0820f800000
> kernel config:  https://syzkaller.appspot.com/x/.config?x=b632d8e2c2ab2c1
> dashboard link: https://syzkaller.appspot.com/bug?extid=4006516aae0b06e7050f
> compiler:       gcc (GCC) 8.0.1 20180413 (experimental)
> syzkaller repro:https://syzkaller.appspot.com/x/repro.syz?x=10f6927b800000
> C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=15b7a20f800000
>
> IMPORTANT: if you fix the bug, please add the following tag to the commit:
> Reported-by: syzbot+4006516aae0b06e7050f@syzkaller.appspotmail.com

Still happens.
Perhaps this is crypto-related, not net-related? That's why net
maintainers are not looking at this? +crypto maintainers


> INFO: task syz-executor793:4489 blocked for more than 120 seconds.
>       Not tainted 4.17.0-rc4+ #52
> "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
> syz-executor793 D23464  4489   4486 0x00000000
> Call Trace:
>  context_switch kernel/sched/core.c:2848 [inline]
>  __schedule+0x801/0x1e30 kernel/sched/core.c:3490
>  schedule+0xef/0x430 kernel/sched/core.c:3549
>  schedule_timeout+0x1b5/0x240 kernel/time/timer.c:1777
>  do_wait_for_common kernel/sched/completion.c:83 [inline]
>  __wait_for_common kernel/sched/completion.c:104 [inline]
>  wait_for_common kernel/sched/completion.c:115 [inline]
>  wait_for_completion+0x3e7/0x870 kernel/sched/completion.c:136
>  crypto_wait_req include/linux/crypto.h:512 [inline]
>  tls_do_encryption net/tls/tls_sw.c:217 [inline]
>  tls_push_record+0xedc/0x13e0 net/tls/tls_sw.c:248
>  tls_sw_sendmsg+0x8d7/0x12b0 net/tls/tls_sw.c:440
>  inet_sendmsg+0x19f/0x690 net/ipv4/af_inet.c:798
>  sock_sendmsg_nosec net/socket.c:629 [inline]
>  sock_sendmsg+0xd5/0x120 net/socket.c:639
>  __sys_sendto+0x3d7/0x670 net/socket.c:1789
>  __do_sys_sendto net/socket.c:1801 [inline]
>  __se_sys_sendto net/socket.c:1797 [inline]
>  __x64_sys_sendto+0xe1/0x1a0 net/socket.c:1797
>  do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287
>  entry_SYSCALL_64_after_hwframe+0x49/0xbe
> RIP: 0033:0x4457d9
> RSP: 002b:00007fa388d06da8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c
> RAX: ffffffffffffffda RBX: 00000000006dac24 RCX: 00000000004457d9
> RDX: 00000000fffffdef RSI: 00000000200005c0 RDI: 0000000000000022
> RBP: 00000000006dac20 R08: 0000000020000000 R09: 000000000000001c
> R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000
> R13: 00007ffd5148ecaf R14: 00007fa388d079c0 R15: 0000000000000001
>
> Showing all locks held in the system:
> 2 locks held by khungtaskd/892:
>  #0: 000000009dfaae0c (rcu_read_lock){....}, at:
> check_hung_uninterruptible_tasks kernel/hung_task.c:175 [inline]
>  #0: 000000009dfaae0c (rcu_read_lock){....}, at: watchdog+0x1ff/0xf60
> kernel/hung_task.c:249
>  #1: 0000000058f79a8d (tasklist_lock){.+.+}, at:
> debug_show_all_locks+0xde/0x34a kernel/locking/lockdep.c:4470
> 1 lock held by rsyslogd/4370:
>  #0: 0000000059c3c7ae (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x1a9/0x1e0
> fs/file.c:766
> 2 locks held by getty/4460:
>  #0: 00000000e25a52c3 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40
> drivers/tty/tty_ldsem.c:365
>  #1: 000000002caea50f (&ldata->atomic_read_lock){+.+.}, at:
> n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131
> 2 locks held by getty/4461:
>  #0: 00000000d38c9806 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40
> drivers/tty/tty_ldsem.c:365
>  #1: 00000000eaffe99d (&ldata->atomic_read_lock){+.+.}, at:
> n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131
> 2 locks held by getty/4462:
>  #0: 00000000cec6abe7 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40
> drivers/tty/tty_ldsem.c:365
>  #1: 0000000000afd91c (&ldata->atomic_read_lock){+.+.}, at:
> n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131
> 2 locks held by getty/4463:
>  #0: 000000003456fca5 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40
> drivers/tty/tty_ldsem.c:365
>  #1: 0000000038a65d91 (&ldata->atomic_read_lock){+.+.}, at:
> n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131
> 2 locks held by getty/4464:
>  #0: 0000000001e783b1 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40
> drivers/tty/tty_ldsem.c:365
>  #1: 000000003ecd2e34 (&ldata->atomic_read_lock){+.+.}, at:
> n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131
> 2 locks held by getty/4465:
>  #0: 000000007ef8b451 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40
> drivers/tty/tty_ldsem.c:365
>  #1: 000000006996c3ed (&ldata->atomic_read_lock){+.+.}, at:
> n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131
> 2 locks held by getty/4466:
>  #0: 00000000d15d9a92 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40
> drivers/tty/tty_ldsem.c:365
>  #1: 00000000ee44bcf4 (&ldata->atomic_read_lock){+.+.}, at:
> n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131
> 1 lock held by syz-executor793/4489:
>  #0: 0000000008c84b0d (sk_lock-AF_INET6){+.+.}, at: lock_sock
> include/net/sock.h:1474 [inline]
>  #0: 0000000008c84b0d (sk_lock-AF_INET6){+.+.}, at:
> tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
> 1 lock held by syz-executor793/4494:
>  #0: 00000000f2de7555 (sk_lock-AF_INET6){+.+.}, at: lock_sock
> include/net/sock.h:1474 [inline]
>  #0: 00000000f2de7555 (sk_lock-AF_INET6){+.+.}, at:
> tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
> 1 lock held by syz-executor793/4499:
>  #0: 0000000058a54751 (sk_lock-AF_INET6){+.+.}, at: lock_sock
> include/net/sock.h:1474 [inline]
>  #0: 0000000058a54751 (sk_lock-AF_INET6){+.+.}, at:
> tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
> 1 lock held by syz-executor793/4504:
>  #0: 0000000045694cb9 (sk_lock-AF_INET6){+.+.}, at: lock_sock
> include/net/sock.h:1474 [inline]
>  #0: 0000000045694cb9 (sk_lock-AF_INET6){+.+.}, at:
> tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
> 1 lock held by syz-executor793/4509:
>  #0: 00000000b663e61f (sk_lock-AF_INET6){+.+.}, at: lock_sock
> include/net/sock.h:1474 [inline]
>  #0: 00000000b663e61f (sk_lock-AF_INET6){+.+.}, at:
> tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
> 1 lock held by syz-executor793/4514:
>  #0: 00000000603baf06 (sk_lock-AF_INET6){+.+.}, at: lock_sock
> include/net/sock.h:1474 [inline]
>  #0: 00000000603baf06 (sk_lock-AF_INET6){+.+.}, at:
> tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
> 1 lock held by syz-executor793/4519:
>  #0: 00000000344afb7e (sk_lock-AF_INET6){+.+.}, at: lock_sock
> include/net/sock.h:1474 [inline]
>  #0: 00000000344afb7e (sk_lock-AF_INET6){+.+.}, at:
> tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
> 1 lock held by syz-executor793/4524:
>  #0: 000000004aa3e1ce (sk_lock-AF_INET6){+.+.}, at: lock_sock
> include/net/sock.h:1474 [inline]
>  #0: 000000004aa3e1ce (sk_lock-AF_INET6){+.+.}, at:
> tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
> 1 lock held by syz-executor793/4529:
>  #0: 00000000b6c4b2ea (sk_lock-AF_INET6){+.+.}, at: lock_sock
> include/net/sock.h:1474 [inline]
>  #0: 00000000b6c4b2ea (sk_lock-AF_INET6){+.+.}, at:
> tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
> 1 lock held by syz-executor793/4534:
>  #0: 000000005bae881e (sk_lock-AF_INET6){+.+.}, at: lock_sock
> include/net/sock.h:1474 [inline]
>  #0: 000000005bae881e (sk_lock-AF_INET6){+.+.}, at:
> tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
> 1 lock held by syz-executor793/4539:
>  #0: 000000004b04f235 (sk_lock-AF_INET6){+.+.}, at: lock_sock
> include/net/sock.h:1474 [inline]
>  #0: 000000004b04f235 (sk_lock-AF_INET6){+.+.}, at:
> tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
> 1 lock held by syz-executor793/4544:
>  #0: 00000000b5888be7 (sk_lock-AF_INET6){+.+.}, at: lock_sock
> include/net/sock.h:1474 [inline]
>  #0: 00000000b5888be7 (sk_lock-AF_INET6){+.+.}, at:
> tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
> 1 lock held by syz-executor793/4549:
>  #0: 00000000e902c819 (sk_lock-AF_INET6){+.+.}, at: lock_sock
> include/net/sock.h:1474 [inline]
>  #0: 00000000e902c819 (sk_lock-AF_INET6){+.+.}, at:
> tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
> 1 lock held by syz-executor793/4554:
>  #0: 000000009cd1d95e (sk_lock-AF_INET6){+.+.}, at: lock_sock
> include/net/sock.h:1474 [inline]
>  #0: 000000009cd1d95e (sk_lock-AF_INET6){+.+.}, at:
> tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
> 1 lock held by syz-executor793/4559:
>  #0: 000000001f3edf17 (sk_lock-AF_INET6){+.+.}, at: lock_sock
> include/net/sock.h:1474 [inline]
>  #0: 000000001f3edf17 (sk_lock-AF_INET6){+.+.}, at:
> tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
> 1 lock held by syz-executor793/4563:
>  #0: 00000000802085f8 (sk_lock-AF_INET6){+.+.}, at: lock_sock
> include/net/sock.h:1474 [inline]
>  #0: 00000000802085f8 (sk_lock-AF_INET6){+.+.}, at:
> tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
>
> =============================================
>
> NMI backtrace for cpu 0
> CPU: 0 PID: 892 Comm: khungtaskd Not tainted 4.17.0-rc4+ #52
> 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+0x1b9/0x294 lib/dump_stack.c:113
>  nmi_cpu_backtrace.cold.4+0x19/0xce lib/nmi_backtrace.c:103
>  nmi_trigger_cpumask_backtrace+0x151/0x192 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:138 [inline]
>  check_hung_task kernel/hung_task.c:132 [inline]
>  check_hung_uninterruptible_tasks kernel/hung_task.c:190 [inline]
>  watchdog+0xc10/0xf60 kernel/hung_task.c:249
>  kthread+0x345/0x410 kernel/kthread.c:238
>  ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:412
> Sending NMI from CPU 0 to CPUs 1:
> NMI backtrace for cpu 1
> CPU: 1 PID: 4486 Comm: sshd Not tainted 4.17.0-rc4+ #52
> Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
> Google 01/01/2011
> RIP: 0010:__debug_object_init+0x25/0x12c0 lib/debugobjects.c:371
> RSP: 0018:ffff8801b30f73d0 EFLAGS: 00000a02
> RAX: 1ffff1003661ee3d RBX: ffff8801b30f7440 RCX: ffffffff877175fb
> RDX: 0000000000000001 RSI: ffffffff88d9a5e0 RDI: ffff8801b30f7440
> RBP: ffff8801b30f73f0 R08: ffff8801b0a10740 R09: 0000000000000000
> R10: 0000000000000000 R11: 0000000000000000 R12: ffff8801b30f73c8
> R13: dffffc0000000000 R14: ffff8801b30f74c0 R15: 0000000000000001
> FS:  00007f15863b87c0(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
> CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> CR2: 00007f38c25af9ce CR3: 00000001d0b17000 CR4: 00000000001406e0
> DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
> DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
> Call Trace:
>  debug_object_init_on_stack+0x19/0x20 lib/debugobjects.c:444
>  hrtimer_init_on_stack kernel/time/hrtimer.c:435 [inline]
>  schedule_hrtimeout_range_clock+0xcc/0x470 kernel/time/hrtimer.c:1936
>  schedule_hrtimeout_range+0x2a/0x40 kernel/time/hrtimer.c:1989
>  poll_schedule_timeout+0x11a/0x200 fs/select.c:243
>  do_select+0x1606/0x1ae0 fs/select.c:581
>  core_sys_select+0x768/0xb60 fs/select.c:655
>  kern_select+0x1b7/0x250 fs/select.c:696
>  __do_sys_select fs/select.c:705 [inline]
>  __se_sys_select fs/select.c:702 [inline]
>  __x64_sys_select+0xbe/0x150 fs/select.c:702
>  do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287
>  entry_SYSCALL_64_after_hwframe+0x49/0xbe
> RIP: 0033:0x7f1584758dd3
> RSP: 002b:00007ffe596ca1f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000017
> RAX: ffffffffffffffda RBX: 00007ffe596ca280 RCX: 00007f1584758dd3
> RDX: 000055a15612aab0 RSI: 000055a15612aad0 RDI: 000000000000000c
> RBP: 000055a1559bf8dc R08: 00007ffe596ca220 R09: 0101010101010101
> R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffe596ca288
> R13: 0000000000000000 R14: 00007ffe596ca278 R15: 00007ffe596ca27c
> Code: 84 00 00 00 00 00 55 48 89 e5 41 57 41 56 48 8d 85 f8 fd ff ff 41 55
> 48 c1 e8 03 49 bd 00 00 00 00 00 fc ff df 41 54 4c 8d 65 d8 <53> 48 89 fb 48
> 81 ec 30 02 00 00 48 89 85 d8 fd ff ff 4c 01 e8

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: INFO: task hung in tls_push_record
@ 2018-07-18 11:52     ` Dmitry Vyukov
  0 siblings, 0 replies; 4+ messages in thread
From: Dmitry Vyukov @ 2018-07-18 11:52 UTC (permalink / raw)
  To: syzbot, Herbert Xu,
	open list:HARDWARE RANDOM NUMBER GENERATOR CORE, Jaegeuk Kim
  Cc: aviadye, borisp, davejwatson, David Miller, LKML, netdev, syzkaller-bugs

On Sun, May 20, 2018 at 4:03 AM, syzbot
<syzbot+4006516aae0b06e7050f@syzkaller.appspotmail.com> wrote:
> syzbot has found a reproducer for the following crash on:
>
> HEAD commit:    eb38401c779d net: stmmac: Populate missing callbacks in HW..
> git tree:       net-next
> console output: https://syzkaller.appspot.com/x/log.txt?x=16d0820f800000
> kernel config:  https://syzkaller.appspot.com/x/.config?x=b632d8e2c2ab2c1
> dashboard link: https://syzkaller.appspot.com/bug?extid=4006516aae0b06e7050f
> compiler:       gcc (GCC) 8.0.1 20180413 (experimental)
> syzkaller repro:https://syzkaller.appspot.com/x/repro.syz?x=10f6927b800000
> C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=15b7a20f800000
>
> IMPORTANT: if you fix the bug, please add the following tag to the commit:
> Reported-by: syzbot+4006516aae0b06e7050f@syzkaller.appspotmail.com

Still happens.
Perhaps this is crypto-related, not net-related? That's why net
maintainers are not looking at this? +crypto maintainers


> INFO: task syz-executor793:4489 blocked for more than 120 seconds.
>       Not tainted 4.17.0-rc4+ #52
> "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
> syz-executor793 D23464  4489   4486 0x00000000
> Call Trace:
>  context_switch kernel/sched/core.c:2848 [inline]
>  __schedule+0x801/0x1e30 kernel/sched/core.c:3490
>  schedule+0xef/0x430 kernel/sched/core.c:3549
>  schedule_timeout+0x1b5/0x240 kernel/time/timer.c:1777
>  do_wait_for_common kernel/sched/completion.c:83 [inline]
>  __wait_for_common kernel/sched/completion.c:104 [inline]
>  wait_for_common kernel/sched/completion.c:115 [inline]
>  wait_for_completion+0x3e7/0x870 kernel/sched/completion.c:136
>  crypto_wait_req include/linux/crypto.h:512 [inline]
>  tls_do_encryption net/tls/tls_sw.c:217 [inline]
>  tls_push_record+0xedc/0x13e0 net/tls/tls_sw.c:248
>  tls_sw_sendmsg+0x8d7/0x12b0 net/tls/tls_sw.c:440
>  inet_sendmsg+0x19f/0x690 net/ipv4/af_inet.c:798
>  sock_sendmsg_nosec net/socket.c:629 [inline]
>  sock_sendmsg+0xd5/0x120 net/socket.c:639
>  __sys_sendto+0x3d7/0x670 net/socket.c:1789
>  __do_sys_sendto net/socket.c:1801 [inline]
>  __se_sys_sendto net/socket.c:1797 [inline]
>  __x64_sys_sendto+0xe1/0x1a0 net/socket.c:1797
>  do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287
>  entry_SYSCALL_64_after_hwframe+0x49/0xbe
> RIP: 0033:0x4457d9
> RSP: 002b:00007fa388d06da8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c
> RAX: ffffffffffffffda RBX: 00000000006dac24 RCX: 00000000004457d9
> RDX: 00000000fffffdef RSI: 00000000200005c0 RDI: 0000000000000022
> RBP: 00000000006dac20 R08: 0000000020000000 R09: 000000000000001c
> R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000
> R13: 00007ffd5148ecaf R14: 00007fa388d079c0 R15: 0000000000000001
>
> Showing all locks held in the system:
> 2 locks held by khungtaskd/892:
>  #0: 000000009dfaae0c (rcu_read_lock){....}, at:
> check_hung_uninterruptible_tasks kernel/hung_task.c:175 [inline]
>  #0: 000000009dfaae0c (rcu_read_lock){....}, at: watchdog+0x1ff/0xf60
> kernel/hung_task.c:249
>  #1: 0000000058f79a8d (tasklist_lock){.+.+}, at:
> debug_show_all_locks+0xde/0x34a kernel/locking/lockdep.c:4470
> 1 lock held by rsyslogd/4370:
>  #0: 0000000059c3c7ae (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x1a9/0x1e0
> fs/file.c:766
> 2 locks held by getty/4460:
>  #0: 00000000e25a52c3 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40
> drivers/tty/tty_ldsem.c:365
>  #1: 000000002caea50f (&ldata->atomic_read_lock){+.+.}, at:
> n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131
> 2 locks held by getty/4461:
>  #0: 00000000d38c9806 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40
> drivers/tty/tty_ldsem.c:365
>  #1: 00000000eaffe99d (&ldata->atomic_read_lock){+.+.}, at:
> n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131
> 2 locks held by getty/4462:
>  #0: 00000000cec6abe7 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40
> drivers/tty/tty_ldsem.c:365
>  #1: 0000000000afd91c (&ldata->atomic_read_lock){+.+.}, at:
> n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131
> 2 locks held by getty/4463:
>  #0: 000000003456fca5 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40
> drivers/tty/tty_ldsem.c:365
>  #1: 0000000038a65d91 (&ldata->atomic_read_lock){+.+.}, at:
> n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131
> 2 locks held by getty/4464:
>  #0: 0000000001e783b1 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40
> drivers/tty/tty_ldsem.c:365
>  #1: 000000003ecd2e34 (&ldata->atomic_read_lock){+.+.}, at:
> n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131
> 2 locks held by getty/4465:
>  #0: 000000007ef8b451 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40
> drivers/tty/tty_ldsem.c:365
>  #1: 000000006996c3ed (&ldata->atomic_read_lock){+.+.}, at:
> n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131
> 2 locks held by getty/4466:
>  #0: 00000000d15d9a92 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40
> drivers/tty/tty_ldsem.c:365
>  #1: 00000000ee44bcf4 (&ldata->atomic_read_lock){+.+.}, at:
> n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131
> 1 lock held by syz-executor793/4489:
>  #0: 0000000008c84b0d (sk_lock-AF_INET6){+.+.}, at: lock_sock
> include/net/sock.h:1474 [inline]
>  #0: 0000000008c84b0d (sk_lock-AF_INET6){+.+.}, at:
> tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
> 1 lock held by syz-executor793/4494:
>  #0: 00000000f2de7555 (sk_lock-AF_INET6){+.+.}, at: lock_sock
> include/net/sock.h:1474 [inline]
>  #0: 00000000f2de7555 (sk_lock-AF_INET6){+.+.}, at:
> tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
> 1 lock held by syz-executor793/4499:
>  #0: 0000000058a54751 (sk_lock-AF_INET6){+.+.}, at: lock_sock
> include/net/sock.h:1474 [inline]
>  #0: 0000000058a54751 (sk_lock-AF_INET6){+.+.}, at:
> tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
> 1 lock held by syz-executor793/4504:
>  #0: 0000000045694cb9 (sk_lock-AF_INET6){+.+.}, at: lock_sock
> include/net/sock.h:1474 [inline]
>  #0: 0000000045694cb9 (sk_lock-AF_INET6){+.+.}, at:
> tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
> 1 lock held by syz-executor793/4509:
>  #0: 00000000b663e61f (sk_lock-AF_INET6){+.+.}, at: lock_sock
> include/net/sock.h:1474 [inline]
>  #0: 00000000b663e61f (sk_lock-AF_INET6){+.+.}, at:
> tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
> 1 lock held by syz-executor793/4514:
>  #0: 00000000603baf06 (sk_lock-AF_INET6){+.+.}, at: lock_sock
> include/net/sock.h:1474 [inline]
>  #0: 00000000603baf06 (sk_lock-AF_INET6){+.+.}, at:
> tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
> 1 lock held by syz-executor793/4519:
>  #0: 00000000344afb7e (sk_lock-AF_INET6){+.+.}, at: lock_sock
> include/net/sock.h:1474 [inline]
>  #0: 00000000344afb7e (sk_lock-AF_INET6){+.+.}, at:
> tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
> 1 lock held by syz-executor793/4524:
>  #0: 000000004aa3e1ce (sk_lock-AF_INET6){+.+.}, at: lock_sock
> include/net/sock.h:1474 [inline]
>  #0: 000000004aa3e1ce (sk_lock-AF_INET6){+.+.}, at:
> tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
> 1 lock held by syz-executor793/4529:
>  #0: 00000000b6c4b2ea (sk_lock-AF_INET6){+.+.}, at: lock_sock
> include/net/sock.h:1474 [inline]
>  #0: 00000000b6c4b2ea (sk_lock-AF_INET6){+.+.}, at:
> tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
> 1 lock held by syz-executor793/4534:
>  #0: 000000005bae881e (sk_lock-AF_INET6){+.+.}, at: lock_sock
> include/net/sock.h:1474 [inline]
>  #0: 000000005bae881e (sk_lock-AF_INET6){+.+.}, at:
> tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
> 1 lock held by syz-executor793/4539:
>  #0: 000000004b04f235 (sk_lock-AF_INET6){+.+.}, at: lock_sock
> include/net/sock.h:1474 [inline]
>  #0: 000000004b04f235 (sk_lock-AF_INET6){+.+.}, at:
> tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
> 1 lock held by syz-executor793/4544:
>  #0: 00000000b5888be7 (sk_lock-AF_INET6){+.+.}, at: lock_sock
> include/net/sock.h:1474 [inline]
>  #0: 00000000b5888be7 (sk_lock-AF_INET6){+.+.}, at:
> tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
> 1 lock held by syz-executor793/4549:
>  #0: 00000000e902c819 (sk_lock-AF_INET6){+.+.}, at: lock_sock
> include/net/sock.h:1474 [inline]
>  #0: 00000000e902c819 (sk_lock-AF_INET6){+.+.}, at:
> tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
> 1 lock held by syz-executor793/4554:
>  #0: 000000009cd1d95e (sk_lock-AF_INET6){+.+.}, at: lock_sock
> include/net/sock.h:1474 [inline]
>  #0: 000000009cd1d95e (sk_lock-AF_INET6){+.+.}, at:
> tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
> 1 lock held by syz-executor793/4559:
>  #0: 000000001f3edf17 (sk_lock-AF_INET6){+.+.}, at: lock_sock
> include/net/sock.h:1474 [inline]
>  #0: 000000001f3edf17 (sk_lock-AF_INET6){+.+.}, at:
> tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
> 1 lock held by syz-executor793/4563:
>  #0: 00000000802085f8 (sk_lock-AF_INET6){+.+.}, at: lock_sock
> include/net/sock.h:1474 [inline]
>  #0: 00000000802085f8 (sk_lock-AF_INET6){+.+.}, at:
> tls_sw_sendmsg+0x1b9/0x12b0 net/tls/tls_sw.c:384
>
> =============================================
>
> NMI backtrace for cpu 0
> CPU: 0 PID: 892 Comm: khungtaskd Not tainted 4.17.0-rc4+ #52
> 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+0x1b9/0x294 lib/dump_stack.c:113
>  nmi_cpu_backtrace.cold.4+0x19/0xce lib/nmi_backtrace.c:103
>  nmi_trigger_cpumask_backtrace+0x151/0x192 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:138 [inline]
>  check_hung_task kernel/hung_task.c:132 [inline]
>  check_hung_uninterruptible_tasks kernel/hung_task.c:190 [inline]
>  watchdog+0xc10/0xf60 kernel/hung_task.c:249
>  kthread+0x345/0x410 kernel/kthread.c:238
>  ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:412
> Sending NMI from CPU 0 to CPUs 1:
> NMI backtrace for cpu 1
> CPU: 1 PID: 4486 Comm: sshd Not tainted 4.17.0-rc4+ #52
> Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
> Google 01/01/2011
> RIP: 0010:__debug_object_init+0x25/0x12c0 lib/debugobjects.c:371
> RSP: 0018:ffff8801b30f73d0 EFLAGS: 00000a02
> RAX: 1ffff1003661ee3d RBX: ffff8801b30f7440 RCX: ffffffff877175fb
> RDX: 0000000000000001 RSI: ffffffff88d9a5e0 RDI: ffff8801b30f7440
> RBP: ffff8801b30f73f0 R08: ffff8801b0a10740 R09: 0000000000000000
> R10: 0000000000000000 R11: 0000000000000000 R12: ffff8801b30f73c8
> R13: dffffc0000000000 R14: ffff8801b30f74c0 R15: 0000000000000001
> FS:  00007f15863b87c0(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
> CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> CR2: 00007f38c25af9ce CR3: 00000001d0b17000 CR4: 00000000001406e0
> DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
> DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
> Call Trace:
>  debug_object_init_on_stack+0x19/0x20 lib/debugobjects.c:444
>  hrtimer_init_on_stack kernel/time/hrtimer.c:435 [inline]
>  schedule_hrtimeout_range_clock+0xcc/0x470 kernel/time/hrtimer.c:1936
>  schedule_hrtimeout_range+0x2a/0x40 kernel/time/hrtimer.c:1989
>  poll_schedule_timeout+0x11a/0x200 fs/select.c:243
>  do_select+0x1606/0x1ae0 fs/select.c:581
>  core_sys_select+0x768/0xb60 fs/select.c:655
>  kern_select+0x1b7/0x250 fs/select.c:696
>  __do_sys_select fs/select.c:705 [inline]
>  __se_sys_select fs/select.c:702 [inline]
>  __x64_sys_select+0xbe/0x150 fs/select.c:702
>  do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287
>  entry_SYSCALL_64_after_hwframe+0x49/0xbe
> RIP: 0033:0x7f1584758dd3
> RSP: 002b:00007ffe596ca1f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000017
> RAX: ffffffffffffffda RBX: 00007ffe596ca280 RCX: 00007f1584758dd3
> RDX: 000055a15612aab0 RSI: 000055a15612aad0 RDI: 000000000000000c
> RBP: 000055a1559bf8dc R08: 00007ffe596ca220 R09: 0101010101010101
> R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffe596ca288
> R13: 0000000000000000 R14: 00007ffe596ca278 R15: 00007ffe596ca27c
> Code: 84 00 00 00 00 00 55 48 89 e5 41 57 41 56 48 8d 85 f8 fd ff ff 41 55
> 48 c1 e8 03 49 bd 00 00 00 00 00 fc ff df 41 54 4c 8d 65 d8 <53> 48 89 fb 48
> 81 ec 30 02 00 00 48 89 85 d8 fd ff ff 4c 01 e8

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-07-18 11:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-06 17:37 INFO: task hung in tls_push_record syzbot
2018-05-20  2:03 ` syzbot
2018-07-18 11:52   ` Dmitry Vyukov
2018-07-18 11:52     ` Dmitry Vyukov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.