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

MDT_BOOL_RW_ATTR macros dereference potential ERR_PTR

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.17.0
    • Lustre 2.17.0
    • None
    • 3
    • 9223372036854775807

    Description

      MDT_BOOL_RW_ATTR macro in lustre/mdt/mdt_lproc.c create a store and show methods for a boolean sysfs entry, but in process they use result of mdt_dev() call without checking, but internally it uses container_of_safe that could return NULL or ERR_PTR, so we need to check the return value.

      Attachments

        Activity

          People

            green Oleg Drokin
            green Oleg Drokin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: