No description
Find a file
Mikulas Patocka b17164e258 xfs: don't update mtime on COW faults
When running in a dax mode, if the user maps a page with MAP_PRIVATE and
PROT_WRITE, the xfs filesystem would incorrectly update ctime and mtime
when the user hits a COW fault.

This breaks building of the Linux kernel.  How to reproduce:

 1. extract the Linux kernel tree on dax-mounted xfs filesystem
 2. run make clean
 3. run make -j12
 4. run make -j12

at step 4, make would incorrectly rebuild the whole kernel (although it
was already built in step 3).

The reason for the breakage is that almost all object files depend on
objtool.  When we run objtool, it takes COW page fault on its .data
section, and these faults will incorrectly update the timestamp of the
objtool binary.  The updated timestamp causes make to rebuild the whole
tree.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-09-05 10:00:05 -07:00
arch s390 fixes for 5.9-rc4 2020-09-04 13:46:33 -07:00
block block-5.9-2020-09-04 2020-09-04 13:04:51 -07:00
certs
crypto
Documentation Kbuild fixes for v5.9 (2nd) 2020-09-04 13:34:52 -07:00
drivers Power management fixes for 5.9-rc4 2020-09-04 13:27:24 -07:00
fs xfs: don't update mtime on COW faults 2020-09-05 10:00:05 -07:00
include libata-5.9-2020-09-04 2020-09-04 13:19:19 -07:00
init init: fix error check in clean_path() 2020-09-04 09:16:58 -07:00
ipc
kernel gcov: Disable gcov build with GCC 10 2020-09-04 09:19:49 -07:00
lib
LICENSES
mm Merge branch 'simplify-do_wp_page' 2020-09-04 09:31:54 -07:00
net net/packet: fix overflow in tpacket_rcv 2020-09-04 11:56:02 -07:00
samples
scripts
security
sound sound fixes for 5.9-rc4 2020-09-04 12:05:25 -07:00
tools
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

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.