Bug 1549199
Summary: | sudo hangs when configuring sudo-io | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Renaud Métrich <rmetrich> | ||||||
Component: | sudo | Assignee: | Radovan Sroka <rsroka> | ||||||
Status: | CLOSED DUPLICATE | QA Contact: | BaseOS QE Security Team <qe-baseos-security> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 7.4 | CC: | jvymazal, mthacker | ||||||
Target Milestone: | rc | ||||||||
Target Release: | --- | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | |||||||||
: | 1549635 (view as bug list) | Environment: | |||||||
Last Closed: | 2018-06-29 12:40:50 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: | |||||||||
Bug Depends On: | |||||||||
Bug Blocks: | 1549635 | ||||||||
Attachments: |
|
Description
Renaud Métrich
2018-02-26 16:46:02 UTC
EDIT: the child becomes a zombie, while the parent waits forever. Looks like the SIGCHILD was missed by the parent. Note: almost 100% reproducible on Fedora 26. Created attachment 1401396 [details]
sudo debug output of a working run
Created attachment 1401397 [details]
sudo debug output of a non-working run
From the sudo_debug outputs, we can see that the SIGCHILD is caught correctly. The difference between ok and ko runs seems to be in a write to tty happening, causing the FD to remain alive: In sudo_debug.ko: 687 sudo[parent] sudo_ev_add_v1: adding event 0x55727331d830 to base 0x5572733176b0, fd 10, events 4 688 sudo[parent] -> sudo_ev_add_impl @ ./event_poll.c:77 689 sudo[parent] <- sudo_ev_add_impl @ ./event_poll.c:118 := 0 690 sudo[parent] <- sudo_ev_add_v1 @ ./event.c:214 := 0 691 sudo[parent] -> sudo_ev_loop_v1 @ ./event.c:281 692 sudo[parent] -> sudo_ev_scan_impl @ ./event_poll.c:142 693 sudo[parent] sudo_ev_scan_impl: 1 fds ready 694 sudo[parent] sudo_ev_scan_impl: polled fd 10, events 4, activating 0x55727331d830 695 sudo[parent] <- sudo_ev_scan_impl @ ./event_poll.c:183 := 1 696 sudo[parent] -> sudo_ev_del_v1 @ ./event.c:220 697 sudo[parent] sudo_ev_del_v1: removing event 0x55727331d830 from base 0x5572733176b0, fd 10, events 4 698 sudo[parent] -> sudo_ev_del_impl @ ./event_poll.c:124 699 sudo[parent] <- sudo_ev_del_impl @ ./event_poll.c:133 := 0 700 sudo[parent] <- sudo_ev_del_v1 @ ./event.c:268 := 0 701 sudo[parent] -> write_callback @ ./exec_pty.c:605 702 sudo[parent] wrote 3258 bytes to fd 10 Not found in sudo_debug.ok: I cannot reproduce the issue can you provide some more reliable reproducer? I reproduced easily on latest RHEL7.5 using the reproducer in Description. After some iterations, the command shows this: -------- 8< ---------------- 8< ---------------- 8< -------- ... systemd-readahead-done.timer indirect systemd-tmpfiles-clean.timer static 262 unit files listed. -------- 8< ---------------- 8< ---------------- 8< -------- Whereas a date should be printed (next iteration). Sudo is in defunct: -------- 8< ---------------- 8< ---------------- 8< -------- # ps -eaf | grep sudo root 3201 2193 0 14:51 pts/0 00:00:00 sudo -n -- systemctl --no-pager list-unit-files root 3202 3201 0 14:51 ? 00:00:00 [sudo] <defunct> root 3212 1154 0 14:51 ttyS0 00:00:00 grep --color=auto sudo -------- 8< ---------------- 8< ---------------- 8< -------- *** This bug has been marked as a duplicate of bug 1560657 *** |