Hi,
This doesn't seem to have moved since the kernel test robot's
"__rds_conn_path_error undefined" report (rds_conn_path_error() is not
exported to rds_tcp). I reached the same fix independently, with
measurements that may help it land:
- stock 7.0: 63.7 MB of h_len = 0xFFFFFFFF traffic in 64-byte writes pins
about 1.6 GB, then "Kernel panic - not syncing: System is deadlocked on
memory";
- the reset of t_tinc in your version is necessary. A variant that only
returned -EMSGSIZE delivered a 0-byte message with h_len 0xFFFFFFFF to a
bound socket on the next byte (recvmsg(MSG_TRUNC) returns -1), because
__tcp_read_sock() ignores desc->error;
- rds_conn_path_drop(cp, false) builds, is already used from softirq by
the state-change callback, and with the same reset, desc->count = 0 and
left = 0, 12 GB of the attack stream left memory flat. Without
desc->count = 0, it re-parsed the payload as headers (5.4M rejects in 3.6 s).
Will you send a v2 with rds_conn_path_drop()? If not, I can post one that
credits you.
Disclosure: this was found and tested with an AI assistant (Claude),
following Documentation/process/coding-assistants.rst. The test harnesses
and measurements are from runs on my own lab machines, which I checked.
James Sawyer
Re: [PATCH net 1/1] net: rds: reject oversized TCP receive messages
- From
- jame…@outlook.com (James Sawyer)
- Organization
- Usenet Network
- Message-ID
- <1796…@jamessawyer.co.uk>
- Date
- Newsgroups
- linux.kernel.netdev