Dave Wysochanski
036b0f4d76
NFS4: Fix oops when copy_file_range is attempted with NFS4.0 source
...
[ Upstream commit d8a6ad913c
]
The following oops is seen during xfstest/565 when the 'test'
(source of the copy) is NFS4.0 and 'scratch' (destination) is NFS4.2
[ 59.692458] run fstests generic/565 at 2020-08-01 05:50:35
[ 60.613588] BUG: kernel NULL pointer dereference, address: 0000000000000008
[ 60.624970] #PF: supervisor read access in kernel mode
[ 60.627671] #PF: error_code(0x0000) - not-present page
[ 60.630347] PGD 0 P4D 0
[ 60.631853] Oops: 0000 [#1 ] SMP PTI
[ 60.634086] CPU: 6 PID: 2828 Comm: xfs_io Kdump: loaded Not tainted 5.8.0-rc3 #1
[ 60.637676] Hardware name: Red Hat KVM, BIOS 0.5.1 01/01/2011
[ 60.639901] RIP: 0010:nfs4_check_serverowner_major_id+0x5/0x30 [nfsv4]
[ 60.642719] Code: 89 ff e8 3e b3 b8 e1 e9 71 fe ff ff 41 bc da d8 ff ff e9 c3 fe ff ff e8 e9 9d 08 e2 66 0f 1f 84 00 00 00 00 00 66 66 66 66 90 <8b> 57 08 31 c0 3b 56 08 75 12 48 83 c6 0c 48 83 c7 0c e8 c4 97 bb
[ 60.652629] RSP: 0018:ffffc265417f7e10 EFLAGS: 00010287
[ 60.655379] RAX: ffffa0664b066400 RBX: 0000000000000000 RCX: 0000000000000001
[ 60.658754] RDX: ffffa066725fb000 RSI: ffffa066725fd000 RDI: 0000000000000000
[ 60.662292] RBP: 0000000000020000 R08: 0000000000020000 R09: 0000000000000000
[ 60.666189] R10: 0000000000000003 R11: 0000000000000000 R12: ffffa06648258d00
[ 60.669914] R13: 0000000000000000 R14: 0000000000000000 R15: ffffa06648258100
[ 60.673645] FS: 00007faa9fb35800(0000) GS:ffffa06677d80000(0000) knlGS:0000000000000000
[ 60.677698] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 60.680773] CR2: 0000000000000008 CR3: 0000000203f14000 CR4: 00000000000406e0
[ 60.684476] Call Trace:
[ 60.685809] nfs4_copy_file_range+0xfc/0x230 [nfsv4]
[ 60.688704] vfs_copy_file_range+0x2ee/0x310
[ 60.691104] __x64_sys_copy_file_range+0xd6/0x210
[ 60.693527] do_syscall_64+0x4d/0x90
[ 60.695512] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 60.698006] RIP: 0033:0x7faa9febc1bd
Signed-off-by: Dave Wysochanski <dwysocha@redhat.com >
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2020-11-05 11:43:14 +01:00
..
2019-05-21 10:50:46 +02:00
2019-09-24 16:28:38 -04:00
2020-06-30 15:37:12 -04:00
2017-11-17 14:18:00 -08:00
2017-11-17 14:18:00 -08:00
2020-04-23 10:36:31 +02:00
2019-04-24 09:46:34 -04:00
2019-04-24 09:46:35 -04:00
2018-08-09 12:56:38 -04:00
2020-04-01 11:01:50 +02:00
2019-11-01 11:03:56 -04:00
2019-11-01 10:59:26 -04:00
2020-10-07 08:01:28 +02:00
2020-07-29 10:18:29 +02:00
2019-06-27 23:02:12 +01:00
2017-11-02 11:10:55 +01:00
2018-06-04 12:07:07 -04:00
2020-08-21 13:05:36 +02:00
2020-05-20 08:20:23 +02:00
2020-05-20 08:20:23 +02:00
2020-05-20 08:20:23 +02:00
2019-05-30 11:26:32 -07:00
2020-06-24 17:50:44 +02:00
2019-09-26 12:20:14 -07:00
2019-02-20 15:14:21 -05:00
2017-11-02 11:10:55 +01:00
2020-02-14 16:34:10 -05:00
2019-07-06 14:54:49 -04:00
2020-05-20 08:20:27 +02:00
2019-05-21 10:50:45 +02:00
2019-07-06 14:54:49 -04:00
2019-05-21 10:50:45 +02:00
2020-01-17 19:48:47 +01:00
2017-11-02 11:10:55 +01:00
2020-05-06 08:15:16 +02:00
2019-07-06 14:54:50 -04:00
2019-09-20 15:15:24 -04:00
2019-05-21 10:50:45 +02:00
2020-02-14 16:34:10 -05:00
2020-02-14 16:34:11 -05:00
2020-04-01 11:01:50 +02:00
2020-11-05 11:43:14 +01:00
2017-11-02 11:10:55 +01:00
2019-07-10 18:43:43 -07:00
2019-02-20 15:14:21 -05:00
2020-09-23 12:40:36 +02:00
2020-02-14 16:34:11 -05:00
2019-05-21 10:50:45 +02:00
2019-03-02 16:25:26 -05:00
2020-05-20 08:20:24 +02:00
2019-05-21 10:50:45 +02:00
2018-01-18 15:10:47 -05:00
2019-07-18 15:50:28 -04:00
2020-02-14 16:34:10 -05:00
2020-08-21 13:05:37 +02:00
2019-03-01 16:20:16 -05:00
2020-02-24 08:37:02 +01:00
2019-03-01 16:20:16 -05:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-02-13 12:03:21 -05:00
2020-10-01 13:18:09 +02:00
2020-10-01 13:17:52 +02:00
2019-03-01 22:37:38 -05:00
2020-02-14 16:34:10 -05:00
2020-08-19 08:16:25 +02:00
2019-09-20 15:48:35 -04:00
2019-08-27 10:24:56 -04:00
2019-08-26 15:31:29 -04:00
2019-09-26 12:20:14 -07:00
2019-05-09 16:26:57 -04:00
2017-11-02 11:10:55 +01:00
2019-07-06 14:54:49 -04:00
2019-07-06 14:54:49 -04:00
2019-06-20 14:47:44 +02:00
2020-10-01 13:17:52 +02:00