From nobody Tue Feb 22 02:29:34 2022 X-Original-To: freebsd-current@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 5908819D4F3D for ; Tue, 22 Feb 2022 02:29:42 +0000 (UTC) (envelope-from rob.fx907@gmail.com) Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K2jmj3bbhz4XXm for ; Tue, 22 Feb 2022 02:29:41 +0000 (UTC) (envelope-from rob.fx907@gmail.com) Received: by mail-ej1-x62a.google.com with SMTP id d10so38117804eje.10 for ; Mon, 21 Feb 2022 18:29:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fDx5+D+euQs7ZEEm1geemPtvVVLfvVdyG0fGPihB1X0=; b=LMekhwKPl/N7A03f2tDEex3HZBqg5aa07dpA1cqcUbeQYy12gVvP8jLTFkfExbghbD 13C9+epUPktrLrefybwEDWpIusUo7CrL1PlJub50PUVYLgIiqX4FHav858A6usmDjRGO h+zLx+CUjswzzgGYDEwtVjkkonC1hCnlGBRoGWOF0Kq1n4qInGSay1r5gpnXtAW6l7wb CTBoMSbajJ0Ut5ev4v+mu2vkIvPjqLHpmbeklfRKyQkI1DQD6EGSgCzFm8/eZ5MzXY3k HM53IMGdPEbqhmJP1xcNYnK5sHfKThNODKrrFFAsAX6qIw1uDkldIX5caT/9Im9FxwPM TVqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fDx5+D+euQs7ZEEm1geemPtvVVLfvVdyG0fGPihB1X0=; b=gqVeK/9EfrIqSlBODvPC8+FBqoM7z+1cumIHY85vvwtsas3h7XC8ew0OqE9FVL7Cok 1BnLTVnbRe3OoslHQt8dnDEK2v42Aqh1Lnu8HE+N3ydx08pRj388mJIOy2f/q4FnyEOg rGZu6+sub9Hifm/+C2nVOAaRVTBbHd8tmlRHxwfBRuXF+CNNnbA3pFpqPeoJhRSK+nGz XBlL51PVWG9eYLgokGPETmcUoI+np+Proq2AOBxu1K8iiYhoIRFaSsTS/E5fY7eeJavs X4TqpBWVrJX1pgJk7fZsE4cjRg6dLxYRGtcka6YNgwfNFqM/FqIMPiKzTw8ECq95b5G6 Wgcw== X-Gm-Message-State: AOAM533/s5nIcDOB1EbV4TpYigoD93+l7EL1SLbK9Hf/j8yssVaDzfvi dpe1+1IJXGkUidIkuFQ8zahq1KNlkFjtbx9cPWU= X-Google-Smtp-Source: ABdhPJx5VyL3QQ0d+1J6puJFxLApw3mf+whds9zPQSc2BozcuyqcOVoIr1TU+INQxMrNxMYeuMPN6ldFyEHFIaXbc6o= X-Received: by 2002:a17:906:b57:b0:6ce:e31a:524 with SMTP id v23-20020a1709060b5700b006cee31a0524mr17587591ejg.290.1645496980390; Mon, 21 Feb 2022 18:29:40 -0800 (PST) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 References: <6fcc161dd23b4f7ebe7cc789f11c017e@MAIL-HUB.pai.local> <924c13764ce342cf968ef9a93699be9a@MAIL-HUB.pai.local> <719aa03f-6f34-fdf8-1258-c7e5fcf33043@selasky.org> <794fbec71b714f6ea3931b942f17e1ea@MAIL-HUB.pai.local> In-Reply-To: From: Rob Wing Date: Mon, 21 Feb 2022 17:29:34 -0900 Message-ID: Subject: Re: New panic in main-n253273-a52d8d4a6c6: To: Michael Jung Cc: Hans Petter Selasky , freebsd-current Content-Type: multipart/mixed; boundary="000000000000ff4ffc05d8921e36" X-Rspamd-Queue-Id: 4K2jmj3bbhz4XXm X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=LMekhwKP; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of robfx907@gmail.com designates 2a00:1450:4864:20::62a as permitted sender) smtp.mailfrom=robfx907@gmail.com X-Spamd-Result: default: False [-2.90 / 15.00]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; HAS_ATTACHMENT(0.00)[]; MIME_BASE64_TEXT_BOGUS(1.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MIME_BASE64_TEXT(0.10)[]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~,4:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/mixed,multipart/alternative,text/plain,text/x-patch]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::62a:from]; MLMMJ_DEST(0.00)[freebsd-current]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --000000000000ff4ffc05d8921e36 Content-Type: multipart/alternative; boundary="000000000000ff4ffb05d8921e34" --000000000000ff4ffb05d8921e34 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable The previous attached patch should work for testing purposes, but it's incorrect if an error occurs. The fhold() should be below FILEDESC_SUNLOCK(), this patch addresses that. On Mon, Feb 21, 2022 at 5:18 PM Rob Wing wrote: > try the attached patch > > On Mon, Feb 21, 2022 at 5:14 PM Michael Jung < > mikej@paymentallianceintl.com> wrote: > >> >> >> >> >> >> CONFIDENTIALITY NOTE: This message is intended only for the use >> of the individual or entity to whom it is addressed and may >> contain information that is privileged, confidential, and >> exempt from disclosure under applicable law. If the reader >> of this message is not the intended recipient, you are hereby >> notified that any dissemination, distribution or copying >> of this communication is strictly prohibited. If you have >> received this transmission in error, please notify us by >> telephone at (502) 212-4000 or notify us at: PAI, Dept. 99, >> 2101 High Wickham Place, Suite 101, Louisville, KY 40245 >> >> >> >> *From:* Michael Jung >> *Sent:* Monday, February 21, 2022 9:06 PM >> *To:* 'Hans Petter Selasky' ; freebsd-current < >> freebsd-current@freebsd.org> >> *Subject:* RE: New panic in main-n253273-a52d8d4a6c6: >> >> >> >> *From:* Hans Petter Selasky [mailto:hps@selasky.org ] >> *Sent:* Monday, February 21, 2022 8:34 PM >> *To:* Michael Jung ; freebsd-current < >> freebsd-current@freebsd.org> >> *Subject:* Re: New panic in main-n253273-a52d8d4a6c6: >> >> >> >> On 2/22/22 00:42, Michael Jung wrote: >> > Hi: >> > >> > I was trying to remember what I did that was odd when this crash >> occurred then it >> > hit me. You can repeat this panic by doing: >> > >> > # watch -I -W pts/0 >> > >> > Here is another panic that happened write after issuing "watch" for >> comparison. >> > >> > http://mail.mikej.com/core.txt.1 >> > >> > http://mail.mikej.com/info.1 >> > >> > http://mail.mikej.com/vmcore.1 >> > >> >> I also need your kernel and debug kernel to fully debug this. >> >> 1) Do ssh to machine. >> 2) watch -i -W pts/0 (does not panic over here) >> >> Can you explain what step 1 is? An scp ? >> >> Refcount is -1. >> f_count =3D 0xffffffff >> >> f_data =3D 0xfffff800158b0400 >> >> In your KGDB, can you enter: >> >> info 0xffffffff81b052d0 >> >> Does the attached patch make any difference? >> >> --HPS >> >> >> >> >> >> So sorry, yes step one, ssh to machine=E2=80=A6. >> >> >> >> Even open a second console on the computer, no SSH and do =E2=80=9Cwatch= =E2=80=93I -W >> v0=E2=80=9D it panics. >> >> >> >> Example of =E2=80=9Cwatch =E2=80=93I =E2=80=93W v0=E2=80=9D for comparis= on =E2=80=93 kernel/kernel.full have not >> changed since .2 >> >> >> >> http://mail.mikej.com/core.txt.3 >> >> >> >> http://mail.mikej.com/info.3 >> >> >> >> http://mail.mikej.com/vmcore.3 >> >> >> >> >> >> >> >> >> *Disclaimer* >> >> The information contained in this communication from the sender is >> confidential. It is intended solely for use by the recipient and others >> authorized to receive it. If you are not the recipient, you are hereby >> notified that any disclosure, copying, distribution or taking action in >> relation of the contents of this information is strictly prohibited and = may >> be unlawful. >> >> This email has been scanned for viruses and malware, and may have been >> automatically archived by Mimecast, a leader in email security and cyber >> resilience. Mimecast integrates email defenses with brand protection, >> security awareness training, web security, compliance and other essentia= l >> capabilities. Mimecast helps protect large and small organizations from >> malicious activity, human error and technology failure; and to lead the >> movement toward building a more resilient world. To find out more, visit >> our website. >> > --000000000000ff4ffb05d8921e34 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The previous attached patch should work for testing p= urposes, but it's incorrect if an error occurs.

