1. 01 Jun, 2023 1 commit
  2. 15 May, 2023 2 commits
    • Holger Dengler's avatar
      s390/pkey: zeroize key blobs · 844cf829
      Holger Dengler authored
      Key blobs for the IOCTLs PKEY_KBLOB2PROTK[23] may contain clear key
      material. Zeroize the copies of these keys in kernel memory after
      creating the protected key.
      Reviewed-by: default avatarHarald Freudenberger <freude@linux.ibm.com>
      Signed-off-by: default avatarHolger Dengler <dengler@linux.ibm.com>
      Signed-off-by: default avatarAlexander Gordeev <agordeev@linux.ibm.com>
      844cf829
    • Heiko Carstens's avatar
      s390/crypto: use vector instructions only if available for ChaCha20 · 8703dd6b
      Heiko Carstens authored
      Commit 349d03ff ("crypto: s390 - add crypto library interface for
      ChaCha20") added a library interface to the s390 specific ChaCha20
      implementation. However no check was added to verify if the required
      facilities are installed before branching into the assembler code.
      
      If compiled into the kernel, this will lead to the following crash,
      if vector instructions are not available:
      
      data exception: 0007 ilc:3 [#1] SMP
      Modules linked in:
      CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.3.0-rc7+ #11
      Hardware name: IBM 3931 A01 704 (KVM/Linux)
      Krnl PSW : 0704e00180000000 000000001857277a (chacha20_vx+0x32/0x818)
                 R:0 T:1 IO:1 EX:1 Key:0 M:1 W:0 P:0 AS:3 CC:2 PM:0 RI:0 EA:3
      Krnl GPRS: 0000037f0000000a ffffffffffffff60 000000008184b000 0000000019f5c8e6
                 0000000000000109 0000037fffb13c58 0000037fffb13c78 0000000019bb1780
                 0000037fffb13c58 0000000019f5c8e6 000000008184b000 0000000000000109
                 00000000802d8000 0000000000000109 0000000018571ebc 0000037fffb13718
      Krnl Code: 000000001857276a: c07000b1f80b        larl    %r7,0000000019bb1780
                 0000000018572770: a708000a            lhi     %r0,10
                #0000000018572774: e78950000c36        vlm     %v24,%v25,0(%r5),0
                >000000001857277a: e7a060000806        vl      %v26,0(%r6),0
                 0000000018572780: e7bf70004c36        vlm     %v27,%v31,0(%r7),4
                 0000000018572786: e70b00000456        vlr     %v0,%v27
                 000000001857278c: e71800000456        vlr     %v1,%v24
                 0000000018572792: e74b00000456        vlr     %v4,%v27
      Call Trace:
       [<000000001857277a>] chacha20_vx+0x32/0x818
      Last Breaking-Event-Address:
       [<0000000018571eb6>] chacha20_crypt_s390.constprop.0+0x6e/0xd8
      ---[ end trace 0000000000000000 ]---
      Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
      
      Fix this by adding a missing MACHINE_HAS_VX check.
      
      Fixes: 349d03ff ("crypto: s390 - add crypto library interface for ChaCha20")
      Reported-by: default avatarMarc Hartmayer <mhartmay@linux.ibm.com>
      Cc: <stable@vger.kernel.org> # 5.19+
      Reviewed-by: default avatarHarald Freudenberger <freude@linux.ibm.com>
      [agordeev@linux.ibm.com: remove duplicates in commit message]
      Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
      Signed-off-by: default avatarAlexander Gordeev <agordeev@linux.ibm.com>
      8703dd6b
  3. 14 May, 2023 13 commits
  4. 13 May, 2023 17 commits
  5. 12 May, 2023 7 commits
    • Borislav Petkov (AMD)'s avatar
      x86/retbleed: Fix return thunk alignment · 9a48d604
      Borislav Petkov (AMD) authored
      SYM_FUNC_START_LOCAL_NOALIGN() adds an endbr leading to this layout
      (leaving only the last 2 bytes of the address):
      
        3bff <zen_untrain_ret>:
        3bff:       f3 0f 1e fa             endbr64
        3c03:       f6                      test   $0xcc,%bl
      
        3c04 <__x86_return_thunk>:
        3c04:       c3                      ret
        3c05:       cc                      int3
        3c06:       0f ae e8                lfence
      
      However, "the RET at __x86_return_thunk must be on a 64 byte boundary,
      for alignment within the BTB."
      
      Use SYM_START instead.
      Signed-off-by: default avatarBorislav Petkov (AMD) <bp@alien8.de>
      Reviewed-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Cc: <stable@kernel.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      9a48d604
    • Linus Torvalds's avatar
      Merge tag 'for-6.4-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux · 76c7f887
      Linus Torvalds authored
      Pull more btrfs fixes from David Sterba:
      
       - fix incorrect number of bitmap entries for space cache if loading is
         interrupted by some error
      
       - fix backref walking, this breaks a mode of LOGICAL_INO_V2 ioctl that
         is used in deduplication tools
      
       - zoned mode fixes:
            - properly finish zone reserved for relocation
            - correctly calculate super block zone end on ZNS
            - properly initialize new extent buffer for redirty
      
       - make mount option clear_cache work with block-group-tree, to rebuild
         free-space-tree instead of temporarily disabling it that would lead
         to a forced read-only mount
      
       - fix alignment check for offset when printing extent item
      
      * tag 'for-6.4-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
        btrfs: make clear_cache mount option to rebuild FST without disabling it
        btrfs: zero the buffer before marking it dirty in btrfs_redirty_list_add
        btrfs: zoned: fix full zone super block reading on ZNS
        btrfs: zoned: zone finish data relocation BG with last IO
        btrfs: fix backref walking not returning all inode refs
        btrfs: fix space cache inconsistency after error loading it from disk
        btrfs: print-tree: parent bytenr must be aligned to sector size
      76c7f887
    • Linus Torvalds's avatar
      Merge tag '6.4-rc1-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6 · fd88f147
      Linus Torvalds authored
      Pull cifs client fixes from Steve French:
      
       - fix for copy_file_range bug for very large files that are multiples
         of rsize
      
       - do not ignore "isolated transport" flag if set on share
      
       - set rasize default better
      
       - three fixes related to shutdown and freezing (fixes 4 xfstests, and
         closes deferred handles faster in some places that were missed)
      
      * tag '6.4-rc1-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6:
        cifs: release leases for deferred close handles when freezing
        smb3: fix problem remounting a share after shutdown
        SMB3: force unmount was failing to close deferred close files
        smb3: improve parallel reads of large files
        do not reuse connection if share marked as isolated
        cifs: fix pcchunk length type in smb2_copychunk_range
      fd88f147
    • Linus Torvalds's avatar
      Merge tag 'vfs/v6.4-rc1/pipe' of gitolite.kernel.org:pub/scm/linux/kernel/git/vfs/vfs · df8c2d13
      Linus Torvalds authored
      Pull vfs fix from Christian Brauner:
       "During the pipe nonblock rework the check for both O_NONBLOCK and
        IOCB_NOWAIT was dropped. Both checks need to be performed to ensure
        that files without O_NONBLOCK but IOCB_NOWAIT don't block when writing
        to or reading from a pipe.
      
        This just contains the fix adding the check for IOCB_NOWAIT back in"
      
      * tag 'vfs/v6.4-rc1/pipe' of gitolite.kernel.org:pub/scm/linux/kernel/git/vfs/vfs:
        pipe: check for IOCB_NOWAIT alongside O_NONBLOCK
      df8c2d13
    • Linus Torvalds's avatar
      Merge tag 'io_uring-6.4-2023-05-12' of git://git.kernel.dk/linux · 584dc5db
      Linus Torvalds authored
      Pull io_uring fix from Jens Axboe:
       "Just a single fix making io_uring_sqe_cmd() available regardless of
        CONFIG_IO_URING, fixing a regression introduced during the merge
        window if nvme was selected but io_uring was not"
      
      * tag 'io_uring-6.4-2023-05-12' of git://git.kernel.dk/linux:
        io_uring: make io_uring_sqe_cmd() unconditionally available
      584dc5db
    • Linus Torvalds's avatar
      Merge tag 'riscv-for-linus-6.4-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux · ed6a75e3
      Linus Torvalds authored
      Pull RISC-V fix from Palmer Dabbelt:
       "Just a single fix this week for a build issue. That'd usually be a
        good sign, but we've started to get some reports of boot failures on
        some hardware/bootloader configurations. Nothing concrete yet, but
        I've got a funny feeling that's where much of the bug hunting is going
        right now.
      
        Nothing's reproducing on my end, though, and this fixes some pretty
        concrete issues so I figured there's no reason to delay it:
      
         - a fix to the linker script to avoid orpahaned sections in
           kernel/pi"
      
      * tag 'riscv-for-linus-6.4-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
        riscv: Fix orphan section warnings caused by kernel/pi
      ed6a75e3
    • Randy Dunlap's avatar
      Documentation/block: drop the request.rst file · 56cdea92
      Randy Dunlap authored
      Documentation/block/request.rst is outdated and should be removed.
      Also delete its entry in the block/index.rst file.
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Cc: Jens Axboe <axboe@kernel.dk>
      Cc: linux-block@vger.kernel.org
      Cc: Jonathan Corbet <corbet@lwn.net>
      Cc: linux-doc@vger.kernel.org
      Link: https://lore.kernel.org/r/20230507182606.12647-1-rdunlap@infradead.orgSigned-off-by: default avatarJens Axboe <axboe@kernel.dk>
      56cdea92