3860 Commits

Author SHA1 Message Date
Chaskiel M Grundman
3bd269b18c STABLE14-rx-send-req-ack-20070516
FIXES 60046

change reply code where appropriate


(cherry picked from commit a900fe30894b5c1bf3a55f2f539179c75c177dad)
2007-05-16 21:39:09 +00:00
Arkadi Shishlov
f09029031c STABLE14-glibc24-jmp-buf-mangling-20070516
FIXES 60440

glibc 2.4 does jmp buf manging for "security"

whatever. deal.


(cherry picked from commit f550e3b3ffeac6be73a780fa3ed43ab3dc4600ba)
2007-05-16 21:23:58 +00:00
Marcus Watts
7380d42269 STABLE14-supergroup-cleanup-20070516
FIXES 60809

Problems fixed with this patch:
/1/ supergroup bug: when updating an entry in prdb, the logic in
pt_mywrite is supposed to unset flagged & found bitmap entries.
This failed on little-endian architecture machines.

/2/ warnings; a few fixes to eliminate some compiler noise.


(cherry picked from commit d608809c247c9b8105c95e230449f98705767476)
2007-05-16 20:57:16 +00:00
Marcus Watts
4091ef3484 STABLE14-ptserver-fix-bitmap-20070516
FIXES 60680

make sure bitmap code is correct else supergroups returns invalid answer

fix verify code to be correct on little endian hosts


(cherry picked from commit 62dc1975410ad0dbea12a0c7e3c11a37230e5971)
2007-05-16 20:45:50 +00:00
Rainer Toebbicke
39eeb30750 STABLE14-namei-dont-randomly-full-salvage-20070514
FIXES 61300

trivial fix to clear forcep
(inode already does this)


(cherry picked from commit c78b4c61f70f6756a79440748ecacea2affec8ab)
2007-05-14 22:45:06 +00:00
Chaskiel M Grundman
f52d9908cf STABLE14-getdcache-no-slowpass-enforcement-on-dynroot-20070514
don't enforce slowpass check (and don't do unnecessary work) for dynroot vnodes


(cherry picked from commit 1b1c0eda5a3db6fe92d46d5f3d8529bf7c6378c2)
2007-05-14 22:38:43 +00:00
Erland Lewin
8b91e29426 STABLE14-dont-fclose-null-20070514
we erroneously don't check for not null before fclose. fix it.

(1.4 only bug)
2007-05-14 20:27:49 +00:00
Frank Cusack
fcdcec3526 STABLE14-fix-partition-check-20070510
oops


(cherry picked from commit 08cbee9b2d941d79b9f7919f4c76b1ab45ef3643)
2007-05-10 23:44:12 +00:00
Derrick Brashear
4c802bee8d STABLE14-vos-namelen-for-dump-restore-is-stupid-20070509
fixes bug reported by stephen joyce which i am too lazy to go get the RT number of


(cherry picked from commit f2761c416320a3ff2bb0af4298ca95b8ecb04211)
2007-05-10 01:18:18 +00:00
Russ Allbery
06cee6bb97 STABLE14-up-preserve-dir-mtime-20070507
FIXES 34522

Set the mtime on newly created directories to match the original directory.


(cherry picked from commit 1d4d8f5c4f125707fc6af432024d99e2672cadab)
2007-05-07 18:23:11 +00:00
Derrick Brashear
dd9a12cfbc STABLE14-rx-call-abort-release-refcount-20070425
don't leak a call ref when doing a call abort


(cherry picked from commit 92ecfdd675e8a851c7f0f19e5359362fa00c1c8f)
2007-04-25 20:50:21 +00:00
Jeffrey Altman
6e1a4895c0 STABLE14-viced-write-perm-grants-read-lock-20070423
the permission to obtain a write-lock is granted either by having the
"w" permission or the "i" when owning the file.  The permission to obtain
a read-lock has been granted by having the "k" permission.  However it
makes no sense that someone can obtain a write-lock but not a read-lock.
This patch grants permission to obtain read-locks to those who can obtain
write-locks.


(cherry picked from commit bb61e1dc678ea28132c195438fc1f157fa580cd1)
2007-04-24 01:41:03 +00:00
Jeffrey Altman
9b627ccc5d STABLE14-windows-wix-html-installgd-20070420
FIXES 59827

