1. 27 7月, 2023 3 次提交
  2. 21 7月, 2023 1 次提交
  3. 20 7月, 2023 1 次提交
  4. 19 7月, 2023 19 次提交
  5. 25 6月, 2023 1 次提交
  6. 14 6月, 2023 1 次提交
    • L
      net: add bpf_is_local_ipaddr bpf helper function · cee65b79
      Liu Jian 提交于
      hulk inclusion
      category: feature
      bugzilla: NA
      CVE: N/A
      
      ----------------------------------------------------
      
      Some network acceleration solutions, such as sockmap, are valid only for
      internal packets of the local host. The bpf_is_local_ipaddr() bpf helper
      function is added so that the ebpf program can determine whether a packet
      is an internal packet of the local host.
      Signed-off-by: NLiu Jian <liujian56@huawei.com>
      cee65b79
  7. 08 6月, 2023 2 次提交
  8. 07 6月, 2023 4 次提交
    • Z
      x86/boot/compressed: Register dummy NMI handler in EFI boot loader, to avoid kdump crashes · a6ceb6d2
      Zeng Heng 提交于
      hulk inclusion
      category: bugfix
      issue: https://gitee.com/openeuler/kernel/issues/I69VF6
      
      --------------------------------
      
      If kdump is enabled, when using mce_inject to inject errors, EFI
      boot loader would decompress & load second kernel for saving the
      vmcore file.
      
      For normal errors that is fine. However, in the MCE case, the panic
      CPU that firstly enters into mce_panic() is running within NMI
      interrupt context, and the processor blocks delivery of subsequent
      NMIs until the next execution of the IRET instruction.
      
      When the panic CPU takes long time in the panic processing route,
      and causes the watchdog timeout, at this moment, the processor
      already receives NMI interrupt in the background.
      
      In the reproducer sequence below, panic CPU would run into EFI loader
      and raise page fault exception (like visiting `vidmem` variable
      when attempting to call debug_putstr()), the CPU would execute IRET
      instruction when it exits from the page fault handler.
      
      But the loader never registers handler for NMI vector in IDT,
      lack of vector handler would cause reboot, which interrupts
      kdump procedure and fails to save the vmcore file.
      
      Here is steps to reproduce the above issue (it's sporadic):
      
        1. # cat uncorrected
           CPU 1 BANK 4
           STATUS uncorrected 0xc0
           MCGSTATUS  EIPV MCIP
           ADDR 0x1234
           RIP 0xdeadbabe
           RAISINGCPU 0
           MCGCAP SER CMCI TES 0x6
        2. # modprobe mce_inject
        3. # mce-inject uncorrected
      
      For increasing the probability of reproduction of this issue, there are
      two ways to increase the probability of the bug:
      
        1. modify the threshold value of watchdog (increase NMI frequency);
        2. and/or add delays before panic() in mce_panic() and modify
           PANIC_TIMEOUT macro;
      
      Fixes: ca0e22d4 ("x86/boot/compressed/64: Always switch to own page table")
      Signed-off-by: NZeng Heng <zengheng4@huawei.com>
      [ Tidy up changelog, add comments. ]
      Signed-off-by: NIngo Molnar <mingo@kernel.org>
      Link: https://lore.kernel.org/r/20230110102745.2514694-1-zengheng4@huawei.com
      (cherry picked from commit 28410785)
      a6ceb6d2
    • C
      x86/unwind: Fix check_paravirt() calls orc_find() before declaration · b46958a8
      Chen Zhongjin 提交于
      hulk inclusion
      category: bugfix
      bugzilla: https://gitee.com/openeuler/kernel/issues/I6DK3O
      CVE: NA
      
      --------------------------------
      
      check_paravirt() calls orc_find() before its implementation code.
      
      If CONFIG_DYNAMIC_FTRACE is enabled, orc_find() will be declared
      earlier and compiling will not fail. Otherwise it will fail for
      "implicit declaration of function 'orc_find'".
      
      Move declaration of orc_find() out of CONFIG_DYNAMIC_FTRACE macro to
      fix this.
      
      Fixes: cbb12ea4718a ("[Huawei] x86/unwind: Fix orc entry for paravirt {save,restore}_fl")
      Signed-off-by: NChen Zhongjin <chenzhongjin@huawei.com>
      Reviewed-by: NXu Kuohai <xukuohai@huawei.com>
      (cherry picked from commit 78380898)
      b46958a8
    • C
      x86/unwind: Fix orc entry for paravirt {save,restore}_fl · 6cea94bb
      Chen Zhongjin 提交于
      hulk inclusion
      category: bugfix
      bugzilla: https://gitee.com/openeuler/kernel/issues/I6DK3O
      CVE: NA
      
      --------------------------------
      
      When CONFIG_PARAVIRT_XXL is enabled, the code of {save,restore}_fl
      is defined as:
      
      ff 14 25 00 00 00 00    callq  *0x0
      
      which will be patched to call the xen paravirt function, or native
      implementation, in 'paravirt_patch_64.c':
      
      pushfq; popq %rax // for native_save_fl
      pushq %rdi; popfq // for native_restore_fl
      
      The orc metadata is generated with insn 'callq', so it can become
      inconsistent with the real insn 'push;pop'.
      This makes stacktrace on the 'pop' insn fail and incorrect stacktrace
      result can be returned.
      
      To prevent reliable stacktrace broken, check the insns when unwind
      pt_regs stack frame:
      
      When there are 'push;pop' combination and both insns don't change orc
      entry, it means the stack state is inconsistent with orc on pop.
      Add one slot to sp_offset for on original orc entry to get the correct
      orc entry.
      Signed-off-by: NChen Zhongjin <chenzhongjin@huawei.com>
      Reviewed-by: NXu Kuohai <xukuohai@huawei.com>
      (cherry picked from commit cd5fe777)
      6cea94bb
    • W
      config: Disable CONFIG_EULER_FS by default · 81c657cc
      Wei Li 提交于
      hulk inclusion
      category: feature
      bugzilla: https://gitee.com/openeuler/kernel/issues/I7BAJ0
      
      --------------------------------
      
      EulerFS was introduced as a technical preview feature in the 21.09
      innovation version. Considering the current discontinuation of Intel
      Optane hardware and immature ecosystem, it has been decided to turn it
      off in the 22.03 LTS version. It will continue to evolve as an innovative
      feature in future innovation versions.
      Signed-off-by: NWei Li <liwei391@huawei.com>
      (cherry picked from commit 42e496a1)
      81c657cc
  9. 02 6月, 2023 1 次提交
  10. 30 5月, 2023 2 次提交
  11. 26 5月, 2023 1 次提交
    • Z
      net/hinic3: Add Huawei Intelligent Network Card Driver: hinic3 · ebcedbe6
      zhoujiadong 提交于
      driver inclusion
      category: feature
      bugzilla: https://gitee.com/openeuler/kernel/issues/I6V4RY
      CVE: NA
      
      ---------------------------------
      
      The NIC driver supports the following features:
      Supports IPv4/IPv6 TCP/UDP checksum, TSO, LRO offload and RSS functions.
      Supports interrupt aggregation parameter configuration and interrupt
      adaptation.
      Supports 802.1Q VLAN (Virtual Local Area Network) offloading and
      filtering.
      Supports NIC SR-IOV (Single Root I/O Virtualization).
      Support PF promiscuous mode
      Supports VF QinQ mode.
      Supports VF link state configuration and QoS configuration.
      Support VF MAC address management.
      Support VF spoofchk check.
      Support port lighting.
      Support Ethernet mouth self-negotiation, support pause frame.
      Signed-off-by: Nzhoujiadong <zhoujiadong5@huawei.com>
      Reviewed-by: NWulike (Collin) <wulike1@huawei.com>
      ebcedbe6
  12. 23 5月, 2023 4 次提交