From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.kernel.org ([198.145.29.136]:58834 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422658AbcFNCgH (ORCPT ); Mon, 13 Jun 2016 22:36:07 -0400 From: Andy Lutomirski To: Linux FS Devel , Al Viro Cc: Stephen Rothwell , Andrew Morton , Andy Lutomirski Subject: [PATCH v2 0/2] copy_mount_options improvements Date: Mon, 13 Jun 2016 19:36:03 -0700 Message-Id: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Patch 1 fixes what is arguably a bug. I suspect it could cause crashes or very large latency under unusual circumstanes. Since it also deletes a bunch of code, I think it's a nice fix. Patch 2 is an ABI change/fix. Any user code that would be affected is currently buggy (i.e. results in incorrect option parsing), so I suspect it can be applied safely. Changes from v1: - Fix some blatant memory corruption :( Andy Lutomirski (2): fs: Improve and simplify copy_mount_options fs: Disallow mount options strings longer than PAGE_SIZE - 1 fs/namespace.c | 62 ++++++++++++++-------------------------------------------- 1 file changed, 15 insertions(+), 47 deletions(-) -- 2.7.4