]> git.michaelhowe.org Git - packages/o/openafs.git/log
packages/o/openafs.git
7 years agoUpdate changelog entry for new upstream prerelease
Benjamin Kaduk [Mon, 19 Feb 2018 16:18:57 +0000 (10:18 -0600)]
Update changelog entry for new upstream prerelease

Change-Id: Iea85ef2e21bdf653b24ffc401ba9b2b9009aea67

7 years agoMerge 1.8.0~pre4 packaging into master
Benjamin Kaduk [Sat, 6 Jan 2018 04:30:02 +0000 (22:30 -0600)]
Merge 1.8.0~pre4 packaging into master

The packaging was staged locally with a build package ready to upload,
just waiting on upstream's tag.  Merge this in to the uploader
removal commit already on master.

Change-Id: Ia0f5062e3370189125be3a30ef2cd87074e32bfc

7 years agoRelease 1.8.0~pre4-1 to unstable
Benjamin Kaduk [Thu, 4 Jan 2018 04:14:57 +0000 (22:14 -0600)]
Release 1.8.0~pre4-1 to unstable

Change-Id: Icca947c49aae245559f961d7e64c423230e63f1b

7 years agoSome doc path fixes from Anders
Benjamin Kaduk [Thu, 14 Dec 2017 01:59:28 +0000 (19:59 -0600)]
Some doc path fixes from Anders

Change-Id: If5fa59c3e5db849f32ef1fb0fa7d296635597053

7 years agoUpdate Dutch translation
Benjamin Kaduk [Thu, 4 Jan 2018 03:41:33 +0000 (21:41 -0600)]
Update Dutch translation

Change-Id: I2db78cb79fcab8756aa7de41f368d9983e304c7e

7 years agoAdd missing bug closer
Benjamin Kaduk [Thu, 4 Jan 2018 03:39:24 +0000 (21:39 -0600)]
Add missing bug closer

Russ's patch got merged upstream, so this should be set.

Change-Id: I463776f22735e488bea52133f2a0e46660287ba6

7 years agoTake standards-version 4.1.3
Benjamin Kaduk [Thu, 4 Jan 2018 03:35:02 +0000 (21:35 -0600)]
Take standards-version 4.1.3

No changes needed, but appease lintian.

Change-Id: I752b74fdcb1dbd3f2124bd4d38b861db4e724329

7 years agoTweak akeyconvert NEWS
Benjamin Kaduk [Thu, 4 Jan 2018 03:00:18 +0000 (21:00 -0600)]
Tweak akeyconvert NEWS

Mention that it's run in the postinst, and talk about continued
management of krb5 keys.

Change-Id: I77a6e00f12ca7a4a6557c066625a69409ac375ad

7 years agoUpdate NEWS entries to reflect new version
Benjamin Kaduk [Thu, 4 Jan 2018 02:58:10 +0000 (20:58 -0600)]
Update NEWS entries to reflect new version

There were several versions whose changelog entries were consolidated
into a single one for the first upload to unstable; adapt the
NEWS entries to match.

Change-Id: I2c4c9e8ac3d8d708e8b8c556b952a854eefb4ca1

7 years agoMerge branch 'experimental'
Benjamin Kaduk [Thu, 4 Jan 2018 02:34:11 +0000 (20:34 -0600)]
Merge branch 'experimental'

Bring in the accumulated packaging changes needed for the 1.8.0 branch
in preparation for (temporarily, at least) retiring the 'experimental'
branch.

Change-Id: I037ac47de0f2c8aaf7451e321866b08262fb3267

7 years agoUpdate upstream source from tag 'upstream/1.8.0_pre4'
Benjamin Kaduk [Thu, 4 Jan 2018 02:02:45 +0000 (20:02 -0600)]
Update upstream source from tag 'upstream/1.8.0_pre4'

Update to upstream version '1.8.0~pre4'

Change-Id: I48343f0297709afa28f22d2f26967e18fa73cff8

7 years agoNew upstream version 1.8.0~pre4 upstream/1.8.0_pre4
Benjamin Kaduk [Thu, 4 Jan 2018 01:24:15 +0000 (19:24 -0600)]
New upstream version 1.8.0~pre4

Change-Id: Id07629dafd286bdfd92746193093ac05e2b454f3

7 years agoChangelog entry for new upstream release branch
Benjamin Kaduk [Thu, 4 Jan 2018 01:08:29 +0000 (19:08 -0600)]
Changelog entry for new upstream release branch

The latest beta for the new major release branch.

Change-Id: Ib623b9873993f657a235da7e2f1cd2ae33e95161

7 years agoMake OpenAFS 1.8.0pre4
Benjamin Kaduk [Tue, 26 Dec 2017 23:42:39 +0000 (17:42 -0600)]
Make OpenAFS 1.8.0pre4

Update version strings for the fourth 1.8.0 prerelease.

Change-Id: Ib7defe21ca5e5a8c2214879633a467e002f3269b
Reviewed-on: https://gerrit.openafs.org/12837
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
7 years agoUpdate NEWS for 1.8.0pre4
Benjamin Kaduk [Tue, 26 Dec 2017 23:41:59 +0000 (17:41 -0600)]
Update NEWS for 1.8.0pre4

Change-Id: I0ba71b1e837309b36db39895914b6a8b9380a81f
Reviewed-on: https://gerrit.openafs.org/12836
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
7 years agoLINUX: Avoid d_invalidate() during afs_ShakeLooseVCaches()
Mark Vitale [Fri, 1 Dec 2017 01:26:46 +0000 (20:26 -0500)]
LINUX: Avoid d_invalidate() during afs_ShakeLooseVCaches()

With recent changes to d_invalidate's semantics (it returns void in Linux 3.11,
and always returns success in RHEL 7.4), it has become increasingly clear that
d_invalidate() is not the best function for use in our best-effort
(nondisruptive) attempt to free up vcaches that is afs_ShakeLooseVCaches().
The new d_invalidate() semantics always force the invalidation of a directory
dentry, which contradicts our desire to be nondisruptive, especially when
that directory is being used as the current working directory for a process.
Our call to d_invalidate(), intended to merely probe for whether a dentry
can be discarded without affecting other consumers, instead would cause
processes using that dentry as a CWD to receive ENOENT errors from getcwd().

A previous commit (c3bbf0b4444db88192eea4580ac9e9ca3de0d286) tried to address
this issue by calling d_prune_aliases() instead of d_invalidate(), but
d_prune_aliases() does not recursively descend into children of the given
dentry while pruning, leaving it an incomplete solution for our use-case.

To address these issues, modify the shakeloose routine TryEvictDentries() to
call shrink_dcache_parent() and maybe __d_drop() for directories, and
d_prune_aliases() for non-directories, instead of d_invalidate().  (Calls to
d_prune_aliases() for directories have already been removed by reverting commit
c3bbf0b4444db88192eea4580ac9e9ca3de0d286.)

Just like d_invalidate(), shrink_dcache_parent() has been around "forever"
(since pre-git v2.6.12).  Also like d_invalidate(), it "walks" the parent
dentry's subdirectories and "shrinks" (unhashes) unused dentries.  But unlike
d_invalidate(), shrink_dcache_parent() will not unhash an in-use dentry, and
has never changed its signature or semantics.

d_prune_aliases() has also been available "forever", and has also never changed
its signature or semantics.  The lack of recursive descent is not an issue for
non-directories, which cannot have such children.

