From nobody Thu Dec 12 01:05:55 2024 X-Original-To: usb@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 4Y7vRW40d9z5glH4 for ; Thu, 12 Dec 2024 01:05:59 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y7vRW2QxLz4MTQ for ; Thu, 12 Dec 2024 01:05:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733965559; 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=1H2KZQ53o9EY8rUNpSCy7cACalKCHiu5pTzBF27qtlc=; b=UVbDMAIvOb+AHdke+tAE+ipf/oV43P86bxu90IA7zhOKYwqOp28GOlIDbcC3AhB5Za5XY3 5DCgDiHtDaxjxqtHOZ2FVdHZpNiPwjrDYVctKXSihJXw6LvTWHZMNz2K6d0Pe1klaexSaE rrZeO4XTEhQewGc6tLhUuMnOeuCoMv5aN6Gh+bLSbFbjQboFQz5WkdJhvJVIOW0i50AaWx TMa1BxcNqd5KIijBRTHqy4DJqvIO4HbL4cjP3usd1rUVFboWLAd+3PtvTlgrCYmhNheu37 1OtUdUVhNz6+To0wTz+m2NWG/2nB+RzvyU4Sxe3CBE3NkyE8Y4IdG/YeTZzHsA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733965559; a=rsa-sha256; cv=none; b=AhEI1RHlXikzdJSdP3BexgK3AVTjpewDEE42ChpAzqeGNpV/IVPSd2Xd4mavF16FX+gUCN CaZCCP6j2YIE3ovwxd02kYVvFQfoTl4ZWMpY7V+OCVlKE/a1jgCBqmTQNIvfj1gCUzXhT1 dOpPngAifPuOyOk+1Yt+RSavsL0FbtF1rm6sRMuZtBcaIEXeFGzvzCfLXXu+Ncf4pDu4wm HZpM78ztk4YlY0lhPOyYYowFnCz2n2W7OevcoRAMwy8tjPGK4mPUylDILYhA5GXVJ90nPc xziTDfbiKVEUZFny6BFnZZigeLGUeMZeB2RzsfgiMBl2XFpBEWMFWzuX4wZqtA== 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 4Y7vRW21bjzXNK for ; Thu, 12 Dec 2024 01:05:59 +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 4BC15xp8083830 for ; Thu, 12 Dec 2024 01:05:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4BC15x9Z083829 for usb@FreeBSD.org; Thu, 12 Dec 2024 01:05:59 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: usb@FreeBSD.org Subject: [Bug 263783] USB MBIM: Support for LTE/4G USB modems (MBIM) Date: Thu, 12 Dec 2024 01:05:55 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: feature, needs-qa, vendor X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: khorben@defora.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback- 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: FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-usb List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-usb@freebsd.org Sender: owner-freebsd-usb@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263783 --- Comment #47 from Pierre Pronchery --- (In reply to mike from comment #46) Thanks for testing! It is progress indeed. For the moment I do not see what can cause the panic (maybe related to VNET again?) but I will let you know as soon as I figure anything out on my side. In the meantime you can try to add this in the code: static int umb_add_inet_config { [...] mtx_unlock(&sc->sc_mutex); +CURVNET_SET_QUIET(vnet0); rv =3D in_control(NULL, SIOCAIFADDR, (caddr_t)&ifra, ifp, curthread); +CURVNET_RESTORE(); mtx_lock(&sc->sc_mutex); [...] } If this solves the problem, I suspect there will be another panic when the = link goes up and down; basically for the other two calls of in_control(). The sa= me procedure will apply. Let me know if you would like me to provide a tentative patch instead. HTH, -- khorben --=20 You are receiving this mail because: You are the assignee for the bug.=