Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 172016 - net-fs/openafs-kernel ebuild does not check CONFIG_FS_AFS
Summary: net-fs/openafs-kernel ebuild does not check CONFIG_FS_AFS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High critical (vote)
Assignee: Stefaan De Roeck (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-24 09:21 UTC by Christian Holler
Modified: 2007-10-15 07:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Holler 2007-03-24 09:21:33 UTC
The openafs-kernel ebuild does not verify that AFS support in kernel is DISABLED (i.e. CONFIG_FS_AFS is not enabled). At least on our AMD64 server, this broke our kernel when loading the module. We got 3 pages of traceback in dmesg and we had to reboot the server afterwards. Disabling inkernel AFS support fixed the problem.

Talking to some AFS experts on freenode, they told me that inkernel AFS has to be disabled in order for the openafs kernel module to work properly.

Hence, the ebuild should verify this and abort the installation if this precondition is not met.

Reproducible: Always

Steps to Reproduce:
1. Compile kernel (2.6.18-hardened) on AMD64 with CONFIG_FS_AFS
2. emerge openafs-kernel
3. modprobe openafs
4. see dmesg

Actual Results:  
Kernel dmesg shows:

Mar 23 15:28:22 [kernel] openafs: module license 'http://www.openafs.org/dl/license10.html' taints kernel.
Mar 23 15:28:22 [kernel] Found system call table at 0xffffffff8055ad20 (pattern scan)
Mar 23 15:28:23 [kernel] Found 32-bit system call table at 0xffffffff8055b9f0 (pattern scan)
Mar 23 15:28:23 [kernel] kmem_cache_create: duplicate cache afs_inode_cache
Mar 23 15:28:23 [kernel] Call Trace:
Mar 23 15:28:23 [kernel]  [<ffffffff8026a71e>]
Mar 23 15:28:23 [kernel]  [<ffffffff8807e2ca>]
Mar 23 15:28:23 [kernel]  [<ffffffff8807f050>]
Mar 23 15:28:23 [kernel]  [<ffffffff8809225a>]
Mar 23 15:28:23 [kernel]  [<ffffffff8807f036>]
Mar 23 15:28:23 [kernel]  [<ffffffff8809a026>]
Mar 23 15:28:23 [kernel]  [<ffffffff80246024>]
Mar 23 15:28:23 [kernel]  [<ffffffff802097f6>]
Mar 23 15:28:44 [kernel] Unable to handle kernel paging request at ffffffff8807cc70 RIP:
Mar 23 15:28:44 [kernel]  [<ffffffff8807cc70>]
Mar 23 15:28:44 [kernel] PGD 203027 PUD 205027 PMD 13ad23063 PTE 0
Mar 23 15:28:44 [kernel] CPU 3
Mar 23 15:28:44 [kernel] Modules linked in: bonding
Mar 23 15:28:44 [kernel] Pid: 20396, comm: master Tainted: P      2.6.18-hardened #3
Mar 23 15:28:44 [kernel] RIP: 0010:[<ffffffff8807cc70>]  [<ffffffff8807cc70>]
Mar 23 15:28:44 [kernel] RSP: 0018:ffff81012fd1df80  EFLAGS: 00010293
Mar 23 15:28:44 [kernel] RAX: 0000000000000074 RBX: 00000000000000cf RCX: 000074e95cd1aa50
Mar 23 15:28:44 [kernel] RDX: 0000000000000000 RSI: 000074e95cd1aa04 RDI: 0000000000000001
Mar 23 15:28:44 [kernel] RBP: 000074e95cd1aa04 R08: 000074e95cd1abd0 R09: 0000000000000000
Mar 23 15:28:44 [kernel] R10: 000074e95cd1aa50 R11: 0000000000000246 R12: 0000369a203fdd60
Mar 23 15:28:44 [kernel] R13: 000000000000000b R14: 000074e95cd1aad0 R15: 000074e95cd1ab50
Mar 23 15:28:44 [kernel] FS:  0000369a203fdda0(0000) GS:ffff81013b8a7a40(0000) knlGS:00000000614b16b0
Mar 23 15:28:44 [kernel] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
Mar 23 15:28:44 [kernel] CR2: ffffffff8807cc70 CR3: 00000001036e7000 CR4: 00000000000006e0
Mar 23 15:28:44 [kernel] Process master (pid: 20396, threadinfo ffff81012fd1c000, task ffff8101016c5790)
Mar 23 15:28:44 [kernel] Stack:  ffffffff802097f6 0000000000000246 000074e95cd1aa50 0000000000000000
Mar 23 15:28:44 [kernel]  000074e95cd1abd0 0000000000000074 0000000000000001 0000000000000000
Mar 23 15:28:44 [kernel]  000074e95cd1aa04 0000000000000001 0000000000000074 0000369a2014b577
Mar 23 15:28:44 [kernel] Call Trace:
Mar 23 15:28:44 [kernel]  [<ffffffff802097f6>]
Mar 23 15:28:44 [kernel] Code:  Bad RIP value.
Mar 23 15:28:44 [kernel] RIP  [<ffffffff8807cc70>]
Mar 23 15:28:44 [kernel]  RSP <ffff81012fd1df80>
Mar 23 15:30:01 [cron] (root) CMD (test -x /usr/sbin/run-crons && /usr/sbin/run-crons )
Mar 23 15:30:01 [kernel]  [<ffffffff8807cc70>]
Mar 23 15:30:01 [kernel] PGD 203027 PUD 205027 PMD 13ad23063 PTE 0
Mar 23 15:30:01 [kernel] CPU 3

Multiple times...
Comment 1 Stefaan De Roeck (RETIRED) gentoo-dev 2007-10-15 07:53:41 UTC
Fixed in net-fs/openafs-kernel-1.4.5_pre1