This project is mirrored from Pull mirroring updated .
  1. 08 Apr, 2021 1 commit
    • Takashi Sakamoto's avatar
      ALSA: control: Add memory consumption limit to user controls · 66c6d1ef
      Takashi Sakamoto authored
      ALSA control interface allows users to add arbitrary control elements
      (called "user controls" or "user elements"), and its resource usage is
      limited just by the max number of control sets (currently 32).  This
      limit, however, is quite loose: each allocation of control set may
      have 1028 elements, and each element may have up to 512 bytes (ILP32) or
      1024 bytes (LP64) of value data. Moreover, each control set may contain
      the enum strings and TLV data, which can be up to 64kB and 128kB,
      respectively.  Totally, the whole memory consumption may go over 38MB --
      it's quite large, and we'd rather like to reduce the size.
      OTOH, there have been other requests even to increase the max number
      of user elements; e.g. ALSA firewire stack require the more user
      controls, hence we want to raise the bar, too.
      For satisfying both requirements, this patch changes the management of
      user controls: instead of setting the upper limit of the number of
      user controls, we check the actual memory allocation size and set the
      upper limit of the total allocation in bytes.  As long as the memory
      consumption stays below the limit, more user controls are allowed than
      the current limit 32. At the same time, we set the lower limit (8MB)
      as default than the current theoretical limit, in order to lower the
      risk of DoS.
      As a compromise for lowering the default limit, now the actual memory
      limit is defined as a module option, 'max_user_ctl_alloc_size', so that
      user can increase/decrease the limit if really needed, too.
      Co-developed-by: default avatarTakashi Iwai <>
      Reviewed-by: default avatarTakashi Sakamoto <>
      Tested-by: default avatarTakashi Sakamoto <>
      Signed-off-by: default avatarTakashi Sakamoto <>
      Signed-off-by: default avatarTakashi Iwai <>
  2. 07 Apr, 2021 2 commits
  3. 06 Apr, 2021 1 commit
  4. 01 Apr, 2021 3 commits
  5. 30 Mar, 2021 8 commits
  6. 28 Mar, 2021 9 commits
    • Linus Torvalds's avatar
      Linux 5.12-rc5 · a5e13c6d
      Linus Torvalds authored
    • Linus Torvalds's avatar
      Merge tag 'perf-tools-fixes-for-v5.12-2020-03-28' of... · f9e2bb42
      Linus Torvalds authored
      Merge tag 'perf-tools-fixes-for-v5.12-2020-03-28' of git://
      Pull perf tooling fixes from Arnaldo Carvalho de Melo:
       - Avoid write of uninitialized memory when generating PERF_RECORD_MMAP*
       - Fix 'perf top' BPF support related crash with perf_event_paranoid=3 +
       - Validate raw event with sysfs exported format bits.
       - Fix waipid on SIGCHLD delivery bugs in 'perf daemon'.
       - Change to use bash for daemon test on Debian, where the default is
         dash and thus fails for use of bashisms in this test.
       - Fix memory leak in vDSO found using ASAN.
       - Remove now useless (due to the fact that BPF now supports static
         vars) failing sub test "BPF relocation checker".
       - Fix auxtrace queue conflict.
       - Sync linux/kvm.h with the kernel sources.
      * tag 'perf-tools-fixes-for-v5.12-2020-03-28' of git://
        perf test: Change to use bash for daemon test
        perf record: Fix memory leak in vDSO found using ASAN
        perf test: Remove now useless failing sub test "BPF relocation checker"
        perf daemon: Return from kill functions
        perf daemon: Force waipid for all session on SIGCHLD delivery
        perf top: Fix BPF support related crash with perf_event_paranoid=3 + kptr_restrict
        perf pmu: Validate raw event with sysfs exported format bits
        perf synthetic events: Avoid write of uninitialized memory when generating PERF_RECORD_MMAP* records
        tools headers UAPI: Sync linux/kvm.h with the kernel sources
        perf synthetic-events: Fix uninitialized 'kernel_thread' variable
        perf auxtrace: Fix auxtrace queue conflict
    • Linus Torvalds's avatar
      Merge tag 'auxdisplay-for-linus-v5.12-rc6' of git:// · 3fef15f8
      Linus Torvalds authored
      Pull auxdisplay fix from Miguel Ojeda:
       "Remove in_interrupt() usage (Sebastian Andrzej Siewior)"
      * tag 'auxdisplay-for-linus-v5.12-rc6' of git://
        auxdisplay: Remove in_interrupt() usage.
    • Linus Torvalds's avatar
      Merge tag 'x86-urgent-2021-03-28' of git:// · 36a14638
      Linus Torvalds authored
      Pull x86 fixes from Ingo Molnar:
       "Two fixes:
         - Fix build failure on Ubuntu with new GCC packages that turn
           on -fcf-protection
         - Fix SME memory encryption PTE encoding bug - AFAICT the code
           worked on 4K page sizes (level 1) but had the wrong shift at
           higher page level orders (level 2 and higher)"
      * tag 'x86-urgent-2021-03-28' of git://
        x86/build: Turn off -fcf-protection for realmode targets
        x86/mem_encrypt: Correct physical address calculation in __set_clr_pte_enc()
    • Linus Torvalds's avatar
      Merge tag 'locking-urgent-2021-03-28' of git:// · 47fbbc94
      Linus Torvalds authored
      Pull locking fix from Ingo Molnar:
       "Fix the non-debug mutex_lock_io_nested() method to map to
        mutex_lock_io() instead of mutex_lock().
        Right now nothing uses this API explicitly, but this is an
        accident waiting to happen"
      * tag 'locking-urgent-2021-03-28' of git://
        locking/mutex: Fix non debug version of mutex_lock_io_nested()
    • Linus Torvalds's avatar
      Merge tag '5.12-rc4-smb3' of git:// · 81b1d39f
      Linus Torvalds authored
      Pull cifs fixes from Steve French:
       "Five cifs/smb3 fixes, two for stable.
        Includes an important fix for encryption and an ACL fix, as well as a
        fix for possible reflink data corruption"
      * tag '5.12-rc4-smb3' of git://
        smb3: fix cached file size problems in duplicate extents (reflink)
        cifs: Silently ignore unknown oplock break handle
        cifs: revalidate mapping when we open files for SMB1 POSIX
        cifs: Fix chmod with modefromsid when an older ACE already exists.
        cifs: Adjust key sizes and key generation routines for AES256 encryption
    • Linus Torvalds's avatar
      Merge tag 'io_uring-5.12-2021-03-27' of git:// · b44d1ddc
      Linus Torvalds authored
      Pull io_uring fixes from Jens Axboe:
       - Use thread info versions of flag testing, as discussed last week.
       - The series enabling PF_IO_WORKER to just take signals, instead of
         needing to special case that they do not in a bunch of places. Ends
         up being pretty trivial to do, and then we can revert all the special
         casing we're currently doing.
       - Kill dead pointer assignment
       - Fix hashed part of async work queue trace
       - Fix sign extension issue for IORING_OP_PROVIDE_BUFFERS
       - Fix a link completion ordering regression in this merge window
       - Cancellation fixes
      * tag 'io_uring-5.12-2021-03-27' of git://
        io_uring: remove unsued assignment to pointer io
        io_uring: don't cancel extra on files match
        io_uring: don't cancel-track common timeouts
        io_uring: do post-completion chore on t-out cancel
        io_uring: fix timeout cancel return code
        Revert "signal: don't allow STOP on PF_IO_WORKER threads"
        Revert "kernel: freezer should treat PF_IO_WORKER like PF_KTHREAD for freezing"
        Revert "kernel: treat PF_IO_WORKER like PF_KTHREAD for ptrace/signals"
        Revert "signal: don't allow sending any signals to PF_IO_WORKER threads"
        kernel: stop masking signals in create_io_thread()
        io_uring: handle signals for IO threads like a normal thread
        kernel: don't call do_exit() for PF_IO_WORKER threads
        io_uring: maintain CQE order of a failed link
        io-wq: fix race around pending work on teardown
        io_uring: do ctx sqd ejection in a clear context
        io_uring: fix provide_buffers sign extension
        io_uring: don't skip file_end_write() on reissue
        io_uring: correct io_queue_async_work() traces
        io_uring: don't use {test,clear}_tsk_thread_flag() for current
    • Linus Torvalds's avatar
      Merge tag 'block-5.12-2021-03-27' of git:// · abed516e
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
       - Fix regression from this merge window with the xarray partition
         change, which allowed partition counts that overflow the u8 that
         holds the partition number (Ming)
       - Fix zone append warning (Johannes)
       - Segmentation count fix for multipage bvecs (David)
       - Partition scan fix (Chris)
      * tag 'block-5.12-2021-03-27' of git://
        block: don't create too many partitions
        block: support zone append bvecs
        block: recalculate segment count for multi-segment discards correctly
        block: clear GD_NEED_PART_SCAN later in bdev_disk_changed
    • Linus Torvalds's avatar
      Merge tag 'scsi-fixes' of git:// · e8cfe8fa
      Linus Torvalds authored
      Pull SCSI fixes from James Bottomley:
       "Seven fixes, all in drivers (qla2xxx, mkt3sas, qedi, target,
        The most serious are the target pscsi oom and the qla2xxx revert which
        can otherwise cause a use after free"
      * tag 'scsi-fixes' of git://
        scsi: target: pscsi: Clean up after failure in pscsi_map_sg()
        scsi: target: pscsi: Avoid OOM in pscsi_map_sg()
        scsi: mpt3sas: Fix error return code of mpt3sas_base_attach()
        scsi: qedi: Fix error return code of qedi_alloc_global_queues()
        scsi: Revert "qla2xxx: Make sure that aborted commands are freed"
        scsi: ibmvfc: Make ibmvfc_wait_for_ops() MQ aware
        scsi: ibmvfc: Fix potential race in ibmvfc_wait_for_ops()
  7. 27 Mar, 2021 12 commits
  8. 26 Mar, 2021 4 commits