Hello Tony, On Mon, Jan 22, 2024 at 09:37:31PM +0200, Tony Solomonik wrote: > +int io_truncate_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe) > +{ > + struct io_trunc *tr = io_kiocb_to_cmd(req, struct io_trunc); > + > + if (sqe->off || sqe->rw_flags || sqe->buf_index || sqe->splice_fd_in) > + return -EINVAL; > + if (unlikely(req->flags & REQ_F_FIXED_FILE)) > + return -EBADF; > + > + tr->pathname = u64_to_user_ptr(READ_ONCE(sqe->addr)); > + tr->len = READ_ONCE(sqe->len); sqe->len is 32 bits. I _think_ loff_t is or could be 64-bits. Isn't it possible to use a u64 here? Maybe sqe->off or sqe->addr?