The .adjphase operation is an operation that is implemented only by certain
PHCs. The sysfs device attribute node for querying the maximum phase
adjustment supported should not be exposed on devices that do not support
.adjphase.
Fixes: c3b60ab7a4df ("ptp: Add .getmaxphase callback to ptp_clock_info")
Signed-off-by: Rahul Rameshbabu <rrameshbabu(a)nvidia.com>
Reported-by: Nathan Chancellor <nathan(a)kernel.org>
Reported-by: Naresh Kamboju <naresh.kamboju(a)linaro.org>
Reported-by: Linux Kernel Functional Testing <lkft(a)linaro.org>
Link: https://lore.kernel.org/netdev/20230627162146.GA114473@dev-arch.thelio-3990…
Link: https://lore.kernel.org/all/CA+G9fYtKCZeAUTtwe69iK8Xcz1mOKQzwcy49wd+imZrfj6…
---
drivers/ptp/ptp_sysfs.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/ptp/ptp_sysfs.c b/drivers/ptp/ptp_sysfs.c
index 77219cdcd683..6e4d5456a885 100644
--- a/drivers/ptp/ptp_sysfs.c
+++ b/drivers/ptp/ptp_sysfs.c
@@ -358,6 +358,9 @@ static umode_t ptp_is_attribute_visible(struct kobject *kobj,
attr == &dev_attr_max_vclocks.attr) {
if (ptp->is_virtual_clock)
mode = 0;
+ } else if (attr == &dev_attr_max_phase_adjustment.attr) {
+ if (!info->adjphase || !info->getmaxphase)
+ mode = 0;
}
return mode;
--
2.40.1
This is the start of the stable review cycle for the 6.4.2 release.
There are 13 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 Wed, 05 Jul 2023 18:45:08 +0000.
Anything received after that time might be too late.
The whole patch series can be found in one patch at:
https://www.kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.4.2-rc1.…
or in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-6.4.y
and the diffstat can be found below.
thanks,
greg k-h
-------------
Pseudo-Shortlog of commits:
Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
Linux 6.4.2-rc1
Bas Nieuwenhuizen <bas(a)basnieuwenhuizen.nl>
drm/amdgpu: Validate VM ioctl flags.
Demi Marie Obenour <demi(a)invisiblethingslab.com>
dm ioctl: Avoid double-fetch of version
Ahmed S. Darwish <darwi(a)linutronix.de>
docs: Set minimal gtags / GNU GLOBAL version to 6.6.5
Ahmed S. Darwish <darwi(a)linutronix.de>
scripts/tags.sh: Resolve gtags empty index generation
Mike Kravetz <mike.kravetz(a)oracle.com>
hugetlb: revert use of page_cache_next_miss()
Finn Thain <fthain(a)linux-m68k.org>
nubus: Partially revert proc_create_single_data() conversion
Dan Williams <dan.j.williams(a)intel.com>
Revert "cxl/port: Enable the HDM decoder capability for switch ports"
Jeff Layton <jlayton(a)kernel.org>
nfs: don't report STATX_BTIME in ->getattr
Linus Torvalds <torvalds(a)linux-foundation.org>
execve: always mark stack as growing down during early stack setup
Mario Limonciello <mario.limonciello(a)amd.com>
PCI/ACPI: Call _REG when transitioning D-states
Bjorn Helgaas <bhelgaas(a)google.com>
PCI/ACPI: Validate acpi_pci_set_power_state() parameter
Thomas Weißschuh <linux(a)weissschuh.net>
tools/nolibc: x86_64: disable stack protector for _start
Max Filippov <jcmvbkbc(a)gmail.com>
xtensa: fix lock_mm_and_find_vma in case VMA not found
-------------
Diffstat:
Documentation/process/changes.rst | 7 +++++
Makefile | 4 +--
drivers/cxl/core/pci.c | 27 +++--------------
drivers/cxl/cxl.h | 1 -
drivers/cxl/port.c | 14 ++++-----
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 4 +++
drivers/md/dm-ioctl.c | 33 +++++++++++++--------
drivers/nubus/proc.c | 22 ++++++++++----
drivers/pci/pci-acpi.c | 53 +++++++++++++++++++++++++---------
fs/hugetlbfs/inode.c | 8 ++---
fs/nfs/inode.c | 2 +-
include/linux/mm.h | 4 ++-
mm/hugetlb.c | 12 ++++----
mm/nommu.c | 7 ++++-
scripts/tags.sh | 9 +++++-
tools/include/nolibc/arch-x86_64.h | 2 +-
tools/testing/cxl/Kbuild | 1 -
tools/testing/cxl/test/mock.c | 15 ----------
18 files changed, 128 insertions(+), 97 deletions(-)
Total jobs: 25
Total errors: 10 (40.00%)
LAVA errors: 0 (0.00%)
Test errors: 10 (40.00%)
Job errors: 0 (0.00%)
Infra errors: 0 (0.00%)
Canceled jobs: 0 (0.00%)
Device type: dragonboard-845c
Total jobs: 25
Total errors: 10 (40.00%)
Error type: Test
Error count: 10 (40.00%)
Error: Device NOT found!
Count: 2 (8.00%)
IDs:
db845c-04:
6565729
db845c-09:
6565739
Error: No match for error type 'Test', message 'lava-docker-test-shell timed out after 586 seconds'
Count: 1 (4.00%)
IDs:
db845c-04:
6565730
Error: No match for error type 'Test', message 'The network seems not available, as the ping command failed'
Count: 5 (20.00%)
IDs:
db845c-03:
6565706 6565707 6565708
db845c-04:
6565710 6565711
Error: No match for error type 'Test', message 'tradefed - adb device lost[c7cf1849]'
Count: 1 (4.00%)
IDs:
db845c-03:
6565709
Error: No match for error type 'Test', message 'tradefed - adb device lost[c9fcbffe]'
Count: 1 (4.00%)
IDs:
db845c-09:
6565700
Total jobs: 13
Total errors: 6 (46.15%)
LAVA errors: 0 (0.00%)
Test errors: 6 (46.15%)
Job errors: 0 (0.00%)
Infra errors: 0 (0.00%)
Canceled jobs: 0 (0.00%)
Device type: dragonboard-845c
Total jobs: 13
Total errors: 6 (46.15%)
Error type: Test
Error count: 6 (46.15%)
Error: No match for error type 'Test', message 'The network seems not available, as the ping command failed'
Count: 3 (23.08%)
IDs:
db845c-03:
6565704 6565705
db845c-09:
6565692
Error: No match for error type 'Test', message 'lava-docker-test-shell timed out after 586 seconds'
Count: 2 (15.38%)
IDs:
db845c-04:
6565701 6565702
Error: Device NOT found!
Count: 1 (7.69%)
IDs:
db845c-04:
6565699
Total jobs: 108
Total errors: 45 (41.67%)
LAVA errors: 0 (0.00%)
Test errors: 41 (37.96%)
Job errors: 3 (2.78%)
Infra errors: 1 (0.93%)
Canceled jobs: 0 (0.00%)
Device type: dragonboard-845c
Total jobs: 54
Total errors: 16 (29.63%)
Error type: Test
Error count: 13 (24.07%)
Error: No match for error type 'Test', message 'The network seems not available, as the ping command failed'
Count: 8 (14.81%)
IDs:
db845c-03:
6561386
db845c-04:
6560861
db845c-06:
6561316 6561320 6561321
db845c-07:
6560865
db845c-08:
6560897
db845c-09:
6561442
Error: No match for error type 'Test', message 'lava-test-interactive timed out after 300 seconds'
Count: 1 (1.85%)
IDs:
db845c-03:
6561429
Error: No match for error type 'Test', message 'lava-docker-test-shell timed out after 582 seconds'
Count: 1 (1.85%)
IDs:
db845c-09:
6561379
Error: No match for error type 'Test', message 'lava-docker-test-shell timed out after 283 seconds'
Count: 1 (1.85%)
IDs:
db845c-02:
6561260
Error: No match for error type 'Test', message 'tradefed - adb device lost[1028094e]'
Count: 1 (1.85%)
IDs:
db845c-10:
6560914
Error: No match for error type 'Test', message 'lava-docker-test-shell timed out after 578 seconds'
Count: 1 (1.85%)
IDs:
db845c-05:
6560898
Error type: Job
Error count: 3 (5.56%)
Error: No match for error type 'Job', message 'Unable to run 'docker' 'run' '--rm' '--init' '--workdir=/lava-downloads' '--device=/dev/kvm' '--mount=type=bind,source=/var/lib/lava/dispatcher/tmp/6561377/downloads/common,destination=/lava-downloads' 'linaro/lava-android-postprocess:latest' '/lava-downloads/postprocess.sh''
Count: 1 (1.85%)
IDs:
db845c-09:
6561377
Error: No match for error type 'Job', message 'Unable to run 'docker' 'run' '--rm' '--init' '--workdir=/lava-downloads' '--device=/dev/kvm' '--mount=type=bind,source=/var/lib/lava/dispatcher/tmp/6561376/downloads/common,destination=/lava-downloads' 'linaro/lava-android-postprocess:latest' '/lava-downloads/postprocess.sh''
Count: 1 (1.85%)
IDs:
db845c-09:
6561376
Error: No match for error type 'Job', message 'Unable to run 'docker' 'run' '--rm' '--init' '--workdir=/lava-downloads' '--device=/dev/kvm' '--mount=type=bind,source=/var/lib/lava/dispatcher/tmp/6561375/downloads/common,destination=/lava-downloads' 'linaro/lava-android-postprocess:latest' '/lava-downloads/postprocess.sh''
Count: 1 (1.85%)
IDs:
db845c-09:
6561375
Device type: x15
Total jobs: 11
Total errors: 2 (18.18%)
Error type: Infrastructure
Error count: 1 (9.09%)
Error: fastboot-flash-action timed out
Count: 1 (9.09%)
IDs:
x15-02:
6561381
Error type: Test
Error count: 1 (9.09%)
Error: No match for error type 'Test', message 'tradefed - adb device lost[0401001449a80802]'
Count: 1 (9.09%)
IDs:
x15-06:
6561310
Device type: hi6220-hikey-r2
Total jobs: 43
Total errors: 27 (62.79%)
Error type: Test
Error count: 27 (62.79%)
Error: No match for error type 'Test', message 'tradefed - adb device lost[4595FE84003F72FC]'
Count: 1 (2.33%)
IDs:
hikey-6220-r2-04:
6561388
Error: No match for error type 'Test', message 'tradefed - adb device lost[191FC75C003312EE]'
Count: 1 (2.33%)
IDs:
hikey-6220-r2-16:
6561382
Error: No match for error type 'Test', message 'The network seems not available, as the ping command failed'
Count: 3 (6.98%)
IDs:
hikey-6220-r2-14:
6561266 6561277 6561339
Error: No match for error type 'Test', message 'lava-test-interactive timed out after 300 seconds'
Count: 19 (44.19%)
IDs:
hikey-6220-r2-02:
6561290 6561297
hikey-6220-r2-03:
6561288 6561293 6561299
hikey-6220-r2-04:
6561302
hikey-6220-r2-05:
6561285 6561289 6561294
hikey-6220-r2-08:
6561284 6561287 6561292 6561298
hikey-6220-r2-09:
6561291 6561295 6561303
hikey-6220-r2-14:
6561274 6561296
hikey-6220-r2-16:
6561301
Error: No match for error type 'Test', message 'lava-docker-test-shell timed out after 583 seconds'
Count: 1 (2.33%)
IDs:
hikey-6220-r2-02:
6561281
Error: No match for error type 'Test', message 'tradefed - adb device lost[2047EDF7003CEE68]'
Count: 1 (2.33%)
IDs:
hikey-6220-r2-01:
6561279
Error: No match for error type 'Test', message 'tradefed - adb device lost[311A0E78003D2FFF]'
Count: 1 (2.33%)
IDs:
hikey-6220-r2-09:
6561273
Total jobs: 30
Total errors: 3 (10.00%)
LAVA errors: 0 (0.00%)
Test errors: 3 (10.00%)
Job errors: 0 (0.00%)
Infra errors: 0 (0.00%)
Canceled jobs: 0 (0.00%)
Device type: dragonboard-845c
Total jobs: 24
Total errors: 3 (12.50%)
Error type: Test
Error count: 3 (12.50%)
Error: No match for error type 'Test', message 'The network seems not available, as the ping command failed'
Count: 3 (12.50%)
IDs:
db845c-04:
6553063
db845c-05:
6553064
db845c-10:
6553072
Device type: x15
Total jobs: 6
Total errors: 0 (0.00%)
This is the start of the stable review cycle for the 6.1.37 release.
There are 31 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 Sun, 02 Jul 2023 05:56:20 +0000.
Anything received after that time might be too late.
The whole patch series can be found in one patch at:
https://www.kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.1.37-rc2…
or in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-6.1.y
and the diffstat can be found below.
thanks,
greg k-h
-------------
Pseudo-Shortlog of commits:
Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
Linux 6.1.37-rc2
Linus Torvalds <torvalds(a)linux-foundation.org>
sparc32: fix lock_mm_and_find_vma() conversion
Ricardo Cañuelo <ricardo.canuelo(a)collabora.com>
Revert "thermal/drivers/mediatek: Use devm_of_iomap to avoid resource leak in mtk_thermal_probe"
Mike Hommey <mh(a)glandium.org>
HID: logitech-hidpp: add HIDPP_QUIRK_DELAYED_INIT for the T651.
Jason Gerecke <jason.gerecke(a)wacom.com>
HID: wacom: Use ktime_t rather than int when dealing with timestamps
Ludvig Michaelsson <ludvig.michaelsson(a)yubico.com>
HID: hidraw: fix data race on device refcount
Zhang Shurong <zhang_shurong(a)foxmail.com>
fbdev: fix potential OOB read in fast_imageblit()
Linus Torvalds <torvalds(a)linux-foundation.org>
mm: always expand the stack with the mmap write lock held
Linus Torvalds <torvalds(a)linux-foundation.org>
execve: expand new process stack manually ahead of time
Liam R. Howlett <Liam.Howlett(a)oracle.com>
mm: make find_extend_vma() fail if write lock not held
Linus Torvalds <torvalds(a)linux-foundation.org>
powerpc/mm: convert coprocessor fault to lock_mm_and_find_vma()
Linus Torvalds <torvalds(a)linux-foundation.org>
mm/fault: convert remaining simple cases to lock_mm_and_find_vma()
Ben Hutchings <ben(a)decadent.org.uk>
arm/mm: Convert to using lock_mm_and_find_vma()
Ben Hutchings <ben(a)decadent.org.uk>
riscv/mm: Convert to using lock_mm_and_find_vma()
Ben Hutchings <ben(a)decadent.org.uk>
mips/mm: Convert to using lock_mm_and_find_vma()
Michael Ellerman <mpe(a)ellerman.id.au>
powerpc/mm: Convert to using lock_mm_and_find_vma()
Linus Torvalds <torvalds(a)linux-foundation.org>
arm64/mm: Convert to using lock_mm_and_find_vma()
Linus Torvalds <torvalds(a)linux-foundation.org>
mm: make the page fault mmap locking killable
Linus Torvalds <torvalds(a)linux-foundation.org>
mm: introduce new 'lock_mm_and_find_vma()' page fault helper
Peng Zhang <zhangpeng.00(a)bytedance.com>
maple_tree: fix potential out-of-bounds access in mas_wr_end_piv()
Oliver Hartkopp <socketcan(a)hartkopp.net>
can: isotp: isotp_sendmsg(): fix return error fix on TX path
Thomas Gleixner <tglx(a)linutronix.de>
x86/smp: Cure kexec() vs. mwait_play_dead() breakage
Thomas Gleixner <tglx(a)linutronix.de>
x86/smp: Use dedicated cache-line for mwait_play_dead()
Thomas Gleixner <tglx(a)linutronix.de>
x86/smp: Remove pointless wmb()s from native_stop_other_cpus()
Tony Battersby <tonyb(a)cybernetics.com>
x86/smp: Dont access non-existing CPUID leaf
Thomas Gleixner <tglx(a)linutronix.de>
x86/smp: Make stop_other_cpus() more robust
Borislav Petkov (AMD) <bp(a)alien8.de>
x86/microcode/AMD: Load late on both threads too
Tony Luck <tony.luck(a)intel.com>
mm, hwpoison: when copy-on-write hits poison, take page offline
Tony Luck <tony.luck(a)intel.com>
mm, hwpoison: try to recover from copy-on write faults
Paolo Abeni <pabeni(a)redhat.com>
mptcp: ensure listener is unhashed before updating the sk status
David Woodhouse <dwmw(a)amazon.co.uk>
mm/mmap: Fix error return in do_vmi_align_munmap()
Liam R. Howlett <Liam.Howlett(a)oracle.com>
mm/mmap: Fix error path in do_vmi_align_munmap()
-------------
Diffstat:
Makefile | 4 +-
arch/alpha/Kconfig | 1 +
arch/alpha/mm/fault.c | 13 +--
arch/arc/Kconfig | 1 +
arch/arc/mm/fault.c | 11 +--
arch/arm/Kconfig | 1 +
arch/arm/mm/fault.c | 63 +++-----------
arch/arm64/Kconfig | 1 +
arch/arm64/mm/fault.c | 46 ++--------
arch/csky/Kconfig | 1 +
arch/csky/mm/fault.c | 22 ++---
arch/hexagon/Kconfig | 1 +
arch/hexagon/mm/vm_fault.c | 18 +---
arch/ia64/mm/fault.c | 36 ++------
arch/loongarch/Kconfig | 1 +
arch/loongarch/mm/fault.c | 16 ++--
arch/m68k/mm/fault.c | 9 +-
arch/microblaze/mm/fault.c | 5 +-
arch/mips/Kconfig | 1 +
arch/mips/mm/fault.c | 12 +--
arch/nios2/Kconfig | 1 +
arch/nios2/mm/fault.c | 17 +---
arch/openrisc/mm/fault.c | 5 +-
arch/parisc/mm/fault.c | 23 +++--
arch/powerpc/Kconfig | 1 +
arch/powerpc/mm/copro_fault.c | 14 +--
arch/powerpc/mm/fault.c | 39 +--------
arch/riscv/Kconfig | 1 +
arch/riscv/mm/fault.c | 31 +++----
arch/s390/mm/fault.c | 5 +-
arch/sh/Kconfig | 1 +
arch/sh/mm/fault.c | 17 +---
arch/sparc/Kconfig | 1 +
arch/sparc/mm/fault_32.c | 32 ++-----
arch/sparc/mm/fault_64.c | 8 +-
arch/um/kernel/trap.c | 11 +--
arch/x86/Kconfig | 1 +
arch/x86/include/asm/cpu.h | 2 +
arch/x86/include/asm/smp.h | 2 +
arch/x86/kernel/cpu/microcode/amd.c | 2 +-
arch/x86/kernel/process.c | 28 +++++-
arch/x86/kernel/smp.c | 73 ++++++++++------
arch/x86/kernel/smpboot.c | 81 ++++++++++++++++--
arch/x86/mm/fault.c | 52 +-----------
arch/xtensa/Kconfig | 1 +
arch/xtensa/mm/fault.c | 14 +--
drivers/hid/hid-logitech-hidpp.c | 2 +-
drivers/hid/hidraw.c | 9 +-
drivers/hid/wacom_wac.c | 6 +-
drivers/hid/wacom_wac.h | 2 +-
drivers/iommu/amd/iommu_v2.c | 4 +-
drivers/iommu/io-pgfault.c | 2 +-
drivers/thermal/mtk_thermal.c | 14 +--
drivers/video/fbdev/core/sysimgblt.c | 2 +-
fs/binfmt_elf.c | 6 +-
fs/exec.c | 38 +++++----
include/linux/highmem.h | 26 ++++++
include/linux/mm.h | 21 ++---
lib/maple_tree.c | 11 +--
mm/Kconfig | 4 +
mm/gup.c | 6 +-
mm/memory.c | 159 ++++++++++++++++++++++++++++++++---
mm/mmap.c | 154 +++++++++++++++++++++++++--------
mm/nommu.c | 17 ++--
net/can/isotp.c | 5 +-
net/mptcp/pm_netlink.c | 1 +
net/mptcp/protocol.c | 26 ++++--
67 files changed, 682 insertions(+), 559 deletions(-)