1. 04 7月, 2022 7 次提交
  2. 28 6月, 2022 1 次提交
  3. 24 6月, 2022 5 次提交
  4. 23 6月, 2022 1 次提交
  5. 20 6月, 2022 2 次提交
  6. 17 6月, 2022 10 次提交
  7. 16 6月, 2022 2 次提交
  8. 15 6月, 2022 1 次提交
    • L
      netfs: fix up netfs_inode_init() docbook comment · 018ab4fa
      Linus Torvalds 提交于
      Commit e81fb419 ("netfs: Further cleanups after struct netfs_inode
      wrapper introduced") changed the argument types and names, and actually
      updated the comment too (although that was thanks to David Howells, not
      me: my original patch only changed the code).
      
      But the comment fixup didn't go quite far enough, and didn't change the
      argument name in the comment, resulting in
      
        include/linux/netfs.h:314: warning: Function parameter or member 'ctx' not described in 'netfs_inode_init'
        include/linux/netfs.h:314: warning: Excess function parameter 'inode' description in 'netfs_inode_init'
      
      during htmldoc generation.
      
      Fixes: e81fb419 ("netfs: Further cleanups after struct netfs_inode wrapper introduced")
      Reported-by: NStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      018ab4fa
  9. 14 6月, 2022 1 次提交
  10. 12 6月, 2022 1 次提交
  11. 11 6月, 2022 3 次提交
    • D
      netfs: Rename the netfs_io_request cleanup op and give it an op pointer · 40a81101
      David Howells 提交于
      The netfs_io_request cleanup op is now always in a position to be given a
      pointer to a netfs_io_request struct, so this can be passed in instead of
      the mapping and private data arguments (both of which are included in the
      struct).
      
      So rename the ->cleanup op to ->free_request (to match ->init_request) and
      pass in the I/O pointer.
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Reviewed-by: NJeff Layton <jlayton@kernel.org>
      cc: linux-cachefs@redhat.com
      40a81101
    • L
      netfs: Further cleanups after struct netfs_inode wrapper introduced · e81fb419
      Linus Torvalds 提交于
      Change the signature of netfs helper functions to take a struct netfs_inode
      pointer rather than a struct inode pointer where appropriate, thereby
      relieving the need for the network filesystem to convert its internal inode
      format down to the VFS inode only for netfslib to bounce it back up.  For
      type safety, it's better not to do that (and it's less typing too).
      
      Give netfs_write_begin() an extra argument to pass in a pointer to the
      netfs_inode struct rather than deriving it internally from the file
      pointer.  Note that the ->write_begin() and ->write_end() ops are intended
      to be replaced in the future by netfslib code that manages this without the
      need to call in twice for each page.
      
      netfs_readpage() and similar are intended to be pointed at directly by the
      address_space_operations table, so must stick to the signature dictated by
      the function pointers there.
      
      Changes
      =======
      - Updated the kerneldoc comments and documentation [DH].
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      cc: linux-cachefs@redhat.com
      Link: https://lore.kernel.org/r/CAHk-=wgkwKyNmNdKpQkqZ6DnmUL-x9hp0YBnUGjaPFEAdxDTbw@mail.gmail.com/
      e81fb419
    • C
      firmware: arm_scmi: Avoid using extended string-buffers sizes if not necessary · 4314f9f4
      Cristian Marussi 提交于
      Commit b260fcca ("firmware: arm_scmi: Add SCMI v3.1 protocol extended
      names support") moved all the name string buffers to use the extended buffer
      size of 64 instead of the required 16 bytes. While that should be fine if
      the firmware terminates the string before 16 bytes, there is possibility
      of copying random data if the name is not NULL terminated by the firmware.
      
      SCMI base protocol agent_name/vendor_id/sub_vendor_id are defined by the
      specification as NULL-terminated ASCII strings up to 16-bytes in length.
      
      The underlying buffers and message descriptors are currently bigger than
      needed; resize them to fit only the strictly needed 16 bytes to avoid
      any possible leaks when reading data from the firmware.
      
      Change the size argument of strlcpy to use SCMI_SHORT_NAME_MAX_SIZE always
      when dealing with short domain names, so as to limit the possibility that
      an ill-formed non-NULL terminated short reply from the SCMI platform
      firmware can leak stale content laying in the underlying transport shared
      memory area.
      
      While at that, convert all strings handling routines to use the preferred
      strscpy.
      
      Link: https://lore.kernel.org/r/20220608095530.497879-1-cristian.marussi@arm.com
      Fixes: b260fcca ("firmware: arm_scmi: Add SCMI v3.1 protocol extended names support")
      Signed-off-by: NCristian Marussi <cristian.marussi@arm.com>
      Signed-off-by: NSudeep Holla <sudeep.holla@arm.com>
      4314f9f4
  12. 10 6月, 2022 6 次提交