s390/stp: add locking to sysfs functions
Sven Schnelle authored
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>
b3bd0249
Name Last commit Last update
..
alpha iomap: constify ioreadX() iomem argument (as in generic implementation)
arc mm/gup: remove task_struct pointer for all gup code
arm all arch: remove system call sys_sysctl
arm64 Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
c6x Merge branch 'work.regset' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
csky mm/csky: use general page fault accounting
h8300 uaccess: remove segment_eq
hexagon mm/hexagon: use general page fault accounting
ia64 arch/ia64: Restore arch-specific pgd_offset_k implementation
m68k Merge tag 'sh-for-5.9' of git://git.libc.org/linux-sh
microblaze all arch: remove system call sys_sysctl
mips Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm
nds32 mm/nds32: use general page fault accounting
nios2 mm/nios2: use general page fault accounting
openrisc Merge tag 'for-linus' of git://github.com/openrisc/linux
parisc parisc: fix PMD pages allocation by restoring pmd_alloc_one()
powerpc Merge tag 'powerpc-5.9-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux
riscv riscv: Add SiFive drivers to rv32_defconfig
s390 s390/stp: add locking to sysfs functions
sh Merge tag 'sh-for-5.9' of git://git.libc.org/linux-sh
sparc all arch: remove system call sys_sysctl
um Merge tag 'sh-for-5.9' of git://git.libc.org/linux-sh
x86 Merge tag 'x86-urgent-2020-08-23' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
xtensa all arch: remove system call sys_sysctl
.gitignore .gitignore: add SPDX License Identifier
Kconfig Merge tag 'timers-urgent-2020-08-14' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip