Return-Path: Received: from mx2.suse.de ([195.135.220.15]:59850 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728141AbeJRVST (ORCPT ); Thu, 18 Oct 2018 17:18:19 -0400 From: Jan Kara To: Al Viro Cc: Ted Tso , , , , Jan Kara Subject: [PATCH 0/2] vfs: Fix crashes when reading /proc/mounts Date: Thu, 18 Oct 2018 15:17:07 +0200 Message-Id: <20181018131709.11976-1-jack@suse.cz> Sender: linux-ext4-owner@vger.kernel.org List-ID: Hello, this patch series aims at fixing possible races between functions formatting output for /proc/mounts and friends and remount. Especially ->show_options functions of filesystems are not counting with the fact that options can change under them and thus races can result in bogus output or outright crashes (like was the case with ext4 handling of quota mount option, or udf could crash when printing charset name, or xfs when printing log device name etc.). Admittedly the patch 2/2 is somewhat ugly because namespace_sem ranks below sb->s_umount semaphore but I think it is bearable. Al, what do you think? Honza