From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: Re: [RFC PATCH v1 1/3] io_uring: Rename `io_{send, recv}` to `io_{sendto, recvfrom}`
Date: Fri, 31 Dec 2021 00:54:48 +0800 [thread overview]
Message-ID: <202112310016.rALniPPT-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 5797 bytes --]
CC: kbuild-all(a)lists.01.org
In-Reply-To: <20211230013250.103267-1-ammar.faizi@intel.com>
References: <20211230013250.103267-1-ammar.faizi@intel.com>
TO: Ammar Faizi <ammarfaizi2@gmail.com>
Hi Ammar,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on aafc6e6eba29c890b0031267fc37c43490447c81]
url: https://github.com/0day-ci/linux/commits/Ammar-Faizi/io_uring-Add-sendto-2-and-recvfrom-2-support/20211230-093703
base: aafc6e6eba29c890b0031267fc37c43490447c81
:::::: branch date: 15 hours ago
:::::: commit date: 15 hours ago
config: i386-randconfig-m021-20211230 (https://download.01.org/0day-ci/archive/20211231/202112310016.rALniPPT-lkp(a)intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
New smatch warnings:
fs/io_uring.c:5550 io_recvfrom() error: uninitialized symbol 'flags'.
Old smatch warnings:
fs/io_uring.c:6364 io_timeout_cancel() warn: passing a valid pointer to 'PTR_ERR'
fs/io_uring.c:6421 io_timeout_update() warn: passing a valid pointer to 'PTR_ERR'
fs/io_uring.c:8722 io_sqe_files_register() error: we previously assumed 'ctx->file_data' could be null (see line 8694)
vim +/flags +5550 fs/io_uring.c
0fa03c624d8fc9 Jens Axboe 2019-04-19 5501
9cfe685bad5431 Ammar Faizi 2021-12-30 5502 static int io_recvfrom(struct io_kiocb *req, unsigned int issue_flags)
fddafacee287b3 Jens Axboe 2020-01-04 5503 {
6b754c8b912a16 Pavel Begunkov 2020-07-16 5504 struct io_buffer *kbuf;
fddafacee287b3 Jens Axboe 2020-01-04 5505 struct io_sr_msg *sr = &req->sr_msg;
fddafacee287b3 Jens Axboe 2020-01-04 5506 struct msghdr msg;
7a7cacba8b4560 Pavel Begunkov 2020-07-16 5507 void __user *buf = sr->buf;
7a7cacba8b4560 Pavel Begunkov 2020-07-16 5508 struct socket *sock;
fddafacee287b3 Jens Axboe 2020-01-04 5509 struct iovec iov;
fddafacee287b3 Jens Axboe 2020-01-04 5510 unsigned flags;
d1fd1c201d7507 Pavel Begunkov 2021-12-05 5511 int ret, min_ret = 0;
45d189c6062922 Pavel Begunkov 2021-02-10 5512 bool force_nonblock = issue_flags & IO_URING_F_NONBLOCK;
7a7cacba8b4560 Pavel Begunkov 2020-07-16 5513
dba4a9256bb4d7 Florent Revest 2020-12-04 5514 sock = sock_from_file(req->file);
7a7cacba8b4560 Pavel Begunkov 2020-07-16 5515 if (unlikely(!sock))
dba4a9256bb4d7 Florent Revest 2020-12-04 5516 return -ENOTSOCK;
fddafacee287b3 Jens Axboe 2020-01-04 5517
bc02ef3325e3ef Pavel Begunkov 2020-07-16 5518 if (req->flags & REQ_F_BUFFER_SELECT) {
51aac424aef980 Pavel Begunkov 2021-10-14 5519 kbuf = io_recv_buffer_select(req, issue_flags);
bcda7baaa3f15c Jens Axboe 2020-02-23 5520 if (IS_ERR(kbuf))
bcda7baaa3f15c Jens Axboe 2020-02-23 5521 return PTR_ERR(kbuf);
bcda7baaa3f15c Jens Axboe 2020-02-23 5522 buf = u64_to_user_ptr(kbuf->addr);
bcda7baaa3f15c Jens Axboe 2020-02-23 5523 }
fddafacee287b3 Jens Axboe 2020-01-04 5524
7a7cacba8b4560 Pavel Begunkov 2020-07-16 5525 ret = import_single_range(READ, buf, sr->len, &iov, &msg.msg_iter);
14c32eee928662 Pavel Begunkov 2020-07-16 5526 if (unlikely(ret))
14c32eee928662 Pavel Begunkov 2020-07-16 5527 goto out_free;
fddafacee287b3 Jens Axboe 2020-01-04 5528
fddafacee287b3 Jens Axboe 2020-01-04 5529 msg.msg_name = NULL;
fddafacee287b3 Jens Axboe 2020-01-04 5530 msg.msg_control = NULL;
fddafacee287b3 Jens Axboe 2020-01-04 5531 msg.msg_controllen = 0;
fddafacee287b3 Jens Axboe 2020-01-04 5532 msg.msg_namelen = 0;
fddafacee287b3 Jens Axboe 2020-01-04 5533 msg.msg_iocb = NULL;
fddafacee287b3 Jens Axboe 2020-01-04 5534 msg.msg_flags = 0;
fddafacee287b3 Jens Axboe 2020-01-04 5535
044118069a23fd Pavel Begunkov 2021-04-01 5536 flags = req->sr_msg.msg_flags;
044118069a23fd Pavel Begunkov 2021-04-01 5537 if (force_nonblock)
fddafacee287b3 Jens Axboe 2020-01-04 5538 flags |= MSG_DONTWAIT;
0031275d119efe Stefan Metzmacher 2021-03-20 5539 if (flags & MSG_WAITALL)
0031275d119efe Stefan Metzmacher 2021-03-20 5540 min_ret = iov_iter_count(&msg.msg_iter);
0031275d119efe Stefan Metzmacher 2021-03-20 5541
0b7b21e42ba2d6 Jens Axboe 2020-01-31 5542 ret = sock_recvmsg(sock, &msg, flags);
7297ce3d59449d Pavel Begunkov 2021-11-23 5543 out_free:
7297ce3d59449d Pavel Begunkov 2021-11-23 5544 if (ret < min_ret) {
7297ce3d59449d Pavel Begunkov 2021-11-23 5545 if (ret == -EAGAIN && force_nonblock)
fddafacee287b3 Jens Axboe 2020-01-04 5546 return -EAGAIN;
fddafacee287b3 Jens Axboe 2020-01-04 5547 if (ret == -ERESTARTSYS)
fddafacee287b3 Jens Axboe 2020-01-04 5548 ret = -EINTR;
7297ce3d59449d Pavel Begunkov 2021-11-23 5549 req_set_fail(req);
7297ce3d59449d Pavel Begunkov 2021-11-23 @5550 } else if ((flags & MSG_WAITALL) && (msg.msg_flags & (MSG_TRUNC | MSG_CTRUNC))) {
7297ce3d59449d Pavel Begunkov 2021-11-23 5551 req_set_fail(req);
7297ce3d59449d Pavel Begunkov 2021-11-23 5552 }
d1fd1c201d7507 Pavel Begunkov 2021-12-05 5553
d1fd1c201d7507 Pavel Begunkov 2021-12-05 5554 __io_req_complete(req, issue_flags, ret, io_put_kbuf(req));
fddafacee287b3 Jens Axboe 2020-01-04 5555 return 0;
fddafacee287b3 Jens Axboe 2020-01-04 5556 }
fddafacee287b3 Jens Axboe 2020-01-04 5557
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
next reply other threads:[~2021-12-30 16:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-30 16:54 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-12-30 1:35 [RFC PATCH v1 0/3] io_uring: Add sendto(2) and recvfrom(2) support Ammar Faizi
2021-12-30 1:35 ` [RFC PATCH v1 1/3] io_uring: Rename `io_{send,recv}` to `io_{sendto,recvfrom}` Ammar Faizi
2021-12-30 11:59 ` [RFC PATCH v1 1/3] io_uring: Rename `io_{send, recv}` to `io_{sendto, recvfrom}` kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202112310016.rALniPPT-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.