Message ID | 20241204180224.31069-1-ryncsn@gmail.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 36D2EE7716D for <linux-mm@archiver.kernel.org>; Wed, 4 Dec 2024 18:02:36 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7FFD06B0082; Wed, 4 Dec 2024 13:02:35 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7AD536B0083; Wed, 4 Dec 2024 13:02:35 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 674B76B0085; Wed, 4 Dec 2024 13:02:35 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 4A5476B0082 for <linux-mm@kvack.org>; Wed, 4 Dec 2024 13:02:35 -0500 (EST) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id B1E751A1120 for <linux-mm@kvack.org>; Wed, 4 Dec 2024 18:02:34 +0000 (UTC) X-FDA: 82858046040.06.60A7C26 Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) by imf27.hostedemail.com (Postfix) with ESMTP id 09D1940015 for <linux-mm@kvack.org>; Wed, 4 Dec 2024 18:02:14 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=jNaYEKP2; spf=pass (imf27.hostedemail.com: domain of ryncsn@gmail.com designates 209.85.210.180 as permitted sender) smtp.mailfrom=ryncsn@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1733335346; h=from:from:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=Yo8oLvFvp2Cdm2QkdpOsus4N8Of9qDc0gvg/6YYERto=; b=vMCJPqwXjGCLSAoqQwCE2oBKsZD5AteyrWQW7nLxiELLKm6YqtjFrd0NZD8sefgT4b4yk7 mnQmzXf9dzfCaPaasreQJPWrRfCxbcIgRl76qX0niyFvbSbZjAlXNQH0d83Ry7zULHZ5eS 7P4ed3JGdV3qRVtqLD+t3NHRg7qkqrI= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=jNaYEKP2; spf=pass (imf27.hostedemail.com: domain of ryncsn@gmail.com designates 209.85.210.180 as permitted sender) smtp.mailfrom=ryncsn@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1733335346; a=rsa-sha256; cv=none; b=FA6g3toBEN0nCWyJt2zRG9qaM8nI6bTvEF8R7ZZsqq5mWejnYPVgMBQgUXBbuuT/UE7ZTC k5vukET+vOq8dudixOw9oXC6QlJg6CMVHnMeyQh8ngtMZ6KDME6WTV2FgDUsh5mu+GOxVd ZkuH2ZC6BXfAXlZsF6m7+G9imPMcDyQ= Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-7259a26ad10so79169b3a.1 for <linux-mm@kvack.org>; Wed, 04 Dec 2024 10:02:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733335351; x=1733940151; darn=kvack.org; h=content-transfer-encoding:mime-version:reply-to:message-id:date :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=Yo8oLvFvp2Cdm2QkdpOsus4N8Of9qDc0gvg/6YYERto=; b=jNaYEKP2K2DnwDqf4jponmAUJ7hIreyGjIfyG6IqZ2L6SfmD0gCPiIyIeHuREABMjG UED2njeimmI+5CVGgAjZlTh2z7IMsNX8Ecgngbf9L/Ytvqa7jCn/Abs5feTLWm3MaedJ eWdCUgqFk1GxC+D/7FTaRjGA/eJN5VL78ZAP0UtlGliwR4jFvmw+jhTJBaDWUQ50eYQI mOiC8420eHzUgZkaSzMbF0yCbmx5u85BGizVCY1qOiyIjNnS6qWcun5WRb6wFQWRXgY+ iWn9rRDK8RR/GwOKleCaolDo05CskN6U1W5xzLojvVG5suGztBRI6ST6AWGQzxSjTXSt RzKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733335351; x=1733940151; h=content-transfer-encoding:mime-version:reply-to:message-id:date :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Yo8oLvFvp2Cdm2QkdpOsus4N8Of9qDc0gvg/6YYERto=; b=IL3nabVPWO7S+Kp3JQbzizJqaIVz0m8s/704p0z4bRQmeHDo9y6kMFd3sB5KyJfsL5 Lh6/e7Mxq8m/INfYnGrQ53gbTg3Jp+tQNrKDTS+E4021hLLkko2UOb5WNbl1Y4IxFEjd SvEReOtPLWFEHGbhwU0v0NZLH3Z9Jvuajfnh3BcMT/wN/8vCS5cQSKIhE4k5Ic+xWG6C PwrytWhmRUq8LzmeAa9XMRPfUnJ9+oAVWtSbUBOxgH7AaNQXO68yCSQrRtQHAdZngskK ubWq5JwdFWNCJRZWcB4ExIyTrrsbTZPsmW7KWylbBD2/2RK9cVyeRqRs5G+IwC9Na7/w lZjw== X-Gm-Message-State: AOJu0YzOTEG7U6MynQRKWlD2gPzJftVVV2uFinZmXwt9IYbI3O0r6x6u AJFfXjDtK2dJOy30O79eZD4bHSH3seIm4cOFAkNkhpmt9FfJpEmz+PS/LMGJojk= X-Gm-Gg: ASbGncsGzjsuJWBJsho7HsxvCEp9+Nlvu+YtJDXQe/vSulL2bJfCaMfOxONFt8YlQn2 9Ext242vZTseGQxoB0u6YFfKAArWEovjFuw/OR5P8pB90kO1hbLPUBgb3JgJkxesevUMZzXEKkZ erFxMaPlE67WbqLNV9blriozNjGSNbpeoictLdfLeEepLOrzLt0efQqNHUBA/pHEgzE+e41VIbQ J0XpLA8habEpw4aq+o/1g5bCzOGmtna9FMPRmuwp7+oPqr3W2BFwl1GiUWkzxDkHDjoyT4= X-Google-Smtp-Source: AGHT+IH2CjLl7GpfCImh5nXrWR251HH3lwwOJlzvSb3HK65i5oIna5wpFc6Xf720CRDjEYag1bQMfw== X-Received: by 2002:a05:6a00:14cc:b0:71e:60d9:910d with SMTP id d2e1a72fcca58-7259d5a971emr384560b3a.6.1733335350874; Wed, 04 Dec 2024 10:02:30 -0800 (PST) Received: from KASONG-MC4.tencent.com ([101.32.222.185]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7258947b48fsm2064736b3a.47.2024.12.04.10.02.28 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 04 Dec 2024 10:02:30 -0800 (PST) From: Kairui Song <ryncsn@gmail.com> To: linux-mm@kvack.org Cc: Minchan Kim <minchan@kernel.org>, Sergey Senozhatsky <senozhatsky@chromium.org>, Andrew Morton <akpm@linux-foundation.org>, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Kairui Song <kasong@tencent.com> Subject: [PATCH 0/2] zram: fix backing device setup issue Date: Thu, 5 Dec 2024 02:02:22 +0800 Message-ID: <20241204180224.31069-1-ryncsn@gmail.com> X-Mailer: git-send-email 2.47.0 Reply-To: Kairui Song <kasong@tencent.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 09D1940015 X-Stat-Signature: d9of7txr5cichbytcfa4geitmoh8n9p8 X-Rspam-User: X-Rspamd-Server: rspam11 X-HE-Tag: 1733335334-86381 X-HE-Meta: U2FsdGVkX1/VBIyM5CogoKgJRN7vUm++H0Fs0ELzOskdXGr9fZ53/pd2BuRp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3rY3h5PlwKVp/xUxjh8oErIYrYB+ti62nwQR+jrj3/S/4rYFHbskEUhmxjECy7VcLNkrHSQSRCucky5EjW32b0YHnNBS3UCZ9D1+7SlmtYxDCxb07ZJUVGO5vIt7m7Utphi56sSRKPpr34RH28KnKfoc/F2KYzC5ndgm55Vsha6wADiJ2VzeKSFLQLqkn4GuRR8+99MiWRlryugpw6hF1IE/+ma3+0vIyKu+7ytYqvc0l0TPOG4tYkAUZrrFFBO+0pEIVEAToCsn4yw8Vmp2vuKZ4AG1ieBKPN5MF9iGkHv1zLuz63zMXDUhJo5Ld0Y4D7/K1cOvrJ9DFrY1gi4g15tydlJCFp7EGgSCOR3MXgv/jo9IIm579BwpHTXFcYmGrtgv00UwdxVoMs0cH+cPQtFxlAHXLW+q/EXbUYRVsoVbTGA8oGEuhEHprog2Kt+/5eZ9c= X-Bogosity: Ham, tests=bogofilter, spamicity=0.043216, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
zram: fix backing device setup issue
|
expand
|
From: Kairui Song <kasong@tencent.com> This series fixes two bugs of backing device setting: - ZRAM should reject using a zero sized (or the uninitialized ZRAM device itself) as the backing device. - Fix backing device leaking when removing a uninitialized ZRAM device. Kairui Song (2): zram: refuse to use zero sized block device as backing device zram: fix uninitialized ZRAM not releasing backing device drivers/block/zram/zram_drv.c | 9 +++++++++ 1 file changed, 9 insertions(+)