The wix installer creates the wrong directory name for the IBM Quick Guide


(cherry picked from commit c5c23b7bc4544af2c1204622cd67b835b27bcdab)
2007-04-20 11:59:41 +00:00
Rainer Toebbicke
99aff77ac9 STABLE14-linux-unlink-avoid-infrequent-leak-20070222
FIXES 54689

avoid minor leak


(cherry picked from commit 4f86aa379d345c98113bde2169b9d1400dcee89c)
2007-04-19 05:10:35 +00:00
Christopher Allen Wing
3320feb386 STABLE14-linux-symlink-handling-avoid-crash-20070418
Background: OpenAFS is vulnerable to crashing in the linux kernel symlink
code when running on kernel versions between 2.6.10 to 2.6.12.  This also
includes all RHEL4 kernels, because RHEL4 includes the code from 2.6.10. The
problem is that the symlink text caching API, page_follow_link() et al, is
unsuitable for network filesystems where the page cache may be invalidated
in parallel with a path lookup.

This crash can be triggered easily by doing a bunch of path lookups
involving symlinks (e.g., stat() on various files pointed to through links),
while simultaneously running 'fs flushvol' on the volume containing the
symlinks.

The simplest way to fix this problem is to disable the use of symlink text
caching when the kernel does not provide a usable symlink API.


(cherry picked from commit 2d18bd1777b8d18a3b855685928dcdafcbe609b8)
2007-04-18 19:27:46 +00:00
Chaskiel M Grundman
a9f5e9b4f8 STABLE14-vmalloc-no-glock-20070418
Based on Chris Wing's analysis which stated in part:
GFP_NOFS tells the allocator not to recurse back into the filesystem if it's
necessary to free up memory.  However, vmalloc() does not have such an
option.  Therefore, calling osi_Alloc() to request more than a page of
memory may end up recursing back into AFS to try to free unused inodes or
dentries.

In this case, what happened was that osi_Alloc() is called within an
AFS_GLOCK(); osi_Alloc() calls vmalloc() which tries to free dentry objects,
which then calls back into the AFS module.  Unfortunately, AFS_GLOCK() is
already held and we deadlock.


(cherry picked from commit 9943fe1fd71fc29331dcac7cd6a51bd37f307876)
2007-04-18 19:04:10 +00:00
Jeffrey Altman
20f2501322 STABLE14-windows-afskfw-bluescreen-20070418
The afskfw library contains an unprotected call to krb5_free_context
which can result in krb5_free_context being called with a NULL pointer.
MIT's Kerberos libraries do not check that the pointer is non-NULL and
will attempt to use it as a valid pointer which will in turn result
in an invalid memory access error.

This library is used by afslogon.dll which is loaded by winlogon.exe.

If the krb5 profile is invalid, the krb5_init_context call will fail
to allocate a krb5_context structure which can then result in
krb5_free_context being called with a NULL pointer.

An unhandled exception within winlogon.exe will cause a blue screen event
on Windows 2000, XP and 2003.


(cherry picked from commit 85a23a70c783364e039f2a1b402ba718c1fc34a5)
2007-04-18 16:58:22 +00:00
Jeffrey Altman
2f1e319540 STABLE14-comerr-rename-two-20070410
fix afsrpc.def add_to_error_table

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================

remove afs_krb_get_lrealm from afsauthent.dll it conflicts with libutil.lib


(cherry picked from commit 0ff92e9a5bd939cb3488ca64ce01b37bd4d7f79e)
2007-04-10 23:31:36 +00:00
Derrick Brashear
0431c29ae6 STABLE14-comerr-rename-20070410
nag nag nag
2007-04-10 19:43:28 +00:00
Derrick Brashear
daf402727b STABLE14-linux-config-h-died-ucontext-didnt-20070403
FIXES 57135

oops
2007-04-03 20:31:27 +00:00
Peter Breitenlohner
44e4664756 STABLE14-move-tasklist-lock-extern-outside-func-20070403
FIXES 53441

make tasklist-lock extern with pragma weak possibly work right


