Kernel panic in rpc_new_client() function.

Solution Verified - Updated -

Issue

  • Kernel panic in rpc_new_client() due to NULL pointer dereference.
[770629.267929] BUG: unable to handle kernel NULL pointer dereference at 0000000000000008
[770629.269797] IP: [<ffffffffa0266a4a>] rpc_new_client+0x19a/0x2f0 [sunrpc]
[770629.271108] PGD 192a2067 PUD ae143067 PMD 0 
[770629.272382] Oops: 0000 [#1] SMP 
[770629.273620] Modules linked in: sg nfnetlink bluetooth rfkill iptable_filter ip_tables fuse btrfs zlib_deflate raid6_pq xor vfat msdos fat xfs libcrc32c bridge stp llc mvfs(OF) nfsv3 nfs fscache coretemp crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel ppdev vmw_balloon aesni_intel lrw gf128mul glue_helper ablk_helper cryptd serio_raw pcspkr parport_pc vmw_vmci i2c_piix4 parport shpchp nfsd auth_rpcgss nfs_acl lockd sunrpc uinput binfmt_misc ext4 mbcache jbd2 sr_mod cdrom ata_generic pata_acpi sd_mod crc_t10dif crct10dif_common vmwgfx e1000 drm_kms_helper ttm vmw_pvscsi drm i2c_core ata_piix libata floppy dm_mirror dm_region_hash dm_log dm_mod
[770629.280014] CPU: 1 PID: 13723 Comm: java Tainted: GF          O--------------   3.10.0-229.7.2.el7.x86_64 #1
[770629.281269] Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 04/14/2014
[770629.282524] task: ffff880813e94440 ti: ffff880102ff4000 task.ti: ffff880102ff4000
[770629.283750] RIP: 0010:[<ffffffffa0266a4a>]  [<ffffffffa0266a4a>] rpc_new_client+0x19a/0x2f0 [sunrpc]
[770629.284998] RSP: 0018:ffff880102ff7980  EFLAGS: 00010246
[770629.286233] RAX: 0000000000000000 RBX: ffff880055b49400 RCX: ffffea0014e5be5c
[770629.287441] RDX: 0000000000009600 RSI: 0000000000001388 RDI: ffff880055b494c8
[770629.288630] RBP: ffff880102ff79b0 R08: ffffffff8183b448 R09: ffffea0014e5bf00
[770629.289798] R10: 000000000000002c R11: ffffea00204b4a00 R12: ffff88078e5a9a80
[770629.290952] R13: ffffffffa04da270 R14: ffff880785bd1000 R15: 0000000000000000
[770629.292094] FS:  0000000000000000(0000) GS:ffff88083fc80000(0000) knlGS:0000000000000000
[770629.293214] CS:  0010 DS: 002b ES: 002b CR0: 000000008005003b
[770629.294293] CR2: 0000000000000008 CR3: 00000000ae32f000 CR4: 00000000000007e0
[770629.295395] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[770629.296478] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[770629.297517] Stack:
[770629.298551]  ffffffffa04da2d0 ffff88078e5a9a80 ffff88078e5a9a80 ffff880102ff7ae8
[770629.299614]  ffffffffa04da270 0000000000000004 ffff880102ff79d8 ffffffffa026738a
[770629.300651]  ffffffffa0269bf8 ffff88078e5a9a80 ffff880102ff79e8 ffff880102ff7a78
[770629.301688] Call Trace:
[770629.302743]  [<ffffffffa026738a>] rpc_create_xprt+0x1a/0xa0 [sunrpc]
[770629.303806]  [<ffffffffa0269bf8>] ? xprt_create_transport+0x138/0x250 [sunrpc]
[770629.304830]  [<ffffffffa02674d0>] rpc_create+0xc0/0x190 [sunrpc]
[770629.305846]  [<ffffffff811ac4ae>] ? __kmalloc+0x2e/0x230
[770629.306845]  [<ffffffffa04b7172>] ? mdki_linux_kmalloc+0x2f/0x31 [mvfs]
[770629.307845]  [<ffffffffa04b3e4d>] mdki_linux_clntkudp_create+0x95/0xca [mvfs]
[770629.308841]  [<ffffffffa04ac5ab>] mvfs_linux_clntkudp_create+0x5d/0x5f [mvfs]
[770629.309815]  [<ffffffffa049904f>] mvfs_clnt_get+0x363/0x6cf [mvfs]
[770629.310766]  [<ffffffffa049abff>] mvfs_vwcall+0xe2/0x73b [mvfs]
[770629.311733]  [<ffffffff81166639>] ? truncate_pagecache+0x59/0x60
[770629.312681]  [<ffffffffa04b7172>] ? mdki_linux_kmalloc+0x2f/0x31 [mvfs]
[770629.313614]  [<ffffffffa0491b3a>] mvfs_clnt_setattr_locked+0x381/0x554 [mvfs]
[770629.314536]  [<ffffffffa046a647>] mvfs_sync_attr+0x119/0x1ab [mvfs]
[770629.315452]  [<ffffffff811aac8d>] ? kfree+0xfd/0x140
[770629.316398]  [<ffffffffa046decd>] mfs_inactive_common+0x285/0x39e [mvfs]
[770629.317341]  [<ffffffffa04a9413>] mvfs_linux_inactive+0xc9/0x19b [mvfs]
[770629.318273]  [<ffffffffa04b564f>] mvfs_clear_inode+0x7a/0xed [mvfs]
[770629.319228]  [<ffffffffa04b56d4>] mvfs_evict_inode+0x12/0x2b [mvfs]
[770629.320141]  [<ffffffff811e1d67>] evict+0xa7/0x170
[770629.321043]  [<ffffffff811e25a5>] iput+0xf5/0x180
[770629.321937]  [<ffffffff811dd1c8>] dentry_kill+0x168/0x1b0
[770629.322807]  [<ffffffff811dd26c>] dput+0x5c/0xd0
[770629.323693]  [<ffffffff811c82cb>] __fput+0x17b/0x270
[770629.324527]  [<ffffffff811c84fe>] ____fput+0xe/0x10
[770629.325334]  [<ffffffff81093b54>] task_work_run+0xc4/0xe0
[770629.326122]  [<ffffffff810745bb>] do_exit+0x2cb/0xa60
[770629.326868]  [<ffffffff810938fe>] ? find_task_by_pid_ns+0xe/0x30
[770629.327585]  [<ffffffff810faa54>] ? __audit_syscall_entry+0xb4/0x110
[770629.328290]  [<ffffffff81020de3>] ? syscall_trace_enter+0x173/0x220
[770629.328985]  [<ffffffff81074d87>] SyS_exit+0x17/0x20
[770629.329650]  [<ffffffff816164e9>] ia32_do_call+0x13/0x13
[770629.330292] Code: 43 78 48 8d bb c8 00 00 00 48 89 7b 70 48 8b 30 e8 4c 4d 01 00 c7 03 01 00 00 00 65 48 8b 04 25 c0 b7 00 00 48 8b 80 60 07 00 00 <4c> 8b 68 08 49 83 c5 45 4c 89 ef e8 e6 62 07 e1 83 f8 20 0f 8e 
[770629.331708] RIP  [<ffffffffa0266a4a>] rpc_new_client+0x19a/0x2f0 [sunrpc]
[770629.332421]  RSP <ffff880102ff7980>
[770629.333108] CR2: 0000000000000008

Environment

  • Red Hat Enterprise Linux 7
  • sunrpc
  • mvfs kernel module

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content