WHATSNEW 40 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144
  1. 0.5.0 - initial release
  2. 0.5.9 - signal ABI bugfix, various cleanup and fixes:
  3. sigset_t was wrongly defined as 1024 bytes instead of 1024 bits,
  4. breaking the intended ABI compatibility with the LSB/glibc sigaction
  5. structure. users should upgrade immediately and rebuild any libraries
  6. or object files that might be using the incorrect definitions.
  7. improved security against DoS with tcb shadow passwords by checking
  8. that the file opened was really an ordinary file.
  9. fixed a bug in the implementation of atomic ops that could have
  10. allowed the compiler to incorrectly reorder them (in practice, gcc
  11. with the default settings on i386 was not reordering them).
  12. greatly improved conformance to the C and POSIX standards regarding
  13. what the standard header files make visible. _POSIX_C_SOURCE is now
  14. needed to get POSIX functions in standard C headers, and _XOPEN_SOURCE
  15. or _GNU_SOURCE are required to get XSI interfaces or GNU extensions,
  16. respectively.
  17. many internal improvements have been made to the syscall-related code
  18. in preparation for porting to x86_64 and other archs.
  19. 0.6.0 - x86_64 port, various important bugs fixed
  20. new x86_64 (amd64) architecture port, contributed by Nicholas J. Kain,
  21. along with PORTING guide. source tree layout and build system have
  22. been improved to accommodate further ports.
  23. various bugs that were introduced while making the headers respect C
  24. and POSIX namespace standards have been fixed. conformance to the
  25. standards has been improved.
  26. fixed an inefficiency in qsort that triggered a bug (occasionaly
  27. internal compiler error) in some versions of gcc.
  28. fixed a major bug in the printf %n specifier that prevented it from
  29. working and caused memory corruption.
  30. 0.7.0 - major improvements to posix conformance and completeness
  31. implemented posix shared memory and semaphore interfaces.
  32. implemented all remaining required pthread and clock interfaces.
  33. major fixes to signal semantics.
  34. greatly improved temporary file name generation for safety against
  35. denial of service due to intentional name collisions.
  36. added syscall wrappers for the linux inotify interface.
  37. malloc(0) now returns a non-null pointer.
  38. fixed printf %n specifier (again), pthread_once (it was always
  39. hanging), and non-default-type mutex behavior.
  40. added ucontext/sigcontext support in headers to facilitate building
  41. libgcc with dwarf2 unwind support, and possibly other low-level tools.
  42. improved musl-gcc compiler wrapper.
  43. implemented many small missing functions here and there, minor header
  44. fixes, etc.
  45. 0.7.1 - improvements to completeness, bug fixes
  46. implemented flockfile, wprintf, and robust mutex functions.
  47. fixed stack corruption bug in times(), minor header bugs, and some
  48. error return value bugs in thread interfaces.
  49. 0.7.5 - new features, major optimization, and robustness
  50. implemented POSIX timers.
  51. optimized and simplified many thread-related functions.
  52. eliminated resource leak races in thread cancellation. (almost all
  53. existing implementations, including glibc, have these leaks.)
  54. overhauled stdio implementation to take advantage of readv/writev for
  55. reduced syscall load, and improved stdio's handling of error status.
  56. added syscall header and interface for applications to use and
  57. greatly simplified internal system for making syscalls.
  58. strangthened tmpnam/tempnam/tmpfile filename generation and made the
  59. straight C functions not depend on POSIX symbols.
  60. fixed pthread cancellation ABI on i386 to match the LSB/glibc ABI
  61. better double-free handling in malloc
  62. various minor bug fixes
  63. 0.7.6 - major bug fixes
  64. fixed rare but serious under-allocation bug in malloc.
  65. fixed signedness bug in strchr that prevented finding high bytes.
  66. fixed serious parsing bugs in strtold.
  67. fixed statvfs syscall (it was always failing with EINVAL).
  68. fixed race condition in set*id() functions with threads (possible
  69. deadlock). further audit still needed though.
  70. fseek no longer sets the stream error flag on failed seeks (this was
  71. wrong and broke some programs, notably GNU m4).
  72. nl_langinfo is no longer a dummy function. (the functionality was
  73. previously implemented but accidentally left unused).
  74. various small fixes have been made to the implementations and
  75. prototypes for nonstandard and obsolete functions
  76. 0.7.7 - more bug fixes and program-compatibility improvements
  77. fixed floating point formatting and rounding bugs in printf.
  78. fixed broken %N$ positional argument specifiers in printf.
  79. fixed misaligned read/overread bug in strchr which could lead to
  80. crashes scanning tiny strings at the end of a page when the next page
  81. is not readable, or on archs (not yet supported) that forbid
  82. misaligned reads.
  83. fixed breakage of statvfs on x86_64
  84. fixed crash in getmntent_r
  85. fixed bug in POSIX timers created with NULL sigevent argument
  86. improved semaphore performance, and sem_wait is now interruptable by
  87. signals, as required by POSIX.
  88. added many compatibility and system-level interfaces, increasing the
  89. proportion of busybox that works with musl.
  90. 0.7.8 - more bug fixes and compatibility improvements
  91. fixed problems with ipv6 dns and address printing code that made ipv6
  92. support practically unusable, and some other getaddrinfo bugs.
  93. fixed broken sendmsg/recvmsg functions on x86_64 (caused by incorrect
  94. msghdr structure).
  95. fixed broken sigsetjmp asm on x86_64.
  96. worked around a problem with input buffering on terminals reblocking
  97. after getting a blank line, due to a bug in the linux readv syscall.
  98. various improvements to the "rsyscall" system used to implement
  99. threaded setuid, setgid, etc.
  100. exiting/cancelling the a timer handler thread no longer kills the
  101. timer.
  102. fixed incorrect trailing zeros on some %g conversions in printf.
  103. fixed buggy byte-swapping functions and moved them to inlines in
  104. byteswap.h.
  105. many small improvements to header/application compatibility, support
  106. for nonstandard macros, etc.
  107. 0.7.9 release notes
  108. new pthread cancellation implementation:
  109. - safe against resource-leak/side-effect-leak race conditions
  110. - safe against interruption by signal handlers
  111. - reduced bloat in all cancellable functions
  112. - reduced bloat for blocking cancellation
  113. new interfaces implemented:
  114. - realpath (limited functionality)
  115. - wordexp (limited functionality)
  116. - flock (nonstandard)
  117. - forkpty (nonstandard)
  118. - posix_fadvise
  119. - posix_fallocate
  120. general bug fixes:
  121. - syslog function failure to communicate with syslogd
  122. - bug in siginfo_t definition if wait.h was included before signal.h
  123. - incorrect struct definitions for most of sysv ipc
  124. - pthread_exit/cancel on timer handler wrongly destroying the timer
  125. - linux dup2 ebusy workaround
  126. - obscure issues in non-threaded programs using some pthread functions
  127. - getopt_long allowed mismatch in last char of option name
  128. - incorrect parsing of obscure ip address forms
  129. - initgroups not working reliably (uninitialized var)
  130. - shadow pass treating empty expiry field as pass-expired-in-1970
  131. - bogus longjmp if pthread_exit was called from cancellation handlers
  132. x86_64-specific bug fixes:
  133. - fcntl file locking
  134. - thread stack alignment
  135. - broken select timeouts due to incorrect timeval definition
  136. 0.7.10 release notes
  137. new features:
  138. - ipv6 numeric string parsing
  139. - eventfd syscall wrappers
  140. optimizations:
  141. - new qsort implementation using the smoothsort algorithm
  142. - much smaller/faster sigset_t handling functions
  143. - lowered spin count before futex wait in synchronization functions
  144. general bug fixes:
  145. - incorrect floating point round-to-even behavior in printf
  146. - major bugs in pthread barrier implementation
  147. - off-by-one error in scanf %n results
  148. - scanf failure to report EOF when scanning for literal text
  149. - minor missing/incorrect prototype issues
  150. - dependency on undefined call order in fclose
  151. compiler issue workarounds:
  152. - incorrect inlining of variadic functions on recent gcc versions
  153. - pcc preprocessor bug with recursive macro expansion
  154. 0.7.11 release notes
  155. new features:
  156. - integrated dynamic linker
  157. - dynamic loading (dlopen/dlsym) (for dynamic-linked programs only)
  158. - XSI search.h API
  159. - POSIX message queues
  160. - POSIX spawn interfaces
  161. - BSD pseudo-random number generator API (random/srandom/initstate/etc.)
  162. - floating point environment (limited usefulness due to gcc bugs)
  163. general bug fixes:
  164. - possible crashes with wordexp due to uninitialized variable
  165. - race condition in pthread_kill (also present and unfixed in glibc/nptl)
  166. - pthread exit destructors called too late
  167. - dangerous unbounded vla in glob
  168. - brk/sbrk legacy functions mismatching legacy semantics
  169. - wcsncpy dest buffer overflow
  170. - strncat and wcsncat possible overflows due to double-termination
  171. 0.7.12 release notes
  172. new features:
  173. - support for textrels in shared objects
  174. - rpath support in dynamic linker
  175. - stdio_ext.h functions (for better gnu software compatibility)
  176. bug fixes:
  177. - some compilers miscompiling dlopen due to misuse of longjmp
  178. - safe handling of invalid long-double bit patterns (affects printf)
  179. - workaround for bugs in linux mprotect syscall
  180. - thread-safety for random() functions
  181. - various minor issues
  182. 0.8.0 release notes
  183. new features:
  184. - chinese and japanese legacy charset support in iconv
  185. - zero-syscall clock_gettime support (dynamic-linked x86_64 only)
  186. - futex-based locking for stdio (previously used spinlocks)
  187. - LD_PRELOAD and RTLD_NEXT support in dynamic linker
  188. - strptime (mostly working but incomplete)
  189. - posix aio (mostly working but not entirely conformant)
  190. - memory streams (fmemopen, open_memstream, ...)
  191. - stub/dummy implementations for various useless legacy functions
  192. - if_nameindex
  193. security hardening:
  194. - setuid, etc. should not longer be able to "partially fail" with threads
  195. - ensure suid programs start with fd 0,1,2 open
  196. - improved openpty/forkpty failure checks
  197. threads/synchronization bug fixes:
  198. - dangerous spurious wakeup in pthread_join lead to early return
  199. - race condition enabling async cancellation (delayed/lost cancellation)
  200. - destruction/unmapping race conditions in semaphores, mutexes, rwlocks
  201. - recursive rwlock_rdlock deadlock when a writer is waiting
  202. - race condition in sigqueue with fork
  203. - timer expiration thread exit wasn't running dtors
  204. - timer threads weren't blocking signals
  205. - close was wrongly cancellable after succeeding on some devices
  206. - robust mutex list was not reset on fork
  207. general bug fixes:
  208. - incorrect logic in fread (spurious blocking; crash on write-only files)
  209. - many corner cases and overflow cases for strtol-family functions
  210. - various printf integer formatting issues with flags/width/precision
  211. - incorrect iconv return value on failure
  212. - broken FD_* macros on 64-bit targets
  213. - clock function returning wrong value (real time not cpu time)
  214. - siglongjmp signal mask clobbering (off-by-one pointer error)
  215. - dynamic linker weak symbol resolution issues
  216. - fdopendir failure to set errno
  217. - various minor header fixes
  218. 0.8.1 release notes
  219. bug fixes:
  220. - mismatching prototypes caused build failure on 64-bit
  221. - other minor prototype errors in the headers have been fixed
  222. - various other small omissions fixed
  223. 0.8.2 release notes
  224. new features:
  225. - ptrace syscall support
  226. bug fixes:
  227. - const error (only a warning with many compilers) in lio_listio
  228. - minor portability fixes aimed at supporting new arch targets
  229. 0.8.3 release notes
  230. new features:
  231. - arm port (experimental)
  232. - better musl-gcc wrapper script for building against musl
  233. - added clone system call
  234. bug fixes:
  235. - numerous header file typos, copy/paste errors, omissions
  236. - statfs and statvfs ABI are now LSB-conformant (and actually work)
  237. 0.8.4 release notes
  238. new features:
  239. - arm dynamic linker support
  240. - process-shared pthread barriers now work
  241. - efficient futex-requeue-based cond var broadcast
  242. - more optional cancellation points are now cancellable
  243. - printf accepts null pointers with %s, prints as "(null)"
  244. - recursive mutexes are now fully reentrant
  245. - __cxa_atexit support
  246. - real vfork
  247. - dynamic linker now gold-compatible
  248. - prlimit syscall
  249. - support for large limits with setrlimit/getrlimit (even on 32-bit)
  250. - glob now supports GLOB_PERIOD option (GNU extension)
  251. bug fixes:
  252. - many serious issues in condition variables
  253. - rwlock failure-to-wake deadlock issues
  254. - various small header files bugs/omissions
  255. - wrong failure return for pthread_create
  256. - path handling issues on execvp
  257. - lock count corruption with robust recursive mutexes on owner death
  258. - integer overflows in atoi, etc. reading most-negative value
  259. - spurious mremaps on every realloc of large memory chunks
  260. - pthread cancellation failure in single-threaded programs
  261. security:
  262. - avoid fd_set overflow in dns lookups
  263. 0.8.5 release notes
  264. new features:
  265. - stdio operations are now cancellable (only when low-level io happens)
  266. - global ctor/dtor support in main program start code and shared libs
  267. - dynamic linker support for PIE executables (but missing startup code)
  268. - vfork support on x86_64
  269. - complete set of locale_t functions (all ignore the locale argument)
  270. - provide define float_t and double_t in math.h
  271. - lighter/faster cancellation cleanup handler register/unregister
  272. bug fixes:
  273. - gcc wrapper now supports -shared, -nostdlib, -nostartfiles
  274. - removed one wrongly-classified character from iswspace set (zwsp)
  275. - fixed crashes in dns lookup on some errors, e.g. resolv.conf missing
  276. - "make install" no longer tries to build shared libc if disabled
  277. - ptrace argument handling bugs fixed
  278. - work around visibility-hidden bugs in gcc 3.x
  279. - fix thread-pointer-loss issue when it's initialized in signal handlers
  280. - various minor typo/misc fixes in headers
  281. compatibility:
  282. - glob behaves more like traditional implementations w.r.t. GLOB_MARK
  283. - added legacy futimes, lutimes functions
  284. - more compatibility macros in sys/param.h (nonstandard header)
  285. - setfs[ug]id syscall wrappers (linux specific)
  286. - fgetpwent function (nonstandard)
  287. - utmp.h matches traditional version more closely
  288. - caddr_t now matches glibc type (void * instead of long)
  289. - dummy (always-fail) dlopen and dlsym functions for static linked programs
  290. - [efg]cvt functions (previously posix, removed from standard)
  291. - get_current_dir_name function (nonstandard)
  292. 0.8.6 release notes
  293. bug fixes:
  294. - fix crash in dns lookups for all static-linked, non-threaded programs
  295. 0.8.7 release notes
  296. new features:
  297. - c++ support with g++'s libstdc++
  298. - c99 math library (float, long double, complex, etc.)
  299. - numerous wchar_t functions
  300. - a64l, l64a functions
  301. - getdate function
  302. compatibility:
  303. - c89 compatibility in math.h
  304. - syscall.h alias for sys/syscall.h
  305. - memory.h alias for string.h
  306. - getcwd supports null buffer argument (auto-allocation)
  307. bug fixes:
  308. - major fenv (floating point environment) fixes and optimizations
  309. - strptime mishandling of day/month names
  310. - strtoull wrongly rejecting the highest 16 possible values as overflow
  311. - math.h constant expression fixes for INFINITY/NAN/etc.
  312. - scanf mishandling of "0" with "%x"
  313. 0.8.8 release notes
  314. new feature:
  315. - major math correctness and performance improvements
  316. - many math functions implemented in asm for i386
  317. - some math functions (mostly long double) in asm for x86_64
  318. - new floating point parser/converter with correct rounding
  319. - implement wcstod, wcstof, and wcstold
  320. - new scanf implementation - cleaner, faster, more correct
  321. - minimal/incomplete strfmon implementation
  322. compatibility:
  323. - header fixes for c++
  324. - regex code resync with TRE; support common regex extensions
  325. - support for compiling apps with gcc's -funsigned-char
  326. - sysconf now returns dynamic limits for open files, processes
  327. - give dlerror proper error status stickiness
  328. - make alloca work even with -fno-builtin
  329. critical security fixes:
  330. - stack-based buffer overflow in fprintf on unbuffered files
  331. other bug fixes:
  332. - rare gcc register allocation (miscompilation) bug in syscall wrappers
  333. - printf was rejecting the valid (but redundant) %lf format specifier
  334. - fixed big data bloat (missing const) in math functions
  335. - many math fixes related to floating point exceptions and rounding
  336. - corrected DECIMAL_DIG definitions
  337. - tgammal was wrongly setting global signgam
  338. - crash in wordfree with uninitialized we_offs
  339. - fix wordexp not null-initializing the we_offs initial slots
  340. 0.8.9 release notes
  341. bug fixes:
  342. - major breakage in strtol and family: failure to accept leading spaces
  343. - incorrect name for MATH_ERREXCEPT in math.h
  344. compatibility:
  345. - prototypes for a few additional nonstandard functions
  346. 0.8.10 release notes
  347. new features:
  348. - correct over/underflow detection (ERANGE setting) for strtod
  349. - new musl-gcc wrapper, specfile based, faster and more robust
  350. - meaningful return strings for dlerror
  351. - new iswalpha, iswpunct, and wcwidth; sync'd to Unicode 6.1
  352. - towupper/towlower sync'd with Unicode 6.1
  353. - new futex-based libc-internal locks instead of spinlocks
  354. - experimental stack protector support (minimal; no random canary)
  355. - experimental gdb shared library tracking support
  356. compatibility:
  357. - getusershell family functions
  358. - getresuid and getresgid syscall wrappers
  359. - byte swapping macros in endian.h
  360. - getdtablesize was wrongly declared in unistd.h for _XOPEN_SOURCE
  361. bug fixes:
  362. - iconv_open wrongly rejecting most dest charsets (broken in 0.8.0)
  363. - sysconf failure when correct value is -1 (broken in 0.8.8)
  364. - scanf and strtod family functions overreading past NAN (4 bytes vs 3)
  365. - scanf and strtod wrongly treating "0.00000000001", etc. as 0
  366. - many bugs in towupper/towlower (never seriously tested before)
  367. - int8_t definition was wrong when gcc -funsigned-char was used
  368. 0.9.0 release notes
  369. license change: MIT
  370. new features:
  371. - configure script, improved build system
  372. - full stack protector support
  373. - PIE support on x86 and x86_64
  374. - new O(1) space, O(nm) time implementation of fnmatch
  375. - improved support for sse2 floating point mode on x86
  376. compatibility:
  377. - added linux unshare syscall
  378. - exp10/pow10 function
  379. - sqrtl support on arm (previously missing)
  380. - removed minimal linux/*.h headers that could conflict with real ones
  381. - support for _LARGEFILE64_SOURCE (mapped to standard fcns with #define)
  382. - better c89 compatibility in headers
  383. - stub versions of sched_* functions (previously missing)
  384. - pthread stacks no longer executable (compat with hardened kernels)
  385. - new ar.h and lastlog.h (legacy junk)
  386. - various other header improvements
  387. optimization:
  388. - additional x86_64 math asm
  389. - better formula for acos use in i386 asm
  390. bug fixes:
  391. - large (up to a few %) errors in strtod for certain values due to bug
  392. - mbsnrtowcs and wcsnrtombs were completely broken (bad exit logic)
  393. - wide printf %.0s could fail due to uninitialized variable
  394. - missing dlerror strings for dlsym in some cases
  395. 0.9.1 release notes
  396. new features:
  397. - dynamic linker can be used as a program to explicitly load/run executables
  398. - ldd command, usable by making a symlink to the dynamic linker named ldd
  399. bug fixes:
  400. - major bugs in POSIX BRE parsing inherited from TRE regex code
  401. - character matching bug in regex on ARM: WCHAR_MAX was assumed to be signed
  402. - various obscure fixes related to signals and pthread cancellation
  403. - remquot subnormal remainder bug
  404. - buggy macros in (nonstandard) sys/param.h
  405. - major bug in pthread barriers on x86_64 (out of bounds write)
  406. - utimes (legacy) function was making wrong syscall (utime instead of utimes)
  407. - avoid using "old" syscalls that don't exist on arm eabi linux
  408. - broken strrchr(str, 0)
  409. - broken mbsinit(0)
  410. - broken wcsncmp
  411. - syntax error in nextafter macro in tgmath.h
  412. - missing support for -pie in musl-gcc wrapper
  413. - abort could wrongly fail to terminate the program in some cases
  414. compatibility:
  415. - increase default thread stack size to 80k
  416. - support _BSD_SOURCE feature test macro
  417. - support _LARGEFILE64_SOURCE feature test macro (merely exposes alt names)
  418. - lots of legacy-compatibility improvements in headers
  419. - various minor GNU extension functions
  420. - sysconf reporting number of available CPUs/cores
  421. - various LSB/glibc ABI interfaces aimed at compatibility with some binaries
  422. - use fistpll asm mnemonic instead of fistpq for compat with clang
  423. 0.9.2 release notes
  424. bug fixes:
  425. - pointer overflow in printf (crash on 32bit userspace, 64bit kernel)
  426. - printf %ls over-read bug
  427. - strtod failure to read -0x as negative zero
  428. - flush stdio after dtors, not before
  429. - wrong file position for buffered input streams on exit
  430. - popen was broken when stdin/out were already closed
  431. - broken wcwidth tables (missing many characters)
  432. - fwrite: wrong return value of partial/failed write
  433. - broken utf-16 conversions
  434. - bad buffer length check in getlogin_r
  435. - bad perror("") behavior; did not match perror(0)
  436. - broken sysinfo syscall/structure
  437. - stdint.h const macro signedness bugs
  438. - broken include guards in some headers
  439. - bogus localeconv values
  440. - cancellation-safety for popen and pclose
  441. - fma corner cases wrong on i386
  442. - fcntl F_GETOWN errno missing on failure.
  443. - char signedness bug in dynamic linker broke dlopen on arm
  444. - mprotect failure in dynamic linker caused crash instead of error
  445. build system:
  446. - configure check to work around hacked-up gcc versions
  447. - test for old binutils that can't support musl dynamic linker
  448. compatibility:
  449. - make _GNU_SOURCE imply _LARGEFILE64_SOURCE
  450. - syscall wrapper for lots of nonstandard and/or legacy linux syscalls
  451. - versionsort stub
  452. - timegm function (inverse of gmtime)
  453. - various minor header tweaks
  454. - make __freading/__fwriting semantics match traditional ones
  455. - added gnulib-compatibility stdio interfaces
  456. - added pthread_attr_setstack interface
  457. - make strerror_r return partial string when buffer is too small
  458. - duplocale should accept LC_GLOBAL_LOCALE
  459. - align ptsname_r to upcoming posix requirements
  460. - support invalid ld80 bit patterns as extra nans.
  461. 0.9.3 release notes
  462. new features:
  463. - mips (32-bit, o32 abi) port, currently static-linked only
  464. - newly overhauled crypt implementation
  465. - improved library pathname info for debugger from the dynamic linker
  466. - getaddrinfo (and getservbyname) now support /etc/services lookups
  467. - pipe2 syscall wrapper
  468. - splice and vmsplice syscall wrappers
  469. - syscall wrappers for extended attribute interfaces
  470. - ioperm/iopl syscall wrappers on archs that support these operations
  471. bug fixes:
  472. - dlsym RTLD_NEXT library search order was wrong
  473. - multiple dlopen pathname and library name handling errors
  474. - potential race condition in detached thread exit
  475. - broken internal-lock-handling code not updated for futex-based __lock
  476. - sem_trywait spurious EAGAIN errors arising from CAS failures
  477. - workaround kernel bug in cmsghdr size_t vs socklen_t issue (64-bit)
  478. - getservby* crash on null protocol argument
  479. - logic error skipping failed interfaces in if_nameindex
  480. - various minor header/declaration related issues
  481. arm-specific bug fixes:
  482. - broken crti/crtn startup code when gcc crtbegin/end files are linked
  483. - sigsetjmp tail call optimization failure broke the function
  484. - incorrect little-endian assumptions in atomic.h functions
  485. - use of blx instruction in asm (not supported on pre-v5 arm)
  486. build system:
  487. - only use expensive -ffloat-store cflag on archs/compilers that need it
  488. - make musl-gcc wrapper support -lgcc (mainly for self-hosting)
  489. 0.9.4 release notes
  490. new features:
  491. - blowfish crypt
  492. - dynamic linking on mips
  493. - arm hard float support
  494. - BSD fgetln function in stdio
  495. - minor header improvements for compatibility
  496. - support for CROSS_COMPILE variable to configure
  497. - legacy significand function
  498. - better support for SUSv3-targeted programs
  499. performance:
  500. - assembly (string ops based) memcpy for i386 and x86_64
  501. - reduce printf overhead
  502. bug fixes:
  503. - failure of strtod, etc. to process extremely long strings correctly
  504. - read overrun in wcsstr for short needles
  505. - various major mips issues that prevented most software from working
  506. - erroneous floating point exception behavior in i386/x86_64 exp asm
  507. - crashes on null arguments to legacy err.h functions
  508. - various header file/type issues
  509. - extremely rare/obscure race condition with robust mutexes
  510. - crypt now never returns null (most programs don't check, then crash)
  511. - missing xattr remove functions
  512. 0.9.5 release notes
  513. compatibility and headers:
  514. - POSIX+XSI+BSD features enabled by default with no macros defined
  515. - most programs can now be built without adding -D_GNU_SOURCE
  516. - added C99 restrict keyword where required in all prototypes
  517. - greater C89 compatibility
  518. - cleaner, more-compatible public syscall.h
  519. - many other header fixes
  520. - support for compiling musl with clang/llvm
  521. new features:
  522. - sha 256/512 password hash functions in crypt
  523. - GNU hash support in dynamic linker
  524. - partial C11 coverage
  525. - dladdr function added
  526. - dynamic linker reports all errors instead of exiting on first error
  527. - syscall wrappers added for most remaining linux syscalls
  528. - provide POSIX O_SEARCH open mode using linux O_PATH
  529. bug fixes:
  530. - most atexit functions were being skipped when exiting
  531. - some BSD functions were not being exposed under _BSD_SOURCE
  532. - issues loading ssp-protected DSO into non-ssp program with dlopen
  533. debloating:
  534. - eliminate .eh_frame (10-15% loaded size bloat)
  535. - optimal inline syscall asm for ARM and MIPS
  536. - no longer force -O3 for shared libs
  537. 0.9.6 release notes
  538. bug fixes:
  539. - serious breakage in definition of O_ACCMODE mask (missing a bit)
  540. new features:
  541. - O_EXEC open mode
  542. - md5 crypt hash function
  543. 0.9.7 release notes
  544. new features:
  545. - thread-local storage (__thread/_Thread_local)
  546. - microblaze port
  547. - getopt option parsing reset support
  548. - vsyscall (sysenter, etc.) support on i386 (faster syscalls)
  549. - memmem function (GNU extension)
  550. - mips fenv support
  551. - accept "nan(n-char-sequence)" in strtod/scanf family functions
  552. - configure now supports compiling with pcc
  553. quality and correctness improvements:
  554. - close-on-exec flag for all library-internal file descriptors
  555. - cancellation-safety and corner-case overhaul in shm_open/sem_open
  556. - close EINTR vs EINPROGRESS issue
  557. - mark binaries as not requiring executable stack
  558. - better gdb compatibility in dynamic linker
  559. - support recursive dlopen (dlopen called from constructors)
  560. - posix_spawn/system/popen no longer momentarily double commit charge
  561. - all stdio functions wait for locks
  562. bug fixes:
  563. - broken sysvipc *ctl functions on 64-bit archs
  564. - broken shmdt on some archs
  565. - getaddrinfo failure with port "0"
  566. - dirname handling of trailing slash
  567. - vfork race in posix_spawn
  568. 0.9.8 release notes
  569. new features:
  570. - powerpc port
  571. - dl_iterate_phdr interface
  572. - added mips-specific syscalls
  573. - thread priority scheduling
  574. - C11 CMPLX macro in complex.h
  575. - x86 port io functions in sys/io.h
  576. compatibility:
  577. - improved headers for trace/debugging/machine-access
  578. - stub functions for unsupported thread-related functionality
  579. bug fixes:
  580. - numerous math bugs (mostly exception flags and excess-precision issues)
  581. - register clobber error in i386 vsyscall asm (did not affect most callers)
  582. - various incorrect definitions in mips headers
  583. - broken dlsym asm on mips
  584. - empty prefix handling in configure script (--prefix="")
  585. - ldso search path logic issues
  586. - lock handling for stdio memory streams at exit time
  587. - invalid SO_REUSEPORT definition in socket.h (not supported by Linux)
  588. - broken redirection attempt to /dev/null in configure script
  589. 0.9.9 release notes
  590. new features:
  591. - tgamma implementation (no longer lgamma wrapper with low precision)
  592. - various gnu extensions: sigandset, sigorset, etc.
  593. - futimesat function (obsolete)
  594. - various linux syscalls: arch_prctl, personality, etc.
  595. optimizations:
  596. - hyperbolic, inverse hyperbolic, and inverse trig, bessel functions
  597. - is* comparison macros in math.h now expand inline properly
  598. library bugs fixed:
  599. - calling getenv from shared library ctors was broken
  600. - invalid read in mmap-serviced aligned_alloc/memalign (possible crash)
  601. - wrong errno result in fallback path of pipe2
  602. - various math functions raising spurious exceptions
  603. - mmap errno value on invalid offsets
  604. - backwards alignment logic in strlcpy
  605. - integer overflows in bessel functions
  606. - large (up to 60ulp) error in erfcf
  607. - dlsym/dlclose crashing on invalid library handles
  608. - failure to handle arch variations for cloexec/nonblock flags
  609. - lio_listio wrong return value for LIO_WAIT mode
  610. - dladdr failure to resolve PLT addresses
  611. - time_t/struct tm conversion off-by-one-day in december
  612. - malloc corruption on nonstandard kernels with non-page-aligned brk
  613. arch-specific bugs fixed:
  614. - arm ctors/dtors were not working with recent gcc versions
  615. - arm and mips setjmp/longjmp wrongly saved/restored fenv state
  616. - loss of precision in i386/x86_64 expl
  617. header bugs fixed:
  618. - incorrect PRI/SCN macros in inttypes.h for some types
  619. - arm sys/user.h regressions
  620. - failure of offsetof() to be an integer constant expression
  621. - tgmath return value type problems
  622. header compatibility improvements:
  623. - _GNU_SOURCE now enables everything; _ALL_SOURCE also works
  624. - scsi/scsi.h and scsi/sg.h are now provided
  625. - additional MAP_* flags for mmap
  626. - additional F_* commands and flags for fcntl
  627. - additional socket option, IPPROTO_* values, and multicase macros
  628. - thread-related waitpid flags
  629. - EHWPOISON added to errno.h
  630. - additional macros for mount, swap, and reboot operations
  631. - expose additional link.h structures
  632. - always ensure sizeof(NULL)==sizeof(void *), even in c++
  633. - additional flags for poll, epoll, inotify, timerfd, timex, dlfcn
  634. - register names in signal.h/ucontext.h for x86
  635. - ipc.h ipc_perm nonstandard struct field name compatibility improve
  636. 0.9.10 release notes
  637. new features:
  638. - getifaddrs
  639. - pthread_getattr_np (widely used by garbage collectors)
  640. - mkostemps, mkostemp, mkstemps functions (mkostemp is future-POSIX)
  641. - strcasestr and strverscmp (previously stubs)
  642. improvements:
  643. - major performance improvements in mbtowc
  644. - avoid filling caller-provided thread stacks with large TLS
  645. - debloat unnecessary static buffers
  646. - robust posix_spawn based on CLONE_VM instead of vfork
  647. - new system() and popen() based on posix_spawn
  648. - better strerror strings
  649. - further emulation of atomic close-on-exec/nonblock options for old kernels
  650. - provide macro constants for new-ish kernel features
  651. compatibility:
  652. - several nonstandard but widely-available pwd/grp/shadow functions
  653. - program_invocation_[short_]name
  654. - re-added useconds_t type used by some programs
  655. - some legacy arpa headers
  656. - dn_skipname function (legacy resolver API)
  657. - additional ABI aliases for supporting glibc-linked libraries/binaries
  658. general bugs fixed:
  659. - stale locks and bogus munmap call when pthread_create fails
  660. - uninitialized argument to munmap when dynlink load_library fails
  661. - incorrect error returns in gethostby*_r
  662. - memory leak in gethostbyname family
  663. - blank ai_canonname in getaddrinfo for non-CNAME records
  664. - undefined HZ macro in scsi/sg.h
  665. - wrong return value for wmemmove on forward-copy
  666. - namespace conformance in strings.h
  667. - various utmp.h bugs
  668. - unnecessary DT_SONAME in libc.so caused problems on some systems
  669. - multiple bugs in syslog, some possibly dangerous
  670. - non-functional setpriority function
  671. - slight mishandling of 0xf5 byte in UTF-8 decoder
  672. - misaligned memory accesses in mbsrtowcs
  673. arch-specific bugs fixed:
  674. - crash in shared library loading on arm
  675. - missing __aeabi_atexit needed by arm eabi
  676. - wrong float_t definition on x86_64
  677. - various low-impact type size/alignment mismatches in some headers
  678. - epoll struct alignment wrong on non-x86[_64] archs
  679. - broken pipe2 fallback code on mips with old kernels
  680. 0.9.11 release notes
  681. new features:
  682. - %m allocation modifier for scanf
  683. - week number and ISO week-based-year functionality in strftime
  684. - per-process and per-thread cputime clocks
  685. - ethernet address conversion interfaces
  686. - legacy classful ipv4 network address interfaces
  687. - minimal dlinfo function (nonstandard)
  688. other improvements:
  689. - dynamic linker path file can now use newlines to separate paths
  690. - math optimizations for archs with extended precision (i386)
  691. - musl-gcc wrapper now exposes gcc's intrinsic headers
  692. - quality of rand and rand_r pseudo-random sequences
  693. - support for large device minor numbers (greater than 8 bits)
  694. - various header conformance and compatibility fixes
  695. directly user-visible bugs fixed:
  696. - scanf losing characters on unbuffered streams and fmemopen streams
  697. - failure of mbsrtowcs to record stop position when dest is full
  698. - failure of iconv to convert to legacy codepages
  699. - non-working pthread_[sg]etschedparam functions (wrong syscall arguments)
  700. other potentially-serious bugs fixed:
  701. - resource leaks in sem_open
  702. - various bugs in thread exit synchronization
  703. - invalid access in aio notification after aiocb free/reuse
  704. - synchronization in dynamic linker when new thread dlopens during ctors
  705. - lack of error handling for failure to read dynamic linker path file
  706. - creation by mmap or shmget of objects larger than PTRDIFF_MAX
  707. minor conformance bugs fixed:
  708. - overflow handling for the clock function
  709. - workaround for incorrect exceptions in fma due to compiler bugs
  710. - workaround wrong kernel type for sem_nsems field in struct semid_ds
  711. arch-specific bugs fixed:
  712. - x86_64 sigsetjmp clobbered the signal mask rather than saving it
  713. - misaligned stack when calling ctors/dtors (crashing on x86_64)
  714. 0.9.12 release notes
  715. new features:
  716. - zoneinfo time zone support
  717. - PIE support on all supported archs
  718. - named sub-archs for endian and float ABI variants
  719. - improved support for non-root installs of the dynamic linker
  720. - ability to selectively build only performance-critical modules with -O3
  721. - simple buffer overflow detection in free/realloc
  722. - inet_ntop now presents v4-mapped addresses in ::ffff:a.b.c.d form
  723. - ldd now reports libc and the dynamic linker in its output
  724. compatibility:
  725. - support for new init/fini array (needed for ctors/dtors on newer gcc)
  726. - C++ ABI fully matches glibc/LSB, at least on x86
  727. - many added ABI compatibility symbols for using glibc-linked libs
  728. - support for STB_GNU_UNIQUE symbol bindings (found in some C++ libs)
  729. - macros/types for new Linux kernel features in headers
  730. bugs fixed:
  731. - crashes in scanf on literal mismatches (regression from adding %m)
  732. - dl_iterate_phdr was passing invalid phdr pointers to its callback
  733. - getaddrinfo with null host and AF_UNSPEC was failing to report IPv6
  734. - integer overflows in date/time conversion code
  735. - misinterpretation of pre-1930s dates as post-2038 on 32-bit archs
  736. - make install failed to install bits headers if make was not run first
  737. - shm_open was wrongly cancellable
  738. - low- or no-impact heap corruption in memalign
  739. - explicitly running the dynamic linker on PIE programs did not work
  740. - missing macros and sysconf for some supported POSIX option groups
  741. - missing close-on-exec flags for several internal fd uses
  742. arch-specific bugs:
  743. - wrong SIG_ATOMIC_MIN/MAX macros on x86_64
  744. - erfcl was missing on archs where long double is same as double
  745. - broken dynamic-model TLS in static-linked arm/mips/powerpc programs
  746. 0.9.13 release notes
  747. new features:
  748. - iconv support for EUC-KR and Big5 (including HKSCS) encodings
  749. - field widths (POSIX 2008 feature) in strftime
  750. - recursive rpath and $ORIGIN support in dynamic linker
  751. - cpu affinity interfaces
  752. - support for armhf (hardfloat) floating point environment (fenv)
  753. - support for SSE fenv on i386 (for apps using -mfpmath=sse -msse2)
  754. - strftime %s format (seconds since the epoch, future POSIX requirement)
  755. - configure script now saves its command line as a comment in config.mak
  756. - legacy functions valloc and euidaccess
  757. performance:
  758. - optimized asm memcpy for arm
  759. - optimized asm memset for i386 and x86_64
  760. - optimized C versions of memcpy and memset for all archs
  761. - eliminated major spurious syscalls from posix_spawn
  762. - some math asm for armhf (hardfloat)
  763. workarounds for:
  764. - qemu-user's rt_sigaction syscall does not allow old to alias new
  765. - qemu-user's madvise always succeeds (broke pthread_getattr_np)
  766. - passing PT_INTERP to dlopen attempted to double-load libc
  767. - gcc 4.8.x generating self-referential (infinite recursion) memcpy/memset
  768. - linux's lack of support for fchdir, fchmod, fchown, fstat on O_PATH fds
  769. bugs fixed:
  770. - failure to honor flags for fchmodat and faccessat (linux syscall api flaws)
  771. - SIGEV_THREAD timer id corruption and race condition issues
  772. - timer thread TLS incorrectly keeping values from previous expiry run
  773. - ecvt/fcvt decimal position off-by-one
  774. - in symbol-versioned libs, symbol resolved to oldest instead of newest
  775. - posix_spawn not correctly reporting errno from exec failure
  776. - "make install" was not atomic (overwrote files rather than replacing)
  777. - integer overflows in strftime
  778. - unset/empty TZ variable was mishandled
  779. - strftime could crash if the struct tm did not have valid tm_zone field
  780. - failure of fenv functions to handle invalid arguments (required by ISO C)
  781. - failure of some math functions (C and i386 asm) to raise underflow flag
  782. - broken dn_expand function (previously not used internally)
  783. - race conditions with signals during fork
  784. - incorrect access check in mktemp (obsolete function)
  785. - unnecessary arbitrary limits on size of program headers in dynamic loader
  786. - text formatting bugs in output of err.h functions
  787. arch-specific bugs:
  788. - fesetenv(FE_DFL_ENV) crashed on i386
  789. - breakage of arm crt code when libc is compiled as thumb
  790. - arm/armhf (hardfloat) misidentified by configure
  791. - ambiguity of wait (exit status) macros on mips with signal number 127
  792. - wrong value of _NSIG and SIGRTMAX on mips
  793. 0.9.14 release notes
  794. bugs fixed:
  795. - failure to properly install dynamic linker with DESTDIR set (symlink wrong)
  796. - rare deadlock in libc-internal locking routines
  797. - dynamic linker used fallback paths wrongly on (possibly transient) errors
  798. - popen broken when stdin or stdout was already closed in parent
  799. - deadlock/memory-corruption in multithreaded set*id and setrlimit functions
  800. - realpath failed when file was not readable
  801. - readpath mistakenly had cancellation points in it
  802. - crashes in scanf with invalid %m conversion specifiers
  803. - misclassificiation of some invalid ld80 float representation in fpclassify
  804. - various overflow and underflow flag issues in math functions
  805. - domain handling errors for acoshf and acoshl
  806. - wrong values for some sysconf properties
  807. - lack of proper memory barriers on arm
  808. mips-specific bugs:
  809. - broken sysv ipc structures
  810. - multiple stack-related bugs in clone, leading to crashes in parent or child
  811. - overflow writing sigset_t in multithreaded set*id and setrlimit functions
  812. other improvements:
  813. - size and performance improvements to various math functions
  814. - wait.h as a compatibility alias for sys/wait.h
  815. - various header improvements
  816. - support for runtime-variable page size on archs that need it (mainly mips)
  817. 0.9.15 release notes
  818. new features:
  819. - support for mixing IPv4 and v6 nameserver addresses in resolv.conf
  820. - RFC 3678 multicast structures/macros in netinet/in.h
  821. - putspent and fgetspent functions (shadow password API)
  822. - timef function (obsolete, removed in POSIX 2008)
  823. - fanotify syscalls (Linux-specific feature)
  824. - semtimedop syscall (Linux-specific sysvipc extension)
  825. - quotactl syscall and header (filesystem quotas support)
  826. - drem and finite functions (obsolete BSD functions)
  827. - getloadavg function (non-standard)
  828. - herror function (non-standard and obsolete)
  829. - libc.so now stores and prints its version information
  830. - expose constants for new Linux features including O_TMPFILE
  831. - implement FNM_LEADING_DIR option to fnmatch (GNU extension)
  832. - posix_close function (accepted for inclusion in next POSIX issue)
  833. bugs fixed:
  834. - buffer overflow in mbsrtowcs
  835. - clobbering of gr_name in getgrnam_r and getgrgid_r
  836. - execle ignoring the environment argument
  837. - setenv crash on malloc failure
  838. - out-of-bounds access in fnmatch with FNM_PATHNAME and certain patterns
  839. - failure of malloc to set errno when failing to extend heap
  840. - incorrect errno value from getcwd with zero size
  841. - spurious failure in faccessat with AT_EACCESS flag with suid/sgid programs
  842. - several fd leaks due to missing close-on-exec flag
  843. - misspellings/typos in macro names in several headers
  844. - incorrect failure return value in inet_pton
  845. - various numeric ip address parsing and validation fixes
  846. - namespace conformance issues in several headers
  847. - minor header issues
  848. - zombie processes left by faccessat with AT_EACCESS
  849. - timezone file parser failing/crashing on 64-bit archs
  850. - hang in localtime with near-overflowing time_t values on 64-bit archs
  851. - timezone path search was only trying first path
  852. - incorrect handling of excessive-length TZ environment strings
  853. - timezone file loading was wrongly enforcing O_NOFOLLOW/rejecting symlinks
  854. - iswspace was wrongly returning true for the null character
  855. - various bugs in wordexp
  856. - putgrent could write corrupt lines after write failures
  857. - dn_expand misinterpreted in-packet offsets greater than 255
  858. - spurious strftime/wcsftime failure on len+1==bufsize case
  859. - incorrect underflow flag in fma corner cases
  860. - log*(0) wrongly returned +inf in downward-rounding mode
  861. - failure of fchmod, fstat, fchdir, and fchown to produce EBADF
  862. arch-specific bugs fixed:
  863. - i386: failure of fesetround to set sse rounding mode
  864. - i386: floating point limit constants misinterpreted due to excess precision
  865. - powerpc: broken thread pointer access when compiled with clang
  866. - microblaze: dynamic linker entry point code possibly clobbering argv
  867. strict conformance issues:
  868. - NULL definition re-aligned with POSIX (requires (void *) cast)
  869. - alignment of math.h is* comparison functions with C11 annex F requirements