(cherry picked from commit 9c592530b18144ffbd91283fcd9690a9680c6cd9)
2007-04-03 19:57:06 +00:00
Neale Ferguson
89e90cadd4 STABLE14-s390x-syscall-patch-fix-20070326
make s390x syscall table patching work correctly


(cherry picked from commit 74e22e219036ca2c42182b1356371daa07ae6494)
2007-03-27 04:22:25 +00:00
Derrick Brashear
739e6e3de5 STABLE14-tvolser-locking-updates-20070322
rework locking in tvolser slightly to avoid potential transaction leak


(cherry picked from commit 1c9ede0bcf892ccc3b9b5cae819c7d94b0407b38)
2007-03-22 16:01:16 +00:00
Chas Williams
27eeffdced STABLE14-darwin-remunlink-20070320
FIXES 55280

make reumlink work the way it's supposed to


(cherry picked from commit c2fb9440f3d3f80c452590b40f7bd8ecdb13edfe)
2007-03-20 19:32:30 +00:00
Douglas Engert
0baf0809bb STABLE14-nfs-gc-fix-20070320
FIXES 56459

avoid issue with nfs gc handler and mismatched types


(cherry picked from commit ff81d7e77a4a302224dbb0f0c6b960ded42cafbe)
2007-03-20 19:24:11 +00:00
Robert Banz
cc98ae3917 STABLE14-namei-allow-zfs-20070320
don't force AlwaysAttach on ZFS in namei


(cherry picked from commit af0a976f1151f7ca7642013357d1dcc7267c6457)
2007-03-20 19:02:10 +00:00
Chaskiel M Grundman
3f85007dfb STABLE14-linux-task-pointer-safety-20070320
hold applicable locks while futzing with task list


(cherry picked from commit 29951ff73ccc82746f8f842131a76e30b47d5310)
2007-03-20 18:48:52 +00:00
Chaskiel M Grundman
021b05f99d STABLE14-keyring-pag-finduser-requires-glock-20070320
identical to the fix from chas@cmf.nrl.navy.mil


(cherry picked from commit 97d8703809a9e6798b80696da6439ab0887046fb)
2007-03-20 18:43:48 +00:00
Derrick Brashear
8ccd7b2193 STABLE14-openafs-1-4-4-20070319
make 1.4.4
openafs-stable-1_4_4
2007-03-20 00:54:05 +00:00
Derrick Brashear
bed7e986cb STABLE14-no-default-setuid-20070319
FIXES 54713

disable default setuid for localcell


(cherry picked from commit c4183dbc1fb0e3d4db5105fe3312816fc82a7a33)
2007-03-20 00:52:20 +00:00
Jeffrey Hutzelman
e3f9d9a1de STABLE14-cellservdb-20070309
(cherry picked from commit 97fd54f399148eaf6652bd2a42c8b9f424d680bc)
2007-03-10 04:52:48 +00:00
Derrick Brashear
5bb24173fe STABLE14-java-lock-fix-200702310
make it portable. ugh.


(cherry picked from commit 226c1ee8f9e24e199b2e2cf1ecc11dd072634450)
openafs-stable-1_4_3
2007-03-10 16:08:08 +00:00
Derrick Brashear
be0b74e0ce STABLE14-openafs-1-4-3-20070308
make 1.4.3
2007-03-09 00:39:36 +00:00
Jeffrey Altman
d2e10e1416 STABLE14-windows-fs-checkserver-20070302
FIXES 55234

The "fs checkservers" command when not being used to change the check
interval should not require admin privilege.


(cherry picked from commit e4d3681e3d9ba58c315f39d3852833b11811474c)
2007-03-03 01:30:45 +00:00
Jeffrey Altman
592f06bd4e STABLE14-windows-notes-20070227
1.4.3-rc2
openafs-stable-1_4_3rc3
2007-02-28 00:52:04 +00:00
Jeffrey Altman
729c790a9a STABLE14-windows-partially-restore-find-lana-by-name-20070227
find lana by name is used by the afs control panel to populate the
lana list box.  don't use the function to find by name.  just use
it to generate the list of all lana names.


