pull-request: Fixes: b2b56a163230 ("gpio: tegra186: Check GPIO pin permission before access.")

Bug #2064549 reported by Brad Figg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-nvidia (Ubuntu)
New
Undecided
Unassigned
Noble
Fix Released
Undecided
Unassigned
linux-nvidia-6.5 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The controller has several register bits describing access control
information for a given GPIO pin. When SCR_SEC_[R|W]EN is unset, it
means we have full read/write access to all the registers for given GPIO
pin. When SCR_SEC[R|W]EN is set, it means we need to further check the
accompanying SCR_SEC_G1[R|W] bit to determine read/write access to all
the registers for given GPIO pin.

This check was previously declaring that a GPIO pin was accessible
only if either of the following conditions were met:

  - SCR_SEC_REN + SCR_SEC_WEN both set

    or

  - SCR_SEC_REN + SCR_SEC_WEN both set and
    SCR_SEC_G1R + SCR_SEC_G1W both set

Update the check to properly handle cases where only one of
SCR_SEC_REN or SCR_SEC_WEN is set.

Ian May (ian-may)
no longer affects: linux-nvidia-6.5 (Ubuntu Noble)
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote :

This bug is awaiting verification that the linux-nvidia-6.5/6.5.0-1021.22 kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-jammy-linux-nvidia-6.5' to 'verification-done-jammy-linux-nvidia-6.5'. If the problem still exists, change the tag 'verification-needed-jammy-linux-nvidia-6.5' to 'verification-failed-jammy-linux-nvidia-6.5'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

tags: added: kernel-spammed-jammy-linux-nvidia-6.5-v2 verification-needed-jammy-linux-nvidia-6.5
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote :

This bug is awaiting verification that the linux-nvidia/6.8.0-1007.7 kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-noble-linux-nvidia' to 'verification-done-noble-linux-nvidia'. If the problem still exists, change the tag 'verification-needed-noble-linux-nvidia' to 'verification-failed-noble-linux-nvidia'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

tags: added: kernel-spammed-noble-linux-nvidia-v2 verification-needed-noble-linux-nvidia
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (78.1 KiB)

This bug was fixed in the package linux-nvidia - 6.8.0-1007.7

