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

osp_statfs() should check the import before access

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • Lustre 2.18.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      [3585850.928658] BUG: unable to handle kernel NULL pointer dereference at 0000000000000148
      [3585850.930309] PGD 0 
      [3585850.931076] Oops: 0000 [#1] SMP NOPTI
      [3585850.932008] CPU: 7 PID: 2500469 Comm: mdt01_029 Kdump: loaded Tainted: G           OE     -------- -  - 4.18.0-553.71.1.el8_lustre.ddn17.x86_64 #1
      [3585850.934590] Hardware name: DDN SFA400NVX2E, BIOS 1.16.3-20250723_202142-72a82f624f3c 04/01/2014
      [3585850.936181] RIP: 0010:osp_statfs+0x75/0x4b0 [osp]
      [3585850.937249] Code: 0b 4e ff 48 c7 c7 40 ed 96 c1 e8 26 d4 4d ff 48 8b 83 b8 01 00 00 4c 8b a8 38 06 00 00 f6 05 fd d1 50 ff 01 0f 85 b1 00 00 00 <41> 83 bd 48 01 00 00 01 0f 84 60 01 00 00 f6 83 f4 01 00 00 08 0f
      [3585850.941336] RSP: 0018:ff382e99c2423bb8 EFLAGS: 00010246
      [3585850.942448] RAX: ff1d2d506fe6a550 RBX: ff1d2d4f8a195800 RCX: 0000000000000000
      [3585850.943870] RDX: ff382e99c2423c00 RSI: ff1d2d4f8a195800 RDI: ff1d2d4f27200fc0
      [3585850.945295] RBP: ff382e99c2423c00 R08: 000000003f5cf5a0 R09: ffffffffc1680fe8
      [3585850.946687] R10: ffffffffc1680fe8 R11: ff1d2d51246269f0 R12: 0000000000000000
      [3585850.948051] R13: 0000000000000000 R14: ff1d2d48e4f756f8 R15: ff1d2d477ffabc00
      [3585850.949604] FS:  0000000000000000(0000) GS:ff1d2d69b17c0000(0000) knlGS:0000000000000000
      [3585850.951599] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
      [3585850.952774] CR2: 0000000000000148 CR3: 0000001e3d610006 CR4: 0000000000771ee0
      [3585850.954190] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
      [3585850.955539] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
      [3585850.956898] PKRU: 55555554
      [3585850.957608] Call Trace:
      [3585850.958304]  ? __die_body+0x1a/0x60
      [3585850.959145]  ? no_context+0x1ba/0x3f0
      [3585850.959991]  ? get_partial_node.part.90+0x106/0x3c0
      [3585850.961041]  ? __bad_area_nosemaphore+0x157/0x180
      [3585850.962175]  ? do_page_fault+0x37/0x12d
      [3585850.963091]  ? page_fault+0x1e/0x30
      [3585850.963977]  ? osp_statfs+0x75/0x4b0 [osp]
      [3585850.964909]  ? mutex_lock+0xe/0x30
      [3585850.965799]  lod_statfs+0x1fb/0x590 [lod]
      [3585850.966675]  ? null_alloc_rs+0x9a/0x300 [ptlrpc]
      [3585850.967832]  mdd_statfs+0xd1/0x120 [mdd]
      [3585850.968662]  mdt_statfs+0x7bf/0x870 [mdt]
      [3585850.969639]  tgt_request_handle+0xc9c/0x1970 [ptlrpc]
      [3585850.970798]  ? ptlrpc_nrs_req_get_nolock0+0xff/0x1f0 [ptlrpc]
      [3585850.972027]  ? ptlrpc_update_export_timer+0x3d/0x520 [ptlrpc]
      [3585850.973185]  ptlrpc_server_handle_request+0x25a/0xca0 [ptlrpc]
      [3585850.974557]  ? lprocfs_counter_add+0x10e/0x180 [obdclass]
      [3585850.975721]  ptlrpc_main+0xb45/0x13a0 [ptlrpc]
      [3585850.976675]  ? __schedule+0x2d9/0x870
      [3585850.977528]  ? ptlrpc_register_service+0xf30/0xf30 [ptlrpc]
      [3585850.978779]  kthread+0x134/0x150
      
      

      Attachments

        Issue Links

          Activity

            People

              bzzz Alex Zhuravlev
              bzzz Alex Zhuravlev
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: