Bug 2053198
Summary: | rsync segmentation fault | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 9 | Reporter: | Denis Silakov <dsilakov> |
Component: | rsync | Assignee: | Michal Ruprich <mruprich> |
Status: | CLOSED ERRATA | QA Contact: | Ondrej Mejzlik <omejzlik> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 9.0 | CC: | omejzlik |
Target Milestone: | rc | Keywords: | Patch, Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | rsync-3.2.3-11.el9 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-11-15 11:14:47 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Denis Silakov
2022-02-10 16:39:53 UTC
Hi Denis, thanks for the report. Is it possible to reproduce this reliably on your side? Seems like the 'i' should be checked '< 0' before the assignment on line 408. But it would be hard to test this unless someone can reproduce this. Regards, Michal I failed to reproduce this up to now. The problem is that files[-1] in most cases point to some memory which is allowed to be access by the process. That area contains some garbage, but this doesn't lead to the process crash. And yes, check for 'i<0' should be performed in a separate condifiton. I will report it to upstream and send a PR there. Thanks! Created attachment 1863703 [details]
Patch
So I took Wayne's patch(basically your patch Denis) and decided to apply it to the copy-devices.diff before using it on code. Not the most brilliant way I am afraid but at least this way I don't have to add new code from the rsync-patches repo and just fix this one issue. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: rsync security and bug fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:8291 |