• Peng Tao's avatar
    nfs: set hostname when creating nfsv3 ds connection · 36d3e3dc
    Peng Tao authored
    lockd assumes hostname exists otherwise kernel oops.
    It can be reproduced by following steps:
    1. mount flexfile MDS
    2. write some files
    3. mount DS via nfsv3
    
    BUG: unable to handle kernel NULL pointer dereference at           (null)
     IP: [<ffffffff8134f332>] strlen+0x2/0x20
     PGD 0
     Oops: 0000 [#1] SMP
     Modules linked in: nfsd(F) nfs_layout_flexfiles(F) rpcsec_gss_krb5(F) auth_rpcgss(F) nfsv4(F) dns_resolver(F) nfsv3(F) nfs_acl(F) nfs(F) lockd(F) sunrpc(F) fscache(F) ebtable_nat(F) nf_conntrack_netbios_ns(F) nf_conntrack_broadcast(F) ipt_MASQUERADE(F) ip6table_nat(F) nf_nat_ipv6(F) ip6table_mangle(F) ip6t_REJECT(F) nf_conntrack_ipv6(F) nf_defrag_ipv6(F) iptable_nat(F) nf_nat_ipv4(F) nf_nat(F) iptable_mangle(F) nf_conntrack_ipv4(F) nf_defrag_ipv4(F) xt_conntrack(F) nf_conntrack(F) ebtable_filter(F) ebtables(F) ip6table_filter(F) ip6_tables(F) bnep(F) snd_ens1371(F) snd_rawmidi(F) snd_ac97_codec(F) btusb(F) ac97_bus(F) snd_seq(F) snd_seq_device(F) snd_pcm(F...
    36d3e3dc
nfs3client.c 2.9 KB