Bug 2172947 - glibc: sgetsgent_r does not implement ERANGE protocol compatible with sgetsgent [rhel-9.3]
Summary: glibc: sgetsgent_r does not implement ERANGE protocol compatible with sgetsge...
Keywords:
Status: VERIFIED
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: glibc
Version: 9.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Florian Weimer
QA Contact: Sergey Kolosov
URL:
Whiteboard:
Depends On:
Blocks: 2172949 2188641
TreeView+ depends on / blocked
 
Reported: 2023-02-23 15:17 UTC by Florian Weimer
Modified: 2023-08-09 15:17 UTC (History)
8 users (show)

Fixed In Version: glibc-2.34-67.el9
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 2172949 (view as bug list)
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-149806 0 None None None 2023-02-23 15:19:04 UTC
Sourceware 30151 0 P2 ASSIGNED sgetsgent_r does not implement ERANGE protocol compatible with sgetsgent 2023-02-23 15:17:48 UTC

Description Florian Weimer 2023-02-23 15:17:49 UTC
The sgetsgent function checks errno for ERANGE, but sgetsgent_r only returns ERANGE, but does not set errno to ERANGE. As a result, sgetsgent does not detect failure at all, and returns indicating success without filling in the struct sgrp result.

Upstream patch under review:

[PATCH] gshadow: Matching sgetsgent, sgetsgent_r ERANGE handling (bug 30151)
<https://sourceware.org/pipermail/libc-alpha/2023-February/145752.html>


Note You need to log in before you can comment on or make changes to this bug.