Skip to content
  1. Jan 06, 2023
    • Linus Torvalds's avatar
      Merge tag 'fbdev-for-6.2-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev · 5e9af4b4
      Linus Torvalds authored
      Pull fbdev fixes from Helge Deller:
      
       - Fix Matrox G200eW initialization failure
      
       - Fix build failure of offb driver when built as module
      
       - Optimize stack usage in omapfb
      
      * tag 'fbdev-for-6.2-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev:
        fbdev: omapfb: avoid stack overflow warning
        fbdev: matroxfb: G200eW: Increase max memory from 1 MB to 16 MB
        fbdev: atyfb: use strscpy() to instead of strncpy()
        fbdev: omapfb: use strscpy() to instead of strncpy()
        fbdev: make offb driver tristate
      5e9af4b4
  2. Jan 05, 2023
    • Arnd Bergmann's avatar
      fbdev: omapfb: avoid stack overflow warning · 634cf6ea
      Arnd Bergmann authored
      
      
      The dsi_irq_stats structure is a little too big to fit on the
      stack of a 32-bit task, depending on the specific gcc options:
      
      fbdev/omap2/omapfb/dss/dsi.c: In function 'dsi_dump_dsidev_irqs':
      fbdev/omap2/omapfb/dss/dsi.c:1621:1: error: the frame size of 1064 bytes is larger than 1024 bytes [-Werror=frame-larger-than=]
      
      Since this is only a debugfs file, performance is not critical,
      so just dynamically allocate it, and print an error message
      in there in place of a failure code when the allocation fails.
      
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      634cf6ea
    • Linus Torvalds's avatar
      Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost · 41c03ba9
      Linus Torvalds authored
      Pull virtio updates from Michael Tsirkin:
       "Mostly fixes all over the place, a couple of cleanups"
      
      * tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost: (32 commits)
        virtio_blk: Fix signedness bug in virtblk_prep_rq()
        vdpa_sim_net: should not drop the multicast/broadcast packet
        vdpasim: fix memory leak when freeing IOTLBs
        vdpa: conditionally fill max max queue pair for stats
        vdpa/vp_vdpa: fix kfree a wrong pointer in vp_vdpa_remove
        vduse: Validate vq_num in vduse_validate_config()
        tools/virtio: remove smp_read_barrier_depends()
        tools/virtio: remove stray characters
        vhost_vdpa: fix the crash in unmap a large memory
        virtio: Implementing attribute show with sysfs_emit
        virtio-crypto: fix memory leak in virtio_crypto_alg_skcipher_close_session()
        tools/virtio: Variable type completion
        vdpa_sim: fix vringh initialization in vdpasim_queue_ready()
        virtio_blk: use UINT_MAX instead of -1U
        vhost-vdpa: fix an iotlb memory leak
        vhost: fix range used in translate_desc()
        vringh: fix range used in iotlb_translate()
        vhost/vsock: Fix error handling in vhost_vsock_init()
        vdpa_sim: fix possible memory leak in vdpasim_net_init() and vdpasim_blk_init()
        tools: Delete the unneeded semicolon after curly braces
        ...
      41c03ba9
    • Linus Torvalds's avatar
      Merge tag 'x86-urgent-2023-01-04' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 512dee0c
      Linus Torvalds authored
      Pull misc x86 fixes from Ingo Molnar:
       "Fix a double-free bug, a binutils warning, a header namespace clash
        and a bug in ib_prctl_set()"
      
      * tag 'x86-urgent-2023-01-04' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/bugs: Flush IBP in ib_prctl_set()
        x86/insn: Avoid namespace clash by separating instruction decoder MMIO type from MMIO trace type
        x86/asm: Fix an assembler warning with current binutils
        x86/kexec: Fix double-free of elf header buffer
      512dee0c
    • Linus Torvalds's avatar
      Merge tag 'f2fs-fix-6.2-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs · 2ac44821
      Linus Torvalds authored
      Pull f2fs fixes from Jaegeuk Kim:
      
       - fix a null pointer dereference in f2fs_issue_flush, which occurs by
         the combination of mount/remount options.
      
       - fix a bug in per-block age-based extent_cache newly introduced in
         6.2-rc1, which reported a wrong age information in extent_cache.
      
       - fix a kernel panic if extent_tree was not created, which was caught
         by a wrong BUG_ON
      
      * tag 'f2fs-fix-6.2-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs:
        f2fs: let's avoid panic if extent_tree is not created
        f2fs: should use a temp extent_info for lookup
        f2fs: don't mix to use union values in extent_info
        f2fs: initialize extent_cache parameter
        f2fs: fix to avoid NULL pointer dereference in f2fs_issue_flush()
      2ac44821
    • Linus Torvalds's avatar
      Merge tag 'nfsd-6.2-2' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux · b61778fa
      Linus Torvalds authored
      Pull nfsd fixes from Chuck Lever:
      
       - Fix a filecache UAF during NFSD shutdown
      
       - Avoid exposing automounted mounts on NFS re-exports
      
      * tag 'nfsd-6.2-2' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux:
        nfsd: fix handling of readdir in v4root vs. mount upcall timeout
        nfsd: shut down the NFSv4 state objects before the filecache
      b61778fa
  3. Jan 04, 2023
  4. Jan 03, 2023
  5. Jan 02, 2023
    • Jeff Layton's avatar
      nfsd: fix handling of readdir in v4root vs. mount upcall timeout · cad85337
      Jeff Layton authored
      
      
      If v4 READDIR operation hits a mountpoint and gets back an error,
      then it will include that entry in the reply and set RDATTR_ERROR for it
      to the error.
      
      That's fine for "normal" exported filesystems, but on the v4root, we
      need to be more careful to only expose the existence of dentries that
      lead to exports.
      
      If the mountd upcall times out while checking to see whether a
      mountpoint on the v4root is exported, then we have no recourse other
      than to fail the whole operation.
      
      Cc: Steve Dickson <steved@redhat.com>
      Link: https://bugzilla.kernel.org/show_bug.cgi?id=216777
      Reported-by: default avatarJianHong Yin <yin-jianhong@163.com>
      Signed-off-by: default avatarJeff Layton <jlayton@kernel.org>
      Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
      Cc: <stable@vger.kernel.org>
      cad85337
    • Paul Menzel's avatar
      fbdev: matroxfb: G200eW: Increase max memory from 1 MB to 16 MB · f685dd7a
      Paul Menzel authored
      Commit 62d89a7d ("video: fbdev: matroxfb: set maxvram of vbG200eW to
      the same as vbG200 to avoid black screen") accidently decreases the
      maximum memory size for the Matrox G200eW (102b:0532) from 8 MB to 1 MB
      by missing one zero. This caused the driver initialization to fail with
      the messages below, as the minimum required VRAM size is 2 MB:
      
           [    9.436420] matroxfb: Matrox MGA-G200eW (PCI) detected
           [    9.444502] matroxfb: cannot determine memory size
           [    9.449316] matroxfb: probe of 0000:0a:03.0 failed with error -1
      
      So, add the missing 0 to make it the intended 16 MB. Successfully tested on
      the Dell PowerEdge R910/0KYD3D, BIOS 2.10.0 08/29/2013, that the warning is
      gone.
      
      While at it, add a leading 0 to the maxdisplayable entry, so it’s aligned
      properly. The value could probably also be increased from 8 MB to 16 MB, as
      the G200 uses the same values, but I have not checked any datasheet.
      
      Note, matroxfb is obsolete and superseded by the maintained DRM driver
      mga200, which is used by default on most systems where both drivers are
      available. Therefore, on most systems it was only a cosmetic issue.
      
      Fixes: 62d89a7d
      
       ("video: fbdev: matroxfb: set maxvram of vbG200eW to the same as vbG200 to avoid black screen")
      Link: https://lore.kernel.org/linux-fbdev/972999d3-b75d-5680-fcef-6e6905c52ac5@suse.de/T/#mb6953a9995ebd18acc8552f99d6db39787aec775
      Cc: it+linux-fbdev@molgen.mpg.de
      Cc: Z. Liu <liuzx@knownsec.com>
      Cc: Rich Felker <dalias@libc.org>
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarPaul Menzel <pmenzel@molgen.mpg.de>
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      f685dd7a
    • Linus Torvalds's avatar
      Linux 6.2-rc2 · 88603b6d
      Linus Torvalds authored
      88603b6d
    • Linus Torvalds's avatar
      Merge tag 'perf_urgent_for_v6.2_rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 150aae35
      Linus Torvalds authored
      Pull perf fixes from Borislav Petkov:
      
       - Pass only an initialized perf event attribute to the LSM hook
      
       - Fix a use-after-free on the perf syscall's error path
      
       - A potential integer overflow fix in amd_core_pmu_init()
      
       - Fix the cgroup events tracking after the context handling rewrite
      
       - Return the proper value from the inherit_event() function on error
      
      * tag 'perf_urgent_for_v6.2_rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        perf/core: Call LSM hook after copying perf_event_attr
        perf: Fix use-after-free in error path
        perf/x86/amd: fix potential integer overflow on shift of a int
        perf/core: Fix cgroup events tracking
        perf core: Return error pointer if inherit_event() fails to find pmu_ctx
      150aae35
    • Linus Torvalds's avatar
      Merge tag 'x86_urgent_for_v6.2_rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 5b129817
      Linus Torvalds authored
      Pull x86 fixes from Borislav Petkov:
      
       - Two fixes to correct how kprobes handles INT3 now that they're added
         by other functionality like the rethunks and not only kgdb
      
       - Remove __init section markings of two functions which are referenced
         by a function in the .text section
      
      * tag 'x86_urgent_for_v6.2_rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/kprobes: Fix optprobe optimization check with CONFIG_RETHUNK
        x86/kprobes: Fix kprobes instruction boudary check with CONFIG_RETHUNK
        x86/calldepth: Fix incorrect init section references
      5b129817
    • Linus Torvalds's avatar
      Merge tag 'locking_urgent_for_v6.2_rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 95d248d1
      Linus Torvalds authored
      Pull locking fixes from Borislav Petkov:
      
       - Prevent the leaking of a debug timer in futex_waitv()
      
       - A preempt-RT mutex locking fix, adding the proper acquire semantics
      
      * tag 'locking_urgent_for_v6.2_rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        futex: Fix futex_waitv() hrtimer debug object leak on kcalloc error
        rtmutex: Add acquire semantics for rtmutex lock acquisition slow path
      95d248d1
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2023-01-01' of git://anongit.freedesktop.org/drm/drm · 8b419482
      Linus Torvalds authored
      Pull drm fixes from Daniel Vetter:
       "I'm just back from the mountains, and Dave is out at the beach and
        should be back in a week again. Just i915 fixes and since Rodrigo
        bothered to make the pull last week I figured I should warm up gpg and
        forward this in a nice signed tag as a new years present!
      
         - i915 fixes for newer platforms
      
         - i915 locking rework to not give up in vm eviction fallback path too
           early"
      
      * tag 'drm-fixes-2023-01-01' of git://anongit.freedesktop.org/drm/drm:
        drm/i915/dsi: fix MIPI_BKLT_EN_1 native GPIO index
        drm/i915/dsi: add support for ICL+ native MIPI GPIO sequence
        drm/i915/uc: Fix two issues with over-size firmware files
        drm/i915: improve the catch-all evict to handle lock contention
        drm/i915: Remove __maybe_unused from mtl_info
        drm/i915: fix TLB invalidation for Gen12.50 video and compute engines
      8b419482
  6. Jan 01, 2023
    • Daniel Vetter's avatar
      Merge tag 'drm-intel-fixes-2022-12-30' of... · a9f5a752
      Daniel Vetter authored
      
      Merge tag 'drm-intel-fixes-2022-12-30' of git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
      
      - fix TLB invalidation for DG2 and newer platforms. (Andrzej)
      - Remove __maybe_unused from mtl_info (Lucas)
      - improve the catch-all evict to handle lock contention (Matt Auld)
      - Fix two issues with over-size (GuC/HuC) firmware files (John)
      - Fix DSI resume issues on ICL+ (Jani)
      
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      From: Rodrigo Vivi <rodrigo.vivi@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/Y662ijDHrZCjTFla@intel.com
      a9f5a752
    • Linus Torvalds's avatar
      Merge tag 'kbuild-fixes-v6.2' of... · e4cf7c25
      Linus Torvalds authored
      Merge tag 'kbuild-fixes-v6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
      
      Pull Kbuild fixes from Masahiro Yamada:
      
       - Fix broken BuildID
      
       - Add srcrpm-pkg to the help message
      
       - Fix the option order for modpost built with musl libc
      
       - Fix the build dependency of rpm-pkg for openSUSE
      
      * tag 'kbuild-fixes-v6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
        fixdep: remove unneeded <stdarg.h> inclusion
        kbuild: sort single-targets alphabetically again
        kbuild: rpm-pkg: add libelf-devel as alternative for BuildRequires
        kbuild: Fix running modpost with musl libc
        kbuild: add a missing line for help message
        .gitignore: ignore *.rpm
        arch: fix broken BuildID for arm64 and riscv
        kconfig: Add static text for search information in help menu
      e4cf7c25
    • Linus Torvalds's avatar
      Merge tag 'ata-6.2-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata · e39d9b9f
      Linus Torvalds authored
      Pull ata fix from Damien Le Moal:
       "A single fix to address an issue with wake from suspend with PCS
        adapters, from Adam"
      
      * tag 'ata-6.2-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata:
        ata: ahci: Fix PCS quirk application for suspend
      e39d9b9f
  7. Dec 31, 2022
    • Linus Torvalds's avatar
      Merge tag 'acpi-6.2-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · c8451c14
      Linus Torvalds authored
      Pull ACPI fixes from Rafael Wysocki:
       "These are new ACPI IRQ override quirks, low-power S0 idle (S0ix)
        support adjustments and ACPI backlight handling fixes, mostly for
        platforms using AMD chips.
      
        Specifics:
      
         - Add ACPI IRQ override quirks for Asus ExpertBook B2502, Lenovo
           14ALC7, and XMG Core 15 (Hans de Goede, Adrian Freund, Erik
           Schumacher).
      
         - Adjust ACPI video detection fallback path to prevent
           non-operational ACPI backlight devices from being created on
           systems where the native driver does not detect a suitable panel
           (Mario Limonciello).
      
         - Fix Apple GMUX backlight detection (Hans de Goede).
      
         - Add a low-power S0 idle (S0ix) handling quirk for HP Elitebook 865
           and stop using AMD-specific low-power S0 idle code path for systems
           with Rembrandt chips and newer (Mario Limonciello)"
      
      * tag 'acpi-6.2-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        ACPI: x86: s2idle: Stop using AMD specific codepath for Rembrandt+
        ACPI: x86: s2idle: Force AMD GUID/_REV 2 on HP Elitebook 865
        ACPI: video: Fix Apple GMUX backlight detection
        ACPI: resource: Add Asus ExpertBook B2502 to Asus quirks
        ACPI: resource: do IRQ override on Lenovo 14ALC7
        ACPI: resource: do IRQ override on XMG Core 15
        ACPI: video: Don't enable fallback path for creating ACPI backlight by default
        drm/amd/display: Report to ACPI video if no panels were found
        ACPI: video: Allow GPU drivers to report no panels
      c8451c14
    • Linus Torvalds's avatar
      Merge tag 'sound-6.2-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 262eef26
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "Just a few small fixes:
      
         - A regression fix for HDMI audio on HD-audio AMD codecs
      
         - Fixes for LINE6 MIDI handling
      
         - HD-audio quirk for Dell laptops"
      
      * tag 'sound-6.2-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
        ALSA: hda/hdmi: Static PCM mapping again with AMD HDMI codecs
        ALSA: hda/realtek: Apply dual codec fixup for Dell Latitude laptops
        ALSA: line6: fix stack overflow in line6_midi_transmit
        ALSA: line6: correct midi status byte when receiving data from podxt
      262eef26
  8. Dec 30, 2022
    • Rafael J. Wysocki's avatar
      Merge branches 'acpi-resource' and 'acpi-video' · 0948a9ef
      Rafael J. Wysocki authored
      Merge ACPI resource handling quirks and ACPI backlight handling fixes
      for 6.2-rc2:
      
       - Add ACPI IRQ override quirks for Asus ExpertBook B2502, Lenovo
         14ALC7, and XMG Core 15 (Hans de Goede, Adrian Freund,  Erik
         Schumacher).
      
       - Adjust ACPI video detection fallback path to prevent non-operational
         ACPI backlight devices from being created on systems where the native
         driver does not detect a suitable panel (Mario Limonciello).
      
       - Fix Apple GMUX backlight detection (Hans de Goede).
      
      * acpi-resource:
        ACPI: resource: Add Asus ExpertBook B2502 to Asus quirks
        ACPI: resource: do IRQ override on Lenovo 14ALC7
        ACPI: resource: do IRQ override on XMG Core 15
      
      * acpi-video:
        ACPI: video: Fix Apple GMUX backlight detection
        ACPI: video: Don't enable fallback path for creating ACPI backlight by default
        drm/amd/display: Report to ACPI video if no panels were found
        ACPI: video: Allow GPU drivers to report no panels
      0948a9ef
    • Jani Nikula's avatar
      drm/i915/dsi: fix MIPI_BKLT_EN_1 native GPIO index · 6217e9f0
      Jani Nikula authored
      Due to copy-paste fail, MIPI_BKLT_EN_1 would always use PPS index 1,
      never 0. Fix the sloppiest commit in recent memory.
      
      Fixes: 963bbdb3
      
       ("drm/i915/dsi: add support for ICL+ native MIPI GPIO sequence")
      Reported-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
      Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20221220140105.313333-1-jani.nikula@intel.com
      (cherry picked from commit a561933c
      
      )
      Cc: stable@vger.kernel.org # 6.1
      Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
      6217e9f0
    • Jani Nikula's avatar
      drm/i915/dsi: add support for ICL+ native MIPI GPIO sequence · 963bbdb3
      Jani Nikula authored
      
      
      Starting from ICL, the default for MIPI GPIO sequences seems to be using
      native GPIOs i.e. GPIOs available in the GPU. These native GPIOs reuse
      many pins that quite frankly seem scary to poke based on the VBT
      sequences. We pretty much have to trust that the board is configured
      such that the relevant HPD, PP_CONTROL and GPIO bits aren't used for
      anything else.
      
      MIPI sequence v4 also adds a flag to fall back to non-native sequences.
      
      v5:
      - Wrap SHOTPLUG_CTL_DDI modification in spin_lock() in icp_irq_handler()
        too (Ville)
      - References instead of Closes issue 6131 because this does not fix everything
      
      v4:
      - Wrap SHOTPLUG_CTL_DDI modification in spin_lock_irq() (Ville)
      
      v3:
      - Fix -Wbitwise-conditional-parentheses (kernel test robot <lkp@intel.com>)
      
      v2:
      - Fix HPD pin output set (impacts GPIOs 0 and 5)
      - Fix GPIO data output direction set (impacts GPIOs 4 and 9)
      - Reduce register accesses to single intel_de_rwm()
      
      References: https://gitlab.freedesktop.org/drm/intel/-/issues/6131
      Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
      Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20221219105955.4014451-1-jani.nikula@intel.com
      (cherry picked from commit f087cfe6
      
      )
      Cc: stable@vger.kernel.org # 6.1
      Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
      963bbdb3
    • Masahiro Yamada's avatar
      fixdep: remove unneeded <stdarg.h> inclusion · 6a5e25fc
      Masahiro Yamada authored
      This is unneeded since commit 69304379
      
       ("fixdep: use fflush() and
      ferror() to ensure successful write to files").
      
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      6a5e25fc
    • Masahiro Yamada's avatar
      kbuild: sort single-targets alphabetically again · aa4847db
      Masahiro Yamada authored
      
      
      This was previously alphabetically sorted. Sort it again.
      
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      Reviewed-by: default avatarMiguel Ojeda <ojeda@kernel.org>
      Reviewed-by: default avatarNathan Chancellor <nathan@kernel.org>
      aa4847db
    • Masahiro Yamada's avatar
      kbuild: rpm-pkg: add libelf-devel as alternative for BuildRequires · 02a893bc
      Masahiro Yamada authored
      Guoqing Jiang reports that openSUSE cannot compile the kernel rpm due
      to "BuildRequires: elfutils-libelf-devel" added by commit 8818039f
      ("kbuild: add ability to make source rpm buildable using koji").
      The relevant package name in openSUSE is libelf-devel.
      
      Add it as an alternative package.
      
      BTW, if it is impossible to solve the build requirement, the final
      resort would be:
      
          $ make RPMOPTS=--nodeps rpm-pkg
      
      This passes --nodeps to the rpmbuild command so it will not verify
      build dependencies. This is useful to test rpm builds on non-rpm
      system. On Debian/Ubuntu, for example, you can install rpmbuild by
      'apt-get install rpm'.
      
      NOTE1:
        Likewise, it is possible to bypass the build dependency check for
        debian package builds:
      
          $ make DPKG_FLAGS=-d deb-pkg
      
      NOTE2:
        The 'or' operator is supported since RPM 4.13. So, old distros such
        as CentOS 7 will break. I suggest installing newer rpmbuild in such
        cases.
      
      Link: https://lore.kernel.org/linux-kbuild/ee227d24-9c94-bfa3-166a-4ee6b5dfea09@linux.dev/T/#u
      Fixes: 8818039f
      
       ("kbuild: add ability to make source rpm buildable using koji")
      Reported-by: default avatarGuoqing Jiang <guoqing.jiang@linux.dev>
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      Reviewed-by: default avatarNathan Chancellor <nathan@kernel.org>
      Tested-by: default avatarGuoqing Jiang <guoqing.jiang@linux.dev>
      Acked-by: default avatarJonathan Toppins <jtoppins@redhat.com>
      02a893bc
    • Samuel Holland's avatar
      kbuild: Fix running modpost with musl libc · 63ffe00d
      Samuel Holland authored
      commit 3d57e1b7 ("kbuild: refactor the prerequisites of the modpost
      rule") moved 'vmlinux.o' inside modpost-args, possibly before some of
      the other options. However, getopt() in musl libc follows POSIX and
      stops looking for options upon reaching the first non-option argument.
      As a result, the '-T' option is misinterpreted as a positional argument,
      and the build fails:
      
        make -f ./scripts/Makefile.modpost
           scripts/mod/modpost   -E   -o Module.symvers vmlinux.o -T modules.order
        -T: No such file or directory
        make[1]: *** [scripts/Makefile.modpost:137: Module.symvers] Error 1
        make: *** [Makefile:1960: modpost] Error 2
      
      The fix is to move all options before 'vmlinux.o' in modpost-args.
      
      Fixes: 3d57e1b7
      
       ("kbuild: refactor the prerequisites of the modpost rule")
      Signed-off-by: default avatarSamuel Holland <samuel@sholland.org>
      Reviewed-by: default avatarNathan Chancellor <nathan@kernel.org>
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      63ffe00d
    • Jun ASAKA's avatar
      kbuild: add a missing line for help message · 9c9b55a5
      Jun ASAKA authored
      
      
      The help message line for building the source RPM package was missing.
      Added it.
      
      Signed-off-by: default avatarJun ASAKA <JunASAKA@zzy040330.moe>
      Reviewed-by: default avatarNathan Chancellor <nathan@kernel.org>
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      9c9b55a5
    • Masahiro Yamada's avatar
      .gitignore: ignore *.rpm · 924d28b3
      Masahiro Yamada authored
      Previously, *.rpm files were created under $HOME/rpmbuild/, but since
      commit 8818039f
      
       ("kbuild: add ability to make source rpm buildable
      using koji"), srcrpm-pkg creates the source rpm in the kernel tree
      because it sets '_srcrpmdir'.
      
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      924d28b3
    • Masahiro Yamada's avatar
      arch: fix broken BuildID for arm64 and riscv · 99cb0d91
      Masahiro Yamada authored
      Dennis Gilmore reports that the BuildID is missing in the arm64 vmlinux
      since commit 994b7ac1 ("arm64: remove special treatment for the
      link order of head.o").
      
      The issue is that the type of .notes section, which contains the BuildID,
      changed from NOTES to PROGBITS.
      
      Ard Biesheuvel figured out that whichever object gets linked first gets
      to decide the type of a section. The PROGBITS type is the result of the
      compiler emitting .note.GNU-stack as PROGBITS rather than NOTE.
      
      While Ard provided a fix for arm64, I want to fix this globally because
      the same issue is happening on riscv since commit 2348e6bf ("riscv:
      remove special treatment for the link order of head.o"). This problem
      will happen in general for other architectures if they start to drop
      unneeded entries from scripts/head-object-list.txt.
      
      Discard .note.GNU-stack in include/asm-generic/vmlinux.lds.h.
      
      Link: https://lore.kernel.org/lkml/CAABkxwuQoz1CTbyb57n0ZX65eSYiTonFCU8-LCQc=74D=xE=rA@mail.gmail.com/
      Fixes: 994b7ac1 ("arm64: remove special treatment for the link order of head.o")
      Fixes: 2348e6bf
      
       ("riscv: remove special treatment for the link order of head.o")
      Reported-by: default avatarDennis Gilmore <dennis@ausil.us>
      Suggested-by: default avatarArd Biesheuvel <ardb@kernel.org>
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      Acked-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
      99cb0d91
    • John Harrison's avatar
      drm/i915/uc: Fix two issues with over-size firmware files · 11ce8fd8
      John Harrison authored
      In the case where a firmware file is too large (e.g. someone
      downloaded a web page ASCII dump from github...), the firmware object
      is released but the pointer is not zerod. If no other firmware file
      was found then release would be called again leading to a double kfree.
      
      Also, the size check was only being applied to the initial firmware
      load not any of the subsequent attempts. So move the check into a
      wrapper that is used for all loads.
      
      Fixes: 01624116
      
       ("drm/i915/uc: use different ggtt pin offsets for uc loads")
      Signed-off-by: default avatarJohn Harrison <John.C.Harrison@Intel.com>
      Reviewed-by: default avatarDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
      Cc: Alan Previn <alan.previn.teres.alexis@intel.com>
      Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
      Cc: Matt Roper <matthew.d.roper@intel.com>
      Cc: Jani Nikula <jani.nikula@intel.com>
      Cc: Matthew Auld <matthew.auld@intel.com>
      Cc: "Thomas Hellström" <thomas.hellstrom@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20221221193031.687266-4-John.C.Harrison@Intel.com
      (cherry picked from commit 4071d98b
      
      )
      Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
      11ce8fd8