INFO: task hung in tls_push_record (2)

4 views
Skip to first unread message

syzbot

unread,
Apr 1, 2021, 2:00:18 PM4/1/21
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 2034d6f0 Linux 4.19.184
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=12b278ced00000
kernel config: https://syzkaller.appspot.com/x/.config?x=42af7daace4bc0cc
dashboard link: https://syzkaller.appspot.com/bug?extid=d4e699df6a662f1cec77

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

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

ieee802154 phy1 wpan1: encryption failed: -22
ieee802154 phy0 wpan0: encryption failed: -22
ieee802154 phy1 wpan1: encryption failed: -22
ieee802154 phy0 wpan0: encryption failed: -22
ieee802154 phy1 wpan1: encryption failed: -22
INFO: task syz-executor.0:31510 blocked for more than 140 seconds.
Not tainted 4.19.184-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.0 D27320 31510 11940 0x00000004
Call Trace:
context_switch kernel/sched/core.c:2828 [inline]
__schedule+0x887/0x2040 kernel/sched/core.c:3517
schedule+0x8d/0x1b0 kernel/sched/core.c:3561
schedule_timeout+0x92d/0xfe0 kernel/time/timer.c:1794
do_wait_for_common kernel/sched/completion.c:83 [inline]
__wait_for_common kernel/sched/completion.c:104 [inline]
wait_for_common+0x29c/0x470 kernel/sched/completion.c:115
crypto_wait_req include/linux/crypto.h:517 [inline]
tls_do_encryption net/tls/tls_sw.c:193 [inline]
tls_push_record+0xec4/0x1370 net/tls/tls_sw.c:228
tls_sw_sendmsg+0xd8b/0x1210 net/tls/tls_sw.c:427
inet_sendmsg+0x132/0x5a0 net/ipv4/af_inet.c:798
smc_sendmsg+0x20f/0x2f0 net/smc/af_smc.c:1487
sock_sendmsg_nosec net/socket.c:622 [inline]
sock_sendmsg+0xc3/0x120 net/socket.c:632
__sys_sendto+0x21a/0x320 net/socket.c:1787
__do_sys_sendto net/socket.c:1799 [inline]
__se_sys_sendto net/socket.c:1795 [inline]
__x64_sys_sendto+0xdd/0x1b0 net/socket.c:1795
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x466459
Code: Bad RIP value.
RSP: 002b:00007ff763ee9188 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000466459
RDX: 0000000000000011 RSI: 0000000020000000 RDI: 0000000000000003
RBP: 00000000004bf9fb R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000040 R11: 0000000000000246 R12: 000000000056bf60
R13: 00007ffc368a58cf R14: 00007ff763ee9300 R15: 0000000000022000

Showing all locks held in the system:
1 lock held by khungtaskd/1570:
#0: 0000000085beb4c0 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4440
1 lock held by in:imklog/7845:
#0: 00000000de86238d (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767
2 locks held by agetty/15228:
#0: 000000006acb29b8 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:272
#1: 000000007ff0cf1c (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x217/0x1950 drivers/tty/n_tty.c:2154
2 locks held by syz-executor.0/31510:
#0: 00000000e0d55092 (sk_lock-AF_SMC){+.+.}, at: lock_sock include/net/sock.h:1510 [inline]
#0: 00000000e0d55092 (sk_lock-AF_SMC){+.+.}, at: smc_sendmsg+0x43/0x2f0 net/smc/af_smc.c:1470
#1: 00000000330718ff (k-sk_lock-AF_INET){+.+.}, at: lock_sock include/net/sock.h:1510 [inline]
#1: 00000000330718ff (k-sk_lock-AF_INET){+.+.}, at: tls_sw_sendmsg+0x1b6/0x1210 net/tls/tls_sw.c:371

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

NMI backtrace for cpu 1
CPU: 1 PID: 1570 Comm: khungtaskd Not tainted 4.19.184-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+0x1fc/0x2ef lib/dump_stack.c:118
nmi_cpu_backtrace.cold+0x63/0xa2 lib/nmi_backtrace.c:101
nmi_trigger_cpumask_backtrace+0x1a6/0x1f0 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline]
watchdog+0x991/0xe60 kernel/hung_task.c:287
kthread+0x33f/0x460 kernel/kthread.c:259
ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 4680 Comm: systemd-journal Not tainted 4.19.184-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:orc_find arch/x86/kernel/unwind_orc.c:150 [inline]
RIP: 0010:unwind_next_frame+0x285/0x1400 arch/x86/kernel/unwind_orc.c:422
Code: 48 89 54 24 30 48 89 74 24 28 44 89 5c 24 20 e8 b1 9a 6e 00 48 8b 54 24 30 48 8b 74 24 28 44 8b 5c 24 20 8b 0c 95 b0 73 17 8c <8d> 56 01 48 b8 00 00 00 00 00 fc ff df 48 8d 3c 95 b0 73 17 8c 49
RSP: 0018:ffff8880a15579f8 EFLAGS: 00000246
RAX: 0000000000000003 RBX: 1ffff110142aaf48 RCX: 0000000000022ad8
RDX: 00000000000097d0 RSI: 00000000000097d0 RDI: ffffffff8c19d2f0
RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000001
R10: ffff8880a1557b87 R11: 0000000000074071 R12: ffff8880a1557b70
R13: ffff8880a1557b5d R14: ffff8880a1557b28 R15: ffffffff8197d0ef
FS: 00007f7bc57b18c0(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7bc25cf008 CR3: 00000000a14e1000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__save_stack_trace+0x9f/0x190 arch/x86/kernel/stacktrace.c:44
save_stack mm/kasan/kasan.c:448 [inline]
set_track mm/kasan/kasan.c:460 [inline]
kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:553
slab_post_alloc_hook mm/slab.h:445 [inline]
slab_alloc mm/slab.c:3397 [inline]
kmem_cache_alloc+0x110/0x370 mm/slab.c:3557
prepare_creds+0x39/0x510 kernel/cred.c:255
do_faccessat+0x94/0x7a0 fs/open.c:359
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f7bc4a6c9c7
Code: 83 c4 08 48 3d 01 f0 ff ff 73 01 c3 48 8b 0d c8 d4 2b 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 b8 15 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d a1 d4 2b 00 f7 d8 64 89 01 48
RSP: 002b:00007ffe26a3ecc8 EFLAGS: 00000246 ORIG_RAX: 0000000000000015
RAX: ffffffffffffffda RBX: 00007ffe26a41be0 RCX: 00007f7bc4a6c9c7
RDX: 00007f7bc54dda00 RSI: 0000000000000000 RDI: 000055c53dc559a3
RBP: 00007ffe26a3ed00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000069 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007ffe26a41be0 R15: 00007ffe26a3f1f0


---
This report 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 syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Jul 31, 2021, 6:06:28 PM7/31/21
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 53bd76690e27 Linux 4.19.200
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=15611804300000
kernel config: https://syzkaller.appspot.com/x/.config?x=64e2049c2212438d
dashboard link: https://syzkaller.appspot.com/bug?extid=d4e699df6a662f1cec77
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=143416d4300000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=164374ae300000

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

INFO: task syz-executor889:8128 blocked for more than 140 seconds.
Not tainted 4.19.200-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor889 D28640 8128 8127 0x00000004
Call Trace:
context_switch kernel/sched/core.c:2828 [inline]
__schedule+0x887/0x2040 kernel/sched/core.c:3517
schedule+0x8d/0x1b0 kernel/sched/core.c:3561
schedule_timeout+0x92d/0xfe0 kernel/time/timer.c:1794
do_wait_for_common kernel/sched/completion.c:83 [inline]
__wait_for_common kernel/sched/completion.c:104 [inline]
wait_for_common+0x29c/0x470 kernel/sched/completion.c:115
crypto_wait_req include/linux/crypto.h:517 [inline]
tls_do_encryption net/tls/tls_sw.c:193 [inline]
tls_push_record+0xec4/0x1370 net/tls/tls_sw.c:228
tls_sw_sendpage+0x8c6/0xd00 net/tls/tls_sw.c:585
inet_sendpage+0x164/0x650 net/ipv4/af_inet.c:815
kernel_sendpage net/socket.c:3581 [inline]
sock_sendpage+0xdf/0x140 net/socket.c:912
pipe_to_sendpage+0x268/0x330 fs/splice.c:452
splice_from_pipe_feed fs/splice.c:503 [inline]
__splice_from_pipe+0x389/0x800 fs/splice.c:627
splice_from_pipe fs/splice.c:662 [inline]
generic_splice_sendpage+0xd4/0x140 fs/splice.c:833
do_splice_from fs/splice.c:852 [inline]
do_splice fs/splice.c:1154 [inline]
__do_sys_splice fs/splice.c:1428 [inline]
__se_sys_splice+0xfe7/0x16d0 fs/splice.c:1408
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x43fd99
Code: Bad RIP value.
RSP: 002b:00007ffe13431268 EFLAGS: 00000246 ORIG_RAX: 0000000000000113
RAX: ffffffffffffffda RBX: 0000000000400488 RCX: 000000000043fd99
RDX: 0000000000000005 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 0000000000000000 R08: 0000000100000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000403620
R13: 431bde82d7b634db R14: 00000000004ae018 R15: 0000000000400488

Showing all locks held in the system:
1 lock held by khungtaskd/1570:
#0: 0000000095b5f741 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441
2 locks held by syz-executor889/8128:
#0: 000000004b3e5d54 (&pipe->mutex/1){+.+.}, at: pipe_lock_nested fs/pipe.c:62 [inline]
#0: 000000004b3e5d54 (&pipe->mutex/1){+.+.}, at: pipe_lock+0x63/0x80 fs/pipe.c:70
#1: 00000000a3973004 (sk_lock-AF_INET6){+.+.}, at: lock_sock include/net/sock.h:1510 [inline]
#1: 00000000a3973004 (sk_lock-AF_INET6){+.+.}, at: tls_sw_sendpage+0x151/0xd00 net/tls/tls_sw.c:525

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

NMI backtrace for cpu 0
CPU: 0 PID: 1570 Comm: khungtaskd Not tainted 4.19.200-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+0x1fc/0x2ef lib/dump_stack.c:118
nmi_cpu_backtrace.cold+0x63/0xa2 lib/nmi_backtrace.c:101
nmi_trigger_cpumask_backtrace+0x1a6/0x1f0 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline]
watchdog+0x991/0xe60 kernel/hung_task.c:287
kthread+0x33f/0x460 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 skipped: idling at native_safe_halt+0xe/0x10 arch/x86/include/asm/irqflags.h:60

Reply all
Reply to author
Forward
0 new messages