Received: by 2002:a19:771d:0:0:0:0:0 with SMTP id s29csp1283375lfc; Wed, 1 Jun 2022 14:10:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3mM09ZpOPJ6zYqHWBXC3jnXxJXgU4DrYY9F/UC8cR/VgI2YkmzT03ecAQ50H8azO1JrPr X-Received: by 2002:a17:903:1205:b0:15e:804c:fab4 with SMTP id l5-20020a170903120500b0015e804cfab4mr1365771plh.112.1654117828748; Wed, 01 Jun 2022 14:10:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654117828; cv=none; d=google.com; s=arc-20160816; b=SW2uUuWoJ6cqSb4PgyFE/I/5/fjMkt3FwaTQg4vLPFDs6ubvw6bMNGCNcJB83QYV1R 0P156yJ6xZrnFALHmrAzMhED/zkmCNrP7qhyV1VzFeQAojqo+pFs0WyzjN7HY7zDCqcA UpqH+A2WBIXRI2DxZtqL8gJNk3i3LwkMFrX6f6Ox8Z0aZ+EmOQXCVSVzIdU70ju3BfoB /fNoSrDqcdAhOgs049otX1RR1ipzRZpkFvFhlFXIEl0hOp7r7TEhRVZiOpAWkMaKLq5T EasgZlAJE0itOAfoBOFZzF3haF1ROJJTOyHznRzmb/Xyjf5e5TGCdozVkiUjz84auSUd z68w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=YoMvvnFy7lQ2o505i+lUJxUjQt62DbIV+yUB4JeZdsc=; b=icBHd9FiqnAGO1gv93493O7regR4cVV/R9JNSsDjDJl03cSwFPClAeFqGfRS9g/aY2 q88RLncJaXyZZ/yUlGAl9ulzujLlcUYkQd0p5MZpqi7VJjaDe+JMApO2ojEuNAG7Jyrl Swp/T0tLS9/tu3wCR+QFlM8GZ0TPGSG0mhJ5V/vrGeG63HEjh/VQOpO3Tj7yolCmxzkf Zm8TaM7U0hXqaS+w/McHt1230AB5b0AGWoWmcsZKlRsb/BXg85hElvmXmAhxe/Houwt3 9s/Dj3dPOJEg19cywH3YwCsB3Gv/3W5a4gTmUMNVe9SMXzHBF2kf5oVcivVxZLojTnyu Q7cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@icloud.com header.s=1a1hai header.b=bBHViiyo; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=icloud.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id g4-20020a056a0023c400b004fa3a8e002csi3550875pfc.227.2022.06.01.14.10.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 14:10:28 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@icloud.com header.s=1a1hai header.b=bBHViiyo; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=icloud.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 055EA2A46D5; Wed, 1 Jun 2022 13:02:10 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242735AbiEaJIY (ORCPT + 99 others); Tue, 31 May 2022 05:08:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235570AbiEaJIX (ORCPT ); Tue, 31 May 2022 05:08:23 -0400 X-Greylist: delayed 470 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 31 May 2022 02:08:22 PDT Received: from pv50p00im-ztbu10011701.me.com (pv50p00im-ztbu10011701.me.com [17.58.6.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D3B655354 for ; Tue, 31 May 2022 02:08:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1653987629; bh=YoMvvnFy7lQ2o505i+lUJxUjQt62DbIV+yUB4JeZdsc=; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type; b=bBHViiyom6RSqB/K6YUJJxjhK6SjoNMIFuT2eiX8vlslzbYyJlBvPfU7F5ViA7G0q dBaS1rZCHnpJarDyhRz1rTVairsrbCGLwyTH31KAtCBsEqMgztT1AaEGgDxqcgsdXJ Dsb+J2Qr4weejmgrCpXlWUJwyOtMjn9LIv6gr3DmlNlt09/9w4wZdtaV84tToWduWI 1utb1blDWhy6qm8exMQMBXCAA5aXKG8FAhUulpcevlAqJGl/IwtLCsfAG58A7I5S3y iXgCUGk5AExJgJly246AZywIp/+16GGblpcOC3yNPeYBDrngasFzZXMvClw+6wwiI4 LmfDyPqCmAhxA== Received: from [10.97.63.88] (pv50p00im-dlb-asmtp-mailmevip.me.com [17.56.9.10]) by pv50p00im-ztbu10011701.me.com (Postfix) with ESMTPSA id 19CEBB40348; Tue, 31 May 2022 09:00:26 +0000 (UTC) Message-ID: Date: Tue, 31 May 2022 17:00:23 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [syzbot] UBSAN: array-index-out-of-bounds in io_submit_sqes Content-Language: en-US To: Jens Axboe , syzbot , asml.silence@gmail.com, io-uring@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com References: <000000000000f0b26205e04a183b@google.com> <3d3c6b5f-84cd-cb25-812e-dac77e02ddbf@kernel.dk> From: Hao Xu In-Reply-To: <3d3c6b5f-84cd-cb25-812e-dac77e02ddbf@kernel.dk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.517,18.0.874 definitions=2022-05-31_03:2022-05-30,2022-05-31 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2009150000 definitions=main-2205310047 X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/31/22 16:45, Jens Axboe wrote: > On 5/31/22 1:55 AM, syzbot wrote: >> Hello, >> >> syzbot found the following issue on: >> >> HEAD commit: 3b46e4e44180 Add linux-next specific files for 20220531 >> git tree: linux-next >> console output: https://syzkaller.appspot.com/x/log.txt?x=16e151f5f00000 >> kernel config: https://syzkaller.appspot.com/x/.config?x=ccb8d66fc9489ef >> dashboard link: https://syzkaller.appspot.com/bug?extid=b6c9b65b6753d333d833 >> compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 >> >> Unfortunately, I don't have any reproducer for this issue yet. >> >> IMPORTANT: if you fix the issue, please add the following tag to the commit: >> Reported-by: syzbot+b6c9b65b6753d333d833@syzkaller.appspotmail.com >> >> ================================================================================ >> ================================================================================ >> UBSAN: array-index-out-of-bounds in fs/io_uring.c:8860:19 >> index 75 is out of range for type 'io_op_def [47]' > > 'def' is just set here, it's not actually used after 'opcode' has been > verified. > Maybe we can move it to be below the opcode check to comfort UBSAN.