Update Red Hat Copyright Notices
[nbdkit.git] / docs / nbdkit-release-notes-1.28.pod
blob338d44bb5d816134162033f7d0e7d17078ebb7cb
1 =head1 NAME
3 nbdkit-release-notes-1.28 - release notes for nbdkit 1.28
5 =head1 DESCRIPTION
7 These are the release notes for nbdkit stable release 1.28.
8 This describes the major changes since 1.26.
10 nbdkit 1.28.0 was released on B<23 September 2021>.
12 =head2 Security
14 =head3 CVE-2021-3716 reset structured replies on starttls
16 nbdkit was vulnerable to injected plaintext when upgrading to a secure
17 connection.  For the full announcement see
18 L<https://www.redhat.com/archives/libguestfs/2021-August/msg00083.html>
19 (Eric Blake).
21 All past security issues and information about how to report new ones
22 can be found in L<nbdkit-security(1)>.
24 =head2 Plugins
26 L<nbdkit-data-plugin(1)> has new C<leE<lt>NNE<gt>:> and
27 C<beE<lt>NNE<gt>:> prefixes for little and big endian words.  Also the
28 plugin tries much harder to optimize expressions.  The test suite has
29 been greatly expanded to catch potential regressions.
31 L<nbdkit-floppy-plugin(1)> now allows you to reserve free space (Nolan
32 Leake).
34 L<nbdkit-ssh-plugin(1)> no longer references SHA1 host keys as part of
35 the effort to remove insecure algorithms (Daniel BerrangĂ©).
37 L<nbdkit-vddk-plugin(1)> reports C<can_flush> and C<can_fua> based on
38 what the version of VDDK supports.  New debug flag I<-D vddk.stats=1>
39 prints the amount of time spent in VDDK calls on exit which can be
40 useful for profiling performance.
42 =head2 Filters
44 L<nbdkit-cow-filter(1)> and L<nbdkit-cache-filter(1)> no longer break
45 up large read requests into page-sized requests.  In addition the
46 default block size for both filters is now 64K.  Both changes greatly
47 improve performance.
49 L<nbdkit-cache-filter(1)> has a new C<cache-on-read=/PATH> parameter
50 allowing callers to enable and disable the cache-on-read feature at
51 runtime.  Also there is a new C<cache-min-block-size> parameter
52 letting you select the block size at runtime (thanks Martin
53 Kletzander).
55 L<nbdkit-cow-filter(1)> has a new C<cow-on-read> parameter which works
56 similarly to the corresponding cache filter feature.  The new
57 C<cow-block-size> parameter lets you select the block size at runtime.
59 L<nbdkit-cow-filter(1)> has less verbose debugging.  To restore the
60 old debug output use I<-D cow.verbose=1>
62 L<nbdkit-delay-filter(1)> has new C<delay-open> and C<delay-close>
63 parameters to inject delays when clients connect and disconnect.
64 Delay filter parameters are now parsed more accurately (thanks Ming
65 Xie).
67 =head2 Language bindings
69 The OCaml bindings now call C<caml_shutdown> when unloading the
70 plugin.  This causes C<Stdlib.at_exit> handlers to run correctly,
71 closes file descriptors, releases dependent shared libraries and frees
72 memory.  Valgrind on OCaml plugins should not show any false positives
73 about leaked memory.
75 OCaml and Python bindings may now use the C<.cleanup> method.
77 References to Python 2 in L<nbdkit-python-plugin(3)> have been removed.
79 =head2 Server
81 Fix captive nbdkit C<$uri> variable so when TLS is used the URI is
82 constructed with the C<nbds:> prefix.  Additionally add a new variable
83 C<$tls> which can be used by the subprocess to tell if TLS is enabled.
85 Debug messages are now printed atomically.  This means that debug
86 messages are no longer broken up across multiple lines if there are
87 other processes writing to stderr at the same time (which often
88 happened when using captive nbdkit).
90 Enhanced valgrind support (F<./configure --enable-valgrind>) can now
91 be enabled safely and with no performance impact even in production
92 builds (Eric Blake).
94 =head2 API
96 Plugins or filters using C<nbdkit_nanosleep> now don't hang if the
97 client closes the socket abruptly (thanks Ming Xie).
99 =head2 Bug fixes
101 L<nbdkit-data-plugin(1)> and L<nbdkit-memory-plugin(1)> using
102 allocator=malloc no longer crash because of memory corruption in some
103 corner cases (only seen on s390x, but could happen on other
104 architectures).  Meanwhile C<allocator=zstd> no longer crashes when
105 zeroing unallocated space.
107 =begin comment
109 =head2 Documentation
111 =end comment
113 =head2 Tests
115 Tests now use the new C<GLIBC_TUNABLES> feature, replacing
116 C<MALLOC_CHECK_> on glibc E<ge> 2.34 (thanks Eric Blake,
117 Siddhesh Poyarekar).
119 =head2 Build
121 F<configure.ac> now uses spaces consistently, and has been
122 modernized to support the latest autotools (Eric Blake).
124 F<podwrapper.pl> has been unified (almost) with the copy in libnbd.
126 Continue fuzzing using AFL++.  Updated the fuzzing documentation.
128 =begin comment
130 =head2 Internals
132 =end comment
134 =head1 SEE ALSO
136 L<nbdkit(1)>.
138 =head1 AUTHORS
140 Authors of nbdkit 1.28:
142 =begin comment
144 git shortlog -s v1.26.0..
146 =end comment
148 =over 4
150 =item Daniel P. BerrangĂ©
152 =item Eric Blake
154 =item Martin Kletzander
156 =item Nolan Leake
158 =item Richard W.M. Jones
160 =back
162 =head1 COPYRIGHT
164 Copyright Red Hat