From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2) Gecko/20030102 Description of problem: I upgraded to latest samba last night, and since then netlogon stopped working, it causes smbd to start eating lots of CPU. Logs say (repeatedly many times per second): [2003/03/19 11:10:01, 0] lib/util_str.c:string_sub(1217) ERROR: string overflow by 1 in string_sub(%g, 7) This comes from having logon script = %g.bat in smb.conf I traced this to probably be a known error fixed in 2.2.7a. I extracted the fix from the patch from samba.org and am rebuilding the RPM now to see if it helps. Version-Release number of selected component (if applicable): samba-2.2.7-2.7.2 How reproducible: Always Steps to Reproduce: 1. put something in logon script 2. start samba 3. any machine trying to login should trigger the bug Actual Results: Samba starts logging lots of errors (see above) and eat lots of CPU. People report they can't login. Expected Results: There should be no errors. Additional info: I'm waiting for the rebuild to complete, will report later.
Created attachment 90658 [details] Extracted from samba.org's patch 2.2.7->2.2.7a This should fix the bug, I'm testing right now.
Ok, the test was sucessful, people report netlogon working, I don't get any more errors and smbd isn't DoSed anymore. Please apply.
An errata has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2003-138.html
*** Bug 87969 has been marked as a duplicate of this bug. ***