[kaduk@mit.edu: apply review feedback to fix locking and avoid extraneous
changes, and reword commit message]

Reviewed-on: https://gerrit.openafs.org/12830
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
(cherry picked from commit afbc199f152cc06edc877333f229604c28638d07)

Change-Id: I6d37e5584b57dcbb056385a79f67b92a363e08d2
Reviewed-on: https://gerrit.openafs.org/12851
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Tested-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
7 years agoLINUX: consolidate duplicate code in osi_TryEvictDentries
Mark Vitale [Thu, 30 Nov 2017 22:56:13 +0000 (17:56 -0500)]
LINUX: consolidate duplicate code in osi_TryEvictDentries

The two stanzas for HAVE_DCACHE_LOCK are now functionally identical;
remove the preprocessor conditionals and duplicate code.

Minor functional change is incurrred for very old (before 2.6.38) Linux
versions that have dcache_lock; we are now obtaining the d_lock as well.

This is safe because d_lock is also quite old (pre-git, 2.6.12), and it
is a spinlock that's only held for checking d_unhashed.  Therefore, it
should have negligible performance impact.  It cannot cause deadlocks or
violate locking order, because spinlocks can't be held across sleeps.

Reviewed-on: https://gerrit.openafs.org/12792
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: Andrew Deason <adeason@dson.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
(cherry picked from commit 5076dfc14b980aed310f3862875d5e9919fa199d)

Change-Id: I7a17494b40c049a562dec20c50c27125f54436d0
Reviewed-on: https://gerrit.openafs.org/12850
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
7 years agoLINUX: consolidate duplicate code in canonical_dentry
Mark Vitale [Thu, 30 Nov 2017 21:51:32 +0000 (16:51 -0500)]
LINUX: consolidate duplicate code in canonical_dentry

The two stanzas for HAVE_DCACHE_LOCK are now identical;
remove the preprocessor conditionals and duplicate code.

No functional change should be incurred by this commit.

Reviewed-on: https://gerrit.openafs.org/12791
Reviewed-by: Andrew Deason <adeason@dson.org>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
(cherry picked from commit 0678ad26b6069040a6ea86866fb59ef5968ea343)

Change-Id: If0f9516201cea747a753db04ba2d0e2cac69971b
Reviewed-on: https://gerrit.openafs.org/12849
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
7 years agoLINUX: add afs_d_alias_lock & _unlock compat wrappers
Mark Vitale [Thu, 30 Nov 2017 21:46:16 +0000 (16:46 -0500)]
LINUX: add afs_d_alias_lock & _unlock compat wrappers

Simplify some #ifdefs for HAVE_DCACHE_LOCK by pushing them down into
new helpers in osi_compat.h.

No functional change should be incurred by this commit.

Reviewed-on: https://gerrit.openafs.org/12790
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
(cherry picked from commit 652cd597d9b3cf1a9daccbbf6bf35f1b0cd55a94)

Change-Id: I6aec7d6a21e68011ca10ceaa15e83d80f52fad59
Reviewed-on: https://gerrit.openafs.org/12848
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
7 years agoLINUX: create afs_linux_dget() compat wrapper
Mark Vitale [Thu, 30 Nov 2017 21:08:38 +0000 (16:08 -0500)]
LINUX: create afs_linux_dget() compat wrapper

For dentry operations that cover multiple dentry aliases of
a single inode, create a compatibility wrapper to hide differences
between the older dget_locked() and the current dget().

No functional change should be incurred by this commit.

Reviewed-on: https://gerrit.openafs.org/12789
Reviewed-by: Andrew Deason <adeason@dson.org>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
(cherry picked from commit 74f4bfc627c836c12bb7c188b86d570d2afdcae8)

Change-Id: Id854e5957547a1370cadb400f7f699c30d861fd1
Reviewed-on: https://gerrit.openafs.org/12847
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
7 years agoRevert "LINUX: do not use d_invalidate to evict dentries"
Mark Vitale [Thu, 30 Nov 2017 18:45:27 +0000 (13:45 -0500)]
Revert "LINUX: do not use d_invalidate to evict dentries"

Linux recently changed the semantics of d_invalidate() to:
- return void
- invalidate even a current working directory

OpenAFS commit c3bbf0b4444db88192eea4580ac9e9ca3de0d286 switched libafs
to use d_prune_aliases() instead.

However, since that commit, several things have happened:
- RHEL 7.4 changed the semantics of d_invalidate() such that it
  invalidates the cwd, but did NOT change the return type to void.
  This broke our autoconf test for detecting the new semantics.
- Further research reveals that d_prune_aliases() was not the best
  choice for replacing d_invalidate().  This is because for directories,
  d_prune_aliases() doesn't invalidate dentries when they are referenced
  by its children, and it doesn't walk the tree trying to invalidate
  child dentries.  So it can leave dentries dangling, if the only
  references to thos dentries are via children.

In preparation for future commits, revert
c3bbf0b4444db88192eea4580ac9e9ca3de0d286 .

Reviewed-on: https://gerrit.openafs.org/12788
Reviewed-by: Andrew Deason <adeason@dson.org>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
(cherry picked from commit 367693bd7da2de593e3329f6acc4a4d07621fb97)

Change-Id: I3dfa9127adf8424fe675e237194d6ade5a7fc4f1
Reviewed-on: https://gerrit.openafs.org/12846
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
7 years agoRevert "LINUX: eliminate unused variable warning"
Mark Vitale [Thu, 30 Nov 2017 19:04:48 +0000 (14:04 -0500)]
Revert "LINUX: eliminate unused variable warning"

This reverts commit 19599b5ef5f7dff2741e13974692fe4a84721b59
to allow also reverting commit
c3bbf0b4444db88192eea4580ac9e9ca3de0d286 .

Reviewed-on: https://gerrit.openafs.org/12787
Reviewed-by: Andrew Deason <adeason@dson.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit f8247078bd33a825d8734b2c8f05120d15ab3ffd)

Change-Id: I023c88e19d9f1a18b2bfaec8a35bd635f157b570
Reviewed-on: https://gerrit.openafs.org/12845
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
7 years agoRemove myself from Uploaders
Russ Allbery [Sat, 30 Dec 2017 04:54:14 +0000 (20:54 -0800)]
Remove myself from Uploaders

7 years agoredhat: separate debuginfo package for kmod rpm
Pat Riehecky [Thu, 12 Mar 2015 19:33:10 +0000 (14:33 -0500)]
redhat: separate debuginfo package for kmod rpm

Place the debuginfo for the kmod into its own rpm so that
it doesn't have to track against the userspace packages.

FIXES 132034

Reviewed-on: https://gerrit.openafs.org/11867
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
(cherry picked from commit 443dd5367e0cd9050ad39a6594c5be521271b4e9)

Change-Id: I6a24bb08242ec34c123880e9cbca4580a3560cba
Reviewed-on: https://gerrit.openafs.org/12822
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
7 years agoLinux 4.15: check for 2nd argument to pagevec_init
Stephan Wiesand [Fri, 22 Dec 2017 13:40:32 +0000 (14:40 +0100)]
Linux 4.15: check for 2nd argument to pagevec_init

Linux 4.15 removes the distinction between "hot" and "cold" cache
pages, and pagevec_init() no longer takes a "cold" flag as the
second argument. Add a configure test and use it in osi_vnodeops.c .

