aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/process.c
AgeCommit message (Expand)AuthorFilesLines
2023-11-29KVM: PPC: Book3S HV: Fix KVM_RUN clobbering FP/VEC user registersNicholas Piggin1-3/+3
2023-10-19powerpc: Hide empty pt_regs at base of the stackMichael Ellerman1-3/+23
2023-06-19powerpc/dexcr: Support userspace ROP protectionBenjamin Gray1-0/+17
2023-04-11powerpc: copy_thread don't set PPR in user interrupt frame regsNicholas Piggin1-5/+0
2023-04-11powerpc: copy_thread don't set _TIF_RESTOREALLNicholas Piggin1-2/+0
2023-04-11powerpc: differentiate kthread from user kernel thread startNicholas Piggin1-3/+4
2023-04-11powerpc: copy_thread differentiate kthreads and user mode threadsNicholas Piggin1-36/+62
2023-04-11powerpc: use switch frame for ret_from_kernel_thread parametersNicholas Piggin1-4/+9
2023-04-11powerpc: copy_thread make ret_from_fork register setup consistentNicholas Piggin1-3/+0
2023-04-11powerpc: copy_thread remove unused pkey codeNicholas Piggin1-11/+1
2023-03-15powerpc: Fix a kernel-doc warningBo Liu1-1/+1
2023-02-10powerpc: Skip stack validation checking alternate stacks if they are not allo...Nicholas Piggin1-0/+11
2023-02-10powerpc: Remove __kernel_text_address() in show_instructions()Christophe Leroy1-2/+1
2022-12-19Merge tag 'powerpc-6.2-1' of git://git.kernel.org/pub/scm/linux/kernel/git/po...Linus Torvalds1-27/+70
2022-12-02powerpc: allow minimum sized kernel stack framesNicholas Piggin1-1/+1
2022-12-02powerpc: split validate_sp into two functionsNicholas Piggin1-9/+14
2022-12-02powerpc: copy_thread add a back chain to the switch stack frameNicholas Piggin1-0/+2
2022-12-02powerpc: copy_thread fill in interrupt frame marker and back chainNicholas Piggin1-1/+3
2022-12-02powerpc: add a define for the switch frame size and regs offsetNicholas Piggin1-4/+8
2022-12-02powerpc: add a define for the user interrupt frame sizeNicholas Piggin1-3/+3
2022-12-02powerpc: Rename STACK_FRAME_MARKER and derive it from frame offsetNicholas Piggin1-1/+1
2022-12-02powerpc: add definition for pt_regs offset within an interrupt frameNicholas Piggin1-2/+2
2022-12-02powerpc: Rearrange copy_thread child stack creationNicholas Piggin1-5/+6
2022-11-30powerpc: Allow clearing and restoring registers independent of saved breakpoi...Jordan Niethe1-3/+35
2022-11-24powerpc: Print instruction dump on a single lineMichael Ellerman1-4/+1
2022-11-24powerpc: Make instruction dump work with scripts/decodecodeMichael Ellerman1-1/+1
2022-11-18treewide: use get_random_u32_below() instead of deprecated functionJason A. Donenfeld1-1/+1
2022-10-16Merge tag 'random-6.1-rc1-for-linus' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-1/+1
2022-10-12Merge tag 'mm-nonmm-stable-2022-10-11' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-5/+0
2022-10-11treewide: use prandom_u32_max() when possible, part 1Jason A. Donenfeld1-1/+1
2022-10-04powerpc/64: Fix msr_check_and_set/clear MSR[EE] raceNicholas Piggin1-2/+2
2022-09-11kernel: exit: cleanup release_thread()Kefeng Wang1-5/+0
2022-06-18powerpc: Enable execve syscall exit tracepointNaveen N. Rao1-1/+1
2022-06-09Merge tag 'powerpc-5.19-2' of git://git.kernel.org/pub/scm/linux/kernel/git/p...Linus Torvalds1-2/+2
2022-06-03Merge tag 'kthread-cleanups-for-v5.19' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-7/+8
2022-05-29powerpc/kasan: Silence KASAN warnings in __get_wchan()He Ying1-2/+2
2022-05-08powerpc: Remove asm/prom.h from all files that don't need itChristophe Leroy1-1/+0
2022-05-07fork: Generalize PF_IO_WORKER handlingEric W. Biederman1-5/+4
2022-05-07fork: Pass struct kernel_clone_args into copy_threadEric W. Biederman1-3/+5
2022-05-05powerpc: fix typos in commentsJulia Lawall1-2/+2
2022-05-05powerpc: Simplify and move arch_randomize_brk()Christophe Leroy1-41/+0
2021-12-09powerpc/inst: Define ppc_inst_tChristophe Leroy1-1/+1
2021-12-09powerpc: Add KUAP support for BOOKE and 40xChristophe Leroy1-0/+3
2021-12-09powerpc/kuap: Prepare for supporting KUAP on BOOK3E/64Christophe Leroy1-3/+3
2021-12-09powerpc/64s: Move hash MMU support code under CONFIG_PPC_64S_HASH_MMUNicholas Piggin1-6/+7
2021-11-24KVM: PPC: Book3S HV P9: Use Linux SPR save/restore to manage some host SPRsNicholas Piggin1-0/+6
2021-11-24KVM: PPC: Book3S HV P9: Reduce mtmsrd instructions required to save host SPRsNicholas Piggin1-0/+28
2021-10-15sched: Add wrapper for get_wchan() to keep task blockedKees Cook1-6/+3
2021-08-26powerpc: Add dear as a synonym for pt_regs.dar registerXiongwei Song1-1/+1
2021-08-26powerpc: Add esr as a synonym for pt_regs.dsisrXiongwei Song1-1/+1
2021-07-02Merge tag 'powerpc-5.14-1' of git://git.kernel.org/pub/scm/linux/kernel/git/p...Linus Torvalds1-37/+70
2021-06-25powerpc/64s: Fix copy-paste data exposure into newly created tasksNicholas Piggin1-16/+32
2021-06-25powerpc/64s: avoid reloading (H)SRR registers if they are still validNicholas Piggin1-19/+23
2021-06-18sched: Introduce task_is_running()Peter Zijlstra1-2/+2
2021-06-17powerpc: make stack walking KASAN-safeDaniel Axtens1-2/+3
2021-06-17powerpc/32s: Rework Kernel Userspace Access ProtectionChristophe Leroy1-0/+3
2021-06-16powerpc: Don't handle ALTIVEC/SPE in ASM in _switch(). Do it in C.Christophe Leroy1-0/+9
2021-04-17powerpc/traps: Enhance readability for trap typesXiongwei Song1-1/+3
2021-04-14powerpc: remove partial register save logicNicholas Piggin1-12/+0
2021-03-29powerpc/32: Manage KUAP in CChristophe Leroy1-0/+3
2021-03-29powerpc/32: Remove ksp_limitChristophe Leroy1-3/+0
2021-03-29powerpc/signal64: Remove TM ifdefery in middle of if/else blockChristopher M. Riedl1-1/+2
2021-02-27Merge tag 'io_uring-worker.v3-2021-02-25' of git://git.kernel.dk/linux-blockLinus Torvalds1-1/+1
2021-02-23arch: ensure parisc/powerpc handle PF_IO_WORKER in copy_thread()Jens Axboe1-1/+1
2021-02-11powerpc/64: Fix stack trace not displaying final frameMichael Ellerman1-1/+1
2021-02-09powerpc/64: Make stack tracing work during very early bootMichael Ellerman1-0/+3
2021-02-09powerpc: convert interrupt handlers to use wrappersNicholas Piggin1-1/+2
2021-02-09powerpc: do_break get registers from regsNicholas Piggin1-4/+3
2020-12-09powerpc/process: Remove target specific __set_dabr()Christophe Leroy1-24/+13
2020-12-04powerpc/book3s64/pkeys: Don't update SPRN_AMR when in kernel mode.Aneesh Kumar K.V1-4/+0
2020-12-04powerpc/book3s64/pkeys: Reset userspace AMR correctly on execAneesh Kumar K.V1-1/+5
2020-12-04powerpc/book3s64/pkeys: Inherit correctly on fork.Aneesh Kumar K.V1-0/+10
2020-12-04powerpc/exec: Set thread.regs early during execAneesh Kumar K.V1-14/+13
2020-12-04powerpc: show registers when unwinding interrupt framesNicholas Piggin1-6/+14
2020-12-04powerpc/signal: Don't manage floating point regs when no FPUChristophe Leroy1-0/+4
2020-09-18powerpc/process: Fix uninitialised variable errorMichael Ellerman1-1/+1
2020-09-15powerpc/process: Remove useless #ifdef CONFIG_PPC_FPUChristophe Leroy1-5/+4
2020-09-15powerpc/process: Remove useless #ifdef CONFIG_SPEChristophe Leroy1-14/+7
2020-09-15powerpc/process: Remove useless #ifdef CONFIG_ALTIVECChristophe Leroy1-4/+0
2020-09-15powerpc/process: Remove useless #ifdef CONFIG_VSXChristophe Leroy1-12/+1
2020-09-15powerpc/process: Tag an #endif to help locate the matching #ifdef.Christophe Leroy1-1/+1
2020-09-15powerpc/process: Replace #ifdef CONFIG_KALLSYMS by IS_ENABLED()Christophe Leroy1-4/+4
2020-09-15powerpc/process: Replace an #if defined(CONFIG_4xx) || defined(CONFIG_BOOKE) ...Christophe Leroy1-6/+7
2020-09-15powerpc/process: Replace an #ifdef CONFIG_PPC_BOOK3S_64 by IS_ENABLED()Christophe Leroy1-3/+1
2020-09-15powerpc/process: Replace an #ifdef CONFIG_PPC_47x by IS_ENABLED()Christophe Leroy1-3/+2
2020-09-15powerpc/watchpoint: Fix exception handling for CONFIG_HAVE_HW_BREAKPOINT=NRavi Bangoria1-0/+48
2020-09-14Merge branch 'fixes' into nextMichael Ellerman1-3/+9
2020-09-08powerpc/64s: handle ISA v3.1 local copy-paste context switchesNicholas Piggin1-7/+9
2020-09-08powerpc/process: Remove unnecessary #ifdef CONFIG_FUNCTION_GRAPH_TRACERChristophe Leroy1-4/+0
2020-08-27powerpc/64s: Fix crash in load_fp_state() due to fpexc_modeMichael Ellerman1-3/+9
2020-08-07Merge tag 'powerpc-5.9-1' of git://git.kernel.org/pub/scm/linux/kernel/git/po...Linus Torvalds1-43/+68
2020-07-23Merge branch 'scv' support into nextMichael Ellerman1-2/+8
2020-07-22powerpc/64s: system call support for scv/rfscv instructionsNicholas Piggin1-2/+8
2020-07-16powerpc/64s: Fix restore_math unnecessarily changing MSRNicholas Piggin1-40/+60
2020-07-16powerpc/64s: restore_math remove TM testNicholas Piggin1-2/+1
2020-07-04arch: rename copy_thread_tls() back to copy_thread()Christian Brauner1-1/+1
2020-06-21Merge tag 'powerpc-5.8-3' of git://git.kernel.org/pub/scm/linux/kernel/git/po...Linus Torvalds1-9/+11
2020-06-18maccess: rename probe_kernel_address to get_kernel_nofaultChristoph Hellwig1-1/+1
2020-06-17maccess: rename probe_user_{read,write} to copy_{from,to}_user_nofaultChristoph Hellwig1-1/+2
2020-06-15powerpc: Fix kernel crash in show_instructions() w/DEBUG_VIRTUALAneesh Kumar K.V1-9/+11
2020-06-09mm: don't include asm/pgtable.h if linux/mm.h is already includedMike Rapoport1-1/+0
2020-06-09kernel: rename show_stack_loglvl() => show_stack()Dmitry Safonov1-8/+3
2020-06-09powerpc: add show_stack_loglvl()Dmitry Safonov1-5/+13
2020-05-19powerpc/watchpoint: Prepare handler to handle more than one watchpointRavi Bangoria1-3/+0
2020-05-19powerpc/watchpoint: Use builtin ALIGN*() macrosRavi Bangoria1-4/+4
2020-05-19powerpc/watchpoint: Use loop for thread_struct->ptrace_bpsRavi Bangoria1-1/+5
2020-05-19powerpc/watchpoint: Convert thread_struct->hw_brk to an arrayRavi Bangoria1-23/+37
2020-05-19powerpc/watchpoint: Provide DAWR number to __set_breakpointRavi Bangoria1-7/+7
2020-05-19powerpc/watchpoint: Provide DAWR number to set_dawrRavi Bangoria1-1/+1
2020-05-15powerpc: trap_is_syscall() helper to hide syscall trap numberNicholas Piggin1-1/+1
2020-05-15powerpc/64s: Always has full regs, so remove remnant checksNicholas Piggin1-1/+1
2020-04-20powerpc: Use mm_context vas_windows counter to issue CP_ABORTHaren Myneni1-22/+2
2020-04-01powerpc/64s: Implement interrupt exit logic in CNicholas Piggin1-41/+48
2020-04-01powerpc/64: mark emergency stacks valid to unwindNicholas Piggin1-1/+30
2020-03-04powerpc: Rename current_stack_pointer() to current_stack_frame()Michael Ellerman1-1/+1
2020-02-19powerpc/process: Remove unneccessary #ifdef CONFIG_PPC64 in copy_thread_tls()Christophe Leroy1-2/+0
2020-01-26powerpc: use probe_user_read() and probe_user_write()Christophe Leroy1-11/+1
2020-01-23powerpc/hw_breakpoints: Rewrite 8xx breakpoints to allow any address range size.Christophe Leroy1-22/+35
2019-11-13powerpc/watchpoint: Fix length calculation for unaligned targetRavi Bangoria1-0/+3
2019-09-20Merge tag 'powerpc-5.4-1' of git://git.kernel.org/pub/scm/linux/kernel/git/po...Linus Torvalds1-17/+11
2019-09-18powerpc: Use ftrace_graph_ret_addr() when unwindingNaveen N. Rao1-13/+6
2019-09-04powerpc/tm: Fix restoring FP/VMX facility incorrectly on interruptsGustavo Romero1-16/+2
2019-09-04powerpc/tm: Fix FP/VMX unavailable exceptions inside a transactionGustavo Romero1-1/+2
2019-08-28powerpc: convert to copy_thread_tlsNicholas Piggin1-4/+5
2019-07-13Merge tag 'powerpc-5.3-1' of git://git.kernel.org/pub/scm/linux/kernel/git/po...Linus Torvalds1-28/+0
2019-07-08Merge branch 'siginfo-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-1/+1
2019-07-03powerpc: Fix compile issue with force DAWRMichael Neuling1-28/+0
2019-05-30treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152Thomas Gleixner1-5/+1
2019-05-29signal: Remove the task parameter from force_sig_faultEric W. Biederman1-1/+1
2019-05-03powerpc/64: Don't trace code that runs with the soft irq mask unreconciledNicholas Piggin1-3/+15
2019-05-01powerpc/64s: Remove 'dummy_copy_buffer'Mathieu Malaterre1-5/+0
2019-04-30Merge branch 'topic/ppc-kvm' into nextMichael Ellerman1-4/+5
2019-04-20powerpc: Add force enable of DAWR on P9 optionMichael Neuling1-4/+5
2019-04-20powerpc/mm/radix: Don't do SLB preload when using the radix MMUAneesh Kumar K.V1-1/+2
2019-02-23powerpc: regain entire stack spaceChristophe Leroy1-19/+13
2019-02-23powerpc: Activate CONFIG_THREAD_INFO_IN_TASKChristophe Leroy1-1/+1
2019-02-23powerpc: Replace current_thread_info()->task with currentChristophe Leroy1-3/+3
2019-02-23powerpc: prep stack walkers for THREAD_INFO_IN_TASKChristophe Leroy1-3/+23
2019-02-22powerpc: Fix 32-bit KVM-PR lockup and host crash with MacOS guestMark Cave-Ayland1-1/+1
2018-12-22powerpc/frace: Use ftrace_graph_get_ret_stack() instead of curr_ret_stackSteven Rostedt (VMware)1-4/+9
2018-11-02Merge tag 'powerpc-4.20-2' of git://git.kernel.org/pub/scm/linux/kernel/git/p...Linus Torvalds1-2/+1
2018-10-26Merge tag 'powerpc-4.20-1' of git://git.kernel.org/pub/scm/linux/kernel/git/p...Linus Torvalds1-38/+52
2018-10-26powerpc/process: Fix flush_all_to_thread for SPEFelipe Rechia1-2/+1
2018-10-24Merge branch 'siginfo-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-8/+1
2018-10-14powerpc/64s/hash: Add a SLB preload cacheNicholas Piggin1-0/+7
2018-10-14powerpc/64s/hash: Provide arch_setup_exec() hooks for hash slice setupNicholas Piggin1-0/+9
2018-10-14powerpc/64: Interrupts save PPR on stack rather than thread_structNicholas Piggin1-1/+1
2018-10-13powerpc/process: Constify the number of insns printed by show instructions fu...Christophe Leroy1-7/+6
2018-10-13powerpc/process: Fix interleaved output in show_user_instructions()Christophe Leroy1-18/+19
2018-10-13powerpc/process: Add missing include of stacktrace.hChristophe Leroy1-0/+1
2018-10-13powerpc/process: Fix sparse address space warningsChristophe Leroy1-2/+2
2018-10-09Merge branch 'fixes' into nextMichael Ellerman1-0/+10
2018-10-05powerpc: Don't print kernel instructions in show_user_instructions()Michael Ellerman1-0/+10
2018-10-03powerpc/tm: Remove msr_tm_active()Breno Leitao1-12/+9
2018-10-03Revert "convert SLB miss handlers to C" and subsequent commitsMichael Ellerman1-16/+0
2018-09-21signal/powerpc: Use force_sig_fault where appropriateEric W. Biederman1-8/+1
2018-09-19powerpc/64s/hash: Add a SLB preload cacheNicholas Piggin1-0/+7
2018-09-19powerpc/64s/hash: provide arch_setup_exec hooks for hash slice setupNicholas Piggin1-0/+9
2018-08-08powerpc: Add show_user_instructions()Murilo Opsfelder Araujo1-0/+32
2018-07-30powerpc: declare set_breakpoint() staticChristophe Leroy1-7/+7
2018-07-24powerpc/tm: Remove struct thread_info param from tm_reclaim_thread()Cyril Bur1-4/+3
2018-07-24powerpc/pkeys: Save the pkey registers before forkRam Pai1-0/+1
2018-07-16powerpc/64s: Remove POWER9 DD1 supportNicholas Piggin1-9/+1
2018-06-07Merge tag 'powerpc-4.18-1' of git://git.kernel.org/pub/scm/linux/kernel/git/p...Linus Torvalds1-115/+32
2018-06-03powerpc: use task_pid_nr() for TID allocationAlastair D'Silva1-94/+28
2018-06-03powerpc: Use TIDR CPU feature to control TIDR allocationAlastair D'Silva1-3/+3
2018-06-03powerpc/64: change softe to irqmask in show_regs and xmonNicholas Piggin1-1/+1
2018-06-03powerpc/pseries: lparcfg calculate PURR on demandNicholas Piggin1-14/+0
2018-06-03powerpc/64: remove start_tb and accum_tb from thread_structNicholas Piggin1-5/+1
2018-05-24powerpc: Export msr_check_and_set() to modulesSimon Guo1-0/+1
2018-04-25signal: Ensure every siginfo we send has all bits initializedEric W. Biederman1-0/+1
2018-04-03powerpc: Don't write to DABR on >= Power8 if DAWR is disabledNicholas Piggin1-2/+8
2018-03-27Merge branch 'topic/ppc-kvm' into nextMichael Ellerman1-0/+12
2018-03-27powerpc: Add ppc_breakpoint_available()Michael Neuling1-0/+12
2018-03-13powerpc/kernel: Make function __giveup_fpu() staticMathieu Malaterre1-2/+2
2018-02-02Merge tag 'powerpc-4.16-1' of git://git.kernel.org/pub/scm/linux/kernel/git/p...Linus Torvalds1-8/+20
2018-01-27powerpc/kernel: Block interrupts when updating TIDRSukadev Bhattiprolu1-6/+9
2018-01-22signal/ptrace: Add force_sig_ptrace_errno_trap and use it where neededEric W. Biederman1-7/+2
2018-01-22signal/powerpc: Remove unnecessary signal_code parameter of do_send_trapEric W. Biederman1-3/+3
2018-01-21Merge branch 'fixes' into nextMichael Ellerman1-1/+1
2018-01-20powerpc: store and restore the pkey state across context switchesRam Pai1-0/+7
2018-01-19cxl: Add support for ASB_Notify on POWER9Christophe Lombard1-0/+1
2018-01-19powerpc/64: Add #defines for paca->soft_enabled flagsMadhavan Srinivasan1-1/+2
2018-01-16powerpc: Use the TRAP macro whenever comparing a trap numberBenjamin Herrenschmidt1-1/+1
2017-12-19powerpc/kernel: Print actual address of regs when oopsingMichael Ellerman1-1/+1
2017-11-29powerpc: Do not assign thread.tidr if already assignedVaibhav Jain1-0/+3
2017-11-29powerpc: Avoid signed to unsigned conversion in set_thread_tidr()Vaibhav Jain1-3/+6
2017-11-12powerpc: Define set_thread_uses_vas()Sukadev Bhattiprolu1-10/+31
2017-11-12powerpc: Add support for setting SPRN_TIDRSukadev Bhattiprolu1-0/+116
2017-11-06powerpc: Always save/restore checkpointed regs during treclaim/trecheckpointCyril Bur1-14/+8
2017-11-06powerpc: Force reload for recheckpoint during tm {fp, vec, vsx} unavailable e...Cyril Bur1-2/+2
2017-11-06powerpc: Don't enable FP/Altivec if not checkpointedCyril Bur1-2/+16
2017-11-06powerpc/64s: Replace CONFIG_PPC_STD_MMU_64 with CONFIG_PPC_BOOK3S_64Michael Ellerman1-6/+6
2017-10-21powerpc/tm: P9 disable transactionally suspended sigcontextsMichael Neuling1-0/+2
2017-10-21powerpc/powernv: Enable TM without suspend if possibleMichael Ellerman1-0/+7
2017-10-06powerpc: get_wchan(): solve possible race scenario due to parallel wakeupKautuk Consul1-1/+2
2017-08-28powerpc/oops: Line up NIP & MSR with other rowsMichael Ellerman1-2/+2
2017-08-28powerpc/oops: Print CR/XER on same line as MSRMichael Ellerman1-1/+1
2017-08-23powerpc/64: Optimise set/clear of CTRL[RUN] (runlatch)Nicholas Piggin1-8/+27
2017-08-23Merge branch 'fixes' into nextMichael Ellerman1-6/+3