Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3992208rwb; Tue, 20 Sep 2022 07:26:59 -0700 (PDT) X-Google-Smtp-Source: AMsMyM424+YSJxwdX0aeB1M5/T0HGjU0pDnao6XX9zVN/BFbSfGSnLQtEBU3IdI3u2fYmL34gR8e X-Received: by 2002:a05:6402:3988:b0:44e:6f08:ddfb with SMTP id fk8-20020a056402398800b0044e6f08ddfbmr20106923edb.89.1663684019313; Tue, 20 Sep 2022 07:26:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663684019; cv=none; d=google.com; s=arc-20160816; b=SdAGIMm+wDgBt1M7qMx8S3sj0n3NmKi17sNNH6JLnCSYPbV7Di7+9MnvjENiumsf4o i01sA19A8mrkH7soNogDlSCYpgPe5PlHemyKxr1wJE7JHiE/K8SKE5vnXptWsCOm/mgn Ss8vBealdkgYlW9ygXJIrEx12ep7nZqeFDjNzELror/hXpyAWC/dKykdCaS3bVNte/HR 4dU9UJGoCY0wDDp6AhYR9yc3QlxSy2LQ7qmt5iftfr8OJb7aqhzucACMDIboZ89uir+7 0QxCBIn1wRr9Sb1yWWWFfWTZUY3Kehfn7F8WIaY+sQukxv1OgU9COFLiDmcPMIw1oUC1 1eHQ== 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=wBzI+FDP/xHbpMc4ZR1RvLoZ+WufA1CKuPKcPQeIWxs=; b=X5oURl7MYfVos/k2HKIIvL5yKQEGSIENO8Gc++j1IKyJQah7q5gQplMMyEqI37sxqW GWxA8dDMaxhS6VukSCMUMO+exq4Mo1ZcpTPaSJtyslrCFZ/zawXfxo9yB82Zr48Bf6uX clk9bOlV+pmslPiOz3Lwy4Y2xV70BPDyItJ9EhyzhcTLQm1HrYpCb70/9kuIuQ9+9chl jAL/X6ktaSfIi7RIir5BcMnV+zXvxrUiGF4JIeToWzZ9T4xoZmklb8/16i7dccjtnRhr uQcHGsULhaMCFNeKuAwEvhplxcpAPXdEIxqUiTFd4eEY8bKtYmZgwNDULEkWt/2jZjY3 C64w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jKP4O2Vs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p21-20020a170906499500b007800ee1b748si1266955eju.953.2022.09.20.07.26.33; Tue, 20 Sep 2022 07:26:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jKP4O2Vs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231482AbiITN4H (ORCPT + 99 others); Tue, 20 Sep 2022 09:56:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231365AbiITNzn (ORCPT ); Tue, 20 Sep 2022 09:55:43 -0400 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EB786374 for ; Tue, 20 Sep 2022 06:54:33 -0700 (PDT) Received: by mail-lj1-x235.google.com with SMTP id g20so1888673ljg.7 for ; Tue, 20 Sep 2022 06:54:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=wBzI+FDP/xHbpMc4ZR1RvLoZ+WufA1CKuPKcPQeIWxs=; b=jKP4O2Vs5dgzrrV3QjJGsS/tq+4AAw9Cn0UMg7Z6+RT5/S8x55GBEmciQyE2xBxHNl cLEOAq+ndnid9UY81L7XfUzwUAOo5jDRyRbeCuYPY4Tm4U3mlu4CWwBBwhg6yjKuY1Jg 9/naHdgqElN1RZGaH9ErYL6Lbtjo/zvZy/0qP6+HwVfM0DbxeNYkgLTWVFrIGPUwFGrI R0bywwdc02ZDYB1rk27nDWXxeczPZ1gBsH9WcfAzC6Ow2y/Kw1wuwAjBfNKDdUDUbFO6 /1vcUU8n1TN/qwbOJ2Tg1l9doC45MY9Axh2lDP5oq2E16JdYboriwb0t9iRscsBIKRCs Z+4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=wBzI+FDP/xHbpMc4ZR1RvLoZ+WufA1CKuPKcPQeIWxs=; b=DS/00dmbTm7rZ3l+Or4f4VpLuw0YA9XWvPc9BI4lzdkg9FyNRTxWQrYqlrDycOZAQ8 DkkjreBKjBkhItvQIa9KVSYWcezrvr8Kyuvu8rO8DvyrwCZvyuaH9SqRorXxbs7wt063 Dp2zhpte5V3nJcV9gyotOPBT70iVlRPbwm9PesaC2Qj/7xIhQZ38wo+wD8yk4GAePAgg 7FFhwZURXJ6LYL4uiDomow+Xt6nicmL0+L4+I5yaA0zOlVXGXTFhVaZDEk4anK41WhTR c4to/qLO3rnky5XKeJVi9lmLLFlXHP5uo6YxiIJtXXwDiZCJq6kSBCDtLn5w5jn1F4O7 PBzQ== X-Gm-Message-State: ACrzQf3bCyhhmk5TPEAczv+hQNzvkrEdw/BNNxT/epf/YQYDyFwDBB/p LYH+AFJowaMyBZpB2TAB972Dlw== X-Received: by 2002:a2e:964b:0:b0:26c:5a42:ed99 with SMTP id z11-20020a2e964b000000b0026c5a42ed99mr1310939ljh.169.1663682071302; Tue, 20 Sep 2022 06:54:31 -0700 (PDT) Received: from [192.168.0.21] (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id u22-20020a05651c131600b0026c4113c150sm8590lja.111.2022.09.20.06.54.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Sep 2022 06:54:30 -0700 (PDT) Message-ID: <18828928-415f-2faa-8069-b4d01fa38fc6@linaro.org> Date: Tue, 20 Sep 2022 15:54:29 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: task hung in port100_send_cmd_sync Content-Language: en-US To: Rondreis , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "linux-nfc@lists.01.org" References: From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18/09/2022 15:22, Rondreis wrote: > Hello, > > When fuzzing the Linux kernel driver v6.0-rc4, the following crash was > triggered. Hi, Thanks for the report. > > HEAD commit: 7e18e42e4b280c85b76967a9106a13ca61c16179 > git tree: upstream > > kernel config: https://pastebin.com/raw/xtrgsXP3 > C reproducer: https://pastebin.com/raw/hjSnLzDh > console output: https://pastebin.com/raw/3ixbVNcR > > Basically, in the c reproducer, we use the gadget module to emulate > attaching a USB device(vendor id: 0x54c, product id: 0x6c1, with the > printer function) and executing some simple sequence of system calls. > To reproduce this crash, we utilize a third-party library to emulate > the attaching process: https://github.com/linux-usb-gadgets/libusbgx. > Just clone this repository, install it, and compile the c > reproducer with ``` gcc crash.c -lusbgx -lconfig -o crash ``` will do > the trick. > > I would appreciate it if you have any idea how to solve this bug. You can try to bisect. Or you can build kernel with lockdep and try to reproduce. > > The crash report is as follows: It's not a crash, but a blocked task, so there might be deadlock, incorrect synchronization or some missing cleanup path. Actually quite a lot could lead to this. Best regards, Krzysztof