1. 28 10月, 2021 13 次提交
  2. 22 10月, 2021 8 次提交
  3. 21 10月, 2021 5 次提交
    • M
      fuse: clean up error exits in fuse_fill_super() · 964d32e5
      Miklos Szeredi 提交于
      Instead of "goto err", return error directly, since there's no error
      cleanup to do now.
      Signed-off-by: NMiklos Szeredi <mszeredi@redhat.com>
      964d32e5
    • M
      fuse: always initialize sb->s_fs_info · 80019f11
      Miklos Szeredi 提交于
      Syzkaller reports a null pointer dereference in fuse_test_super() that is
      caused by sb->s_fs_info being NULL.
      
      This is due to the fact that fuse_fill_super() is initializing s_fs_info,
      which is too late, it's already on the fs_supers list.  The initialization
      needs to be done in sget_fc() with the sb_lock held.
      
      Move allocation of fuse_mount and fuse_conn from fuse_fill_super() into
      fuse_get_tree().
      
      After this ->kill_sb() will always be called with non-NULL ->s_fs_info,
      hence fuse_mount_destroy() can drop the test for non-NULL "fm".
      
      Reported-by: syzbot+74a15f02ccb51f398601@syzkaller.appspotmail.com
      Fixes: 5d5b74aa ("fuse: allow sharing existing sb")
      Signed-off-by: NMiklos Szeredi <mszeredi@redhat.com>
      80019f11
    • M
      fuse: clean up fuse_mount destruction · c191cd07
      Miklos Szeredi 提交于
      1. call fuse_mount_destroy() for open coded variants
      
      2. before deactivate_locked_super() don't need fuse_mount destruction since
      that will now be done (if ->s_fs_info is not cleared)
      
      3. rearrange fuse_mount setup in fuse_get_tree_submount() so that the
      regular pattern can be used
      Signed-off-by: NMiklos Szeredi <mszeredi@redhat.com>
      c191cd07
    • M
      fuse: get rid of fuse_put_super() · a27c061a
      Miklos Szeredi 提交于
      The ->put_super callback is called from generic_shutdown_super() in case of
      a fully initialized sb.  This is called from kill_***_super(), which is
      called from ->kill_sb instances.
      
      Fuse uses ->put_super to destroy the fs specific fuse_mount and drop the
      reference to the fuse_conn, while it does the same on each error case
      during sb setup.
      
      This patch moves the destruction from fuse_put_super() to
      fuse_mount_destroy(), called at the end of all ->kill_sb instances.  A
      follup patch will clean up the error paths.
      Signed-off-by: NMiklos Szeredi <mszeredi@redhat.com>
      a27c061a
    • M
      fuse: check s_root when destroying sb · d534d31d
      Miklos Szeredi 提交于
      Checking "fm" works because currently sb->s_fs_info is cleared on error
      paths; however, sb->s_root is what generic_shutdown_super() checks to
      determine whether the sb was fully initialized or not.
      
      This change will allow cleanup of sb setup error paths.
      Signed-off-by: NMiklos Szeredi <mszeredi@redhat.com>
      d534d31d
  4. 18 10月, 2021 14 次提交
    • L
      Linux 5.15-rc6 · 519d8195
      Linus Torvalds 提交于
      519d8195
    • L
      Merge tag 'libata-5.15-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata · cd079b1f
      Linus Torvalds 提交于
      Pull libata fixes from Damien Le Moal:
       "Two fixes for this cycle:
      
         - Fix a null pointer dereference in ahci-platform driver (from Hai)
      
         - Fix uninitialized variables in pata_legacy driver (from Dan)"
      
      * tag 'libata-5.15-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata:
        ata: ahci_platform: fix null-ptr-deref in ahci_platform_enable_regulators()
        pata_legacy: fix a couple uninitialized variable bugs
      cd079b1f
    • L
      Merge tag 'block-5.15-2021-10-17' of git://git.kernel.dk/linux-block · f2b3420b
      Linus Torvalds 提交于
      Pull block fixes from Jens Axboe:
       "Bigger than usual for this point in time, the majority is fixing some
        issues around BDI lifetimes with the move from the request_queue to
        the disk in this release. In detail:
      
         - Series on draining fs IO for del_gendisk() (Christoph)
      
         - NVMe pull request via Christoph:
              - fix the abort command id (Keith Busch)
              - nvme: fix per-namespace chardev deletion (Adam Manzanares)
      
         - brd locking scope fix (Tetsuo)
      
         - BFQ fix (Paolo)"
      
      * tag 'block-5.15-2021-10-17' of git://git.kernel.dk/linux-block:
        block, bfq: reset last_bfqq_created on group change
        block: warn when putting the final reference on a registered disk
        brd: reduce the brd_devices_mutex scope
        kyber: avoid q->disk dereferences in trace points
        block: keep q_usage_counter in atomic mode after del_gendisk
        block: drain file system I/O on del_gendisk
        block: split bio_queue_enter from blk_queue_enter
        block: factor out a blk_try_enter_queue helper
        block: call submit_bio_checks under q_usage_counter
        nvme: fix per-namespace chardev deletion
        block/rnbd-clt-sysfs: fix a couple uninitialized variable bugs
        nvme-pci: Fix abort command id
      f2b3420b
    • L
      Merge tag 'io_uring-5.15-2021-10-17' of git://git.kernel.dk/linux-block · cc0af0a9
      Linus Torvalds 提交于
      Pull io_uring fix from Jens Axboe:
       "Just a single fix for a wrong condition for grabbing a lock, a
        regression in this merge window"
      
      * tag 'io_uring-5.15-2021-10-17' of git://git.kernel.dk/linux-block:
        io_uring: fix wrong condition to grab uring lock
      cc0af0a9
    • L
      Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost · 3bb50f85
      Linus Torvalds 提交于
      Pull virtio fixes from Michael Tsirkin:
       "Fixes up some issues in rc5"
      
      * tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost:
        vhost-vdpa: Fix the wrong input in config_cb
        VDUSE: fix documentation underline warning
        Revert "virtio-blk: Add validation for block size in config space"
        vhost_vdpa: unset vq irq before freeing irq
        virtio: write back F_VERSION_1 before validate
      3bb50f85
    • L
      Merge tag 'powerpc-5.15-4' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · be9eb2f0
      Linus Torvalds 提交于
      Pull powerpc fixes from Michael Ellerman:
      
       - Fix a bug where guests on P9 with interrupts passed through could get
         stuck in synchronize_irq().
      
       - Fix a bug in KVM on P8 where secondary threads entering a guest would
         write outside their allocated stack.
      
       - Fix a bug in KVM on P8 where secondary threads could confuse the host
         offline code and cause the guest or host to crash.
      
      Thanks to Cédric Le Goater.
      
      * tag 'powerpc-5.15-4' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        KVM: PPC: Book3S HV: Make idle_kvm_start_guest() return 0 if it went to guest
        KVM: PPC: Book3S HV: Fix stack handling in idle_kvm_start_guest()
        powerpc/xive: Discard disabled interrupts in get_irqchip_state()
      be9eb2f0
    • L
      Merge tag 'objtool_urgent_for_v5.15_rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 6890acac
      Linus Torvalds 提交于
      Pull objtool fixes from Borislav Petkov:
      
       - Update section headers before the respective relocations to not
         trigger a safety check in elftoolchain's implementation of libelf
      
       - Do not add garbage data to the .rela.orc_unwind_ip section
      
      * tag 'objtool_urgent_for_v5.15_rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        objtool: Update section header before relocations
        objtool: Check for gelf_update_rel[a] failures
      6890acac
    • L
      Merge tag 'edac_urgent_for_v5.15_rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras · f644750c
      Linus Torvalds 提交于
      Pull EDAC fix from Borislav Petkov:
      
       - Log the "correct" uncorrectable error count in the armada_xp driver
      
      * tag 'edac_urgent_for_v5.15_rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras:
        EDAC/armada-xp: Fix output of uncorrectable error counter
      f644750c
    • L
      Merge tag 'perf_urgent_for_v5.15_rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 60ebc28b
      Linus Torvalds 提交于
      Pull perf fix from Borislav Petkov:
      
       - Add Sapphire Rapids to the list of CPUs supporting the SMI count MSR
      
      * tag 'perf_urgent_for_v5.15_rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        perf/x86/msr: Add Sapphire Rapids CPU support
      60ebc28b
    • L
      Merge tag 'efi-urgent-for-v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 424e7d87
      Linus Torvalds 提交于
      Pull EFI fixes from Borislav Petkov:
       "Forwarded from Ard Biesheuvel through the tip tree. Ard will send
        stuff directly in the near future.
      
        Low priority fixes but fixes nonetheless:
      
         - update stub diagnostic print that is no longer accurate
      
         - avoid statically allocated buffer for CPER error record decoding
      
         - avoid sleeping on the efi_runtime semaphore when calling the
           ResetSystem EFI runtime service"
      
      * tag 'efi-urgent-for-v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        efi: Change down_interruptible() in virt_efi_reset_system() to down_trylock()
        efi/cper: use stack buffer for error record decoding
        efi/libstub: Simplify "Exiting bootservices" message
      424e7d87
    • L
      Merge tag 'x86_urgent_for_v5.15_rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 89f6602d
      Linus Torvalds 提交于
      Pull x86 fixes from Borislav Petkov:
      
       - Do not enable AMD memory encryption in Kconfig by default due to
         shortcomings of some platforms, leading to boot failures.
      
       - Mask out invalid bits in the MXCSR for 32-bit kernels again because
         Thomas and I don't know how to mask out bits properly. Third time's
         the charm.
      
      * tag 'x86_urgent_for_v5.15_rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/fpu: Mask out the invalid MXCSR bits properly
        x86/Kconfig: Do not enable AMD_MEM_ENCRYPT_ACTIVE_BY_DEFAULT automatically
      89f6602d
    • L
      Merge tag 'driver-core-5.15-rc6' of... · cf52ad5f
      Linus Torvalds 提交于
      Merge tag 'driver-core-5.15-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
      
      Pull driver core fixes from Greg KH:
       "Here are some small driver core fixes for 5.15-rc6, all of which have
        been in linux-next for a while with no reported issues.
      
        They include:
      
         - kernfs negative dentry bugfix
      
         - simple pm bus fixes to resolve reported issues"
      
      * tag 'driver-core-5.15-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
        drivers: bus: Delete CONFIG_SIMPLE_PM_BUS
        drivers: bus: simple-pm-bus: Add support for probing simple bus only devices
        driver core: Reject pointless SYNC_STATE_ONLY device links
        kernfs: don't create a negative dentry if inactive node exists
      cf52ad5f
    • L
      Merge tag 'char-misc-5.15-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc · e3572dff
      Linus Torvalds 提交于
      Pull char/misc driver fixes from Greg KH:
       "Here are some small char/misc driver fixes for 5.15-rc6 for reported
        issues that include:
      
         - habanalabs driver fixes
      
         - mei driver fixes and new ids
      
         - fpga new device ids
      
         - MAINTAINER file updates for fpga subsystem
      
         - spi module id table additions and fixes
      
         - fastrpc locking fixes
      
         - nvmem driver fix
      
        All of these have been in linux-next for a while with no reported
        issues"
      
      * tag 'char-misc-5.15-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
        eeprom: 93xx46: fix MODULE_DEVICE_TABLE
        nvmem: Fix shift-out-of-bound (UBSAN) with byte size cells
        mei: hbm: drop hbm responses on early shutdown
        mei: me: add Ice Lake-N device id.
        eeprom: 93xx46: Add SPI device ID table
        eeprom: at25: Add SPI ID table
        misc: HI6421V600_IRQ should depend on HAS_IOMEM
        misc: fastrpc: Add missing lock before accessing find_vma()
        cb710: avoid NULL pointer subtraction
        misc: gehc: Add SPI ID table
        MAINTAINERS: Drop outdated FPGA Manager website
        MAINTAINERS: Add Hao and Yilun as maintainers
        habanalabs: fix resetting args in wait for CS IOCTL
        fpga: ice40-spi: Add SPI device ID table
      e3572dff
    • L
      Merge tag 'staging-5.15-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging · a563ae0f
      Linus Torvalds 提交于
      Pull staging and IIO driver fixes from Greg KH:
       "Here are a number of small IIO and staging driver fixes for 5.15-rc6.
      
        They include:
      
         - vc04_services bugfix for reported problem
      
         - r8188eu array underflow fix
      
         - iio driver fixes for a lot of tiny reported issues.
      
        All of these have been in linux-next for a while with no reported
        issues"
      
      * tag 'staging-5.15-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
        staging: r8188eu: prevent array underflow in rtw_hal_update_ra_mask()
        staging: vc04_services: shut up out-of-range warning
        iio: light: opt3001: Fixed timeout error when 0 lux
        iio: adis16480: fix devices that do not support sleep mode
        iio: mtk-auxadc: fix case IIO_CHAN_INFO_PROCESSED
        iio: adis16475: fix deadlock on frequency set
        iio: ssp_sensors: add more range checking in ssp_parse_dataframe()
        iio: ssp_sensors: fix error code in ssp_print_mcu_debug()
        iio: adc: ad7793: Fix IRQ flag
        iio: adc: ad7780: Fix IRQ flag
        iio: adc: ad7192: Add IRQ flag
        iio: adc: aspeed: set driver data when adc probe.
        iio: adc: rzg2l_adc: add missing clk_disable_unprepare() in rzg2l_adc_pm_runtime_resume()
        iio: adc: max1027: Fix the number of max1X31 channels
        iio: adc: max1027: Fix wrong shift with 12-bit devices
        iio: adc128s052: Fix the error handling path of 'adc128_probe()'
        iio: adc: rzg2l_adc: Fix -EBUSY timeout error return
        iio: accel: fxls8962af: return IRQ_HANDLED when fifo is flushed
        iio: dac: ti-dac5571: fix an error code in probe()
      a563ae0f