From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C4549C54EBD for ; Thu, 12 Jan 2023 15:52:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240234AbjALPwM (ORCPT ); Thu, 12 Jan 2023 10:52:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237584AbjALPvi (ORCPT ); Thu, 12 Jan 2023 10:51:38 -0500 Received: from mail-io1-xd35.google.com (mail-io1-xd35.google.com [IPv6:2607:f8b0:4864:20::d35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C0D852C4A for ; Thu, 12 Jan 2023 07:40:30 -0800 (PST) Received: by mail-io1-xd35.google.com with SMTP id v65so4946824ioe.4 for ; Thu, 12 Jan 2023 07:40:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=WWWhNrT9Ke8XYLb8r5IaUaBZVoV2XiZfmbvzfAwI4iI=; b=MngxITgLNyxn404MzBRbCEydZQMQNE26YYFbOcQHjBoQKLBkKHwvuE2F9SXy21IW/h fLACLURN+6ruZuqgdfFZwtYuI9OjIt1wAYBcAsKevWgM3+v6CEXVDEGqN1MJNldRuvBd ZqFMzx0zww2t3oYm9MN3upHhbqM/L/MXTcAhs= 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:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=WWWhNrT9Ke8XYLb8r5IaUaBZVoV2XiZfmbvzfAwI4iI=; b=iHsEn73G0ytnCdBIWbYAwXXFkUmp3RYKRt8vBj6YZQU8cCUNLxrg22LSA/CfBfpLko 9M7O9y6wwBFgQF7iUFlieH/exEP93Qf2DCl6Ri9RX/YW0UBPs74I+lSLBERwR0Qyb83F P8M6b6YKRVSpuunLDpUk82vsC/mOmBA2xZbn6+MYCwpwCEqUlDtSKIIi3JeBf34xNXn+ UUjkwBsQMyvtQHvL5YHl4E7OM8DFQvh9TkYPsiHGyF5EEmbDhIlLABK9siNIuKkwCzVV Z4CLLvnDmN8cXipM7IuSV9U6nXSbgQshWTsnPTrPjZicMdr6nXPrj6e0Law9vmwU685D FU8w== X-Gm-Message-State: AFqh2ko+EdKfKKkqC24HcwAWh65SYrDA8BST/pBXrtDJkHrtuCUQSVRr 5On9WvV6YwHljQ3lqzunWs/bAw== X-Google-Smtp-Source: AMrXdXtNICG3twcmAi6A90HH0BbzD1t6DeiNY72gWA6aRASJLdYd6Md5XZfl8hHzTQHbQJtgx5J3zQ== X-Received: by 2002:a5e:9408:0:b0:704:69fd:280 with SMTP id q8-20020a5e9408000000b0070469fd0280mr966631ioj.2.1673538028493; Thu, 12 Jan 2023 07:40:28 -0800 (PST) Received: from [192.168.1.128] ([38.15.45.1]) by smtp.gmail.com with ESMTPSA id r10-20020a92d44a000000b0030314a7f039sm4776849ilm.10.2023.01.12.07.40.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 Jan 2023 07:40:27 -0800 (PST) Message-ID: Date: Thu, 12 Jan 2023 08:40:26 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: =?UTF-8?Q?Re=3a_kernel_BUG=c2=a0at_mm/usercopy=2ec_when_using_usbip?= Content-Language: en-US To: =?UTF-8?B?U29zdGjDqG5lIEd1w6lkb24=?= , Valentina Manea , Shuah Khan , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Robin Krahl , Shuah Khan References: <4c9a5640-9ebf-db87-fcb0-b076b615e4e4@linuxfoundation.org> From: Shuah Khan In-Reply-To: <4c9a5640-9ebf-db87-fcb0-b076b615e4e4@linuxfoundation.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org On 1/12/23 08:13, Shuah Khan wrote: > On 1/12/23 01:40, Sosthène Guédon wrote: >> Hi! >> >> I have stumbled upon a bug that is triggered reliably by using usbip. >> >> We are using usbip to test our firmware. usbip attach works, but once `opgpcard-tools` interacts with the firmware through pcscd, a kernel bug happens. >> Then usbip stops working, and `lsusb` as well as other tools interacting with usb devices hang. >> The symptoms are similar to https://bugzilla.kernel.org/show_bug.cgi?id=215487 but the kernel bug is not the same (see attached dmesg logs). >> >> The bug can be reproduced on arch (Linux archlinux 6.1.4-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 07 Jan 2023 15:10:07 +0000 x86_64 GNU/Linux >> ) and debian (Linux nitropc 5.10.0-19-amd64 #1 SMP Debian 5.10.149-2 (2022-10-21) x86_64 GNU/Linux), though the reproduction is not minimal. >> >> To reproduce the bug on Arch Linux, with the packages rust, pcsclite, and openpgp-card-tools installed: >> >> - Compile and run the usbip runner from this PR: https://github.com/Nitrokey/nitrokey-3-firmware/pull/149 (`cd nitrokey-3-firmware/runners/usbip && cargo run --features alpha`) >> - Run `usbip attach -r localhost -b 1-1` >> - Run `pcscd` >> - Run `opgpcard status` >> >> The bug should happen. >> > > Thank you for reporting the problem. I will take a look and > get back to you with possible fix. Will you be able to test > fixes? > Please send me complete dmesg and your kernel config. thanks, -- Shuah