Skip to content
  1. Mar 14, 2022
  2. Feb 25, 2022
  3. Feb 22, 2022
    • Janis Schoetterl-Glausch's avatar
      KVM: s390: Add missing vm MEM_OP size check · 3d9042f8
      Janis Schoetterl-Glausch authored
      
      
      Check that size is not zero, preventing the following warning:
      
      WARNING: CPU: 0 PID: 9692 at mm/vmalloc.c:3059 __vmalloc_node_range+0x528/0x648
      Modules linked in:
      CPU: 0 PID: 9692 Comm: memop Not tainted 5.17.0-rc3-e4+ #80
      Hardware name: IBM 8561 T01 701 (LPAR)
      Krnl PSW : 0704c00180000000 0000000082dc584c (__vmalloc_node_range+0x52c/0x648)
                 R:0 T:1 IO:1 EX:1 Key:0 M:1 W:0 P:0 AS:3 CC:0 PM:0 RI:0 EA:3
      Krnl GPRS: 0000000000000083 ffffffffffffffff 0000000000000000 0000000000000001
                 0000038000000000 000003ff80000000 0000000000000cc0 000000008ebb8000
                 0000000087a8a700 000000004040aeb1 000003ffd9f7dec8 000000008ebb8000
                 000000009d9b8000 000000000102a1b4 00000380035afb68 00000380035afaa8
      Krnl Code: 0000000082dc583e: d028a7f4ff80        trtr    2036(41,%r10),3968(%r15)
                 0000000082dc5844: af000000            mc      0,0
                #0000000082dc5848: af000000            mc      0,0
                >0000000082dc584c: a7d90000            lghi    %r13,0
                 0000000082dc5850: b904002d            lgr     %r2,%r13
                 0000000082dc5854: eb6ff1080004        lmg     %r6,%r15,264(%r15)
                 0000000082dc585a: 07fe                bcr     15,%r14
                 0000000082dc585c: 47000700            bc      0,1792
      Call Trace:
       [<0000000082dc584c>] __vmalloc_node_range+0x52c/0x648
       [<0000000082dc5b62>] vmalloc+0x5a/0x68
       [<000003ff8067f4ca>] kvm_arch_vm_ioctl+0x2da/0x2a30 [kvm]
       [<000003ff806705bc>] kvm_vm_ioctl+0x4ec/0x978 [kvm]
       [<0000000082e562fe>] __s390x_sys_ioctl+0xbe/0x100
       [<000000008360a9bc>] __do_syscall+0x1d4/0x200
       [<0000000083618bd2>] system_call+0x82/0xb0
      Last Breaking-Event-Address:
       [<0000000082dc5348>] __vmalloc_node_range+0x28/0x648
      
      Other than the warning, there is no ill effect from the missing check,
      the condition is detected by subsequent code and causes a return
      with ENOMEM.
      
      Fixes: ef11c946 (KVM: s390: Add vm IOCTL for key checked guest absolute memory access)
      Signed-off-by: default avatarJanis Schoetterl-Glausch <scgl@linux.ibm.com>
      Link: https://lore.kernel.org/r/20220221163237.4122868-1-scgl@linux.ibm.com
      
      
      Signed-off-by: default avatarChristian Borntraeger <borntraeger@linux.ibm.com>
      3d9042f8
    • Janis Schoetterl-Glausch's avatar
      KVM: s390: Clarify key argument for MEM_OP in api docs · cbf9b810
      Janis Schoetterl-Glausch authored
      
      
      Clarify that the key argument represents the access key, not the whole
      storage key.
      
      Signed-off-by: default avatarJanis Schoetterl-Glausch <scgl@linux.ibm.com>
      Link: https://lore.kernel.org/r/20220221143657.3712481-1-scgl@linux.ibm.com
      
      
      Fixes: 5e35d0eb ("KVM: s390: Update api documentation for memop ioctl")
      Signed-off-by: default avatarChristian Borntraeger <borntraeger@linux.ibm.com>
      cbf9b810
  4. Feb 15, 2022
  5. Feb 14, 2022
  6. Feb 11, 2022
  7. Feb 10, 2022
    • Linus Torvalds's avatar
      Merge tag 'kvm-s390-kernel-access' from emailed bundle · 09a93c1d
      Linus Torvalds authored
      Pull s390 kvm fix from Christian Borntraeger:
       "Add missing check for the MEMOP ioctl
      
        The SIDA MEMOPs must only be used for secure guests, otherwise
        userspace can do unwanted memory accesses"
      
      * tag 'kvm-s390-kernel-access' from emailed bundle:
        KVM: s390: Return error on SIDA memop on normal guest
      09a93c1d
  8. Feb 09, 2022
    • Linus Torvalds's avatar
      Merge tag 'nfs-for-5.17-2' of git://git.linux-nfs.org/projects/anna/linux-nfs · e6251ab4
      Linus Torvalds authored
      Pull NFS client fixes from Anna Schumaker:
       "Stable Fixes:
      
         - Fix initialization of nfs_client cl_flags
      
        Other Fixes:
      
         - Fix performance issues with uncached readdir calls
      
         - Fix potential pointer dereferences in rpcrdma_ep_create
      
         - Fix nfs4_proc_get_locations() kernel-doc comment
      
         - Fix locking during sunrpc sysfs reads
      
         - Update my email address in the MAINTAINERS file to my new
           kernel.org email"
      
      * tag 'nfs-for-5.17-2' of git://git.linux-nfs.org/projects/anna/linux-nfs:
        SUNRPC: lock against ->sock changing during sysfs read
        MAINTAINERS: Update my email address
        NFS: Fix nfs4_proc_get_locations() kernel-doc comment
        xprtrdma: fix pointer derefs in error cases of rpcrdma_ep_create
        NFS: Fix initialisation of nfs_client cl_flags field
        NFS: Avoid duplicate uncached readdir calls on eof
        NFS: Don't skip directory entries when doing uncached readdir
        NFS: Don't overfill uncached readdir pages
      e6251ab4
  9. Feb 08, 2022
  10. Feb 07, 2022
    • Damien Le Moal's avatar
      ata: libata-core: Fix ata_dev_config_cpr() · fda17afc
      Damien Le Moal authored
      The concurrent positioning ranges log page 47h is a general purpose log
      page and not a subpage of the indentify device log. Using
      ata_identify_page_supported() to test for concurrent positioning ranges
      support is thus wrong. ata_log_supported() must be used.
      
      Furthermore, unlike other advanced ATA features (e.g. NCQ priority),
      accesses to the concurrent positioning ranges log page are not gated by
      a feature bit from the device IDENTIFY data. Since many older drives
      react badly to the READ LOG EXT and/or READ LOG DMA EXT commands isued
      to read device log pages, avoid problems with older drives by limiting
      the concurrent positioning ranges support detection to drives
      implementing at least the ACS-4 ATA standard (major version 11). This
      additional condition effectively turns ata_dev_config_cpr() into a nop
      for older drives, avoiding problems in the field.
      
      Fixes: fe22e1c2 ("libata: support concurrent positioning ranges log")
      BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=215519
      
      
      Cc: stable@vger.kernel.org
      Reviewed-by: default avatarHannes Reinecke <hare@suse.de>
      Tested-by: default avatarAbderraouf Adjal <adjal.arf@gmail.com>
      Signed-off-by: default avatarDamien Le Moal <damien.lemoal@opensource.wdc.com>
      fda17afc
    • Linus Torvalds's avatar
      Linux 5.17-rc3 · dfd42fac
      Linus Torvalds authored
      dfd42fac
    • Linus Torvalds's avatar
      Merge tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4 · d8ad2ce8
      Linus Torvalds authored
      Pull ext4 fixes from Ted Ts'o:
       "Various bug fixes for ext4 fast commit and inline data handling.
      
        Also fix regression introduced as part of moving to the new mount API"
      
      * tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
        fs/ext4: fix comments mentioning i_mutex
        ext4: fix incorrect type issue during replay_del_range
        jbd2: fix kernel-doc descriptions for jbd2_journal_shrink_{scan,count}()
        ext4: fix potential NULL pointer dereference in ext4_fill_super()
        jbd2: refactor wait logic for transaction updates into a common function
        jbd2: cleanup unused functions declarations from jbd2.h
        ext4: fix error handling in ext4_fc_record_modified_inode()
        ext4: remove redundant max inline_size check in ext4_da_write_inline_data_begin()
        ext4: fix error handling in ext4_restore_inline_data()
        ext4: fast commit may miss file actions
        ext4: fast commit may not fallback for ineligible commit
        ext4: modify the logic of ext4_mb_new_blocks_simple
        ext4: prevent used blocks from being allocated during fast commit replay
      d8ad2ce8
    • Linus Torvalds's avatar
      Merge tag 'perf-tools-fixes-for-v5.17-2022-02-06' of... · 18118a42
      Linus Torvalds authored
      Merge tag 'perf-tools-fixes-for-v5.17-2022-02-06' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux
      
      Pull perf tools fixes from Arnaldo Carvalho de Melo:
      
       - Fix display of grouped aliased events in 'perf stat'.
      
       - Add missing branch_sample_type to perf_event_attr__fprintf().
      
       - Apply correct label to user/kernel symbols in branch mode.
      
       - Fix 'perf ftrace' system_wide tracing, it has to be set before
         creating the maps.
      
       - Return error if procfs isn't mounted for PID namespaces when
         synthesizing records for pre-existing processes.
      
       - Set error stream of objdump process for 'perf annotate' TUI, to avoid
         garbling the screen.
      
       - Add missing arm64 support to perf_mmap__read_self(), the kernel part
         got into 5.17.
      
       - Check for NULL pointer before dereference writing debug info about a
         sample.
      
       - Update UAPI copies for asound, perf_event, prctl and kvm headers.
      
       - Fix a typo in bpf_counter_cgroup.c.
      
      * tag 'perf-tools-fixes-for-v5.17-2022-02-06' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux:
        perf ftrace: system_wide collection is not effective by default
        libperf: Add arm64 support to perf_mmap__read_self()
        tools include UAPI: Sync sound/asound.h copy with the kernel sources
        perf stat: Fix display of grouped aliased events
        perf tools: Apply correct label to user/kernel symbols in branch mode
        perf bpf: Fix a typo in bpf_counter_cgroup.c
        perf synthetic-events: Return error if procfs isn't mounted for PID namespaces
        perf session: Check for NULL pointer before dereference
        perf annotate: Set error stream of objdump process for TUI
        perf tools: Add missing branch_sample_type to perf_event_attr__fprintf()
        tools headers UAPI: Sync linux/kvm.h with the kernel sources
        tools headers UAPI: Sync linux/prctl.h with the kernel sources
        perf beauty: Make the prctl arg regexp more strict to cope with PR_SET_VMA
        tools headers cpufeatures: Sync with the kernel sources
        tools headers UAPI: Sync linux/perf_event.h with the kernel sources
        tools include UAPI: Sync sound/asound.h copy with the kernel sources
      18118a42
    • Linus Torvalds's avatar
      Merge tag 'perf_urgent_for_v5.17_rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · c3bf8a14
      Linus Torvalds authored
      Pull perf fixes from Borislav Petkov:
      
       - Intel/PT: filters could crash the kernel
      
       - Intel: default disable the PMU for SMM, some new-ish EFI firmware has
         started using CPL3 and the PMU CPL filters don't discriminate against
         SMM, meaning that CPL3 (userspace only) events now also count EFI/SMM
         cycles.
      
       - Fixup for perf_event_attr::sig_data
      
      * tag 'perf_urgent_for_v5.17_rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        perf/x86/intel/pt: Fix crash with stop filters in single-range mode
        perf: uapi: Document perf_event_attr::sig_data truncation on 32 bit architectures
        selftests/perf_events: Test modification of perf_event_attr::sig_data
        perf: Copy perf_event_attr::sig_data on modification
        x86/perf: Default set FREEZE_ON_SMI for all
      c3bf8a14
    • Linus Torvalds's avatar
      Merge tag 'objtool_urgent_for_v5.17_rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · aeabe1e0
      Linus Torvalds authored
      Pull objtool fix from Borislav Petkov:
       "Fix a potential truncated string warning triggered by gcc12"
      
      * tag 'objtool_urgent_for_v5.17_rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        objtool: Fix truncated string warning
      aeabe1e0
    • Linus Torvalds's avatar
      Merge tag 'irq_urgent_for_v5.17_rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · b72e40b1
      Linus Torvalds authored
      Pull irq fix from Borislav Petkov:
       "Remove a bogus warning introduced by the recent PCI MSI irq affinity
        overhaul"
      
      * tag 'irq_urgent_for_v5.17_rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        PCI/MSI: Remove bogus warning in pci_irq_get_affinity()
      b72e40b1
    • Linus Torvalds's avatar
      Merge tag 'edac_urgent_for_v5.17_rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras · 898b5841
      Linus Torvalds authored
      Pull EDAC fixes from Borislav Petkov:
       "Fix altera and xgene EDAC drivers to propagate the correct error code
        from platform_get_irq() so that deferred probing still works"
      
      * tag 'edac_urgent_for_v5.17_rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras:
        EDAC/xgene: Fix deferred probing
        EDAC/altera: Fix deferred probing
      898b5841
  11. Feb 06, 2022