Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2101529lqb; Mon, 27 May 2024 07:57:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV2O7WzzSVMlMl2e/AmHPZJJkf8eCsObJ5/ZKNXe5oEWlAiGwfJVSwQggDr4FeHvabjxbeUNl9ejWHhqqUP8Qim0Qoh5rdUQfP4HFl71w== X-Google-Smtp-Source: AGHT+IHlSjDK8fra9yDNZt+4JoRjwGH6kR33pC1RCsmt1Fw0tRsziNROwar7ZwlYwRj37gnHB+8L X-Received: by 2002:a05:620a:190f:b0:790:72ab:251d with SMTP id af79cd13be357-794a0934d44mr2186012085a.12.1716821853756; Mon, 27 May 2024 07:57:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716821853; cv=pass; d=google.com; s=arc-20160816; b=L2pIRy0Q+arV5K1iV5uj7uGr2EU3kVZMrGrkFyZq49ySHxDaru5EGk/U5CWCKFPUVR 0A0BPnEckptY0h8LsKAWwV/rmGCpfaTS/BuKFWMlj5cqH0AfEPalBa5aKDGODGx3Meyn hXDrqpeqK2dFZggekPNTesFeVDo8Q1L4b/0OAFi6/yiPg1eAPJgzAuZuashOwZmmkfsD d5X7OlcbaIw62OQqMajZc5I3+zcNuE0WZaDStPRHFKPBorzE3PGjytQkp+CEMME4Yel8 ZP7Ed6WozWDtXWV36WLjaJ3Dkhs+cMjNp1UUse/wl2ANMqkUbLAhEA3sKZ+MQdWD7+p3 VaQg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=C4ig7pnNrD9KcVWPBjfpkf9cRRDu3PvbceAHNo/SBOI=; fh=9Lz0HXjyrBRD6/a0Ugy+aXfYpkOXM2A+4QBY6b6I8Xk=; b=dPAaxF70N9BjD8HLRq7EpBfSz2sk2o1SwlTRXpwgDofuUU4alDNRRIf9X6V72a9UUR 5YksRycDQVFAOenPHg7ebcULrkQGLWcdjH0JhAYtTAAHj+z3g4zGG7r2QZU5WVuXHIT/ BPQnYQQ4d6o0Q31CsIvffY/gE97kHJf3YooTl85xuADdhR5JDifKMGu/usxy8l8o6dBh S6SHE5nQ1iDHn1SuzTRzZ0RfBaGsVgrRa2Oqoig4ATXfgNLBpworvBKXDwlQq9A3B+yf 1UCDYzfx3rHFgG7pIcGbzIrH7Ct2ekbezgBLTBFgObxmvWU3pg1vjOz+VCJnh14Z0KUt 15sw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=NPwvttZ8; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-190473-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190473-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-794abd50ef3si859515985a.625.2024.05.27.07.57.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 07:57:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-190473-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=NPwvttZ8; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-190473-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190473-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 18D601C2164E for ; Mon, 27 May 2024 11:20:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D325E13C3F3; Mon, 27 May 2024 11:20:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="NPwvttZ8" Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 A810750263; Mon, 27 May 2024 11:20:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716808828; cv=none; b=ZH1vsdAEkn+GuITigPMUe8RqwS7q8/Mj/0Db4WXvsX3rCA0Qd4BRPX0HvCvkSZaE+qxX00+5OpAMajQnBsgFQ4WIurJk36Yqw998yM/WyY0u5dKIS4JLgxwubLkM+zAZiB7eyvb7d0A6EW1Ojlp/qvVJ+JKL109mhYFQUHpMmMk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716808828; c=relaxed/simple; bh=C4ig7pnNrD9KcVWPBjfpkf9cRRDu3PvbceAHNo/SBOI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hWzuUyJvIIIA5n17S1nG2QQJFi3JSOXxS/MJsim5VvZJw1Jj/74Ex3edZXohI0kWjy5v5r8PzcJwauzJc4tsiBzifgvPZWvLkfRTYdTY3wkGysBOMje74PdzztpmVwSRPJTDyQyCeGrPJHcNtcYdNPUT3ZINQW5COth3Z6MDaGw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=NPwvttZ8; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=C4ig7pnNrD9KcVWPBjfpkf9cRRDu3PvbceAHNo/SBOI=; b=NPwvttZ8eDpxEUbhRJDhlBIIBj V0yGbg0E4vxxLEbKCrQIeZKct0O9VJSECzafm7cOIsXdmiFvVuAy6+gGGwxLqbXpfZ+XMLgJSl7Xh xN2klJWVa2G9F7khhGESraR+33z9l2hSfSPDvv4yqJzsF8oEPOyFowQ2QJW/bk9nufw5vGkFIxtdP 0aEctTtYreiUqTv7lWDBIrgdoNfLxsmNcYi+obl7Q8Z6YMOtY6z3FgJ3YuV9jRP6pz9K95BgZi6On eYdoHr+QAaNweRPrx3j0IDHLQEBnDA1eIHkIJN6V5AJYkxAhynxLXHP+Pp9eX5xGNV1UEC8dGpkH3 Ya7DCiig==; Received: from hch by bombadil.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1sBYOu-0000000Egcm-1G5Q; Mon, 27 May 2024 11:20:24 +0000 Date: Mon, 27 May 2024 04:20:24 -0700 From: Christoph Hellwig To: "Sukrit.Bhatnagar@sony.com" Cc: Pavel Machek , "Rafael J. Wysocki" , Christian Brauner , "Darrick J. Wong" , Andrew Morton , "linux-xfs@vger.kernel.org" , "linux-pm@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" Subject: Re: [PATCH 0/2] Improve dmesg output for swapfile+hibernation Message-ID: References: <20240522074658.2420468-1-Sukrit.Bhatnagar@sony.com> 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-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Mon, May 27, 2024 at 11:06:11AM +0000, Sukrit.Bhatnagar@sony.com wrote: > We can pass the starting physical block offset of a swapfile into > /sys/power/resume_offset, and hibernate can directly read/write > into it using the swap extents information created by iomap during > swapon. On resume, the kernel would read this offset value from > the commandline parameters, and then access the swapfile. Reading a physical address from userspace is not a proper interface. What is this code even trying to do with it?