Hi Bruce and Yocto kernel folks,

After using ltp latest version release(20220930), the creat09 reported
current kernel missing fixes as below:

HINT: You _MAY_ be missing kernel fixes:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0fa3ecd87848
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=01ea173e103e
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1639a49ccdce
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=426b4ca2d6a5

We checked the commit that need to backport 2 commits from upstream.

Testing done with ltp creat09, all cases went well. The full console log as
below.

root@qemux86-64:/opt/ltp/testcases/bin# ./creat09 
tst_device.c:89: TINFO: Found free device 0 '/dev/loop0'
[  127.133621] loop0: detected capacity change from 0 to 614400
tst_test.c:1526: TINFO: Timeout per run is 0h 00m 30s
tst_supported_fs_types.c:93: TINFO: Kernel supports ext2
tst_supported_fs_types.c:55: TINFO: mkfs.ext2 does exist
tst_supported_fs_types.c:93: TINFO: Kernel supports ext3
tst_supported_fs_types.c:55: TINFO: mkfs.ext3 does exist
tst_supported_fs_types.c:93: TINFO: Kernel supports ext4
tst_supported_fs_types.c:55: TINFO: mkfs.ext4 does exist
tst_supported_fs_types.c:119: TINFO: Filesystem xfs is not supported
tst_supported_fs_types.c:93: TINFO: Kernel supports btrfs
tst_supported_fs_types.c:51: TINFO: mkfs.btrfs does not exist
tst_supported_fs_types.c:160: TINFO: Skipping vfat as requested by the test
tst_supported_fs_types.c:160: TINFO: Skipping exfat as requested by the test
tst_supported_fs_types.c:160: TINFO: Skipping ntfs as requested by the test
tst_supported_fs_types.c:93: TINFO: Kernel supports tmpfs
tst_supported_fs_types.c:42: TINFO: mkfs is not needed for tmpfs
tst_test.c:1599: TINFO: === Testing on ext2 ===
tst_test.c:1064: TINFO: Formatting /dev/loop0 with ext2 opts='' extra opts=''
mke2fs 1.46.5 (30-Dec-2021)
[  130.308175] blk_update_request: operation not supported error, dev loop0, 
sector 614272 op 0x9:(WRITE_ZEROES) flags 0x800800 phys_seg 0 prio class 0
[  130.313277] blk_update_request: operation not supported error, dev loop0, 
sector 524 op 0x9:(WRITE_ZEROES) flags 0x800800 phys_seg 0 prio class 0
[  130.321999] blk_update_request: operation not supported error, dev loop0, 
sector 16908 op 0x9:(WRITE_ZEROES) flags 0x800800 phys_seg 0 prio class 0
[  130.336670] blk_update_request: operation not supported error, dev loop0, 
sector 32774 op 0x9:(WRITE_ZEROES) flags 0x800800 phys_seg 0 prio class 0
[  130.351216] blk_update_request: operation not supported error, dev loop0, 
sector 49676 op 0x9:(WRITE_ZEROES) flags 0x800800 phys_seg 0 prio class 0
[  130.371586] blk_update_request: operation not supported error, dev loop0, 
sector 65542 op 0x9:(WRITE_ZEROES) flags 0x800800 phys_seg 0 prio class 0
[  130.389739] blk_update_request: operation not supported error, dev loop0, 
sector 82444 op 0x9:(WRITE_ZEROES) flags 0x800800 phys_seg 0 prio class 0
[  130.404340] blk_update_request: operation not supported error, dev loop0, 
sector 98310 op 0x9:(WRITE_ZEROES) flags 0x800800 phys_seg 0 prio class 0
[  130.421033] blk_update_request: operation not supported error, dev loop0, 
sector 115212 op 0x9:(WRITE_ZEROES) flags 0x800800 phys_seg 0 prio class 0
[  130.432550] blk_update_request: operation not supported error, dev loop0, 
sector 131078 op 0x9:(WRITE_ZEROES) flags 0x800800 phys_seg 0 prio class 0
[  131.184757] EXT4-fs (loop0): mounting ext2 file system using the ext4 
subsystem
[  131.230214] EXT4-fs (loop0): mounted filesystem without journal. Opts: 
(null). Quota mode: none.
creat09.c:73: TINFO: User nobody: uid = 65534, gid = 65534
creat09.c:75: TINFO: Found unused GID 11: SUCCESS (0)
creat09.c:120: TINFO: File created with umask(0)
creat09.c:106: TPASS: mntpoint/testdir/creat.tmp: Owned by correct group
creat09.c:112: TPASS: mntpoint/testdir/creat.tmp: Setgid bit not set
creat09.c:106: TPASS: mntpoint/testdir/open.tmp: Owned by correct group
creat09.c:112: TPASS: mntpoint/testdir/open.tmp: Setgid bit not set
creat09.c:120: TINFO: File created with umask(S_IXGRP)
creat09.c:106: TPASS: mntpoint/testdir/creat.tmp: Owned by correct group
creat09.c:112: TPASS: mntpoint/testdir/creat.tmp: Setgid bit not set
creat09.c:106: TPASS: mntpoint/testdir/open.tmp: Owned by correct group
creat09.c:112: TPASS: mntpoint/testdir/open.tmp: Setgid bit not set
tst_test.c:1599: TINFO: === Testing on ext3 ===
tst_test.c:1064: TINFO: Formatting /dev/loop0 with ext3 opts='' extra opts=''
mke2fs 1.46.5 (30-Dec-2021)
[  135.395704] print_req_error: 86 callbacks suppressed
[  135.396180] blk_update_request: operation not supported error, dev loop0, 
sector 9302 op 0x9:(WRITE_ZEROES) flags 0x800800 phys_seg 0 prio class 0
[  135.584540] blk_update_request: operation not supported error, dev loop0, 
sector 9816 op 0x9:(WRITE_ZEROES) flags 0x800800 phys_seg 0 prio class 0
[  135.753567] blk_update_request: operation not supported error, dev loop0, 
sector 10330 op 0x9:(WRITE_ZEROES) flags 0x800800 phys_seg 0 prio class 0
[  135.931081] blk_update_request: operation not supported error, dev loop0, 
sector 10844 op 0x9:(WRITE_ZEROES) flags 0x800800 phys_seg 0 prio class 0
[  136.133368] blk_update_request: operation not supported error, dev loop0, 
sector 11358 op 0x9:(WRITE_ZEROES) flags 0x800800 phys_seg 0 prio class 0
[  136.327518] blk_update_request: operation not supported error, dev loop0, 
sector 11872 op 0x9:(WRITE_ZEROES) flags 0x800800 phys_seg 0 prio class 0
[  136.525593] blk_update_request: operation not supported error, dev loop0, 
sector 12386 op 0x9:(WRITE_ZEROES) flags 0x800800 phys_seg 0 prio class 0
[  136.738718] blk_update_request: operation not supported error, dev loop0, 
sector 12900 op 0x9:(WRITE_ZEROES) flags 0x800800 phys_seg 0 prio class 0
[  136.929249] blk_update_request: operation not supported error, dev loop0, 
sector 13414 op 0x9:(WRITE_ZEROES) flags 0x800800 phys_seg 0 prio class 0
[  137.121351] blk_update_request: operation not supported error, dev loop0, 
sector 13928 op 0x9:(WRITE_ZEROES) flags 0x800800 phys_seg 0 prio class 0
[  138.715725] EXT4-fs (loop0): mounting ext3 file system using the ext4 
subsystem
[  138.831683] EXT4-fs (loop0): mounted filesystem with ordered data mode. 
Opts: (null). Quota mode: none.
creat09.c:73: TINFO: User nobody: uid = 65534, gid = 65534
creat09.c:75: TINFO: Found unused GID 11: SUCCESS (0)
creat09.c:120: TINFO: File created with umask(0)
creat09.c:106: TPASS: mntpoint/testdir/creat.tmp: Owned by correct group
creat09.c:112: TPASS: mntpoint/testdir/creat.tmp: Setgid bit not set
creat09.c:106: TPASS: mntpoint/testdir/open.tmp: Owned by correct group
creat09.c:112: TPASS: mntpoint/testdir/open.tmp: Setgid bit not set
creat09.c:120: TINFO: File created with umask(S_IXGRP)
creat09.c:106: TPASS: mntpoint/testdir/creat.tmp: Owned by correct group
creat09.c:112: TPASS: mntpoint/testdir/creat.tmp: Setgid bit not set
creat09.c:106: TPASS: mntpoint/testdir/open.tmp: Owned by correct group
creat09.c:112: TPASS: mntpoint/testdir/open.tmp: Setgid bit not set
tst_test.c:1599: TINFO: === Testing on ext4 ===
tst_test.c:1064: TINFO: Formatting /dev/loop0 with ext4 opts='' extra opts=''
mke2fs 1.46.5 (30-Dec-2021)
[  140.462420] EXT4-fs (loop0): mounted filesystem with ordered data mode. 
Opts: (null). Quota mode: none.
creat09.c:73: TINFO: User nobody: uid = 65534, gid = 65534
creat09.c:75: TINFO: Found unused GID 11: SUCCESS (0)
creat09.c:120: TINFO: File created with umask(0)
creat09.c:106: TPASS: mntpoint/testdir/creat.tmp: Owned by correct group
creat09.c:112: TPASS: mntpoint/testdir/creat.tmp: Setgid bit not set
creat09.c:106: TPASS: mntpoint/testdir/open.tmp: Owned by correct group
creat09.c:112: TPASS: mntpoint/testdir/open.tmp: Setgid bit not set
creat09.c:120: TINFO: File created with umask(S_IXGRP)
creat09.c:106: TPASS: mntpoint/testdir/creat.tmp: Owned by correct group
creat09.c:112: TPASS: mntpoint/testdir/creat.tmp: Setgid bit not set
creat09.c:106: TPASS: mntpoint/testdir/open.tmp: Owned by correct group
creat09.c:112: TPASS: mntpoint/testdir/open.tmp: Setgid bit not set
tst_test.c:1599: TINFO: === Testing on tmpfs ===
tst_test.c:1064: TINFO: Skipping mkfs for TMPFS filesystem
tst_test.c:1045: TINFO: Limiting tmpfs size to 32MB
creat09.c:73: TINFO: User nobody: uid = 65534, gid = 65534
creat09.c:75: TINFO: Found unused GID 11: SUCCESS (0)
creat09.c:120: TINFO: File created with umask(0)
creat09.c:106: TPASS: mntpoint/testdir/creat.tmp: Owned by correct group
creat09.c:112: TPASS: mntpoint/testdir/creat.tmp: Setgid bit not set
creat09.c:106: TPASS: mntpoint/testdir/open.tmp: Owned by correct group
creat09.c:112: TPASS: mntpoint/testdir/open.tmp: Setgid bit not set
creat09.c:120: TINFO: File created with umask(S_IXGRP)
creat09.c:106: TPASS: mntpoint/testdir/creat.tmp: Owned by correct group
creat09.c:112: TPASS: mntpoint/testdir/creat.tmp: Setgid bit not set
creat09.c:106: TPASS: mntpoint/testdir/open.tmp: Owned by correct group
creat09.c:112: TPASS: mntpoint/testdir/open.tmp: Setgid bit not set

Summary:
passed   32
failed   0
broken   0
skipped  0
warnings 0



Yang Xu (2):
  fs: add mode_strip_sgid() helper
  fs: move S_ISGID stripping into the vfs_*() helpers

 fs/inode.c         | 34 ++++++++++++++++---
 fs/namei.c         | 82 ++++++++++++++++++++++++++++++++++++++--------
 fs/ocfs2/namei.c   |  1 +
 include/linux/fs.h |  2 ++
 4 files changed, 102 insertions(+), 17 deletions(-)

-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#12009): 
https://lists.yoctoproject.org/g/linux-yocto/message/12009
Mute This Topic: https://lists.yoctoproject.org/mt/95554184/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to