From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from stravinsky.debian.org (stravinsky.debian.org [82.195.75.108]) (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 C9C9930C16F for ; Wed, 12 Aug 2026 10:38:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=82.195.75.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786531128; cv=none; b=jg32OIZu8Z3Dr9q5AuVKUR2SP0OHaMH7wh2rsd5qZKQ6tixtKmGibj0pPI2t5Ee7+cW5o0u6Z1a4EW8Pt0DaxC+1uFl9CqGLP2K6xsir+saqCBd0Pui/NuAQVW+mD4Q6J5IFzM0MFI45BgA5BHf6HhGiQ8GQ4KgtTYc+eKMdWTE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786531128; c=relaxed/simple; bh=GFJPppF4fbIjWCaBGjvk/JQ0AsC0fVseKp2Qr4sN+Ik=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=a+xHk7OdF6jk3i3dRywbvsPvSxPGtOkUwlheWRmbS8OjIHEi223BmepmW1NCkB2oDEKsDITjQOgCSGb7Xp58olmx0Go0LCsmmlOAzBmYQsvUaJya5gkTlDID6BS76p1gUDrYd9aIW53DfbD0k3+bWejbDT91FeZfNlq2WIsCoVg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=debian.org; spf=pass smtp.mailfrom=debian.org; dkim=pass (2048-bit key) header.d=debian.org header.i=@debian.org header.b=t3Y5XHE9; arc=none smtp.client-ip=82.195.75.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=debian.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=debian.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=debian.org header.i=@debian.org header.b="t3Y5XHE9" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; s=smtpauto.stravinsky; h=X-Debian-User:In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=GFJPppF4fbIjWCaBGjvk/JQ0AsC0fVseKp2Qr4sN+Ik=; b=t3Y5XHE92C5mLGD5RfbigeRubL b+Kc4FqL3X3iJnsjyS3DW2sPcWNsHuICor5owmDZ7jPQS04VKyLDbHXtC7yUnggiINH2oo9I8W9GM Z2devRCFSycAONXrOEos0bGL+F0sKWQSCQdeYHZdPT+xlsTXj3ACx+vtCQVFL1HS9AEoBpiQAjcOT RJ7pzpheFikn50CDOaODuO5eyn/x/4siFS5DhxbVuuW9gr/pY2xHyaHRvN5elt54hd6aAipizGP4j BHrp0MnKrZU13EM1eSGHQDWaZrZP14nsIv2z4JuIHb9eyMCVpubDTnK4HVfKKgHGDRQb0um/14pJn cm/hxhEQ==; Received: from authenticated-user by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1wu6LM-004HY7-2k; Wed, 12 Aug 2026 10:37:57 +0000 Date: Wed, 12 Aug 2026 03:37:50 -0700 From: Breno Leitao To: Pedro Falcato Cc: "David Hildenbrand (Arm)" , Andrew Morton , Chris Li , Kairui Song , Kemeng Shi , Nhat Pham , Baoquan He , Barry Song , Youngjun Park , Lorenzo Stoakes , "Liam R. Howlett" , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , Jann Horn , Hugh Dickins , Baolin Wang , Peter Xu , Johannes Weiner , Yosry Ahmed , Chengming Zhou , linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-team@meta.com Subject: Re: [PATCH 1/3] mm, swap: ratelimit bad swap entry reports in get_swap_device() Message-ID: References: <20260810-swap-v1-0-375ef0767206@debian.org> <20260810-swap-v1-1-375ef0767206@debian.org> 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-Debian-User: leitao On Tue, Aug 11, 2026 at 05:48:52PM +0100, Pedro Falcato wrote: > > Couldn't some of the stuff you drop here (different entries) be similarly valuable? > > I think we generally do a terribly lousy job reporting these kinds of > failures. Would be awesome to log this elsewhere, or possibly send > something like a SIGBUS to the faulting process, for instance. That's precisely what the follow-up patch in this series handles. Patch "[PATCH 3/3] mm: fail the fault on a malformed swap entry instead of retrying it" propagates VM_FAULT_SIGBUS all the way up, so the application gets SIGBUS'd instead of retrying (and re-printing this message).