Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
  1. Feb 19, 2023
  2. Feb 18, 2023
    • Linus Torvalds's avatar
      Merge tag 'x86-urgent-2023-02-19' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 925cf045
      Linus Torvalds authored
      Pull x86 fix from Thomas Gleixner:
       "A single fix for x86.
      
        Revert the recent change to the MTRR code which aimed to support
        SEV-SNP guests on Hyper-V. It caused a regression on XEN Dom0 kernels.
      
        The underlying issue of MTTR (mis)handling in the x86 code needs some
        deeper investigation and is definitely not 6.2 material"
      
      * tag 'x86-urgent-2023-02-19' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/mtrr: Revert 90b926e6 ("x86/pat: Fix pat_x_mtrr_type() for MTRR disabled case")
      925cf045
    • Linus Torvalds's avatar
      Merge tag 'timers-urgent-2023-02-19' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 0097c18e
      Linus Torvalds authored
      Pull timer fix from Thomas Gleixner:
       "A fix for a long standing issue in the alarmtimer code.
      
        Posix-timers armed with a short interval with an ignored signal result
        in an unpriviledged DoS. Due to the ignored signal the timer switches
        into self rearm mode. This issue had been "fixed" before but a rework
        of the alarmtimer code 5 years ago lost that workaround.
      
        There is no real good solution for this issue, which is also worked
        around in the core posix-timer code in the same way, but it certainly
        moved way up on the ever growing todo list"
      
      * tag 'timers-urgent-2023-02-19' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        alarmtimer: Prevent starvation by small intervals and SIG_IGN
      0097c18e
    • Linus Torvalds's avatar
      Merge tag 'irq-urgent-2023-02-19' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · a33d946c
      Linus Torvalds authored
      Pull irq fix from Thomas Gleixner:
       "A single build fix for the PCI/MSI infrastructure.
      
        The addition of the new alloc/free interfaces in this cycle forgot to
        add stub functions for pci_msix_alloc_irq_at() and pci_msix_free_irq()
        for the CONFIG_PCI_MSI=n case"
      
      * tag 'irq-urgent-2023-02-19' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        PCI/MSI: Provide missing stubs for CONFIG_PCI_MSI=n
      a33d946c
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · 5e725d11
      Linus Torvalds authored
      Pull kvm/x86 fixes from Paolo Bonzini:
      
       - zero all padding for KVM_GET_DEBUGREGS
      
       - fix rST warning
      
       - disable vPMU support on hybrid CPUs
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
        kvm: initialize all of the kvm_debugregs structure before sending it to userspace
        perf/x86: Refuse to export capabilities for hybrid PMUs
        KVM: x86/pmu: Disable vPMU support on hybrid CPUs (host PMUs)
        Documentation/hw-vuln: Fix rST warning
      5e725d11
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · 0c2822b1
      Linus Torvalds authored
      Pull arm64 regression fix from Will Deacon:
       "Apologies for the _extremely_ late pull request here, but we had a
        'perf' (i.e. CPU PMU) regression on the Apple M1 reported on Wednesday
        [1] which was introduced by bd275681 ("perf: Rewrite core context
        handling") during the merge window.
      
        Mark and I looked into this and noticed an additional problem caused
        by the same patch, where the 'CHAIN' event (used to combine two
        adjacent 32-bit counters into a single 64-bit counter) was not being
        filtered correctly. Mark posted a series on Thursday [2] which
        addresses both of these regressions and I queued it the same day.
      
        The changes are small, self-contained and have been confirmed to fix
        the original regression.
      
        Summary:
      
         - Fix 'perf' regression for non-standard CPU PMU hardware (i.e. Apple
           M1)"
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        arm64: perf: reject CHAIN events at creation time
        arm_pmu: fix event CPU filtering
      0c2822b1
    • Linus Torvalds's avatar
      Merge tag 'block-6.2-2023-02-17' of git://git.kernel.dk/linux · 0e9fd589
      Linus Torvalds authored
      Pull block fix from Jens Axboe:
       "I guess this is what can happen when you prep things early for going
        away, something else comes in last minute. This one fixes another
        regression in 6.2 for NVMe, from this release, and hence we should
        probably get it submitted for 6.2.
      
        Still waiting for the original reporter (see bugzilla linked in the
        commit) to test this, but Keith managed to setup and recreate the
        issue and tested the patch that way"
      
      * tag 'block-6.2-2023-02-17' of git://git.kernel.dk/linux:
        nvme-pci: refresh visible attrs for cmb attributes
      0e9fd589
  3. Feb 17, 2023
  4. Feb 16, 2023
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2023-02-17' of git://anongit.freedesktop.org/drm/drm · ec35307e
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Just a final collection of misc fixes, the biggest disables the
        recently added dynamic debugging support, it has a regression that
        needs some bigger fixes.
      
        Otherwise a bunch of fixes across the board, vc4, amdgpu and vmwgfx
        mostly, with some smaller i915 and ast fixes.
      
        drm:
         - dynamic debug disable for now
      
        fbdev:
         - deferred i/o device close fix
      
        amdgpu:
         - Fix GC11.x suspend warning
         - Fix display warning
      
        vc4:
         - YUV planes fix
         - hdmi display fix
         - crtc reduced blanking fix
      
        ast:
         - fix start address computation
      
        vmwgfx:
         - fix bo/handle races
      
        i915:
         - gen11 WA fix"
      
      * tag 'drm-fixes-2023-02-17' of git://anongit.freedesktop.org/drm/drm:
        drm/amd/display: Fail atomic_check early on normalize_zpos error
        drm/amd/amdgpu: fix warning during suspend
        drm/vmwgfx: Do not drop the reference to the handle too soon
        drm/vmwgfx: Stop accessing buffer objects which failed init
        drm/i915/gen11: Wa_1408615072/Wa_1407596294 should be on GT list
        drm: Disable dynamic debug as broken
        drm/ast: Fix start address computation
        fbdev: Fix invalid page access after closing deferred I/O devices
        drm/vc4: crtc: Increase setup cost in core clock calculation to handle extreme reduced blanking
        drm/vc4: hdmi: Always enable GCP with AVMUTE cleared
        drm/vc4: Fix YUV plane handling when planes are in different buffers
      ec35307e
    • Randy Dunlap's avatar
      MAINTAINERS: update FPU EMULATOR web page · 5c7388bc
      Randy Dunlap authored
      The web page entry for the FPU EMULATOR no longer works.  I notified Bill
      of this and he asked me to update it to this new entry.
      
      Link: https://lkml.kernel.org/r/20230214170208.17287-1-rdunlap@infradead.org
      
      
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Acked-by: default avatarBill Metzenthen <billm@melbpc.org.au>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      5c7388bc
    • Zach O'Keefe's avatar
      mm/MADV_COLLAPSE: set EAGAIN on unexpected page refcount · ae63c898
      Zach O'Keefe authored
      During collapse, in a few places we check to see if a given small page has
      any unaccounted references.  If the refcount on the page doesn't match our
      expectations, it must be there is an unknown user concurrently interested
      in the page, and so it's not safe to move the contents elsewhere. 
      However, the unaccounted pins are likely an ephemeral state.
      
      In this situation, MADV_COLLAPSE returns -EINVAL when it should return
      -EAGAIN.  This could cause userspace to conclude that the syscall
      failed, when it in fact could succeed by retrying.
      
      Link: https://lkml.kernel.org/r/20230125015738.912924-1-zokeefe@google.com
      
      
      Fixes: 7d8faaf1 ("mm/madvise: introduce MADV_COLLAPSE sync hugepage collapse")
      Signed-off-by: default avatarZach O'Keefe <zokeefe@google.com>
      Reported-by: default avatarHugh Dickins <hughd@google.com>
      Acked-by: default avatarHugh Dickins <hughd@google.com>
      Reviewed-by: default avatarYang Shi <shy828301@gmail.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      ae63c898
    • Qian Yingjin's avatar
      mm/filemap: fix page end in filemap_get_read_batch · 5956592c
      Qian Yingjin authored
      I was running traces of the read code against an RAID storage system to
      understand why read requests were being misaligned against the underlying
      RAID strips.  I found that the page end offset calculation in
      filemap_get_read_batch() was off by one.
      
      When a read is submitted with end offset 1048575, then it calculates the
      end page for read of 256 when it should be 255.  "last_index" is the index
      of the page beyond the end of the read and it should be skipped when get a
      batch of pages for read in @filemap_get_read_batch().
      
      The below simple patch fixes the problem.  This code was introduced in
      kernel 5.12.
      
      Link: https://lkml.kernel.org/r/20230208022400.28962-1-coolqyj@163.com
      
      
      Fixes: cbd59c48 ("mm/filemap: use head pages in generic_file_buffered_read")
      Signed-off-by: default avatarQian Yingjin <qian@ddn.com>
      Reviewed-by: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      5956592c
    • Benjamin Gray's avatar
      powerpc/64s: Prevent fallthrough to hash TLB flush when using radix · 4302abc6
      Benjamin Gray authored
      
      In the fix reconnecting hash__tlb_flush() to tlb_flush() the
      void return on radix__tlb_flush() was not restored and subsequently
      falls through to the restored hash__tlb_flush().
      
      Guard hash__tlb_flush() under an else to prevent this.
      
      Fixes: 1665c027 ("powerpc/64s: Reconnect tlb_flush() to hash__tlb_flush()")
      Reported-by: default avatar"Erhard F." <erhard_f@mailbox.org>
      Suggested-by: default avatarChristophe Leroy <christophe.leroy@csgroup.eu>
      Signed-off-by: default avatarBenjamin Gray <bgray@linux.ibm.com>
      Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
      Link: https://lore.kernel.org/r/20230217011434.115554-1-bgray@linux.ibm.com
      4302abc6
    • Dave Airlie's avatar
      Merge tag 'drm-intel-fixes-2023-02-16' of... · f7597e3c
      Dave Airlie authored
      Merge tag 'drm-intel-fixes-2023-02-16' of git://anongit.freedesktop.org/drm/drm-intel
      
       into drm-fixes
      
      - Moving gen11 hw wa to the right place. (Matt)
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Rodrigo Vivi <rodrigo.vivi@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/Y+47eUvwbafER35/@intel.com
      f7597e3c
    • Dave Airlie's avatar
      Merge tag 'drm-misc-fixes-2023-02-16' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes · a2a04b51
      Dave Airlie authored
      
      Multiple fixes in vc4 to address issues with YUV planes, HDMI and CRTC;
      an invalid page access fix for fbdev, mark dynamic debug as broken, a
      double free and refcounting fix for vmwgfx.
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Maxime Ripard <maxime@cerno.tech>
      Link: https://patchwork.freedesktop.org/patch/msgid/20230216091905.i5wswy4dd74x4br5@houat
      a2a04b51
    • Dave Airlie's avatar
      Merge tag 'amd-drm-fixes-6.2-2023-02-15' of... · caa068c9
      Dave Airlie authored
      Merge tag 'amd-drm-fixes-6.2-2023-02-15' of https://gitlab.freedesktop.org/agd5f/linux
      
       into drm-fixes
      
      amd-drm-fixes-6.2-2023-02-15:
      
      amdgpu:
      - Fix GC11.x suspend warning
      - Fix display warning
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      From: Alex Deucher <alexander.deucher@amd.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20230216041122.7714-1-alexander.deucher@amd.com
      caa068c9
    • Mark Rutland's avatar
      arm64: perf: reject CHAIN events at creation time · 853e2dac
      Mark Rutland authored
      
      Currently it's possible for a user to open CHAIN events arbitrarily,
      which we previously tried to rule out in commit:
      
        ca2b4972 ("arm64: perf: Reject stand-alone CHAIN events for PMUv3")
      
      Which allowed the events to be opened, but prevented them from being
      scheduled by by using an arm_pmu::filter_match hook to reject the
      relevant events.
      
      The CHAIN event filtering in the arm_pmu::filter_match hook was silently
      removed in commit:
      
        bd275681 ("perf: Rewrite core context handling")
      
      As a result, it's now possible for users to open CHAIN events, and for
      these to be installed arbitrarily.
      
      Fix this by rejecting CHAIN events at creation time. This avoids the
      creation of events which will never count, and doesn't require using the
      dynamic filtering.
      
      Attempting to open a CHAIN event (0x1e) will now be rejected:
      
      | # ./perf stat -e armv8_pmuv3/config=0x1e/ ls
      | perf
      |
      |  Performance counter stats for 'ls':
      |
      |    <not supported>      armv8_pmuv3/config=0x1e/
      |
      |        0.002197470 seconds time elapsed
      |
      |        0.000000000 seconds user
      |        0.002294000 seconds sys
      
      Other events (e.g. CPU_CYCLES / 0x11) will open as usual:
      
      | # ./perf stat -e armv8_pmuv3/config=0x11/ ls
      | perf
      |
      |  Performance counter stats for 'ls':
      |
      |            2538761      armv8_pmuv3/config=0x11/
      |
      |        0.002227330 seconds time elapsed
      |
      |        0.002369000 seconds user
      |        0.000000000 seconds sys
      
      Fixes: bd275681 ("perf: Rewrite core context handling")
      Signed-off-by: default avatarMark Rutland <mark.rutland@arm.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Ravi Bangoria <ravi.bangoria@amd.com>
      Cc: Will Deacon <will@kernel.org>
      Link: https://lore.kernel.org/r/20230216141240.3833272-3-mark.rutland@arm.com
      
      
      Signed-off-by: default avatarWill Deacon <will@kernel.org>
      853e2dac
    • Mark Rutland's avatar
      arm_pmu: fix event CPU filtering · 61d03862
      Mark Rutland authored
      
      Janne reports that perf has been broken on Apple M1 as of commit:
      
        bd275681 ("perf: Rewrite core context handling")
      
      That commit replaced the pmu::filter_match() callback with
      pmu::filter(), whose return value has the opposite polarity, with true
      implying events should be ignored rather than scheduled. While an
      attempt was made to update the logic in armv8pmu_filter() and
      armpmu_filter() accordingly, the return value remains inverted in a
      couple of cases:
      
      * If the arm_pmu does not have an arm_pmu::filter() callback,
        armpmu_filter() will always return whether the CPU is supported rather
        than whether the CPU is not supported.
      
        As a result, the perf core will not schedule events on supported CPUs,
        resulting in a loss of events. Additionally, the perf core will
        attempt to schedule events on unsupported CPUs, but this will be
        rejected by armpmu_add(), which may result in a loss of events from
        other PMUs on those unsupported CPUs.
      
      * If the arm_pmu does have an arm_pmu::filter() callback, and
        armpmu_filter() is called on a CPU which is not supported by the
        arm_pmu, armpmu_filter() will return false rather than true.
      
        As a result, the perf core will attempt to schedule events on
        unsupported CPUs, but this will be rejected by armpmu_add(), which may
        result in a loss of events from other PMUs on those unsupported CPUs.
      
      This means a loss of events can be seen with any arm_pmu driver, but
      with the ARMv8 PMUv3 driver (which is the only arm_pmu driver with an
      arm_pmu::filter() callback) the event loss will be more limited and may
      go unnoticed, which is how this issue evaded testing so far.
      
      Fix the CPU filtering by performing this consistently in
      armpmu_filter(), and remove the redundant arm_pmu::filter() callback and
      armv8pmu_filter() implementation.
      
      Commit bd275681 also silently removed the CHAIN event filtering from
      armv8pmu_filter(), which will be addressed by a separate patch without
      using the filter callback.
      
      Fixes: bd275681 ("perf: Rewrite core context handling")
      Reported-by: default avatarJanne Grunau <j@jannau.net>
      Link: https://lore.kernel.org/asahi/20230215-arm_pmu_m1_regression-v1-1-f5a266577c8d@jannau.net/
      
      
      Signed-off-by: default avatarMark Rutland <mark.rutland@arm.com>
      Cc: Will Deacon <will@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Ravi Bangoria <ravi.bangoria@amd.com>
      Cc: Asahi Lina <lina@asahilina.net>
      Cc: Eric Curtin <ecurtin@redhat.com>
      Tested-by: default avatarJanne Grunau <j@jannau.net>
      Link: https://lore.kernel.org/r/20230216141240.3833272-2-mark.rutland@arm.com
      
      
      Signed-off-by: default avatarWill Deacon <will@kernel.org>
      61d03862
    • Linus Torvalds's avatar
      Merge tag 'net-6.2-final' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · 3ac88fa4
      Linus Torvalds authored
      Pull networking fixes from Jakub Kicinski:
       "Fixes from the main networking tree only, probably because all
        sub-trees have backed off and haven't submitted their changes.
      
        None of the fixes here are particularly scary and no outstanding
        regressions. In an ideal world the "current release" sections would be
        empty at this stage but that never happens.
      
        Current release - regressions:
      
         - fix unwanted sign extension in netdev_stats_to_stats64()
      
        Current release - new code bugs:
      
         - initialize net->notrefcnt_tracker earlier
      
         - devlink: fix netdev notifier chain corruption
      
         - nfp: make sure mbox accesses in IPsec code are atomic
      
         - ice: fix check for weight and priority of a scheduling node
      
        Previous releases - regressions:
      
         - ice: xsk: fix cleaning of XDP_TX frame, prevent inf loop
      
         - igb: fix I2C bit banging config with external thermal sensor
      
        Previous releases - always broken:
      
         - sched: tcindex: update imperfect hash filters respecting rcu
      
         - mpls: fix stale pointer if allocation fails during device rename
      
         - dccp/tcp: avoid negative sk_forward_alloc by ipv6_pinfo.pktoptions
      
         - remove WARN_ON_ONCE(sk->sk_forward_alloc) from
           sk_stream_kill_queues()
      
         - af_key: fix heap information leak
      
         - ipv6: fix socket connection with DSCP (correct interpretation of
           the tclass field vs fib rule matching)
      
         - tipc: fix kernel warning when sending SYN message
      
         - vmxnet3: read RSS information from the correct descriptor (eop)"
      
      * tag 'net-6.2-final' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (35 commits)
        devlink: Fix netdev notifier chain corruption
        igb: conditionalize I2C bit banging on external thermal sensor support
        net: mpls: fix stale pointer if allocation fails during device rename
        net/sched: tcindex: search key must be 16 bits
        tipc: fix kernel warning when sending SYN message
        igb: Fix PPS input and output using 3rd and 4th SDP
        net: use a bounce buffer for copying skb->mark
        ixgbe: add double of VLAN header when computing the max MTU
        i40e: add double of VLAN header when computing the max MTU
        ixgbe: allow to increase MTU to 3K with XDP enabled
        net: stmmac: Restrict warning on disabling DMA store and fwd mode
        net/sched: act_ctinfo: use percpu stats
        net: stmmac: fix order of dwmac5 FlexPPS parametrization sequence
        ice: fix lost multicast packets in promisc mode
        ice: Fix check for weight and priority of a scheduling node
        bnxt_en: Fix mqprio and XDP ring checking logic
        net: Fix unwanted sign extension in netdev_stats_to_stats64()
        net/usb: kalmia: Don't pass act_len in usb_bulk_msg error path
        net: openvswitch: fix possible memory leak in ovs_meter_cmd_set()
        af_key: Fix heap information leak
        ...
      3ac88fa4
    • Linus Torvalds's avatar
      Merge tag 'block-6.2-2023-02-16' of git://git.kernel.dk/linux · d3d6f0eb
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
       "Just a few NVMe fixes that should go into the 6.2 release, adding a
        quirk and fixing two issues introduced in this release:
      
         - NVMe fixes via Christoph:
             - Always return an ERR_PTR from nvme_pci_alloc_dev (Irvin Cote)
             - Add bogus ID quirk for ADATA SX6000PNP (Daniel Wagner)
             - Set the DMA mask earlier (Christoph Hellwig)"
      
      * tag 'block-6.2-2023-02-16' of git://git.kernel.dk/linux:
        nvme-pci: always return an ERR_PTR from nvme_pci_alloc_dev
        nvme-pci: set the DMA mask earlier
        nvme-pci: add bogus ID quirk for ADATA SX6000PNP
      d3d6f0eb
    • Linus Torvalds's avatar
      Merge tag 'spi-v6.2-rc8-abi' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi · b5596f1d
      Linus Torvalds authored
      Pull spi fix from Mark Brown:
       "One more last minute patch for v6.2 updating the parsing of the newly
        added spi-cs-setup-delay-ns.
      
        It's been pointed out that due to the way DT parsing works the change
        in property size is ABI visible so let's not let a release go out
        without it being fixed. The change got split from some earlier ABI
        related fixes to the property since the first version sent had a build
        error"
      
      * tag 'spi-v6.2-rc8-abi' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi:
        spi: Use a 32-bit DT property for spi-cs-setup-delay-ns
      b5596f1d
    • Linus Torvalds's avatar
      Merge tag 'gpio-fixes-for-v6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux · 18902059
      Linus Torvalds authored
      Pull gpio fixes from Bartosz Golaszewski:
      
       - fix a potential Kconfig issue with gpio-mlxbf2 not selecting
         GPIOLIB_IRQCHIP
      
       - another immutable irqchip conversion, this time for gpio-vf610
      
       - fix a wakeup issue on Clevo NH5xAx
      
      * tag 'gpio-fixes-for-v6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux:
        gpio: mlxbf2: select GPIOLIB_IRQCHIP
        gpiolib: acpi: Add a ignore wakeup quirk for Clevo NH5xAx
        gpio: vf610: make irq_chip immutable
        gpiolib: acpi: remove redundant declaration
      18902059
    • Christoph Hellwig's avatar
      stop mainaining UUID · 88d35583
      Christoph Hellwig authored
      
      The uuid code is very low maintainance now that the major overhaul
      has completed, and doesn't need it's own tree.  All the recent work
      has been done by Andy who'd like to stay on as a reviewer without an
      explicit tree.
      
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      Acked-by: default avatarAndy Shevchenko <andy@kernel.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      88d35583
    • Christoph Hellwig's avatar
      orphan sysvfs · a8cd2990
      Christoph Hellwig authored
      
      This code has been stale for years and I have no way to test it.
      
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      a8cd2990
    • Greg Kroah-Hartman's avatar
      kvm: initialize all of the kvm_debugregs structure before sending it to userspace · 2c10b614
      Greg Kroah-Hartman authored
      
      When calling the KVM_GET_DEBUGREGS ioctl, on some configurations, there
      might be some unitialized portions of the kvm_debugregs structure that
      could be copied to userspace.  Prevent this as is done in the other kvm
      ioctls, by setting the whole structure to 0 before copying anything into
      it.
      
      Bonus is that this reduces the lines of code as the explicit flag
      setting and reserved space zeroing out can be removed.
      
      Cc: Sean Christopherson <seanjc@google.com>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: Dave Hansen <dave.hansen@linux.intel.com>
      Cc: <x86@kernel.org>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Cc: stable <stable@kernel.org>
      Reported-by: default avatarXingyuan Mo <hdthky0@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Message-Id: <20230214103304.3689213-1-gregkh@linuxfoundation.org>
      Tested-by: default avatarXingyuan Mo <hdthky0@gmail.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      2c10b614
Loading