(cherry picked from commit 561f8b742fceeed10e6f3d9639c96efb085ad2a9)
2007-02-28 00:39:55 +00:00
Jeffrey Altman
f53e52b9f7 STABLE14-remove-find-lana-by-name-20070227
commit the rest of the patch that didn't pullup from
STABLE14-remove-find-lana-by-name-20070219
2007-02-28 00:09:16 +00:00
Chaskiel M Grundman
9bab97f839 STABLE14-forcenewconns-even-with-one-interface-20070226
otherwise we don't discard vlserver connections when a server is "down"


(cherry picked from commit 9d5de311a6c2d96ee5092d58db28fff1b5602be7)
2007-02-26 22:18:28 +00:00
Derrick Brashear
7949736ff5 STABLE14-uae-etoomanyrefs-avoid-dup-20070222
when ETOOMANYREFS is EIO don't rewrite the EIO slot with UAETOOMANYREFS


(cherry picked from commit 0d5642e3ee1d72f11c4b6393cd4a352540f3b2ba)
2007-02-26 18:52:48 +00:00
Derrick Brashear
edb9f0716b STABLE14-openafs-143rc3-20070226
openafs 1.4.3rc3 (and appropriate windows build version increment)
2007-02-26 18:28:56 +00:00
Stephan Wiesand
ef97f5206d STABLE14-conditionalize-tasklist-lock-20070226
FIXES 54922

make rx_knet use tasklist_lock conditionally also


(cherry picked from commit a3a40968308e9ef894df3756af7ccd7ed141c74f)
2007-02-26 17:59:21 +00:00
Stephan Wiesand
e17449c6e5 STABLE14-update-tasklist-lock-test-20070226
FIXES 54916

make the tasklist lock test actually detect GPL stupidity


(cherry picked from commit bed42291bcc16065f23e964b64d60090ffaa96f9)
2007-02-26 17:53:33 +00:00
Marc Dionne
7410868846 STABLE14-linux-2621-20070222
FIXES 54645

configure support for new sysctl api


(cherry picked from commit f1a6107e0814d1e3e1d171834c97489479b5e6df)
2007-02-22 21:48:58 +00:00
Kevin Hildebrand
80bc564915 STABLE14-linux-lookup-crfree-20070220
FIXES 54549

add missing crfree to avoid leak


(cherry picked from commit 6ce156741b62702e1d1f10f3329f1b77341e32e5)
2007-02-20 18:06:24 +00:00
Jeffrey Altman
f24ebdbe99 STABLE14-remove-find-lana-by-name-20070219
Remove the find lana by name functionality.  It is crucial that the
name computed by the afs service can also be computed by the pioctl
function executed by generic end users without privilege.  Unfortunately,
the undocumented functions used to implement find lana by name require
access to registry keys that a generic user cannot read.


(cherry picked from commit b2ed3c527b831f329a380203433312653bcd91a4)
2007-02-20 03:07:28 +00:00
Jeffrey Hutzelman
3be9a40869 STABLE14-rxdebug-backoff-20070215
make rxdebug be less aggressive when retransmitting


(cherry picked from commit e92739f2b925545e441c2d77eaf4ece00ffbcb51)
2007-02-15 17:11:40 +00:00
Jeffrey Altman
904a463e7c STABLE14-windows-rmdir-not-empty-error-code-20070215
Ensure that removing a directory containing existing files returns
the correct error to the caller.


(cherry picked from commit 1f530ff095a8ffa38114373c80d8f4c5ead103d8)
2007-02-15 06:00:32 +00:00
Adam Megacz
db35a66f0e STABLE14-java-locking-redux-20070214
change the -1 len check for java locks slightly


(cherry picked from commit 65d89232521ceb1641ce0a14e1f3ed8d28b6afff)
2007-02-15 00:36:32 +00:00
Chaskiel M Grundman
5eb645b78b STABLE14-darwin-missing-dropnames-20070214
for correctness, not to fix anything which has yet been observed


(cherry picked from commit 465a6d533b253d71e8854dc6cedcbcdc5ce678e1)
2007-02-15 00:29:51 +00:00
Jeffrey Hutzelman
fc608cedf4 STABLE14-libafsdep-correction-20070214
FIXES 53441

apply the rest of the patch


(cherry picked from commit 083f3bcb2bcca382e00684ad1965dd1b224c9b4b)
2007-02-14 23:58:04 +00:00