From owner-freebsd-current@freebsd.org Tue Aug 27 05:14:37 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 56F57CA16A for ; Tue, 27 Aug 2019 05:14:37 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qk1-x734.google.com (mail-qk1-x734.google.com [IPv6:2607:f8b0:4864:20::734]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46HcW03GZQz4P7b for ; Tue, 27 Aug 2019 05:14:36 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qk1-x734.google.com with SMTP id m10so16050402qkk.1 for ; Mon, 26 Aug 2019 22:14:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SSKFbhgzQHifRSI54QzVRxQ3lY+rFNG8JzMx2XmNcks=; b=n+lJojg9dCk4aO/PGC2lGyZjimVOfFfUy4BO7sM6zOMve4n3Sf5dh/sSCZg4AHIGLI jMNQsbcu4cQbyVCHt5NL6lu3XYIxVRfB2HrcH4SBBgKtZ28GQQXkja63BB9TZKmjZYhI TOr3WqnRKL7rpPtbCum4SzslqSmUaSAbB/Kz8bBXMfJtmus/YJds4snaKwDW/96pAYQ6 uEH+6y5K5tgIn1IgHKANLSb2Dj4AEemSks9U8VS1xh2/uKnOr5m8fbPVxrCfNCbeLg59 Qa7KLLFERPPUCCOgvuMaN7CdfvShkIOdJvQ2+m6Z73+WU2D4Qw+EZxY+nzalstnXwuiz 4qig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SSKFbhgzQHifRSI54QzVRxQ3lY+rFNG8JzMx2XmNcks=; b=YZ5J1TvoF6vS95+LY+23ujwTZuD3ZaFp0NiZiQSDPq5cJEE3ZCtHh/9EVNS9mDpf/b +5+Z43ykGHY5N9Ofofyotfs5G8t3VLqim1ZdQaVTOgQJZXhVwdnJOLdfdtXwGHBBtboZ rHbIs29WDSFx8o8LGHt/3RCOCn8/tfsPU2tOwMvJZWd1Vkrv2WXntuGZCTLZC1YbrW1t 3v4zSMNSJ7ePhLxBezovOpirGrnmXYe1wf1JTUs1pjRsdNYnQYyYu5lYx92Qc1gyb8PZ XQdw+nTJblpJUjFQ8usAdd1y9MRMAbj2nGfuLQdQfdNnhfGWohPHA/oqkvF6MtM0lfc7 imTw== X-Gm-Message-State: APjAAAX8RELA/DWj7dVrSukL5qlx+m1VddVFTUxIjfCxpww388Cbm/Vp dFqi6GwxZ6teu3NIUXLwfJKyTS7mLS2NGj3KJTlQ3w== X-Google-Smtp-Source: APXvYqz1OV8YDS7qNrT0rFlHjNkb33xJew3p4HVj6yLVXR+Sw/SQ5NumpLvsbn7WLH1mZNN9x6iKSgGrnDyc4q33KsU= X-Received: by 2002:a37:4b03:: with SMTP id y3mr20268210qka.215.1566882874900; Mon, 26 Aug 2019 22:14:34 -0700 (PDT) MIME-Version: 1.0 References: <47509401.1440476.1566796167857.ref@mail.yahoo.com> <00E772F0-7231-44C4-B314-26730CC7DF21@gmail.com> <2353856.SOzlSKDGKe@archlaptop> In-Reply-To: <2353856.SOzlSKDGKe@archlaptop> From: Warner Losh Date: Mon, 26 Aug 2019 23:14:23 -0600 Message-ID: Subject: Re: Kernel-Crash when working with ubt0 To: "Lizbeth Mutterhunt, Ph.D." Cc: maksim yevmenkin , Hans Petter Selasky , "freebsd-current@freebsd.org" Content-Type: multipart/mixed; boundary="00000000000029fb050591125922" X-Rspamd-Queue-Id: 46HcW03GZQz4P7b X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=n+lJojg9; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::734) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-5.83 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; HAS_ATTACHMENT(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; MIME_BASE64_TEXT(0.10)[]; NEURAL_HAM_SHORT(-1.00)[-0.996,0]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; FREEMAIL_TO(0.00)[yahoo.com]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~,4:~]; IP_SCORE(-2.93)[ip: (-9.42), ipnet: 2607:f8b0::/32(-2.86), asn: 15169(-2.33), country: US(-0.05)]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; MIME_GOOD(-0.10)[multipart/mixed,multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[4.3.7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; FREEMAIL_CC(0.00)[gmail.com] X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Aug 2019 05:14:37 -0000 --00000000000029fb050591125922 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Aug 26, 2019 at 6:13 PM Lizbeth Mutterhunt, Ph.D. < mutterhunt_gesta@yahoo.com> wrote: > On Monday, 26 August 2019 23:35:25 CEST maksim yevmenkin wrote: > > > > On Aug 26, 2019, at 9:14 AM, Warner Losh wrote: > > > > > > > > Is it from read_connection_list? If so I have a 'patch' that I'm usin= g > but > > > > haven't committed because it's just too gross: drop the lock before t= he > > > > copyout and pick it up again after... > > > > > > Hmm... interesting.... > > > > > > I only took a brief look at it. I suppose I can ensure user space > address is > > > wired and then copyout() can be called with mutex held > > > > > > It=E2=80=99s odd that I=E2=80=99ve never seen this before. I=E2=80=99m = traveling at the moment > will > > > take a closer look this later this week > > > > > > Thanks > > > Max > > > > Sorry for late reply, suffering on a "VPN-Jetlag". > > > > Here's the promised vmcore.o(last) on > pastepin. It's not a "mini"-dump at all but a huge skirt up to the heals > :-) as it has 360M of text and the editor loads about ten minutes on > grandmother's laptop with her 70 years after 36 hours of being online. Th= e > options are with DEBUG=3D-g and VERBOSE set in the config. > > > > With the ubt1, a 2070X stack by Asus it's probably the kernel driver I'd > have to parse into the kernel as here at linux a quarrel about it is for > years systematically delaunching "bills driver"; you get the patch as a > .zip file on Arch, not as a .deb or .tar.gz or whatever and it must be > compiled by hand; after that you'd to reboot and install the A2DP-fix and > than you can pray (where ever you want to and think it might help you) wi= th > the initial pulseaudio-connect at boottime (sometimes it just doesn't > recognize the adapter) - so as a LiLo-substitute I prefer EFI-Clover not > the GRUB-stuff that doesn't work at all for BSD for many, many times) and= I > really don't know how many hours I spent with "sudo bluetoothctl" and on > kernel builts for this 'Ubitek Magic Box'. > > > > Hope someone can think it over, I know it's old hardware but she'd (the > laptop) to to spend 50 mankind-years in bills slavery when I got her > finally - probably one of the SALVAGED - messages at fsck -y in single mo= de > :-) > > > > So take care of it, it's not the way I normally act to sent guys boxing > about and for the box but much more than beeing dead can't happen, can it= ? > - This happened to my cat "Rambo" who just flew away from me and went > straight away under a car - buhuhuhu.... so far for the revenge thoughts, > > > > 'svn up' is good at this, subversion is much better than git --diff, whic= h > really doens't work at all here. > > > Here's the patches that I'm running with. I also have to restart bthidd after manually connecting my keyboard for reasons i've not had time to dig into. These patches aren't quite right, since dropping the lock to copy the data out that the lock seems to be protecting can't be 'right', it just satisfies the invariant that you can't hold a non-sleep-able lock around copyout. Warner --00000000000029fb050591125922 Content-Type: text/x-patch; charset="US-ASCII"; name="bt.diff" Content-Disposition: attachment; filename="bt.diff" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_jztdjkts0 Y29tbWl0IDEzNTJlYmFkZDI2NDFlOWE3YzllYjNiZDc2NDgxYTk1MDhhOGE4ZmMKQXV0aG9yOiBX YXJuZXIgTG9zaCA8aW1wQGJzZGltcC5jb20+CkRhdGU6ICAgU2F0IEF1ZyAyNCAxMToyNTowMCAy MDE5IC0wNjAwCgogICAgRHJvcCBsb2NrcyBhcm91bmQgY29weW91dC4gVGhpcyBpcyBsaWtlbHkg bGVzcyBzYWZlIHRoYW4gaXQgc291bmRzLgoKZGlmZiAtLWdpdCBhL3N5cy9uZXRncmFwaC9ibHVl dG9vdGgvc29ja2V0L25nX2J0c29ja2V0X2hjaV9yYXcuYyBiL3N5cy9uZXRncmFwaC9ibHVldG9v dGgvc29ja2V0L25nX2J0c29ja2V0X2hjaV9yYXcuYwppbmRleCA5NTIzZDg4YWY2My4uZjEzNDFi NDczO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