Reviewed-on: https://gerrit.openafs.org/12824
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Marcio Brito Barbosa <mbarbosa@sinenomine.net>
Tested-by: Marcio Brito Barbosa <mbarbosa@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit fb1f14d8ee963678a9caad0538256c99c159c2c4)

Change-Id: Ib9e0751e4900d984a4197d18ee9ebb1bdc7bf331
Reviewed-on: https://gerrit.openafs.org/12829
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
7 years agoLinux: use plain page_cache_alloc
Stephan Wiesand [Fri, 22 Dec 2017 13:17:09 +0000 (14:17 +0100)]
Linux: use plain page_cache_alloc

Linux 4.15 removes the distinction between "hot" and "cold" cache
pages, and no longer provides page_cache_alloc_cold(). Simply use
page_cache_alloc() instead, rather than adding yet another test.

Reviewed-on: https://gerrit.openafs.org/12823
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Marcio Brito Barbosa <mbarbosa@sinenomine.net>
Tested-by: Marcio Brito Barbosa <mbarbosa@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit be5f5b2aff2d59986dd8e7dd7dd531be24c27cb2)

Change-Id: I2d4df508abfa9d3c7020b8a2817ed3e882a4dbbc
Reviewed-on: https://gerrit.openafs.org/12828
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
7 years agomacos: make the OpenAFS client aware of APFS
Marcio Barbosa [Thu, 12 Oct 2017 15:42:40 +0000 (12:42 -0300)]
macos: make the OpenAFS client aware of APFS

Apple has introduced a new file system called APFS. Starting from High
Sierra, APFS replaces Mac OS Extended (HFS+) as the default file system
for solid-state drives and other flash storage devices.

The current OpenAFS client is not aware of APFS. As a result, the
installation of the current client into an APFS volume will panic the
machine.

To fix this problem, make the OpenAFS client aware of APFS.

Reviewed-on: https://gerrit.openafs.org/12743
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit 6e57b22642bafb177e0931b8fb24042707d6d62f)

Change-Id: I60d2a57fae3ee227bb3327a5e18962f46b49c991
Reviewed-on: https://gerrit.openafs.org/12827
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
7 years agomacos: packaging support for MacOS X 10.13
Marcio Barbosa [Fri, 6 Oct 2017 13:01:12 +0000 (10:01 -0300)]
macos: packaging support for MacOS X 10.13

This commit introduces the new set of changes / files required to
successfully create the dmg installer on OS X 10.13 "High Sierra".

Reviewed-on: https://gerrit.openafs.org/12742
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Marcio Brito Barbosa <mbarbosa@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit e533d0737058940d59d93467c9b4d6d3ec2834e6)

Change-Id: I8932f6a3db6a0572aa36944aa339b888fac94b7d
Reviewed-on: https://gerrit.openafs.org/12826
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
7 years agomacos: add support for MacOS 10.13
Marcio Barbosa [Tue, 3 Oct 2017 20:01:56 +0000 (17:01 -0300)]
macos: add support for MacOS 10.13

This commit introduces the new set of changes / files required to
successfully build the OpenAFS source code on OS X 10.13 "High Sierra".

Reviewed-on: https://gerrit.openafs.org/12741
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
(cherry picked from commit 804c9cbf501d4ca91b69ad8fd6d64e49efa25a47)

Change-Id: I9abcccf8313c8ac075eb1edbd36cbaa565968b38
Reviewed-on: https://gerrit.openafs.org/12825
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
8 years agoFix macro used to check kernel_read() argument order
Benjamin Kaduk [Fri, 15 Dec 2017 01:54:57 +0000 (19:54 -0600)]
Fix macro used to check kernel_read() argument order

The m4 macro implementing the configure check is called
LINUX_KERNEL_READ_OFFSET_IS_LAST, but it defines a preprocessor symbol
that is just KERNEL_READ_OFFSET_IS_LAST.  Our code needs to check
for the latter being defined, not the former.

Reported by Aaron Ucko.

Reviewed-on: https://gerrit.openafs.org/12808
Reviewed-by: Anders Kaseorg <andersk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit edc5463f3db4b6af2307741d9f4ee8f2c81cd98e)

Change-Id: I7bc6615118f1200d3f257e7a01652b49b458a8fa
Reviewed-on: https://gerrit.openafs.org/12809
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
8 years agorelease openafs-1.6.22-3 to unstable debian/1.6.22-3
Benjamin Kaduk [Fri, 15 Dec 2017 03:08:26 +0000 (21:08 -0600)]
release openafs-1.6.22-3 to unstable

Change-Id: I5974c4d9ac4a6a714d3792335a7befa05e8176d8

8 years agoPull in patch that properly includes stdint.h
Benjamin Kaduk [Fri, 15 Dec 2017 03:03:57 +0000 (21:03 -0600)]
Pull in patch that properly includes stdint.h

This should allow Ubuntu to return to syncing instead of having
their own additional patches.

Change-Id: I9e97fbb237d059433ba6193b67c22774602b3a77

8 years agoPull in upstream patch for an OOPS on linux 4.14 kernels
Benjamin Kaduk [Fri, 15 Dec 2017 02:58:16 +0000 (20:58 -0600)]
Pull in upstream patch for an OOPS on linux 4.14 kernels

An incorrect preprocessor macro name was used to check the result
of a configure check.

Change-Id: I4b7e8c27028ece726f2fa921757996d061b54767

8 years agorelease openafs-1.6.22-2 to unstable debian/1.6.22-2
Benjamin Kaduk [Thu, 14 Dec 2017 01:16:11 +0000 (19:16 -0600)]
release openafs-1.6.22-2 to unstable

Change-Id: I876f3024ca4c7c3434cad511e21294fe833bf9c9

8 years agoImport upstream patches for kernel 4.14 compatibility
Benjamin Kaduk [Thu, 14 Dec 2017 01:14:22 +0000 (19:14 -0600)]
Import upstream patches for kernel 4.14 compatibility

Change-Id: Ie6ebcb13df93de968e602f121f626fcc1c7b9ba8

8 years agoUpdate Russian debconf translation, per Lev Lamberov
Benjamin Kaduk [Sun, 10 Dec 2017 02:43:29 +0000 (20:43 -0600)]
Update Russian debconf translation, per Lev Lamberov

Change-Id: I4361e048509aa34da0298c455d8d80f1d5dd7265

8 years agoRelease openafs-1.8.0~pre3-1 to experimental debian/1.8.0_pre3-1
Benjamin Kaduk [Tue, 5 Dec 2017 17:52:45 +0000 (11:52 -0600)]
Release openafs-1.8.0~pre3-1 to experimental

Change-Id: I98afe73021145d029bd4bba973e71b1febf537a0

8 years agoFlesh out changelog for new upstream prerelease
Benjamin Kaduk [Wed, 29 Nov 2017 01:30:56 +0000 (19:30 -0600)]
Flesh out changelog for new upstream prerelease

Change-Id: I012768bb0393576f10efe9853de53ac0a26c2a2a

8 years agoUpdate upstream source from tag 'upstream/1.8.0_pre3'
Benjamin Kaduk [Tue, 5 Dec 2017 17:37:25 +0000 (11:37 -0600)]
Update upstream source from tag 'upstream/1.8.0_pre3'

Update to upstream version '1.8.0~pre3'
with Debian dir 3da54229046d67c4e47f5f6e82056954ddd34825

8 years agoNew upstream version 1.8.0~pre3 upstream/1.8.0_pre3
Benjamin Kaduk [Tue, 5 Dec 2017 17:37:08 +0000 (11:37 -0600)]
New upstream version 1.8.0~pre3

8 years agoAdd changelog entry for new upstream prerelease
Benjamin Kaduk [Tue, 5 Dec 2017 17:34:58 +0000 (11:34 -0600)]
Add changelog entry for new upstream prerelease

Change-Id: Ifaf29660bdabbffe627fa352d9423067949cb65c

8 years agoMerge branch 'master' into experimental
Benjamin Kaduk [Tue, 5 Dec 2017 17:30:56 +0000 (11:30 -0600)]
Merge branch 'master' into experimental

Pick up the latest lintian fixes, and provide a good merge base
for subsequent merges.

Change-Id: Ia4d58df780b8da7715062d384d3653161503e6f1

8 years agoRelease openafs-1.6.22-1 to unstable debian/1.6.22-1
Benjamin Kaduk [Tue, 5 Dec 2017 16:28:26 +0000 (10:28 -0600)]
Release openafs-1.6.22-1 to unstable

Change-Id: Iac56f6f8ee8b66baf0f1ab48e0b2f5bc9f34588f

8 years agoAppease lintian:
Benjamin Kaduk [Wed, 29 Nov 2017 02:36:38 +0000 (20:36 -0600)]
Appease lintian:

- Update standards-version
- Replace dh-systemd dependency with sufficiently new debhelper
- Priority extra is replaced by priority optional

Change-Id: I78e8d002777191f231d55c86e8155867ad98f9eb

8 years agoUpdate patches for new upstream version
Benjamin Kaduk [Tue, 5 Dec 2017 16:16:11 +0000 (10:16 -0600)]
Update patches for new upstream version

(That is, remove patches that we had cherry-picked in from upstream.)

Change-Id: I80ccaf19284fafce7de148832341b3c85017c4d4

8 years agoFlesh out changelog for new upstream release
Benjamin Kaduk [Tue, 5 Dec 2017 16:04:07 +0000 (10:04 -0600)]
Flesh out changelog for new upstream release

Change-Id: I514a3e0344f61c4167338a340f0388c4eb884c8b

8 years agoUpdate upstream source from tag 'upstream/1.6.22'
Benjamin Kaduk [Tue, 5 Dec 2017 16:12:57 +0000 (10:12 -0600)]
Update upstream source from tag 'upstream/1.6.22'

Update to upstream version '1.6.22'
with Debian dir ccdc6a1bd65a9f7fec854aa056880d7ff9b32e29

8 years agoNew upstream version 1.6.22 upstream/1.6.22
Benjamin Kaduk [Tue, 5 Dec 2017 16:12:41 +0000 (10:12 -0600)]
New upstream version 1.6.22

8 years agoAdd changelog entry for new upstream release
Benjamin Kaduk [Tue, 5 Dec 2017 16:11:03 +0000 (10:11 -0600)]
Add changelog entry for new upstream release

Change-Id: I6978b83954036dcf72a7b5df376b2eb2ee8e5a84

8 years agoMake OpenAFS 1.6.22
Benjamin Kaduk [Tue, 5 Dec 2017 01:41:36 +0000 (19:41 -0600)]
Make OpenAFS 1.6.22

Update version strings for release 1.6.22.

Change-Id: I7c7f6376cbe4666a1da2fc4cb748067666cd541a

8 years agoUpdate NEWS for 1.6.22
Benjamin Kaduk [Tue, 5 Dec 2017 01:39:50 +0000 (19:39 -0600)]
Update NEWS for 1.6.22

Release notes for OpenAFS 1.6.22

Change-Id: I454c736030c9b47823fc36f7e28a16025165cd87

8 years agoOPENAFS-SA-2017-001: rx: Sanity-check received MTU and twind values
Benjamin Kaduk [Mon, 4 Dec 2017 23:20:57 +0000 (17:20 -0600)]
OPENAFS-SA-2017-001: rx: Sanity-check received MTU and twind values

Rather than blindly trusting the values received in the
(unauthenticated) ack packet trailer, apply some minmial sanity checks
to received values.  natMTU and regular MTU values are subject to
Rx minmium/maximum packet sizes, and the transmit window cannot drop
below one without risk of deadlock.

The maxDgramPackets value that can also be present in the trailer
already has sufficient sanity checking.

Extremely low MTU values (less than 28 == RX_HEADER_SIZE) can cause us
to set a negative "maximum usable data" size that gets used as an
(unsigned) packet length for subsequent allocation and computation,
triggering an assertion when the connection is used to transmit data.

FIXES 134450

(cherry picked from commit 894555f93a2571146cb9ca07140eb98c7a424b01)
(cherry picked from commit eae2575dc738bd69bb6a0a84f87f02f5cf2b4eb9)

Change-Id: Ic83c2eef69a9f59a0f0b1469681aaef9f42b0a18

8 years agoUpdate NEWS for rx security fix
Benjamin Kaduk [Tue, 5 Dec 2017 00:14:22 +0000 (18:14 -0600)]
Update NEWS for rx security fix

Change-Id: I30282ac8f51a7b16dd851fdbd41464f8fdafc279

8 years agoOPENAFS-SA-2017-001: rx: Sanity-check received MTU and twind values
Benjamin Kaduk [Mon, 4 Dec 2017 23:20:57 +0000 (17:20 -0600)]
OPENAFS-SA-2017-001: rx: Sanity-check received MTU and twind values

Rather than blindly trusting the values received in the
(unauthenticated) ack packet trailer, apply some minmial sanity checks
to received values.  natMTU and regular MTU values are subject to
Rx minmium/maximum packet sizes, and the transmit window cannot drop
below one without risk of deadlock.

The maxDgramPackets value that can also be present in the trailer
already has sufficient sanity checking.

Extremely low MTU values (less than 28 == RX_HEADER_SIZE) can cause us
to set a negative "maximum usable data" size that gets used as an
(unsigned) packet length for subsequent allocation and computation,
triggering an assertion when the connection is used to transmit data.

FIXES 134450

(cherry picked from commit 894555f93a2571146cb9ca07140eb98c7a424b01)

Change-Id: I98e2a65d1aa291a73e8cfed9c9eaac71c6af00dc

8 years agoMake OpenAFS 1.8.0pre3
Benjamin Kaduk [Wed, 8 Nov 2017 13:11:45 +0000 (07:11 -0600)]
Make OpenAFS 1.8.0pre3

Update the version strings for the third 1.8.0 prerelease.

Change-Id: I25a4eee4de04e57ffcf9055f69ae9a3d683b8d64
Reviewed-on: https://gerrit.openafs.org/12765
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
8 years agoUpdate NEWS for 1.8.0pre3
Benjamin Kaduk [Tue, 7 Nov 2017 03:30:04 +0000 (21:30 -0600)]
Update NEWS for 1.8.0pre3

Change-Id: I38110825cbe8b5c4ca18d86e4542374ae26f6fd4
Reviewed-on: https://gerrit.openafs.org/12764
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
8 years agoafs: Fix bounds check in PNewCell
Benjamin Kaduk [Tue, 28 Nov 2017 04:17:28 +0000 (22:17 -0600)]
afs: Fix bounds check in PNewCell

Reported by the opensuse buildbot:

  CC [M]  /home/buildbot/opensuse-tumbleweed-i386-builder/build/src/libafs/MODLOAD-4.13.12-1-default-MP/rx_packet.o
/home/buildbot/opensuse-tumbleweed-i386-builder/build/src/afs/afs_pioctl.c: In function ‘PNewCell’:
/home/buildbot/opensuse-tumbleweed-i386-builder/build/src/afs/afs_pioctl.c:3075:55: error: ‘*’ in boolean context, suggest ‘&&’ instead [-Werror=int-in-bool-context]
     if ((afs_pd_remaining(ain) < AFS_MAXCELLHOSTS +3) * sizeof(afs_int32))
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~

The bug was introduced in commit 718f85a8b6.

Reviewed-on: https://gerrit.openafs.org/12782
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit 4fa0ee620cfb9991ca9748b5ee116cc8e1e6c505)

Change-Id: I0963403846a62dddf2d13ce3c03d772a6d869119
Reviewed-on: https://gerrit.openafs.org/12784
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
8 years agorx: fix call refcount leak in error case
Benjamin Kaduk [Tue, 28 Nov 2017 04:07:53 +0000 (22:07 -0600)]
rx: fix call refcount leak in error case

The recent event handling normalization in commit
304d758983b499dc568d6ca57b6e92df24b69de8 had event handlers switch
to dropping their reference on the associated connection/call just
before return.  An early return case was missed in the conversion,
leading to a refcount leak in an error case.

Reviewed-on: https://gerrit.openafs.org/12781
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit 66b74e78ba5fea6a8236dcd3b8b46e1dfa6a0ac7)

Change-Id: I532c49b2ef6ec95dd26a99c02e12ea53348f9690
Reviewed-on: https://gerrit.openafs.org/12783
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
8 years agoafs: fix kernel_write / kernel_read arguments
Marcio Barbosa [Thu, 16 Nov 2017 22:24:03 +0000 (17:24 -0500)]
afs: fix kernel_write / kernel_read arguments

The order / content of the arguments passed to kernel_write and
kernel_read are not right. As a result, the kernel will panic if one of
the functions in question is called.

[kaduk@mit.edu: include configure check for multiple kernel_read()
variants, per linux commits bdd1d2d3d251c65b74ac4493e08db18971c09240
and e13ec939e96b13e664bb6cee361cc976a0ee621a]

FIXES 134440

Reviewed-on: https://gerrit.openafs.org/12769
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Tested-by: Marcio Brito Barbosa <mbarbosa@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit 3ce55426ee6912b78460465bcaa1428333ad1fbc)

Change-Id: I28f04f7625a471c37f98515d5186f80082bf6a43
Reviewed-on: https://gerrit.openafs.org/12780
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
8 years agotests: fix out of bounds access in the rx-event test
Michael Meffie [Mon, 6 Nov 2017 22:37:46 +0000 (17:37 -0500)]
tests: fix out of bounds access in the rx-event test

Use the NUMEVENTS symbol which defines the array size instead of an
incorrect hard coded number when checking if a second event can be added
to be fired at the same time.  This fixes a potential out of bounds
access of the event test array.

Also update the comment which incorrectly mentions the incorrect number
of events in the test.

Reviewed-on: https://gerrit.openafs.org/12762
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
(cherry picked from commit 50a3eb7b7ee94bffaadc98429bd404164e89ec7f)

Change-Id: I7a975e7498c1c7416a800c9294c97ee4de4fd57a
Reviewed-on: https://gerrit.openafs.org/12779
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
8 years agoSprinkle rx_GetConnection() for concision
Benjamin Kaduk [Thu, 16 Nov 2017 10:49:49 +0000 (04:49 -0600)]
Sprinkle rx_GetConnection() for concision

Instead of inlining the body (taking the lock, incrementing the
refcount, and dropping the lock), use the convenience function
designed for this purpose.

Reviewed-on: https://gerrit.openafs.org/12772
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit 2ae84bf053fe66b73a2c77b5d71305bae2c17587)

Change-Id: I60794d877a76fbb7c8ba59207e710a20641cc8f1
Reviewed-on: https://gerrit.openafs.org/12778
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
8 years agorx: fix mutex leak in error case
Benjamin Kaduk [Thu, 16 Nov 2017 10:48:02 +0000 (04:48 -0600)]
rx: fix mutex leak in error case

Reported by Mark Vitale

Reviewed-on: https://gerrit.openafs.org/12771
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit 01bcfd3e14f6ee1faa4b8ce5a7932de37d585fd3)

Change-Id: I4384d6813a5cfb053e6991eb3c157fa59ecfa11b
Reviewed-on: https://gerrit.openafs.org/12777
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
8 years agoAdd event-related mutex assertions
Benjamin Kaduk [Wed, 1 Nov 2017 00:49:09 +0000 (19:49 -0500)]
Add event-related mutex assertions

In utility functions that access fields of type struct rxevent *,
assert that the appropriate lock is held for the access in question.

These assertions are only compiled in when built with -DOPR_DEBUG_LOCKS,
which can be enbled by --debug-locks at configure time.

Reviewed-on: https://gerrit.openafs.org/12757
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit a7a3108e602c83176c5578c9f28b6312f71aba78)

Change-Id: I147a2e475feffb1b75a08ac5b08614bd6d8f46a5
Reviewed-on: https://gerrit.openafs.org/12776
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
8 years agoStandardize rx_event usage
Benjamin Kaduk [Sun, 8 Oct 2017 03:42:38 +0000 (22:42 -0500)]
Standardize rx_event usage

Go over all consumers of the rx event framework and normalize its usage
according to the following principles:

rxevent_Post() is used to create an event, and it returns an event
handle (with a reference on the event structure) that can be used
to cancel the event before its timeout fires.  (There is also an
additional reference on the event held by the global event tree.)
In all(*) usage within the tree, that event handle is stored within
either an rx_connection or an rx_call.  Reads/writes to the member variable
that holds the event handle require either the conn_data_lock or call
lock, respectively -- that means that in most cases, callers of
rxevent_Post() and rxevent_Cancel() will be holding one of those
aforementioned locks.  The event handlers themselves will need to
modify the call/connection object according to the nature of the
event, which requires holding those same locks, and also a guarantee
that the call/connection is still a live object and has not been
deallocated!  Whether or not rxevent_Cancel() succeeds in cancelling
the event before it fires, whenever passed a non-NULL event structure
it will NULL out the supplied pointer and drop a reference on the
event structure.  This is the correct behavior, since the caller
has asked to cancel the event and has no further use for the event
handle or its reference on the event structure.  The caller of
rxevent_Cancel() must check its return value to know whether or
not the event was cancelled before its handler was able to run.

The interaction window between the call/connection lock and the lock
protecting the red/black tree of pending events opens up a somewhat
problematic race window.  Because the application thread is expected
to hold the call/connection lock around rxevent_Cancel() (to protect
the write to the field in the call/connection structure that holds
an event handle), and rxevent_Cancel() must take the lock protecting
the red/black tree of events, this establishes a lock order with the
call/connection lock taken before the eventTree lock.  This is in
conflict with the event handler thread, which must take the eventTree
lock first, in order to select an event to run (and thus know what
additional lock would need to be taken, by virtue of what handler
function is to be run).  The conflict is easy to resolve in the
standard way, by having a local pointer to the event that is obtained
while the event is removed from the red/black tree under the eventTree
lock, and then the eventTree lock can be dropped and the event run
based on the local variable referring to it.  The race window occurs
when the caller of rxevent_Cancel() holds the call/connection lock,
and rxevent_Cancel() obtains the eventTree lock just after the event
handler thread drops it in order to run the event.  The event handler
function begins to execute, and immediately blocks trying to obtain
the call/connection lock.  Now that rxevent_Cancel() has the eventTree
lock it can proceed to search the tree, fail to find the indicated event
in the tree, clear out the event pointer from the call/connection
data structure, drop its caller's reference to the event structure,
and return failure (the event was not cancelled).  Only then does the
caller of rxevent_Cancel() drop the call/connection lock and allow
the event handler to make progress.

This race is not necessarily problematic if appropriate care is taken,
but in the previous code such was not the case.  In particular, it
is a common idiom for the firing event to call rxevent_Put() on itself,
to release the handle stored in the call/connection that could have
been used to cancel the event before it fired.  Failing to do so would
result in a memory leak of event structures; however, rxevent_Put() does
not check for a NULL argument, so a segfault (NULL dereference) was
observed in the test suite when the race occurred and the event handler
tried to rxevent_Put() the reference that had already been released by
the unsuccessful rxevent_Cancel() call.  Upon inspection, many (but not
all) of the uses in rx.c were susceptible to a similar race condition
and crash.

The test suite also papers over a related issue in that the event handler
in the test suite always knows that the data structure containing the
event handle will remain live, since it is a global array that is allocated
for the entire scope of the test.  In rx.c, events are associated with
calls and connections that have a finite lifetime, so we need to take care
to ensure that the call/connection pointer stored in the event remains
valid for the duration of the event's lifecycle.  In particular, even an
attempt to take the call/connection lock to check whether the corresponding
event field is NULL is fraught with risk, as it could crash if the lock
(and containing call/connection) has already been destroyed!  There are
several potential ways to ensure the liveness of the associated
call/connection while the event handler runs, most notably to take care
in the call/connection destruction path to ensure that all associated
events are either successfully cancelled or run to completion before
tearing down the call/connection structure, and to give the pending event
its own reference on the associated call/connection.  Here, we opt for
the latter, acknowledging that this may result in the event handler thread
doing the full call/connection teardown and delay the firing of subsequent
events.  This is deemed acceptable, as pending events are for intentionally
delayed tasks, and some extra delay is probably acceptable.  (The various
keepalive events and the challenge event could delay the user experience
and/or security properties if significantly delayed, but I do not believe
that this change admits completely unbounded delay in the event handler
thread, so the practical risk seems minimal.)

Accordingly, this commit attempts to ensure that:

* Each event holds a formal reference on its associated call/connection.
* The appropriate lock is held for all accesses to event pointers in
  call/connection structures.
* Each event handler (after taking the appropriate lock) checks whether
  it raced with rxevent_Cancel() and only drops the call/connection's
  reference to the event if the race did not occur.
* Each event handler drops its reference to the associated call/connection
  *after* doing any actions that might access/modify the call/connection.
* The per-event reference on the associated call/connection is dropped by
  the thread that removes the event from the red/black tree.  That is,
  the event handler function if the event runs, or by the caller of
  rxevent_Cancel() when the cancellation succeed.
* No non-NULL event handles remain in a call/connection being destroyed,
  which would indicate a refcounting error.

(*) There is an additional event used in practice, to reap old connections,
    but it is effectively a background task that reschedules itself
    periodically, with no handle to the event retained so as to be able
    to cancel it.  As such, it is unaffected by the concerns raised here.

While here, standardize on the rx_GetConnection() function for incrementing
the reference count on a connection object, instead of inlining the
corresponding mutex lock/unlock and variable access.

In contrast to what was done on master, for the 1.8 branch we do not
force-enable refcount checking.

Reviewed-on: https://gerrit.openafs.org/12756
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit 304d758983b499dc568d6ca57b6e92df24b69de8)

Change-Id: I68e6cc162a148b6ebbabe037a7bc3cccd648423c
Reviewed-on: https://gerrit.openafs.org/12775
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
8 years agoAdjust rx-event test to exercise cancel/fire race
Benjamin Kaduk [Thu, 5 Oct 2017 04:03:44 +0000 (23:03 -0500)]
Adjust rx-event test to exercise cancel/fire race

We currently do not properly handle the case where a thread runs
rxevent_Cancel() in parallel with the event-handler thread attempting
to fire that event, but the test suite only picked up on this issue
in a handful of the Debian automated builds (somewhat less-resourced
ones, perhaps).

Modify the event scheduling algorithm in the test so as to create a
larger chunk of events scheduled to fire "right away" and thereby
exercise the race condition more often when we proceed to cancel
a quarter of events "right away".

Reviewed-on: https://gerrit.openafs.org/12755
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit bdb509fb1d8e0fdca05dffecdbcbf60a95ea502e)

Change-Id: I27cebed3c2c3daff10b8d3f5f6f949e667791a72
Reviewed-on: https://gerrit.openafs.org/12774
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
8 years agogtx: link against libtinfo if termlib is seperated
Michael Laß [Thu, 2 Nov 2017 20:16:49 +0000 (21:16 +0100)]
gtx: link against libtinfo if termlib is seperated

If ncurses is built with "./configure --with-termlib=tinfo", gtx fails
to link because of an undefined reference to the LINES symbol which is
then provided by libtinfo.so and not libncurses.so.

If ncurses is present, additionally check whether LINES is provided by
ncurses or tinfo and set $LIB_curses accordingly.

This change is based on a patch provided by Bastian Beischer.

FIXES 134420

Reviewed-on: https://gerrit.openafs.org/12760
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit 311f1d28a2f626350b33ad432e674055b62511bd)

Change-Id: I2f69fe51bbefeeb2a17145a88aa9c891644f2f61
Reviewed-on: https://gerrit.openafs.org/12763
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Michael Laß <lass@mail.uni-paderborn.de>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
8 years agoLinux: Use kernel_read/kernel_write when __vfs variants are unavailable
Damien Diederen [Mon, 18 Sep 2017 10:18:39 +0000 (12:18 +0200)]
Linux: Use kernel_read/kernel_write when __vfs variants are unavailable

We hide the uses of set_fs/get_fs behind a macro, as those functions
are likely to soon become unavailable:

> Christoph Hellwig suggested removing all calls outside of the core
> filesystem and architecture code; Andy Lutomirski went one step
> further and said they should all go.

    https://lwn.net/Articles/722267/

Reviewed-on: https://gerrit.openafs.org/12729
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit 5ee516b3789d3545f3d78fb3aba2480308359945)

Change-Id: I28a7126bf6ab048f8d949f190e557a3fa44f3f46
Reviewed-on: https://gerrit.openafs.org/12737
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
8 years agoLinux: Test for __vfs_write rather than __vfs_read
Damien Diederen [Mon, 18 Sep 2017 09:59:40 +0000 (11:59 +0200)]
Linux: Test for __vfs_write rather than __vfs_read

The following commit:

    commit eb031849d52e61d24ba54e9d27553189ff328174
    Author: Christoph Hellwig <hch@lst.de>
    Date:   Fri Sep 1 17:39:23 2017 +0200

        fs: unexport __vfs_read/__vfs_write

unexports both __vfs_read and __vfs_write, but keeps the former in
fs.h--as it is is still being used by another part of the tree.

This situation results in a false positive in our Autoconf check,
which does not see the export statements, and ends up marking the
corresponding API as available.

That, in turn, causes some code which assumes symmetry with
__vfs_write to fail to compile.

Switch to testing for __vfs_write, which correctly marks the API as
unavailable.

Reviewed-on: https://gerrit.openafs.org/12728
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit 929e77a886fc9853ee292ba1aa52a920c454e94b)

Change-Id: I03e3c8222360a6b04b45b45a8f56b5df054f6783
Reviewed-on: https://gerrit.openafs.org/12736
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
8 years agoCorrect m4 conditionals in curses.m4
Benjamin Kaduk [Mon, 16 Oct 2017 21:53:22 +0000 (16:53 -0500)]
Correct m4 conditionals in curses.m4

AS_IF does not invoke the test(1) shell builtin for us, so we must
take care to consistently use it ourself.

While here, sprinkle some missing double-quotes around variable
expansions in AS_IF statements in this file.

Submitted by Bastian Beischer.

FIXES 134414

Change-Id: Iccfe311011f17de6317cf64abdc58b0812b81b8c
Reviewed-on: https://gerrit.openafs.org/12738
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit e0c5ada214596d5adb6798682d5e280cc99f447c)
Reviewed-on: https://gerrit.openafs.org/12739

8 years agovol: Fix two buffers being one char too short
Anders Kaseorg [Sat, 2 Sep 2017 03:37:07 +0000 (23:37 -0400)]
vol: Fix two buffers being one char too short

Fixes these warnings:

namei_ops.c: In function 'namei_copy_on_write':
namei_ops.c:1328:31: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=]
  snprintf(path, sizeof(path), "%s-tmp", name.n_path);
                               ^~~~~~~~
namei_ops.c:1328:2: note: 'snprintf' output between 5 and 260 bytes into a destination of size 259
  snprintf(path, sizeof(path), "%s-tmp", name.n_path);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

vol_split.c: In function 'split_volume':
vol_split.c:576:22: warning: 'sprintf' may write a terminating nul past the end of the destination [-Wformat-overflow=]
     sprintf(symlink, "#%s", V_name(newvol));
                      ^~~~~
vol_split.c:576:5: note: 'sprintf' output between 2 and 33 bytes into a destination of size 32
     sprintf(symlink, "#%s", V_name(newvol));
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reviewed-on: https://gerrit.openafs.org/12722
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
(cherry picked from commit 0a9a6b57ce6e1c97fcc651c8cb74e66fc8422a1e)

Change-Id: Ia60439aed7925b786a0213d96a7afb413579e01f
Reviewed-on: https://gerrit.openafs.org/12723
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
8 years agoMake OpenAFS 1.6.21.1
Stephan Wiesand [Wed, 23 Aug 2017 14:33:26 +0000 (16:33 +0200)]
Make OpenAFS 1.6.21.1

Update configure version strings for 1.6.21.1. Note that macos kext
can be of form XXXX.YY[.ZZ[(d|a|b|fc)NNN]] where d dev, a alpha,
b beta, f final candidate so we have no way to represent 1.6.21.1.
Switch to 1.6.22 dev 1 for macOs.

Change-Id: I73ebd481fdfe0d096b67138d4cb0f7b0d53e9e59
Reviewed-on: https://gerrit.openafs.org/12713
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
8 years agoUpdate NEWS again for 1.6.21.1
Stephan Wiesand [Wed, 20 Sep 2017 17:33:15 +0000 (19:33 +0200)]
Update NEWS again for 1.6.21.1

We decided to include the fix for kernel 4.12+ on s390 today. Reflect
this in the release notes.

Change-Id: Ib73b157c2ec437ac4fd0f4cd0df8ea22da7abf7f
Reviewed-on: https://gerrit.openafs.org/12726
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
8 years agoLinux: Include linux/uaccess.h rather than asm/uaccess.h if present
Seth Forshee [Tue, 22 Aug 2017 12:59:11 +0000 (07:59 -0500)]
Linux: Include linux/uaccess.h rather than asm/uaccess.h if present

Starting with Linux 4.12 there is a module build error on s390
due to asm/uaccess.h using a macro defined in the common header.
The common header has been around since 2.6.18 and has always
included asm/uaccess.h, so switch to using the common header
whenever it is present.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Reviewed-on: https://gerrit.openafs.org/12714
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
(cherry picked from commit 962f4838dc461567d896304f617a0923745d13d5)

Reviewed-on: https://gerrit.openafs.org/12718
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit 7073408688da021864bba59c592e8924e05adb91)

Change-Id: Ie58cfcf48aa80c18f19cbfc65f87363b154e96ee
Reviewed-on: https://gerrit.openafs.org/12717
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
8 years agoUpdate NEWS for 1.6.21.1
Stephan Wiesand [Tue, 19 Sep 2017 13:32:31 +0000 (15:32 +0200)]
Update NEWS for 1.6.21.1

Add release notes for OpenAFS 1.6.21.1

Change-Id: Ibbf3dd6e69c7ded1f64197b22de92d78b4b9d5c7
Reviewed-on: https://gerrit.openafs.org/12725
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
8 years agoLinux 4.13: use designated initializers where required
Stephan Wiesand [Mon, 24 Jul 2017 09:37:54 +0000 (11:37 +0200)]
Linux 4.13: use designated initializers where required

struct path is declared with the "designated_init" attribute,
and module builds now use -Werror=designated-init. Cope.

And as pointed out by Michael Meffie, struct ctl_table has
the same requirement now, so use a designated initializer
for the final element of the sysctl table too.

Reviewed-on: https://gerrit.openafs.org/12663
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit d55b41072ce873210481baa4cae5c7143011869b)

Change-Id: I9797f8b1e16ab095775c53ac03e258affaa4d303
Reviewed-on: https://gerrit.openafs.org/12664
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Anders Kaseorg <andersk@mit.edu>
Tested-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
8 years agoRelease 1.8.0~pre2-1 to experimental debian/1.8.0_pre2-1
Benjamin Kaduk [Fri, 1 Sep 2017 21:29:09 +0000 (16:29 -0500)]
Release 1.8.0~pre2-1 to experimental

Change-Id: I533ea151fc55cb182730c9da4132e73107472082

8 years agoAttempt automatic akeyconvert in postinst
Benjamin Kaduk [Fri, 1 Sep 2017 21:27:24 +0000 (16:27 -0500)]
Attempt automatic akeyconvert in postinst

Since openafs-fileserver provides akeyconvert, it should always
be available.  It looks like the only thing other than a malloc
failure or similar internal error that would cause an error return
is if the rxkad.keytab doesn't exist, so let's try things out
just gating on that.

Change-Id: I5520427a4e0c9e95b9d77accf9a22c33e8a4dfcc

8 years agoMerge master into experimental
Benjamin Kaduk [Fri, 1 Sep 2017 21:20:16 +0000 (16:20 -0500)]
Merge master into experimental

Pick up the FORCE_SOURCE_DATE change and changelog entry, but ignore
the new patch there, which is already included in 1.8.0pre2.

Change-Id: Idbe6b09e863456c186de93edfa89eb9bbd5d14e0

8 years agoRelease 1.6.21-3 to unstable debian/1.6.21-3
Anders Kaseorg [Thu, 31 Aug 2017 03:42:13 +0000 (23:42 -0400)]
Release 1.6.21-3 to unstable

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
8 years agoFix build failure on s390x with Linux kernel 4.12
Anders Kaseorg [Wed, 30 Aug 2017 02:51:43 +0000 (22:51 -0400)]
Fix build failure on s390x with Linux kernel 4.12

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
8 years agoCatch up to upstream documentation changes
Benjamin Kaduk [Thu, 31 Aug 2017 02:23:18 +0000 (21:23 -0500)]
Catch up to upstream documentation changes

