Received: by 2002:a19:771d:0:0:0:0:0 with SMTP id s29csp1259947lfc; Wed, 1 Jun 2022 13:22:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFOVbRqL+n+yWblt5Epe9ID49jOSGldB8RrermTbck+dNFzffy6mPU2kYI2np0EuPsfW/v X-Received: by 2002:a17:902:e881:b0:161:bfc2:c52 with SMTP id w1-20020a170902e88100b00161bfc20c52mr1172924plg.75.1654114969750; Wed, 01 Jun 2022 13:22:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654114969; cv=none; d=google.com; s=arc-20160816; b=DsccksQrz6nt98o3WFkzVkKKOlZ1bNxFk44aji4wYjVtzHrpEm79zCHpvfIY5rTwYI G8Q1zyrBmlBTx9wLWlPCqigZ1DjHZpa3lpsBLyQMQUBKpIcdezijJCRipKd4/9AlPd0M 1Pzccl6+RNyaBRnqyAtjOk7DP/ls9VXKaa5j1sh5iWv9ZwJQzcuavmWRqq7OaN3DROIU D685n7GtH7186+DKdS/A4ur/XWcvMzQuf5SFogI5bhzi+uZqXl2pI2WD15Sx/Zy6K57m DeKrEN6alDPfeiWHEhN4NACldTIS3advtWDIjg8jbtD1m050FCDwq0ImIqsbv7w9UbvU QZVQ== 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=ivvYO1sUstCciiWZkswLsyBmaMq3bC7gj08oOv0TolI=; b=HaIjVX/Hjlq4wApH06Oix30h0d8ecvTeyPUA+8BaIaPRp7ziiPYfLxp/C103QJHiJl 9hTB6yg0vi5LcDregcqzE6QgJvC57AtOyEGkutqYZqQE5YTl8yXy19Tj1sV7J5lmUnfU e45J4pXnBA/fc5l1DckgtSg8JATMutUTmKvwHzhH8TXw3wzWueMyQGSU7+r8pCr4UcPI sfrXTy9ORBd3DSbjzkzmFe5TKhWK0VX5KlNpEdDQTgpBBGBmxR/JyweaHo0GX3jpr89Y vHt2GqFLOl++MtWGdbw2lJQkMdZ9ESXI9iYkJwTYsQRxB0v5BVHoVg5UBE/uBaquJK7y +2ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=0O91Vxj1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b8-20020a056a000cc800b00518947dda01si3609439pfv.183.2022.06.01.13.22.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 13:22:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=0O91Vxj1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 14C731A005F; Wed, 1 Jun 2022 12:35:03 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245049AbiEaJBz (ORCPT + 99 others); Tue, 31 May 2022 05:01:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245041AbiEaJBu (ORCPT ); Tue, 31 May 2022 05:01:50 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B53B61D0C7 for ; Tue, 31 May 2022 02:01:47 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id x17so8665723wrg.6 for ; Tue, 31 May 2022 02:01:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to:content-transfer-encoding; bh=ivvYO1sUstCciiWZkswLsyBmaMq3bC7gj08oOv0TolI=; b=0O91Vxj1nMXvo9qMNyldMMQ1Ib34fxg70N9h08o/c7hadC8XvZJvsddzYl+C67weBv VO+un8Uzc1BCHF+0uIkJ0p/vnx1PDoE35JEVAmCn/BzMq8+nVXiJD3Jbctbbbfc0Q44c zKaNoy9cOyjGWnksSd8UD4J1mXeYfOpHE/n0r0DoJynLRM5qKJ/66I1rzGZfkZezSgZT ReWtlOaMGKnwAobrfOvjBEZ7NuJ7ohgmvRCcUiy4RmEocdtNqTo2Q5Wa1C941SEn2sqk he7/AKxDo7dNKbX9JhbzfT+EPeIiVb9Sz43yoJqjYaB2Y/QRBmwxcGMJrbUbACQM+v7l sOfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=ivvYO1sUstCciiWZkswLsyBmaMq3bC7gj08oOv0TolI=; b=ZxO6EiPaze+2I4JMcGz7hg9HEdY0MhS//APNi5/gpZp3kLreUIHlabBuih+Pxb0E6l VqlTDWLIijYjRMsOA+9EuIfQJfhQNULy/OFqTu3Nrx9MuFrb29LejbWwObZi7X8zoMNa 9Se7ITRBiqWhnfZL7OW+3jNkCvc51ObgtC7u+U1mypus7Iax91ZU5rRL7P/7WYTQCPw+ T1sQhN1IaM+vwQZmAemVKGStUGHLJAZ4EHM61/KaaV270CCdGKmC4pbL1qkpGaRHT3aI mel42aUPJDJo5fUZT1ZfJ8MSR+BCQMfWZoAWw63tHMwBOj88EyfqlPfwDs3IZEIaUdTp g36g== X-Gm-Message-State: AOAM532L74KuRbCIXvDnZexqvWa1GYt3XCm4p5KE1TYuDQ68wvhOCZ0v qggDD1ERTADQ/CW54VfMVqX2HQ== X-Received: by 2002:a5d:4344:0:b0:20c:9156:8ec with SMTP id u4-20020a5d4344000000b0020c915608ecmr50065204wrr.71.1653987706038; Tue, 31 May 2022 02:01:46 -0700 (PDT) Received: from [10.188.163.71] (cust-east-parth2-46-193-73-98.wb.wifirst.net. [46.193.73.98]) by smtp.gmail.com with ESMTPSA id o20-20020a05600c379400b0039c18d3fe27sm1533956wmr.19.2022.05.31.02.01.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 31 May 2022 02:01:45 -0700 (PDT) Message-ID: Date: Tue, 31 May 2022 03:01:44 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [syzbot] UBSAN: array-index-out-of-bounds in io_submit_sqes Content-Language: en-US To: Hao Xu , 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: Jens Axboe In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 3:00 AM, Hao Xu wrote: > 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. Yeah that's what I did, just rebased it to get rid of it: https://git.kernel.dk/cgit/linux-block/commit/?h=io_uring-5.19&id=fcde59feb1affb6d56aecadc3868df4631480da5 -- Jens Axboe