The fhold() should be below FILEDESC_SUNLOCK(), this patch addresses = that.

On Mon, Feb 21, 2022 at 5:18 PM Rob Wing <rob.fx907@gmail.com> wrote:
try the attach= ed patch

On Mon, Feb 21, 2022 at 5:14 PM Michael Jung <mikej@paymentalliancei= ntl.com> wrote:

=C2=A0

=C2=A0

=C2=A0

CONFIDENTIALITY NOTE: This message is intended only for the use
of the individual or entity to whom it is addressed and may
contain information that is privileged, confidential, and
exempt from disclosure under applicable law. If the reader
of this message is not the intended recipient, you are hereby
notified that any dissemination, distribution or copying
of this communication is strictly prohibited. If you have
received this transmission in error, please notify us by
telephone at (502) 212-4000 or notify us at: PAI, Dept. 99,
2101 High Wickham Place, Suite 101, Louisville, KY 40245



From: Michael Jung
Sent: Monday, February 21, 2022 9:06 PM
To: 'Hans Petter Selasky' <hps@selasky.org>; freebsd-current <freebsd-current@f= reebsd.org>
Subject: RE: New panic in main-n253273-a52d8d4a6c6:

=C2=A0

From: Hans Petter Selasky [mailto:hps@selasky.org]
Sent: Monday, February 21, 2022 8:34 PM
To: Michael Jung <mikej@paymentallianceintl.com>; freebsd-current = <freebs= d-current@freebsd.org>
Subject: Re: New panic in main-n253273-a52d8d4a6c6:

