| Summary: | Double unlocking in rpc_soc.c | ||
|---|---|---|---|
| Product: | Base System | Reporter: | RyanCai <ryancaicse> |
| Component: | kern | Assignee: | Konstantin Belousov <kib> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | CC: | emaste |
| Priority: | --- | ||
| Version: | Unspecified | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
RyanCai
2022-01-09 04:51:05 UTC
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=6d06bc688eb5a9f9e389b69c388d591a40edc422 commit 6d06bc688eb5a9f9e389b69c388d591a40edc422 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2022-01-09 05:09:22 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2022-01-09 05:36:06 +0000 libc clnt_com_create: relock rpcsoc_lock earlier when port is obtained from portmapper Otherwise on mapper failure we goto error handler which expect rpscoc_lock owned, but we do not. PR: 261051 Reported by: RyanCai <ryancaicse@gmail.com> Sponsored by: The FreeBSD Foundation MFC after: 1 week lib/libc/rpc/rpc_soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=07d32ede469ddc85b7e92921b4a9f1eeb4dbd66f commit 07d32ede469ddc85b7e92921b4a9f1eeb4dbd66f Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2022-01-09 05:09:22 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2022-01-15 00:51:13 +0000 libc clnt_com_create: relock rpcsoc_lock earlier when port is obtained from portmapper PR: 261051 (cherry picked from commit 6d06bc688eb5a9f9e389b69c388d591a40edc422) lib/libc/rpc/rpc_soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) A commit in branch stable/12 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=ac82aa1bf742def55998d27e98496b46c18cfcd5 commit ac82aa1bf742def55998d27e98496b46c18cfcd5 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2022-01-09 05:09:22 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2022-01-15 12:57:40 +0000 libc clnt_com_create: relock rpcsoc_lock earlier when port is obtained from portmapper PR: 261051 (cherry picked from commit 6d06bc688eb5a9f9e389b69c388d591a40edc422) lib/libc/rpc/rpc_soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) |