From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 265B5CD13D9 for ; Sun, 17 Sep 2023 15:08:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236210AbjIQPHd (ORCPT ); Sun, 17 Sep 2023 11:07:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232880AbjIQPHB (ORCPT ); Sun, 17 Sep 2023 11:07:01 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 642A8B6 for ; Sun, 17 Sep 2023 08:06:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=yg00tVpU+vjQMn/1hNmj20preqlD9DZBFEgxeYCa3yU=; b=t7nd/iCuSHtXZ2FaEsT9s6n1if R/CBvLBcc+fP7J1PgImI7gEnnM5uSPNaCuyCdz0U7I/ku0N1gkxnymnzDtgb1sbe5xXdZMptMDBps ocpz62mb5RcTPQkD7yigBTUZLjvbfsYE5anFNNSQM3Yzs+j4pDQyW+j0ClhLQ7XJ42tnpZRkYkSz3 wNtDCvz31kn6WkwiqY/XNSNFHgbOt2YZ5dJprOQ9+PmPAxeiAwhHQqY/rhyuEWBbbwzSbBYEeZJSr DbkV2D6HK1TL/xA0o6WD+4Nm+sduyjDwbUNtocrOTsdP9jUcf8ub+Ar2Jjxmf/Gq6BnHJg7csTf6O Qcr5TYrQ==; Received: from [2601:1c2:980:9ec0::9fed] by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qhtML-00DksC-1I; Sun, 17 Sep 2023 15:06:53 +0000 Message-ID: Date: Sun, 17 Sep 2023 08:06:51 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: /proc/*/maps broken on nommu Content-Language: en-US To: Max Filippov , LKML , Linux Memory Management List Cc: Matthew Wilcox , Yu Zhao , "Liam R. Howlett" , Vlastimil Babka , Davidlohr Bueso , Andrew Morton References: From: Randy Dunlap In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/17/23 04:38, Max Filippov wrote: > Hello, > > As of v6.5 cat /proc/*/maps produces empty output on nommu xtensa systems. > Bisection points to the commit 0c563f148043 ("proc: remove VMA rbtree > use from nommu"). > It looks like the issue may be not in the m_start (where find_vma(mm, > addr) returns > NULL), but in the nommu version of find_vma itself. I've tried replacing nommu > find_vma implementation with an implementation of the MMU version and it > fixes the /proc/*/maps output. Kind of (it works as expected on one of > my systems, > but consistently locks up on the other). > > Any suggestions of what might be wrong/how to fix it properly? > Hi Max, There is already a proposed patch and some discussion: https://lore.kernel.org/lkml/20230915160055.971059-2-ben.wolsieffer@hefring.com/ -- ~Randy