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

Null pointer dereference in lustre_set_wire_obdo

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • Lustre 2.16.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      [ 279.518552] kasan: GPF could be caused by NULL-ptr deref or user memory access
      [ 279.520881] general protection fault: 0000 1 SMP KASAN NOPTI
      [ 279.523366] CPU: 1 PID: 555 Comm: test Tainted: G O 5.4.148+ #7
      [ 279.527232] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014
      [ 279.530776] RIP: 0010:lustre_set_wire_obdo+0x7e/0x570 [obdclass]
      [ 279.556223] Call Trace:
      [ 279.556666] osc_getattr+0x1eb/0x950 [osc]
      [ 279.558046] osc_iocontrol+0x4f1/0xe80 [osc]
      [ 279.559241] lov_iocontrol+0x4ba/0x5de0 [lov]
      [ 279.567254] ll_dir_ioctl+0x2834/0x17cc0 [lustre]
      [ 279.590353] do_vfs_ioctl+0x405/0x660
      [ 279.590784] ksys_ioctl+0x5e/0x90
      

      Attachments

        Issue Links

          Activity

            [LU-16634] Null pointer dereference in lustre_set_wire_obdo

            "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/51596/
            Subject: LU-16634 build: remove obsolete checkpatch strings
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: cf50755cce8b19c9cbfb20c12137b0eb3c3b66da

            gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/51596/ Subject: LU-16634 build: remove obsolete checkpatch strings Project: fs/lustre-release Branch: master Current Patch Set: Commit: cf50755cce8b19c9cbfb20c12137b0eb3c3b66da

            "Andreas Dilger <adilger@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/51596
            Subject: LU-16634 build: remove obsolete checkpatch strings
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 4566b6d452f2ccc6b89c23b1865f3a5b5d0b2038

            gerrit Gerrit Updater added a comment - "Andreas Dilger <adilger@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/51596 Subject: LU-16634 build: remove obsolete checkpatch strings Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 4566b6d452f2ccc6b89c23b1865f3a5b5d0b2038
            pjones Peter Jones added a comment -

            All patches seem to have landed for 2.16

            pjones Peter Jones added a comment - All patches seem to have landed for 2.16

            "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/50390/
            Subject: LU-16634 misc: replace obsolete ioctl numbers
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 594b780062db7e015837faefa75f7352293f54ae

            gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/50390/ Subject: LU-16634 misc: replace obsolete ioctl numbers Project: fs/lustre-release Branch: master Current Patch Set: Commit: 594b780062db7e015837faefa75f7352293f54ae

            "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/50314/
            Subject: LU-16634 misc: standardize iocontrol param handling
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 5eae8514f5f1730fe93d55d348400f5ecf681078

            gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/50314/ Subject: LU-16634 misc: standardize iocontrol param handling Project: fs/lustre-release Branch: master Current Patch Set: Commit: 5eae8514f5f1730fe93d55d348400f5ecf681078

            tao.lyu, have you been able to validate that the provided patch (or the latest patch https://review.whamcloud.com/50314 on master) fixes the issue reported here and in LU-16617?

            adilger Andreas Dilger added a comment - tao.lyu , have you been able to validate that the provided patch (or the latest patch https://review.whamcloud.com/50314 on master) fixes the issue reported here and in LU-16617 ?

            "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/50335/
            Subject: LU-16634 llite: move common ioctl code to ll_iocontrol()
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 3be425883918528ef981af697b34de187c3937b3

            gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/50335/ Subject: LU-16634 llite: move common ioctl code to ll_iocontrol() Project: fs/lustre-release Branch: master Current Patch Set: Commit: 3be425883918528ef981af697b34de187c3937b3

            "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/50334/
            Subject: LU-16634 obdclass: improve iocontrol error messages
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 1f4825eff026321a8e769739868d4d482026c3ee

            gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/50334/ Subject: LU-16634 obdclass: improve iocontrol error messages Project: fs/lustre-release Branch: master Current Patch Set: Commit: 1f4825eff026321a8e769739868d4d482026c3ee

            "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/50333/
            Subject: LU-16634 misc: remove unnecessary ioctl typecasts
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 4a1465577e1310ce09834103f7136bef0e1a1eeb

            gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/50333/ Subject: LU-16634 misc: remove unnecessary ioctl typecasts Project: fs/lustre-release Branch: master Current Patch Set: Commit: 4a1465577e1310ce09834103f7136bef0e1a1eeb

            "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/50331/
            Subject: LU-16634 build: improve checkpatch warnings
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: fe13a1b01c61801065571b4049e8c6bd544742b7

            gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/50331/ Subject: LU-16634 build: improve checkpatch warnings Project: fs/lustre-release Branch: master Current Patch Set: Commit: fe13a1b01c61801065571b4049e8c6bd544742b7

            People

              adilger Andreas Dilger
              tao.lyu Tao Lyu
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: