[7226] in Release_7.7_team
on "pagbug" and dialup upgrades
daemon@ATHENA.MIT.EDU (Benjamin Kaduk)
Thu Jan 13 12:33:29 2011
Date: Thu, 13 Jan 2011 12:33:21 -0500 (EST)
From: Benjamin Kaduk <kaduk@MIT.EDU>
To: release-team@MIT.EDU
cc: jdreed@MIT.EDU
Message-ID: <alpine.GSO.1.10.1101131128150.640@multics.mit.edu>
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="-559023410-418606460-1294939557=:640"
Content-ID: <alpine.GSO.1.10.1101131232010.640@multics.mit.edu>
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
---559023410-418606460-1294939557=:640
Content-Type: TEXT/PLAIN; FORMAT=flowed; CHARSET=US-ASCII
Content-ID: <alpine.GSO.1.10.1101131226371.640@multics.mit.edu>
Hi all,
Jon asked me to send mail after some zephyr discussion on class consult
last week.
I think I missed some of the previous discussion of pagbug, but my
understanding is that it is thought to be due to the relationship between
PAGs and kernel keyrings in recent linuxes. In particular, in many
OpenAFS versions, PAGs can be allocated using keyrings that count towards
root's quota of keyrings. When that quota is full (the silliness of root
having a quota notwithstanding), then PAG creation fails, silently if I
remember correctly. This results in the situation where a user doesn't
have a PAG on login; that and the concurrent lack of tokens causes issues
in the Athena environment.
The presumed fix is to cause keyrings allocated for PAGs to not count
towards (root's) quota, but there are actually two commits in OpenAFS
master that reference keyrings and quota (and a third to actually
propagate the error when keyring creation fails):
c4537f0442 Don't count root session keyrings against quota
a3812f211a Linux: don't count pag keys against root's keyring quotas
0caf14224a Linux Keyrings: don't ignore error code from session keyring creation
However, of these three commits, only two have actually gotten
cherry-picked back to the 1.4.x branch
a27015099a Linux: don't count pag keys against root's keyring quotas
0bec77e1f9 Linux Keyrings: don't ignore error code from session keyring creation
More tellingly, *neither* is in the most recent release tag from the 1.4.x
branch (1.4.14), so all three patches are missing from the released
version if I am reading the repository correctly.
I am given to understand that Mark Manley had put some patches of this
nature on the jaunty dialups, but these may or may not have been
transferred to the new lucid dialups. I think that checking is worth
doing, as (to my not-really-a-linux-kernel-person eyes) it seems that we
want all three of these keyring patches on the dialups.
As one final note, I mention that the 1.6.0pre1 release candidate has all
three keyring patches, with tarballs available at
http://www.openafs.org/release/openafs-1.6.0pre1.html
-Ben
---559023410-418606460-1294939557=:640
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME=root-session.patch
Content-Transfer-Encoding: BASE64
Content-ID: <alpine.GSO.1.10.1101131225570.640@multics.mit.edu>
Content-Description:
Content-Disposition: ATTACHMENT; FILENAME=root-session.patch
Y29tbWl0IGM0NTM3ZjA0NDJhYzdlY2JmOGM5NDZkZTQ1MDA0OTkyZTE3ZDUz
NWYNCkF1dGhvcjogU2ltb24gV2lsa2luc29uIDxzeHdAeW91ci1maWxlLXN5
c3RlbS5jb20+DQpEYXRlOiAgIFdlZCBNYXIgMTcgMTE6NTY6MTIgMjAxMCAr
MDAwMA0KDQogICAgRG9uJ3QgY291bnQgcm9vdCBzZXNzaW9uIGtleXJpbmdz
IGFnYWluc3QgcXVvdGENCiAgICANCiAgICBBRlMgUEFNIG1vZHVsZXMgY2Fu
IGNhbGwgc2V0cGFnKCkgYXMgcm9vdCwgcmVnYXJkbGVzcyBvZiB0aGUgVUlE
DQogICAgYmVpbmcgYXV0aGVudGljYXRlZC4gVGhpcyBsZWFkcyB0byB0aGUg
c2Vzc2lvbiBrZXlyaW5nIGJlaW5nIGNyZWF0ZWQNCiAgICB1c2luZyByb290
cyBxdW90YSAtIG9uIHNvbWUgc3lzdGVtcyAoUkhFTDUpIHRoaXMgcXVvdGEg
aXMgYm90aCBzbWFsbCwNCiAgICBhbmQgb2YgYSBmaXhlZCBzaXplLg0KICAg
IA0KICAgIE1vZGlmeSBvdXIga2V5cmluZyBhbGxvY2F0aW9uIGNvZGUgc28g
dGhhdCB3aGVuIGEga2V5cmluZyBpcyBjcmVhdGVkDQogICAgYnkgcm9vdCwg
d2UgZG9uJ3QgZG8gYW55IHF1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ZihkZXNj
LCAiX3Nlcy4ldSIsIGN1cnJlbnQtPnRnaWQpOw0KIA0KKwkvKiBpZiB3ZSdy
ZSByb290LCBkb24ndCBjb3VudCB0aGUga2V5cmluZyBhZ2FpbnN0IG91ciBx
dW90YS4gVGhpcw0KKwkgKiBhdm9pZHMgc3RhcnZhdGlvbiBpc3N1ZXMgd2hl
biBkZWFsaW5nIHdpdGggUEFNIG1vZHVsZXMgdGhhdCBhbHdheXMNCisJICog
c2V0cGFnKCkgYXMgcm9vdCAqLw0KKwlpZiAoY3VycmVudF91aWQoKSA9PSAw
KQ0KKwkgICAgZmxhZ3MgPSBLRVlfQUxMT0NfTk9UX0lOX1FVT1RBOw0KKwll
bHNlDQorCSAgICBmbGFncyA9IEtFWV9BTExPQ19JTl9RVU9UQTsNCisNCiAJ
a2V5cmluZyA9IGFmc19saW51eF9rZXlfYWxsb2MoDQogCQkJICAgIF9fa2V5
X3R5cGVfa2V5cmluZywgZGVzYywNCiAJCQkgICAgY3VycmVudF91aWQoKSwg
Y3VycmVudF9naWQoKSwNCiAJCQkgICAgKEtFWV9QT1NfQUxMICYgfktFWV9Q
T1NfU0VUQVRUUikgfCBLRVlfVVNSX0FMTCwNCi0JCQkgICAgS0VZX0FMTE9D
X0lOX1FVT1RBKTsNCisJCQkgICAgZmxhZ3MpOw0KIA0KIAlpZiAoSVNfRVJS
KGtleXJpbmcpKSB7DQogCSAgICBjb2RlID0gUFRSX0VSUihrZXlyaW5nKTsN
Cg==
---559023410-418606460-1294939557=:640
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME=pag-keys.patch
Content-Transfer-Encoding: BASE64
Content-ID: <alpine.GSO.1.10.1101131225571.640@multics.mit.edu>
Content-Description:
Content-Disposition: ATTACHMENT; FILENAME=pag-keys.patch
Y29tbWl0IGEzODEyZjIxMWE1NmMwZDZlMGE3ZmY4YTk3ZjE1NzcwN2QzZDhj
MjgNCkF1dGhvcjogTWFyYyBEaW9ubmUgPG1hcmMuYy5k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fZ3JvdXBzLmMNCisrKyBiL3Ny
Yy9hZnMvTElOVVgvb3NpX2dyb3Vwcy5jDQpAQCAtMjM2LDcgKzIzNiw3IEBA
IHNldHBhZyhjcmVkX3QgKipjciwgYWZzX3VpbnQzMiBwYWd2YWx1ZSwgYWZz
X3VpbnQzMiAqbmV3cGFnLA0KIAkgICAgcGVybSA9IEtFWV9QT1NfVklFVyB8
IEtFWV9QT1NfU0VBUkNIOw0KIAkgICAgcGVybSB8PSBLRVlfVVNSX1ZJRVcg
fCBLRVlfVVNSX1NFQVJDSDsNCiANCi0JICAgIGtleSA9IGFmc19saW51eF9r
ZXlfYWxsb2MoJmtleV90eXBlX2Fmc19wYWcsICJfcGFnIiwgMCwgMCwgcGVy
bSwgMSk7DQorCSAgICBrZXkgPSBhZnNfbGludXhfa2V5X2FsbG9jKCZrZXlf
dHlwZV9hZnNfcGFnLCAiX3BhZyIsIDAsIDAsIHBlcm0sIEtFWV9BTExPQ19O
T1RfSU5fUVVPVEEpOw0KIA0KIAkgICAgaWYgKCFJU19FUlIoa2V5KSkgew0K
IAkJa2V5X2luc3RhbnRpYXRlX2FuZF9saW5rKGtleSwgKHZvaWQgKikgbmV3
cGFnLCBzaXplb2YoYWZzX3VpbnQzMiksDQo=
---559023410-418606460-1294939557=:640
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME=keyring-error.patch
Content-Transfer-Encoding: BASE64
Content-ID: <alpine.GSO.1.10.1101131225572.640@multics.mit.edu>
Content-Description:
Content-Disposition: ATTACHMENT; FILENAME=keyring-error.patch
Y29tbWl0IDBjYWYxNDIyNGE5MTUzYmI0ODhiZTllNTJkNjc4OTJhMmM0NDFh
NWENCkF1dGhvcjogTWFyYyBEaW9ubmUgPG1hcmMuYy5kaW9ubmVAZ21haWwu
Y29tPg0KRGF0ZTogICBGcmkgSmFuIDIyIDIwOjAzOjU4IDIwMTAgLTA1MDAN
Cg0KICAgIExpbnV4IEtleXJpbmdzOiBkb24ndCBpZ25vcmUg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