FYI, we noticed the following commit:
commit: bad2391be6efb6e9c9a90118faafd16b9bd5351d ("fs: Kill setuid and setgid when
writing regardless of capabilities")
https://git.kernel.org/cgit/linux/kernel/git/luto/linux.git vfs/suid
in testcase: ltp
with following parameters:
test: syscalls_part2
test-description: The LTP testsuite contains a collection of tools for testing the Linux
kernel and related features.
test-url:
http://linux-test-project.github.io/
on test machine: 88 threads Intel(R) Xeon(R) CPU E5-2699 v4 @ 2.20GHz with 64G memory
caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):
user :notice: [ 380.866081] tag=open14 stime=1506554003
user :notice: [ 380.872732] cmdline="open14"
user :notice: [ 380.878265] contacts=""
user :notice: [ 380.883336] analysis=exit
user :notice: [ 380.888604] <<<test_output>>>
user :notice: [ 380.894714] open14 0 TINFO : creating a file with O_TMPFILE
flag
user :notice: [ 380.904875] open14 0 TINFO : writing data to the file
user :notice: [ 380.913942] open14 0 TINFO : file size is '4096'
user :notice: [ 380.922611] open14 0 TINFO : looking for the file in
'.'
user :notice: [ 380.931947] open14 0 TINFO : file not found, OK
user :notice: [ 380.941094] open14 0 TINFO : renaming
'/tmp/ltp-aT7RChbTfs/opevWw22V/#43123 (deleted)' -> 'tmpfile'
user :notice: [ 380.954724] open14 0 TINFO : found a file: tmpfile
user :notice: [ 380.963644] open14 1 TPASS : single file tests passed
user :notice: [ 380.972971] open14 0 TINFO : create files in multiple
directories
user :notice: [ 380.983412] open14 0 TINFO : removing test directories
user :notice: [ 380.992822] open14 0 TINFO : writing/reading temporary files
user :notice: [ 381.002738] open14 0 TINFO : closing temporary files
user :notice: [ 381.011900] open14 2 TPASS : multiple files tests passed
user :notice: [ 381.021729] open14 0 TINFO : create multiple directories, link
files into them
user :notice: [ 381.033505] open14 0 TINFO : and check file permissions
user :notice: [ 381.043322] open14 3 TFAIL : open14.c:212: file mode read 1777,
but expected 7777
To reproduce:
git clone
https://github.com/intel/lkp-tests.git
cd lkp-tests
bin/lkp install job.yaml # job file is attached in this email
bin/lkp run job.yaml
Thanks,
Xiaolong