summaryrefslogtreecommitdiff
path: root/net/ipv6/udp_offload.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2021-04-26 23:16:16 +0300
committerDavid Howells <dhowells@redhat.com>2021-04-27 01:23:41 +0300
commit53b776c77aca99b663a5512a04abc27670d61058 (patch)
tree8b2144f8c4f1ddf47489c09605b646b03a032b93 /net/ipv6/udp_offload.c
parent3d14ec1fe61aebe3da85a9b8f2c3d61e43d522e6 (diff)
downloadlinux-53b776c77aca99b663a5512a04abc27670d61058.tar.xz
netfs: Miscellaneous fixes
Fix some miscellaneous things in the new netfs lib[1]: (1) The kerneldoc for netfs_readpage() shouldn't say netfs_page(). (2) netfs_readpage() can get an integer overflow on 32-bit when it multiplies page_index(page) by PAGE_SIZE. It should use page_file_offset() instead. (3) netfs_write_begin() should use page_offset() to avoid the same overflow. Note that netfs_readpage() needs to use page_file_offset() rather than page_offset() as it may see swap-over-NFS. Reported-by: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: David Howells <dhowells@redhat.com> Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Jeff Layton <jlayton@kernel.org> Link: https://lore.kernel.org/r/161789062190.6155.12711584466338493050.stgit@warthog.procyon.org.uk/ [1]
Diffstat (limited to 'net/ipv6/udp_offload.c')
0 files changed, 0 insertions, 0 deletions