Package Details: openafs 1.8.11-1

Git Clone URL: https://aur.archlinux.org/openafs.git (read-only, click to copy)
Package Base: openafs
Description: Open source implementation of the AFS distributed file system
Upstream URL: http://www.openafs.org
Licenses: IPL-1.0
Conflicts: openafs-features
Submitter: None
Maintainer: Bevan
Last Packager: Bevan
Votes: 61
Popularity: 0.000000
First Submitted: 2006-02-01 17:18 (UTC)
Last Updated: 2024-03-24 14:23 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 .. 32 Next › Last »

drslmr commented on 2023-10-06 12:15 (UTC)

@Bevan: Thank you. I should have guessed that. I'm using openafs-modules-dkms. And now it works for me.

Bevan commented on 2023-10-06 11:22 (UTC)

@drslmr: You need to patch the openafs-modules or openafs-modules-dkms package, depending on which of the two you are using. This package (openafs) does not need to be patched as it does not contain any kernel-specific code.

I am planning to roll out exactly that change later today.

drslmr commented on 2023-10-06 11:19 (UTC)

Just for curiosity I tried to patch openafs 1.8.10-1 with e18f420.diff from gerrit.

I installed the patched openafs package and upgraded to kernel 6.5.5. I also reinstalled openafs-modules-dkms.

But the BUG still occurs.

Could anyone tell me what I missed?

Bevan commented on 2023-09-22 18:15 (UTC)

Just a heads up: The kernel BUG with Linux 6.5 is a false alarm in the sense that no actual buffer overflow occurs. However, it leaves the system in quite a bad state where syncs just hang and the system won't properly shut down anymore.

A patch is developed and discussed at https://gerrit.openafs.org/#/c/15573/. Currently, there are different opinions on which of two solution is preferable. I may add a minimal patch to the openafs-modules packages as soon as I'm confident that the patch does no harm.

For now, using linux-lts stays the safest option.

Bevan commented on 2023-09-14 18:59 (UTC)

The issue is easily reproducible. I could not find any related patch and for me it's not trivial to fix either. So I posted to the openafs-devel mailing list: https://lists.openafs.org/pipermail/openafs-devel/2023-September/020888.html

drslmr commented on 2023-09-14 10:36 (UTC)

@alexiri I was just about to post the same thing. I downgraded linux 6.4.12.arch1-1.

Bevan commented on 2023-09-14 10:35 (UTC)

Oh, that does not look good. I have not tested with Linux 6.5 yet but will do so later today. I don't see any more pending upstream patches, so I guess some debugging will be required.

alexiri commented on 2023-09-14 09:53 (UTC) (edited on 2023-09-14 09:54 (UTC) by alexiri)

afsd is crashing on 6.5.3-zen1-1-zen, has anybody else seen this?

The kmod loads successfully, but afsd crashes when openafs-client starts (12 seconds later, in this case).

