1. 17 10月, 2021 10 次提交
  2. 16 10月, 2021 9 次提交
    • L
      Merge tag 'acpi-5.15-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 711c3686
      Linus Torvalds 提交于
      Pull ACPI fix from Rafael Wysocki:
       "Add a missing device ID to a quirk list in the suspend-to-idle support
        code"
      
      * tag 'acpi-5.15-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        ACPI: PM: Include alternate AMDI0005 id in special behaviour
      711c3686
    • S
      nds32/ftrace: Fix Error: invalid operands (*UND* and *UND* sections) for `^' · be358af1
      Steven Rostedt 提交于
      I received a build failure for a new patch I'm working on the nds32
      architecture, and when I went to test it, I couldn't get to my build error,
      because it failed to build with a bunch of:
      
        Error: invalid operands (*UND* and *UND* sections) for `^'
      
      issues with various files. Those files were temporary asm files that looked
      like:  kernel/.tmp_mc_fork.s
      
      I decided to look deeper, and found that the "mc" portion of that name
      stood for "mcount", and was created by the recordmcount.pl script. One that
      I wrote over a decade ago. Once I knew the source of the problem, I was
      able to investigate it further.
      
      The way the recordmcount.pl script works (BTW, there's a C version that
      simply modifies the ELF object) is by doing an "objdump" on the object
      file. Looks for all the calls to "mcount", and creates an offset of those
      locations from some global variable it can use (usually a global function
      name, found with <.*>:). Creates a asm file that is a table of references
      to these locations, using the found variable/function. Compiles it and
      links it back into the original object file. This asm file is called
      ".tmp_mc_<object_base_name>.s".
      
      The problem here is that the objdump produced by the nds32 object file,
      contains things that look like:
      
       0000159a <.L3^B1>:
          159a:       c6 00           beqz38 $r6, 159a <.L3^B1>
                              159a: R_NDS32_9_PCREL_RELA      .text+0x159e
          159c:       84 d2           movi55 $r6, #-14
          159e:       80 06           mov55 $r0, $r6
          15a0:       ec 3c           addi10.sp #0x3c
      
      Where ".L3^B1 is somehow selected as the "global" variable to index off of.
      
      Then the assembly file that holds the mcount locations looks like this:
      
              .section __mcount_loc,"a",@progbits
              .align 2
              .long .L3^B1 + -5522
              .long .L3^B1 + -5384
              .long .L3^B1 + -5270
              .long .L3^B1 + -5098
              .long .L3^B1 + -4970
              .long .L3^B1 + -4758
              .long .L3^B1 + -4122
              [...]
      
      And when it is compiled back to an object to link to the original object,
      the compile fails on the "^" symbol.
      
      Simple solution for now, is to have the perl script ignore using function
      symbols that have an "^" in the name.
      
      Link: https://lkml.kernel.org/r/20211014143507.4ad2c0f7@gandalf.local.home
      
      Cc: stable@vger.kernel.org
      Acked-by: NGreentime Hu <green.hu@gmail.com>
      Fixes: fbf58a52 ("nds32/ftrace: Add RECORD_MCOUNT support")
      Signed-off-by: NSteven Rostedt (VMware) <rostedt@goodmis.org>
      be358af1
    • V
      ARC: fix potential build snafu · c3ca31ce
      Vineet Gupta 提交于
      In the big pgtable header split, I inadvertently introduced a couple of
      duplicate symbols.
      
      Fixes: fe6cb7b0 ("ARC: mm: disintegrate pgtable.h into levels and flags")
      Signed-off-by: NVineet Gupta <vgupta@kernel.org>
      c3ca31ce
    • G
      csky: Make HAVE_TCM depend on !COMPILE_TEST · e21e52ad
      Guenter Roeck 提交于
      Building csky:allmodconfig results in the following build errors.
      
      arch/csky/mm/tcm.c:9:2: error:
      		#error "You should define ITCM_RAM_BASE"
          9 | #error "You should define ITCM_RAM_BASE"
            |  ^~~~~
      arch/csky/mm/tcm.c:14:2: error:
      		#error "You should define DTCM_RAM_BASE"
         14 | #error "You should define DTCM_RAM_BASE"
            |  ^~~~~
      arch/csky/mm/tcm.c:18:2: error:
      		#error "You should define correct DTCM_RAM_BASE"
         18 | #error "You should define correct DTCM_RAM_BASE"
      
      This is seen with compile tests since those enable HAVE_TCM,
      but do not provide useful default values for ITCM_RAM_BASE or
      DTCM_RAM_BASE. Disable HAVE_TCM for commpile tests to avoid
      the error.
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: NGuo Ren <guoren@kernel.org>
      e21e52ad
    • G
      csky: bitops: Remove duplicate __clear_bit define · fb5d69a5
      Guenter Roeck 提交于
      Building csky:allmodconfig results in the following build error.
      
      In file included from ./include/linux/bitops.h:33,
                       from ./include/linux/log2.h:12,
                       from kernel/bounds.c:13:
      ./arch/csky/include/asm/bitops.h:77: error: "__clear_bit" redefined
      
      Since commit 9248e52f ("locking/atomic: simplify non-atomic wrappers"),
      __clear_bit is defined in include/asm-generic/bitops/non-atomic.h,
      and the define in the csky include file is no longer necessary or useful.
      Remove it.
      
      Fixes: 9248e52f ("locking/atomic: simplify non-atomic wrappers")
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: NGuo Ren <guoren@kernel.org>
      fb5d69a5
    • G
      csky: Select ARCH_WANT_FRAME_POINTERS only if compiler supports it · aeba0b84
      Guenter Roeck 提交于
      Compiling csky:allmodconfig with an upstream C compiler results
      in the following error.
      
      csky-linux-gcc: error:
      	unrecognized command-line option '-mbacktrace';
      	did you mean '-fbacktrace'?
      
      Select ARCH_WANT_FRAME_POINTERS only if gcc supports it to
      avoid the error.
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: NGuo Ren <guoren@kernel.org>
      aeba0b84
    • G
      csky: Fixup regs.sr broken in ptrace · af89ebaa
      Guo Ren 提交于
      gpr_get() return the entire pt_regs (include sr) to userspace, if we
      don't restore the C bit in gpr_set, it may break the ALU result in
      that context. So the C flag bit is part of gpr context, that's why
      riscv totally remove the C bit in the ISA. That makes sr reg clear
      from userspace to supervisor privilege.
      Signed-off-by: NGuo Ren <guoren@linux.alibaba.com>
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Cc: stable@vger.kernel.org
      af89ebaa
    • A
      csky: don't let sigreturn play with priveleged bits of status register · fbd63c08
      Al Viro 提交于
      csky restore_sigcontext() blindly overwrites regs->sr with the value
      it finds in sigcontext.  Attacker can store whatever they want in there,
      which includes things like S-bit.  Userland shouldn't be able to set
      that, or anything other than C flag (bit 0).
      
      Do the same thing other architectures with protected bits in flags
      register do - preserve everything that shouldn't be settable in
      user mode, picking the rest from the value saved is sigcontext.
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: NGuo Ren <guoren@kernel.org>
      Cc: stable@vger.kernel.org
      fbd63c08
    • A
      Merge tag 'imx-fixes-5.15-3' of... · 011ace4a
      Arnd Bergmann 提交于
      Merge tag 'imx-fixes-5.15-3' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux into arm/fixes
      
      i.MX fixes for 5.15, round 3:
      
      - Add platform device for i.MX System Reset Controller (SRC) to fix
        a regression caused by fw_devlink change.
      
      * tag 'imx-fixes-5.15-3' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux:
        ARM: imx: register reset controller from a platform driver
      
      Link: https://lore.kernel.org/r/20211015070017.GI22881@dragonSigned-off-by: NArnd Bergmann <arnd@arndb.de>
      011ace4a
  3. 15 10月, 2021 19 次提交
  4. 14 10月, 2021 2 次提交