aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gen_initramfs_list.sh
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2013-07-01 08:12:40 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-21 18:14:40 -0700
commit23643c00e5d692fa53fc7630931e6694b02f27ef (patch)
treeb230065a47ed24bc5f0f095b2a8626b831c7de3a /scripts/gen_initramfs_list.sh
parenta62a87169d61229a5e55364cf80d168860298ad2 (diff)
downloadkernel_samsung_espresso10-23643c00e5d692fa53fc7630931e6694b02f27ef.zip
kernel_samsung_espresso10-23643c00e5d692fa53fc7630931e6694b02f27ef.tar.gz
kernel_samsung_espresso10-23643c00e5d692fa53fc7630931e6694b02f27ef.tar.bz2
jbd2: fix theoretical race in jbd2__journal_restart
commit 39c04153fda8c32e85b51c96eb5511a326ad7609 upstream. Once we decrement transaction->t_updates, if this is the last handle holding the transaction from closing, and once we release the t_handle_lock spinlock, it's possible for the transaction to commit and be released. In practice with normal kernels, this probably won't happen, since the commit happens in a separate kernel thread and it's unlikely this could all happen within the space of a few CPU cycles. On the other hand, with a real-time kernel, this could potentially happen, so save the tid found in transaction->t_tid before we release t_handle_lock. It would require an insane configuration, such as one where the jbd2 thread was set to a very high real-time priority, perhaps because a high priority real-time thread is trying to read or write to a file system. But some people who use real-time kernels have been known to do insane things, including controlling laser-wielding industrial robots. :-) Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gen_initramfs_list.sh')
0 files changed, 0 insertions, 0 deletions