There's now a PtLog.5 manual page, and arch-overview.h has
moved to doc/txt/.

Change-Id: Id7ba1a3bee3d705ce0aff34c8980675157361fb0

8 years agoUpdate client precheck to use -help
Benjamin Kaduk [Thu, 31 Aug 2017 01:15:36 +0000 (20:15 -0500)]
Update client precheck to use -help

We had previously patched afsd to have an -exit option that would
exit with a success return value but not try to start the client
(needed for the installation scenario where no kernel module is
available), but afsd -help now performs that role.

Change-Id: I4c6032779754a5b1547bf4428eef162347dbd278

8 years agoUpdate patches for new upstream version
Benjamin Kaduk [Thu, 31 Aug 2017 01:13:04 +0000 (20:13 -0500)]
Update patches for new upstream version

Drop the dummy exit command for afsd, as afsd -help should be well-behaved
now.
The SOURCE_DATE_EPOCH change was accepted upstream and is also removed.
Optimistically drop the Run-jhash-t-verbosely patch as well, as there
were several endianness fixes that went in.

Change-Id: I14ea94607c6f5374ffd378147ee2147507ef73f5

8 years agoMerge branch 'master' into experimental
Benjamin Kaduk [Thu, 31 Aug 2017 01:09:27 +0000 (20:09 -0500)]
Merge branch 'master' into experimental

Pick up packaging changes that occurred since experimental diverged
from master.

(Ignore debian/patches/ though.)

Change-Id: I4f27140f33c8da1e0beaa6d0f23f0528fc9bd090

8 years agoFlesh out changelog for new upstream version
Benjamin Kaduk [Wed, 30 Aug 2017 01:18:15 +0000 (20:18 -0500)]
Flesh out changelog for new upstream version

Change-Id: I34c0eb37cb16f6057668e7261529d15d32be0eeb

8 years agoUpdated version 1.8.0~pre2 from 'upstream/1.8.0_pre2'
Benjamin Kaduk [Thu, 31 Aug 2017 00:59:24 +0000 (19:59 -0500)]
Updated version 1.8.0~pre2 from 'upstream/1.8.0_pre2'

with Debian dir 13fda11baa03224cf7faaf75825c86aeba898fea

Note that this commit (and its ^2) were performed manually, not
by gbp import-orig, in order to have both the upstream and
upstream-experimental branches be parents and properly capture
changes occurring on both (debian) master development and upstream
(experimental) development.

8 years agoNew upstream version 1.8.0~pre2 upstream/1.8.0_pre2
Benjamin Kaduk [Thu, 31 Aug 2017 00:56:11 +0000 (19:56 -0500)]
New upstream version 1.8.0~pre2

8 years agoAdd changelog entry for new upstream prerelease
Benjamin Kaduk [Thu, 31 Aug 2017 00:46:17 +0000 (19:46 -0500)]
Add changelog entry for new upstream prerelease

Change-Id: I05f1013ad1dee0a046fb77baf7d99552a7aae937

8 years agoLinux: Include linux/uaccess.h rather than asm/uaccess.h if present
Seth Forshee [Tue, 22 Aug 2017 12:59:11 +0000 (07:59 -0500)]
Linux: Include linux/uaccess.h rather than asm/uaccess.h if present

Starting with Linux 4.12 there is a module build error on s390
due to asm/uaccess.h using a macro defined in the common header.
The common header has been around since 2.6.18 and has always
included asm/uaccess.h, so switch to using the common header
whenever it is present.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Reviewed-on: https://gerrit.openafs.org/12714
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
(cherry picked from commit 962f4838dc461567d896304f617a0923745d13d5)

Change-Id: I5a7834b982458159804bc4d940e39ef283253299
Reviewed-on: https://gerrit.openafs.org/12718
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
8 years agoMake OpenAFS 1.8.0pre2
Benjamin Kaduk [Wed, 2 Aug 2017 01:43:41 +0000 (20:43 -0500)]
Make OpenAFS 1.8.0pre2

Update the version strings for the second 1.8.0 prerelease.

Change-Id: I3e3f950d0565b877a4da4f8843a015ac392484d5
Reviewed-on: https://gerrit.openafs.org/12683
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
8 years agoRemove src/mcas
Benjamin Kaduk [Wed, 2 Aug 2017 01:57:52 +0000 (20:57 -0500)]
Remove src/mcas

This lock-free library toolkit is intriguing and may be the subject
of future work, but such development will occur on the master branch,
and these files are just clutter on openafs-stable-1_8_x.  Remove
them to give the tree a more clean start.

Remove src/mcas and stop mentioning it in SOURCE-MAP; don't reference
it in the rpctests, either.

Change-Id: I21b1b6b64a709fe40aa53aaf3470d128c0dc2f86
Reviewed-on: https://gerrit.openafs.org/12682
Tested-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
8 years agoRemove src/rxgk
Benjamin Kaduk [Wed, 2 Aug 2017 01:55:52 +0000 (20:55 -0500)]
Remove src/rxgk

These files were commited slightly prematurely to the tree; rxgk
support is intended for the 2.0 release, and will not appear in the
1.8.x release series.

Remove src/rxgk and drop mentions of rxgk from configure/Makefile.in/etc.

Change-Id: Ib7d40eaac85b05d920781b61f73dbdf8fedfcc2b
Reviewed-on: https://gerrit.openafs.org/12681
Tested-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
8 years agoBuild documentation with FORCE_SOURCE_DATE=1
Anders Kaseorg [Thu, 24 Aug 2017 22:09:15 +0000 (18:09 -0400)]
Build documentation with FORCE_SOURCE_DATE=1

pdfTeX refuses to fully obey SOURCE_DATE_EPOCH without
FORCE_SOURCE_DATE=1.  See
https://reproducible.alioth.debian.org/blog/posts/59/.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
8 years agoRelease openafs 1.6.21-2 to unstable debian/1.6.21-2
Anders Kaseorg [Tue, 22 Aug 2017 23:48:18 +0000 (19:48 -0400)]
Release openafs 1.6.21-2 to unstable

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
8 years agoUpdate CellServDB from grand.central.org
Anders Kaseorg [Tue, 22 Aug 2017 23:47:33 +0000 (19:47 -0400)]
Update CellServDB from grand.central.org

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
8 years agoUpdate French debconf translation
Anders Kaseorg [Tue, 22 Aug 2017 23:38:31 +0000 (19:38 -0400)]
Update French debconf translation

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
8 years agoUpdate Portuguese debconf translation
Anders Kaseorg [Tue, 22 Aug 2017 23:36:50 +0000 (19:36 -0400)]
Update Portuguese debconf translation

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
8 years agoSupport Linux kernel 4.13
Anders Kaseorg [Tue, 22 Aug 2017 21:39:20 +0000 (17:39 -0400)]
Support Linux kernel 4.13

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
8 years agoFix -exit patch rebasing mistake
Anders Kaseorg [Tue, 22 Aug 2017 21:30:48 +0000 (17:30 -0400)]
Fix -exit patch rebasing mistake

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
8 years agodebian/changelog: Fix bug number for rfc5864.txt dual license note
Anders Kaseorg [Tue, 6 Dec 2016 14:59:58 +0000 (09:59 -0500)]
debian/changelog: Fix bug number for rfc5864.txt dual license note

Signed-off-by: Anders Kaseorg <andersk@mit.edu>