syzbot
WARNING in iov_iter_revert
Status:
fixed on 2018/08/07 13:43
Subsystems:
net
[Documentation on labels]
Reported-by: syzbot+c226690f7b3126c5ee04@syzkaller.appspotmail.com
Fix commit:
32da12216e46
tls: Stricter error checking in zerocopy sendmsg path
First crash: 2999d, last: 2931d
Sample crash report:
random: sshd: uninitialized urandom read (32 bytes read)
random: sshd: uninitialized urandom read (32 bytes read)
random: sshd: uninitialized urandom read (32 bytes read)
random: sshd: uninitialized urandom read (32 bytes read)
tls_set_device_offload: netdev not found
WARNING: CPU: 0 PID: 4534 at lib/iov_iter.c:918 iov_iter_revert+0x2ee/0xaa0 lib/iov_iter.c:918
Kernel panic - not syncing: panic_on_warn set ...
CPU: 0 PID: 4534 Comm: syz-executor979 Not tainted 4.17.0+ #94
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
panic+0x22f/0x4de kernel/panic.c:184
__warn.cold.8+0x163/0x1b3 kernel/panic.c:536
report_bug+0x252/0x2d0 lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:178 [inline]
do_error_trap+0x1fc/0x4d0 arch/x86/kernel/traps.c:296
do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:316
invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:992
RIP: 0010:iov_iter_revert+0x2ee/0xaa0 lib/iov_iter.c:918
Code: 74 24 08 4d 89 7d 20 48 89 de 49 83 c7 01 4c 89 f7 e8 76 50 24 fe 49 39 de 72 b7 e8 bc 4f 24 fe e9 3b ff ff ff e8 b2 4f 24 fe <0f> 0b e9 3a ff ff ff e8 a6 4f 24 fe 49 8d 7d 18 48 b8 00 00 00 00
RSP: 0018:ffff8801aff4f788 EFLAGS: 00010293
RAX: ffff8801af8263c0 RBX: 00000000fffffeed RCX: ffffffff8355eb01
RDX: 0000000000000000 RSI: ffffffff8355edae RDI: 0000000000000007
RBP: ffff8801aff4f7e8 R08: ffff8801af8263c0 R09: ffffed003b5c46d6
R10: 0000000000000003 R11: 0000000000000001 R12: 0000000000000113
R13: ffff8801aff4fad0 R14: 0000000000000478 R15: ffff8801b2890040
tls_sw_sendmsg+0xefc/0x12b0 net/tls/tls_sw.c:448
inet_sendmsg+0x19f/0x690 net/ipv4/af_inet.c:798
sock_sendmsg_nosec net/socket.c:633 [inline]
sock_sendmsg+0xd5/0x120 net/socket.c:643
sock_write_iter+0x35a/0x5a0 net/socket.c:912
call_write_iter include/linux/fs.h:1793 [inline]
new_sync_write fs/read_write.c:474 [inline]
__vfs_write+0x6ae/0x9d0 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:0x440a69
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 fb 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fff3d7337b8 EFLAGS: 00000207 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440a69
RDX: 0000000000000478 RSI: 0000000020000740 RDI: 0000000000000003
RBP: 00000000006cb018 R08: 65732f636f72702f R09: 65732f636f72702f
R10: 000000000000000f R11: 0000000000000207 R12: 00000000004022f0
R13: 0000000000402380 R14: 0000000000000000 R15: 0000000000000000
Dumping ftrace buffer:
(ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..
* Struck through repros no longer work on HEAD.