Skip to contentSkip to conversation

7.1.6-rc1 review

PATCH In review Greg Kroah-Hartman 18 participants 768 messages Jul 30 – Aug 2 Page 7 of 7

Subsystems (4)
lore
Share & tools
lore
author maintainer
#629 lore raw

Re: [PATCH 7.1 625/744] ceph: add owner/capability checks for CEPH_IOC_SET_LAYOUT*

In reply to Ilya Dryomov
Quoted 59 lines · Ilya Dryomov
Quoted 45 lines · Greg Kroah-Hartman

7.1-stable review patch. If anyone has any objections, please let me know.

------------------

From: Max Kellermann <[email protected]>

commit cee38bbf5556a8e0a232ccae41649580827d7806 upstream.

These permission checks were already missing in the initial impementation of these ioctls. This Ceph allows any user who owns a file descriptor to manipulate the layout of any file, even if they don't have write permissions.

It might be a good idea to guard other ioctls with permission checks as well or even disallow regular users (even if they own the file) to manipulate layout settings completely, as this may be abused to DoS the Ceph servers, but right now, I find it most urgent to have setter checks at all.

---
 fs/ceph/ioctl.c |    6 ++++++
 1 file changed, 6 insertions(+)
fs/ceph/ioctl.c +3 -0
@@ -72,6 +72,9 @@ static long ceph_ioctl_set_layout(struct
        struct ceph_ioctl_layout nl;
        int err;
 
+       if (!inode_owner_or_capable(&nop_mnt_idmap, inode))
+               return -EACCES;
+
        if (copy_from_user(&l, arg, sizeof(l)))
                return -EFAULT;
 

fs/ceph/ioctl.c static long ceph_ioctl_set_layout_policy · line 153

Quoted 9 lines
fs/ceph/ioctl.c +3 -0
@@ -142,6 +145,9 @@ static long ceph_ioctl_set_layout_policy
        int err;
        struct ceph_mds_client *mdsc = ceph_sb_to_fs_client(inode->i_sb)->mdsc;
 
+       if (!inode_owner_or_capable(&nop_mnt_idmap, inode))
+               return -EACCES;
+
        /* copy and validate */
        if (copy_from_user(&l, arg, sizeof(l)))
                return -EFAULT;

Hi Greg,

Quoted 2 lines

There is a concern about the correctness of this patch, please drop it for now.

Ok, dropped now from all branches. If you want it back, please let us know in the future.

thanks,

greg k-h

#287 lore raw

Re: [PATCH 7.1 286/744] cifs: prevent readdir from changing file size due to stale directory metadata

In reply to Greg Kroah-Hartman
Quoted 7 lines · Greg Kroah-Hartman

7.1-stable review patch. If anyone has any objections, please let me know.

------------------

From: Frank Sorenson <[email protected]>

[ Upstream commit e8a8d54c2d508891c142a928fc7d298c4c8bd0dd ]

These two allegedly fix the above:
ecababf08905 ("cifs: fix time_last_write stamp placement in setattr/truncate paths") 0e3ea5445c22 ("cifs: consolidate time_last_write stamp into _cifsFileInfo_put()")

thanks,

Signature · 2 lines
js
suse labs
#672 lore raw

Re: [PATCH 7.1 667/744] ptp: ptp_s390: Add missing facility check

In reply to Greg Kroah-Hartman
Quoted 25 lines · Greg Kroah-Hartman

7.1-stable review patch. If anyone has any objections, please let me know.

------------------

From: Sven Schnelle <[email protected]>

commit e78f1ac37afcb16cb6fef8a2c92591eab6558956 upstream.

Only register the physical clock when facility 28 is installed and PTFF QAF returns that PTFF QPT is available.

---
  drivers/ptp/ptp_s390.c |    6 +++++-
  1 file changed, 5 insertions(+), 1 deletion(-)

drivers/ptp/ptp_s390.c static __init int ptp_s390_init(void) · line 110

Quoted 4 lines
drivers/ptp/ptp_s390.c +1 -0
@@ -107,6 +107,9 @@ static __init int ptp_s390_init(void)
  	if (IS_ERR(ptp_stcke_clock))
  		return PTR_ERR(ptp_stcke_clock);
 
+	if (!test_facility(28) || !ptff_query(PTFF_QPT))

ptff_query() here needs:
9de445d8296a ("s390/ptff: Export ptff_function_mask[]")

thanks,

Signature · 2 lines
js
suse labs
author maintainer
#673 lore raw

Re: [PATCH 7.1 667/744] ptp: ptp_s390: Add missing facility check

Quoted 23 lines · Jiri Slaby
Quoted 22 lines · Greg Kroah-Hartman

7.1-stable review patch. If anyone has any objections, please let me know.

------------------

From: Sven Schnelle <[email protected]>

commit e78f1ac37afcb16cb6fef8a2c92591eab6558956 upstream.

Only register the physical clock when facility 28 is installed and PTFF QAF returns that PTFF QPT is available.

---
  drivers/ptp/ptp_s390.c |    6 +++++-
  1 file changed, 5 insertions(+), 1 deletion(-)
Quoted 9 lines

drivers/ptp/ptp_s390.c static __init int ptp_s390_init(void) · line 109

Quoted 6 lines
drivers/ptp/ptp_s390.c +1 -0
@@ -107,6 +107,9 @@ static __init int ptp_s390_init(void)
  	if (IS_ERR(ptp_stcke_clock))
  		return PTR_ERR(ptp_stcke_clock);
+	if (!test_facility(28) || !ptff_query(PTFF_QPT))

ptff_query() here needs:
9de445d8296a ("s390/ptff: Export ptff_function_mask[]")

Ah, good catch, now queued up. How did you find that thing?

greg k-h

author maintainer
#288 lore raw

Re: [PATCH 7.1 286/744] cifs: prevent readdir from changing file size due to stale directory metadata

In reply to Jiri Slaby
Quoted 7 lines · Jiri Slaby
Quoted 6 lines · Greg Kroah-Hartman

7.1-stable review patch. If anyone has any objections, please let me know.

------------------

From: Frank Sorenson <[email protected]>

Quoted 7 lines
Quoted 1 line

[ Upstream commit e8a8d54c2d508891c142a928fc7d298c4c8bd0dd ]

These two allegedly fix the above:
ecababf08905 ("cifs: fix time_last_write stamp placement in setattr/truncate paths")
0e3ea5445c22 ("cifs: consolidate time_last_write stamp into _cifsFileInfo_put()")

I don't scan Linus's tree (i.e. stuff before a -rc) so I missed these. Thanks for that, I'll go queue them up now.

greg k-h

#674 lore raw

Re: [PATCH 7.1 667/744] ptp: ptp_s390: Add missing facility check

In reply to Greg Kroah-Hartman
Quoted 34 lines · Greg Kroah-Hartman
Quoted 23 lines · Jiri Slaby
Quoted 22 lines · Greg Kroah-Hartman

7.1-stable review patch. If anyone has any objections, please let me know.

------------------

From: Sven Schnelle <[email protected]>

commit e78f1ac37afcb16cb6fef8a2c92591eab6558956 upstream.

Only register the physical clock when facility 28 is installed and PTFF QAF returns that PTFF QPT is available.

---
   drivers/ptp/ptp_s390.c |    6 +++++-
   1 file changed, 5 insertions(+), 1 deletion(-)
Quoted 9 lines

drivers/ptp/ptp_s390.c static __init int ptp_s390_init(void) · line 109

Quoted 6 lines
drivers/ptp/ptp_s390.c +1 -0
@@ -107,6 +107,9 @@ static __init int ptp_s390_init(void)
   	if (IS_ERR(ptp_stcke_clock))
   		return PTR_ERR(ptp_stcke_clock);
+	if (!test_facility(28) || !ptff_query(PTFF_QPT))

ptff_query() here needs:
9de445d8296a ("s390/ptff: Export ptff_function_mask[]")

Quoted 1 line

Ah, good catch, now queued up. How did you find that thing?

It broke openSUSE kernel build. We have:
config/s390x/default:CONFIG_PTP_S390=m

thanks,

Signature · 2 lines
js
suse labs
#675 lore raw

Re: [PATCH 7.1 667/744] ptp: ptp_s390: Add missing facility check

In reply to Greg Kroah-Hartman
Quoted 34 lines · Greg Kroah-Hartman
Quoted 23 lines · Jiri Slaby
Quoted 22 lines · Greg Kroah-Hartman

7.1-stable review patch. If anyone has any objections, please let me know.

------------------

From: Sven Schnelle <[email protected]>

commit e78f1ac37afcb16cb6fef8a2c92591eab6558956 upstream.

Only register the physical clock when facility 28 is installed and PTFF QAF returns that PTFF QPT is available.

---
  drivers/ptp/ptp_s390.c |    6 +++++-
  1 file changed, 5 insertions(+), 1 deletion(-)
Quoted 9 lines

drivers/ptp/ptp_s390.c static __init int ptp_s390_init(void) · line 109

Quoted 6 lines
drivers/ptp/ptp_s390.c +1 -0
@@ -107,6 +107,9 @@ static __init int ptp_s390_init(void)
  	if (IS_ERR(ptp_stcke_clock))
  		return PTR_ERR(ptp_stcke_clock);
+	if (!test_facility(28) || !ptff_query(PTFF_QPT))

ptff_query() here needs:
9de445d8296a ("s390/ptff: Export ptff_function_mask[]")

Quoted 1 line

Ah, good catch, now queued up. How did you find that thing?

Maybe we should change the documentation. I was wondering whether I have to mark that as a dependency, looked up ./process/stable-kernel-rules.rst which says:

Note that for a patch series, you do not have to list as prerequisites the patches present in the series itself. For example, if you have the following patch series::

patch1
patch2

where patch2 depends on patch1, you do not have to list patch1 as prerequisite of patch2 if you have already marked patch1 for stable inclusion.

Which lead me to believe that I don't have to add stable@ to the the other patch, but looks like this was wrong?

author maintainer
#676 lore raw

Re: [PATCH 7.1 667/744] ptp: ptp_s390: Add missing facility check

Quoted 49 lines · Sven Schnelle
Quoted 34 lines · Greg Kroah-Hartman
Quoted 23 lines · Jiri Slaby
Quoted 22 lines · Greg Kroah-Hartman

7.1-stable review patch. If anyone has any objections, please let me know.

------------------

From: Sven Schnelle <[email protected]>

commit e78f1ac37afcb16cb6fef8a2c92591eab6558956 upstream.

Only register the physical clock when facility 28 is installed and PTFF QAF returns that PTFF QPT is available.

---
  drivers/ptp/ptp_s390.c |    6 +++++-
  1 file changed, 5 insertions(+), 1 deletion(-)
Quoted 9 lines

drivers/ptp/ptp_s390.c static __init int ptp_s390_init(void) · line 109

Quoted 6 lines
drivers/ptp/ptp_s390.c +1 -0
@@ -107,6 +107,9 @@ static __init int ptp_s390_init(void)
  	if (IS_ERR(ptp_stcke_clock))
  		return PTR_ERR(ptp_stcke_clock);
+	if (!test_facility(28) || !ptff_query(PTFF_QPT))

ptff_query() here needs:
9de445d8296a ("s390/ptff: Export ptff_function_mask[]")

Quoted 1 line

Ah, good catch, now queued up. How did you find that thing?

Maybe we should change the documentation. I was wondering whether I have to mark that as a dependency, looked up ./process/stable-kernel-rules.rst which says:

Note that for a patch series, you do not have to list as prerequisites the patches present in the series itself. For example, if you have the following patch series::

patch1
patch2

Quoted 6 lines

where patch2 depends on patch1, you do not have to list patch1 as prerequisite of patch2 if you have already marked patch1 for stable inclusion.

Which lead me to believe that I don't have to add stable@ to the the other patch, but looks like this was wrong?

The issue is that was no link that I could find between 9de445d8296a ("s390/ptff: Export ptff_function_mask[]") and e78f1ac37afc ("ptp:
ptp_s390: Add missing facility check")

i.e. no "Fixes:" tag, or dependancy info, so if I took the "add missing..." patch, I didn't know that the export patch was required.

Not a big deal, happens at times, just if you know a commit fixes an older patch, a "Fixes:" tag is helpful.

thanks,

greg k-h

Tested-by on the v1 series
#761 lore raw
In reply to Greg Kroah-Hartman

Hi Greg

Quoted 10 lines · Greg Kroah-Hartman

This is the start of the stable review cycle for the 7.1.6 release. There are 744 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.

Responses should be made by Sat, 01 Aug 2026 14:13:38 +0000. Anything received after that time might be too late.

The whole patch series can be found in one patch at:

Quoted 9 lines
        https://www.kernel.org/pub/linux/kernel/v7.x/stable-review/patch-7.1.6-rc1.gz

or in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-7.1.y
and the diffstat can be found below.

thanks,

greg k-h

Linux version 7.1.6-rc1 tested.

Build successfully completed.
Boot successfully completed.
No dmesg regressions.
Video output normal.
Sound output normal.

Lenovo ThinkPad X1 Carbon Gen10(Intel i7-1260P(x86_64) arch linux)

[    0.000000] Linux version 7.1.6-rc1rv-gecc0c68d2044

(takeshi@ThinkPadX1Gen10J0764) (gcc (GCC) 16.1.1 20260728, GNU ld (GNU Binutils) 2.47) #1 SMP PREEMPT_DYNAMIC Fri Jul 31 19:44:25 JST 2026

Thanks

Tested-by on the v1 series
#762 lore raw
In reply to Greg Kroah-Hartman
Quoted 7 lines · Greg Kroah-Hartman

This is the start of the stable review cycle for the 7.1.6 release. There are 744 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.

Responses should be made by Sat, 01 Aug 2026 14:13:38 +0000. Anything received after that time might be too late.

Build and boot tested with qemu for x86_64, i386, arm64 and riscv and different configurations. No regressions observed.

Tested-by on the v1 series
#764 lore raw
In reply to Greg Kroah-Hartman
Quoted 9 lines · Greg Kroah-Hartman

This is the start of the stable review cycle for the 7.1.6 release. There are 744 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.

Responses should be made by Sat, 01 Aug 2026 14:13:38 +0000. Anything received after that time might be too late.

The whole patch series can be found in one patch at:

Quoted 8 lines
	https://www.kernel.org/pub/linux/kernel/v7.x/stable-review/patch-7.1.6-rc1.gz

or in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-7.1.y
and the diffstat can be found below.

thanks,

greg k-h

On ARCH_BRCMSTB using 32-bit and 64-bit ARM kernels, build tested on BMIPS_GENERIC:

Signature · 1 line
Florian
Tested-by on the v1 series
#765 lore raw
In reply to Greg Kroah-Hartman
Quoted 9 lines · Greg Kroah-Hartman

This is the start of the stable review cycle for the 7.1.6 release. There are 744 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.

Responses should be made by Sat, 01 Aug 2026 14:13:38 +0000. Anything received after that time might be too late.

The whole patch series can be found in one patch at:

Quoted 8 lines
	https://www.kernel.org/pub/linux/kernel/v7.x/stable-review/patch-7.1.6-rc1.gz

or in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-7.1.y
and the diffstat can be found below.

thanks,

greg k-h

Tested on 2 amd64 systems and an arm64 virtual machine. Working well, no regressions observed.

Signature · 1 line
-Barry K. Nathan  <[email protected]>
Tested-by on the v1 series
#766 lore raw
In reply to Greg Kroah-Hartman
Quoted 9 lines · Greg Kroah-Hartman

This is the start of the stable review cycle for the 7.1.6 release. There are 744 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.

Responses should be made by Sat, 01 Aug 2026 14:13:38 +0000. Anything received after that time might be too late.

The whole patch series can be found in one patch at:

Quoted 8 lines
	https://www.kernel.org/pub/linux/kernel/v7.x/stable-review/patch-7.1.6-rc1.gz

or in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-7.1.y
and the diffstat can be found below.

thanks,

greg k-h

Built and booted successfully on RISC-V RV64 (HiFive Unmatched).