aboutsummaryrefslogtreecommitdiffstats
path: root/samples/cgroup/ssh:/git@git.zx2c4.com/git:
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2025-08-08 06:35:14 -0600
committerJens Axboe <axboe@kernel.dk>2025-08-08 06:35:14 -0600
commit33503c083fda048c77903460ac0429e1e2c0e341 (patch)
tree161b8c3a6de755f59ffb92b4120037d34ab8948e /samples/cgroup/ssh:/git@git.zx2c4.com/git:
parentio_uring/net: Allow to do vectorized send (diff)
io_uring/memmap: cast nr_pages to size_t before shifting
If the allocated size exceeds UINT_MAX, then it's necessary to cast the mr->nr_pages value to size_t to prevent it from overflowing. In practice this isn't much of a concern as the required memory size will have been validated upfront, and accounted to the user. And > 4GB sizes will be necessary to make the lack of a cast a problem, which greatly exceeds normal user locked_vm settings that are generally in the kb to mb range. However, if root is used, then accounting isn't done, and then it's possible to hit this issue. Link: https://lore.kernel.org/all/6895b298.050a0220.7f033.0059.GAE@google.com/ Cc: stable@vger.kernel.org Reported-by: syzbot+23727438116feb13df15@syzkaller.appspotmail.com Fixes: 087f997870a9 ("io_uring/memmap: implement mmap for regions") Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'samples/cgroup/ssh:/git@git.zx2c4.com/git:')
0 files changed, 0 insertions, 0 deletions
?h=davem/net-next&id=b24413180f5600bcb3bb70fbed5cf186b60864bd'>License cleanup: add SPDX GPL-2.0 license identifier to files with no licenseGreg Kroah-Hartman1-0/+1 2017-08-24sunrpc: Const-ify instances of struct svc_xprt_opsChuck Lever1-2/+2 2017-02-24sunrpc: flag transports as having congestion controlJeff Layton1-0/+1 2017-01-12sunrpc: don't call sleeping functions from the notifier block callbacksScott Mayhew1-0/+1 2016-11-14sunrpc: svc_age_temp_xprts_now should not call setsockopt non-tcp transportsScott Mayhew1-0/+1 2016-07-13SUNRPC: Remove unused callback xpo_adjust_wspace()Trond Myklebust1-1/+0 2016-07-13SUNRPC: Add a server side per-connection limitTrond Myklebust1-0/+1 2016-06-15rpc: share one xps between all backchannelsJ. Bruce Fields1-0/+1 2015-12-23sunrpc: Add a function to close temporary transports immediatelyScott Mayhew1-0/+1 2015-08-10nfsd/sunrpc: turn enqueueing a svc_xprt into a svc_serv operationJeff Layton1-0/+1 2014-12-01sunrpc: eliminate the XPT_DETACHED flagJeff Layton1-4/+3 2014-07-29SUNRPC: Allow svc_reserve() to notify TCP socket that space has been freedTrond Myklebust1-0/+1 2014-07-18svcrdma: Select NFSv4.1 backchannel transport based on forward channelChuck Lever1-0/+1 2014-05-22SUNRPC: track whether a request is coming from a loop-back interface.NeilBrown1-0/+1 2014-05-22NFSD: Ignore client's source port on RDMA transportsChuck Lever1-0/+1