---------------
linux-nvidia (6.8.0-1007.7) noble; urgency=medium

  * noble/linux-nvidia: 6.8.0-1007.7 -proposed tracker (LP: #2064335)

  * Packaging resync (LP: #1786013)
    - [Packaging] update Ubuntu.md
    - [Packaging] debian.nvidia/dkms-versions -- update from kernel-versions
      (main/2024.04.29)

  * Add Real-time Linux Analysis tool (rtla) to linux-tools (LP: #2059080)
    - [Packaging] add Real-time Linux Analysis tool (rtla) to linux-tools
    - [Packaging] update dependencies for rtla

  * Provide python perf module (LP: #2051560)
    - [Packaging] enable perf python module

  * Address out-of-bounds issue when using TPM SPI interface (LP: #2067429)
    - tpm_tis_spi: Account for SPI header when allocating TPM SPI xfer buffer

  * linux-nvidia-6.5_6.5.0-1014.14 breaks with earlier BIOS release, and
    modeset/resolutions are wrong (LP: #2061930) // Blacklist coresight_etm4x
    (LP: #2067106)
    - [Packaging] blacklist coresight_etm4x

  * Update the pre-built nvidia-fs driver to the 2.20.5 version (LP: #2066955)
    - NVIDIA: [Packaging] update nvidia-fs driver to latest version

  * backport arm64 THP improvements from 6.9 (LP: #2059316)
    - arm64/mm: make set_ptes() robust when OAs cross 48-bit boundary
    - arm/pgtable: define PFN_PTE_SHIFT
    - nios2/pgtable: define PFN_PTE_SHIFT
    - powerpc/pgtable: define PFN_PTE_SHIFT
    - riscv/pgtable: define PFN_PTE_SHIFT
    - s390/pgtable: define PFN_PTE_SHIFT
    - sparc/pgtable: define PFN_PTE_SHIFT
    - mm/pgtable: make pte_next_pfn() independent of set_ptes()
    - arm/mm: use pte_next_pfn() in set_ptes()
    - powerpc/mm: use pte_next_pfn() in set_ptes()
    - mm/memory: factor out copying the actual PTE in copy_present_pte()
    - mm/memory: pass PTE to copy_present_pte()
    - mm/memory: optimize fork() with PTE-mapped THP
    - mm/memory: ignore dirty/accessed/soft-dirty bits in folio_pte_batch()
    - mm/memory: ignore writable bit in folio_pte_batch()
    - mm: clarify the spec for set_ptes()
    - mm: thp: batch-collapse PMD with set_ptes()
    - mm: introduce pte_advance_pfn() and use for pte_next_pfn()
    - arm64/mm: convert pte_next_pfn() to pte_advance_pfn()
    - x86/mm: convert pte_next_pfn() to pte_advance_pfn()
    - mm: tidy up pte_next_pfn() definition
    - arm64/mm: convert READ_ONCE(*ptep) to ptep_get(ptep)
    - arm64/mm: convert set_pte_at() to set_ptes(..., 1)
    - arm64/mm: convert ptep_clear() to ptep_get_and_clear()
    - arm64/mm: new ptep layer to manage contig bit
    - arm64/mm: dplit __flush_tlb_range() to elide trailing DSB
    - NVIDIA: [Config] arm64: ARM64_CONTPTE=y
    - arm64/mm: wire up PTE_CONT for user mappings
    - arm64/mm: implement new wrprotect_ptes() batch API
    - arm64/mm: implement new [get_and_]clear_full_ptes() batch APIs
    - mm: add pte_batch_hint() to reduce scanning in folio_pte_batch()
    - arm64/mm: implement pte_batch_hint()
    - arm64/mm: __always_inline to improve fork() perf
    - arm64/mm: automatically fold contpte mappings
    - arm64/mm: export contpte symbols only to GPL users
    - arm64/mm: improve comment in contpte_ptep_get_lock...

Changed in linux-nvidia (Ubuntu Noble):
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (75.2 KiB)

This bug was fixed in the package linux-nvidia-6.5 - 6.5.0-1021.22

---------------
linux-nvidia-6.5 (6.5.0-1021.22) jammy; urgency=medium

  * jammy/linux-nvidia-6.5: 6.5.0-1021.21 -proposed tracker (LP: #2065892)

  * Packaging resync (LP: #1786013)
    - [Packaging] debian.nvidia-6.5/dkms-versions -- update from kernel-versions
      (main/2024.04.29)

  * Address out-of-bounds issue when using TPM SPI interface (LP: #2067429)
    - tpm_tis_spi: Account for SPI header when allocating TPM SPI xfer buffer

  * Perf-stat tool does not support ipc and ipc_rate monitoring on NVIDIA Grace
    system (LP: #2063461)
    - perf vendor events arm64: Update stall_slot workaround for N2 r0p3
    - perf vendor events arm64: Update N2 and V2 metrics and events using Arm
      telemetry repo
    - perf jevents: Add a new expression builtin strcmp_cpuid_str()
    - perf jevents metric: Fix type of strcmp_cpuid_str

  * PCI/MSI: Prevent MSI hardware interrupt number truncation (LP: #2065721)
    - PCI/MSI: Prevent MSI hardware interrupt number truncation

  * Apply patch to set CONFIG_EFI_CAPSULE_LOADER=y for arm64 (LP: #2067111)
    - NVIDIA: [Config] EFI: set CAPSULE_LOADER=y for arm64

  * pull-request: Fixes: b2b56a163230 ("gpio: tegra186: Check GPIO pin
    permission before access.") (LP: #2064549)
    - Revert "NVIDIA: SAUCE: Revert "gpio: tegra186: Check GPIO pin permission
      before access.""
    - gpio: tegra186: Fix tegra186_gpio_is_accessible() check

  [ Ubuntu: 6.5.0-41.41 ]

  * mantic/linux: 6.5.0-41.41 -proposed tracker (LP: #2065893)
  * CVE-2024-21823
    - VFIO: Add the SPR_DSA and SPR_IAX devices to the denylist
    - dmaengine: idxd: add a new security check to deal with a hardware erratum
    - dmaengine: idxd: add a write() method for applications to submit work

  [ Ubuntu: 6.5.0-40.40 ]

  * mantic/linux: 6.5.0-40.40 -proposed tracker (LP: #2063709)
  * [Mantic] Compile broken on armhf (cc1 out of memory) (LP: #2060446)
    - Revert "minmax: relax check to allow comparison between unsigned arguments
      and signed constants"
    - Revert "minmax: allow comparisons of 'int' against 'unsigned char/short'"
    - Revert "minmax: allow min()/max()/clamp() if the arguments have the same
      signedness."
    - Revert "minmax: add umin(a, b) and umax(a, b)"
  * Drop fips-checks script from trees (LP: #2055083)
    - [Packaging] Remove fips-checks script
  * alsa/realtek: adjust max output valume for headphone on 2 LG machines
    (LP: #2058573)
    - ALSA: hda/realtek: fix the hp playback volume issue for LG machines
  * Mantic update: upstream stable patchset 2024-03-27 (LP: #2059284)
    - asm-generic: make sparse happy with odd-sized put_unaligned_*()
    - powerpc/mm: Fix null-pointer dereference in pgtable_cache_add
    - arm64: irq: set the correct node for VMAP stack
    - drivers/perf: pmuv3: don't expose SW_INCR event in sysfs
    - powerpc: Fix build error due to is_valid_bugaddr()
    - powerpc/mm: Fix build failures due to arch_reserved_kernel_pages()
    - powerpc/64s: Fix CONFIG_NUMA=n build due to create_section_mapping()
    - x86/boot: Ignore NMIs during very early boot
    - powerpc: pmd_move_must_withdraw() is on...

Changed in linux-nvidia-6.5 (Ubuntu):
status: New → Fix Released
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote :

This bug is awaiting verification that the linux-nvidia-6.8/6.8.0-1008.8~22.04.1 kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-jammy-linux-nvidia-6.8' to 'verification-done-jammy-linux-nvidia-6.8'. If the problem still exists, change the tag 'verification-needed-jammy-linux-nvidia-6.8' to 'verification-failed-jammy-linux-nvidia-6.8'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

tags: added: kernel-spammed-jammy-linux-nvidia-6.8-v2 verification-needed-jammy-linux-nvidia-6.8
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.