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

Fix fortify build issue Ubuntu 25.04 / v6.11.29

    XMLWordPrintable

Details

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

    Description

      Ubuntu 6.11, gcc-14.2

      /home/shaun/lustre-release/lustre/llite/file.c: In function ‘ll_intent_file_open’:
      ./include/linux/fortify-string.h:114:33: error: ‘__builtin_memcpy’ accessing 18446744073709551614 bytes at offsets 0 and 0 overlaps 9223372036854775805 bytes at offset -9223372036854775807 [-Werror=restrict]
        114 | #define __underlying_memcpy     __builtin_memcpy
            |                                 ^
      ./include/linux/fortify-string.h:633:9: note: in expansion of macro ‘__underlying_memcpy’
        633 |         __underlying_##op(p, q, __fortify_size);                        \
            |         ^~~~~~~~~~~~~
      ./include/linux/fortify-string.h:678:26: note: in expansion of macro ‘__fortify_memcpy_chk’
        678 | #define memcpy(p, q, s)  __fortify_memcpy_chk(p, q, s,                  \
            |                          ^~~~~~~~~~~~~~~~~~~~
      /home/shaun/lustre-release/lustre/llite/file.c:738:17: note: in expansion of macro ‘memcpy’
        738 |                 memcpy(name, de->d_name.name, len);
            |                 ^~~~~~
      cc1: all warnings being treated as errors
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: