<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/arti/src/socks.rs, branch arti-v1.2.8</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.2.8</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.2.8'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2024-09-24T20:55:25Z</updated>
<entry>
<title>socks users: copy the correct amount in our drain logic.</title>
<updated>2024-09-24T20:55:25Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-09-24T20:55:25Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=dceeb82f7d1154894ab9c7c607d68f8335bb9615'/>
<id>urn:sha1:dceeb82f7d1154894ab9c7c607d68f8335bb9615</id>
<content type='text'>
When calling copy_within, we want to copy the amount of data that
we're keeping; previously, we were copying an extra `action.drain`
bytes, which could have led to a panic.

Spotted by Opara.
</content>
</entry>
<entry>
<title>socks users: detect closed sockets.</title>
<updated>2024-09-24T20:35:07Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-09-24T18:16:42Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=0c595818f713916d94b7b0e4062f953fad7c9799'/>
<id>urn:sha1:0c595818f713916d94b7b0e4062f953fad7c9799</id>
<content type='text'>
Without this check, our socks code can enter an infinite loop
if a socket is closed at the wrong time.

Resolves TROVE-2024-011.

Fixes #1635.
</content>
</entry>
<entry>
<title>Merge branch 'impl-prop-351' into 'main'</title>
<updated>2024-09-24T19:37:55Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-09-24T19:37:55Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=f6121908ab223d5a7e539701e312285cb9b13de8'/>
<id>urn:sha1:f6121908ab223d5a7e539701e312285cb9b13de8</id>
<content type='text'>
socks: Implement proposal 351.

See merge request tpo/core/arti!2401</content>
</entry>
<entry>
<title>socks: Add a comment about interpreting legacy usernames.</title>
<updated>2024-09-24T18:30:34Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-09-24T18:30:34Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=07a82fb3ebe0ce89ee6b875ee9e8fc2869556458'/>
<id>urn:sha1:07a82fb3ebe0ce89ee6b875ee9e8fc2869556458</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge branch 'pessimistic' into 'main'</title>
<updated>2024-09-24T18:04:18Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-09-24T18:04:18Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=53ecd607d208119b930465e58ab52f25860bb485'/>
<id>urn:sha1:53ecd607d208119b930465e58ab52f25860bb485</id>
<content type='text'>
arti SOCKS proxy: Tear down connections when client sends optimistic data

See merge request tpo/core/arti!2443</content>
</entry>
<entry>
<title>arti SOCKS proxy: Tear down connections when client sends optimistic data</title>
<updated>2024-09-24T17:12:16Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2024-09-24T17:07:22Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=87e0109832559dec41a485b268579d58be0de278'/>
<id>urn:sha1:87e0109832559dec41a485b268579d58be0de278</id>
<content type='text'>
We *do* want to support optimistic data, see
  https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2436#note_3081886

However, right now, Arti risks mis-framing bugs if clients do send
optimistic data, which would be quite serious.

Mitigates #1627 / TROVE-2024-010 by replacing the misframing bug with
connection failure.

It doesn't seem so easy to write a test case for this.
</content>
</entry>
<entry>
<title>rtcompat: Rename TcpProvider to NetStreamProvider.</title>
<updated>2024-09-24T13:10:11Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-09-19T11:55:22Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=8c2d84000e4d5ba74e7b6b4e9dac3fc700f618b5'/>
<id>urn:sha1:8c2d84000e4d5ba74e7b6b4e9dac3fc700f618b5</id>
<content type='text'>
(And similarly rename TcpListener to NetStreamListener,
along with their TcpStream/TcpListener associated types.)

These types are about to become generic over addresses,
and therefore shouldn't be named after TCP.

Renaming was done mostly with Rust Analyzer,
except for some macros that needed to be hand-edited.

(I'll revise the comments in the next commit;
this one is all about renaming.)
</content>
</entry>
<entry>
<title>socks: cleanups in interpret_socks_auth</title>
<updated>2024-09-18T23:24:33Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-09-18T23:24:33Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=34033b04e6f91f49bbcba3b9708302e5da85edb9'/>
<id>urn:sha1:34033b04e6f91f49bbcba3b9708302e5da85edb9</id>
<content type='text'>
Introduce an enum, and use explicit `format_code @` syntax.
</content>
</entry>
<entry>
<title>prop351: comment Suggestions from @diziet.</title>
<updated>2024-09-18T23:14:02Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-09-18T23:14:02Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=f5febce7b8510aae78b92531e6742904ee463740'/>
<id>urn:sha1:f5febce7b8510aae78b92531e6742904ee463740</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Socks: isolate streams from different extended-socks formats</title>
<updated>2024-09-18T11:56:37Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-09-18T11:56:37Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=7217bc8058cee81542608ed40f8a6389ca2bc018'/>
<id>urn:sha1:7217bc8058cee81542608ed40f8a6389ca2bc018</id>
<content type='text'>
(These streams would already be isolated by accident, since streams
with an RPC object are always on a client that's isolated from the
main client.  But, as discussed on torspec!280, it's best to do this
sort of thing explicitly.)
</content>
</entry>
</feed>
