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

MDT_BOOL_RW_ATTR macros dereference potential ERR_PTR

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: