Bug 10158 - netbios related samba process consume 100% CPU
netbios related samba process consume 100% CPU
Product: Samba 4.0
Classification: Unclassified
Component: Other
All All
: P5 major
: ---
Assigned To: Karolin Seeger
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2013-09-19 18:30 UTC by Matthieu Patou
Modified: 2013-09-23 07:26 UTC (History)
1 user (show)

See Also:

Proposed patch (1.11 KB, patch)
2013-09-19 18:31 UTC, Matthieu Patou
vl: review+

Note You need to log in before you can comment on or make changes to this bug.
Description Matthieu Patou 2013-09-19 18:30:45 UTC
When sending a 0 bytes UDP packet to nbt task in Samba AD, the process will loop infinitely causing a huge consumption of CPU.
The nbt service is not denied, it's still processing events.
Comment 1 Matthieu Patou 2013-09-19 18:31:20 UTC
Created attachment 9231 [details]
Proposed patch
Comment 2 Matthieu Patou 2013-09-19 18:32:25 UTC
The attached patch was tested successfully on a build from master branch.
Comment 3 Jeremy Allison 2013-09-20 01:43:50 UTC
Re-assigning to Karolin for inclusion in 4.1.0 and 4.0.next.

Comment 4 Karolin Seeger 2013-09-20 07:11:31 UTC
Pushed to autobuild-v4-1-test and autobuild-v4-0-test.
Comment 5 Karolin Seeger 2013-09-23 07:26:18 UTC
Pushed to v4-1-test and v4-0-test.
Closing out bug report.