1. 24 Apr, 2023 2 commits
    • Tiezhu Yang's avatar
      MIPS: uprobes: Restore thread.trap_nr · 46e614cc
      Tiezhu Yang authored
      thread.trap_nr is saved in arch_uprobe_pre_xol(), it should be restored
      in arch_uprobe_{post,abort}_xol() accordingly, actually it was only done
      in the post function, just do it in the abort function too, this change
      is similar with x86 and powerpc.
      Signed-off-by: default avatarTiezhu Yang <yangtiezhu@loongson.cn>
      Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
      46e614cc
    • Henry Willard's avatar
      MIPS: Don't clear _PAGE_SPECIAL in _PAGE_CHG_MASK · 1492c6b1
      Henry Willard authored
      In the special case where
      
      	p = mmap(NULL, ALLOC_SIZE, PROT_READ,
                      MAP_PRIVATE | MAP_ANONYMOUS | MAP_POPULATE, -1, 0);
      
      is followed by
      
      	rc = mprotect(p, ALLOC_SIZE, PROT_NONE);
      
      the _PAGE_SPECIAL bit in the page tables will be cleared by
      mistake and the later unmapped operations will incorrectly
      modify the struct page for the the zero page. This sequence
      occurs in the madvise05 test of the Linux Test Project
      suite of tests.
      
      This was discovered while testing an older version of the kernel
      (5.4.17) on a MIPS device. Unfortunately, support for this device
      is not available in newer kernels, so I can't test this with the
      latest Linux kernel code. It looks like the problem exists in
      newer kernels, but I can't verify it. Except for the LTP test,
      this sequence of calls is probably not common.
      
      Passing it along in the hope it will be useful to someone.
      Signed-off-by: default avatarHenry Willard <henry.willard@oracle.com>
      Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
      1492c6b1
  2. 22 Apr, 2023 2 commits
  3. 12 Apr, 2023 7 commits
  4. 05 Apr, 2023 17 commits
  5. 27 Mar, 2023 1 commit
  6. 24 Mar, 2023 5 commits
  7. 17 Mar, 2023 5 commits
  8. 14 Mar, 2023 1 commit