blob: 4d6928a6e57cbe82b84855eee7a2e77dc8f17285 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#! /bin/bash
# SPDX-License-Identifier: GPL-2.0+
#
# Copyright (c) 2021 Christian Brauner <christian.brauner@ubuntu.com>
# All Rights Reserved.
#
# FS QA Test No. 632
#
# Regression test to verify that creating a series of detached mounts,
# attaching them to the filesystem, and unmounting them does not trigger an
# integer overflow in ns->mounts causing the kernel to block any new mounts in
# count_mounts() and returning ENOSPC because it falsely assumes that the
# maximum number of mounts in the mount namespace has been reached, i.e. it
# thinks it can't fit the new mounts into the mount namespace anymore.
#
# Kernel commit ee2e3f50629f ("mount: fix mounting of detached mounts onto
# targets that reside on shared mounts") fixed the bug.
#
. ./common/preamble
_begin_fstest auto quick mount
_supported_fs generic
_require_test
_require_test_program "detached_mounts_propagation"
$here/src/detached_mounts_propagation $TEST_DIR >> $seqres.full
status=$?
echo silence is golden
exit
|