[Samba] ERROR: string overflow in safe_strcpy
c-ssugimoto at hitachijoho.com
c-ssugimoto at hitachijoho.com
Fri Nov 30 06:33:36 GMT 2007
Hello All,
Our samba server rarely shows up follwing message in syslog.
When this message appears, CPU average will be pretty high.
winbindd[9585]: [2007/11/28 15:55:02, 0] lib/util_str.c:safe_strcpy_fn(659)
winbindd[9585]: ERROR: string overflow by 1 (256 - 255) in safe_strcpy [01092-6821
winbindd[9585]: S-1-5]
Hardware: Dell PowerEdge 2950
OS: Red Hat Enterprise Linux ES4 Update 4
Kernel: 2.6.9-55.0.2.ELsmp
RPM packages are:
samba-3.0.10-1.4E.12.2
samba-common-3.0.10-1.4E.12.2
samba-client-3.0.10-1.4E.12.2
pam_krb5-2.1.8-1
krb5-libs-1.3.4-49
krb5-workstation-1.3.4-49
krb5-devel-1.3.4-49
Samba server is a member server of Win2003 R2 Active Directory.
And also, winbindd works with idmap_rid option.
My smb.conf is as below.
[global]
workgroup = MYDOMAIN
log file = /var/log/samba/%m.log
max log size = 50
security = ADS
password server = ad.mydomain.com
encrypt passwords = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = no
idmap uid = 10000-50000
idmap gid = 10000-50000
idmap backend = idmap_rid:MYDOMAIN=10000-50000
allow trusted domains = no
template shell = /bin/false
winbind use default domain = yes
realm = MYDOMAIN.COM
netbios name = pop
winbind cache time = 900
winbind separator = @
template homedir = /home/%U
Obey pam restrictions = yes
Does anyone have Knowledge or experienced?
Any help is appreciated,
Satoshi
More information about the samba
mailing list