=C2=A0

On 2/22/22 00:42, Michael Jung wrote:
> Hi:
>
> I was trying to remember what I did that was odd when this crash occur= red then it
> hit me. You can repeat this panic by doing:
>
> # watch -I -W pts/0
>
> Here is another panic that happened write after issuing "watch&qu= ot; for comparison.
>
> http://mail.mikej.com/core.txt.1
>
> http://mail.mikej.com/info.1
>
> http://mail.mikej.com/vmcore.1
>

I also need your kernel and debug kernel to fully debug this.

1) Do ssh to machine.
2) watch -i -W pts/0 (does not panic over here)

Can you explain what step 1 is? An scp ?

Refcount is -1.
f_count =3D 0xffffffff

f_data =3D 0xfffff800158b0400

In your KGDB, can you enter:

info 0xffffffff81b052d0

Does the attached patch make any difference?

--HPS

=C2=A0

=C2=A0

So sorry, yes step one, ssh to m= achine=E2=80=A6.

=C2=A0

Even open a second console on th= e computer, no SSH and do =E2=80=9Cwatch =E2=80=93I =C2=A0-W v0=E2=80=9D it= panics.

=C2=A0

Example of =E2=80=9Cwatch =E2=80= =93I =E2=80=93W v0=E2=80=9D for comparison =E2=80=93 kernel/kernel.full hav= e not changed since .2

=C2=A0

http://mail.mikej.com/core.txt.3<= u>

=C2=A0

http://mail.mikej.com/info.3

=C2=A0

http://mail.mikej.com/vmcore.3

=C2=A0

=C2=A0

=C2=A0



Disclaimer

The information contained in this communication from th= e sender is confidential. It is intended solely for use by the recipient an= d others authorized to receive it. If you are not the recipient, you are he= reby notified that any disclosure, copying, distribution or taking action i= n relation of the contents of this information is strictly prohibited and m= ay be unlawful.

This email has been scanned for viruses and malware,= and may have been automatically archived by Mimecast, a leader in email se= curity and cyber resilience. Mimecast integrates email defenses with brand = protection, security awareness training, web security, compliance and other= essential capabilities. Mimecast helps protect large and small organizatio= ns from malicious activity, human error and technology failure; and to lead= the movement toward building a more resilient world. To find out more, vis= it our website.

--000000000000ff4ffb05d8921e34-- --000000000000ff4ffc05d8921e36 Content-Type: text/x-patch; charset="US-ASCII"; name="tty.patch" Content-Disposition: attachment; filename="tty.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_kzxiefac0 ZGlmZiAtLWdpdCBhL3N5cy9rZXJuL3R0eS5jIGIvc3lzL2tlcm4vdHR5LmMKaW5kZXggZWJiMzJm Njk4ZTg4Li4yYzYwYTdlNDI1ODAgMTAwNjQ0Ci0tLSBhL3N5cy9rZXJuL3R0eS5jCisrKyBiL3N5 cy9rZXJuL3R0eS5jCkBAIC0yMDg2LDYgKzIwODYsOCBAQCB0dHlob29rX3JlZ2lzdGVyKHN0cnVj dCB0dHkgKipydHAsIHN0cnVjdCBwcm9jICpwLCBpbnQgZmQsIHN0cnVjdCB0dHlob29rICp0aCwK IAlGSUxFREVTQ19TVU5MT0NLKGZkcCk7CiAJaWYgKGVycm9yICE9IDApCiAJCXJldHVybiAoZXJy b3IpOworCWlmICghZmhvbGQoZnApKQorCQlyZXR1cm4gKEVCQURGKTsKIAlpZiAoZnAtPmZfb3Bz ID09ICZiYWRmaWxlb3BzKSB7CiAJCWVycm9yID0gRUJBREY7CiAJCWdvdG8gZG9uZTE7Cg== --000000000000ff4ffc05d8921e36--