xstate.h (f0dccc9da4c0fda049e99326f85db8c242fd781f) | xstate.h (50f408d96d4d1a945d2c50c5fd8ed400883edf0e) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef __ASM_X86_XSAVE_H 3#define __ASM_X86_XSAVE_H 4 5#include <linux/uaccess.h> 6#include <linux/types.h> 7 8#include <asm/processor.h> --- 92 unchanged lines hidden (view full) --- 101void *get_xsave_addr(struct xregs_state *xsave, int xfeature_nr); 102const void *get_xsave_field_ptr(int xfeature_nr); 103int using_compacted_format(void); 104int copy_xstate_to_kernel(void *kbuf, struct xregs_state *xsave, unsigned int offset, unsigned int size); 105int copy_xstate_to_user(void __user *ubuf, struct xregs_state *xsave, unsigned int offset, unsigned int size); 106int copy_kernel_to_xstate(struct xregs_state *xsave, const void *kbuf); 107int copy_user_to_xstate(struct xregs_state *xsave, const void __user *ubuf); 108void copy_supervisor_to_kernel(struct xregs_state *xsave); | 1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef __ASM_X86_XSAVE_H 3#define __ASM_X86_XSAVE_H 4 5#include <linux/uaccess.h> 6#include <linux/types.h> 7 8#include <asm/processor.h> --- 92 unchanged lines hidden (view full) --- 101void *get_xsave_addr(struct xregs_state *xsave, int xfeature_nr); 102const void *get_xsave_field_ptr(int xfeature_nr); 103int using_compacted_format(void); 104int copy_xstate_to_kernel(void *kbuf, struct xregs_state *xsave, unsigned int offset, unsigned int size); 105int copy_xstate_to_user(void __user *ubuf, struct xregs_state *xsave, unsigned int offset, unsigned int size); 106int copy_kernel_to_xstate(struct xregs_state *xsave, const void *kbuf); 107int copy_user_to_xstate(struct xregs_state *xsave, const void __user *ubuf); 108void copy_supervisor_to_kernel(struct xregs_state *xsave); |
109void copy_dynamic_supervisor_to_kernel(struct xregs_state *xstate, u64 mask); 110void copy_kernel_to_dynamic_supervisor(struct xregs_state *xstate, u64 mask); |
|
109 | 111 |
112 |
|
110/* Validate an xstate header supplied by userspace (ptrace or sigreturn) */ 111int validate_user_xstate_header(const struct xstate_header *hdr); 112 113#endif | 113/* Validate an xstate header supplied by userspace (ptrace or sigreturn) */ 114int validate_user_xstate_header(const struct xstate_header *hdr); 115 116#endif |