Sep 13 19:57:42.695507 pcitds29 kernel: openafs: loading out-of-tree module taints kernel.
Sep 13 19:57:42.695701 pcitds29 kernel: openafs: module license 'http://www.openafs.org/dl/license10.html' taints kernel.
Sep 13 19:57:42.695726 pcitds29 kernel: Disabling lock debugging due to kernel taint
Sep 13 19:57:42.695741 pcitds29 kernel: openafs: module verification failed: signature and/or required key missing - tainting kernel
Sep 13 19:57:42.695759 pcitds29 kernel: openafs: module license taints kernel.
Sep 13 19:57:42.718400 pcitds29 kernel: Key type afs_pag registered
Sep 13 19:57:54.652365 pcitds29 kernel: enabling dynamically allocated vcaches
Sep 13 19:57:54.727674 pcitds29 kernel: Starting AFS cache scan...
Sep 13 19:57:54.727767 pcitds29 kernel: found 2956 non-empty cache files (94%).
Sep 13 19:57:54.727778 pcitds29 kernel: detected buffer overflow in strlcpy
Sep 13 19:57:54.728304 pcitds29 kernel: ------------[ cut here ]------------
Sep 13 19:57:54.740823 pcitds29 kernel: kernel BUG at lib/string_helpers.c:1031!
Sep 13 19:57:54.740881 pcitds29 kernel: invalid opcode: 0000 [#1] PREEMPT SMP NOPTI
Sep 13 19:57:54.740932 pcitds29 kernel: CPU: 7 PID: 3709 Comm: afsd Tainted: P           OE      6.5.3-zen1-1-zen #1 9d89e7f6eb3047a61e4ee6a21bd27e49006dfbf2
Sep 13 19:57:54.740945 pcitds29 kernel: Hardware name: LENOVO 21CCS5P700/21CCS5P700, BIOS N3AET71W (1.36 ) 01/31/2023
Sep 13 19:57:54.740954 pcitds29 kernel: RIP: 0010:fortify_panic+0x13/0x20
Sep 13 19:57:54.740960 pcitds29 kernel: Code: 41 5d c3 cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 48 89 fe 48 c7 c7 80 ec 06 bd e8 1d 6c >
Sep 13 19:57:54.740968 pcitds29 kernel: RSP: 0018:ffffb75001fafb58 EFLAGS: 00010246
Sep 13 19:57:54.740975 pcitds29 kernel: RAX: 0000000000000023 RBX: 000000000000001c RCX: 0000000000000027
Sep 13 19:57:54.740981 pcitds29 kernel: RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff990aff5e16c0
Sep 13 19:57:54.740991 pcitds29 kernel: RBP: ffffb75001d29000 R08: 0000000000000001 R09: 00000000ffffffea
Sep 13 19:57:54.740998 pcitds29 kernel: R10: ffffffffbd85a540 R11: ffffffffbd8b2540 R12: 0000000000000000
Sep 13 19:57:54.741006 pcitds29 kernel: R13: 0000000000000002 R14: ffffb75001d29380 R15: ffffb75001d29000
Sep 13 19:57:54.741016 pcitds29 kernel: FS:  00007f3c6ae8d740(0000) GS:ffff990aff5c0000(0000) knlGS:0000000000000000
Sep 13 19:57:54.741024 pcitds29 kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Sep 13 19:57:54.741033 pcitds29 kernel: CR2: 00007fff64409de8 CR3: 000000016e57c000 CR4: 0000000000750ee0
Sep 13 19:57:54.741041 pcitds29 kernel: PKRU: 55555554
Sep 13 19:57:54.741049 pcitds29 kernel: Call Trace:
Sep 13 19:57:54.741056 pcitds29 kernel:  <TASK>
Sep 13 19:57:54.741062 pcitds29 kernel:  ? die+0x128/0x130
Sep 13 19:57:54.741069 pcitds29 kernel:  ? do_trap+0xc9/0x170
Sep 13 19:57:54.741074 pcitds29 kernel:  ? fortify_panic+0x13/0x20
Sep 13 19:57:54.741080 pcitds29 kernel:  ? fortify_panic+0x13/0x20
Sep 13 19:57:54.741087 pcitds29 kernel:  ? exc_invalid_op+0x92/0xc0
Sep 13 19:57:54.741093 pcitds29 kernel:  ? fortify_panic+0x13/0x20
Sep 13 19:57:54.741099 pcitds29 kernel:  ? asm_exc_invalid_op+0x1a/0x20
Sep 13 19:57:54.741164 pcitds29 kernel:  ? fortify_panic+0x13/0x20
Sep 13 19:57:54.741172 pcitds29 kernel:  ? fortify_panic+0x13/0x20
Sep 13 19:57:54.741179 pcitds29 kernel:  afs_dynroot_addDirEnt+0x1ef/0x210 [openafs 3f311692cd9b17721fc863c5e870abbfd609f083]
Sep 13 19:57:54.741185 pcitds29 kernel:  afs_GetDynroot+0x8dd/0xc50 [openafs 3f311692cd9b17721fc863c5e870abbfd609f083]
Sep 13 19:57:54.741192 pcitds29 kernel:  afs_DynrootNewVnode+0x369/0x960 [openafs 3f311692cd9b17721fc863c5e870abbfd609f083]
Sep 13 19:57:54.741199 pcitds29 kernel:  afs_GetVCache+0x234/0x540 [openafs 3f311692cd9b17721fc863c5e870abbfd609f083]
Sep 13 19:57:54.741205 pcitds29 kernel:  afs_fill_super+0x2b0/0x3d0 [openafs 3f311692cd9b17721fc863c5e870abbfd609f083]
Sep 13 19:57:54.741210 pcitds29 kernel:  ? __pfx_afs_fill_super+0x10/0x10 [openafs 3f311692cd9b17721fc863c5e870abbfd609f083]
Sep 13 19:57:54.741215 pcitds29 kernel:  mount_nodev+0x1a0/0x250
Sep 13 19:57:54.741223 pcitds29 kernel:  legacy_get_tree+0x28/0x50
Sep 13 19:57:54.741229 pcitds29 kernel:  vfs_get_tree+0x26/0xd0
Sep 13 19:57:54.741236 pcitds29 kernel:  path_mount+0x4bb/0xb70
Sep 13 19:57:54.741240 pcitds29 kernel:  __x64_sys_mount+0x11a/0x150
Sep 13 19:57:54.741245 pcitds29 kernel:  do_syscall_64+0x5d/0x90
Sep 13 19:57:54.741252 pcitds29 kernel:  ? do_user_addr_fault+0x2cd/0x9e0
Sep 13 19:57:54.741259 pcitds29 kernel:  ? exc_page_fault+0x7f/0x180
Sep 13 19:57:54.741264 pcitds29 kernel:  entry_SYSCALL_64_after_hwframe+0x6e/0xd8
Sep 13 19:57:54.741269 pcitds29 kernel: RIP: 0033:0x7f3c6ad1204e
Sep 13 19:57:54.741276 pcitds29 kernel: Code: 48 8b 0d e5 bc 12 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 49 89 ca b8 a5 00 00 00 >
Sep 13 19:57:54.741282 pcitds29 kernel: RSP: 002b:00007fff64409fa8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
Sep 13 19:57:54.741287 pcitds29 kernel: RAX: ffffffffffffffda RBX: 0000556186fc6df0 RCX: 00007f3c6ad1204e
Sep 13 19:57:54.741294 pcitds29 kernel: RDX: 000055618570f652 RSI: 0000556186fc6df0 RDI: 000055618570d586
Sep 13 19:57:54.741301 pcitds29 kernel: RBP: 000055618571a010 R08: 0000000000000000 R09: 0000000000000001
Sep 13 19:57:54.741306 pcitds29 kernel: R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
Sep 13 19:57:54.741312 pcitds29 kernel: R13: 000055618570d012 R14: 000055618570e108 R15: 000055618571a010
Sep 13 19:57:54.741318 pcitds29 kernel:  </TASK>
Sep 13 19:57:54.741325 pcitds29 kernel: Modules linked in: openafs(POE) uhid rfcomm snd_seq_dummy snd_hrtimer snd_seq snd_seq_device ccm cmac algif_hash algif_skciphe>
Sep 13 19:57:54.741394 pcitds29 kernel:  snd_intel_sdw_acpi kvm fat snd_hda_codec irqbypass hid_multitouch rapl iwlwifi pmt_telemetry snd_hda_core iTCO_wdt intel_pmc_>
Sep 13 19:57:54.741420 pcitds29 kernel:  polyval_generic gf128mul ghash_clmulni_intel sha512_ssse3 aesni_intel crypto_simd serio_raw nvme spi_intel_pci atkbd xhci_pci>
Sep 13 19:57:54.741431 pcitds29 kernel: ---[ end trace 0000000000000000 ]---
Sep 13 19:57:54.741439 pcitds29 kernel: RIP: 0010:fortify_panic+0x13/0x20
Sep 13 19:57:54.741449 pcitds29 kernel: Code: 41 5d c3 cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 48 89 fe 48 c7 c7 80 ec 06 bd e8 1d 6c >
Sep 13 19:57:54.741460 pcitds29 kernel: RSP: 0018:ffffb75001fafb58 EFLAGS: 00010246
Sep 13 19:57:54.741467 pcitds29 kernel: RAX: 0000000000000023 RBX: 000000000000001c RCX: 0000000000000027
Sep 13 19:57:54.741477 pcitds29 kernel: RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff990aff5e16c0
Sep 13 19:57:54.741485 pcitds29 kernel: RBP: ffffb75001d29000 R08: 0000000000000001 R09: 00000000ffffffea
Sep 13 19:57:54.741493 pcitds29 kernel: R10: ffffffffbd85a540 R11: ffffffffbd8b2540 R12: 0000000000000000
Sep 13 19:57:54.741501 pcitds29 kernel: R13: 0000000000000002 R14: ffffb75001d29380 R15: ffffb75001d29000
Sep 13 19:57:54.741508 pcitds29 kernel: FS:  00007f3c6ae8d740(0000) GS:ffff990aff5c0000(0000) knlGS:0000000000000000
Sep 13 19:57:54.741516 pcitds29 kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Sep 13 19:57:54.741524 pcitds29 kernel: CR2: 00007fff64409de8 CR3: 000000016e57c000 CR4: 0000000000750ee0
Sep 13 19:57:54.741532 pcitds29 kernel: PKRU: 55555554

Moving to linux-lts works as a workaround.

Bevan commented on 2022-10-17 14:12 (UTC)

@valerionew: This package only contains the userspace part of OpenAFS. The kernel modules are in openafs-modules (which depends on linux-headers) or openafs-modules-modules-dkms.

valerionew commented on 2022-10-17 13:54 (UTC)

Should this also need linux-headers?