syzbot


INFO: task hung in tls_sw_sendpage (2)

Status: auto-closed as invalid on 2022/06/11 00:00
Subsystems: net
[Documentation on labels]
First crash: 876d, last: 775d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in tls_sw_sendpage net 1 1129d 1129d 0/26 auto-closed as invalid on 2021/06/21 18:51
upstream INFO: task hung in tls_sw_sendpage (3) net 30 427d 423d 22/26 fixed on 2023/06/08 14:41
upstream INFO: task can't die in tls_sw_sendpage net 3 978d 1019d 0/26 auto-closed as invalid on 2021/11/20 04:49

Sample crash report:
INFO: task syz-executor.1:24630 blocked for more than 143 seconds.
      Not tainted 5.17.0-rc7-syzkaller-00235-gaad611a868d1 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.1  state:D stack:25424 pid:24630 ppid:  3646 flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:4995 [inline]
 __schedule+0xa94/0x4910 kernel/sched/core.c:6304
 schedule+0xd2/0x260 kernel/sched/core.c:6377
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6436
 __mutex_lock_common kernel/locking/mutex.c:673 [inline]
 __mutex_lock+0xa32/0x12f0 kernel/locking/mutex.c:733
 tls_sw_sendpage+0x7f/0xe0 net/tls/tls_sw.c:1291
 inet_sendpage+0xd0/0x140 net/ipv4/af_inet.c:833
 kernel_sendpage.part.0+0x1a0/0x340 net/socket.c:3492
 kernel_sendpage net/socket.c:3489 [inline]
 sock_sendpage+0xe5/0x140 net/socket.c:1007
 pipe_to_sendpage+0x2ad/0x380 fs/splice.c:364
 splice_from_pipe_feed fs/splice.c:418 [inline]
 __splice_from_pipe+0x43e/0x8a0 fs/splice.c:562
 splice_from_pipe fs/splice.c:597 [inline]
 generic_splice_sendpage+0xd4/0x140 fs/splice.c:746
 do_splice_from fs/splice.c:767 [inline]
 direct_splice_actor+0x110/0x180 fs/splice.c:936
 splice_direct_to_actor+0x34b/0x8c0 fs/splice.c:891
 do_splice_direct+0x1b3/0x280 fs/splice.c:979
 do_sendfile+0xaf2/0x1250 fs/read_write.c:1245
 __do_sys_sendfile64 fs/read_write.c:1310 [inline]
 __se_sys_sendfile64 fs/read_write.c:1296 [inline]
 __x64_sys_sendfile64+0x1cc/0x210 fs/read_write.c:1296
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f453ec31049
RSP: 002b:00007f453d5a6168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f453ed43f60 RCX: 00007f453ec31049
RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000004
RBP: 00007f453ec8b08d R08: 0000000000000000 R09: 0000000000000000
R10: 000000007ffff000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f453f277b1f R14: 00007f453d5a6300 R15: 0000000000022000
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/26:
 #0: ffffffff8bb84ba0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6460
2 locks held by getty/3280:
 #0: ffff88814b23d098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:244
 #1: ffffc90002b662e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xcf0/0x1230 drivers/tty/n_tty.c:2075
3 locks held by kworker/1:18/4745:
 #0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
 #0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline]
 #0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline]
 #0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:631 [inline]
 #0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:658 [inline]
 #0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x890/0x1650 kernel/workqueue.c:2278
 #1: ffffc9000424fdb8 ((work_completion)(&(&sw_ctx_tx->tx_work.work)->work)){+.+.}-{0:0}, at: process_one_work+0x8c4/0x1650 kernel/workqueue.c:2282
 #2: ffff8880785b0cd8 (&ctx->tx_lock){+.+.}-{3:3}, at: tx_work_handler+0x127/0x190 net/tls/tls_sw.c:2299
1 lock held by syz-executor.1/24630:
 #0: ffff8880785b0cd8 (&ctx->tx_lock){+.+.}-{3:3}, at: tls_sw_sendpage+0x7f/0xe0 net/tls/tls_sw.c:1291

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

