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

Use pde_data() when available, __write_overflow_field

XMLWordPrintable

    • 3
    • 9223372036854775807

      Linux commit v5.16-11573-g6dfbbae14a7b
      introduce pde_data() and
      Linux commit v5.16-11574-g359745d78351
      remove PDE_DATA()

      Use PDE_DATA() when pde_data is not available.

      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);

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

              Created:
              Updated:
              Resolved: