Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-12653

WARNING: CPU: 3 PID: 5070 at fs/proc/generic.c:399 proc_register+0x8e/0xb0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Minor
    • None
    • Lustre 2.13.0
    • None
    • 3
    • 9223372036854775807

    Description

      When trying to setup lustre server and client on same node:

      [ 1317.867842] WARNING: CPU: 3 PID: 5487 at fs/proc/generic.c:399 proc_register+0x8e/0xb0
      [ 1317.869828] proc_dir_entry 'lustre/lov' already registered
      [ 1317.871253] Modules linked in: lov(OE+) ofd(OE) ost(OE) osp(OE) mdd(OE) lod(OE) mdt(OE) lfsck(OE) mgs(OE) mgc(OE) osd_ldiskfs(OE) lquota(OE) fid(OE) fld(OE) ksocklnd(OE) ptlrpc(OE) obdclass(OE) lnet(OE) libcfs(OE) ldiskfs(OE) mbcache jbd2 rpcsec_gss_krb5 auth_rpcgss nfsv4 dns_resolver nfs ipmi_devintf lockd ipmi_msghandler grace fscache ip6t_rpfilter ipt_REJECT nf_reject_ipv4 ip6t_REJECT nf_reject_ipv6 xt_conntrack ip_set nfnetlink ebtable_nat ebtable_broute bridge stp llc ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_mangle ip6table_security ip6table_raw iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle iptable_security iptable_raw ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter zfs(POE) sunrpc zunicode(POE) zlua(POE)
      [ 1317.884392] ppdev zcommon(POE) znvpair(POE) zavl(POE) icp(POE) iosf_mbi crc32_pclmul ghash_clmulni_intel spl(OE) aesni_intel lrw gf128mul glue_helper ablk_helper cryptd joydev pcspkr sg parport_pc parport virtio_balloon i2c_piix4 ip_tables xfs libcrc32c sd_mod sr_mod crc_t10dif cdrom crct10dif_generic ata_generic pata_acpi virtio_blk crct10dif_pclmul crct10dif_common crc32c_intel serio_raw floppy 8139too ata_piix libata virtio_pci 8139cp virtio_ring virtio mii
      [ 1317.891046] CPU: 3 PID: 5487 Comm: modprobe Kdump: loaded Tainted: P W OE ------------ 3.10.0-957.1.3.el7_lustre.2.12.50_281_g77be9b2.x86_64 #1
      [ 1317.893091] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-2.fc30 04/01/2014
      [ 1317.894479] Call Trace:
      [ 1317.894953] [<ffffffff9c161e41>] dump_stack+0x19/0x1b
      [ 1317.895748] [<ffffffff9ba97648>] __warn+0xd8/0x100
      [ 1317.896495] [<ffffffff9ba976cf>] warn_slowpath_fmt+0x5f/0x80
      [ 1317.897372] [<ffffffff9bcbe5e8>] ? pde_subdir_insert+0x58/0xb0
      [ 1317.898319] [<ffffffff9bcbe80e>] proc_register+0x8e/0xb0
      [ 1317.899175] [<ffffffff9bcbe956>] proc_mkdir_data+0x66/0xa0
      [ 1317.900059] [<ffffffff9bcbe9c5>] proc_mkdir+0x15/0x20
      [ 1317.900884] [<ffffffffc0fe5ff4>] lprocfs_register+0x24/0x80 [obdclass]
      [ 1317.901922] [<ffffffffc0fde00d>] class_register_type+0x71d/0x7b0 [obdclass]
      [ 1317.903062] [<ffffffffc1270000>] ? 0xffffffffc126ffff
      [ 1317.903893] [<ffffffffc1270141>] lov_init+0x141/0x1000 [lov]
      [ 1317.904778] [<ffffffff9ba0210a>] do_one_initcall+0xba/0x240
      [ 1317.905684] [<ffffffff9bb1906c>] load_module+0x272c/0x2bc0
      [ 1317.906536] [<ffffffff9bda36b0>] ? ddebug_proc_write+0x100/0x100
      [ 1317.907462] [<ffffffff9bb14bf3>] ? copy_module_from_fd.isra.44+0x53/0x150
      [ 1317.908533] [<ffffffff9bb196e6>] SyS_finit_module+0xa6/0xd0
      [ 1317.909422] [<ffffffff9c174ddb>] system_call_fastpath+0x22/0x27
      [ 1317.910375] ---[ end trace 254564f3fd63f4a8 ]---
      

      The problem seems Server side might try to create proc firstly:

       create "lov" entry for compatibility purposes /
              sym = class_add_symlinks(LUSTRE_LOV_NAME, true);
              if (IS_ERR(sym)) {
                      rc = PTR_ERR(sym);
                      / does real "lov" already exist ? /
                      if (rc == -EEXIST)
                              rc = 0; 
              }    
      

      and then lov_init will fail:

      rc = class_register_type(&lov_obd_ops, NULL, true, NULL,
                                       LUSTRE_LOV_NAME, &lov_device_type);
        if (rc) {
      

      Attachments

        Issue Links

          Activity

            People

              simmonsja James A Simmons
              wshilong Wang Shilong (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: