| Summary: | RekeyLimit can be ridiculously low and is undocumented. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Jan Iven <jan.iven> | ||||||
| Component: | ssh | Assignee: | Damien Miller <djm> | ||||||
| Status: | CLOSED FIXED | ||||||||
| Severity: | normal | ||||||||
| Priority: | P2 | ||||||||
| Version: | -current | ||||||||
| Hardware: | All | ||||||||
| OS: | Linux | ||||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 1222, 1274 | ||||||||
| Attachments: |
|
||||||||
|
Description
Jan Iven
2005-06-17 01:24:17 AEST
Created attachment 929 [details]
path to set 4k minimum rekeylimit, add to ssh_config man page
hm, I haven't been able to reproduce the hang you have experienced when setting rekeylimit low. Even setting RekeyLimit=16 produces a working session for me. This isn't to say that we shouldn't set a minimum. Created attachment 1015 [details]
Minimum 1k rekeylimit, check for integer wrap
This checks that the RekeyLimit is >= 1024 and raises a fatal() error if it isn't.
It also checks for integer wraparound (because rekey_limit is only a signed int) and fatal()s if it wraps.
The patch should to it I used 4k to make sure that sssion setup hets through, not sure whether all of it fits into 1k. *But if nobody else has seen a hang with low rekeylimits, perhaps you can just close this bug (and eventually re-open).* If your patch goes in, I suggest to add something to the man page, and modify regress/rekey.sh to not try with 16byte rekey interval. could you send a debug trace of a hang with a low rekeylimit? i'd rather fix the problem... The man page addition (with some minor changes) has been applied, thanks. The patch to prevent integer wrap was committed but with a minimum rekeylimit of 16 bytes. Please try to reproduce your original problems and capture a debug trace - low rekey limits should cause bugs. oops, comment #7 should read "low rekey limits should *not* cause bugs". Also, RekeyLimit is documented in ssh_config(5) since early this year. Have you had a chance to retest? No feedback for a year == bug closed. I haven't been able to recreate the problem with a low rekeylimit (the min is capped at 16 now), and the manpage bits have long since gone in. Close resolved bugs after release. |