[RHEL6.1] periodic automount crash in __strcpy_chk from lookup_nss_mount
Issue
- automount crashes with the following error in /var/log/messages:
automount[30476]: segfault at 0 ip 00007fd52a7324a0 sp 00007fd52bbf48e8 error 4 in libc-2.12.so[7fd52a635000+187000]
- automount crash backtrace:
Program terminated with signal 11, Segmentation fault. #0 __strcpy_chk () at ../sysdeps/x86_64/strcpy_chk.S:71 71 movq (%rsi), %rax /* Read double word (8 bytes). */ (gdb) backtrace #0 __strcpy_chk () at ../sysdeps/x86_64/strcpy_chk.S:71 #1 0x00007fd5283a0881 in strcpy (ap=<value optimized out>, name=<value optimized out>, name_len=<value optimized out>, context=<value optimized out>) at /usr/include/bits/string3.h:107 #2 lookup_mount (ap=<value optimized out>, name=<value optimized out>, name_len=<value optimized out>, context=<value optimized out>) at lookup_ldap.c:2915 #3 0x00007fd52bc44922 in lookup_nss_mount (ap=0x7fd52de8a200, source=0x0, name=0x7fd52bbf5e50 "software", name_len=8) at lookup.c:897 #4 0x00007fd52bc3d390 in do_mount_indirect (arg=<value optimized out>) at indirect.c:813 #5 0x00007fd52b7f87e1 in start_thread (arg=0x7fd52bbf8700) at pthread_create.c:301 #6 0x00007fd52a71b8ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115
- The following syslog messages seen prior to the crash:
Jul 1 09:45:53 linux automount[6071]: key "foobar5.1" not found in map source(s). Jul 1 09:47:20 linux automount[6071]: key "foobar5.1" not found in map source(s). Jul 1 10:43:36 linux snmpd[6253]: Connection from UDP: [10.33.137.5]:35089->[10.33.137.255] REFUSED Jul 1 11:28:41 linux automount[6071]: key ".svn" not found in map source(s). Jul 1 13:10:32 linux automount[6071]: key "desktop.ini" not found in map source(s). Jul 1 13:10:32 linux automount[6071]: key "*" not found in map source(s). Jul 1 13:10:52 linux kernel: __ratelimit: 9 callbacks suppressed Jul 1 13:10:52 linux kernel: automount[9853]: segfault at 0 ip 00007f950122b4a0 sp 00007f943fcf88e8 error 4 in libc-2.12.so[7f950112e000+187000]
Environment
- Red Hat Enterprise Linux 6.1
- autofs-5.0.5-31.el6
- automount with LDAP automount maps
- Red Hat Enterprise Linux 5 may also be affected
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
