Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp583681imm; Mon, 21 May 2018 10:43:47 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpw1KYpvx2i2Cw1g4lPK+g7MyMlFxs3t7nsI6wf2U5OSNW540pJBASQt56dcK1gX2+PwDbT X-Received: by 2002:a62:859a:: with SMTP id m26-v6mr20703041pfk.247.1526924627717; Mon, 21 May 2018 10:43:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526924627; cv=none; d=google.com; s=arc-20160816; b=U4qB+64Cj6wLlGiE9F8gVEn5nxCYTb/ZQqVIETh4SrNgF/rjv4m7NbrnClqILGeb9o CuMp65PbPALB8U6fFLIeIqV08w9ahL7BWyL7TQB8cmEXQclFKEKKpCrWNoj1XjE9wapn zZXRkz5n52aGi0ABrP0jFScclIfn4T3Bp7JSTxnBHPUj8V8PCRkiQKPMiAAljrBIzHi8 a4MmtCmyPmSL5E0OleYJnM8fSXHmpfijzT160OkEZJtR4pzP/TYBnMuoJegDPlvNnJSv JYVQkHGRG6/pybm1ChqNROO2hENdDWaE5fv2+141CYrcaNZTgsMTTZ0koR3eRD3sf+Uq 41Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=BnTULuJs98jjguYB8oHFNW4lglicYm1W+6cGeE9eWeo=; b=LFCANtAuaT0em0vSj9OKCEf1YEjgLnk7wmZA+c+aaFd2hiowZky0YHyLfYQUX534wo 8laMzyrEKLvbqvkDn6a2ztxml4sBFKc4FiGpnpmoN+DIsGR9cdKsnVmSeJqijdhpDljH D1KaXjBRaMR7FNsi5qcpfNp8V+2nfTbbJv4KOL0efpxM1ie82ypToKvJgpWzFtnKpWSN kKKI6U1WScVybnjfYkh+yPmWJr28s2gw4xYHi6ErCfRf8ODsvkIRXIMw8McytZTP0Df4 QUu7XqZijSXTjCMtzfXZoO12MgOqTQUOpFCBgQIl+/YQTA6eKMyEwmAPzvqMBN3PkK/y 91LQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MLiZKeM5; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 4-v6si14571939pfb.204.2018.05.21.10.43.32; Mon, 21 May 2018 10:43:47 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MLiZKeM5; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753372AbeEURll (ORCPT + 99 others); Mon, 21 May 2018 13:41:41 -0400 Received: from mail-pl0-f53.google.com ([209.85.160.53]:40839 "EHLO mail-pl0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753621AbeEURkG (ORCPT ); Mon, 21 May 2018 13:40:06 -0400 Received: by mail-pl0-f53.google.com with SMTP id t12-v6so9208651plo.7; Mon, 21 May 2018 10:40:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=BnTULuJs98jjguYB8oHFNW4lglicYm1W+6cGeE9eWeo=; b=MLiZKeM58FDPVnOsK/uxPX4eFMtgCs+3JbYj4alKjag4BZPW2qxcLqQnBWGOXoUvUN GB2o9Kis1z+N7fTRWyVWYpE58Y8kP4UxZd5IoBPhH3eBXMQfISBzt/7hjIk0MXkGIeSf goPjPELcBc9NgkS2tR8e7eSm1/DxHu/BtGsgJuEv444C2NRuyKEgETuIp6X5gsT8tKPa cXGlmeKiPHeJoBSjqu5l8QSM1ybI0rW3MMtJtZi/s42fbhkuih6YOmt25ncVaoTEwrDM NrI08UBKjJTzxCIsAEs0f1+p6gWJZKdQdi96V7MVVqULENG9e/Y1VxFOU+KOwTlss98M F8jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=BnTULuJs98jjguYB8oHFNW4lglicYm1W+6cGeE9eWeo=; b=Y/ErgZBHIo0dYFgpXT/xfML+p6UEfi+/sLNyXWzFDps/a43OQ4bsY0u1HHk5JT1y1X hI8bCHPaMxmHQ48xIc1p+rp1ewKWHNtOH734DZ04YzprSd37cc2NojrE56+b8OmKqo6S k7B4SgIf6x4q//4Sm9cOG6z2mMFnuTB3Z6DRknWYqT3Maod9BprKPjO/8bGX7DNusCMM Xfx6b1eE+ghQfS8YPoy5HdBfmtg5PaDJV8piN8yfUuEpjEgDu+bNB6rfc+ZD8kl9rCMU Ax6bCWVT9KW1vc4QYFt0ylcKegbJoAM3LJJDxNmn1WDfRWeK5uc22THa9yr5XuXdqA2I bBVg== X-Gm-Message-State: ALKqPwfvtBj7MC41xQw2s5eAEXsGaN8ahdaW4fljii0ry6MECrS3kVf3 S+U09YP2oOrcL6oCqZkOCufOxkuf X-Received: by 2002:a17:902:268:: with SMTP id 95-v6mr21452935plc.386.1526924405192; Mon, 21 May 2018 10:40:05 -0700 (PDT) Received: from supsup-VirtualBox ([1.238.69.49]) by smtp.gmail.com with ESMTPSA id o70-v6sm25559059pfo.49.2018.05.21.10.40.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 21 May 2018 10:40:04 -0700 (PDT) Date: Tue, 22 May 2018 02:39:59 +0900 From: Jungsub Shin To: viro@zeniv.linux.org.uk Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Why is the length of max mount option a page size?? Message-ID: <20180521173959.GA12779@supsup-VirtualBox> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, now i'm interested in mount lenght of max mount option. I anaylsis ksys_mount() function in /fs/namespace.c. and find out the length of max mount option is a page size (4096 bytes). I know that almost mount option short and page size is enough to contain almost mount options. but because of options for unionfs(overlay, aufs), lenght of mount option could be exceed it and cut. I suffer this problem with aufs. aufs's branch option is cut and fail to aufs mount. I know that aufs is not offical fs in linux, but overlay fs now support multi layer mount option and could be suffer the same problem. I think the best is dynamic allocate mount option's kernel memory. but I'm only have shallow knowlege of kernel, I can't guess it. And I think If the length of mount option cannot exceed a page size, kernel must leave warning messsage about lenght and return err. copy_mount_options() function seems to done this.