From nobody Wed Jan 19 17:52:28 2022 X-Original-To: threads@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 7361F1961385 for ; Wed, 19 Jan 2022 17:52:29 +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 4JfCs90lTdz3l6c for ; Wed, 19 Jan 2022 17:52:29 +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 AF06319419 for ; Wed, 19 Jan 2022 17:52:28 +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 20JHqSSN036071 for ; Wed, 19 Jan 2022 17:52:28 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 20JHqSax036070 for threads@FreeBSD.org; Wed, 19 Jan 2022 17:52:28 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: threads@FreeBSD.org Subject: [Bug 261338] [PATCH] kernel panic "bad pte" under heavy CPU load on 12.2 and 12.3 (i386) Date: Wed, 19 Jan 2022 17:52:28 +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: 12.3-RELEASE X-Bugzilla-Keywords: panic, patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: avg@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: threads@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status 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: Threading List-Archive: https://lists.freebsd.org/archives/freebsd-threads List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-threads@freebsd.org X-BeenThere: freebsd-threads@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642614749; 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=Bw/7Saam7hvVWKSwBFKeOcwhw2uAC+oxWOvknSdR06E=; b=iphYV3Vv+lG3hGAd4aqoAUjYvr1J21ZsqiuW540InboqNB7T5CdiOqVjFv4mqclk36dIOY ZoO0Fx52ohuohwR2iDlGYKRkhQkWhlN/0l3+NACE2+sf5AKsqAiYxIjggfvuoDuy7mBgKH +FHG2Xd27UP8en5uzTDNeYMWIkQW5spCSuwus0pJqVfWV1ErdBw7Srtwjw8A+xQ+BQEZ7q GmmJnX0H97qNcnxi3cKi6DPZWDYeVPSnuC/Rw0sh5++RJ2/0sGTvqiszvyqx4HmA90h2vP jc4fvRJMYVFiA9bLKEtK+Z+ayCLjV1ayPA3JxACBLVlXOEuetAbREn+UQPJOfQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1642614749; a=rsa-sha256; cv=none; b=EssG4kjCZW0i0R+0NxZZMzGJm6hx3kvMw56KH6F222HG6vDCvJZwrPQzZJzOHpeU9B1v5u UXriHQTu19lLGA+g39OIwu3GVee/A1xgN6t3WHaT0s+hS9ZK0TKzOoxuIIB8aFzwAknL8m 3d/zdqSkfRNtaQMisVFjMpCH21AW/RVCezHEBfduaNmst9nkGhVMft4L+xWdUXZkyGj7Ye W1WwtvA6TChRMNNBhk68esd/0jjEBzMK1zx0TxRiPomo2U2Y5+xV2UsVNoPsUevzSvPuKa rQP+QBOyN2bi77YxXu+8KtAGjBCn0bwj4Icb9VyYFfa9QET1n/rHsgc/ldwhcg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261338 Andriy Gapon changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |Open --- Comment #4 from Andriy Gapon --- (In reply to Dmitry K. from comment #3) Yes, I think that's the problem. When creating a patch for stable/12 I totally missed the fact that in main = the smp_*_shootdown functions got split into i386 and amd64 variants. The i386 smp_targeted_tlb_shootdown has a paired sched_pin / sched_unpin while the a= md64 smp_targeted_tlb_shootdown has only sched_unpin and expects the current thr= ead to be already pinned. So, I merged the amd64 variant into the shared x86 smp shootdown code of stable/12. That works well with the merged amd64 pmap code, but it broke t= he i386 pmap code. Let me think how to fix the breakage. It seems that maybe it would be sufficient to make the sched_unpin calls in smp_targeted_tlb_shootdown specific to amd64. If I am not mistaken, on i386 smp_targeted_tlb_shootdown is always called with the current thread pinned,= so internal pinning (which got removed by me) and unpinning should be unnecess= ary. --=20 You are receiving this mail because: You are the assignee for the bug.=