Bug 1827275
| Summary: | ptp4l fails on zero-length message | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Miroslav Lichvar <mlichvar> |
| Component: | linuxptp | Assignee: | Miroslav Lichvar <mlichvar> |
| Status: | CLOSED ERRATA | QA Contact: | Yalin.Li <yalli> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 8.2 | CC: | psklenar, yalli |
| Target Milestone: | rc | Keywords: | FastFix, Patch, Reproducer, Triaged |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | linuxptp-2.0-5.el8 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-11-04 02:45:41 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
Miroslav Lichvar
2020-04-23 14:12:46 UTC
reproduced in linuxptp-2.0-4.el8.x86_64: [root@dell-per740-46 ~]# rpm -q linuxptp linuxptp-2.0-4.el8.x86_64 [root@dell-per740-46 ~]# [root@dell-per740-46 ~]# ptp4l -i lo -mS & [1] 18800 [root@dell-per740-46 ~]# ptp4l[2496.000]: port 1: INITIALIZING to LISTENING on INIT_COMPLETE ptp4l[2496.000]: port 0: INITIALIZING to LISTENING on INIT_COMPLETE ptp4l[2502.131]: port 1: LISTENING to MASTER on ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES ptp4l[2502.131]: selected local clock 000000.fffe.000000 as best master ptp4l[2502.131]: assuming the grand master role [root@dell-per740-46 ~]# socat udp4:127.0.0.1:320,shut-null /dev/null <------- send message here ptp4l[2518.237]: recvmsg failed: No such device or address ptp4l[2518.237]: port 1: recv message failed ptp4l[2518.237]: port 1: MASTER to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED) <-------ptp4l enter FAULTY here [root@dell-per740-46 ~]# [root@dell-per740-46 ~]# ptp4l[2534.238]: port 1: FAULTY to LISTENING on INIT_COMPLETE ptp4l[2541.231]: port 1: LISTENING to MASTER on ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES ptp4l[2541.231]: selected local clock 000000.fffe.000000 as best master ptp4l[2541.231]: assuming the grand master role Verified on linuxptp-2.0-5.el8.x86_64: [root@dell-per740-46 ~]# ptp4l -i lo -mS & [1] 17844 [root@dell-per740-46 ~]# ptp4l[463.819]: port 1: INITIALIZING to LISTENING on INIT_COMPLETE ptp4l[463.820]: port 0: INITIALIZING to LISTENING on INIT_COMPLETE ptp4l[471.000]: port 1: LISTENING to MASTER on ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES ptp4l[471.000]: selected local clock 000000.fffe.000000 as best master ptp4l[471.000]: assuming the grand master role [root@dell-per740-46 ~]# socat udp4:127.0.0.1:320,shut-null /dev/null <------- send message here ptp4l[718.866]: port 1: bad message [root@dell-per740-46 ~]# [root@dell-per740-46 ~]# rpm -q linuxptp linuxptp-2.0-5.el8.x86_64 [root@dell-per740-46 ~]# 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 (linuxptp bug fix and enhancement 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/RHBA-2020:4661 |