Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp486768lqs; Thu, 13 Jun 2024 17:04:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVsuOI0ibvS0rsxcUpjos2HDJe+uYqU2V/0KirqR/j+PQsjrfe8k08wYjgfl0qcvM5nl9Gtybozc6Sz5hPlJJ0x1zBluUntkKTI+0sDbw== X-Google-Smtp-Source: AGHT+IHPSKRYkRXv/8vaQqvYUIrU5ADQZ+5GCou2RiYEnivn8Wyd78/ThRGBfYUkNxGK7WS22nHG X-Received: by 2002:a05:6122:1796:b0:4ec:f9ad:d21a with SMTP id 71dfb90a1353d-4ee3fa4e34amr1482110e0c.10.1718323440425; Thu, 13 Jun 2024 17:04:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718323440; cv=pass; d=google.com; s=arc-20160816; b=VG6JU/H2Svix9Bt7GpIu7ItmgKoDlwj1rKyUj1zeKpWQcZj0VnGQNKiDO1WyYSIec3 lVGBjPrvBPtWoDJjtxkrASj8xOOijM1XBnJt5oomKR2wuqYIYQgl/qdra/zyZN/glCvA 7deDK0uStOMEsQ4V9fwTJ/u1yAa5xfLQb4xie6w6+nJS0FnPGvxOurVvhdFuCzthnjbh vjyE1hHWZ+dZYrwswWZChiXqYkutl8yRo0wDJy35yrGovghiOyl0F1fR02NILuKgthaA Zn7JEFvmEqJLTvUKIyRtfSGZS7x3IsmkhoVXQx6UWA2nrBq+l94eV2GMKgMmzDwkLBLD 4chg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=41lCm9fpoxWvRZ3+xwOINRnvA271DEtbuFeVAhEKDqQ=; fh=u3ZlzoH8xwOb17d2/oX6Vb87DIogxnd6WQ/NaXgX458=; b=rm5Rl2rCxpZM1rnLljGogl64UO0vzU0uWgxLW6qoL52cx0ha1fN4IZaodRGNwCe15M 1yd+EUHbJ4iA0ALwbKYlya40VVDbUA7VxOrewyQxVA2+ucldkVSjBTdn8UA9JqiXxIPN PCILQBVMZVVQYIWkIsqw9pcVYtrme3Xq5yngEzWNoNgQhKEEB+sDWsws2xmNfC312FTv IDeKwS2bs6xMKTAsNCCDKn58LypGr5KZmxxp1G+UYNqupVU0ZQMtwnYUTQg7YaKoYKZs 0+2ohI8W/IIhVS24wxMGyg3vUElN9lyEia29NqfdW/HLdypOeWpDzhiB0NI9Y4qjwcKO jNTA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=1BKppVSF; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-214135-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214135-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 71dfb90a1353d-4ed3f1f9ae6si561982e0c.38.2024.06.13.17.04.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 17:04:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214135-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=1BKppVSF; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-214135-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214135-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 238601C210C6 for ; Fri, 14 Jun 2024 00:04:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EBA1365C; Fri, 14 Jun 2024 00:03:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="1BKppVSF" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E381736C; Fri, 14 Jun 2024 00:03:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718323433; cv=none; b=FzV6/nWYL8u4nqY+bBR8ilX+6s0vFa7lL50kq9zzSZg8qGuVoUMbigjLlMHjQ/EPE9J56TrGHa0i+dRoisGyfU+0yJy1HflXOTs5o0g9egek2NUWT/tCAMXtEILd9yGSsfYB7dUWnBy9KTz5gMVjiRE0HCBUInBq/Iz4OIt5Pxw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718323433; c=relaxed/simple; bh=IDZppd8I11DRt960/387Nib64RFk/NqQUrG6Tp8DmJw=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=R+s0bX4ughrLBggy09iAp1mWdoEsD2VYAJpisCI1LAj4zMqI1/EmrxP31zUFzsL5MB2J3r+TGUbfA9SSEu81+64nJL5Rtlo711wIKwdzucWGoZdubjscYW4VF0/P7VoxVdmOFrMeI0qhQBB0fdCqCMOBMhB91GtGUkewJgglwOk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=1BKppVSF; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B732C2BBFC; Fri, 14 Jun 2024 00:03:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1718323432; bh=IDZppd8I11DRt960/387Nib64RFk/NqQUrG6Tp8DmJw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=1BKppVSF5Cjfv7fktHuzeWdqy0qtO34XKNrdqM213LZbVXpoqDGR17NRdioYl/URO HmRRakRJMr1o7GNe72H1ZUQwyFYEUYoZxx018+7BGLSoquoVfRuHrnh3i7nWS1i7ZM ou5BFvQHXTUYPuqubOj+2lH2trHdpXjcl1b7HrR8= Date: Thu, 13 Jun 2024 17:03:51 -0700 From: Andrew Morton To: Bert Karwatzki Cc: "Liam R. Howlett" , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-next@vger.kernel.org Subject: Re: commit 1c29a32ce65f4cd0f1c causes Bad rss-counter state and firefox-esr crash in linux-next-20240613 Message-Id: <20240613170351.cc3e7ccfa1bb198b57f31352@linux-foundation.org> In-Reply-To: References: X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Fri, 14 Jun 2024 01:40:54 +0200 Bert Karwatzki wrote: > Since linux-next-20240613 firefox-esr crashes after several minutes of browsing > giving the following error messages in dmesg: > [ T2343] BUG: Bad rss-counter state mm:00000000babe0c39 type:MM_ANONPAGES val:86 > [ T4063] show_signal_msg: 16 callbacks suppressed > [ T4063] Isolated Web Co[4063]: segfault at 396d1686c000 ip 0000396d1686c000 sp > 00007ffd767b30a8 error 14 likely on CPU 7 (core 3, socket 0) > [ T4063] Code: Unable to access opcode bytes at 0x396d1686bfd6. > [ T4211] BUG: Bad rss-counter state mm:00000000cd9fc541 type:MM_ANONPAGES > val:817 > [ T3798] BUG: Bad rss-counter state mm:00000000432d87c2 type:MM_ANONPAGES > val:181 > [ T5548] BUG: Bad rss-counter state mm:00000000034aa27a type:MM_ANONPAGES > val:242 > [ T3823] BUG: Bad rss-counter state mm:0000000099734197 type:MM_ANONPAGES > val:137 > [ T1] BUG: Bad rss-counter state mm:000000005e5e2f2f type:MM_ANONPAGES val:28 Let's hope Linus doesn't read this. Why are we nuking the entire planet just because some counter went wonky? > (these are the error messages of several crashes and the error seems to affect > other processes, too (T1)) > > The crash can be provoked to appear in ~1min by opening large numbers of tabs in > firefox-esr (by holding pressing ctrl+t for some time). With this I bisected the > error to commit "1c29a32ce65f mm/mmap: use split munmap calls for MAP_FIXED" and > reverting this commit in linux-next-20240613 fixes the issue for me. Thanks, that must have taken a lot of time.