lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CALCETrXr8vRPqEjhSg7=adQcM7OfWs_+fn2xP5OQeLXAaLzHHQ@mail.gmail.com>
Date:   Fri, 17 Feb 2023 15:13:14 -0800
From:   Andy Lutomirski <luto@...nel.org>
To:     Herbert Xu <herbert@...dor.apana.org.au>
Cc:     Andy Lutomirski <luto@...nel.org>,
        Dave Chinner <david@...morbit.com>,
        torvalds@...ux-foundation.org, metze@...ba.org, axboe@...nel.dk,
        linux-fsdevel@...r.kernel.org, linux-api@...r.kernel.org,
        io-uring@...r.kernel.org, linux-kernel@...r.kernel.org,
        viro@...iv.linux.org.uk, samba-technical@...ts.samba.org
Subject: Re: copy on write for splice() from file to pipe?

> On Feb 13, 2023, at 5:22 PM, Herbert Xu <herbert@...dor.apana.org.au> wrote:
>
> On Mon, Feb 13, 2023 at 10:01:27AM -0800, Andy Lutomirski wrote:
>>
>> There's a difference between "kernel speaks TCP (or whatever)
>> correctly" and "kernel does what the application needs it to do".
>
> Sure I get where you are coming from.  It's just that the other
> participants in the discussion were thinking of stability for the
> sake of TCP (or TLS or some other protocol the kernel implements)
> and that simply is a non-issue.

I can certainly imagine TLS or similar protocols breaking if data
changes if the implementation is too clever and retransmission
happens.  Suppose 2000 bytes are sent via splice using in-kernel TLS,
and it goes out on the wire as two TCP segments.  The first segment is
dropped but the second is received.  The kernel resends the first
segment using different data.  This really ought to cause an integrity
check at the far end to fail.

I don't know if any existing kTLS is clever enough to regenerate
outgoing data when it needs to retransmit a segment, but it would be
an interesting optimization for serving static content over TLS.



>
> Having a better way to communicate completion to the user would be
> nice.  The only way to do it right now seems to be polling with
> SIOCOUTQ.
>
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