s390/stp: add locking to sysfs functions
Sven Schnelle authored
commit b3bd0249

 upstream.

The sysfs function might race with stp_work_fn. To prevent that,
add the required locking. Another issue is that the sysfs functions
are checking the stp_online flag, but this flag just holds the user
setting whether STP is enabled. Add a flag to clock_sync_flag whether
stp_info holds valid data and use that instead.

Cc: stable@vger.kernel.org
Signed-off-by: default avatarSven Schnelle <svens@linux.ibm.com>
Reviewed-by: default avatarAlexander Egorenkov <egorenar@linux.ibm.com>
Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
0bc43e64
Name Last commit Last update
Documentation media: videodev2.h: RGB BT2020 and HSV are always full range
arch s390/stp: add locking to sysfs functions
block block: ensure bdi->io_pages is always initialized
certs Replace magic for trusting the secondary keyring with #define
crypto crypto: algif_skcipher - EBUSY on aio should be an error
drivers iio:gyro:itg3200: Fix timestamp alignment and prevent data leak.
firmware Fix built-in early-load Intel microcode alignment
fs btrfs: fix use-after-free on readahead extent after failure to create it
include media: videodev2.h: RGB BT2020 and HSV are always full range
init printk: reduce LOG_BUF_SHIFT range for H8300
ipc ipc/util.c: sysvipc_find_ipc() incorrectly updates position index
kernel kgdb: Make "kgdbcon" work properly with "kgdb_earlycon"
lib sgl_alloc_order: fix memory leak
mm mm, oom_adj: don't loop through tasks in __set_oom_adj when not necessary
net net: 9p: initialize sun_server.sun_path to have addr's value only when addr is valid
samples misc: vop: add round_up(x,4) for vring_size to avoid kernel panic
scripts scripts/setlocalversion: make git describe output more reliable
security ima: Don't ignore errors from crypto_shash_update()
sound ALSA: seq: oss: Avoid mutex lock for a long-time ioctl
tools perf intel-pt: Fix "context_switch event has no tid" error
usr initramfs: restore default compression behavior
virt KVM: fix overflow of zero page refcount with ksm running
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Add hch to .get_maintainer.ignore
.gitattributes .gitattributes: set git diff driver for C source code files
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
Linux kernel
============

This file was moved to Documentation/admin-guide/README.rst

Please notice that there are several guides for kernel developers and users.
These guides can be rendered in a number of formats, like HTML and PDF.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.