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

Workaround __write_overflow_field errors

    XMLWordPrintable

Details

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

    Description

      Linux commit v5.17-rc3-1-gf68f2ff91512
      fortify: Detect struct member overflows in memcpy() at compile-time

      memcpy and memset of collections of struct members
      will trigger:

      error: call to ‘__write_overflow_field’ declared with attribute
      warning: detected write beyond size of field (1st parameter);
      maybe use struct_group()?
      [-Werror] __write_overflow_field(p_size_field, size);

      Attachments

        Activity

          People

            stancheff Shaun Tancheff
            stancheff Shaun Tancheff
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: