Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4010394rdb; Thu, 14 Sep 2023 09:08:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHWKmnnFjHCscG883aB60wut56O71n6jPFH5CgsIeY2gQ3r7ncrZkBzT1TYCWDBBGf79BG+ X-Received: by 2002:a17:90b:46c1:b0:263:fbe5:2125 with SMTP id jx1-20020a17090b46c100b00263fbe52125mr5803882pjb.15.1694707700435; Thu, 14 Sep 2023 09:08:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694707700; cv=none; d=google.com; s=arc-20160816; b=teVRnfIZAd+MT/NFtBG15JO6UaqxtcnHVR1Z9fyb/lH5H6Um/ZD9znidZmcVeMYAfI Y+7hDuhA+k2eHmZHYHGvu21WFKz/g1QsQqyj8Qc4fA5TvesP65kS8OZddn/1O3kh7JZx yyYYTVqTfoOBzK+0E6oOHWysIqt1CtK4vttQDMIneR9eiZnLozFWIsVlBROPUQLEenwb lSQ+AoMfRdF5pt3eWrPitbQHARJ797gicNRhu88WuBFtnEDtxak3Um8apzAK6bn2gA09 UyF+HNgFDPvEtiRbKaLHFV1BgDltktRRfPshxtPdGlg8WRKi2Av63eeARurMnjTnkxNw nCSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:in-reply-to:date :mime-version; bh=ZNdUoJwIRehdPwgJQ6H5/eO4Vgm7GeU3hjbHHkOa5/E=; fh=XOb7Rm5sWn9Hswyo9JV+QX2PRflxUu2jPuyK3tDa2SY=; b=RVVqbiCtEeFAnwj7M/ZhKtbB27c6CSXCPlViaMgLNrihqBuse9k9CTSnBhETZXP1Q0 SdIZ6kLrnPS8dTn3MVnw6rr5vzcGQT7HiX8B+xvFDvOr9u4LbthmgSSmKkF3o310nruZ Il5iKjgstRa2CJRL/rF3sNMqBgm5dPMj442cF8R6DaLA1EtQbrzlI1s6OU0W1cdCDd/x MFqx0hG/xmsLnZc2+X9yYhacOfinFj5W/M/AvMFW5O24aWAoUvYg2UiBMhxP1+FWDIyn /ZaOKKUj8hz9ul1BkPxEm0CyRK3QRpZamYrhhU0GBzOE+AyR5ryYsCkjvTdd6pV5R+1R n6Kw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id mu12-20020a17090b388c00b00268300061cdsi4449686pjb.168.2023.09.14.09.08.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 09:08:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id A6B40811B069; Thu, 14 Sep 2023 09:04:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241300AbjINQEx (ORCPT + 99 others); Thu, 14 Sep 2023 12:04:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240667AbjINQEw (ORCPT ); Thu, 14 Sep 2023 12:04:52 -0400 Received: from mail-oi1-f198.google.com (mail-oi1-f198.google.com [209.85.167.198]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59508CF for ; Thu, 14 Sep 2023 09:04:48 -0700 (PDT) Received: by mail-oi1-f198.google.com with SMTP id 5614622812f47-3acfa8f8df3so82689b6e.3 for ; Thu, 14 Sep 2023 09:04:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694707487; x=1695312287; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ZNdUoJwIRehdPwgJQ6H5/eO4Vgm7GeU3hjbHHkOa5/E=; b=sW34sku1nVyYifserbI0s+yXQmDx2oGw/0vAnFQdJ4Pz6SYuEodY/4ZlyheD5VCOwR IuqLeLRN9ZKXdGaXuXIYGdEY/P1eKUNEOPZBrPebeO+StLU9406KY3yZISZyyboGBwn6 7KmOqYcIwrOk44YUwAgJFNWesvFV6Wt8ZXDHQZE8hAgrwS0ip8NBNpCUaE0UOyM6uDw5 iMwA64U+t2z3ii2ySFNrW6t41HYQKaG/wH1gvToOoptvGSQscWgf3cQwKR4B+ysG3A21 pVYRRrqlxoS3K347DNLirZc2w9ttwTtB1oOhEFasMUlGCDteG/9ufUH1uiCLxspJD9Xq 9bZg== X-Gm-Message-State: AOJu0YyV7SUl+7bOlUD/vUbe9SLpKOQwT52RxvyQyEmzqLJ79Ab7staO 7QvfTx8WZIt/VYS09GXi5yzo4l/R5ygMA2Mcv75PHMi7XDxc MIME-Version: 1.0 X-Received: by 2002:a05:6808:1893:b0:3a8:4895:63e1 with SMTP id bi19-20020a056808189300b003a8489563e1mr2724583oib.5.1694707487793; Thu, 14 Sep 2023 09:04:47 -0700 (PDT) Date: Thu, 14 Sep 2023 09:04:47 -0700 In-Reply-To: X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000cee844060553d536@google.com> Subject: Re: [syzbot] [io-uring?] UBSAN: array-index-out-of-bounds in io_setup_async_msg From: syzbot To: asml.silence@gmail.com, axboe@kernel.dk, io-uring@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 14 Sep 2023 09:04:57 -0700 (PDT) X-Spam-Status: No, score=-0.4 required=5.0 tests=FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Hello, syzbot has tested the proposed patch but the reproducer is still triggering an issue: UBSAN: array-index-out-of-bounds in io_setup_async_msg ================================================================================ UBSAN: array-index-out-of-bounds in io_uring/net.c:189:55 index 3779565697114 is out of range for type 'iovec [8]' CPU: 1 PID: 5467 Comm: syz-executor.0 Not tainted 6.6.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x125/0x1b0 lib/dump_stack.c:106 ubsan_epilogue lib/ubsan.c:217 [inline] __ubsan_handle_out_of_bounds+0x111/0x150 lib/ubsan.c:348 io_setup_async_msg+0x2a0/0x2b0 io_uring/net.c:189 io_recvmsg+0x169f/0x2170 io_uring/net.c:781 io_issue_sqe+0x54a/0xd80 io_uring/io_uring.c:1878 io_queue_sqe io_uring/io_uring.c:2063 [inline] io_submit_sqe io_uring/io_uring.c:2323 [inline] io_submit_sqes+0x96c/0x1ed0 io_uring/io_uring.c:2438 __do_sys_io_uring_enter+0x14ea/0x2650 io_uring/io_uring.c:3647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f9a8a27cae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f9a8af210c8 EFLAGS: 00000246 ORIG_RAX: 00000000000001aa RAX: ffffffffffffffda RBX: 00007f9a8a39bf80 RCX: 00007f9a8a27cae9 RDX: 0000000000000000 RSI: 0000000000007689 RDI: 0000000000000003 RBP: 00007f9a8a2c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f9a8a39bf80 R15: 00007ffd083c1e58 ================================================================================ Tested on: commit: 0bb80ecc Linux 6.6-rc1 git tree: https://github.com/isilence/linux.git syz-test/netmsg-init-base console output: https://syzkaller.appspot.com/x/log.txt?x=15ccbf30680000 kernel config: https://syzkaller.appspot.com/x/.config?x=f4894cf58531f dashboard link: https://syzkaller.appspot.com/bug?extid=a4c6e5ef999b68b26ed1 compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 Note: no patches were applied.