Re: [PATCH net] tls: Stricter error checking in zerocopy sendmsg path

2018-07-16 Thread David Miller
From: Dave Watson Date: Thu, 12 Jul 2018 08:03:43 -0700 > In the zerocopy sendmsg() path, there are error checks to revert > the zerocopy if we get any error code. syzkaller has discovered > that tls_push_record can return -ECONNRESET, which is fatal, and > happens after the point at which it is

[PATCH net] tls: Stricter error checking in zerocopy sendmsg path

2018-07-12 Thread Dave Watson
In the zerocopy sendmsg() path, there are error checks to revert the zerocopy if we get any error code. syzkaller has discovered that tls_push_record can return -ECONNRESET, which is fatal, and happens after the point at which it is safe to revert the iter, as we've already passed the memory to do