NMI backtrace for cpu 0
CPU: 0 PID: 26 Comm: khungtaskd Not tainted 5.17.0-rc7-syzkaller-00235-gaad611a868d1 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
 nmi_cpu_backtrace.cold+0x47/0x144 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x1e6/0x230 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:212 [inline]
 watchdog+0xc1d/0xf50 kernel/hung_task.c:369
 kthread+0x2e9/0x3a0 kernel/kthread.c:377
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 2876 Comm: kworker/1:2 Not tainted 5.17.0-rc7-syzkaller-00235-gaad611a868d1 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events_power_efficient fb_flashcursor
RIP: 0010:drm_fbdev_use_iomem.isra.0+0x0/0x200 drivers/gpu/drm/drm_fb_helper.c:2095
Code: e9 ad fd ff ff 48 89 44 24 08 e8 1b 58 6a fd 48 8b 44 24 08 e9 69 fd ff ff e8 0c 58 6a fd e9 43 fd ff ff 0f 1f 80 00 00 00 00 <41> 54 55 53 48 89 fb e8 54 de 22 fd 48 8d bb d8 00 00 00 48 b8 00
RSP: 0018:ffffc90004227aa0 EFLAGS: 00000246
RAX: dffffc0000000000 RBX: ffff88801a1b4300 RCX: 0000000000000000
RDX: 1ffff11003428895 RSI: ffffffff8455fc5c RDI: ffff88801a338000
RBP: ffff88801a144000 R08: 0000000000000000 R09: ffff88801a1b435f
R10: ffffffff8416f4c7 R11: 0000000000000000 R12: 0000000000000000
R13: ffff88801a1444a8 R14: ffffc90004227c08 R15: ffff88801a144000
FS:  0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff906ed0d8 CR3: 0000000019644000 CR4: 00000000003506e0
Call Trace:
 <TASK>
 drm_fbdev_fb_imageblit+0x43/0x350 drivers/gpu/drm/drm_fb_helper.c:2285
 soft_cursor+0x514/0xa30 drivers/video/fbdev/core/softcursor.c:74
 bit_cursor+0x11bc/0x1770 drivers/video/fbdev/core/bitblit.c:377
 fb_flashcursor+0x38b/0x430 drivers/video/fbdev/core/fbcon.c:387
 process_one_work+0x9ac/0x1650 kernel/workqueue.c:2307
 worker_thread+0x657/0x1110 kernel/workqueue.c:2454
 kthread+0x2e9/0x3a0 kernel/kthread.c:377
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>
----------------
Code disassembly (best guess):
   0:	e9 ad fd ff ff       	jmpq   0xfffffdb2
   5:	48 89 44 24 08       	mov    %rax,0x8(%rsp)
   a:	e8 1b 58 6a fd       	callq  0xfd6a582a
   f:	48 8b 44 24 08       	mov    0x8(%rsp),%rax
  14:	e9 69 fd ff ff       	jmpq   0xfffffd82
  19:	e8 0c 58 6a fd       	callq  0xfd6a582a
  1e:	e9 43 fd ff ff       	jmpq   0xfffffd66
  23:	0f 1f 80 00 00 00 00 	nopl   0x0(%rax)
* 2a:	41 54                	push   %r12 <-- trapping instruction
  2c:	55                   	push   %rbp
  2d:	53                   	push   %rbx
  2e:	48 89 fb             	mov    %rdi,%rbx
  31:	e8 54 de 22 fd       	callq  0xfd22de8a
  36:	48 8d bb d8 00 00 00 	lea    0xd8(%rbx),%rdi
  3d:	48                   	rex.W
  3e:	b8                   	.byte 0xb8

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/03/12 23:54 upstream aad611a868d1 9e8eaa75 .config console log report info ci-upstream-kasan-gce INFO: task hung in tls_sw_sendpage
2022/03/10 15:24 upstream 3bf7edc84a9e 9e8eaa75 .config console log report info ci-upstream-kasan-gce-selinux-root INFO: task hung in tls_sw_sendpage
2022/02/12 11:29 upstream 83e396641110 8b9ca619 .config console log report info ci-upstream-kasan-gce INFO: task hung in tls_sw_sendpage
2022/02/11 18:20 upstream f1baf68e1383 8b9ca619 .config console log report info ci-upstream-kasan-gce INFO: task hung in tls_sw_sendpage
2022/02/06 19:38 upstream d8ad2ce873ab a7dab638 .config console log report info ci-upstream-kasan-gce INFO: task hung in tls_sw_sendpage
2022/02/06 01:05 upstream 90c9e950c0de a7dab638 .config console log report info ci-upstream-kasan-gce INFO: task hung in tls_sw_sendpage
2022/02/01 21:43 upstream 9f7fb8de5d9b c1c1631d .config console log report info ci-upstream-kasan-gce INFO: task hung in tls_sw_sendpage
2021/12/13 22:16 upstream 2585cf9dfaad 49ca1f59 .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in tls_sw_sendpage
2021/12/14 00:57 net-old 884d2b845477 5d14b1ea .config console log report info ci-upstream-net-this-kasan-gce INFO: task hung in tls_sw_sendpage
2021/12/02 05:51 net-next-old 10184da91666 61f86278 .config console log report info ci-upstream-net-kasan-gce INFO: task hung in tls_sw_sendpage
* Struck through repros no longer work on HEAD.