Red Hat Bugzilla – Bug 1512414
tevent can cause a Samba file corruption bug under heavy threaded load
Last modified: 2018-04-23 03:58:11 EDT
Description of problem: A race condition in the tevent threaded code can cause tevent_common_wakeup_fd(tctx->wakeup_fd) to be called where wakeup_fd is being read out of reused memory unprotected by mutex lock (tctx may no longer exist). If the reused memory happens to point to a wakeup_fd value that matches a file descriptor in use by smbd to write to a on-disk file, file corruption will result.
This bug is for Samba more important than a security release because it can corrupt on disk data we try to avoid in any circumstance!
I don't think so or there would be one in the upstream testsuite.
How to verify this bug?
(In reply to shridhar from comment #8) > How to verify this bug? Just with regression testing.
verified with sssd-1.16.0-9.el7.x86_64 No error/failures found from regression runs
Run the tevent test suite. I think it is part of the RPM build ...
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:0887