From nobody Wed May 25 08:30:36 2022 X-Original-To: gnome@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id D371D1B47D2F for ; Wed, 25 May 2022 08:30:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4L7PQj4mNWz3v32 for ; Wed, 25 May 2022 08:30:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8434615E18 for ; Wed, 25 May 2022 08:30:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 24P8UbGR041906 for ; Wed, 25 May 2022 08:30:37 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 24P8Ubpn041905 for gnome@FreeBSD.org; Wed, 25 May 2022 08:30:37 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: gnome@FreeBSD.org Subject: [Bug 194727] uaudio device gets disconnected, and hangs usb until everything using /dev/mixer* is closed Date: Wed, 25 May 2022 08:30:36 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: hselasky@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: GNOME for FreeBSD -- porting and maintaining List-Archive: https://lists.freebsd.org/archives/freebsd-gnome List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-gnome@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653467437; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4VkuOSLOfy3E7c1zMGYVz1ItDLG/Ee5LMKFP2lsMmUA=; b=WpYuX31rPHuO5KsbxtuqfcRFuWo+GszbMAKXvVRVsUAL/+U+gr8TSE6SVvKc+EYMQ7YuSM quLtM3Ng+umXGFxW3Ju5RdW6HXWqSHKpqTHeo9J6Dc1ISBLR7YXLDke2mnrOuao4exrbHl xrPnYNiPx1pPws15Ozyk0W11khBkum2KUAqXxemekZxiYKu3UU3Xish6OZRj6TfjsGwD1j u3Q2dGhbb0IdUA+B7fayz3oda1n0H2noGQMllEIfDogrtWjdTUCFhIp/9A5hiSd1irRXHh mIThhz42I30YFORytJ+vjjbetgeYRrvPBNzWnDoBUhtq5wQQsfNm2Drc7b4xNg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1653467437; a=rsa-sha256; cv=none; b=ntVSpTng+MVCS0Dl1TZ4XESLBBk0DyZGxyyDc+IgzEnctckcsxWhdfIwsmTZ5/veMzAGXY +JdvghFljuiRO/bGJGT2wCVtHqFeRgfdg3sK2OD1xjQHNq+5CKDgzD5a4ipMEEi2OVDN31 npBlXnSd61MSTE3qzBttnmkx/bu/2zXVghwjWmtOhIjvDoqNJeHEmpTAyJN+bPcoA1SGTm cQv/xC0zHPEaw5x9W3Pr0r3uvmArbC36BIEqpjH01ReWlqOGW8iY/gC4fgNEImnaNWp9cN vzEeiczAiXX8kq5nsqEv7bdvPnuNljsf+efSFbXe4q28RjeX8opGed2/WFW2Hw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D194727 --- Comment #71 from Hans Petter Selasky --- > If kernel would kill such file descriptors ... Only applications can fully kill file descriptors! It is not possible for t= he kernel to kill file descriptors in a non-blocking fashion. > I do not care pulse or any other apps, my issue that USB stack is unusabl= e after usb sound adapter disconnected without all apps closes fd. This is the expected behaviour. Remember that the OSS support in pulseaudio= was written when detachable audio devices didn't yet exist. So how can you expe= ct it to work accordingly? I'm saying again, the problem is not the kernel, but in user-space. The ker= nel cannot kill file descriptors like you think, no matter what. It's always the applications responsibility to clean up that as long as it is running, but = the kernel can probably kill misbehaving applications after a while. --HPS --=20 You are receiving this mail because: You are on the CC list for the bug.=