From nobody Tue Feb 22 18:43:46 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 B246519D1D87 for ; Tue, 22 Feb 2022 18:43:57 +0000 (UTC) (envelope-from rob.fx907@gmail.com) Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) (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 4K37Nr5rY4z3wST for ; Tue, 22 Feb 2022 18:43:56 +0000 (UTC) (envelope-from rob.fx907@gmail.com) Received: by mail-oi1-x235.google.com with SMTP id ay7so15531870oib.8 for ; Tue, 22 Feb 2022 10:43:56 -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=uqMQhz4pZ/kbOVGf+LOJ4VGrjdKDzYdUGaR8eLUg+lU=; b=VEfxUBAJDjVn/upcfpIOiAIiOlE3dcc3qa2MpsHFX9SxAc2pKrkKlXg2LRAL/MoV+V WIcyM3uB6onDOg7pfwSu8/nhtmh6gFITryb3vOGwVCdlmOfgRY5U4b20asHLHppdT1IF EVlFP6JvaJm4t3+NzlCFCSXVrrdnak+fbglf/tsCxbdjp3A5kgdi4PIcpug6N3+8LaRN rw2Y5VDyhXTBgUfsc3Vzr/yCPYsebQMqj+UC8qf3U2OTxYtQfaPVMhSxQHCwf5l1BetS iNz4IatXP8COKxNEzxF/WJJEY+4n1Jc3VuCEaJDP03yvTTsdpQNbhMnhtEYKKY3lrOGe bPLw== 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=uqMQhz4pZ/kbOVGf+LOJ4VGrjdKDzYdUGaR8eLUg+lU=; b=mHYaJa90bk76Nmyzic6iSH26Ssy6Q8NFTF2C3KOthE2SpesUgzNPz+qvaQftiOqmWu cfSCKvaYmoxgDqchRoYEhCgCQ/8yT4QoWykOVnnT/0eF6OQX+O/+Po9W15IGcaVXfvdV rWdkJUGuFXPOrK0pNiBCFST5f63wSBDZ0PEEzdNTtJH4dLPFwFUd6ETpgeH4XzVMfJFJ mgEYuTol3KKu3tZmZL2p4wPMBGDGrUDzhdotaZ3SLVSSfMdon8z8meOPbkOddMmOPmf/ bXsRg/YiuqcQ1t7ijAtDTGi5y/ffL1Ihy5woD45cp4jjE18U0Wx8he6BTGjFabciUZC4 JLUQ== X-Gm-Message-State: AOAM532WzaH/IwQjS8+jtkqF9q4cHC+p5rK/Dv7DJ5O6LYs2pJiK/so3 Nrmkyo5QofQ2A+kin01EWoQo2jIuPDUoqzbXsvJR1WdRs+c= X-Google-Smtp-Source: ABdhPJz5FdYqGJroGQAhEIYz6c5mwAV0T14BGHESbkbVkh1LOCE3aT4thZV2jLSxcbvJQpVHqZXJhVRnwj6loUwWlrY= X-Received: by 2002:a05:6808:1794:b0:2d4:81d7:23f8 with SMTP id bg20-20020a056808179400b002d481d723f8mr2693424oib.9.1645555434569; Tue, 22 Feb 2022 10:43:54 -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> <903498700a1c4b32acb8fe283e746189@MAIL-HUB.pai.local> In-Reply-To: From: Rob Wing Date: Tue, 22 Feb 2022 09:43:46 -0900 Message-ID: Subject: Re: New panic in main-n253273-a52d8d4a6c6: To: Michael Jung Cc: Hans Petter Selasky , freebsd-current Content-Type: multipart/alternative; boundary="00000000000022c2b205d89fbb2b" X-Rspamd-Queue-Id: 4K37Nr5rY4z3wST X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=VEfxUBAJ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of robfx907@gmail.com designates 2607:f8b0:4864:20::235 as permitted sender) smtp.mailfrom=robfx907@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; 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:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/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/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::235:from]; MLMMJ_DEST(0.00)[freebsd-current]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --00000000000022c2b205d89fbb2b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hey Mike, Should be fixed in commit 0a2f498234023008d9a3b13ad7fc8fd81d384bab Thanks for the report -Rob On Mon, Feb 21, 2022 at 7:48 PM Rob Wing wrote: > Think that's it...thanks for testing for the patch. > > I opened up https://reviews.freebsd.org/D34335 for review. > > -Rob > > On Mon, Feb 21, 2022 at 6:05 PM Michael Jung < > mikej@paymentallianceintl.com> wrote: > >> Rob: >> >> >> >> I did not remove Hans earlier patch, but your =E2=80=9Clatest=E2=80=9D p= atch applied and >> compiled with no errors. >> >> >> >> I can now watch and control a TTY (v0) or a SSH session (pts/1) without >> crashing. >> >> >> >> Anything else you would like me to try? >> >> >> >> --mikej >> >> >> >> >> >> *From:* Rob Wing [mailto:rob.fx907@gmail.com] >> *Sent:* Monday, February 21, 2022 9:30 PM >> *To:* Michael Jung >> *Cc:* Hans Petter Selasky ; freebsd-current < >> freebsd-current@freebsd.org> >> *Subject:* Re: New panic in main-n253273-a52d8d4a6c6: >> >> >> >> 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 tha= t. >> >> >> >> 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. >> >> >> >> *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. >> > --00000000000022c2b205d89fbb2b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hey Mike,

Should be fixed in= commit 0a2f498234023008d9a3b13ad7fc8fd81d384bab

Thanks for the report

-Rob<= br>

On Mon, Feb 21, 2022 at 7:48 PM Rob Wing <rob.fx907@gmail.com> wrote:
Think that's= it...thanks for testing for the patch.

I open= ed up http= s://reviews.freebsd.org/D34335 for review.

-Rob

On Mon, Feb 21, 2022 at 6:05 PM Michael Jung <mikej@paymentallia= nceintl.com> wrote:

Rob:

=C2=A0

I did not remove Hans earlier pa= tch, but your =E2=80=9Clatest=E2=80=9D patch applied and compiled with no e= rrors.

=C2=A0

I can now watch and control a TT= Y (v0) or a SSH session (pts/1) without crashing.

=C2=A0

Anything else you would like me = to try?

=C2=A0

--mikej

=C2=A0

=C2=A0

From: Rob Wing [mailto:rob.fx907@gmail.com]
Sent: Monday, February 21, 2022 9:30 PM
To: Michael Jung <mikej@paymentallianceintl.com>
Cc: Hans Petter Selasky <hps@selasky.org>; freebsd-current <freebsd-current@freebsd.org= >
Subject: Re: New panic in main-n253273-a52d8d4a6c6:

=C2=A0

The previous attached patch should work for testing = purposes, but it's incorrect if an error occurs.

=C2=A0

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

=C2=A0

On Mon, Feb 21, 2022 at 5:18 PM Rob Wing <rob.fx907@gmail.com&g= t; wrote:

try the attached patch

=C2=A0

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

=C2=A0

=C2=A0

= =C2=A0

CONFIDENTIALITY NOTE: T= his 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

=C2=A0

Disclaimer<= /u>

The information contained in this communication fro= m the sender is confidential. It is intended solely for use by the recipien= t and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distr= ibution 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 auto= matically archived by Mimecast, a leader in email security and cyber resili= ence. Mimecast integrates email defenses with brand protection, security aw= areness training, web security, compliance and other essential 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.



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.

--00000000000022c2b205d89fbb2b--