Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp619697rdf; Tue, 21 Nov 2023 11:20:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IGGQpTpTsp9BJ3cb96AOMd5N/4gETXec8qFl8ps2GvaPTRIDd7UR3aneckMjOF0usKo7tMM X-Received: by 2002:a05:6a20:914a:b0:18a:df45:fad4 with SMTP id x10-20020a056a20914a00b0018adf45fad4mr3745939pzc.37.1700594409322; Tue, 21 Nov 2023 11:20:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700594409; cv=none; d=google.com; s=arc-20160816; b=SFNap+3+qRfMI9KGBB8Ok5/T4haWvAL6AnyLO6+HaErgxmWwEj44YgBXOpidyFBOaF apJgNZNlVh0gMjI9FLuV5HmaDSOwkg6/0bck3TYobuA17XwmVtPWPO24QnOmDHf6MUxi QOg5se+tbDt7GM5FK1NrLM7zXrqMkZdl00gzWZ3QZ6ArpPal0NFJIZuJ1Y83quVRKgnY FkM9bkLs0jsXwv1Ig2ujnmhcgpAer9b3bUIhs0oIeiVxEe8d+hCnrDYgsadQ9E9rZJay cU4CcTMe9QBG1FR2pNsGXosuUhKG3ATibVbytyk2zYSxgJ50TZBF50Ei4y1RJFdYw44a b30g== 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=FUBkvtKlljNw5RGXfShx1sdDMysH6AQ2CmAfAVALdNU=; fh=V9AeBafJgTW96HdC48wsxGAfd7Fe9P2uAL8tLCjpUN4=; b=pGzk5n3zlD9s2Y6AjKWuE7seajQMAcdV/L4mrJdHQciL/L6Bcme/qkkvFNRZJhh7GX h42utD2Wvyc/MSPmby/g3wXdPS77jq8pQrP1B80v0WlDfLDX/vzOHCXmwwDJ/ckLNTmp NWcstTjRBr6s8BhOTz12BEFemBS0VgkRxutS76nOH8YALQKmSfmVzIuXvrFfCmlptgO4 lwgHqAYADgMouAnihSzqZgH2aM529UbCnNzFvMQlSZ63XQ/n5dv18YrNJN0/4/8Gu3W2 l0fsm6mBCMZcKLv+bwMk678E+ZaWpdVAHHQd7/Rn+z3qYrkAo6heQl9oQKfb3PcVQYE/ Bb/g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id f13-20020a056a001acd00b006cbaae6a06asi4405848pfv.384.2023.11.21.11.20.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 11:20:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id C31C98029A9E; Tue, 21 Nov 2023 11:20:06 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230307AbjKUTT6 (ORCPT + 99 others); Tue, 21 Nov 2023 14:19:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229514AbjKUTT5 (ORCPT ); Tue, 21 Nov 2023 14:19:57 -0500 Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A616188 for ; Tue, 21 Nov 2023 11:19:54 -0800 (PST) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-28011e1cdcbso7750402a91.3 for ; Tue, 21 Nov 2023 11:19:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700594393; x=1701199193; 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=FUBkvtKlljNw5RGXfShx1sdDMysH6AQ2CmAfAVALdNU=; b=dhJmqOKjUH7/S6T0ej/SY7EW0W+PU93sLPrZX1cHqIPMMG7LJrSDyWnrkBmgytjkJY cwZVhP4agc2862XG70VjZV6qaA17vqgH22cPa1z1O3tkypKgI+WLrqMlPfOiIAmqG2RB /p3sHIpU7CsH6oATfvpOUdxkUJzuwxgUigYFCLYsppw3ecCzLXPfVyJuTWe0cobOAKH6 MzqXZWGRLqSL6TI8Qif4h9iGwiiKVEvJc8VD20jlkr4ajeU+lRyPWVx2RXep1Ws33VLv EPnFMolIZuoPA7GUdJVRMNiu94yo81cdY2oc0I9iwIVvHKq2C+lBsYigfDY5/N8QdBVL Nz5g== X-Gm-Message-State: AOJu0YzqzHJNnAM7DL7ruLik4LlwFXX33ZwdOeXeLUD2okp/z8Ng8mmV 2ZxYlIx9BMNPdHcJbAAnv2e0uc2ev0jinuBy119tdTcHUhwhJjE= MIME-Version: 1.0 X-Received: by 2002:a17:90a:8986:b0:27d:e1c:533e with SMTP id v6-20020a17090a898600b0027d0e1c533emr37550pjn.3.1700594393855; Tue, 21 Nov 2023 11:19:53 -0800 (PST) Date: Tue, 21 Nov 2023 11:19:53 -0800 In-Reply-To: <000000000000d330500607d85a5f@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000c0be0d060aae7c5b@google.com> Subject: Re: [syzbot] [PATCH] Tried to correct From: syzbot To: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" 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,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 fry.vger.email 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 (fry.vger.email [0.0.0.0]); Tue, 21 Nov 2023 11:20:07 -0800 (PST) For archival purposes, forwarding an incoming command email to linux-kernel@vger.kernel.org. *** Subject: [PATCH] Tried to correct Author: tintinm2017@gmail.com #syz test: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master Signed-off-by: attreyee-muk --- drivers/hid/usbhid/hid-core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/hid/usbhid/hid-core.c b/drivers/hid/usbhid/hid-core.c index a90ed2ceae84..582ddbef448f 100644 --- a/drivers/hid/usbhid/hid-core.c +++ b/drivers/hid/usbhid/hid-core.c @@ -1021,6 +1021,8 @@ static int usbhid_parse(struct hid_device *hid) (hdesc->bLength - offset) / sizeof(struct hid_class_descriptor)); for (n = 0; n < num_descriptors; n++) + if (n >= ARRAY_SIZE(hdesc->desc)) + break; if (hdesc->desc[n].bDescriptorType == HID_DT_REPORT) rsize = le16_to_cpu(hdesc->desc[n].wDescriptorLength); -- 2.34.1