Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This code ensures that no uninitialized padding bytes are copied to unprivileged users. Important: The structure copied to user space is now a packed structure and the copy_to_user() function (or other eventual user) would need to unpack it to recreate the original padded structure.

...