Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1164579imm; Wed, 1 Aug 2018 11:15:03 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfmifhd9fDrFFRjR50kUrbcLAdRecxhoDG1V8NWkRwBQ+HWelx3yORFzeLu/lDNCBtpGvLZ X-Received: by 2002:a62:34c4:: with SMTP id b187-v6mr27649987pfa.15.1533147303906; Wed, 01 Aug 2018 11:15:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533147303; cv=none; d=google.com; s=arc-20160816; b=hcMRZKSwfFPiKxwED+uAW2huzHDSuEHC5ZTH9cSGI7g8FzAO4yytnSckMZk7t7F2cF hNBVS5Y2iHfnjjd/yFKV46AhZGVEQAnAxs4kpV49GH4+lSB/AFRLLEfy7+uZCyHsNPtR Y6gw8bOtPw7qNI3tZVh1y0Q5IJFp8w2ZLLMh+bgpyEaOwNKDvA56c5iHNHt3Pt+Nn+zT 8DX3GIFkJwnVlHNlaqSEd9KTs8BVG9K0tUdlapRxNt5eDPdRMrCxOg6y1D6UgfRp+9HC MHdX/s/xs4lu/r0KqmzeBx7O1SboEh5EpZy1vtDMDo05pfFU/aEw7kgwfXWcyRE6t/Y1 Dk7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=5Cp5h06vmzy79Jo7AAETnKIQNbvl2DmovalgKeRfdOY=; b=cjbtPBCoi5wua+/jeFVl2fzG2S5xM3QjbIkeccYYiZPuJgICNpr2S4FoQqW/wNwCOi xQm9BS9Cjnjn8fX6iloUSUsuGj3QxLuKITrFzkkoXFN4ubCLTC7+iSopHOYlv9aUDwvl LsyxqXkK1PGg0SGkeGy8WNgk14qzpQ3bT13fxDjKHReJH8TqLUWkdxvyc3OVSeTGWunR Vmvpxh4N86CWCM6LTXu+XWR/vUnwb2dm3/6mYilIhKbIbPeasUETQVZezBG7tIV/7Z8h 72UTpP7kQgWg8NzXrzMxu5QyXnX8+ikivL+fpyfzLbAjVkg1ZFBLCIli6ViLZTYP3N5u o1Fw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j85-v6si18307336pfa.232.2018.08.01.11.14.49; Wed, 01 Aug 2018 11:15:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732350AbeHAUAR (ORCPT + 99 others); Wed, 1 Aug 2018 16:00:17 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:49794 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405666AbeHATIe (ORCPT ); Wed, 1 Aug 2018 15:08:34 -0400 Received: from localhost (D57E6652.static.ziggozakelijk.nl [213.126.102.82]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id B53F8139A; Wed, 1 Aug 2018 17:14:37 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Anatoly Pugachev , Chao Yu , Jaegeuk Kim , Sasha Levin Subject: [PATCH 4.14 055/246] disable loading f2fs module on PAGE_SIZE > 4KB Date: Wed, 1 Aug 2018 18:49:25 +0200 Message-Id: <20180801165014.356993844@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180801165011.700991984@linuxfoundation.org> References: <20180801165011.700991984@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Anatoly Pugachev [ Upstream commit 4071e67cffcc5c2a007116a02437471351f550eb ] The following patch disables loading of f2fs module on architectures which have PAGE_SIZE > 4096 , since it is impossible to mount f2fs on such architectures , log messages are: mount: /mnt: wrong fs type, bad option, bad superblock on /dev/vdiskb1, missing codepage or helper program, or other error. /dev/vdiskb1: F2FS filesystem, UUID=1d8b9ca4-2389-4910-af3b-10998969f09c, volume name "" May 15 18:03:13 ttip kernel: F2FS-fs (vdiskb1): Invalid page_cache_size (8192), supports only 4KB May 15 18:03:13 ttip kernel: F2FS-fs (vdiskb1): Can't find valid F2FS filesystem in 1th superblock May 15 18:03:13 ttip kernel: F2FS-fs (vdiskb1): Invalid page_cache_size (8192), supports only 4KB May 15 18:03:13 ttip kernel: F2FS-fs (vdiskb1): Can't find valid F2FS filesystem in 2th superblock May 15 18:03:13 ttip kernel: F2FS-fs (vdiskb1): Invalid page_cache_size (8192), supports only 4KB which was introduced by git commit 5c9b469295fb6b10d98923eab5e79c4edb80ed20 tested on git kernel 4.17.0-rc6-00309-gec30dcf7f425 with patch applied: modprobe: ERROR: could not insert 'f2fs': Invalid argument May 28 01:40:28 v215 kernel: F2FS not supported on PAGE_SIZE(8192) != 4096 Signed-off-by: Anatoly Pugachev Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- fs/f2fs/super.c | 6 ++++++ 1 file changed, 6 insertions(+) --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -2663,6 +2663,12 @@ static int __init init_f2fs_fs(void) { int err; + if (PAGE_SIZE != F2FS_BLKSIZE) { + printk("F2FS not supported on PAGE_SIZE(%lu) != %d\n", + PAGE_SIZE, F2FS_BLKSIZE); + return -EINVAL; + } + f2fs_build_trace_ios(); err = init_inodecache();