Bug 242452
Summary: | openssh segfaults if hosts.(allow|deny) used. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Per Steinar Iversen <persteinar.iversen> |
Component: | tcp_wrappers | Assignee: | Tomas Janousek <tjanouse> |
Status: | CLOSED ERRATA | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7 | CC: | k.georgiou, scholnik, tmraz |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | 7.6-47.fc7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2007-06-07 15:59:37 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Per Steinar Iversen
2007-06-04 11:35:46 UTC
I'm sorry but I cannot reproduce it here. Are the /etc/hosts.allow and /etc/hosts.deny really the default ones (empty with nothing except comments)? Which version of tcp_wrappers do you have? Can you try to obtain a stack trace - attach a gdb to the running sshd. It seems to be this line, it works fine for FC5 and FC6 at least: /etc/hosts.allow : ALL: localhost.localdomain localhost6.localdomain6 OK, now with the line from the above comment I can reproduce it, here is a stack trace: #0 0x00002aaaace2304c in strcasecmp () from /lib64/libc.so.6 #1 0x00002aaaaacc9a19 in host_match ( tok=0x7fff5e980e75 "localhost.localdomain", host=0x7fff5e981d00) at hosts_access.c:326 #2 0x00002aaaaacc8f4a in list_match (list=<value optimized out>, request=0x7fff5e981bf0, match_fn=0x2aaaaacc9cf0 <client_match>) at hosts_access.c:216 #3 0x00002aaaaacc9150 in table_match (table=<value optimized out>, request=0x7fff5e981bf0) at hosts_access.c:172 #4 0x00002aaaaacc9319 in hosts_access (request=0x7fff5e981bf0) at hosts_access.c:130 #5 0x00005555555602f6 in main (ac=<value optimized out>, av=<value optimized out>) at sshd.c:1751 This is code in tcp_wrappers library -> reassigning. I get this on an x86_64 platform as well. I found that a single entry in hosts.allow was ok, but a second causes a segfault. Here's the stacktrace I got w/ debuginfo packages installed: Program received signal SIGSEGV, Segmentation fault. *__GI___strcasecmp ( s1=0xffffffffaaece660 <Address 0xffffffffaaece660 out of bounds>, s2=0x2aaaaaece1fc "unknown") at strcasecmp.c:65 65 while ((result = TOLOWER (*p1) - TOLOWER (*p2++)) == 0) #0 *__GI___strcasecmp ( s1=0xffffffffaaece660 <Address 0xffffffffaaece660 out of bounds>, s2=0x2aaaaaece1fc "unknown") at strcasecmp.c:65 #1 0x00002aaaaacc9b19 in host_match ( tok=0x7ffff0ae8055 "hal9000.nrl.navy.mil", host=0x7ffff0ae8ee0) at hosts_access.c:326 #2 0x00002aaaaacc904a in list_match (list=<value optimized out>, request=0x7ffff0ae8dd0, match_fn=0x2aaaaacc9df0 <client_match>) at hosts_access.c:216 #3 0x00002aaaaacc9250 in table_match (table=<value optimized out>, request=0x7ffff0ae8dd0) at hosts_access.c:172 #4 0x00002aaaaacc9419 in hosts_access (request=0x7ffff0ae8dd0) at hosts_access.c:130 #5 0x00005555555602f6 in main (ac=<value optimized out>, av=<value optimized out>) at sshd.c:1751 This suddenly appeared in a development update maybe a couple of months ago, but the machine is rarely used so I can't be more specific. I only recently figured out it was tcp_wrappers causing the problem. tcp_wrappers-7.6-47.fc7 seems to have fixed the problem for me. tcp_wrappers-7.6-47.fc7 has been pushed to the Fedora 7 stable repository. If problems still persist, please make note of it in this bug report. |