NULL deference in nfs4_get_valid_delegation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Eoan |
Fix Released
|
High
|
Unassigned | ||
Focal |
Fix Released
|
High
|
Unassigned |
Bug Description
We are getting the following on an NFSv4 client running focal (kernel 5.4.0-33.37):
[296787.347971] BUG: unable to handle page fault for address: ffffffffffffffb0
[296787.350255] #PF: supervisor read access in kernel mode
[296787.352315] #PF: error_code(0x0000) - not-present page
[296787.354137] PGD 15bf00e067 P4D 15bf00e067 PUD 15bf010067 PMD 0
[296787.355798] Oops: 0000 [#2] SMP NOPTI
[296787.357271] CPU: 49 PID: 605315 Comm: kworker/u131:3 Tainted: P D OE 5.4.0-33-generic #37-Ubuntu
[296787.358756] Hardware name: GIGABYTE G291-Z20-
[296787.360274] Workqueue: rpciod rpc_async_schedule [sunrpc]
[296787.361790] RIP: 0010:nfs4_
[296787.363281] Code: 89 ef e8 06 c0 f9 ff e9 ec fd ff ff 90 0f 1f 44 00 00 55 48 89 e5 f0 80 4f 48 08 5d c3 0f 1f 44 00 00 55 31 f6 48 89 e5 41 54 <4c> 8b 67 b0 4c 89 e7 e8 07 f9 ff ff 84 c0 b8 00 00 00 00 4c 0f 44
[296787.366780] RSP: 0018:ffffb7b163
[296787.368740] RAX: ffff9ef2958e9b00 RBX: ffff9ef59f910000 RCX: 0000000000000000
[296787.370648] RDX: 0000000000008000 RSI: 0000000000000000 RDI: 0000000000000000
[296787.372559] RBP: ffffb7b1634a7da0 R08: 0000000000000000 R09: 8080808080808080
[296787.374441] R10: ffff9ef731e9d26c R11: 0000000000000018 R12: ffff9ef781f22600
[296787.376330] R13: 0000000000000000 R14: ffff9efe1db4bc00 R15: ffffffffc0cc2950
[296787.378220] FS: 000000000000000
[296787.380165] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[296787.382076] CR2: ffffffffffffffb0 CR3: 0000001a2799c000 CR4: 00000000003406e0
[296787.384031] Call Trace:
[296787.385985] nfs4_open_
[296787.387973] rpc_prepare_
[296787.389971] __rpc_execute+
[296787.391903] rpc_async_
[296787.393787] process_
[296787.395617] worker_
[296787.397431] kthread+0x104/0x140
[296787.399166] ? process_
[296787.400868] ? kthread_
[296787.402518] ret_from_
[296787.404158] Modules linked in: rpcsec_gss_krb5 auth_rpcgss nfsv4 nfs lockd grace sunrpc xt_nat xt_tcpudp veth xt_conntrack xt_MASQUERADE nf_conntrack_
[296787.404232] drm_kms_helper mlx5_core dca mdio syscopyarea sysfillrect sysimgblt fb_sys_fops nvme pci_hyperv_intf drm tls nvme_core mlxfw ahci ipmi_devintf i2c_piix4 libahci ipmi_msghandler i2c_nvidia_gpu
[296787.421858] CR2: ffffffffffffffb0
[296787.423680] ---[ end trace 2cf3edda87955a36 ]---
[296787.425547] RIP: 0010:nfs4_
[296787.427389] Code: 89 ef e8 06 c0 f9 ff e9 ec fd ff ff 90 0f 1f 44 00 00 55 48 89 e5 f0 80 4f 48 08 5d c3 0f 1f 44 00 00 55 31 f6 48 89 e5 41 54 <4c> 8b 67 b0 4c 89 e7 e8 07 f9 ff ff 84 c0 b8 00 00 00 00 4c 0f 44
[296787.431172] RSP: 0018:ffffb7b161
[296787.433050] RAX: ffff9ee9faf45ec0 RBX: ffff9ef16c5dd000 RCX: 0000000000000000
[296787.434922] RDX: 0000000000008000 RSI: 0000000000000000 RDI: 0000000000000000
[296787.436810] RBP: ffffb7b1615e3da0 R08: 0000000000000000 R09: 8080808080808080
[296787.438673] R10: ffff9ef26a0b8c6c R11: 0000000000000018 R12: ffff9ef7817cfa00
[296787.440539] R13: 0000000000000004 R14: ffff9ef8bdeb0400 R15: ffffffffc0cc2950
[296787.442400] FS: 000000000000000
[296787.444289] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[296787.446126] CR2: ffffffffffffffb0 CR3: 0000001a2799c000 CR4: 00000000003406e0
The problem is a known issue which has been fixed upstream:
The patch is a simple 2 line fix.
Would be great if you could do an SRU and add that upstream patch.
This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:
apport-collect 1885010
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.