aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-07-17Revert "Fix lock handling in memory hander of nscd."Ulrich Drepper8-16/+27
This reverts commit 137028b4d7e50f71906c1656c27079eac5a1d085. Conflicts: ChangeLog
2009-07-17Add missing BZ number in ChangeLog.Ulrich Drepper1-0/+1
2009-07-16Handle overly large answer buffers in resolver.Ulrich Drepper2-1/+7
In EDNS0 records the maximum result size is transmitted in a 16 bit value. Large buffer sizes were handled incorrectly by using only the low 16 bits. Fix this by limiting the size to 0xffff.
2009-07-16Fix lock handling in memory hander of nscd.Petr Baudis8-27/+16
The commit 20e498bd removes the pthread_mutex_rdlock() calls, but not the corresponding pthread_mutex_unlock() calls. Also, the database lock is never unlocked in one branch of the mempool_alloc() if. I think unreproducible random assert(dh->usable) crashes in prune_cache() were caused by this. But an easy way to make nscd threads hang with the broken locking was.
2009-07-16Use correct release semantic in list update.Andreas Schwab2-1/+7
nscd uses lockfree lists and we need to ensure the correct release semantics is used when adding to the list.
2009-07-16Fix race in corruption check.Ulrich Drepper2-2/+29
With atomic fastbins the checks performed can race with concurrent modifications of the arena. If we detect a problem re-do the test after getting the lock.
2009-07-16Use rel semantics of cas instead of acq semantics with full barrier before ↵Jakub Jelinek3-13/+35
it in _int_free The following patch fixes catomic_compare_and_exchange_*_rel definitions (which were never used and weren't correct) and uses catomic_compare_and_exchange_val_rel in _int_free. Comparing to the pre-2009-07-02 --enable-experimental-malloc state the generated code should be identical on all arches other than ppc/ppc64 and on ppc/ppc64 should use lwsync instead of isync barrier.
2009-07-16Remove warning and little optimization.Ulrich Drepper3-0/+9
The prototype for _dl_higher_prime_number was missing. While at it, the function is now marked with internal_function.
2009-07-16Optimize restoring of ymm registers on x86-64.Ulrich Drepper2-43/+39
The patch mainly reduces the code size but also avoids some jumps.
2009-07-16Fix up whitespaces in new memcmp for x86-64.Ulrich Drepper1-42/+42
2009-07-16memcmp implementation for x86-64 using SSE2.H.J. Lu2-0/+363
2009-07-15Fix thinko in AVX audit patch.Ulrich Drepper1-20/+4
Don't use AVX instructions too often.
2009-07-15Fix typo in last change.Ulrich Drepper1-1/+1
2009-07-15Secure AVX changes for auditing code.Ulrich Drepper3-326/+299
The original AVX patch used a function pointer to handle the difference between machines with and without AVX support. This is insecure. A well-placed memory exploit could lead to redirection of the execution. Using a variable and several tests is a bit slower but cannot be exploited in this way.
2009-07-15Fix build issue with modules for audit test on machines != x86-64.Ulrich Drepper2-3/+10
2009-07-10Add AVX support to ld.so auditing for x86-64.H.J. Lu19-126/+1018
2009-07-10Remove do-lookup.h.Ulrich Drepper4-388/+369
It is not necessary/useful anymore to have the content separate from dl-lookup.c.
2009-07-10Fix comment in Linux's <sys/epoll.h>.Ulrich Drepper2-2/+6
2009-07-09Implement STB_GNU_UNIQUE handling.Ulrich Drepper16-12/+375
Some symbols have to be identified process-wide by their name. This is particularly important for some C++ features (e.g., class local static data and static variables in inline functions). This cannot completely be implemented with ELF functionality so far. The STB_GNU_UNIQUE binding helps by ensuring the dynamic linker will always use the same definition for all symbols with the same name and this binding.
2009-07-07Define STB_GNU_UNIQUE.Ulrich Drepper2-0/+3
2009-07-07Clean up code for hash table handling in ld.so.Ulrich Drepper3-69/+74
2009-07-06Optimize test for valid ELF symbol types in lookup function.ibm/masterUlrich Drepper2-7/+11
2009-07-05Fix wrong PPC_FEATURE_* values.Andreas Schwab2-2/+7
Nothing uses these wrong values yet, but it fixes a warning due to conflicting definitions in <asm/cputable.h>.
2009-07-03Minor cleanups in recently added files.Ulrich Drepper3-79/+60
2009-07-03Align functions to 16-byte boundary.Ulrich Drepper5-0/+12
Some of the new multi-arch string functions for x86-64 were not aligned to 16 byte boundarie,s possibly creating unnecessary cache line misses and delays.
2009-07-03Add SSE4.2 support for strcspn, strpbrk, and strspn on x86-64.H.J. Lu14-7/+875
2009-07-02Fix whitespace in last patch.Ulrich Drepper2-2/+2
2009-07-02Fix handling of xmm6 in ld.so audit hooks on x86-64.H.J. Lu6-3/+227
2009-07-02Whitespace fixes in last patch.Ulrich Drepper1-31/+31
2009-07-02SSSE3 strcpy/stpcpy for x86-64H.J. Lu10-12/+1982
This patch adds SSSE3 strcpy/stpcpy. I got up to 4X speed up on Core 2 and Core i7. I disabled it on Atom since SSSE3 version is slower for shorter (<64byte) data.
2009-07-02Fix possible race when freeing object in fast bin list.Ulrich Drepper2-0/+6
2009-07-01Fix NIS and NIS+ getnetbyaddr backends.Ulrich Drepper3-2/+7
The addresses were interpreted as class-based network addresses.
2009-07-01Fix getent networks lookup and resulting incorrect NSS change.Ulrich Drepper3-4/+5
I changed the files NSS backend for networks because I thought the getent use of getnetbyaddr is correct. But it isn't. Undo parts of the last change and fix getent.
2009-07-01Fix getnetbyaddr implementation.Ulrich Drepper3-3/+11
There were two problems in the getnetbyaddr implementation. The type argument is pretty much useless since (almost) no input file contains this information and the NSS backends make up the value they fill in for the n_addrtype field. Therefore we now declare that passing AF_UNSPEC is always recognized. Secondly, the files backend didn't compare the network numbers with the correct endianess. Also change getent to take advantage of the type parameter change.
2009-06-30Regenerated.Ulrich Drepper1-6/+38
2009-06-30Fix little checkin problem in last patch.Ulrich Drepper1-2/+2
2009-06-30Determine and store processor family and model on x86-64.H.J. Lu4-8/+43
2009-06-26Implement second fallback mode for DNS requests.Ulrich Drepper4-19/+65
There is some more shardware/software out there which has problems if two DNS requests are sent using the same tuple (source addr, source port, dest addr, dest port) This can range from firewalls to load balancers. Some of the vendors already fixed it in response to this problem. Still, we need a way to make glibc work with broken environments. The single-request-reopen flag can be used or we fall back automatically to this mode.
2009-06-25Whitespace fix.Ulrich Drepper1-1/+1
2009-06-25Fix text relocation on ppc32.Andreas Schwab2-2/+26
The ____longjmp_chk implementation didn't load from memory the right way.
2009-06-24Fix cfa offset for saved registers in PPC sqrt implementations.Andreas Schwab5-8/+16
2009-06-23Handle empty TZ strings at the end of new-style timzeone files correctly.Andreas Schwab2-0/+8
2009-06-22Update from translation team.Ulrich Drepper2-5/+7
2009-06-22Update from translation team.Ulrich Drepper2-8/+12
2009-06-22Clean up whitespaces in last patch.Ulrich Drepper1-1/+1
2009-06-22Add SSE4.2 support for strcmp and strncmp on x86-64.H.J. Lu7-5/+1714
2009-06-22More whitespace cleanups.Ulrich Drepper2-2/+2
2009-06-22Clean up whitespaces in last patch.Ulrich Drepper3-6/+6
2009-06-22Add more IFUNC tests.H.J. Lu19-5/+457
Mostly tests around not-exported IFUNC functions, IFUNC in statically linked binaries and PIEs, etc.
2009-06-20Fix broken up NIS groups for compat NSS module.Ulrich Drepper2-75/+146
The check for the inclusion of a group in the result gave up too early in case of broken-up NIS groups. We now fall back automatically to the slow mode of using getgrent_r. As an optimization, if there is not blacklist we need not perform the check in the first place and therefore can just accept the results of the initgroups_dyn callback.