From b7bda87ead4a53bb792dbbfb6079aad8cd4170de Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 12 Oct 2013 21:44:08 +0000 Subject: cmogstored 1.3.1 - fix for an undocumented feature This release fixes a bug which only affects users of the undocumented multi-process configuration feature (which is also multi-threaded). * avoid use-after-free with multi-process setups readdir on the same DIR pointer is undefined if DIR was inherited by multiple children. Using the reentrant readdir_r would not have helped, since the underlying file descriptor and kernel file handle were still shared (and we need rewinddir, too). This readdir usage bug existed in cmogstored since the earliest releases, but was harmless until the cmogstored 1.3 series. This misuse of readdir lead to hitting a leftover call to free(). So this bug only manifested since commit 1fab1e7a7f03f3bc0abb1b5181117f2d4605ce3b (svc: implement top-level by_mog_devid hash) Fortunately, these bugs only affect users of the undocumented multi-process feature (not just multi-threaded). --- README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README b/README index 546199e..ad88e1b 100644 --- a/README +++ b/README @@ -56,7 +56,7 @@ Source tarballs suitable for distribution are housed here: * http://bogomips.org/cmogstored/files/ The latest stable release is: - http://bogomips.org/cmogstored/files/cmogstored-1.3.0.tar.gz + http://bogomips.org/cmogstored/files/cmogstored-1.3.1.tar.gz See http://bogomips.org/cmogstored/NEWS for release notes -- cgit v1.2.3-24-ge0c7