cve_id
stringlengths
13
16
repo
stringclasses
12 values
repo_url
stringclasses
10 values
file_path
stringlengths
7
62
function_name
stringlengths
4
52
pa
stringlengths
50
341k
pb
stringlengths
33
341k
px
stringlengths
50
338k
py
stringlengths
33
338k
pa_sliced
stringlengths
31
44.3k
pb_sliced
stringlengths
31
44.6k
px_sliced
stringlengths
51
45.8k
py_sliced
stringlengths
33
46.9k
patch_sliced
stringlengths
0
46.8k
CVE-2014-7826
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
kernel/trace/trace_syscalls.c
perf_syscall_enter
static void perf_syscall_enter(void *ignore, struct pt_regs *regs, long id) { struct syscall_metadata *sys_data; struct syscall_trace_enter *rec; struct hlist_head *head; int syscall_nr; int rctx; int size; syscall_nr = trace_get_syscall_nr(current, regs); if (syscall_nr < 0) { r...
static void perf_syscall_enter(void *ignore, struct pt_regs *regs, long id) { struct syscall_metadata *sys_data; struct syscall_trace_enter *rec; struct hlist_head *head; int syscall_nr; int rctx; int size; syscall_nr = trace_get_syscall_nr(current, regs); if (syscall_nr < 0 || syscall_n...
static void perf_syscall_enter(void *ignore, struct pt_regs *regs, long id) { struct syscall_metadata *sys_data; struct syscall_trace_enter *rec; struct hlist_head *head; int syscall_nr; int rctx; int size; syscall_nr = syscall_get_nr(current, regs); if (syscall_nr < 0) { return;...
static void perf_syscall_enter(void *ignore, struct pt_regs *regs, long id) { struct syscall_metadata *sys_data; struct syscall_trace_enter *rec; struct hlist_head *head; int syscall_nr; int rctx; int size; syscall_nr = syscall_get_nr(current, regs); if (syscall_nr < 0 || syscall_nr >= N...
static void perf_syscall_enter(void *ignore, struct pt_regs *regs, long id) { syscall_nr = trace_get_syscall_nr(current, regs); if (syscall_nr < 0) { return; } if (!test_bit(syscall_nr, enabled_perf_enter_syscalls)) { return; } sys_data = syscall_nr_to_meta(syscall_nr); if (!...
static void perf_syscall_enter(void *ignore, struct pt_regs *regs, long id) { syscall_nr = trace_get_syscall_nr(current, regs); if (syscall_nr < 0 || syscall_nr >= NR_syscalls) { return; } if (!test_bit(syscall_nr, enabled_perf_enter_syscalls)) { return; } sys_data = syscall_nr_t...
static void perf_syscall_enter(void *ignore, struct pt_regs *regs, long id) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ syscall_nr = syscall_get_nr(current, regs); if (syscall_nr < 0) { return; } if (!test_bit(syscall_nr, enabled_perf_enter_syscalls)) { return; } sys_data...
static void perf_syscall_enter(void *ignore, struct pt_regs *regs, long id) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ syscall_nr = syscall_get_nr(current, regs); if (syscall_nr < 0 || syscall_nr >= NR_syscalls) { return; } if (!test_bit(syscall_nr, enabled_perf_enter_syscalls)) { ...
static void perf_syscall_enter(void *ignore, struct pt_regs *regs, long id) { syscall_nr = trace_get_syscall_nr(current, regs); - if (syscall_nr < 0) { + if (syscall_nr < 0 || syscall_nr >= NR_syscalls) { return; } if (!test_bit(syscall_nr, enabled_perf_enter_syscalls)) { return;...
CVE-2014-7826
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
kernel/trace/trace_syscalls.c
perf_syscall_exit
static void perf_syscall_exit(void *ignore, struct pt_regs *regs, long ret) { struct syscall_metadata *sys_data; struct syscall_trace_exit *rec; struct hlist_head *head; int syscall_nr; int rctx; int size; syscall_nr = trace_get_syscall_nr(current, regs); if (syscall_nr < 0) { re...
static void perf_syscall_exit(void *ignore, struct pt_regs *regs, long ret) { struct syscall_metadata *sys_data; struct syscall_trace_exit *rec; struct hlist_head *head; int syscall_nr; int rctx; int size; syscall_nr = trace_get_syscall_nr(current, regs); if (syscall_nr < 0 || syscall_nr...
static void perf_syscall_exit(void *ignore, struct pt_regs *regs, long ret) { struct syscall_metadata *sys_data; struct syscall_trace_exit *rec; struct hlist_head *head; int syscall_nr; int rctx; int size; syscall_nr = syscall_get_nr(current, regs); if (syscall_nr < 0) { return; ...
static void perf_syscall_exit(void *ignore, struct pt_regs *regs, long ret) { struct syscall_metadata *sys_data; struct syscall_trace_exit *rec; struct hlist_head *head; int syscall_nr; int rctx; int size; syscall_nr = syscall_get_nr(current, regs); if (syscall_nr < 0 || syscall_nr >= NR...
static void perf_syscall_exit(void *ignore, struct pt_regs *regs, long ret) { syscall_nr = trace_get_syscall_nr(current, regs); if (syscall_nr < 0) { return; } if (!test_bit(syscall_nr, enabled_perf_exit_syscalls)) { return; } sys_data = syscall_nr_to_meta(syscall_nr); if (!s...
static void perf_syscall_exit(void *ignore, struct pt_regs *regs, long ret) { syscall_nr = trace_get_syscall_nr(current, regs); if (syscall_nr < 0 || syscall_nr >= NR_syscalls) { return; } if (!test_bit(syscall_nr, enabled_perf_exit_syscalls)) { return; } sys_data = syscall_nr_to...
static void perf_syscall_exit(void *ignore, struct pt_regs *regs, long ret) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ syscall_nr = syscall_get_nr(current, regs); if (syscall_nr < 0) { return; } if (!test_bit(syscall_nr, enabled_perf_exit_syscalls)) { return; } sys_data ...
static void perf_syscall_exit(void *ignore, struct pt_regs *regs, long ret) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ syscall_nr = syscall_get_nr(current, regs); if (syscall_nr < 0 || syscall_nr >= NR_syscalls) { return; } if (!test_bit(syscall_nr, enabled_perf_exit_syscalls)) { ...
static void perf_syscall_exit(void *ignore, struct pt_regs *regs, long ret) { syscall_nr = trace_get_syscall_nr(current, regs); - if (syscall_nr < 0) { + if (syscall_nr < 0 || syscall_nr >= NR_syscalls) { return; } if (!test_bit(syscall_nr, enabled_perf_exit_syscalls)) { return; ...
CVE-2014-7841
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/sctp/sm_make_chunk.c
sctp_process_param
static int sctp_process_param(struct sctp_association *asoc, union sctp_params param, const union sctp_addr *peer_addr, gfp_t gfp) { struct net *net = sock_net(asoc->base.sk); union sctp_addr addr; int i; __u16 sat; int retval = 1; sctp_scope_t scope; time_t stale; struct sctp_af *af; ...
static int sctp_process_param(struct sctp_association *asoc, union sctp_params param, const union sctp_addr *peer_addr, gfp_t gfp) { struct net *net = sock_net(asoc->base.sk); union sctp_addr addr; int i; __u16 sat; int retval = 1; sctp_scope_t scope; time_t stale; struct sctp_af *af; ...
static int sctp_process_param(struct sctp_association *asoc, union sctp_params param, const union sctp_addr *peer_addr, gfp_t gfp) { union sctp_addr addr; int i; __u16 sat; int retval = 1; sctp_scope_t scope; time_t stale; struct sctp_af *af; union sctp_addr_param *addr_param; struct...
static int sctp_process_param(struct sctp_association *asoc, union sctp_params param, const union sctp_addr *peer_addr, gfp_t gfp) { union sctp_addr addr; int i; __u16 sat; int retval = 1; sctp_scope_t scope; time_t stale; struct sctp_af *af; union sctp_addr_param *addr_param; struct...
static int sctp_process_param(struct sctp_association *asoc, union sctp_params param, const union sctp_addr *peer_addr, gfp_t gfp) { switch (param.p->type) { case SCTP_PARAM_SET_PRIMARY: af = sctp_get_af_specific(param_type2af(param.p->type)); af->from_addr_param(&addr, addr_param, htons(asoc->p...
static int sctp_process_param(struct sctp_association *asoc, union sctp_params param, const union sctp_addr *peer_addr, gfp_t gfp) { switch (param.p->type) { case SCTP_PARAM_SET_PRIMARY: af = sctp_get_af_specific(param_type2af(param.p->type)); if (af == NULL) { break; } ...
static int sctp_process_param(struct sctp_association *asoc, union sctp_params param, const union sctp_addr *peer_addr, gfp_t gfp) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ switch (param.p->type) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ case SCTP_PARAM_SET_PRIMARY: /* PLACEHOLDER: DO NO...
static int sctp_process_param(struct sctp_association *asoc, union sctp_params param, const union sctp_addr *peer_addr, gfp_t gfp) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ switch (param.p->type) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ case SCTP_PARAM_SET_PRIMARY: /* PLACEHOLDER: DO NO...
static int sctp_process_param(struct sctp_association *asoc, union sctp_params param, const union sctp_addr *peer_addr, gfp_t gfp) { switch (param.p->type) { case SCTP_PARAM_SET_PRIMARY: af = sctp_get_af_specific(param_type2af(param.p->type)); + if (af == NULL) { + break; + ...
CVE-2014-7842
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
arch/x86/kvm/x86.c
handle_emulation_failure
static int handle_emulation_failure(struct kvm_vcpu *vcpu) { int r = EMULATE_DONE; ++vcpu->stat.insn_emulation_fail; trace_kvm_emulate_insn_failed(vcpu); if (!is_guest_mode(vcpu)) { vcpu->run->exit_reason = KVM_EXIT_TERNAL_ERROR; vcpu->run->internal.suberror = KVM_TERNAL_ERROR_EMULATION;...
static int handle_emulation_failure(struct kvm_vcpu *vcpu) { int r = EMULATE_DONE; ++vcpu->stat.insn_emulation_fail; trace_kvm_emulate_insn_failed(vcpu); if (!is_guest_mode(vcpu) && kvm_x86_ops->get_cpl(vcpu) == 0) { vcpu->run->exit_reason = KVM_EXIT_TERNAL_ERROR; vcpu->run->internal.sub...
static int handle_emulation_failure(struct kvm_vcpu *vcpu) { int r = EMULATE_DONE; ++vcpu->stat.insn_emulation_fail; trace_kvm_emulate_insn_failed(vcpu); if (!is_guest_mode(vcpu)) { vcpu->run->exit_reason = KVM_EXIT_TERNAL_ERROR; vcpu->run->internal.suberror = KVM_TERNAL_ERROR_EMULATION;...
static int handle_emulation_failure(struct kvm_vcpu *vcpu) { int r = EMULATE_DONE; ++vcpu->stat.insn_emulation_fail; trace_kvm_emulate_insn_failed(vcpu); if (!is_guest_mode(vcpu) && kvm_x86_ops->get_cpl(vcpu) == 0) { vcpu->run->exit_reason = KVM_EXIT_TERNAL_ERROR; vcpu->run->internal.sub...
static int handle_emulation_failure(struct kvm_vcpu *vcpu) { trace_kvm_emulate_insn_failed(vcpu); if (!is_guest_mode(vcpu)) { vcpu->run->exit_reason = KVM_EXIT_TERNAL_ERROR; } kvm_queue_exception(vcpu, UD_VECTOR); }
static int handle_emulation_failure(struct kvm_vcpu *vcpu) { trace_kvm_emulate_insn_failed(vcpu); if (!is_guest_mode(vcpu) && kvm_x86_ops->get_cpl(vcpu) == 0) { vcpu->run->exit_reason = KVM_EXIT_TERNAL_ERROR; } kvm_queue_exception(vcpu, UD_VECTOR); }
static int handle_emulation_failure(struct kvm_vcpu *vcpu) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ trace_kvm_emulate_insn_failed(vcpu); if (!is_guest_mode(vcpu)) { vcpu->run->exit_reason = KVM_EXIT_TERNAL_ERROR; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } kvm_queue_exception(...
static int handle_emulation_failure(struct kvm_vcpu *vcpu) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ trace_kvm_emulate_insn_failed(vcpu); if (!is_guest_mode(vcpu) && kvm_x86_ops->get_cpl(vcpu) == 0) { vcpu->run->exit_reason = KVM_EXIT_TERNAL_ERROR; /* PLACEHOLDER: DO NOT DELETE THIS COMMEN...
static int handle_emulation_failure(struct kvm_vcpu *vcpu) { trace_kvm_emulate_insn_failed(vcpu); - if (!is_guest_mode(vcpu)) { + if (!is_guest_mode(vcpu) && kvm_x86_ops->get_cpl(vcpu) == 0) { vcpu->run->exit_reason = KVM_EXIT_TERNAL_ERROR; } kvm_queue_exception(vcpu, UD_VECTOR); }
CVE-2014-7975
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/namespace.c
do_umount
static int do_umount(struct mount *mnt, int flags) { struct super_block *sb = mnt->mnt.mnt_sb; int retval; retval = security_sb_umount(&mnt->mnt, flags); if (retval) { return retval; } if (flags & MNT_EXPIRE) { if (&mnt->mnt == current->fs->root.mnt || flags & (MNT_FORCE | MNT_DE...
static int do_umount(struct mount *mnt, int flags) { struct super_block *sb = mnt->mnt.mnt_sb; int retval; retval = security_sb_umount(&mnt->mnt, flags); if (retval) { return retval; } if (flags & MNT_EXPIRE) { if (&mnt->mnt == current->fs->root.mnt || flags & (MNT_FORCE | MNT_DE...
static int do_umount(struct mount *mnt, int flags) { struct super_block *sb = mnt->mnt.mnt_sb; int retval; retval = security_sb_umount(&mnt->mnt, flags); if (retval) { return retval; } if (flags & MNT_EXPIRE) { if (&mnt->mnt == current->fs->root.mnt || flags & (MNT_FORCE | MNT_DE...
static int do_umount(struct mount *mnt, int flags) { struct super_block *sb = mnt->mnt.mnt_sb; int retval; retval = security_sb_umount(&mnt->mnt, flags); if (retval) { return retval; } if (flags & MNT_EXPIRE) { if (&mnt->mnt == current->fs->root.mnt || flags & (MNT_FORCE | MNT_DE...
static int do_umount(struct mount *mnt, int flags) { if (&mnt->mnt == current->fs->root.mnt && !(flags & MNT_DETACH)) { down_write(&sb->s_umount); return retval; } }
static int do_umount(struct mount *mnt, int flags) { if (&mnt->mnt == current->fs->root.mnt && !(flags & MNT_DETACH)) { if (!capable(CAP_SYS_ADM)) { return -EPERM; } down_write(&sb->s_umount); return retval; } }
static int do_umount(struct mount *mnt, int flags) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (&mnt->mnt == current->fs->root.mnt && !(flags & MNT_DETACH)) { down_write(&sb->s_umount); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ return retval; } /* PLACEHOLDER: DO NOT DELET...
static int do_umount(struct mount *mnt, int flags) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (&mnt->mnt == current->fs->root.mnt && !(flags & MNT_DETACH)) { if (!capable(CAP_SYS_ADM)) { return -EPERM; } down_write(&sb->s_umount); /* PLACEHOLDER: DO NOT DELETE THI...
static int do_umount(struct mount *mnt, int flags) { if (&mnt->mnt == current->fs->root.mnt && !(flags & MNT_DETACH)) { + if (!capable(CAP_SYS_ADM)) { + return -EPERM; + } down_write(&sb->s_umount); return retval; } }
CVE-2014-8133
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
arch/x86/kernel/tls.c
do_set_thread_area
int do_set_thread_area(struct task_struct *p, int idx, struct user_desc *u_info, int can_allocate) { struct user_desc info; if (copy_from_user(&info, u_info, sizeof(info))) { return -EFAULT; } if (idx == -1) { idx = info.entry_number; } if (idx == -1 && can_allocate) { id...
int do_set_thread_area(struct task_struct *p, int idx, struct user_desc *u_info, int can_allocate) { struct user_desc info; if (copy_from_user(&info, u_info, sizeof(info))) { return -EFAULT; } if (!tls_desc_okay(&info)) { return -EVAL; } if (idx == -1) { idx = info.entry_...
int do_set_thread_area(struct task_struct *p, int idx, struct user_desc *u_info, int can_allocate) { struct user_desc info; if (copy_from_user(&info, u_info, sizeof(info))) { return -EFAULT; } if (idx == -1) { idx = info.entry_number; } if (idx == -1 && can_allocate) { id...
int do_set_thread_area(struct task_struct *p, int idx, struct user_desc *u_info, int can_allocate) { struct user_desc info; if (copy_from_user(&info, u_info, sizeof(info))) { return -EFAULT; } if (!tls_desc_okay(&info)) { return -EVAL; } if (idx == -1) { idx = info.entry_...
int do_set_thread_area(struct task_struct *p, int idx, struct user_desc *u_info, int can_allocate) { if (copy_from_user(&info, u_info, sizeof(info))) { return -EFAULT; } }
int do_set_thread_area(struct task_struct *p, int idx, struct user_desc *u_info, int can_allocate) { if (copy_from_user(&info, u_info, sizeof(info))) { return -EFAULT; } if (!tls_desc_okay(&info)) { return -EVAL; } }
int do_set_thread_area(struct task_struct *p, int idx, struct user_desc *u_info, int can_allocate) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (copy_from_user(&info, u_info, sizeof(info))) { return -EFAULT; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
int do_set_thread_area(struct task_struct *p, int idx, struct user_desc *u_info, int can_allocate) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (copy_from_user(&info, u_info, sizeof(info))) { return -EFAULT; } if (!tls_desc_okay(&info)) { return -EVAL; } /* PLACEHOLDER: DO ...
int do_set_thread_area(struct task_struct *p, int idx, struct user_desc *u_info, int can_allocate) { if (copy_from_user(&info, u_info, sizeof(info))) { return -EFAULT; } + if (!tls_desc_okay(&info)) { + return -EVAL; + } }
CVE-2014-8133
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
arch/x86/kernel/tls.c
regset_tls_set
int regset_tls_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void *ubuf) { struct user_desc infobuf[GDT_ENTRY_TLS_ENTRIES]; const struct user_desc *info; if (pos >= GDT_ENTRY_TLS_ENTRIES * sizeof(struct user_desc) || (pos % si...
int regset_tls_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void *ubuf) { struct user_desc infobuf[GDT_ENTRY_TLS_ENTRIES]; const struct user_desc *info; int i; if (pos >= GDT_ENTRY_TLS_ENTRIES * sizeof(struct user_desc) |...
int regset_tls_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void *ubuf) { struct user_desc infobuf[GDT_ENTRY_TLS_ENTRIES]; const struct user_desc *info; if (pos >= GDT_ENTRY_TLS_ENTRIES * sizeof(struct user_desc) || (pos % si...
int regset_tls_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void *ubuf) { struct user_desc infobuf[GDT_ENTRY_TLS_ENTRIES]; const struct user_desc *info; int i; if (pos >= GDT_ENTRY_TLS_ENTRIES * sizeof(struct user_desc) |...
int regset_tls_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void *ubuf) { const struct user_desc *info; if (pos >= GDT_ENTRY_TLS_ENTRIES * sizeof(struct user_desc) || (pos % sizeof(struct user_desc)) != 0 || (count % sizeof(struc...
int regset_tls_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void *ubuf) { const struct user_desc *info; int i; if (pos >= GDT_ENTRY_TLS_ENTRIES * sizeof(struct user_desc) || (pos % sizeof(struct user_desc)) != 0 || (count % s...
int regset_tls_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void *ubuf) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ const struct user_desc *info; if (pos >= GDT_ENTRY_TLS_ENTRIES * sizeof(struct user_desc) || (pos % sizeo...
int regset_tls_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void *ubuf) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ const struct user_desc *info; int i; if (pos >= GDT_ENTRY_TLS_ENTRIES * sizeof(struct user_desc) || (...
int regset_tls_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void *ubuf) { const struct user_desc *info; + int i; if (pos >= GDT_ENTRY_TLS_ENTRIES * sizeof(struct user_desc) || (pos % sizeof(struct user_desc)) != 0 || (count...
CVE-2014-8134
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
arch/x86/kernel/kvm.c
paravirt_ops_setup
static void paravirt_ops_setup(void) { pv_info.name = "KVM"; pv_info.paravirt_enabled = 1; if (kvm_para_has_feature(KVM_FEATURE_NOP_IO_DELAY)) { pv_cpu_ops.io_delay = kvm_io_delay; } if (kvm_para_has_feature(KVM_FEATURE_MMU_OP)) { pv_mmu_ops.set_pte = kvm_set_pte; pv_mmu_ops....
static void paravirt_ops_setup(void) { pv_info.name = "KVM"; pv_info.paravirt_enabled = 0; if (kvm_para_has_feature(KVM_FEATURE_NOP_IO_DELAY)) { pv_cpu_ops.io_delay = kvm_io_delay; } if (kvm_para_has_feature(KVM_FEATURE_MMU_OP)) { pv_mmu_ops.set_pte = kvm_set_pte; pv_mmu_ops....
static void paravirt_ops_setup(void) { pv_info.name = "KVM"; pv_info.paravirt_enabled = 1; if (kvm_para_has_feature(KVM_FEATURE_NOP_IO_DELAY)) { pv_cpu_ops.io_delay = kvm_io_delay; } no_timer_check = 1; }
static void paravirt_ops_setup(void) { pv_info.name = "KVM"; pv_info.paravirt_enabled = 0; if (kvm_para_has_feature(KVM_FEATURE_NOP_IO_DELAY)) { pv_cpu_ops.io_delay = kvm_io_delay; } no_timer_check = 1; }
static void paravirt_ops_setup(void) { pv_info.name = "KVM"; pv_info.paravirt_enabled = 1; }
static void paravirt_ops_setup(void) { pv_info.name = "KVM"; pv_info.paravirt_enabled = 0; }
static void paravirt_ops_setup(void) { pv_info.name = "KVM"; pv_info.paravirt_enabled = 1; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static void paravirt_ops_setup(void) { pv_info.name = "KVM"; pv_info.paravirt_enabled = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static void paravirt_ops_setup(void) { pv_info.name = "KVM"; - pv_info.paravirt_enabled = 1; + pv_info.paravirt_enabled = 0; }
CVE-2014-8134
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
arch/x86/kernel/kvmclock.c
kvmclock_init
void kvmclock_init(void) { if (!kvm_para_available()) { return; } if (kvmclock && kvm_para_has_feature(KVM_FEATURE_CLOCKSOURCE2)) { msr_kvm_system_time = MSR_KVM_SYSTEM_TIME_NEW; msr_kvm_wall_clock = MSR_KVM_WALL_CLOCK_NEW; } else if (!(kvmclock && kvm_para_has_feature(KVM_FEATUR...
void kvmclock_init(void) { if (!kvm_para_available()) { return; } if (kvmclock && kvm_para_has_feature(KVM_FEATURE_CLOCKSOURCE2)) { msr_kvm_system_time = MSR_KVM_SYSTEM_TIME_NEW; msr_kvm_wall_clock = MSR_KVM_WALL_CLOCK_NEW; } else if (!(kvmclock && kvm_para_has_feature(KVM_FEATUR...
void kvmclock_init(void) { unsigned long mem; int size; size = PAGE_ALIGN(sizeof(struct pvclock_vsyscall_time_info)*NR_CPUS); if (!kvm_para_available()) { return; } if (kvmclock && kvm_para_has_feature(KVM_FEATURE_CLOCKSOURCE2)) { msr_kvm_system_time = MSR_KVM_SYSTEM_TIME_NEW; ...
void kvmclock_init(void) { unsigned long mem; int size; size = PAGE_ALIGN(sizeof(struct pvclock_vsyscall_time_info)*NR_CPUS); if (!kvm_para_available()) { return; } if (kvmclock && kvm_para_has_feature(KVM_FEATURE_CLOCKSOURCE2)) { msr_kvm_system_time = MSR_KVM_SYSTEM_TIME_NEW; ...
void kvmclock_init(void) { clocksource_register_hz(&kvm_clock, NSEC_PER_SEC); pv_info.paravirt_enabled = 1; pv_info.name = "KVM"; }
void kvmclock_init(void) { clocksource_register_hz(&kvm_clock, NSEC_PER_SEC); pv_info.name = "KVM"; }
void kvmclock_init(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ clocksource_register_hz(&kvm_clock, NSEC_PER_SEC); pv_info.paravirt_enabled = 1; pv_info.name = "KVM"; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
void kvmclock_init(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ clocksource_register_hz(&kvm_clock, NSEC_PER_SEC); pv_info.name = "KVM"; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
void kvmclock_init(void) { clocksource_register_hz(&kvm_clock, NSEC_PER_SEC); - pv_info.paravirt_enabled = 1; pv_info.name = "KVM"; }
CVE-2014-8159
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/infiniband/core/umem.c
ib_umem_get
struct ib_umem *ib_umem_get(struct ib_ucontext *context, unsigned long addr, size_t size, int access, int dmasync) { struct ib_umem *umem; struct page **page_list; struct vm_area_struct **vma_list; unsigned long locked; unsigned long lock_limit; unsigned long cur_base; unsigned long npages; ...
struct ib_umem *ib_umem_get(struct ib_ucontext *context, unsigned long addr, size_t size, int access, int dmasync) { struct ib_umem *umem; struct page **page_list; struct vm_area_struct **vma_list; unsigned long locked; unsigned long lock_limit; unsigned long cur_base; unsigned long npages; ...
struct ib_umem *ib_umem_get(struct ib_ucontext *context, unsigned long addr, size_t size, int access, int dmasync) { struct ib_umem *umem; struct page **page_list; struct vm_area_struct **vma_list; struct ib_umem_chunk *chunk; unsigned long locked; unsigned long lock_limit; unsigned long cur...
struct ib_umem *ib_umem_get(struct ib_ucontext *context, unsigned long addr, size_t size, int access, int dmasync) { struct ib_umem *umem; struct page **page_list; struct vm_area_struct **vma_list; struct ib_umem_chunk *chunk; unsigned long locked; unsigned long lock_limit; unsigned long cur...
struct ib_umem *ib_umem_get(struct ib_ucontext *context, unsigned long addr, size_t size, int access, int dmasync) { if (dmasync) { dma_set_attr(DMA_ATTR_WRITE_BARRIER, &attrs); } if (!can_do_mlock()) { return ERR_PTR(-EPERM); } umem->length = size; umem->offset = addr & ~PAGE_MA...
struct ib_umem *ib_umem_get(struct ib_ucontext *context, unsigned long addr, size_t size, int access, int dmasync) { if (dmasync) { dma_set_attr(DMA_ATTR_WRITE_BARRIER, &attrs); } if ((PAGE_ALIGN(addr + size) <= size) || (PAGE_ALIGN(addr + size) <= addr)) { return ERR_PTR(-EVAL); } i...
struct ib_umem *ib_umem_get(struct ib_ucontext *context, unsigned long addr, size_t size, int access, int dmasync) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (dmasync) { dma_set_attr(DMA_ATTR_WRITE_BARRIER, &attrs); } if (!can_do_mlock()) { return ERR_PTR(-EPERM); } /* PL...
struct ib_umem *ib_umem_get(struct ib_ucontext *context, unsigned long addr, size_t size, int access, int dmasync) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (dmasync) { dma_set_attr(DMA_ATTR_WRITE_BARRIER, &attrs); } if ((PAGE_ALIGN(addr + size) <= size) || (PAGE_ALIGN(addr + size) <= a...
struct ib_umem *ib_umem_get(struct ib_ucontext *context, unsigned long addr, size_t size, int access, int dmasync) { if (dmasync) { dma_set_attr(DMA_ATTR_WRITE_BARRIER, &attrs); + } + if ((PAGE_ALIGN(addr + size) <= size) || (PAGE_ALIGN(addr + size) <= addr)) { + return ERR_PTR(-EVAL); ...
CVE-2014-8160
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/netfilter/nf_conntrack_proto_generic.c
generic_new
static bool generic_new(struct nf_conn *ct, const struct sk_buff *skb, unsigned int dataoff, unsigned int *timeouts) { return true; }
static bool generic_new(struct nf_conn *ct, const struct sk_buff *skb, unsigned int dataoff, unsigned int *timeouts) { return nf_generic_should_process(nf_ct_protonum(ct)); }
static bool generic_new(struct nf_conn *ct, const struct sk_buff *skb, unsigned int dataoff, unsigned int *timeouts) { return true; }
static bool generic_new(struct nf_conn *ct, const struct sk_buff *skb, unsigned int dataoff, unsigned int *timeouts) { return nf_generic_should_process(nf_ct_protonum(ct)); }
static bool generic_new(struct nf_conn *ct, const struct sk_buff *skb, unsigned int dataoff, unsigned int *timeouts) { return true; }
static bool generic_new(struct nf_conn *ct, const struct sk_buff *skb, unsigned int dataoff, unsigned int *timeouts) { return nf_generic_should_process(nf_ct_protonum(ct)); }
static bool generic_new(struct nf_conn *ct, const struct sk_buff *skb, unsigned int dataoff, unsigned int *timeouts) { return true; }
static bool generic_new(struct nf_conn *ct, const struct sk_buff *skb, unsigned int dataoff, unsigned int *timeouts) { return nf_generic_should_process(nf_ct_protonum(ct)); }
static bool generic_new(struct nf_conn *ct, const struct sk_buff *skb, unsigned int dataoff, unsigned int *timeouts) { - return true; + return nf_generic_should_process(nf_ct_protonum(ct)); }
CVE-2014-8709
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/mac80211/tx.c
ieee80211_fragment
static int ieee80211_fragment(struct ieee80211_tx_data *tx, struct sk_buff *skb, int hdrlen, int frag_threshold) { struct ieee80211_local *local = tx->local; struct ieee80211_tx_info *info; struct sk_buff *tmp; int per_fragm = frag_threshold - hdrlen - FCS_LEN; int pos = hdrlen + per_fragm; int ...
static int ieee80211_fragment(struct ieee80211_tx_data *tx, struct sk_buff *skb, int hdrlen, int frag_threshold) { struct ieee80211_local *local = tx->local; struct ieee80211_tx_info *info; struct sk_buff *tmp; int per_fragm = frag_threshold - hdrlen - FCS_LEN; int pos = hdrlen + per_fragm; int ...
static int ieee80211_fragment(struct ieee80211_local *local, struct sk_buff *skb, int hdrlen, int frag_threshold) { struct sk_buff *tail = skb, *tmp; int per_fragm = frag_threshold - hdrlen - FCS_LEN; int pos = hdrlen + per_fragm; int rem = skb->len - hdrlen - per_fragm; if (WARN_ON(rem < 0)) { ...
static int ieee80211_fragment(struct ieee80211_local *local, struct sk_buff *skb, int hdrlen, int frag_threshold) { struct sk_buff *tail = skb, *tmp; int per_fragm = frag_threshold - hdrlen - FCS_LEN; int pos = hdrlen + per_fragm; int rem = skb->len - hdrlen - per_fragm; if (WARN_ON(rem < 0)) { ...
static int ieee80211_fragment(struct ieee80211_tx_data *tx, struct sk_buff *skb, int hdrlen, int frag_threshold) { struct ieee80211_local *local = tx->local; int per_fragm = frag_threshold - hdrlen - FCS_LEN; int rem = skb->len - hdrlen - per_fragm; while (rem) { int fraglen = per_fragm; ...
static int ieee80211_fragment(struct ieee80211_tx_data *tx, struct sk_buff *skb, int hdrlen, int frag_threshold) { struct ieee80211_local *local = tx->local; int per_fragm = frag_threshold - hdrlen - FCS_LEN; int rem = skb->len - hdrlen - per_fragm; while (rem) { int fraglen = per_fragm; ...
static int ieee80211_fragment(struct ieee80211_local *local, struct sk_buff *skb, int hdrlen, int frag_threshold) { struct sk_buff *tail = skb, *tmp; int per_fragm = frag_threshold - hdrlen - FCS_LEN; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int rem = skb->len - hdrlen - per_fragm; /* PLACEHOLD...
static int ieee80211_fragment(struct ieee80211_local *local, struct sk_buff *skb, int hdrlen, int frag_threshold) { struct sk_buff *tail = skb, *tmp; int per_fragm = frag_threshold - hdrlen - FCS_LEN; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int rem = skb->len - hdrlen - per_fragm; /* PLACEHOLD...
static int ieee80211_fragment(struct ieee80211_tx_data *tx, struct sk_buff *skb, int hdrlen, int frag_threshold) { struct ieee80211_local *local = tx->local; int per_fragm = frag_threshold - hdrlen - FCS_LEN; int rem = skb->len - hdrlen - per_fragm; while (rem) { int fraglen = per_fragm; ...
CVE-2014-8884
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/media/dvb/ttusb-dec/ttusbdecfe.c
ttusbdecfe_dvbs_diseqc_send_master_cmd
static int ttusbdecfe_dvbs_diseqc_send_master_cmd(struct dvb_frontend* fe, struct dvb_diseqc_master_cmd *cmd) { struct ttusbdecfe_state* state = (struct ttusbdecfe_state*) fe->demodulator_priv; u8 b[] = { 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; memcpy(&b[4], cmd->msg, cmd->msg_len); ...
static int ttusbdecfe_dvbs_diseqc_send_master_cmd(struct dvb_frontend* fe, struct dvb_diseqc_master_cmd *cmd) { struct ttusbdecfe_state* state = (struct ttusbdecfe_state*) fe->demodulator_priv; u8 b[] = { 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; if (cmd->msg_len > sizeof(b) - 4) { ...
static int ttusbdecfe_dvbs_diseqc_send_master_cmd(struct dvb_frontend* fe, struct dvb_diseqc_master_cmd *cmd) { struct ttusbdecfe_state* state = (struct ttusbdecfe_state*) fe->demodulator_priv; u8 b[] = { 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; memcpy(&b[4], cmd->msg, cmd->msg_len); ...
static int ttusbdecfe_dvbs_diseqc_send_master_cmd(struct dvb_frontend* fe, struct dvb_diseqc_master_cmd *cmd) { struct ttusbdecfe_state* state = (struct ttusbdecfe_state*) fe->demodulator_priv; u8 b[] = { 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; if (cmd->msg_len > sizeof(b) - 4) { ...
static int ttusbdecfe_dvbs_diseqc_send_master_cmd(struct dvb_frontend* fe, struct dvb_diseqc_master_cmd *cmd) { struct ttusbdecfe_state* state = (struct ttusbdecfe_state*) fe->demodulator_priv; u8 b[] = { 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; memcpy(&b[4], cmd->msg, cmd->msg_len); ...
static int ttusbdecfe_dvbs_diseqc_send_master_cmd(struct dvb_frontend* fe, struct dvb_diseqc_master_cmd *cmd) { struct ttusbdecfe_state* state = (struct ttusbdecfe_state*) fe->demodulator_priv; u8 b[] = { 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; if (cmd->msg_len > sizeof(b) - 4) { ...
static int ttusbdecfe_dvbs_diseqc_send_master_cmd(struct dvb_frontend* fe, struct dvb_diseqc_master_cmd *cmd) { struct ttusbdecfe_state* state = (struct ttusbdecfe_state*) fe->demodulator_priv; u8 b[] = { 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; memcpy(&b[4], cmd->msg, cmd->msg_len); ...
static int ttusbdecfe_dvbs_diseqc_send_master_cmd(struct dvb_frontend* fe, struct dvb_diseqc_master_cmd *cmd) { struct ttusbdecfe_state* state = (struct ttusbdecfe_state*) fe->demodulator_priv; u8 b[] = { 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; if (cmd->msg_len > sizeof(b) - 4) { ...
static int ttusbdecfe_dvbs_diseqc_send_master_cmd(struct dvb_frontend* fe, struct dvb_diseqc_master_cmd *cmd) { struct ttusbdecfe_state* state = (struct ttusbdecfe_state*) fe->demodulator_priv; u8 b[] = { 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; + if (cmd->msg_len > sizeof(b) - 4) { +...
CVE-2014-8989
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
kernel/groups.c
may_setgroups
bool may_setgroups(void) { struct user_namespace *user_ns = current_user_ns(); return ns_capable(user_ns, CAP_SETGID); }
bool may_setgroups(void) { struct user_namespace *user_ns = current_user_ns(); return ns_capable(user_ns, CAP_SETGID) && userns_may_setgroups(user_ns); }
bool may_setgroups(void) { struct user_namespace *user_ns = current_user_ns(); return ns_capable(user_ns, CAP_SETGID); }
bool may_setgroups(void) { struct user_namespace *user_ns = current_user_ns(); return ns_capable(user_ns, CAP_SETGID) && userns_may_setgroups(user_ns); }
bool may_setgroups(void) { struct user_namespace *user_ns = current_user_ns(); return ns_capable(user_ns, CAP_SETGID); }
bool may_setgroups(void) { struct user_namespace *user_ns = current_user_ns(); return ns_capable(user_ns, CAP_SETGID) && userns_may_setgroups(user_ns); }
bool may_setgroups(void) { struct user_namespace *user_ns = current_user_ns(); return ns_capable(user_ns, CAP_SETGID); }
bool may_setgroups(void) { struct user_namespace *user_ns = current_user_ns(); return ns_capable(user_ns, CAP_SETGID) && userns_may_setgroups(user_ns); }
bool may_setgroups(void) { struct user_namespace *user_ns = current_user_ns(); - return ns_capable(user_ns, CAP_SETGID); + return ns_capable(user_ns, CAP_SETGID) && userns_may_setgroups(user_ns); }
CVE-2014-9090
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
arch/x86/kernel/traps.c
trap_init
void trap_init(void) { int i; void __iomem *p = early_ioremap(0x0FFFD9, 4); if (readl(p) == 'E' + ('I'<<8) + ('S'<<16) + ('A'<<24)) { EISA_bus = 1; } early_iounmap(p, 4); set_intr_gate(X86_TRAP_DE, divide_error); set_intr_gate_ist(X86_TRAP_NMI, &nmi, NMI_STACK); set_system_intr_g...
void trap_init(void) { int i; void __iomem *p = early_ioremap(0x0FFFD9, 4); if (readl(p) == 'E' + ('I'<<8) + ('S'<<16) + ('A'<<24)) { EISA_bus = 1; } early_iounmap(p, 4); set_intr_gate(X86_TRAP_DE, divide_error); set_intr_gate_ist(X86_TRAP_NMI, &nmi, NMI_STACK); set_system_intr_g...
void trap_init(void) { int i; void __iomem *p = early_ioremap(0x0FFFD9, 4); if (readl(p) == 'E' + ('I'<<8) + ('S'<<16) + ('A'<<24)) { EISA_bus = 1; } early_iounmap(p, 4); set_intr_gate(X86_TRAP_DE, &divide_error); set_intr_gate_ist(X86_TRAP_NMI, &nmi, NMI_STACK); set_system_intr_...
void trap_init(void) { int i; void __iomem *p = early_ioremap(0x0FFFD9, 4); if (readl(p) == 'E' + ('I'<<8) + ('S'<<16) + ('A'<<24)) { EISA_bus = 1; } early_iounmap(p, 4); set_intr_gate(X86_TRAP_DE, &divide_error); set_intr_gate_ist(X86_TRAP_NMI, &nmi, NMI_STACK); set_system_intr_...
void trap_init(void) { set_intr_gate(X86_TRAP_NP, segment_not_present); set_intr_gate_ist(X86_TRAP_SS, &stack_segment, STACKFAULT_STACK); set_intr_gate(X86_TRAP_GP, general_protection); }
void trap_init(void) { set_intr_gate(X86_TRAP_NP, segment_not_present); set_intr_gate(X86_TRAP_SS, stack_segment); set_intr_gate(X86_TRAP_GP, general_protection); }
void trap_init(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ set_intr_gate(X86_TRAP_OLD_MF, &coprocessor_segment_overrun); set_intr_gate(X86_TRAP_TS, &invalid_TSS); set_intr_gate(X86_TRAP_NP, &segment_not_present); set_intr_gate_ist(X86_TRAP_SS, &stack_segment, STACKFAULT_STACK); set_int...
void trap_init(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ set_intr_gate(X86_TRAP_OLD_MF, &coprocessor_segment_overrun); set_intr_gate(X86_TRAP_TS, &invalid_TSS); set_intr_gate(X86_TRAP_NP, &segment_not_present); set_intr_gate(X86_TRAP_SS, stack_segment); set_intr_gate(X86_TRAP_GP, &ge...
void trap_init(void) { set_intr_gate(X86_TRAP_NP, segment_not_present); - set_intr_gate_ist(X86_TRAP_SS, &stack_segment, STACKFAULT_STACK); + set_intr_gate(X86_TRAP_SS, stack_segment); set_intr_gate(X86_TRAP_GP, general_protection); }
CVE-2014-9322
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
arch/x86/kernel/traps.c
trap_init
void trap_init(void) { int i; void __iomem *p = early_ioremap(0x0FFFD9, 4); if (readl(p) == 'E' + ('I'<<8) + ('S'<<16) + ('A'<<24)) { EISA_bus = 1; } early_iounmap(p, 4); set_intr_gate(X86_TRAP_DE, divide_error); set_intr_gate_ist(X86_TRAP_NMI, &nmi, NMI_STACK); set_system_intr_g...
void trap_init(void) { int i; void __iomem *p = early_ioremap(0x0FFFD9, 4); if (readl(p) == 'E' + ('I'<<8) + ('S'<<16) + ('A'<<24)) { EISA_bus = 1; } early_iounmap(p, 4); set_intr_gate(X86_TRAP_DE, divide_error); set_intr_gate_ist(X86_TRAP_NMI, &nmi, NMI_STACK); set_system_intr_g...
void trap_init(void) { int i; void __iomem *p = early_ioremap(0x0FFFD9, 4); if (readl(p) == 'E' + ('I'<<8) + ('S'<<16) + ('A'<<24)) { EISA_bus = 1; } early_iounmap(p, 4); set_intr_gate(X86_TRAP_DE, &divide_error); set_intr_gate_ist(X86_TRAP_NMI, &nmi, NMI_STACK); set_system_intr_...
void trap_init(void) { int i; void __iomem *p = early_ioremap(0x0FFFD9, 4); if (readl(p) == 'E' + ('I'<<8) + ('S'<<16) + ('A'<<24)) { EISA_bus = 1; } early_iounmap(p, 4); set_intr_gate(X86_TRAP_DE, &divide_error); set_intr_gate_ist(X86_TRAP_NMI, &nmi, NMI_STACK); set_system_intr_...
void trap_init(void) { set_intr_gate(X86_TRAP_NP, segment_not_present); set_intr_gate_ist(X86_TRAP_SS, &stack_segment, STACKFAULT_STACK); set_intr_gate(X86_TRAP_GP, general_protection); }
void trap_init(void) { set_intr_gate(X86_TRAP_NP, segment_not_present); set_intr_gate(X86_TRAP_SS, stack_segment); set_intr_gate(X86_TRAP_GP, general_protection); }
void trap_init(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ set_intr_gate(X86_TRAP_OLD_MF, &coprocessor_segment_overrun); set_intr_gate(X86_TRAP_TS, &invalid_TSS); set_intr_gate(X86_TRAP_NP, &segment_not_present); set_intr_gate_ist(X86_TRAP_SS, &stack_segment, STACKFAULT_STACK); set_int...
void trap_init(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ set_intr_gate(X86_TRAP_OLD_MF, &coprocessor_segment_overrun); set_intr_gate(X86_TRAP_TS, &invalid_TSS); set_intr_gate(X86_TRAP_NP, &segment_not_present); set_intr_gate(X86_TRAP_SS, stack_segment); set_intr_gate(X86_TRAP_GP, &ge...
void trap_init(void) { set_intr_gate(X86_TRAP_NP, segment_not_present); - set_intr_gate_ist(X86_TRAP_SS, &stack_segment, STACKFAULT_STACK); + set_intr_gate(X86_TRAP_SS, stack_segment); set_intr_gate(X86_TRAP_GP, general_protection); }
CVE-2014-9419
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
arch/x86/kernel/process_64.c
__switch_to
__visible __notrace_funcgraph struct task_struct * __switch_to(struct task_struct *prev_p, struct task_struct *next_p) { struct thread_struct *prev = &prev_p->thread; struct thread_struct *next = &next_p->thread; int cpu = smp_processor_id(); struct tss_struct *tss = &per_cpu(init_tss, cpu); unsigne...
__visible __notrace_funcgraph struct task_struct * __switch_to(struct task_struct *prev_p, struct task_struct *next_p) { struct thread_struct *prev = &prev_p->thread; struct thread_struct *next = &next_p->thread; int cpu = smp_processor_id(); struct tss_struct *tss = &per_cpu(init_tss, cpu); unsigne...
__notrace_funcgraph struct task_struct * __switch_to(struct task_struct *prev_p, struct task_struct *next_p) { struct thread_struct *prev = &prev_p->thread; struct thread_struct *next = &next_p->thread; int cpu = smp_processor_id(); struct tss_struct *tss = &per_cpu(init_tss, cpu); unsigned fsindex,...
__notrace_funcgraph struct task_struct * __switch_to(struct task_struct *prev_p, struct task_struct *next_p) { struct thread_struct *prev = &prev_p->thread; struct thread_struct *next = &next_p->thread; int cpu = smp_processor_id(); struct tss_struct *tss = &per_cpu(init_tss, cpu); unsigned fsindex,...
__visible __notrace_funcgraph struct task_struct * __switch_to(struct task_struct *prev_p, struct task_struct *next_p) { struct thread_struct *next = &next_p->thread; int cpu = smp_processor_id(); struct tss_struct *tss = &per_cpu(init_tss, cpu); fpu = switch_fpu_prepare(prev_p, next_p, cpu); load_s...
__visible __notrace_funcgraph struct task_struct * __switch_to(struct task_struct *prev_p, struct task_struct *next_p) { struct thread_struct *next = &next_p->thread; int cpu = smp_processor_id(); struct tss_struct *tss = &per_cpu(init_tss, cpu); fpu = switch_fpu_prepare(prev_p, next_p, cpu); load_s...
__notrace_funcgraph struct task_struct * __switch_to(struct task_struct *prev_p, struct task_struct *next_p) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct thread_struct *next = &next_p->thread; int cpu = smp_processor_id(); struct tss_struct *tss = &per_cpu(init_tss, cpu); /* PLACEHOLDER: D...
__notrace_funcgraph struct task_struct * __switch_to(struct task_struct *prev_p, struct task_struct *next_p) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct thread_struct *next = &next_p->thread; int cpu = smp_processor_id(); struct tss_struct *tss = &per_cpu(init_tss, cpu); /* PLACEHOLDER: D...
__visible __notrace_funcgraph struct task_struct * __switch_to(struct task_struct *prev_p, struct task_struct *next_p) { struct thread_struct *next = &next_p->thread; int cpu = smp_processor_id(); struct tss_struct *tss = &per_cpu(init_tss, cpu); fpu = switch_fpu_prepare(prev_p, next_p, cpu); ...
CVE-2014-9420
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/isofs/rock.c
rock_continue
static int rock_continue(struct rock_state *rs) { int ret = 1; int blocksize = 1 << rs->inode->i_blkbits; const int min_de_size = offsetof(struct rock_ridge, u); kfree(rs->buffer); rs->buffer = NULL; if ((unsigned)rs->cont_offset > blocksize - min_de_size || (unsigned)rs->cont_size > blocksize |...
static int rock_continue(struct rock_state *rs) { int ret = 1; int blocksize = 1 << rs->inode->i_blkbits; const int min_de_size = offsetof(struct rock_ridge, u); kfree(rs->buffer); rs->buffer = NULL; if ((unsigned)rs->cont_offset > blocksize - min_de_size || (unsigned)rs->cont_size > blocksize |...
static int rock_continue(struct rock_state *rs) { int ret = 1; int blocksize = 1 << rs->inode->i_blkbits; const int min_de_size = offsetof(struct rock_ridge, u); kfree(rs->buffer); rs->buffer = NULL; if ((unsigned)rs->cont_offset > blocksize - min_de_size || (unsigned)rs->cont_size > blocksize |...
static int rock_continue(struct rock_state *rs) { int ret = 1; int blocksize = 1 << rs->inode->i_blkbits; const int min_de_size = offsetof(struct rock_ridge, u); kfree(rs->buffer); rs->buffer = NULL; if ((unsigned)rs->cont_offset > blocksize - min_de_size || (unsigned)rs->cont_size > blocksize |...
static int rock_continue(struct rock_state *rs) { if (rs->cont_extent) { ret = -EIO; bh = sb_bread(rs->inode->i_sb, rs->cont_extent); } out: kfree(rs->buffer); }
static int rock_continue(struct rock_state *rs) { if (rs->cont_extent) { ret = -EIO; if (++rs->cont_loops >= RR_MAX_CE_ENTRIES) { goto out; } bh = sb_bread(rs->inode->i_sb, rs->cont_extent); } out: kfree(rs->buffer); }
static int rock_continue(struct rock_state *rs) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (rs->cont_extent) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ret = -EIO; bh = sb_bread(rs->inode->i_sb, rs->cont_extent); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } out: k...
static int rock_continue(struct rock_state *rs) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (rs->cont_extent) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ret = -EIO; if (++rs->cont_loops >= RR_MAX_CE_ENTRIES) { goto out; } bh = sb_bread(rs->inode->i_sb,...
static int rock_continue(struct rock_state *rs) { if (rs->cont_extent) { ret = -EIO; + if (++rs->cont_loops >= RR_MAX_CE_ENTRIES) { + goto out; + } bh = sb_bread(rs->inode->i_sb, rs->cont_extent); } out: kfree(rs->buffer); }
CVE-2014-9428
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/batman-adv/fragmentation.c
batadv_frag_merge_packets
static struct sk_buff * batadv_frag_merge_packets(struct hlist_head *chain, struct sk_buff *skb) { struct batadv_frag_packet *packet; struct batadv_frag_list_entry *entry; struct sk_buff *skb_out = NULL; int size, hdr_size = sizeof(struct batadv_frag_packet); packet = (struct batadv_frag_packet *)sk...
static struct sk_buff * batadv_frag_merge_packets(struct hlist_head *chain, struct sk_buff *skb) { struct batadv_frag_packet *packet; struct batadv_frag_list_entry *entry; struct sk_buff *skb_out = NULL; int size, hdr_size = sizeof(struct batadv_frag_packet); packet = (struct batadv_frag_packet *)sk...
static struct sk_buff * batadv_frag_merge_packets(struct hlist_head *chain, struct sk_buff *skb) { struct batadv_frag_packet *packet; struct batadv_frag_list_entry *entry; struct sk_buff *skb_out = NULL; int size, hdr_size = sizeof(struct batadv_frag_packet); packet = (struct batadv_frag_packet *)sk...
static struct sk_buff * batadv_frag_merge_packets(struct hlist_head *chain, struct sk_buff *skb) { struct batadv_frag_packet *packet; struct batadv_frag_list_entry *entry; struct sk_buff *skb_out = NULL; int size, hdr_size = sizeof(struct batadv_frag_packet); packet = (struct batadv_frag_packet *)sk...
static struct sk_buff * batadv_frag_merge_packets(struct hlist_head *chain, struct sk_buff *skb) { packet = (struct batadv_frag_packet *)skb->data; size = ntohs(packet->total_size); if (size > batadv_frag_size_limit()) { goto free; } skb_out = entry->skb; kfree(entry); if (pskb_expan...
static struct sk_buff * batadv_frag_merge_packets(struct hlist_head *chain, struct sk_buff *skb) { packet = (struct batadv_frag_packet *)skb->data; size = ntohs(packet->total_size); if (size > batadv_frag_size_limit()) { goto free; } skb_out = entry->skb; kfree(entry); if (pskb_expan...
static struct sk_buff * batadv_frag_merge_packets(struct hlist_head *chain, struct sk_buff *skb) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ packet = (struct batadv_frag_packet *)skb->data; size = ntohs(packet->total_size); if (size > batadv_frag_size_limit()) { goto free; } /* PLACE...
static struct sk_buff * batadv_frag_merge_packets(struct hlist_head *chain, struct sk_buff *skb) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ packet = (struct batadv_frag_packet *)skb->data; size = ntohs(packet->total_size); if (size > batadv_frag_size_limit()) { goto free; } /* PLACE...
static struct sk_buff * batadv_frag_merge_packets(struct hlist_head *chain, struct sk_buff *skb) { packet = (struct batadv_frag_packet *)skb->data; size = ntohs(packet->total_size); if (size > batadv_frag_size_limit()) { goto free; } skb_out = entry->skb; kfree(entry); - if (p...
CVE-2014-9584
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/isofs/rock.c
parse_rock_ridge_inode_internal
static int parse_rock_ridge_inode_internal(struct iso_directory_record *de, struct inode *inode, int flags) { int symlink_len = 0; int cnt, sig; unsigned int reloc_block; struct inode *reloc; struct rock_ridge *rr; int rootflag; struct rock_state rs; int ret = 0; if (!ISOFS_SB(inode-...
static int parse_rock_ridge_inode_internal(struct iso_directory_record *de, struct inode *inode, int flags) { int symlink_len = 0; int cnt, sig; unsigned int reloc_block; struct inode *reloc; struct rock_ridge *rr; int rootflag; struct rock_state rs; int ret = 0; if (!ISOFS_SB(inode-...
static int parse_rock_ridge_inode_internal(struct iso_directory_record *de, struct inode *inode, int flags) { int symlink_len = 0; int cnt, sig; unsigned int reloc_block; struct inode *reloc; struct rock_ridge *rr; int rootflag; struct rock_state rs; int ret = 0; if (!ISOFS_SB(inode-...
static int parse_rock_ridge_inode_internal(struct iso_directory_record *de, struct inode *inode, int flags) { int symlink_len = 0; int cnt, sig; unsigned int reloc_block; struct inode *reloc; struct rock_ridge *rr; int rootflag; struct rock_state rs; int ret = 0; if (!ISOFS_SB(inode-...
static int parse_rock_ridge_inode_internal(struct iso_directory_record *de, struct inode *inode, int flags) { repeat: while (rs.len > 2) { rr = (struct rock_ridge *)rs.chr; if (rr->len < 3) { goto out; } sig = isonum_721(rs.chr); if (rock_check_overflow(&rs, sig))...
static int parse_rock_ridge_inode_internal(struct iso_directory_record *de, struct inode *inode, int flags) { repeat: while (rs.len > 2) { rr = (struct rock_ridge *)rs.chr; if (rr->len < 3) { goto out; } sig = isonum_721(rs.chr); if (rock_check_overflow(&rs, sig))...
static int parse_rock_ridge_inode_internal(struct iso_directory_record *de, struct inode *inode, int flags) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ repeat: while (rs.len > 2) { rr = (struct rock_ridge *)rs.chr; if (rr->len < 3) { goto out; } sig = isonum_721(r...
static int parse_rock_ridge_inode_internal(struct iso_directory_record *de, struct inode *inode, int flags) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ repeat: while (rs.len > 2) { rr = (struct rock_ridge *)rs.chr; if (rr->len < 3) { goto out; } sig = isonum_721(r...
static int parse_rock_ridge_inode_internal(struct iso_directory_record *de, struct inode *inode, int flags) { repeat: while (rs.len > 2) { rr = (struct rock_ridge *)rs.chr; if (rr->len < 3) { goto out; } sig = isonum_721(rs.chr); if (rock_check_overflow(&...
CVE-2014-9585
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
arch/x86/vdso/vma.c
vdso_addr
static unsigned long vdso_addr(unsigned long start, unsigned len) { return 0; unsigned long addr, end; unsigned offset; end = (start + PMD_SIZE - 1) & PMD_MASK; if (end >= TASK_SIZE_MAX) { end = TASK_SIZE_MAX; } end -= len; offset = get_random_int() & (PTRS_PER_PTE - 1); addr...
static unsigned long vdso_addr(unsigned long start, unsigned len) { return 0; unsigned long addr, end; unsigned offset; start = PAGE_ALIGN(start); end = (start + len + PMD_SIZE - 1) & PMD_MASK; if (end >= TASK_SIZE_MAX) { end = TASK_SIZE_MAX; } end -= len; if (end > start) { ...
static unsigned long vdso_addr(unsigned long start, unsigned len) { unsigned long addr, end; unsigned offset; end = (start + PMD_SIZE - 1) & PMD_MASK; if (end >= TASK_SIZE_MAX) { end = TASK_SIZE_MAX; } end -= len; offset = get_random_int() & (PTRS_PER_PTE - 1); addr = start + (of...
static unsigned long vdso_addr(unsigned long start, unsigned len) { unsigned long addr, end; unsigned offset; start = PAGE_ALIGN(start); end = (start + len + PMD_SIZE - 1) & PMD_MASK; if (end >= TASK_SIZE_MAX) { end = TASK_SIZE_MAX; } end -= len; if (end > start) { offset...
static unsigned long vdso_addr(unsigned long start, unsigned len) { unsigned offset; end = (start + PMD_SIZE - 1) & PMD_MASK; end -= len; offset = get_random_int() & (PTRS_PER_PTE - 1); addr = start + (offset << PAGE_SHIFT); if (addr >= end) { addr = end; } addr = PAGE_ALIGN(addr...
static unsigned long vdso_addr(unsigned long start, unsigned len) { unsigned offset; start = PAGE_ALIGN(start); end = (start + len + PMD_SIZE - 1) & PMD_MASK; end -= len; if (end > start) { offset = get_random_int() % (((end - start) >> PAGE_SHIFT) + 1); addr = start + (offset << PAG...
static unsigned long vdso_addr(unsigned long start, unsigned len) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ unsigned offset; end = (start + PMD_SIZE - 1) & PMD_MASK; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ end -= len; offset = get_random_int() & (PTRS_PER_PTE - 1); addr = start +...
static unsigned long vdso_addr(unsigned long start, unsigned len) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ unsigned offset; start = PAGE_ALIGN(start); end = (start + len + PMD_SIZE - 1) & PMD_MASK; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ end -= len; if (end > start) { of...
static unsigned long vdso_addr(unsigned long start, unsigned len) { unsigned offset; - end = (start + PMD_SIZE - 1) & PMD_MASK; + start = PAGE_ALIGN(start); + end = (start + len + PMD_SIZE - 1) & PMD_MASK; end -= len; - offset = get_random_int() & (PTRS_PER_PTE - 1); - addr = start + (offset <...
CVE-2014-9644
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
crypto/algapi.c
crypto_lookup_template
struct crypto_template *crypto_lookup_template(const char *name) { return try_then_request_module(__crypto_lookup_template(name), "%s", name); }
struct crypto_template *crypto_lookup_template(const char *name) { return try_then_request_module(__crypto_lookup_template(name), "crypto-%s", name); }
struct crypto_template *crypto_lookup_template(const char *name) { return try_then_request_module(__crypto_lookup_template(name), "%s", name); }
struct crypto_template *crypto_lookup_template(const char *name) { return try_then_request_module(__crypto_lookup_template(name), "crypto-%s", name); }
struct crypto_template *crypto_lookup_template(const char *name) { return try_then_request_module(__crypto_lookup_template(name), "%s", name); }
struct crypto_template *crypto_lookup_template(const char *name) { return try_then_request_module(__crypto_lookup_template(name), "crypto-%s", name); }
struct crypto_template *crypto_lookup_template(const char *name) { return try_then_request_module(__crypto_lookup_template(name), "%s", name); }
struct crypto_template *crypto_lookup_template(const char *name) { return try_then_request_module(__crypto_lookup_template(name), "crypto-%s", name); }
struct crypto_template *crypto_lookup_template(const char *name) { - return try_then_request_module(__crypto_lookup_template(name), "%s", name); + return try_then_request_module(__crypto_lookup_template(name), "crypto-%s", name); }
CVE-2014-9683
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/ecryptfs/crypto.c
ecryptfs_decode_from_filename
static void ecryptfs_decode_from_filename(unsigned char *dst, size_t *dst_size, const unsigned char *src, size_t src_size) { u8 current_bit_offset = 0; size_t src_byte_offset = 0; size_t dst_byte_offset = 0; if (dst == NULL) { (*dst_size) = ecryptfs_max_decoded_size(src_size); goto out; ...
static void ecryptfs_decode_from_filename(unsigned char *dst, size_t *dst_size, const unsigned char *src, size_t src_size) { u8 current_bit_offset = 0; size_t src_byte_offset = 0; size_t dst_byte_offset = 0; if (dst == NULL) { (*dst_size) = ecryptfs_max_decoded_size(src_size); goto out; ...
static void ecryptfs_decode_from_filename(unsigned char *dst, size_t *dst_size, const unsigned char *src, size_t src_size) { u8 current_bit_offset = 0; size_t src_byte_offset = 0; size_t dst_byte_offset = 0; if (dst == NULL) { (*dst_size) = (((src_size + 1) * 3) / 4); goto out; } ...
static void ecryptfs_decode_from_filename(unsigned char *dst, size_t *dst_size, const unsigned char *src, size_t src_size) { u8 current_bit_offset = 0; size_t src_byte_offset = 0; size_t dst_byte_offset = 0; if (dst == NULL) { (*dst_size) = (((src_size + 1) * 3) / 4); goto out; } ...
static void ecryptfs_decode_from_filename(unsigned char *dst, size_t *dst_size, const unsigned char *src, size_t src_size) { while (src_byte_offset < src_size) { unsigned char src_byte = filename_rev_map[(int)src[src_byte_offset]]; switch (current_bit_offset) { case 0: dst[dst_by...
static void ecryptfs_decode_from_filename(unsigned char *dst, size_t *dst_size, const unsigned char *src, size_t src_size) { while (src_byte_offset < src_size) { unsigned char src_byte = filename_rev_map[(int)src[src_byte_offset]]; switch (current_bit_offset) { case 0: dst[dst_by...
static void ecryptfs_decode_from_filename(unsigned char *dst, size_t *dst_size, const unsigned char *src, size_t src_size) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ while (src_byte_offset < src_size) { unsigned char src_byte = filename_rev_map[(int)src[src_byte_offset]]; switch (current_bi...
static void ecryptfs_decode_from_filename(unsigned char *dst, size_t *dst_size, const unsigned char *src, size_t src_size) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ while (src_byte_offset < src_size) { unsigned char src_byte = filename_rev_map[(int)src[src_byte_offset]]; switch (current_bi...
static void ecryptfs_decode_from_filename(unsigned char *dst, size_t *dst_size, const unsigned char *src, size_t src_size) { while (src_byte_offset < src_size) { unsigned char src_byte = filename_rev_map[(int)src[src_byte_offset]]; switch (current_bit_offset) { case 0: dst[...
CVE-2014-9710
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/btrfs/ctree.c
btrfs_search_slot
int btrfs_search_slot(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_key *key, struct btrfs_path *p, int ins_len, int cow) { struct extent_buffer *b; int slot; int ret; int err; int level; int lowest_unlock = 1; int root_lock; int write_lock_level = 0; u8 low...
int btrfs_search_slot(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_key *key, struct btrfs_path *p, int ins_len, int cow) { struct extent_buffer *b; int slot; int ret; int err; int level; int lowest_unlock = 1; int root_lock; int write_lock_level = 0; u8 low...
int btrfs_search_slot(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_key *key, struct btrfs_path *p, int ins_len, int cow) { struct extent_buffer *b; int slot; int ret; int err; int level; int lowest_unlock = 1; int root_lock; int write_lock_level = 0; u8 low...
int btrfs_search_slot(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_key *key, struct btrfs_path *p, int ins_len, int cow) { struct extent_buffer *b; int slot; int ret; int err; int level; int lowest_unlock = 1; int root_lock; int write_lock_level = 0; u8 low...
int btrfs_search_slot(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_key *key, struct btrfs_path *p, int ins_len, int cow) { int lowest_unlock = 1; int write_lock_level = 0; lowest_level = p->lowest_level; WARN_ON(lowest_level && ins_len > 0); WARN_ON(p->nodes[0] != NULL); ...
int btrfs_search_slot(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_key *key, struct btrfs_path *p, int ins_len, int cow) { int lowest_unlock = 1; int write_lock_level = 0; lowest_level = p->lowest_level; WARN_ON(lowest_level && ins_len > 0); WARN_ON(p->nodes[0] != NULL); ...
int btrfs_search_slot(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_key *key, struct btrfs_path *p, int ins_len, int cow) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int lowest_unlock = 1; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int write_lock_level = 0; /* PLACEH...
int btrfs_search_slot(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_key *key, struct btrfs_path *p, int ins_len, int cow) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int lowest_unlock = 1; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int write_lock_level = 0; /* PLACEH...
int btrfs_search_slot(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_key *key, struct btrfs_path *p, int ins_len, int cow) { int lowest_unlock = 1; int write_lock_level = 0; lowest_level = p->lowest_level; WARN_ON(lowest_level && ins_len > 0); WARN_ON(p->nodes[0] != NU...
CVE-2014-9710
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/btrfs/dir-item.c
btrfs_match_dir_item_name
static struct btrfs_dir_item *btrfs_match_dir_item_name(struct btrfs_root *root, struct btrfs_path *path, const char *name, int name_len) { struct btrfs_dir_item *dir_item; unsigned long name_ptr; u32 total_len; u32 cur = 0; u32 this_len; struct extent_buffer *leaf; leaf = path->nodes[0]; ...
struct btrfs_dir_item *btrfs_match_dir_item_name(struct btrfs_root *root, struct btrfs_path *path, const char *name, int name_len) { struct btrfs_dir_item *dir_item; unsigned long name_ptr; u32 total_len; u32 cur = 0; u32 this_len; struct extent_buffer *leaf; leaf = path->nodes[0]; dir_i...
static struct btrfs_dir_item *btrfs_match_dir_item_name(struct btrfs_root *root, struct btrfs_path *path, const char *name, int name_len) { struct btrfs_dir_item *dir_item; unsigned long name_ptr; u32 total_len; u32 cur = 0; u32 this_len; struct extent_buffer *leaf; leaf = path->nodes[0]; ...
struct btrfs_dir_item *btrfs_match_dir_item_name(struct btrfs_root *root, struct btrfs_path *path, const char *name, int name_len) { struct btrfs_dir_item *dir_item; unsigned long name_ptr; u32 total_len; u32 cur = 0; u32 this_len; struct extent_buffer *leaf; leaf = path->nodes[0]; dir_i...
static struct btrfs_dir_item *btrfs_match_dir_item_name(struct btrfs_root *root, struct btrfs_path *path, const char *name, int name_len) { }
struct btrfs_dir_item *btrfs_match_dir_item_name(struct btrfs_root *root, struct btrfs_path *path, const char *name, int name_len) { }
static struct btrfs_dir_item *btrfs_match_dir_item_name(struct btrfs_root *root, struct btrfs_path *path, const char *name, int name_len) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
struct btrfs_dir_item *btrfs_match_dir_item_name(struct btrfs_root *root, struct btrfs_path *path, const char *name, int name_len) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
-static struct btrfs_dir_item *btrfs_match_dir_item_name(struct btrfs_root *root, struct btrfs_path *path, const char *name, int name_len) { +struct btrfs_dir_item *btrfs_match_dir_item_name(struct btrfs_root *root, struct btrfs_path *path, const char *name, int name_len) { }
CVE-2014-9710
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/btrfs/xattr.c
do_setxattr
static int do_setxattr(struct btrfs_trans_handle *trans, struct inode *inode, const char *name, const void *value, size_t size, int flags) { struct btrfs_dir_item *di; struct btrfs_root *root = BTRFS_I(inode)->root; struct btrfs_path *path; size_t name_len = strlen(name); int ret = 0; if (name_l...
static int do_setxattr(struct btrfs_trans_handle *trans, struct inode *inode, const char *name, const void *value, size_t size, int flags) { struct btrfs_dir_item *di = NULL; struct btrfs_root *root = BTRFS_I(inode)->root; struct btrfs_path *path; size_t name_len = strlen(name); int ret = 0; if ...
static int do_setxattr(struct btrfs_trans_handle *trans, struct inode *inode, const char *name, const void *value, size_t size, int flags) { struct btrfs_dir_item *di; struct btrfs_root *root = BTRFS_I(inode)->root; struct btrfs_path *path; size_t name_len = strlen(name); int ret = 0; if (name_l...
static int do_setxattr(struct btrfs_trans_handle *trans, struct inode *inode, const char *name, const void *value, size_t size, int flags) { struct btrfs_dir_item *di = NULL; struct btrfs_root *root = BTRFS_I(inode)->root; struct btrfs_path *path; size_t name_len = strlen(name); int ret = 0; if ...
static int do_setxattr(struct btrfs_trans_handle *trans, struct inode *inode, const char *name, const void *value, size_t size, int flags) { struct btrfs_dir_item *di; struct btrfs_root *root = BTRFS_I(inode)->root; size_t name_len = strlen(name); if (name_len + size > BTRFS_MAX_XATTR_SIZE(root)) { ...
static int do_setxattr(struct btrfs_trans_handle *trans, struct inode *inode, const char *name, const void *value, size_t size, int flags) { struct btrfs_dir_item *di = NULL; struct btrfs_root *root = BTRFS_I(inode)->root; size_t name_len = strlen(name); if (name_len + size > BTRFS_MAX_XATTR_SIZE(root))...
static int do_setxattr(struct btrfs_trans_handle *trans, struct inode *inode, const char *name, const void *value, size_t size, int flags) { struct btrfs_dir_item *di; struct btrfs_root *root = BTRFS_I(inode)->root; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ size_t name_len = strlen(name); /* PLA...
static int do_setxattr(struct btrfs_trans_handle *trans, struct inode *inode, const char *name, const void *value, size_t size, int flags) { struct btrfs_dir_item *di = NULL; struct btrfs_root *root = BTRFS_I(inode)->root; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ size_t name_len = strlen(name); ...
static int do_setxattr(struct btrfs_trans_handle *trans, struct inode *inode, const char *name, const void *value, size_t size, int flags) { - struct btrfs_dir_item *di; + struct btrfs_dir_item *di = NULL; struct btrfs_root *root = BTRFS_I(inode)->root; size_t name_len = strlen(name); if (name_len...
CVE-2014-9730
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/udf/symlink.c
udf_pc_to_char
static int udf_pc_to_char(struct super_block *sb, unsigned char *from, int fromlen, unsigned char *to, int tolen) { struct pathComponent *pc; int elen = 0; int comp_len; unsigned char *p = to; tolen--; while (elen < fromlen) { pc = (struct pathComponent *)(from + elen); switch (p...
static int udf_pc_to_char(struct super_block *sb, unsigned char *from, int fromlen, unsigned char *to, int tolen) { struct pathComponent *pc; int elen = 0; int comp_len; unsigned char *p = to; tolen--; while (elen < fromlen) { pc = (struct pathComponent *)(from + elen); elen += s...
static int udf_pc_to_char(struct super_block *sb, unsigned char *from, int fromlen, unsigned char *to, int tolen) { struct pathComponent *pc; int elen = 0; int comp_len; unsigned char *p = to; tolen--; while (elen < fromlen) { pc = (struct pathComponent *)(from + elen); switch (p...
static int udf_pc_to_char(struct super_block *sb, unsigned char *from, int fromlen, unsigned char *to, int tolen) { struct pathComponent *pc; int elen = 0; int comp_len; unsigned char *p = to; tolen--; while (elen < fromlen) { pc = (struct pathComponent *)(from + elen); elen += s...
static int udf_pc_to_char(struct super_block *sb, unsigned char *from, int fromlen, unsigned char *to, int tolen) { int elen = 0; unsigned char *p = to; tolen--; while (elen < fromlen) { pc = (struct pathComponent *)(from + elen); switch (pc->componentType) { case 1: ...
static int udf_pc_to_char(struct super_block *sb, unsigned char *from, int fromlen, unsigned char *to, int tolen) { int elen = 0; unsigned char *p = to; tolen--; while (elen < fromlen) { pc = (struct pathComponent *)(from + elen); elen += sizeof(struct pathComponent); switch (pc-...
static int udf_pc_to_char(struct super_block *sb, unsigned char *from, int fromlen, unsigned char *to, int tolen) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int elen = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ unsigned char *p = to; tolen--; while (elen < fromlen) { pc = (str...
static int udf_pc_to_char(struct super_block *sb, unsigned char *from, int fromlen, unsigned char *to, int tolen) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int elen = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ unsigned char *p = to; tolen--; while (elen < fromlen) { pc = (str...
static int udf_pc_to_char(struct super_block *sb, unsigned char *from, int fromlen, unsigned char *to, int tolen) { int elen = 0; unsigned char *p = to; tolen--; while (elen < fromlen) { pc = (struct pathComponent *)(from + elen); + elen += sizeof(struct pathComponent); swi...
CVE-2014-9904
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
sound/core/compress_offload.c
snd_compress_check_input
static int snd_compress_check_input(struct snd_compr_params *params) { if (params->buffer.fragment_size == 0 || params->buffer.fragments > SIZE_MAX / params->buffer.fragment_size) { return -EVAL; } if (params->codec.id == 0 || params->codec.id > SND_AUDIOCODEC_MAX) { return -EVAL; } ...
static int snd_compress_check_input(struct snd_compr_params *params) { if (params->buffer.fragment_size == 0 || params->buffer.fragments > T_MAX / params->buffer.fragment_size) { return -EVAL; } if (params->codec.id == 0 || params->codec.id > SND_AUDIOCODEC_MAX) { return -EVAL; } if ...
static int snd_compress_check_input(struct snd_compr_params *params) { if (params->buffer.fragment_size == 0 || params->buffer.fragments > SIZE_MAX / params->buffer.fragment_size) { return -EVAL; } if (params->codec.id == 0 || params->codec.id > SND_AUDIOCODEC_MAX) { return -EVAL; } ...
static int snd_compress_check_input(struct snd_compr_params *params) { if (params->buffer.fragment_size == 0 || params->buffer.fragments > T_MAX / params->buffer.fragment_size) { return -EVAL; } if (params->codec.id == 0 || params->codec.id > SND_AUDIOCODEC_MAX) { return -EVAL; } if ...
static int snd_compress_check_input(struct snd_compr_params *params) { if (params->buffer.fragment_size == 0 || params->buffer.fragments > SIZE_MAX / params->buffer.fragment_size) { return -EVAL; } if (params->codec.id == 0 || params->codec.id > SND_AUDIOCODEC_MAX) { return -EVAL; } }
static int snd_compress_check_input(struct snd_compr_params *params) { if (params->buffer.fragment_size == 0 || params->buffer.fragments > T_MAX / params->buffer.fragment_size) { return -EVAL; } if (params->codec.id == 0 || params->codec.id > SND_AUDIOCODEC_MAX) { return -EVAL; } }
static int snd_compress_check_input(struct snd_compr_params *params) { if (params->buffer.fragment_size == 0 || params->buffer.fragments > SIZE_MAX / params->buffer.fragment_size) { return -EVAL; } if (params->codec.id == 0 || params->codec.id > SND_AUDIOCODEC_MAX) { return -EVAL; } ...
static int snd_compress_check_input(struct snd_compr_params *params) { if (params->buffer.fragment_size == 0 || params->buffer.fragments > T_MAX / params->buffer.fragment_size) { return -EVAL; } if (params->codec.id == 0 || params->codec.id > SND_AUDIOCODEC_MAX) { return -EVAL; } /* ...
static int snd_compress_check_input(struct snd_compr_params *params) { - if (params->buffer.fragment_size == 0 || params->buffer.fragments > SIZE_MAX / params->buffer.fragment_size) { + if (params->buffer.fragment_size == 0 || params->buffer.fragments > T_MAX / params->buffer.fragment_size) { return -EV...
CVE-2014-9914
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv4/datagram.c
ip4_datagram_release_cb
void ip4_datagram_release_cb(struct sock *sk) { const struct inet_sock *inet = inet_sk(sk); const struct ip_options_rcu *inet_opt; __be32 daddr = inet->inet_daddr; struct flowi4 fl4; struct rtable *rt; if (! __sk_dst_get(sk) || __sk_dst_check(sk, 0)) { return; } rcu_read_lock(); ...
void ip4_datagram_release_cb(struct sock *sk) { const struct inet_sock *inet = inet_sk(sk); const struct ip_options_rcu *inet_opt; __be32 daddr = inet->inet_daddr; struct dst_entry *dst; struct flowi4 fl4; struct rtable *rt; rcu_read_lock(); dst = __sk_dst_get(sk); if (!dst || !dst->...
void ip4_datagram_release_cb(struct sock *sk) { const struct inet_sock *inet = inet_sk(sk); const struct ip_options_rcu *inet_opt; __be32 daddr = inet->inet_daddr; struct flowi4 fl4; struct rtable *rt; if (! __sk_dst_get(sk) || __sk_dst_check(sk, 0)) { return; } rcu_read_lock(); ...
void ip4_datagram_release_cb(struct sock *sk) { const struct inet_sock *inet = inet_sk(sk); const struct ip_options_rcu *inet_opt; __be32 daddr = inet->inet_daddr; struct dst_entry *dst; struct flowi4 fl4; struct rtable *rt; rcu_read_lock(); dst = __sk_dst_get(sk); if (!dst || !dst->...
void ip4_datagram_release_cb(struct sock *sk) { const struct inet_sock *inet = inet_sk(sk); __be32 daddr = inet->inet_daddr; struct flowi4 fl4; struct rtable *rt; if (! __sk_dst_get(sk) || __sk_dst_check(sk, 0)) { return; } rcu_read_lock(); inet_opt = rcu_dereference(inet->inet_o...
void ip4_datagram_release_cb(struct sock *sk) { const struct inet_sock *inet = inet_sk(sk); __be32 daddr = inet->inet_daddr; struct dst_entry *dst; struct flowi4 fl4; struct rtable *rt; rcu_read_lock(); dst = __sk_dst_get(sk); if (!dst || !dst->obsolete || dst->ops->check(dst, 0)) { ...
void ip4_datagram_release_cb(struct sock *sk) { const struct inet_sock *inet = inet_sk(sk); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ __be32 daddr = inet->inet_daddr; struct flowi4 fl4; struct rtable *rt; if (! __sk_dst_get(sk) || __sk_dst_check(sk, 0)) { return; } rcu_read_l...
void ip4_datagram_release_cb(struct sock *sk) { const struct inet_sock *inet = inet_sk(sk); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ __be32 daddr = inet->inet_daddr; struct dst_entry *dst; struct flowi4 fl4; struct rtable *rt; rcu_read_lock(); dst = __sk_dst_get(sk); if (!dst ||...
void ip4_datagram_release_cb(struct sock *sk) { const struct inet_sock *inet = inet_sk(sk); __be32 daddr = inet->inet_daddr; + struct dst_entry *dst; struct flowi4 fl4; struct rtable *rt; - if (! __sk_dst_get(sk) || __sk_dst_check(sk, 0)) { + rcu_read_lock(); + dst = __sk_dst_get(sk); +...
CVE-2014-9922
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/ecryptfs/main.c
ecryptfs_mount
static struct dentry *ecryptfs_mount(struct file_system_type *fs_type, int flags, const char *dev_name, void *raw_data) { struct super_block *s; struct ecryptfs_sb_info *sbi; struct ecryptfs_mount_crypt_stat *mount_crypt_stat; struct ecryptfs_dentry_info *root_info; const char *err = "Getting sb fai...
static struct dentry *ecryptfs_mount(struct file_system_type *fs_type, int flags, const char *dev_name, void *raw_data) { struct super_block *s; struct ecryptfs_sb_info *sbi; struct ecryptfs_mount_crypt_stat *mount_crypt_stat; struct ecryptfs_dentry_info *root_info; const char *err = "Getting sb fai...
static struct dentry *ecryptfs_mount(struct file_system_type *fs_type, int flags, const char *dev_name, void *raw_data) { struct super_block *s; struct ecryptfs_sb_info *sbi; struct ecryptfs_mount_crypt_stat *mount_crypt_stat; struct ecryptfs_dentry_info *root_info; const char *err = "Getting sb fai...
static struct dentry *ecryptfs_mount(struct file_system_type *fs_type, int flags, const char *dev_name, void *raw_data) { struct super_block *s; struct ecryptfs_sb_info *sbi; struct ecryptfs_mount_crypt_stat *mount_crypt_stat; struct ecryptfs_dentry_info *root_info; const char *err = "Getting sb fai...
static struct dentry *ecryptfs_mount(struct file_system_type *fs_type, int flags, const char *dev_name, void *raw_data) { sbi = kmem_cache_zalloc(ecryptfs_sb_info_cache, GFP_KERNEL); if (!sbi) { goto out; } rc = ecryptfs_parse_options(sbi, raw_data, &check_ruid); s = sget(fs_type, NULL, set_...
static struct dentry *ecryptfs_mount(struct file_system_type *fs_type, int flags, const char *dev_name, void *raw_data) { sbi = kmem_cache_zalloc(ecryptfs_sb_info_cache, GFP_KERNEL); if (!sbi) { goto out; } rc = ecryptfs_parse_options(sbi, raw_data, &check_ruid); s = sget(fs_type, NULL, set_...
static struct dentry *ecryptfs_mount(struct file_system_type *fs_type, int flags, const char *dev_name, void *raw_data) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ sbi = kmem_cache_zalloc(ecryptfs_sb_info_cache, GFP_KERNEL); if (!sbi) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ goto out;...
static struct dentry *ecryptfs_mount(struct file_system_type *fs_type, int flags, const char *dev_name, void *raw_data) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ sbi = kmem_cache_zalloc(ecryptfs_sb_info_cache, GFP_KERNEL); if (!sbi) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ goto out;...
static struct dentry *ecryptfs_mount(struct file_system_type *fs_type, int flags, const char *dev_name, void *raw_data) { sbi = kmem_cache_zalloc(ecryptfs_sb_info_cache, GFP_KERNEL); if (!sbi) { goto out; } rc = ecryptfs_parse_options(sbi, raw_data, &check_ruid); s = sget(fs_type, NUL...
CVE-2014-9940
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/regulator/core.c
regulator_ena_gpio_free
static void regulator_ena_gpio_free(struct regulator_dev *rdev) { struct regulator_enable_gpio *pin, *n; if (!rdev->ena_pin) { return; } list_for_each_entry_safe(pin, n, &regulator_ena_gpio_list, list) { if (pin->gpiod == rdev->ena_pin->gpiod) { if (pin->request_count <= 1) {...
static void regulator_ena_gpio_free(struct regulator_dev *rdev) { struct regulator_enable_gpio *pin, *n; if (!rdev->ena_pin) { return; } list_for_each_entry_safe(pin, n, &regulator_ena_gpio_list, list) { if (pin->gpiod == rdev->ena_pin->gpiod) { if (pin->request_count <= 1) {...
static void regulator_ena_gpio_free(struct regulator_dev *rdev) { struct regulator_enable_gpio *pin, *n; if (!rdev->ena_pin) { return; } list_for_each_entry_safe(pin, n, &regulator_ena_gpio_list, list) { if (pin->gpio == rdev->ena_pin->gpio) { if (pin->request_count <= 1) { ...
static void regulator_ena_gpio_free(struct regulator_dev *rdev) { struct regulator_enable_gpio *pin, *n; if (!rdev->ena_pin) { return; } list_for_each_entry_safe(pin, n, &regulator_ena_gpio_list, list) { if (pin->gpio == rdev->ena_pin->gpio) { if (pin->request_count <= 1) { ...
static void regulator_ena_gpio_free(struct regulator_dev *rdev) { list_for_each_entry_safe(pin, n, &regulator_ena_gpio_list, list) { if (pin->gpiod == rdev->ena_pin->gpiod) { if (pin->request_count <= 1) { kfree(pin); } else { } } } }
static void regulator_ena_gpio_free(struct regulator_dev *rdev) { list_for_each_entry_safe(pin, n, &regulator_ena_gpio_list, list) { if (pin->gpiod == rdev->ena_pin->gpiod) { if (pin->request_count <= 1) { kfree(pin); rdev->ena_pin = NULL; return; ...
static void regulator_ena_gpio_free(struct regulator_dev *rdev) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ list_for_each_entry_safe(pin, n, &regulator_ena_gpio_list, list) { if (pin->gpio == rdev->ena_pin->gpio) { if (pin->request_count <= 1) { /* PLACEHOLDER: DO NOT DELETE THIS COM...
static void regulator_ena_gpio_free(struct regulator_dev *rdev) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ list_for_each_entry_safe(pin, n, &regulator_ena_gpio_list, list) { if (pin->gpio == rdev->ena_pin->gpio) { if (pin->request_count <= 1) { /* PLACEHOLDER: DO NOT DELETE THIS COM...
static void regulator_ena_gpio_free(struct regulator_dev *rdev) { list_for_each_entry_safe(pin, n, &regulator_ena_gpio_list, list) { if (pin->gpiod == rdev->ena_pin->gpiod) { if (pin->request_count <= 1) { kfree(pin); + rdev->ena_pin = NULL; + r...
CVE-2015-0239
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
arch/x86/kvm/emulate.c
em_sysenter
static int em_sysenter(struct x86_emulate_ctxt *ctxt) { const struct x86_emulate_ops *ops = ctxt->ops; struct desc_struct cs, ss; u64 msr_data; u16 cs_sel, ss_sel; u64 efer = 0; ops->get_msr(ctxt, MSR_EFER, &efer); if (ctxt->mode == X86EMUL_MODE_REAL) { return emulate_gp(ctxt, 0); ...
static int em_sysenter(struct x86_emulate_ctxt *ctxt) { const struct x86_emulate_ops *ops = ctxt->ops; struct desc_struct cs, ss; u64 msr_data; u16 cs_sel, ss_sel; u64 efer = 0; ops->get_msr(ctxt, MSR_EFER, &efer); if (ctxt->mode == X86EMUL_MODE_REAL) { return emulate_gp(ctxt, 0); ...
static int em_sysenter(struct x86_emulate_ctxt *ctxt) { const struct x86_emulate_ops *ops = ctxt->ops; struct desc_struct cs, ss; u64 msr_data; u16 cs_sel, ss_sel; u64 efer = 0; ops->get_msr(ctxt, MSR_EFER, &efer); if (ctxt->mode == X86EMUL_MODE_REAL) { return emulate_gp(ctxt, 0); ...
static int em_sysenter(struct x86_emulate_ctxt *ctxt) { const struct x86_emulate_ops *ops = ctxt->ops; struct desc_struct cs, ss; u64 msr_data; u16 cs_sel, ss_sel; u64 efer = 0; ops->get_msr(ctxt, MSR_EFER, &efer); if (ctxt->mode == X86EMUL_MODE_REAL) { return emulate_gp(ctxt, 0); ...
static int em_sysenter(struct x86_emulate_ctxt *ctxt) { const struct x86_emulate_ops *ops = ctxt->ops; u64 efer = 0; ops->get_msr(ctxt, MSR_EFER, &efer); if (ctxt->mode == X86EMUL_MODE_REAL) { return emulate_gp(ctxt, 0); } if ((ctxt->mode == X86EMUL_MODE_PROT32) && (efer & EFER_LMA) && !...
static int em_sysenter(struct x86_emulate_ctxt *ctxt) { const struct x86_emulate_ops *ops = ctxt->ops; u64 efer = 0; ops->get_msr(ctxt, MSR_EFER, &efer); if (ctxt->mode == X86EMUL_MODE_REAL) { return emulate_gp(ctxt, 0); } if ((ctxt->mode != X86EMUL_MODE_PROT64) && (efer & EFER_LMA) && !...
static int em_sysenter(struct x86_emulate_ctxt *ctxt) { const struct x86_emulate_ops *ops = ctxt->ops; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ u64 efer = 0; ops->get_msr(ctxt, MSR_EFER, &efer); if (ctxt->mode == X86EMUL_MODE_REAL) { return emulate_gp(ctxt, 0); } if ((ctxt->mode...
static int em_sysenter(struct x86_emulate_ctxt *ctxt) { const struct x86_emulate_ops *ops = ctxt->ops; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ u64 efer = 0; ops->get_msr(ctxt, MSR_EFER, &efer); if (ctxt->mode == X86EMUL_MODE_REAL) { return emulate_gp(ctxt, 0); } if ((ctxt->mode...
static int em_sysenter(struct x86_emulate_ctxt *ctxt) { const struct x86_emulate_ops *ops = ctxt->ops; u64 efer = 0; ops->get_msr(ctxt, MSR_EFER, &efer); if (ctxt->mode == X86EMUL_MODE_REAL) { return emulate_gp(ctxt, 0); } - if ((ctxt->mode == X86EMUL_MODE_PROT32) && (efer & EFER_L...
CVE-2015-0275
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/ext4/extents.c
ext4_zero_range
static long ext4_zero_range(struct file *file, loff_t offset, loff_t len, int mode) { struct inode *inode = file_inode(file); handle_t *handle = NULL; unsigned int max_blocks; loff_t new_size = 0; int ret = 0; int flags; int credits; int partial_begin, partial_end; loff_t start, end;...
static long ext4_zero_range(struct file *file, loff_t offset, loff_t len, int mode) { struct inode *inode = file_inode(file); handle_t *handle = NULL; unsigned int max_blocks; loff_t new_size = 0; int ret = 0; int flags; int credits; int partial_begin, partial_end; loff_t start, end;...
static long ext4_zero_range(struct file *file, loff_t offset, loff_t len, int mode) { struct inode *inode = file_inode(file); handle_t *handle = NULL; unsigned int max_blocks; loff_t new_size = 0; int ret = 0; int flags; int credits; int partial_begin, partial_end; loff_t start, end;...
static long ext4_zero_range(struct file *file, loff_t offset, loff_t len, int mode) { struct inode *inode = file_inode(file); handle_t *handle = NULL; unsigned int max_blocks; loff_t new_size = 0; int ret = 0; int flags; int credits; int partial_begin, partial_end; loff_t start, end;...
static long ext4_zero_range(struct file *file, loff_t offset, loff_t len, int mode) { struct inode *inode = file_inode(file); loff_t new_size = 0; struct address_space *mapping = inode->i_mapping; unsigned int blkbits = inode->i_blkbits; trace_ext4_zero_range(inode, offset, len, mode); if (mappi...
static long ext4_zero_range(struct file *file, loff_t offset, loff_t len, int mode) { struct inode *inode = file_inode(file); loff_t new_size = 0; struct address_space *mapping = inode->i_mapping; unsigned int blkbits = inode->i_blkbits; trace_ext4_zero_range(inode, offset, len, mode); if (mappi...
static long ext4_zero_range(struct file *file, loff_t offset, loff_t len, int mode) { struct inode *inode = file_inode(file); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ loff_t new_size = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct address_space *mapping = inode->i_mapping; unsigne...
static long ext4_zero_range(struct file *file, loff_t offset, loff_t len, int mode) { struct inode *inode = file_inode(file); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ loff_t new_size = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct address_space *mapping = inode->i_mapping; unsigne...
static long ext4_zero_range(struct file *file, loff_t offset, loff_t len, int mode) { struct inode *inode = file_inode(file); loff_t new_size = 0; struct address_space *mapping = inode->i_mapping; unsigned int blkbits = inode->i_blkbits; trace_ext4_zero_range(inode, offset, len, mode); if...
CVE-2015-1350
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/attr.c
notify_change
int notify_change(struct dentry * dentry, struct iattr * attr) { struct inode *inode = dentry->d_inode; mode_t mode = inode->i_mode; int error; struct timespec now; unsigned int ia_valid = attr->ia_valid; if (ia_valid & (ATTR_MODE | ATTR_UID | ATTR_GID | ATTR_TIMES_SET)) { if (IS_IMMUTAB...
int notify_change(struct dentry * dentry, struct iattr * attr) { struct inode *inode = dentry->d_inode; mode_t mode = inode->i_mode; int error; struct timespec now; unsigned int ia_valid = attr->ia_valid; if (ia_valid & (ATTR_MODE | ATTR_UID | ATTR_GID | ATTR_TIMES_SET)) { if (IS_IMMUTAB...
int notify_change(struct dentry * dentry, struct iattr * attr, struct inode **delegated_inode) { struct inode *inode = dentry->d_inode; umode_t mode = inode->i_mode; int error; struct timespec now; unsigned int ia_valid = attr->ia_valid; WARN_ON_ONCE(!mutex_is_locked(&inode->i_mutex)); if (i...
int notify_change(struct dentry * dentry, struct iattr * attr, struct inode **delegated_inode) { struct inode *inode = dentry->d_inode; umode_t mode = inode->i_mode; int error; struct timespec now; unsigned int ia_valid = attr->ia_valid; WARN_ON_ONCE(!mutex_is_locked(&inode->i_mutex)); if (i...
int notify_change(struct dentry * dentry, struct iattr * attr) { struct inode *inode = dentry->d_inode; unsigned int ia_valid = attr->ia_valid; if (ia_valid & (ATTR_MODE | ATTR_UID | ATTR_GID | ATTR_TIMES_SET)) { if (IS_IMMUTABLE(inode) || IS_APPEND(inode)) { return -EPERM; } ...
int notify_change(struct dentry * dentry, struct iattr * attr) { struct inode *inode = dentry->d_inode; unsigned int ia_valid = attr->ia_valid; if (ia_valid & (ATTR_MODE | ATTR_UID | ATTR_GID | ATTR_TIMES_SET)) { if (IS_IMMUTABLE(inode) || IS_APPEND(inode)) { return -EPERM; } ...
int notify_change(struct dentry * dentry, struct iattr * attr, struct inode **delegated_inode) { struct inode *inode = dentry->d_inode; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ unsigned int ia_valid = attr->ia_valid; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (ia_valid & (ATTR_MODE | ATTR...
int notify_change(struct dentry * dentry, struct iattr * attr, struct inode **delegated_inode) { struct inode *inode = dentry->d_inode; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ unsigned int ia_valid = attr->ia_valid; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (ia_valid & (ATTR_MODE | ATTR...
int notify_change(struct dentry * dentry, struct iattr * attr) { struct inode *inode = dentry->d_inode; unsigned int ia_valid = attr->ia_valid; if (ia_valid & (ATTR_MODE | ATTR_UID | ATTR_GID | ATTR_TIMES_SET)) { if (IS_IMMUTABLE(inode) || IS_APPEND(inode)) { return -EPERM; ...
CVE-2015-1350
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/attr.c
setattr_prepare
int setattr_prepare(struct dentry *dentry, struct iattr *attr) { struct inode *inode = dentry->d_inode; unsigned int ia_valid = attr->ia_valid; if (ia_valid & ATTR_SIZE) { int error = inode_newsize_ok(inode, attr->ia_size); if (error) { return error; } } if (ia_va...
int setattr_prepare(struct dentry *dentry, struct iattr *attr) { struct inode *inode = dentry->d_inode; unsigned int ia_valid = attr->ia_valid; if (ia_valid & ATTR_SIZE) { int error = inode_newsize_ok(inode, attr->ia_size); if (error) { return error; } } if (ia_va...
int setattr_prepare(struct dentry *dentry, struct iattr *attr) { struct inode *inode = d_inode(dentry); unsigned int ia_valid = attr->ia_valid; if (ia_valid & ATTR_SIZE) { int error = inode_newsize_ok(inode, attr->ia_size); if (error) { return error; } } if (ia_va...
int setattr_prepare(struct dentry *dentry, struct iattr *attr) { struct inode *inode = d_inode(dentry); unsigned int ia_valid = attr->ia_valid; if (ia_valid & ATTR_SIZE) { int error = inode_newsize_ok(inode, attr->ia_size); if (error) { return error; } } if (ia_va...
int setattr_prepare(struct dentry *dentry, struct iattr *attr) { struct inode *inode = dentry->d_inode; unsigned int ia_valid = attr->ia_valid; if (ia_valid & ATTR_SIZE) { int error = inode_newsize_ok(inode, attr->ia_size); } if (ia_valid & ATTR_FORCE) { return 0; } if ((ia_v...
int setattr_prepare(struct dentry *dentry, struct iattr *attr) { struct inode *inode = dentry->d_inode; unsigned int ia_valid = attr->ia_valid; if (ia_valid & ATTR_SIZE) { int error = inode_newsize_ok(inode, attr->ia_size); } if (ia_valid & ATTR_FORCE) { goto kill_priv; } if ...
int setattr_prepare(struct dentry *dentry, struct iattr *attr) { struct inode *inode = d_inode(dentry); unsigned int ia_valid = attr->ia_valid; if (ia_valid & ATTR_SIZE) { int error = inode_newsize_ok(inode, attr->ia_size); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } if (ia_valid & A...
int setattr_prepare(struct dentry *dentry, struct iattr *attr) { struct inode *inode = d_inode(dentry); unsigned int ia_valid = attr->ia_valid; if (ia_valid & ATTR_SIZE) { int error = inode_newsize_ok(inode, attr->ia_size); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } if (ia_valid & A...
int setattr_prepare(struct dentry *dentry, struct iattr *attr) { struct inode *inode = dentry->d_inode; unsigned int ia_valid = attr->ia_valid; if (ia_valid & ATTR_SIZE) { int error = inode_newsize_ok(inode, attr->ia_size); } if (ia_valid & ATTR_FORCE) { - return 0; + go...
CVE-2015-1420
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/fhandle.c
handle_to_path
static int handle_to_path(int mountdirfd, struct file_handle *ufh, struct path *path) { int retval = 0; struct file_handle f_handle; struct file_handle *handle = NULL; if (!capable(CAP_DAC_READ_SEARCH)) { retval = -EPERM; goto out_err; } if (copy_from_user(&f_handle, ufh, sizeof(...
static int handle_to_path(int mountdirfd, struct file_handle *ufh, struct path *path) { int retval = 0; struct file_handle f_handle; struct file_handle *handle = NULL; if (!capable(CAP_DAC_READ_SEARCH)) { retval = -EPERM; goto out_err; } if (copy_from_user(&f_handle, ufh, sizeof(...
static int handle_to_path(int mountdirfd, struct file_handle *ufh, struct path *path) { int retval = 0; struct file_handle f_handle; struct file_handle *handle = NULL; if (!capable(CAP_DAC_READ_SEARCH)) { retval = -EPERM; goto out_err; } if (copy_from_user(&f_handle, ufh, sizeof(...
static int handle_to_path(int mountdirfd, struct file_handle *ufh, struct path *path) { int retval = 0; struct file_handle f_handle; struct file_handle *handle = NULL; if (!capable(CAP_DAC_READ_SEARCH)) { retval = -EPERM; goto out_err; } if (copy_from_user(&f_handle, ufh, sizeof(...
static int handle_to_path(int mountdirfd, struct file_handle *ufh, struct path *path) { if (copy_from_user(&f_handle, ufh, sizeof(struct file_handle))) { goto out_err; } if ((f_handle.handle_bytes > MAX_HANDLE_SZ) || (f_handle.handle_bytes == 0)) { goto out_err; } handle = kmalloc(si...
static int handle_to_path(int mountdirfd, struct file_handle *ufh, struct path *path) { if (copy_from_user(&f_handle, ufh, sizeof(struct file_handle))) { goto out_err; } if ((f_handle.handle_bytes > MAX_HANDLE_SZ) || (f_handle.handle_bytes == 0)) { goto out_err; } handle = kmalloc(si...
static int handle_to_path(int mountdirfd, struct file_handle *ufh, struct path *path) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (copy_from_user(&f_handle, ufh, sizeof(struct file_handle))) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ goto out_err; } if ((f_handle.handle_bytes > M...
static int handle_to_path(int mountdirfd, struct file_handle *ufh, struct path *path) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (copy_from_user(&f_handle, ufh, sizeof(struct file_handle))) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ goto out_err; } if ((f_handle.handle_bytes > M...
static int handle_to_path(int mountdirfd, struct file_handle *ufh, struct path *path) { if (copy_from_user(&f_handle, ufh, sizeof(struct file_handle))) { goto out_err; } if ((f_handle.handle_bytes > MAX_HANDLE_SZ) || (f_handle.handle_bytes == 0)) { goto out_err; } handle = km...
CVE-2015-1421
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/sctp/associola.c
sctp_assoc_update
void sctp_assoc_update(struct sctp_association *asoc, struct sctp_association *new) { struct sctp_transport *trans; struct list_head *pos, *temp; asoc->c = new->c; asoc->peer.rwnd = new->peer.rwnd; asoc->peer.sack_needed = new->peer.sack_needed; asoc->peer.auth_capable = new->peer.auth_capable; ...
void sctp_assoc_update(struct sctp_association *asoc, struct sctp_association *new) { struct sctp_transport *trans; struct list_head *pos, *temp; asoc->c = new->c; asoc->peer.rwnd = new->peer.rwnd; asoc->peer.sack_needed = new->peer.sack_needed; asoc->peer.auth_capable = new->peer.auth_capable; ...
void sctp_assoc_update(struct sctp_association *asoc, struct sctp_association *new) { struct sctp_transport *trans; struct list_head *pos, *temp; asoc->c = new->c; asoc->peer.rwnd = new->peer.rwnd; asoc->peer.sack_needed = new->peer.sack_needed; asoc->peer.auth_capable = new->peer.auth_capable; ...
void sctp_assoc_update(struct sctp_association *asoc, struct sctp_association *new) { struct sctp_transport *trans; struct list_head *pos, *temp; asoc->c = new->c; asoc->peer.rwnd = new->peer.rwnd; asoc->peer.sack_needed = new->peer.sack_needed; asoc->peer.auth_capable = new->peer.auth_capable; ...
void sctp_assoc_update(struct sctp_association *asoc, struct sctp_association *new) { sctp_tsnmap_init(&asoc->peer.tsn_map, SCTP_TSN_MAP_ITIAL, asoc->peer.i.initial_tsn, GFP_ATOMIC); list_for_each_safe(pos, temp, &asoc->peer.transport_addr_list) { if (asoc->state >= SCTP_STATE_ESTABLISHED) { ...
void sctp_assoc_update(struct sctp_association *asoc, struct sctp_association *new) { sctp_tsnmap_init(&asoc->peer.tsn_map, SCTP_TSN_MAP_ITIAL, asoc->peer.i.initial_tsn, GFP_ATOMIC); list_for_each_safe(pos, temp, &asoc->peer.transport_addr_list) { if (asoc->state >= SCTP_STATE_ESTABLISHED) { ...
void sctp_assoc_update(struct sctp_association *asoc, struct sctp_association *new) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ sctp_tsnmap_init(&asoc->peer.tsn_map, SCTP_TSN_MAP_ITIAL, asoc->peer.i.initial_tsn, GFP_ATOMIC); list_for_each_safe(pos, temp, &asoc->peer.transport_addr_list) { /* PLACEHO...
void sctp_assoc_update(struct sctp_association *asoc, struct sctp_association *new) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ sctp_tsnmap_init(&asoc->peer.tsn_map, SCTP_TSN_MAP_ITIAL, asoc->peer.i.initial_tsn, GFP_ATOMIC); list_for_each_safe(pos, temp, &asoc->peer.transport_addr_list) { /* PLACEHO...
void sctp_assoc_update(struct sctp_association *asoc, struct sctp_association *new) { sctp_tsnmap_init(&asoc->peer.tsn_map, SCTP_TSN_MAP_ITIAL, asoc->peer.i.initial_tsn, GFP_ATOMIC); list_for_each_safe(pos, temp, &asoc->peer.transport_addr_list) { if (asoc->state >= SCTP_STATE_ESTABLISHED) { ...
CVE-2015-1465
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv4/ip_forward.c
ip_forward
int ip_forward(struct sk_buff *skb) { u32 mtu; struct iphdr *iph; struct rtable *rt; struct ip_options *opt = &(IPCB(skb)->opt); if (skb->pkt_type != PACKET_HOST) { goto drop; } if (skb_warn_if_lro(skb)) { goto drop; } if (!xfrm4_policy_check(NULL, XFRM_POLICY_FWD, sk...
int ip_forward(struct sk_buff *skb) { u32 mtu; struct iphdr *iph; struct rtable *rt; struct ip_options *opt = &(IPCB(skb)->opt); if (skb->pkt_type != PACKET_HOST) { goto drop; } if (skb_warn_if_lro(skb)) { goto drop; } if (!xfrm4_policy_check(NULL, XFRM_POLICY_FWD, sk...
int ip_forward(struct sk_buff *skb) { u32 mtu; struct iphdr *iph; struct rtable *rt; struct ip_options *opt = &(IPCB(skb)->opt); if (skb->pkt_type != PACKET_HOST) { goto drop; } if (skb_warn_if_lro(skb)) { goto drop; } if (!xfrm4_policy_check(NULL, XFRM_POLICY_FWD, sk...
int ip_forward(struct sk_buff *skb) { u32 mtu; struct iphdr *iph; struct rtable *rt; struct ip_options *opt = &(IPCB(skb)->opt); if (skb->pkt_type != PACKET_HOST) { goto drop; } if (skb_warn_if_lro(skb)) { goto drop; } if (!xfrm4_policy_check(NULL, XFRM_POLICY_FWD, sk...
int ip_forward(struct sk_buff *skb) { struct ip_options *opt = &(IPCB(skb)->opt); if (skb_warn_if_lro(skb)) { goto drop; } if (!xfrm4_policy_check(NULL, XFRM_POLICY_FWD, skb)) { goto drop; } if (IPCB(skb)->opt.router_alert && ip_call_ra_chain(skb)) { return NET_RX_SUCCESS...
int ip_forward(struct sk_buff *skb) { struct ip_options *opt = &(IPCB(skb)->opt); if (skb_warn_if_lro(skb)) { goto drop; } if (!xfrm4_policy_check(NULL, XFRM_POLICY_FWD, skb)) { goto drop; } if (IPCB(skb)->opt.router_alert && ip_call_ra_chain(skb)) { return NET_RX_SUCCESS...
int ip_forward(struct sk_buff *skb) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct ip_options *opt = &(IPCB(skb)->opt); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (skb_warn_if_lro(skb)) { goto drop; } if (!xfrm4_policy_check(NULL, XFRM_POLICY_FWD, skb)) { goto drop;...
int ip_forward(struct sk_buff *skb) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct ip_options *opt = &(IPCB(skb)->opt); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (skb_warn_if_lro(skb)) { goto drop; } if (!xfrm4_policy_check(NULL, XFRM_POLICY_FWD, skb)) { goto drop;...
int ip_forward(struct sk_buff *skb) { struct ip_options *opt = &(IPCB(skb)->opt); if (skb_warn_if_lro(skb)) { goto drop; } if (!xfrm4_policy_check(NULL, XFRM_POLICY_FWD, skb)) { goto drop; } if (IPCB(skb)->opt.router_alert && ip_call_ra_chain(skb)) { return NET_...
CVE-2015-1465
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv4/route.c
__mkroute_input
static int __mkroute_input(struct sk_buff *skb, const struct fib_result *res, struct in_device *in_dev, __be32 daddr, __be32 saddr, u32 tos) { struct fib_nh_exception *fnhe; struct rtable *rth; int err; struct in_device *out_dev; unsigned int flags = 0; bool do_cache; u32 itag = 0; out_d...
static int __mkroute_input(struct sk_buff *skb, const struct fib_result *res, struct in_device *in_dev, __be32 daddr, __be32 saddr, u32 tos) { struct fib_nh_exception *fnhe; struct rtable *rth; int err; struct in_device *out_dev; unsigned int flags = 0; bool do_cache; u32 itag = 0; out_d...
static int __mkroute_input(struct sk_buff *skb, const struct fib_result *res, struct in_device *in_dev, __be32 daddr, __be32 saddr, u32 tos) { struct fib_nh_exception *fnhe; struct rtable *rth; int err; struct in_device *out_dev; unsigned int flags = 0; bool do_cache; u32 itag = 0; out_d...
static int __mkroute_input(struct sk_buff *skb, const struct fib_result *res, struct in_device *in_dev, __be32 daddr, __be32 saddr, u32 tos) { struct fib_nh_exception *fnhe; struct rtable *rth; int err; struct in_device *out_dev; unsigned int flags = 0; bool do_cache; u32 itag = 0; out_d...
static int __mkroute_input(struct sk_buff *skb, const struct fib_result *res, struct in_device *in_dev, __be32 daddr, __be32 saddr, u32 tos) { unsigned int flags = 0; u32 itag = 0; out_dev = __in_dev_get_rcu(FIB_RES_DEV(*res)); if (out_dev == NULL) { return -EVAL; } err = fib_validate_so...
static int __mkroute_input(struct sk_buff *skb, const struct fib_result *res, struct in_device *in_dev, __be32 daddr, __be32 saddr, u32 tos) { unsigned int flags = 0; u32 itag = 0; out_dev = __in_dev_get_rcu(FIB_RES_DEV(*res)); if (out_dev == NULL) { return -EVAL; } err = fib_validate_so...
static int __mkroute_input(struct sk_buff *skb, const struct fib_result *res, struct in_device *in_dev, __be32 daddr, __be32 saddr, u32 tos) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ unsigned int flags = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ u32 itag = 0; out_dev = __in_dev_get_rcu(...
static int __mkroute_input(struct sk_buff *skb, const struct fib_result *res, struct in_device *in_dev, __be32 daddr, __be32 saddr, u32 tos) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ unsigned int flags = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ u32 itag = 0; out_dev = __in_dev_get_rcu(...
static int __mkroute_input(struct sk_buff *skb, const struct fib_result *res, struct in_device *in_dev, __be32 daddr, __be32 saddr, u32 tos) { unsigned int flags = 0; u32 itag = 0; out_dev = __in_dev_get_rcu(FIB_RES_DEV(*res)); if (out_dev == NULL) { return -EVAL; } err = fib_val...
CVE-2015-1465
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv4/route.c
rt_fill_info
static int rt_fill_info(struct net *net, __be32 dst, __be32 src, struct flowi4 *fl4, struct sk_buff *skb, u32 portid, u32 seq, int event, int nowait, unsigned int flags) { struct rtable *rt = skb_rtable(skb); struct rtmsg *r; struct nlmsghdr *nlh; unsigned long expires = 0; u32 error; u32 metric...
static int rt_fill_info(struct net *net, __be32 dst, __be32 src, struct flowi4 *fl4, struct sk_buff *skb, u32 portid, u32 seq, int event, int nowait, unsigned int flags) { struct rtable *rt = skb_rtable(skb); struct rtmsg *r; struct nlmsghdr *nlh; unsigned long expires = 0; u32 error; u32 metric...
static int rt_fill_info(struct net *net, __be32 dst, __be32 src, struct flowi4 *fl4, struct sk_buff *skb, u32 portid, u32 seq, int event, int nowait, unsigned int flags) { struct rtable *rt = skb_rtable(skb); struct rtmsg *r; struct nlmsghdr *nlh; unsigned long expires = 0; u32 error; u32 metric...
static int rt_fill_info(struct net *net, __be32 dst, __be32 src, struct flowi4 *fl4, struct sk_buff *skb, u32 portid, u32 seq, int event, int nowait, unsigned int flags) { struct rtable *rt = skb_rtable(skb); struct rtmsg *r; struct nlmsghdr *nlh; unsigned long expires = 0; u32 error; u32 metric...
static int rt_fill_info(struct net *net, __be32 dst, __be32 src, struct flowi4 *fl4, struct sk_buff *skb, u32 portid, u32 seq, int event, int nowait, unsigned int flags) { struct rtable *rt = skb_rtable(skb); nlh = nlmsg_put(skb, portid, seq, event, sizeof(*r), flags); if (nlh == NULL) { return -EMS...
static int rt_fill_info(struct net *net, __be32 dst, __be32 src, struct flowi4 *fl4, struct sk_buff *skb, u32 portid, u32 seq, int event, int nowait, unsigned int flags) { struct rtable *rt = skb_rtable(skb); nlh = nlmsg_put(skb, portid, seq, event, sizeof(*r), flags); if (nlh == NULL) { return -EMS...
static int rt_fill_info(struct net *net, __be32 dst, __be32 src, struct flowi4 *fl4, struct sk_buff *skb, u32 portid, u32 seq, int event, int nowait, unsigned int flags) { struct rtable *rt = skb_rtable(skb); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ nlh = nlmsg_put(skb, portid, seq, event, sizeof(*r), ...
static int rt_fill_info(struct net *net, __be32 dst, __be32 src, struct flowi4 *fl4, struct sk_buff *skb, u32 portid, u32 seq, int event, int nowait, unsigned int flags) { struct rtable *rt = skb_rtable(skb); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ nlh = nlmsg_put(skb, portid, seq, event, sizeof(*r), ...
static int rt_fill_info(struct net *net, __be32 dst, __be32 src, struct flowi4 *fl4, struct sk_buff *skb, u32 portid, u32 seq, int event, int nowait, unsigned int flags) { struct rtable *rt = skb_rtable(skb); nlh = nlmsg_put(skb, portid, seq, event, sizeof(*r), flags); if (nlh == NULL) { return...
CVE-2015-1593
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
arch/x86/mm/mmap.c
stack_maxrandom_size
static unsigned int stack_maxrandom_size(void) { unsigned int max = 0; if ((current->flags & PF_RANDOMIZE) && !(current->personality & ADDR_NO_RANDOMIZE)) { max = ((-1U) & STACK_RND_MASK) << PAGE_SHIFT; } return max; }
static unsigned long stack_maxrandom_size(void) { unsigned long max = 0; if ((current->flags & PF_RANDOMIZE) && !(current->personality & ADDR_NO_RANDOMIZE)) { max = ((-1UL) & STACK_RND_MASK) << PAGE_SHIFT; } return max; }
static unsigned int stack_maxrandom_size(void) { unsigned int max = 0; if ((current->flags & PF_RANDOMIZE) && !(current->personality & ADDR_NO_RANDOMIZE)) { max = ((-1U) & STACK_RND_MASK) << PAGE_SHIFT; } return max; }
static unsigned long stack_maxrandom_size(void) { unsigned long max = 0; if ((current->flags & PF_RANDOMIZE) && !(current->personality & ADDR_NO_RANDOMIZE)) { max = ((-1UL) & STACK_RND_MASK) << PAGE_SHIFT; } return max; }
static unsigned int stack_maxrandom_size(void) { unsigned int max = 0; if ((current->flags & PF_RANDOMIZE) && !(current->personality & ADDR_NO_RANDOMIZE)) { max = ((-1U) & STACK_RND_MASK) << PAGE_SHIFT; } return max; }
static unsigned long stack_maxrandom_size(void) { unsigned long max = 0; if ((current->flags & PF_RANDOMIZE) && !(current->personality & ADDR_NO_RANDOMIZE)) { max = ((-1UL) & STACK_RND_MASK) << PAGE_SHIFT; } return max; }
static unsigned int stack_maxrandom_size(void) { unsigned int max = 0; if ((current->flags & PF_RANDOMIZE) && !(current->personality & ADDR_NO_RANDOMIZE)) { max = ((-1U) & STACK_RND_MASK) << PAGE_SHIFT; } return max; }
static unsigned long stack_maxrandom_size(void) { unsigned long max = 0; if ((current->flags & PF_RANDOMIZE) && !(current->personality & ADDR_NO_RANDOMIZE)) { max = ((-1UL) & STACK_RND_MASK) << PAGE_SHIFT; } return max; }
-static unsigned int stack_maxrandom_size(void) { - unsigned int max = 0; +static unsigned long stack_maxrandom_size(void) { + unsigned long max = 0; if ((current->flags & PF_RANDOMIZE) && !(current->personality & ADDR_NO_RANDOMIZE)) { - max = ((-1U) & STACK_RND_MASK) << PAGE_SHIFT; + max = ((-...
CVE-2015-1593
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/binfmt_elf.c
randomize_stack_top
static unsigned long randomize_stack_top(unsigned long stack_top) { unsigned int random_variable = 0; if ((current->flags & PF_RANDOMIZE) && !(current->personality & ADDR_NO_RANDOMIZE)) { random_variable = get_random_int() & STACK_RND_MASK; random_variable <<= PAGE_SHIFT; } return PAGE_A...
static unsigned long randomize_stack_top(unsigned long stack_top) { unsigned long random_variable = 0; if ((current->flags & PF_RANDOMIZE) && !(current->personality & ADDR_NO_RANDOMIZE)) { random_variable = (unsigned long) get_random_int(); random_variable &= STACK_RND_MASK; random_varia...
static unsigned long randomize_stack_top(unsigned long stack_top) { unsigned int random_variable = 0; if ((current->flags & PF_RANDOMIZE) && !(current->personality & ADDR_NO_RANDOMIZE)) { random_variable = get_random_int() & STACK_RND_MASK; random_variable <<= PAGE_SHIFT; } return PAGE_A...
static unsigned long randomize_stack_top(unsigned long stack_top) { unsigned long random_variable = 0; if ((current->flags & PF_RANDOMIZE) && !(current->personality & ADDR_NO_RANDOMIZE)) { random_variable = (unsigned long) get_random_int(); random_variable &= STACK_RND_MASK; random_varia...
static unsigned long randomize_stack_top(unsigned long stack_top) { unsigned int random_variable = 0; if ((current->flags & PF_RANDOMIZE) && !(current->personality & ADDR_NO_RANDOMIZE)) { random_variable = get_random_int() & STACK_RND_MASK; random_variable <<= PAGE_SHIFT; } return PAGE_A...
static unsigned long randomize_stack_top(unsigned long stack_top) { unsigned long random_variable = 0; if ((current->flags & PF_RANDOMIZE) && !(current->personality & ADDR_NO_RANDOMIZE)) { random_variable = (unsigned long) get_random_int(); random_variable &= STACK_RND_MASK; random_varia...
static unsigned long randomize_stack_top(unsigned long stack_top) { unsigned int random_variable = 0; if ((current->flags & PF_RANDOMIZE) && !(current->personality & ADDR_NO_RANDOMIZE)) { random_variable = get_random_int() & STACK_RND_MASK; random_variable <<= PAGE_SHIFT; } return PAGE_A...
static unsigned long randomize_stack_top(unsigned long stack_top) { unsigned long random_variable = 0; if ((current->flags & PF_RANDOMIZE) && !(current->personality & ADDR_NO_RANDOMIZE)) { random_variable = (unsigned long) get_random_int(); random_variable &= STACK_RND_MASK; random_varia...
static unsigned long randomize_stack_top(unsigned long stack_top) { - unsigned int random_variable = 0; + unsigned long random_variable = 0; if ((current->flags & PF_RANDOMIZE) && !(current->personality & ADDR_NO_RANDOMIZE)) { - random_variable = get_random_int() & STACK_RND_MASK; + random_var...
CVE-2015-2150
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/xen/xen-pciback/conf_space_header.c
command_read
static int command_read(struct pci_dev *dev, int offset, u16 *value, void *data) { int i; int ret; ret = xen_pcibk_read_config_word(dev, offset, value, data); if (!pci_is_enabled(dev)) { return ret; } for (i = 0; i < PCI_ROM_RESOURCE; i++) { if (dev->resource[i].flags & IORESOURC...
static int command_read(struct pci_dev *dev, int offset, u16 *value, void *data) { int ret = pci_read_config_word(dev, offset, value); const struct pci_cmd_info *cmd = data; *value &= PCI_COMMAND_GUEST; *value |= cmd->val & ~PCI_COMMAND_GUEST; return ret; }
static int command_read(struct pci_dev *dev, int offset, u16 *value, void *data) { int i; int ret; ret = xen_pcibk_read_config_word(dev, offset, value, data); if (!pci_is_enabled(dev)) { return ret; } for (i = 0; i < PCI_ROM_RESOURCE; i++) { if (dev->resource[i].flags & IORESOURC...
static int command_read(struct pci_dev *dev, int offset, u16 *value, void *data) { int ret = pci_read_config_word(dev, offset, value); const struct pci_cmd_info *cmd = data; *value &= PCI_COMMAND_GUEST; *value |= cmd->val & ~PCI_COMMAND_GUEST; return ret; }
static int command_read(struct pci_dev *dev, int offset, u16 *value, void *data) { int i; int ret; ret = xen_pcibk_read_config_word(dev, offset, value, data); if (!pci_is_enabled(dev)) { return ret; } for (i = 0; i < PCI_ROM_RESOURCE; i++) { if (dev->resource[i].flags & IORESOURC...
static int command_read(struct pci_dev *dev, int offset, u16 *value, void *data) { int ret = pci_read_config_word(dev, offset, value); const struct pci_cmd_info *cmd = data; *value &= PCI_COMMAND_GUEST; *value |= cmd->val & ~PCI_COMMAND_GUEST; return ret; }
static int command_read(struct pci_dev *dev, int offset, u16 *value, void *data) { int i; int ret; ret = xen_pcibk_read_config_word(dev, offset, value, data); if (!pci_is_enabled(dev)) { return ret; } for (i = 0; i < PCI_ROM_RESOURCE; i++) { if (dev->resource[i].flags & IORESOURC...
static int command_read(struct pci_dev *dev, int offset, u16 *value, void *data) { int ret = pci_read_config_word(dev, offset, value); const struct pci_cmd_info *cmd = data; *value &= PCI_COMMAND_GUEST; *value |= cmd->val & ~PCI_COMMAND_GUEST; return ret; }
static int command_read(struct pci_dev *dev, int offset, u16 *value, void *data) { - int i; - int ret; - ret = xen_pcibk_read_config_word(dev, offset, value, data); - if (!pci_is_enabled(dev)) { - return ret; - } - for (i = 0; i < PCI_ROM_RESOURCE; i++) { - if (dev->resource[i].flags & ...
CVE-2015-2150
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/xen/xen-pciback/conf_space_header.c
command_write
static int command_write(struct pci_dev *dev, int offset, u16 value, void *data) { struct xen_pcibk_dev_data *dev_data; int err; dev_data = pci_get_drvdata(dev); if (!pci_is_enabled(dev) && is_enable_cmd(value)) { if (unlikely(verbose_request)) { printk(KERN_DEBUG DRV_NAME ": %s: ena...
static int command_write(struct pci_dev *dev, int offset, u16 value, void *data) { struct xen_pcibk_dev_data *dev_data; int err; u16 val; struct pci_cmd_info *cmd = data; dev_data = pci_get_drvdata(dev); if (!pci_is_enabled(dev) && is_enable_cmd(value)) { if (unlikely(verbose_request)) {...
static int command_write(struct pci_dev *dev, int offset, u16 value, void *data) { struct xen_pcibk_dev_data *dev_data; int err; dev_data = pci_get_drvdata(dev); if (!pci_is_enabled(dev) && is_enable_cmd(value)) { if (unlikely(verbose_request)) { printk(KERN_DEBUG DRV_NAME ": %s: ena...
static int command_write(struct pci_dev *dev, int offset, u16 value, void *data) { struct xen_pcibk_dev_data *dev_data; int err; u16 val; struct pci_cmd_info *cmd = data; dev_data = pci_get_drvdata(dev); if (!pci_is_enabled(dev) && is_enable_cmd(value)) { if (unlikely(verbose_request)) {...
static int command_write(struct pci_dev *dev, int offset, u16 value, void *data) { int err; dev_data = pci_get_drvdata(dev); if (!pci_is_enabled(dev) && is_enable_cmd(value)) { err = pci_enable_device(dev); } else if (pci_is_enabled(dev) && !is_enable_cmd(value)) { pci_disable_device(dev...
static int command_write(struct pci_dev *dev, int offset, u16 value, void *data) { int err; u16 val; struct pci_cmd_info *cmd = data; dev_data = pci_get_drvdata(dev); if (!pci_is_enabled(dev) && is_enable_cmd(value)) { err = pci_enable_device(dev); } else if (pci_is_enabled(dev) && !is_e...
static int command_write(struct pci_dev *dev, int offset, u16 value, void *data) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int err; dev_data = pci_get_drvdata(dev); if (!pci_is_enabled(dev) && is_enable_cmd(value)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ err = pci_enable_device...
static int command_write(struct pci_dev *dev, int offset, u16 value, void *data) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int err; u16 val; struct pci_cmd_info *cmd = data; dev_data = pci_get_drvdata(dev); if (!pci_is_enabled(dev) && is_enable_cmd(value)) { /* PLACEHOLDER: DO NOT DELE...
static int command_write(struct pci_dev *dev, int offset, u16 value, void *data) { int err; + u16 val; + struct pci_cmd_info *cmd = data; dev_data = pci_get_drvdata(dev); if (!pci_is_enabled(dev) && is_enable_cmd(value)) { err = pci_enable_device(dev); } else if (pci_is_enabled(dev) ...
CVE-2015-2666
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
arch/x86/kernel/cpu/microcode/intel_early.c
get_matching_model_microcode
static enum ucode_state get_matching_model_microcode(int cpu, unsigned long start, void *data, size_t size, struct mc_saved_data *mc_saved_data, unsigned long *mc_saved_in_initrd, struct ucode_cpu_info *uci) { u8 *ucode_ptr = data; unsigned int leftover = size; enum ucode_state state = UCODE_OK; ...
static enum ucode_state get_matching_model_microcode(int cpu, unsigned long start, void *data, size_t size, struct mc_saved_data *mc_saved_data, unsigned long *mc_saved_in_initrd, struct ucode_cpu_info *uci) { u8 *ucode_ptr = data; unsigned int leftover = size; enum ucode_state state = UCODE_OK; ...
static enum ucode_state get_matching_model_microcode(int cpu, unsigned long start, void *data, size_t size, struct mc_saved_data *mc_saved_data, unsigned long *mc_saved_in_initrd, struct ucode_cpu_info *uci) { u8 *ucode_ptr = data; unsigned int leftover = size; enum ucode_state state = UCODE_OK; ...
static enum ucode_state get_matching_model_microcode(int cpu, unsigned long start, void *data, size_t size, struct mc_saved_data *mc_saved_data, unsigned long *mc_saved_in_initrd, struct ucode_cpu_info *uci) { u8 *ucode_ptr = data; unsigned int leftover = size; enum ucode_state state = UCODE_OK; ...
static enum ucode_state get_matching_model_microcode(int cpu, unsigned long start, void *data, size_t size, struct mc_saved_data *mc_saved_data, unsigned long *mc_saved_in_initrd, struct ucode_cpu_info *uci) { unsigned int leftover = size; unsigned int mc_saved_count = mc_saved_data->mc_saved_count; ...
static enum ucode_state get_matching_model_microcode(int cpu, unsigned long start, void *data, size_t size, struct mc_saved_data *mc_saved_data, unsigned long *mc_saved_in_initrd, struct ucode_cpu_info *uci) { unsigned int leftover = size; unsigned int mc_saved_count = mc_saved_data->mc_saved_count; ...
static enum ucode_state get_matching_model_microcode(int cpu, unsigned long start, void *data, size_t size, struct mc_saved_data *mc_saved_data, unsigned long *mc_saved_in_initrd, struct ucode_cpu_info *uci) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ unsigned int leftover = size; /* PLACEHOLDER...
static enum ucode_state get_matching_model_microcode(int cpu, unsigned long start, void *data, size_t size, struct mc_saved_data *mc_saved_data, unsigned long *mc_saved_in_initrd, struct ucode_cpu_info *uci) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ unsigned int leftover = size; /* PLACEHOLDER...
static enum ucode_state get_matching_model_microcode(int cpu, unsigned long start, void *data, size_t size, struct mc_saved_data *mc_saved_data, unsigned long *mc_saved_in_initrd, struct ucode_cpu_info *uci) { unsigned int leftover = size; unsigned int mc_saved_count = mc_saved_data->mc_saved_count;...
CVE-2015-2922
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv6/ndisc.c
ndisc_router_discovery
static void ndisc_router_discovery(struct sk_buff *skb) { struct ra_msg *ra_msg = (struct ra_msg *)skb_transport_header(skb); struct neighbour *neigh = NULL; struct inet6_dev *in6_dev; struct rt6_info *rt = NULL; int lifetime; struct ndisc_options ndopts; int optlen; unsigned int pref = ...
static void ndisc_router_discovery(struct sk_buff *skb) { struct ra_msg *ra_msg = (struct ra_msg *)skb_transport_header(skb); struct neighbour *neigh = NULL; struct inet6_dev *in6_dev; struct rt6_info *rt = NULL; int lifetime; struct ndisc_options ndopts; int optlen; unsigned int pref = ...
static void ndisc_router_discovery(struct sk_buff *skb) { struct ra_msg *ra_msg = (struct ra_msg *)skb_transport_header(skb); struct neighbour *neigh = NULL; struct inet6_dev *in6_dev; struct rt6_info *rt = NULL; int lifetime; struct ndisc_options ndopts; int optlen; unsigned int pref = ...
static void ndisc_router_discovery(struct sk_buff *skb) { struct ra_msg *ra_msg = (struct ra_msg *)skb_transport_header(skb); struct neighbour *neigh = NULL; struct inet6_dev *in6_dev; struct rt6_info *rt = NULL; int lifetime; struct ndisc_options ndopts; int optlen; unsigned int pref = ...
static void ndisc_router_discovery(struct sk_buff *skb) { if (ra_msg->icmph.icmp6_hop_limit) { in6_dev->cnf.hop_limit = ra_msg->icmph.icmp6_hop_limit; if (rt) { dst_metric_set(&rt->dst, RTAX_HOPLIMIT, ra_msg->icmph.icmp6_hop_limit); } } if (neigh) { if (ndopts.nd_...
static void ndisc_router_discovery(struct sk_buff *skb) { if (ra_msg->icmph.icmp6_hop_limit) { if (in6_dev->cnf.hop_limit < ra_msg->icmph.icmp6_hop_limit) { in6_dev->cnf.hop_limit = ra_msg->icmph.icmp6_hop_limit; } else { ND_PRTK(2, warn, "RA: Got route advertisement with low...
static void ndisc_router_discovery(struct sk_buff *skb) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (ra_msg->icmph.icmp6_hop_limit) { in6_dev->cnf.hop_limit = ra_msg->icmph.icmp6_hop_limit; if (rt) { dst_metric_set(&rt->dst, RTAX_HOPLIMIT, ra_msg->icmph.icmp6_hop_limit); ...
static void ndisc_router_discovery(struct sk_buff *skb) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (ra_msg->icmph.icmp6_hop_limit) { if (in6_dev->cnf.hop_limit < ra_msg->icmph.icmp6_hop_limit) { in6_dev->cnf.hop_limit = ra_msg->icmph.icmp6_hop_limit; } else { ND_P...
static void ndisc_router_discovery(struct sk_buff *skb) { if (ra_msg->icmph.icmp6_hop_limit) { - in6_dev->cnf.hop_limit = ra_msg->icmph.icmp6_hop_limit; + if (in6_dev->cnf.hop_limit < ra_msg->icmph.icmp6_hop_limit) { + in6_dev->cnf.hop_limit = ra_msg->icmph.icmp6_hop_limit; + } els...
CVE-2015-2925
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/dcache.c
prepend_path
static int prepend_path(const struct path *path, const struct path *root, char **buffer, int *buflen) { struct dentry *dentry; struct vfsmount *vfsmnt; struct mount *mnt; int error = 0; unsigned seq = 0; char *bptr; int blen; rcu_read_lock(); restart: bptr = *buffer; blen = *bufl...
static int prepend_path(const struct path *path, const struct path *root, char **buffer, int *buflen) { struct dentry *dentry; struct vfsmount *vfsmnt; struct mount *mnt; int error = 0; unsigned seq = 0; char *bptr; int blen; rcu_read_lock(); restart: bptr = *buffer; blen = *bufl...
static int prepend_path(const struct path *path, const struct path *root, char **buffer, int *buflen) { struct dentry *dentry; struct vfsmount *vfsmnt; struct mount *mnt; int error = 0; unsigned seq, m_seq = 0; char *bptr; int blen; rcu_read_lock(); restart_mnt: read_seqbegin_or_lock...
static int prepend_path(const struct path *path, const struct path *root, char **buffer, int *buflen) { struct dentry *dentry; struct vfsmount *vfsmnt; struct mount *mnt; int error = 0; unsigned seq, m_seq = 0; char *bptr; int blen; rcu_read_lock(); restart_mnt: read_seqbegin_or_lock...
static int prepend_path(const struct path *path, const struct path *root, char **buffer, int *buflen) { dentry = path->dentry; vfsmnt = path->mnt; mnt = real_mount(vfsmnt); while (dentry != root->dentry || vfsmnt != root->mnt) { struct dentry * parent; if (dentry == vfsmnt->mnt_root || I...
static int prepend_path(const struct path *path, const struct path *root, char **buffer, int *buflen) { dentry = path->dentry; vfsmnt = path->mnt; mnt = real_mount(vfsmnt); while (dentry != root->dentry || vfsmnt != root->mnt) { struct dentry * parent; if (dentry == vfsmnt->mnt_root || I...
static int prepend_path(const struct path *path, const struct path *root, char **buffer, int *buflen) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ dentry = path->dentry; vfsmnt = path->mnt; mnt = real_mount(vfsmnt); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ while (dentry != root->dentry |...
static int prepend_path(const struct path *path, const struct path *root, char **buffer, int *buflen) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ dentry = path->dentry; vfsmnt = path->mnt; mnt = real_mount(vfsmnt); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ while (dentry != root->dentry |...
static int prepend_path(const struct path *path, const struct path *root, char **buffer, int *buflen) { dentry = path->dentry; vfsmnt = path->mnt; mnt = real_mount(vfsmnt); while (dentry != root->dentry || vfsmnt != root->mnt) { struct dentry * parent; if (dentry == vfsmnt->mnt_ro...
CVE-2015-3212
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/sctp/socket.c
sctp_close
static void sctp_close(struct sock *sk, long timeout) { struct net *net = sock_net(sk); struct sctp_endpoint *ep; struct sctp_association *asoc; struct list_head *pos, *temp; unsigned int data_was_unread; pr_debug("%s: sk:%p, timeout:%ld\n", __func__, sk, timeout); lock_sock(sk); sk->sk_...
static void sctp_close(struct sock *sk, long timeout) { struct net *net = sock_net(sk); struct sctp_endpoint *ep; struct sctp_association *asoc; struct list_head *pos, *temp; unsigned int data_was_unread; pr_debug("%s: sk:%p, timeout:%ld\n", __func__, sk, timeout); lock_sock(sk); sk->sk_...
SCTP_STATIC void sctp_close(struct sock *sk, long timeout) { struct sctp_endpoint *ep; struct sctp_association *asoc; struct list_head *pos, *temp; unsigned int data_was_unread; SCTP_DEBUG_PRTK("sctp_close(sk: 0x%p, timeout:%ld)\n", sk, timeout); sctp_lock_sock(sk); sk->sk_shutdown = SHUTDOW...
SCTP_STATIC void sctp_close(struct sock *sk, long timeout) { struct sctp_endpoint *ep; struct sctp_association *asoc; struct list_head *pos, *temp; unsigned int data_was_unread; SCTP_DEBUG_PRTK("sctp_close(sk: 0x%p, timeout:%ld)\n", sk, timeout); sctp_lock_sock(sk); sk->sk_shutdown = SHUTDOW...
static void sctp_close(struct sock *sk, long timeout) { release_sock(sk); local_bh_disable(); bh_lock_sock(sk); bh_unlock_sock(sk); local_bh_enable(); sock_put(sk); }
static void sctp_close(struct sock *sk, long timeout) { release_sock(sk); spin_lock_bh(&net->sctp.addr_wq_lock); bh_lock_sock(sk); bh_unlock_sock(sk); spin_unlock_bh(&net->sctp.addr_wq_lock); sock_put(sk); }
SCTP_STATIC void sctp_close(struct sock *sk, long timeout) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ sctp_release_sock(sk); sctp_local_bh_disable(); sctp_bh_lock_sock(sk); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ sctp_bh_unlock_sock(sk); sctp_local_bh_enable(); sock_put(sk); ...
SCTP_STATIC void sctp_close(struct sock *sk, long timeout) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ sctp_release_sock(sk); spin_lock_bh(&sctp_globals.addr_wq_lock); sctp_bh_lock_sock(sk); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ sctp_bh_unlock_sock(sk); spin_unlock_bh(&sctp_globa...
static void sctp_close(struct sock *sk, long timeout) { release_sock(sk); - local_bh_disable(); + spin_lock_bh(&net->sctp.addr_wq_lock); bh_lock_sock(sk); bh_unlock_sock(sk); - local_bh_enable(); + spin_unlock_bh(&net->sctp.addr_wq_lock); sock_put(sk); }
CVE-2015-3212
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/sctp/socket.c
sctp_init_sock
static int sctp_init_sock(struct sock *sk) { struct net *net = sock_net(sk); struct sctp_sock *sp; pr_debug("%s: sk:%p\n", __func__, sk); sp = sctp_sk(sk); switch (sk->sk_type) { case SOCK_SEQPACKET: sp->type = SCTP_SOCKET_UDP; break; case SOCK_STREAM: sp->type = SCTP...
static int sctp_init_sock(struct sock *sk) { struct net *net = sock_net(sk); struct sctp_sock *sp; pr_debug("%s: sk:%p\n", __func__, sk); sp = sctp_sk(sk); switch (sk->sk_type) { case SOCK_SEQPACKET: sp->type = SCTP_SOCKET_UDP; break; case SOCK_STREAM: sp->type = SCTP...
SCTP_STATIC int sctp_init_sock(struct sock *sk) { struct sctp_endpoint *ep; struct sctp_sock *sp; SCTP_DEBUG_PRTK("sctp_init_sock(sk: %p)\n", sk); sp = sctp_sk(sk); switch (sk->sk_type) { case SOCK_SEQPACKET: sp->type = SCTP_SOCKET_UDP; break; case SOCK_STREAM: sp->ty...
SCTP_STATIC int sctp_init_sock(struct sock *sk) { struct sctp_endpoint *ep; struct sctp_sock *sp; SCTP_DEBUG_PRTK("sctp_init_sock(sk: %p)\n", sk); sp = sctp_sk(sk); switch (sk->sk_type) { case SOCK_SEQPACKET: sp->type = SCTP_SOCKET_UDP; break; case SOCK_STREAM: sp->ty...
static int sctp_init_sock(struct sock *sk) { struct net *net = sock_net(sk); pr_debug("%s: sk:%p\n", __func__, sk); sp = sctp_sk(sk); sp->ep = sctp_endpoint_new(sk, GFP_KERNEL); if (net->sctp.default_auto_asconf) { list_add_tail(&sp->auto_asconf_list, &net->sctp.auto_asconf_splist); ...
static int sctp_init_sock(struct sock *sk) { struct net *net = sock_net(sk); pr_debug("%s: sk:%p\n", __func__, sk); sp = sctp_sk(sk); sp->ep = sctp_endpoint_new(sk, GFP_KERNEL); if (net->sctp.default_auto_asconf) { spin_lock(&sock_net(sk)->sctp.addr_wq_lock); list_add_tail(&sp->auto_...
SCTP_STATIC int sctp_init_sock(struct sock *sk) { struct sctp_endpoint *ep; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ SCTP_DEBUG_PRTK("sctp_init_sock(sk: %p)\n", sk); sp = sctp_sk(sk); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ep = sctp_endpoint_new(sk, GFP_KERNEL); if (!ep) { ...
SCTP_STATIC int sctp_init_sock(struct sock *sk) { struct sctp_endpoint *ep; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ SCTP_DEBUG_PRTK("sctp_init_sock(sk: %p)\n", sk); sp = sctp_sk(sk); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ep = sctp_endpoint_new(sk, GFP_KERNEL); if (!ep) { ...
static int sctp_init_sock(struct sock *sk) { struct net *net = sock_net(sk); pr_debug("%s: sk:%p\n", __func__, sk); sp = sctp_sk(sk); sp->ep = sctp_endpoint_new(sk, GFP_KERNEL); if (net->sctp.default_auto_asconf) { + spin_lock(&sock_net(sk)->sctp.addr_wq_lock); list_add_tail(&s...
CVE-2015-3212
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/sctp/socket.c
sctp_setsockopt_auto_asconf
static int sctp_setsockopt_auto_asconf(struct sock *sk, char *optval, unsigned int optlen) { int val; struct sctp_sock *sp = sctp_sk(sk); if (optlen < sizeof(int)) { return -EVAL; } if (get_user(val, (int *)optval)) { return -EFAULT; } if (!sctp_is_ep_boundall(sk) && val) { ...
static int sctp_setsockopt_auto_asconf(struct sock *sk, char *optval, unsigned int optlen) { int val; struct sctp_sock *sp = sctp_sk(sk); if (optlen < sizeof(int)) { return -EVAL; } if (get_user(val, (int *)optval)) { return -EFAULT; } if (!sctp_is_ep_boundall(sk) && val) { ...
static int sctp_setsockopt_auto_asconf(struct sock *sk, char *optval, unsigned int optlen) { int val; struct sctp_sock *sp = sctp_sk(sk); if (optlen < sizeof(int)) { return -EVAL; } if (get_user(val, (int *)optval)) { return -EFAULT; } if (!sctp_is_ep_boundall(sk) && val) { ...
static int sctp_setsockopt_auto_asconf(struct sock *sk, char *optval, unsigned int optlen) { int val; struct sctp_sock *sp = sctp_sk(sk); if (optlen < sizeof(int)) { return -EVAL; } if (get_user(val, (int *)optval)) { return -EFAULT; } if (!sctp_is_ep_boundall(sk) && val) { ...
static int sctp_setsockopt_auto_asconf(struct sock *sk, char *optval, unsigned int optlen) { struct sctp_sock *sp = sctp_sk(sk); if (get_user(val, (int *)optval)) { return -EFAULT; } if (!sctp_is_ep_boundall(sk) && val) { return -EVAL; } if ((val && sp->do_auto_asconf) || (!val &...
static int sctp_setsockopt_auto_asconf(struct sock *sk, char *optval, unsigned int optlen) { struct sctp_sock *sp = sctp_sk(sk); if (get_user(val, (int *)optval)) { return -EFAULT; } if (!sctp_is_ep_boundall(sk) && val) { return -EVAL; } if ((val && sp->do_auto_asconf) || (!val &...
static int sctp_setsockopt_auto_asconf(struct sock *sk, char *optval, unsigned int optlen) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct sctp_sock *sp = sctp_sk(sk); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (get_user(val, (int *)optval)) { return -EFAULT; } if (!sctp_is_...
static int sctp_setsockopt_auto_asconf(struct sock *sk, char *optval, unsigned int optlen) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct sctp_sock *sp = sctp_sk(sk); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (get_user(val, (int *)optval)) { return -EFAULT; } if (!sctp_is_...
static int sctp_setsockopt_auto_asconf(struct sock *sk, char *optval, unsigned int optlen) { struct sctp_sock *sp = sctp_sk(sk); if (get_user(val, (int *)optval)) { return -EFAULT; } if (!sctp_is_ep_boundall(sk) && val) { return -EVAL; } if ((val && sp->do_auto_asconf) |...
CVE-2015-3212
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/sctp/socket.c
sctp_sock_migrate
static void sctp_sock_migrate(struct sock *oldsk, struct sock *newsk, struct sctp_association *assoc, sctp_socket_type_t type) { struct sctp_sock *oldsp = sctp_sk(oldsk); struct sctp_sock *newsp = sctp_sk(newsk); struct sctp_bind_bucket *pp; struct sctp_endpoint *newep = newsp->ep; struct sk_buff *s...
static void sctp_sock_migrate(struct sock *oldsk, struct sock *newsk, struct sctp_association *assoc, sctp_socket_type_t type) { struct sctp_sock *oldsp = sctp_sk(oldsk); struct sctp_sock *newsp = sctp_sk(newsk); struct sctp_bind_bucket *pp; struct sctp_endpoint *newep = newsp->ep; struct sk_buff *s...
static void sctp_sock_migrate(struct sock *oldsk, struct sock *newsk, struct sctp_association *assoc, sctp_socket_type_t type) { struct sctp_sock *oldsp = sctp_sk(oldsk); struct sctp_sock *newsp = sctp_sk(newsk); struct sctp_bind_bucket *pp; struct sctp_endpoint *newep = newsp->ep; struct sk_buff *s...
static void sctp_sock_migrate(struct sock *oldsk, struct sock *newsk, struct sctp_association *assoc, sctp_socket_type_t type) { struct sctp_sock *oldsp = sctp_sk(oldsk); struct sctp_sock *newsp = sctp_sk(newsk); struct sctp_bind_bucket *pp; struct sctp_endpoint *newep = newsp->ep; struct sk_buff *s...
static void sctp_sock_migrate(struct sock *oldsk, struct sock *newsk, struct sctp_association *assoc, sctp_socket_type_t type) { struct sctp_sock *oldsp = sctp_sk(oldsk); struct sctp_sock *newsp = sctp_sk(newsk); struct sctp_bind_hashbucket *head; struct list_head tmplist; newsk->sk_sndbuf = oldsk->...
static void sctp_sock_migrate(struct sock *oldsk, struct sock *newsk, struct sctp_association *assoc, sctp_socket_type_t type) { struct sctp_sock *oldsp = sctp_sk(oldsk); struct sctp_sock *newsp = sctp_sk(newsk); struct sctp_bind_hashbucket *head; newsk->sk_sndbuf = oldsk->sk_sndbuf; newsk->sk_rcvbu...
static void sctp_sock_migrate(struct sock *oldsk, struct sock *newsk, struct sctp_association *assoc, sctp_socket_type_t type) { struct sctp_sock *oldsp = sctp_sk(oldsk); struct sctp_sock *newsp = sctp_sk(newsk); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct sctp_bind_hashbucket *head; struct...
static void sctp_sock_migrate(struct sock *oldsk, struct sock *newsk, struct sctp_association *assoc, sctp_socket_type_t type) { struct sctp_sock *oldsp = sctp_sk(oldsk); struct sctp_sock *newsp = sctp_sk(newsk); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct sctp_bind_hashbucket *head; newsk-...
static void sctp_sock_migrate(struct sock *oldsk, struct sock *newsk, struct sctp_association *assoc, sctp_socket_type_t type) { struct sctp_sock *oldsp = sctp_sk(oldsk); struct sctp_sock *newsp = sctp_sk(newsk); struct sctp_bind_hashbucket *head; - struct list_head tmplist; newsk->sk_sndbuf = o...
CVE-2015-3331
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
arch/x86/crypto/aesni-intel_glue.c
__driver_rfc4106_decrypt
static int __driver_rfc4106_decrypt(struct aead_request *req) { u8 one_entry_in_sg = 0; u8 *src, *dst, *assoc; unsigned long tempCipherLen = 0; __be32 counter = cpu_to_be32(1); int retval = 0; struct crypto_aead *tfm = crypto_aead_reqtfm(req); struct aesni_rfc4106_gcm_ctx *ctx = aesni_rfc410...
static int __driver_rfc4106_decrypt(struct aead_request *req) { u8 one_entry_in_sg = 0; u8 *src, *dst, *assoc; unsigned long tempCipherLen = 0; __be32 counter = cpu_to_be32(1); int retval = 0; struct crypto_aead *tfm = crypto_aead_reqtfm(req); struct aesni_rfc4106_gcm_ctx *ctx = aesni_rfc410...
static int __driver_rfc4106_decrypt(struct aead_request *req) { u8 one_entry_in_sg = 0; u8 *src, *dst, *assoc; unsigned long tempCipherLen = 0; __be32 counter = cpu_to_be32(1); int retval = 0; struct crypto_aead *tfm = crypto_aead_reqtfm(req); struct aesni_rfc4106_gcm_ctx *ctx = aesni_rfc410...
static int __driver_rfc4106_decrypt(struct aead_request *req) { u8 one_entry_in_sg = 0; u8 *src, *dst, *assoc; unsigned long tempCipherLen = 0; __be32 counter = cpu_to_be32(1); int retval = 0; struct crypto_aead *tfm = crypto_aead_reqtfm(req); struct aesni_rfc4106_gcm_ctx *ctx = aesni_rfc410...
static int __driver_rfc4106_decrypt(struct aead_request *req) { struct crypto_aead *tfm = crypto_aead_reqtfm(req); struct aesni_rfc4106_gcm_ctx *ctx = aesni_rfc4106_gcm_ctx_get(tfm); void *aes_ctx = &(ctx->aes_key_expanded); unsigned long auth_tag_len = crypto_aead_authsize(tfm); u8 *iv = (u8 *) PTR...
static int __driver_rfc4106_decrypt(struct aead_request *req) { struct crypto_aead *tfm = crypto_aead_reqtfm(req); struct aesni_rfc4106_gcm_ctx *ctx = aesni_rfc4106_gcm_ctx_get(tfm); void *aes_ctx = &(ctx->aes_key_expanded); unsigned long auth_tag_len = crypto_aead_authsize(tfm); u8 *iv = (u8 *) PTR...
static int __driver_rfc4106_decrypt(struct aead_request *req) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct crypto_aead *tfm = crypto_aead_reqtfm(req); struct aesni_rfc4106_gcm_ctx *ctx = aesni_rfc4106_gcm_ctx_get(tfm); void *aes_ctx = &(ctx->aes_key_expanded); unsigned long auth_tag_len = ...
static int __driver_rfc4106_decrypt(struct aead_request *req) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct crypto_aead *tfm = crypto_aead_reqtfm(req); struct aesni_rfc4106_gcm_ctx *ctx = aesni_rfc4106_gcm_ctx_get(tfm); void *aes_ctx = &(ctx->aes_key_expanded); unsigned long auth_tag_len = ...
static int __driver_rfc4106_decrypt(struct aead_request *req) { struct crypto_aead *tfm = crypto_aead_reqtfm(req); struct aesni_rfc4106_gcm_ctx *ctx = aesni_rfc4106_gcm_ctx_get(tfm); void *aes_ctx = &(ctx->aes_key_expanded); unsigned long auth_tag_len = crypto_aead_authsize(tfm); u8 *iv = (u8 ...
CVE-2015-3332
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv4/tcp_output.c
tcp_send_syn_data
static int tcp_send_syn_data(struct sock *sk, struct sk_buff *syn) { struct tcp_sock *tp = tcp_sk(sk); struct tcp_fastopen_request *fo = tp->fastopen_req; int syn_loss = 0, space, err = 0; unsigned long last_syn_loss = 0; struct sk_buff *syn_data; tp->rx_opt.mss_clamp = tp->advmss; tcp_fasto...
static int tcp_send_syn_data(struct sock *sk, struct sk_buff *syn) { struct tcp_sock *tp = tcp_sk(sk); struct tcp_fastopen_request *fo = tp->fastopen_req; int syn_loss = 0, space, err = 0; unsigned long last_syn_loss = 0; struct sk_buff *syn_data; tp->rx_opt.mss_clamp = tp->advmss; tcp_fasto...
static int tcp_send_syn_data(struct sock *sk, struct sk_buff *syn) { struct tcp_sock *tp = tcp_sk(sk); struct tcp_fastopen_request *fo = tp->fastopen_req; int syn_loss = 0, space, err = 0; unsigned long last_syn_loss = 0; struct sk_buff *syn_data; tp->rx_opt.mss_clamp = tp->advmss; tcp_fasto...
static int tcp_send_syn_data(struct sock *sk, struct sk_buff *syn) { struct tcp_sock *tp = tcp_sk(sk); struct tcp_fastopen_request *fo = tp->fastopen_req; int syn_loss = 0, space, err = 0; unsigned long last_syn_loss = 0; struct sk_buff *syn_data; tp->rx_opt.mss_clamp = tp->advmss; tcp_fasto...
static int tcp_send_syn_data(struct sock *sk, struct sk_buff *syn) { struct tcp_sock *tp = tcp_sk(sk); struct tcp_fastopen_request *fo = tp->fastopen_req; int syn_loss = 0, space, err = 0; unsigned long last_syn_loss = 0; tp->rx_opt.mss_clamp = tp->advmss; tcp_fastopen_cache_get(sk, &tp->rx_opt....
static int tcp_send_syn_data(struct sock *sk, struct sk_buff *syn) { struct tcp_sock *tp = tcp_sk(sk); struct tcp_fastopen_request *fo = tp->fastopen_req; int syn_loss = 0, space, err = 0; unsigned long last_syn_loss = 0; tp->rx_opt.mss_clamp = tp->advmss; tcp_fastopen_cache_get(sk, &tp->rx_opt....
static int tcp_send_syn_data(struct sock *sk, struct sk_buff *syn) { struct tcp_sock *tp = tcp_sk(sk); struct tcp_fastopen_request *fo = tp->fastopen_req; int syn_loss = 0, space, err = 0; unsigned long last_syn_loss = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ tp->rx_opt.mss_clamp = tp->a...
static int tcp_send_syn_data(struct sock *sk, struct sk_buff *syn) { struct tcp_sock *tp = tcp_sk(sk); struct tcp_fastopen_request *fo = tp->fastopen_req; int syn_loss = 0, space, err = 0; unsigned long last_syn_loss = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ tp->rx_opt.mss_clamp = tp->a...
static int tcp_send_syn_data(struct sock *sk, struct sk_buff *syn) { struct tcp_sock *tp = tcp_sk(sk); struct tcp_fastopen_request *fo = tp->fastopen_req; int syn_loss = 0, space, err = 0; unsigned long last_syn_loss = 0; tp->rx_opt.mss_clamp = tp->advmss; tcp_fastopen_cache_get(sk, &tp->...
CVE-2015-3636
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv4/ping.c
ping_unhash
void ping_unhash(struct sock *sk) { struct inet_sock *isk = inet_sk(sk); pr_debug("ping_unhash(isk=%p,isk->num=%u)\n", isk, isk->inet_num); if (sk_hashed(sk)) { write_lock_bh(&ping_table.lock); hlist_nulls_del(&sk->sk_nulls_node); sock_put(sk); isk->inet_num = 0; isk-...
void ping_unhash(struct sock *sk) { struct inet_sock *isk = inet_sk(sk); pr_debug("ping_unhash(isk=%p,isk->num=%u)\n", isk, isk->inet_num); if (sk_hashed(sk)) { write_lock_bh(&ping_table.lock); hlist_nulls_del(&sk->sk_nulls_node); sk_nulls_node_init(&sk->sk_nulls_node); sock_...
void ping_unhash(struct sock *sk) { struct inet_sock *isk = inet_sk(sk); pr_debug("ping_unhash(isk=%p,isk->num=%u)\n", isk, isk->inet_num); if (sk_hashed(sk)) { write_lock_bh(&ping_table.lock); hlist_nulls_del(&sk->sk_nulls_node); sock_put(sk); isk->inet_num = 0; isk-...
void ping_unhash(struct sock *sk) { struct inet_sock *isk = inet_sk(sk); pr_debug("ping_unhash(isk=%p,isk->num=%u)\n", isk, isk->inet_num); if (sk_hashed(sk)) { write_lock_bh(&ping_table.lock); hlist_nulls_del(&sk->sk_nulls_node); sk_nulls_node_init(&sk->sk_nulls_node); sock_...
void ping_unhash(struct sock *sk) { struct inet_sock *isk = inet_sk(sk); if (sk_hashed(sk)) { hlist_nulls_del(&sk->sk_nulls_node); sock_put(sk); } }
void ping_unhash(struct sock *sk) { struct inet_sock *isk = inet_sk(sk); if (sk_hashed(sk)) { hlist_nulls_del(&sk->sk_nulls_node); sk_nulls_node_init(&sk->sk_nulls_node); sock_put(sk); } }
void ping_unhash(struct sock *sk) { struct inet_sock *isk = inet_sk(sk); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (sk_hashed(sk)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ hlist_nulls_del(&sk->sk_nulls_node); sock_put(sk); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ...
void ping_unhash(struct sock *sk) { struct inet_sock *isk = inet_sk(sk); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (sk_hashed(sk)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ hlist_nulls_del(&sk->sk_nulls_node); sk_nulls_node_init(&sk->sk_nulls_node); sock_put(sk); ...
void ping_unhash(struct sock *sk) { struct inet_sock *isk = inet_sk(sk); if (sk_hashed(sk)) { hlist_nulls_del(&sk->sk_nulls_node); + sk_nulls_node_init(&sk->sk_nulls_node); sock_put(sk); } }
CVE-2015-4002
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/staging/ozwpan/ozusbsvc1.c
oz_usb_rx
void oz_usb_rx(struct oz_pd *pd, struct oz_elt *elt) { struct oz_usb_hdr *usb_hdr = (struct oz_usb_hdr *)(elt + 1); struct oz_usb_ctx *usb_ctx; spin_lock_bh(&pd->app_lock[OZ_APPID_USB-1]); usb_ctx = (struct oz_usb_ctx *)pd->app_ctx[OZ_APPID_USB-1]; if (usb_ctx) { oz_usb_get(usb_ctx); } ...
void oz_usb_rx(struct oz_pd *pd, struct oz_elt *elt) { struct oz_usb_hdr *usb_hdr = (struct oz_usb_hdr *)(elt + 1); struct oz_usb_ctx *usb_ctx; spin_lock_bh(&pd->app_lock[OZ_APPID_USB-1]); usb_ctx = (struct oz_usb_ctx *)pd->app_ctx[OZ_APPID_USB-1]; if (usb_ctx) { oz_usb_get(usb_ctx); } ...
void oz_usb_rx(struct oz_pd *pd, struct oz_elt *elt) { struct oz_usb_hdr *usb_hdr = (struct oz_usb_hdr *)(elt + 1); struct oz_usb_ctx *usb_ctx; spin_lock_bh(&pd->app_lock[OZ_APPID_USB]); usb_ctx = (struct oz_usb_ctx *)pd->app_ctx[OZ_APPID_USB]; if (usb_ctx) { oz_usb_get(usb_ctx); } s...
void oz_usb_rx(struct oz_pd *pd, struct oz_elt *elt) { struct oz_usb_hdr *usb_hdr = (struct oz_usb_hdr *)(elt + 1); struct oz_usb_ctx *usb_ctx; spin_lock_bh(&pd->app_lock[OZ_APPID_USB]); usb_ctx = (struct oz_usb_ctx *)pd->app_ctx[OZ_APPID_USB]; if (usb_ctx) { oz_usb_get(usb_ctx); } s...
void oz_usb_rx(struct oz_pd *pd, struct oz_elt *elt) { struct oz_usb_hdr *usb_hdr = (struct oz_usb_hdr *)(elt + 1); switch (usb_hdr->type) { case OZ_GET_DESC_RSP: { struct oz_get_desc_rsp *body = (struct oz_get_desc_rsp *)usb_hdr; int data_len = elt->length - sizeof(struct oz_get_desc_rsp) +...
void oz_usb_rx(struct oz_pd *pd, struct oz_elt *elt) { struct oz_usb_hdr *usb_hdr = (struct oz_usb_hdr *)(elt + 1); switch (usb_hdr->type) { case OZ_GET_DESC_RSP: { struct oz_get_desc_rsp *body = (struct oz_get_desc_rsp *)usb_hdr; u16 offs, total_size; u8 data_len; if (elt->l...
void oz_usb_rx(struct oz_pd *pd, struct oz_elt *elt) { struct oz_usb_hdr *usb_hdr = (struct oz_usb_hdr *)(elt + 1); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ switch (usb_hdr->type) { case OZ_GET_DESC_RSP: { struct oz_get_desc_rsp *body = (struct oz_get_desc_rsp *)usb_hdr; int data_le...
void oz_usb_rx(struct oz_pd *pd, struct oz_elt *elt) { struct oz_usb_hdr *usb_hdr = (struct oz_usb_hdr *)(elt + 1); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ switch (usb_hdr->type) { case OZ_GET_DESC_RSP: { struct oz_get_desc_rsp *body = (struct oz_get_desc_rsp *)usb_hdr; u16 offs, t...
void oz_usb_rx(struct oz_pd *pd, struct oz_elt *elt) { struct oz_usb_hdr *usb_hdr = (struct oz_usb_hdr *)(elt + 1); switch (usb_hdr->type) { case OZ_GET_DESC_RSP: { struct oz_get_desc_rsp *body = (struct oz_get_desc_rsp *)usb_hdr; - int data_len = elt->length - sizeof(struct oz_get_desc_...
CVE-2015-4003
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/staging/ozwpan/ozusbsvc1.c
oz_usb_handle_ep_data
static void oz_usb_handle_ep_data(struct oz_usb_ctx *usb_ctx, struct oz_usb_hdr *usb_hdr, int len) { struct oz_data *data_hdr = (struct oz_data *)usb_hdr; switch (data_hdr->format) { case OZ_DATA_F_MULTIPLE_FIXED: { struct oz_multiple_fixed *body = (struct oz_multiple_fixed *)data_hdr; u8 *d...
static void oz_usb_handle_ep_data(struct oz_usb_ctx *usb_ctx, struct oz_usb_hdr *usb_hdr, int len) { struct oz_data *data_hdr = (struct oz_data *)usb_hdr; switch (data_hdr->format) { case OZ_DATA_F_MULTIPLE_FIXED: { struct oz_multiple_fixed *body = (struct oz_multiple_fixed *)data_hdr; u8 *d...
static void oz_usb_handle_ep_data(struct oz_usb_ctx *usb_ctx, struct oz_usb_hdr *usb_hdr, int len) { struct oz_data *data_hdr = (struct oz_data *)usb_hdr; switch (data_hdr->format) { case OZ_DATA_F_MULTIPLE_FIXED: { struct oz_multiple_fixed *body = (struct oz_multiple_fixed *)data_hdr; u8 *d...
static void oz_usb_handle_ep_data(struct oz_usb_ctx *usb_ctx, struct oz_usb_hdr *usb_hdr, int len) { struct oz_data *data_hdr = (struct oz_data *)usb_hdr; switch (data_hdr->format) { case OZ_DATA_F_MULTIPLE_FIXED: { struct oz_multiple_fixed *body = (struct oz_multiple_fixed *)data_hdr; u8 *d...
static void oz_usb_handle_ep_data(struct oz_usb_ctx *usb_ctx, struct oz_usb_hdr *usb_hdr, int len) { struct oz_data *data_hdr = (struct oz_data *)usb_hdr; switch (data_hdr->format) { case OZ_DATA_F_MULTIPLE_FIXED: { struct oz_multiple_fixed *body = (struct oz_multiple_fixed *)data_hdr; u8 *d...
static void oz_usb_handle_ep_data(struct oz_usb_ctx *usb_ctx, struct oz_usb_hdr *usb_hdr, int len) { struct oz_data *data_hdr = (struct oz_data *)usb_hdr; switch (data_hdr->format) { case OZ_DATA_F_MULTIPLE_FIXED: { struct oz_multiple_fixed *body = (struct oz_multiple_fixed *)data_hdr; u8 *d...
static void oz_usb_handle_ep_data(struct oz_usb_ctx *usb_ctx, struct oz_usb_hdr *usb_hdr, int len) { struct oz_data *data_hdr = (struct oz_data *)usb_hdr; switch (data_hdr->format) { case OZ_DATA_F_MULTIPLE_FIXED: { struct oz_multiple_fixed *body = (struct oz_multiple_fixed *)data_hdr; u8 *d...
static void oz_usb_handle_ep_data(struct oz_usb_ctx *usb_ctx, struct oz_usb_hdr *usb_hdr, int len) { struct oz_data *data_hdr = (struct oz_data *)usb_hdr; switch (data_hdr->format) { case OZ_DATA_F_MULTIPLE_FIXED: { struct oz_multiple_fixed *body = (struct oz_multiple_fixed *)data_hdr; u8 *d...
static void oz_usb_handle_ep_data(struct oz_usb_ctx *usb_ctx, struct oz_usb_hdr *usb_hdr, int len) { struct oz_data *data_hdr = (struct oz_data *)usb_hdr; switch (data_hdr->format) { case OZ_DATA_F_MULTIPLE_FIXED: { struct oz_multiple_fixed *body = (struct oz_multiple_fixed *)data_hdr; ...
CVE-2015-4036
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/vhost/scsi.c
tcm_vhost_make_tpg
static struct se_portal_group * tcm_vhost_make_tpg(struct se_wwn *wwn, struct config_group *group, const char *name) { struct tcm_vhost_tport *tport = container_of(wwn, struct tcm_vhost_tport, tport_wwn); struct tcm_vhost_tpg *tpg; unsigned long tpgt; int ret; if (strstr(name, "tpgt_") != name) { ...
static struct se_portal_group * tcm_vhost_make_tpg(struct se_wwn *wwn, struct config_group *group, const char *name) { struct tcm_vhost_tport *tport = container_of(wwn, struct tcm_vhost_tport, tport_wwn); struct tcm_vhost_tpg *tpg; u16 tpgt; int ret; if (strstr(name, "tpgt_") != name) { retu...
static struct se_portal_group * tcm_vhost_make_tpg(struct se_wwn *wwn, struct config_group *group, const char *name) { struct tcm_vhost_tport *tport = container_of(wwn, struct tcm_vhost_tport, tport_wwn); struct tcm_vhost_tpg *tpg; unsigned long tpgt; int ret; if (strstr(name, "tpgt_") != name) { ...
static struct se_portal_group * tcm_vhost_make_tpg(struct se_wwn *wwn, struct config_group *group, const char *name) { struct tcm_vhost_tport *tport = container_of(wwn, struct tcm_vhost_tport, tport_wwn); struct tcm_vhost_tpg *tpg; u16 tpgt; int ret; if (strstr(name, "tpgt_") != name) { retu...
static struct se_portal_group * tcm_vhost_make_tpg(struct se_wwn *wwn, struct config_group *group, const char *name) { struct tcm_vhost_tpg *tpg; unsigned long tpgt; int ret; if (strstr(name, "tpgt_") != name) { return ERR_PTR(-EVAL); } if (kstrtoul(name + 5, 10, &tpgt) || tpgt > UT_MAX)...
static struct se_portal_group * tcm_vhost_make_tpg(struct se_wwn *wwn, struct config_group *group, const char *name) { struct tcm_vhost_tpg *tpg; u16 tpgt; int ret; if (strstr(name, "tpgt_") != name) { return ERR_PTR(-EVAL); } if (kstrtou16(name + 5, 10, &tpgt) || tpgt >= VHOST_SCSI_MAX_...
static struct se_portal_group * tcm_vhost_make_tpg(struct se_wwn *wwn, struct config_group *group, const char *name) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct tcm_vhost_tpg *tpg; unsigned long tpgt; int ret; if (strstr(name, "tpgt_") != name) { return ERR_PTR(-EVAL); } i...
static struct se_portal_group * tcm_vhost_make_tpg(struct se_wwn *wwn, struct config_group *group, const char *name) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct tcm_vhost_tpg *tpg; u16 tpgt; int ret; if (strstr(name, "tpgt_") != name) { return ERR_PTR(-EVAL); } if (kstrtou...
static struct se_portal_group * tcm_vhost_make_tpg(struct se_wwn *wwn, struct config_group *group, const char *name) { struct tcm_vhost_tpg *tpg; - unsigned long tpgt; + u16 tpgt; int ret; if (strstr(name, "tpgt_") != name) { return ERR_PTR(-EVAL); } - if (kstrtoul(name + 5, 10, &...
CVE-2015-4036
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/vhost/scsi.c
tcm_vhost_send_evt
static void tcm_vhost_send_evt(struct vhost_scsi *vs, struct tcm_vhost_tpg *tpg, struct se_lun *lun, u32 event, u32 reason) { struct tcm_vhost_evt *evt; evt = tcm_vhost_allocate_evt(vs, event, reason); if (!evt) { return; } if (tpg && lun) { evt->event.lun[0] = 0x01; evt->eve...
static void tcm_vhost_send_evt(struct vhost_scsi *vs, struct tcm_vhost_tpg *tpg, struct se_lun *lun, u32 event, u32 reason) { struct tcm_vhost_evt *evt; evt = tcm_vhost_allocate_evt(vs, event, reason); if (!evt) { return; } if (tpg && lun) { evt->event.lun[0] = 0x01; evt->eve...
static void tcm_vhost_send_evt(struct vhost_scsi *vs, struct tcm_vhost_tpg *tpg, struct se_lun *lun, u32 event, u32 reason) { struct tcm_vhost_evt *evt; evt = tcm_vhost_allocate_evt(vs, event, reason); if (!evt) { return; } if (tpg && lun) { evt->event.lun[0] = 0x01; evt->eve...
static void tcm_vhost_send_evt(struct vhost_scsi *vs, struct tcm_vhost_tpg *tpg, struct se_lun *lun, u32 event, u32 reason) { struct tcm_vhost_evt *evt; evt = tcm_vhost_allocate_evt(vs, event, reason); if (!evt) { return; } if (tpg && lun) { evt->event.lun[0] = 0x01; evt->eve...
static void tcm_vhost_send_evt(struct vhost_scsi *vs, struct tcm_vhost_tpg *tpg, struct se_lun *lun, u32 event, u32 reason) { if (tpg && lun) { evt->event.lun[0] = 0x01; evt->event.lun[1] = tpg->tport_tpgt & 0xFF; } }
static void tcm_vhost_send_evt(struct vhost_scsi *vs, struct tcm_vhost_tpg *tpg, struct se_lun *lun, u32 event, u32 reason) { if (tpg && lun) { evt->event.lun[0] = 0x01; evt->event.lun[1] = tpg->tport_tpgt; } }
static void tcm_vhost_send_evt(struct vhost_scsi *vs, struct tcm_vhost_tpg *tpg, struct se_lun *lun, u32 event, u32 reason) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (tpg && lun) { evt->event.lun[0] = 0x01; evt->event.lun[1] = tpg->tport_tpgt & 0xFF; /* PLACEHOLDER: DO NOT DELETE TH...
static void tcm_vhost_send_evt(struct vhost_scsi *vs, struct tcm_vhost_tpg *tpg, struct se_lun *lun, u32 event, u32 reason) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (tpg && lun) { evt->event.lun[0] = 0x01; evt->event.lun[1] = tpg->tport_tpgt; /* PLACEHOLDER: DO NOT DELETE THIS COMM...
static void tcm_vhost_send_evt(struct vhost_scsi *vs, struct tcm_vhost_tpg *tpg, struct se_lun *lun, u32 event, u32 reason) { if (tpg && lun) { evt->event.lun[0] = 0x01; - evt->event.lun[1] = tpg->tport_tpgt & 0xFF; + evt->event.lun[1] = tpg->tport_tpgt; } }
CVE-2015-4177
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/namespace.c
collect_mounts
struct vfsmount *collect_mounts(struct path *path) { struct mount *tree; namespace_lock(); tree = copy_tree(real_mount(path->mnt), path->dentry, CL_COPY_ALL | CL_PRIVATE); namespace_unlock(); if (IS_ERR(tree)) { return ERR_CAST(tree); } return &tree->mnt; }
struct vfsmount *collect_mounts(struct path *path) { struct mount *tree; namespace_lock(); if (!check_mnt(real_mount(path->mnt))) { tree = ERR_PTR(-EVAL); } else { tree = copy_tree(real_mount(path->mnt), path->dentry, CL_COPY_ALL | CL_PRIVATE); } namespace_unlock(); if (IS_ER...
struct vfsmount *collect_mounts(struct path *path) { struct mount *tree; namespace_lock(); tree = copy_tree(real_mount(path->mnt), path->dentry, CL_COPY_ALL | CL_PRIVATE); namespace_unlock(); if (IS_ERR(tree)) { return ERR_CAST(tree); } return &tree->mnt; }
struct vfsmount *collect_mounts(struct path *path) { struct mount *tree; namespace_lock(); if (!check_mnt(real_mount(path->mnt))) { tree = ERR_PTR(-EVAL); } else { tree = copy_tree(real_mount(path->mnt), path->dentry, CL_COPY_ALL | CL_PRIVATE); } namespace_unlock(); if (IS_ER...
struct vfsmount *collect_mounts(struct path *path) { namespace_lock(); tree = copy_tree(real_mount(path->mnt), path->dentry, CL_COPY_ALL | CL_PRIVATE); namespace_unlock(); if (IS_ERR(tree)) { return ERR_CAST(tree); } }
struct vfsmount *collect_mounts(struct path *path) { namespace_lock(); if (!check_mnt(real_mount(path->mnt))) { tree = ERR_PTR(-EVAL); } else { tree = copy_tree(real_mount(path->mnt), path->dentry, CL_COPY_ALL | CL_PRIVATE); } namespace_unlock(); if (IS_ERR(tree)) { retur...
struct vfsmount *collect_mounts(struct path *path) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ namespace_lock(); tree = copy_tree(real_mount(path->mnt), path->dentry, CL_COPY_ALL | CL_PRIVATE); namespace_unlock(); if (IS_ERR(tree)) { return ERR_CAST(tree); } /* PLACEHOLDER: DO NO...
struct vfsmount *collect_mounts(struct path *path) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ namespace_lock(); if (!check_mnt(real_mount(path->mnt))) { tree = ERR_PTR(-EVAL); } else { tree = copy_tree(real_mount(path->mnt), path->dentry, CL_COPY_ALL | CL_PRIVATE); } namespa...
struct vfsmount *collect_mounts(struct path *path) { namespace_lock(); - tree = copy_tree(real_mount(path->mnt), path->dentry, CL_COPY_ALL | CL_PRIVATE); + if (!check_mnt(real_mount(path->mnt))) { + tree = ERR_PTR(-EVAL); + } else { + tree = copy_tree(real_mount(path->mnt), path->dentry, CL...
CVE-2015-4692
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
arch/x86/kvm/lapic.h
kvm_apic_has_events
static inline bool kvm_apic_has_events(struct kvm_vcpu *vcpu) { return vcpu->arch.apic->pending_events; }
static inline bool kvm_apic_has_events(struct kvm_vcpu *vcpu) { return kvm_vcpu_has_lapic(vcpu) && vcpu->arch.apic->pending_events; }
static inline bool kvm_apic_has_events(struct kvm_vcpu *vcpu) { return vcpu->arch.apic->pending_events; }
static inline bool kvm_apic_has_events(struct kvm_vcpu *vcpu) { return kvm_vcpu_has_lapic(vcpu) && vcpu->arch.apic->pending_events; }
static inline bool kvm_apic_has_events(struct kvm_vcpu *vcpu) { return vcpu->arch.apic->pending_events; }
static inline bool kvm_apic_has_events(struct kvm_vcpu *vcpu) { return kvm_vcpu_has_lapic(vcpu) && vcpu->arch.apic->pending_events; }
static inline bool kvm_apic_has_events(struct kvm_vcpu *vcpu) { return vcpu->arch.apic->pending_events; }
static inline bool kvm_apic_has_events(struct kvm_vcpu *vcpu) { return kvm_vcpu_has_lapic(vcpu) && vcpu->arch.apic->pending_events; }
static inline bool kvm_apic_has_events(struct kvm_vcpu *vcpu) { - return vcpu->arch.apic->pending_events; + return kvm_vcpu_has_lapic(vcpu) && vcpu->arch.apic->pending_events; }
CVE-2015-5156
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/net/virtio_net.c
virtnet_probe
static int virtnet_probe(struct virtio_device *vdev) { int i, err; struct net_device *dev; struct virtnet_info *vi; u16 max_queue_pairs; err = virtio_cread_feature(vdev, VIRTIO_NET_F_MQ, struct virtio_net_config, max_virtqueue_pairs, &max_queue_pairs); if (err || max_queue_pairs < VIRTIO_NET_CTR...
static int virtnet_probe(struct virtio_device *vdev) { int i, err; struct net_device *dev; struct virtnet_info *vi; u16 max_queue_pairs; err = virtio_cread_feature(vdev, VIRTIO_NET_F_MQ, struct virtio_net_config, max_virtqueue_pairs, &max_queue_pairs); if (err || max_queue_pairs < VIRTIO_NET_CTR...
static int virtnet_probe(struct virtio_device *vdev) { int i, err; struct net_device *dev; struct virtnet_info *vi; u16 max_queue_pairs; if (!vdev->config->get) { dev_err(&vdev->dev, "%s failure: config access disabled\n", __func__); return -EVAL; } if (!virtnet_validate_feat...
static int virtnet_probe(struct virtio_device *vdev) { int i, err; struct net_device *dev; struct virtnet_info *vi; u16 max_queue_pairs; if (!vdev->config->get) { dev_err(&vdev->dev, "%s failure: config access disabled\n", __func__); return -EVAL; } if (!virtnet_validate_feat...
static int virtnet_probe(struct virtio_device *vdev) { if (err || max_queue_pairs < VIRTIO_NET_CTRL_MQ_VQ_PAIRS_M || max_queue_pairs > VIRTIO_NET_CTRL_MQ_VQ_PAIRS_MAX || !virtio_has_feature(vdev, VIRTIO_NET_F_CTRL_VQ)) { max_queue_pairs = 1; } dev = alloc_etherdev_mq(sizeof(struct virtnet_info), max...
static int virtnet_probe(struct virtio_device *vdev) { if (err || max_queue_pairs < VIRTIO_NET_CTRL_MQ_VQ_PAIRS_M || max_queue_pairs > VIRTIO_NET_CTRL_MQ_VQ_PAIRS_MAX || !virtio_has_feature(vdev, VIRTIO_NET_F_CTRL_VQ)) { max_queue_pairs = 1; } dev = alloc_etherdev_mq(sizeof(struct virtnet_info), max...
static int virtnet_probe(struct virtio_device *vdev) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (err || max_queue_pairs < VIRTIO_NET_CTRL_MQ_VQ_PAIRS_M || max_queue_pairs > VIRTIO_NET_CTRL_MQ_VQ_PAIRS_MAX || !virtio_has_feature(vdev, VIRTIO_NET_F_CTRL_VQ)) { max_queue_pairs = 1; } dev = ...
static int virtnet_probe(struct virtio_device *vdev) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (err || max_queue_pairs < VIRTIO_NET_CTRL_MQ_VQ_PAIRS_M || max_queue_pairs > VIRTIO_NET_CTRL_MQ_VQ_PAIRS_MAX || !virtio_has_feature(vdev, VIRTIO_NET_F_CTRL_VQ)) { max_queue_pairs = 1; } dev = ...
static int virtnet_probe(struct virtio_device *vdev) { if (err || max_queue_pairs < VIRTIO_NET_CTRL_MQ_VQ_PAIRS_M || max_queue_pairs > VIRTIO_NET_CTRL_MQ_VQ_PAIRS_MAX || !virtio_has_feature(vdev, VIRTIO_NET_F_CTRL_VQ)) { max_queue_pairs = 1; } dev = alloc_etherdev_mq(sizeof(struct virtnet_info)...
CVE-2015-5283
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/sctp/protocol.c
sctp_init
static int sctp_init(void) { int i; int status = -EVAL; unsigned long goal; unsigned long limit; int max_share; int order; BUILD_BUG_ON(sizeof(struct sctp_ulpevent) > sizeof(((struct sk_buff *) 0)->cb)); status = -ENOBUFS; sctp_bucket_cachep = kmem_cache_create("sctp_bind_bucket", si...
static int sctp_init(void) { int i; int status = -EVAL; unsigned long goal; unsigned long limit; int max_share; int order; BUILD_BUG_ON(sizeof(struct sctp_ulpevent) > sizeof(((struct sk_buff *) 0)->cb)); status = -ENOBUFS; sctp_bucket_cachep = kmem_cache_create("sctp_bind_bucket", si...
static int sctp_init(void) { int i; int status = -EVAL; unsigned long goal; unsigned long limit; int max_share; int order; BUILD_BUG_ON(sizeof(struct sctp_ulpevent) > sizeof(((struct sk_buff *) 0)->cb)); status = -ENOBUFS; sctp_bucket_cachep = kmem_cache_create("sctp_bind_bucket", si...
static int sctp_init(void) { int i; int status = -EVAL; unsigned long goal; unsigned long limit; int max_share; int order; BUILD_BUG_ON(sizeof(struct sctp_ulpevent) > sizeof(((struct sk_buff *) 0)->cb)); status = -ENOBUFS; sctp_bucket_cachep = kmem_cache_create("sctp_bind_bucket", si...
static int sctp_init(void) { sctp_v6_pf_init(); status = sctp_v4_protosw_init(); if (status) { goto err_protosw_init; } if (status) { goto err_v6_protosw_init; } status = register_pernet_subsys(&sctp_net_ops); if (status) { goto err_register_pernet_subsys; } ...
static int sctp_init(void) { sctp_v6_pf_init(); status = register_pernet_subsys(&sctp_defaults_ops); if (status) { goto err_register_defaults; } status = sctp_v4_protosw_init(); if (status) { goto err_protosw_init; } if (status) { goto err_v6_protosw_init; } ...
static int sctp_init(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ sctp_v6_pf_init(); status = sctp_v4_protosw_init(); if (status) { goto err_protosw_init; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (status) { goto err_v6_protosw_init; } status = regis...
static int sctp_init(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ sctp_v6_pf_init(); status = register_pernet_subsys(&sctp_defaults_ops); if (status) { goto err_register_defaults; } status = sctp_v4_protosw_init(); if (status) { goto err_protosw_init; } /* PL...
static int sctp_init(void) { sctp_v6_pf_init(); + status = register_pernet_subsys(&sctp_defaults_ops); + if (status) { + goto err_register_defaults; + } status = sctp_v4_protosw_init(); if (status) { goto err_protosw_init; } if (status) { goto err_v6_protosw_i...
CVE-2015-5307
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
arch/x86/kvm/svm.c
init_vmcb
static void init_vmcb(struct vcpu_svm *svm) { struct vmcb_control_area *control = &svm->vmcb->control; struct vmcb_save_area *save = &svm->vmcb->save; svm->vcpu.fpu_active = 1; svm->vcpu.arch.hflags = 0; set_cr_intercept(svm, TERCEPT_CR0_READ); set_cr_intercept(svm, TERCEPT_CR3_READ); set_cr...
static void init_vmcb(struct vcpu_svm *svm) { struct vmcb_control_area *control = &svm->vmcb->control; struct vmcb_save_area *save = &svm->vmcb->save; svm->vcpu.fpu_active = 1; svm->vcpu.arch.hflags = 0; set_cr_intercept(svm, TERCEPT_CR0_READ); set_cr_intercept(svm, TERCEPT_CR3_READ); set_cr...
static void init_vmcb(struct vcpu_svm *svm) { struct vmcb_control_area *control = &svm->vmcb->control; struct vmcb_save_area *save = &svm->vmcb->save; svm->vcpu.fpu_active = 1; svm->vcpu.arch.hflags = 0; set_cr_intercept(svm, TERCEPT_CR0_READ); set_cr_intercept(svm, TERCEPT_CR3_READ); set_cr...
static void init_vmcb(struct vcpu_svm *svm) { struct vmcb_control_area *control = &svm->vmcb->control; struct vmcb_save_area *save = &svm->vmcb->save; svm->vcpu.fpu_active = 1; svm->vcpu.arch.hflags = 0; set_cr_intercept(svm, TERCEPT_CR0_READ); set_cr_intercept(svm, TERCEPT_CR3_READ); set_cr...
static void init_vmcb(struct vcpu_svm *svm) { set_cr_intercept(svm, TERCEPT_CR0_READ); set_cr_intercept(svm, TERCEPT_CR3_READ); set_cr_intercept(svm, TERCEPT_CR4_READ); set_cr_intercept(svm, TERCEPT_CR0_WRITE); set_cr_intercept(svm, TERCEPT_CR3_WRITE); set_cr_intercept(svm, TERCEPT_CR4_WRITE); ...
static void init_vmcb(struct vcpu_svm *svm) { set_cr_intercept(svm, TERCEPT_CR0_READ); set_cr_intercept(svm, TERCEPT_CR3_READ); set_cr_intercept(svm, TERCEPT_CR4_READ); set_cr_intercept(svm, TERCEPT_CR0_WRITE); set_cr_intercept(svm, TERCEPT_CR3_WRITE); set_cr_intercept(svm, TERCEPT_CR4_WRITE); ...
static void init_vmcb(struct vcpu_svm *svm) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ set_cr_intercept(svm, TERCEPT_CR0_READ); set_cr_intercept(svm, TERCEPT_CR3_READ); set_cr_intercept(svm, TERCEPT_CR4_READ); set_cr_intercept(svm, TERCEPT_CR0_WRITE); set_cr_intercept(svm, TERCEPT_CR3_WRITE...
static void init_vmcb(struct vcpu_svm *svm) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ set_cr_intercept(svm, TERCEPT_CR0_READ); set_cr_intercept(svm, TERCEPT_CR3_READ); set_cr_intercept(svm, TERCEPT_CR4_READ); set_cr_intercept(svm, TERCEPT_CR0_WRITE); set_cr_intercept(svm, TERCEPT_CR3_WRITE...
static void init_vmcb(struct vcpu_svm *svm) { set_cr_intercept(svm, TERCEPT_CR0_READ); set_cr_intercept(svm, TERCEPT_CR3_READ); set_cr_intercept(svm, TERCEPT_CR4_READ); set_cr_intercept(svm, TERCEPT_CR0_WRITE); set_cr_intercept(svm, TERCEPT_CR3_WRITE); set_cr_intercept(svm, TERCEPT_CR4_WR...
CVE-2015-5307
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
arch/x86/kvm/vmx.c
handle_exception
static int handle_exception(struct kvm_vcpu *vcpu) { struct vcpu_vmx *vmx = to_vmx(vcpu); struct kvm_run *kvm_run = vcpu->run; u32 intr_info, ex_no, error_code; unsigned long cr2, rip, dr6; u32 vect_info; enum emulation_result er; vect_info = vmx->idt_vectoring_info; intr_info = vmx->exi...
static int handle_exception(struct kvm_vcpu *vcpu) { struct vcpu_vmx *vmx = to_vmx(vcpu); struct kvm_run *kvm_run = vcpu->run; u32 intr_info, ex_no, error_code; unsigned long cr2, rip, dr6; u32 vect_info; enum emulation_result er; vect_info = vmx->idt_vectoring_info; intr_info = vmx->exi...
static int handle_exception(struct kvm_vcpu *vcpu) { struct vcpu_vmx *vmx = to_vmx(vcpu); struct kvm_run *kvm_run = vcpu->run; u32 intr_info, ex_no, error_code; unsigned long cr2, rip, dr6; u32 vect_info; enum emulation_result er; vect_info = vmx->idt_vectoring_info; intr_info = vmx->exi...
static int handle_exception(struct kvm_vcpu *vcpu) { struct vcpu_vmx *vmx = to_vmx(vcpu); struct kvm_run *kvm_run = vcpu->run; u32 intr_info, ex_no, error_code; unsigned long cr2, rip, dr6; u32 vect_info; enum emulation_result er; vect_info = vmx->idt_vectoring_info; intr_info = vmx->exi...
static int handle_exception(struct kvm_vcpu *vcpu) { struct vcpu_vmx *vmx = to_vmx(vcpu); vect_info = vmx->idt_vectoring_info; intr_info = vmx->exit_intr_info; if (is_machine_check(intr_info)) { return handle_machine_check(vcpu); } if ((vect_info & VECTORG_FO_VALID_MASK) && !is_page_faul...
static int handle_exception(struct kvm_vcpu *vcpu) { struct vcpu_vmx *vmx = to_vmx(vcpu); vect_info = vmx->idt_vectoring_info; intr_info = vmx->exit_intr_info; if (is_machine_check(intr_info)) { return handle_machine_check(vcpu); } if ((vect_info & VECTORG_FO_VALID_MASK) && !is_page_faul...
static int handle_exception(struct kvm_vcpu *vcpu) { struct vcpu_vmx *vmx = to_vmx(vcpu); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ vect_info = vmx->idt_vectoring_info; intr_info = vmx->exit_intr_info; if (is_machine_check(intr_info)) { return handle_machine_check(vcpu); } if ((i...
static int handle_exception(struct kvm_vcpu *vcpu) { struct vcpu_vmx *vmx = to_vmx(vcpu); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ vect_info = vmx->idt_vectoring_info; intr_info = vmx->exit_intr_info; if (is_machine_check(intr_info)) { return handle_machine_check(vcpu); } if ((i...
static int handle_exception(struct kvm_vcpu *vcpu) { struct vcpu_vmx *vmx = to_vmx(vcpu); vect_info = vmx->idt_vectoring_info; intr_info = vmx->exit_intr_info; if (is_machine_check(intr_info)) { return handle_machine_check(vcpu); } if ((vect_info & VECTORG_FO_VALID_MASK) && !is_p...
CVE-2015-5307
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
arch/x86/kvm/vmx.c
update_exception_bitmap
static void update_exception_bitmap(struct kvm_vcpu *vcpu) { u32 eb; eb = (1u << PF_VECTOR) | (1u << UD_VECTOR) | (1u << MC_VECTOR) | (1u << NM_VECTOR) | (1u << DB_VECTOR); if ((vcpu->guest_debug & (KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_USE_SW_BP)) == (KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_USE_SW_BP)) { e...
static void update_exception_bitmap(struct kvm_vcpu *vcpu) { u32 eb; eb = (1u << PF_VECTOR) | (1u << UD_VECTOR) | (1u << MC_VECTOR) | (1u << NM_VECTOR) | (1u << DB_VECTOR) | (1u << AC_VECTOR); if ((vcpu->guest_debug & (KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_USE_SW_BP)) == (KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_USE...
static void update_exception_bitmap(struct kvm_vcpu *vcpu) { u32 eb; eb = (1u << PF_VECTOR) | (1u << UD_VECTOR) | (1u << MC_VECTOR) | (1u << NM_VECTOR) | (1u << DB_VECTOR); if ((vcpu->guest_debug & (KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_USE_SW_BP)) == (KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_USE_SW_BP)) { e...
static void update_exception_bitmap(struct kvm_vcpu *vcpu) { u32 eb; eb = (1u << PF_VECTOR) | (1u << UD_VECTOR) | (1u << MC_VECTOR) | (1u << NM_VECTOR) | (1u << DB_VECTOR) | (1u << AC_VECTOR); if ((vcpu->guest_debug & (KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_USE_SW_BP)) == (KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_USE...
static void update_exception_bitmap(struct kvm_vcpu *vcpu) { u32 eb; eb = (1u << PF_VECTOR) | (1u << UD_VECTOR) | (1u << MC_VECTOR) | (1u << NM_VECTOR) | (1u << DB_VECTOR); if ((vcpu->guest_debug & (KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_USE_SW_BP)) == (KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_USE_SW_BP)) { e...
static void update_exception_bitmap(struct kvm_vcpu *vcpu) { u32 eb; eb = (1u << PF_VECTOR) | (1u << UD_VECTOR) | (1u << MC_VECTOR) | (1u << NM_VECTOR) | (1u << DB_VECTOR) | (1u << AC_VECTOR); if ((vcpu->guest_debug & (KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_USE_SW_BP)) == (KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_USE...
static void update_exception_bitmap(struct kvm_vcpu *vcpu) { u32 eb; eb = (1u << PF_VECTOR) | (1u << UD_VECTOR) | (1u << MC_VECTOR) | (1u << NM_VECTOR) | (1u << DB_VECTOR); if ((vcpu->guest_debug & (KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_USE_SW_BP)) == (KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_USE_SW_BP)) { e...
static void update_exception_bitmap(struct kvm_vcpu *vcpu) { u32 eb; eb = (1u << PF_VECTOR) | (1u << UD_VECTOR) | (1u << MC_VECTOR) | (1u << NM_VECTOR) | (1u << DB_VECTOR) | (1u << AC_VECTOR); if ((vcpu->guest_debug & (KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_USE_SW_BP)) == (KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_USE...
static void update_exception_bitmap(struct kvm_vcpu *vcpu) { u32 eb; - eb = (1u << PF_VECTOR) | (1u << UD_VECTOR) | (1u << MC_VECTOR) | (1u << NM_VECTOR) | (1u << DB_VECTOR); + eb = (1u << PF_VECTOR) | (1u << UD_VECTOR) | (1u << MC_VECTOR) | (1u << NM_VECTOR) | (1u << DB_VECTOR) | (1u << AC_VECTOR); if...
CVE-2015-5364
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv4/udp.c
udp_recvmsg
int udp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct inet_sock *inet = inet_sk(sk); struct sockaddr_in *sin = (struct sockaddr_in *)msg->msg_name; struct sk_buff *skb; unsigned int ulen, copied; int peeked, off = 0; ...
int udp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct inet_sock *inet = inet_sk(sk); struct sockaddr_in *sin = (struct sockaddr_in *)msg->msg_name; struct sk_buff *skb; unsigned int ulen, copied; int peeked, off = 0; ...
int udp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct inet_sock *inet = inet_sk(sk); struct sockaddr_in *sin = (struct sockaddr_in *)msg->msg_name; struct sk_buff *skb; unsigned int ulen, copied; int peeked; int err; ...
int udp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct inet_sock *inet = inet_sk(sk); struct sockaddr_in *sin = (struct sockaddr_in *)msg->msg_name; struct sk_buff *skb; unsigned int ulen, copied; int peeked; int err; ...
int udp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { unlock_sock_fast(sk, slow); if (noblock) { return -EAGA; } msg->msg_flags &= ~MSG_TRUNC; }
int udp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { unlock_sock_fast(sk, slow); cond_resched(); msg->msg_flags &= ~MSG_TRUNC; }
int udp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ unlock_sock_fast(sk, slow); if (noblock) { return -EAGA; } msg->msg_flags &= ~MSG_TRUNC; /* PLACEHOLDER: DO NOT DELE...
int udp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ unlock_sock_fast(sk, slow); cond_resched(); msg->msg_flags &= ~MSG_TRUNC; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
int udp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { unlock_sock_fast(sk, slow); - if (noblock) { - return -EAGA; - } + cond_resched(); msg->msg_flags &= ~MSG_TRUNC; }
CVE-2015-5364
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv6/udp.c
udpv6_recvmsg
int udpv6_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct ipv6_pinfo *np = inet6_sk(sk); struct inet_sock *inet = inet_sk(sk); struct sk_buff *skb; unsigned int ulen, copied; int peeked, off = 0; int err; int is_udp...
int udpv6_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct ipv6_pinfo *np = inet6_sk(sk); struct inet_sock *inet = inet_sk(sk); struct sk_buff *skb; unsigned int ulen, copied; int peeked, off = 0; int err; int is_udp...
int udpv6_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct ipv6_pinfo *np = inet6_sk(sk); struct inet_sock *inet = inet_sk(sk); struct sk_buff *skb; unsigned int ulen, copied; int peeked; int err; int is_udplite = IS...
int udpv6_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct ipv6_pinfo *np = inet6_sk(sk); struct inet_sock *inet = inet_sk(sk); struct sk_buff *skb; unsigned int ulen, copied; int peeked; int err; int is_udplite = IS...
int udpv6_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { unlock_sock_fast(sk, slow); if (noblock) { return -EAGA; } msg->msg_flags &= ~MSG_TRUNC; }
int udpv6_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { unlock_sock_fast(sk, slow); cond_resched(); msg->msg_flags &= ~MSG_TRUNC; }
int udpv6_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ unlock_sock_fast(sk, slow); if (noblock) { return -EAGA; } msg->msg_flags &= ~MSG_TRUNC; /* PLACEHOLDER: DO NOT DE...
int udpv6_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ unlock_sock_fast(sk, slow); cond_resched(); msg->msg_flags &= ~MSG_TRUNC; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
int udpv6_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { unlock_sock_fast(sk, slow); - if (noblock) { - return -EAGA; - } + cond_resched(); msg->msg_flags &= ~MSG_TRUNC; }
CVE-2015-5366
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv4/udp.c
udp_recvmsg
int udp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct inet_sock *inet = inet_sk(sk); struct sockaddr_in *sin = (struct sockaddr_in *)msg->msg_name; struct sk_buff *skb; unsigned int ulen, copied; int peeked, off = 0; ...
int udp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct inet_sock *inet = inet_sk(sk); struct sockaddr_in *sin = (struct sockaddr_in *)msg->msg_name; struct sk_buff *skb; unsigned int ulen, copied; int peeked, off = 0; ...
int udp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct inet_sock *inet = inet_sk(sk); struct sockaddr_in *sin = (struct sockaddr_in *)msg->msg_name; struct sk_buff *skb; unsigned int ulen, copied; int peeked; int err; ...
int udp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct inet_sock *inet = inet_sk(sk); struct sockaddr_in *sin = (struct sockaddr_in *)msg->msg_name; struct sk_buff *skb; unsigned int ulen, copied; int peeked; int err; ...
int udp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { unlock_sock_fast(sk, slow); if (noblock) { return -EAGA; } msg->msg_flags &= ~MSG_TRUNC; }
int udp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { unlock_sock_fast(sk, slow); cond_resched(); msg->msg_flags &= ~MSG_TRUNC; }
int udp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ unlock_sock_fast(sk, slow); if (noblock) { return -EAGA; } msg->msg_flags &= ~MSG_TRUNC; /* PLACEHOLDER: DO NOT DELE...
int udp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ unlock_sock_fast(sk, slow); cond_resched(); msg->msg_flags &= ~MSG_TRUNC; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
int udp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { unlock_sock_fast(sk, slow); - if (noblock) { - return -EAGA; - } + cond_resched(); msg->msg_flags &= ~MSG_TRUNC; }
CVE-2015-5366
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv6/udp.c
udpv6_recvmsg
int udpv6_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct ipv6_pinfo *np = inet6_sk(sk); struct inet_sock *inet = inet_sk(sk); struct sk_buff *skb; unsigned int ulen, copied; int peeked, off = 0; int err; int is_udp...
int udpv6_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct ipv6_pinfo *np = inet6_sk(sk); struct inet_sock *inet = inet_sk(sk); struct sk_buff *skb; unsigned int ulen, copied; int peeked, off = 0; int err; int is_udp...
int udpv6_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct ipv6_pinfo *np = inet6_sk(sk); struct inet_sock *inet = inet_sk(sk); struct sk_buff *skb; unsigned int ulen, copied; int peeked; int err; int is_udplite = IS...
int udpv6_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct ipv6_pinfo *np = inet6_sk(sk); struct inet_sock *inet = inet_sk(sk); struct sk_buff *skb; unsigned int ulen, copied; int peeked; int err; int is_udplite = IS...
int udpv6_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { unlock_sock_fast(sk, slow); if (noblock) { return -EAGA; } msg->msg_flags &= ~MSG_TRUNC; }
int udpv6_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { unlock_sock_fast(sk, slow); cond_resched(); msg->msg_flags &= ~MSG_TRUNC; }
int udpv6_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ unlock_sock_fast(sk, slow); if (noblock) { return -EAGA; } msg->msg_flags &= ~MSG_TRUNC; /* PLACEHOLDER: DO NOT DE...
int udpv6_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ unlock_sock_fast(sk, slow); cond_resched(); msg->msg_flags &= ~MSG_TRUNC; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
int udpv6_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { unlock_sock_fast(sk, slow); - if (noblock) { - return -EAGA; - } + cond_resched(); msg->msg_flags &= ~MSG_TRUNC; }
CVE-2015-5706
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/namei.c
path_openat
static struct file *path_openat(int dfd, struct filename *pathname, struct nameidata *nd, const struct open_flags *op, int flags) { struct file *base = NULL; struct file *file; struct path path; int opened = 0; int error; file = get_empty_filp(); if (IS_ERR(file)) { return file; ...
static struct file *path_openat(int dfd, struct filename *pathname, struct nameidata *nd, const struct open_flags *op, int flags) { struct file *base = NULL; struct file *file; struct path path; int opened = 0; int error; file = get_empty_filp(); if (IS_ERR(file)) { return file; ...
static struct file *path_openat(int dfd, struct filename *pathname, struct nameidata *nd, const struct open_flags *op, int flags) { struct file *base = NULL; struct file *file; struct path path; int opened = 0; int error; file = get_empty_filp(); if (IS_ERR(file)) { return file; ...
static struct file *path_openat(int dfd, struct filename *pathname, struct nameidata *nd, const struct open_flags *op, int flags) { struct file *base = NULL; struct file *file; struct path path; int opened = 0; int error; file = get_empty_filp(); if (IS_ERR(file)) { return file; ...
static struct file *path_openat(int dfd, struct filename *pathname, struct nameidata *nd, const struct open_flags *op, int flags) { if (unlikely(file->f_flags & __O_TMPFILE)) { error = do_tmpfile(dfd, pathname, nd, flags, op, file, &opened); goto out; } out: if (nd->root.mnt && !(nd->flags &...
static struct file *path_openat(int dfd, struct filename *pathname, struct nameidata *nd, const struct open_flags *op, int flags) { if (unlikely(file->f_flags & __O_TMPFILE)) { error = do_tmpfile(dfd, pathname, nd, flags, op, file, &opened); goto out2; } out: if (nd->root.mnt && !(nd->flags ...
static struct file *path_openat(int dfd, struct filename *pathname, struct nameidata *nd, const struct open_flags *op, int flags) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (unlikely(file->f_flags & __O_TMPFILE)) { error = do_tmpfile(dfd, pathname, nd, flags, op, file, &opened); goto out...
static struct file *path_openat(int dfd, struct filename *pathname, struct nameidata *nd, const struct open_flags *op, int flags) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (unlikely(file->f_flags & __O_TMPFILE)) { error = do_tmpfile(dfd, pathname, nd, flags, op, file, &opened); goto out...
static struct file *path_openat(int dfd, struct filename *pathname, struct nameidata *nd, const struct open_flags *op, int flags) { if (unlikely(file->f_flags & __O_TMPFILE)) { error = do_tmpfile(dfd, pathname, nd, flags, op, file, &opened); - goto out; + goto out2; } out: if (nd...
CVE-2015-5707
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/scsi/sg.c
sg_start_req
static int sg_start_req(Sg_request *srp, unsigned char *cmd) { int res; struct request *rq; Sg_fd *sfp = srp->parentfp; sg_io_hdr_t *hp = &srp->header; int dxfer_len = (int) hp->dxfer_len; int dxfer_dir = hp->dxfer_direction; unsigned int iov_count = hp->iovec_count; Sg_scatter_hold *req...
static int sg_start_req(Sg_request *srp, unsigned char *cmd) { int res; struct request *rq; Sg_fd *sfp = srp->parentfp; sg_io_hdr_t *hp = &srp->header; int dxfer_len = (int) hp->dxfer_len; int dxfer_dir = hp->dxfer_direction; unsigned int iov_count = hp->iovec_count; Sg_scatter_hold *req...
static int sg_start_req(Sg_request *srp, unsigned char *cmd) { int res; struct request *rq; Sg_fd *sfp = srp->parentfp; sg_io_hdr_t *hp = &srp->header; int dxfer_len = (int) hp->dxfer_len; int dxfer_dir = hp->dxfer_direction; unsigned int iov_count = hp->iovec_count; Sg_scatter_hold *req...
static int sg_start_req(Sg_request *srp, unsigned char *cmd) { int res; struct request *rq; Sg_fd *sfp = srp->parentfp; sg_io_hdr_t *hp = &srp->header; int dxfer_len = (int) hp->dxfer_len; int dxfer_dir = hp->dxfer_direction; unsigned int iov_count = hp->iovec_count; Sg_scatter_hold *req...
static int sg_start_req(Sg_request *srp, unsigned char *cmd) { sg_io_hdr_t *hp = &srp->header; int dxfer_len = (int) hp->dxfer_len; int dxfer_dir = hp->dxfer_direction; unsigned int iov_count = hp->iovec_count; if ((dxfer_len <= 0) || (dxfer_dir == SG_DXFER_NONE)) { return 0; } if (s...
static int sg_start_req(Sg_request *srp, unsigned char *cmd) { sg_io_hdr_t *hp = &srp->header; int dxfer_len = (int) hp->dxfer_len; int dxfer_dir = hp->dxfer_direction; unsigned int iov_count = hp->iovec_count; if ((dxfer_len <= 0) || (dxfer_dir == SG_DXFER_NONE)) { return 0; } if (s...
static int sg_start_req(Sg_request *srp, unsigned char *cmd) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ sg_io_hdr_t *hp = &srp->header; int dxfer_len = (int) hp->dxfer_len; int dxfer_dir = hp->dxfer_direction; unsigned int iov_count = hp->iovec_count; /* PLACEHOLDER: DO NOT DELETE THIS COMM...
static int sg_start_req(Sg_request *srp, unsigned char *cmd) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ sg_io_hdr_t *hp = &srp->header; int dxfer_len = (int) hp->dxfer_len; int dxfer_dir = hp->dxfer_direction; unsigned int iov_count = hp->iovec_count; /* PLACEHOLDER: DO NOT DELETE THIS COMM...
static int sg_start_req(Sg_request *srp, unsigned char *cmd) { sg_io_hdr_t *hp = &srp->header; int dxfer_len = (int) hp->dxfer_len; int dxfer_dir = hp->dxfer_direction; unsigned int iov_count = hp->iovec_count; if ((dxfer_len <= 0) || (dxfer_dir == SG_DXFER_NONE)) { return 0; } ...
CVE-2015-6252
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/vhost/vhost.c
vhost_dev_ioctl
long vhost_dev_ioctl(struct vhost_dev *d, unsigned int ioctl, void *argp) { struct file *eventfp, *filep = NULL; struct eventfd_ctx *ctx = NULL; u64 p; long r; int i, fd; if (ioctl == VHOST_SET_OWNER) { r = vhost_dev_set_owner(d); goto done; } r = vhost_dev_check_owner(d)...
long vhost_dev_ioctl(struct vhost_dev *d, unsigned int ioctl, void *argp) { struct file *eventfp, *filep = NULL; struct eventfd_ctx *ctx = NULL; u64 p; long r; int i, fd; if (ioctl == VHOST_SET_OWNER) { r = vhost_dev_set_owner(d); goto done; } r = vhost_dev_check_owner(d)...
long vhost_dev_ioctl(struct vhost_dev *d, unsigned int ioctl, void *argp) { struct file *eventfp, *filep = NULL; struct eventfd_ctx *ctx = NULL; u64 p; long r; int i, fd; if (ioctl == VHOST_SET_OWNER) { r = vhost_dev_set_owner(d); goto done; } r = vhost_dev_check_owner(d)...
long vhost_dev_ioctl(struct vhost_dev *d, unsigned int ioctl, void *argp) { struct file *eventfp, *filep = NULL; struct eventfd_ctx *ctx = NULL; u64 p; long r; int i, fd; if (ioctl == VHOST_SET_OWNER) { r = vhost_dev_set_owner(d); goto done; } r = vhost_dev_check_owner(d)...
long vhost_dev_ioctl(struct vhost_dev *d, unsigned int ioctl, void *argp) { r = vhost_dev_check_owner(d); switch (ioctl) { case VHOST_SET_LOG_FD: r = get_user(fd, (int *)argp); eventfp = fd == -1 ? NULL : eventfd_fget(fd); if (eventfp != d->log_file) { filep = d->log_file...
long vhost_dev_ioctl(struct vhost_dev *d, unsigned int ioctl, void *argp) { r = vhost_dev_check_owner(d); switch (ioctl) { case VHOST_SET_LOG_FD: r = get_user(fd, (int *)argp); eventfp = fd == -1 ? NULL : eventfd_fget(fd); if (eventfp != d->log_file) { filep = d->log_file...
long vhost_dev_ioctl(struct vhost_dev *d, unsigned int ioctl, void *argp) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ r = vhost_dev_check_owner(d); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ switch (ioctl) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ case VHOST_SET_LOG_FD: r = ...
long vhost_dev_ioctl(struct vhost_dev *d, unsigned int ioctl, void *argp) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ r = vhost_dev_check_owner(d); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ switch (ioctl) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ case VHOST_SET_LOG_FD: r = ...
long vhost_dev_ioctl(struct vhost_dev *d, unsigned int ioctl, void *argp) { r = vhost_dev_check_owner(d); switch (ioctl) { case VHOST_SET_LOG_FD: r = get_user(fd, (int *)argp); eventfp = fd == -1 ? NULL : eventfd_fget(fd); if (eventfp != d->log_file) { filep = d->...
CVE-2015-6937
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/rds/connection.c
__rds_conn_create
static struct rds_connection *__rds_conn_create(__be32 laddr, __be32 faddr, struct rds_transport *trans, gfp_t gfp, int is_outgoing) { struct rds_connection *conn, *parent = NULL; struct hlist_head *head = rds_conn_bucket(laddr, faddr); struct rds_transport *loop_trans; unsigned long flags; int ret;...
static struct rds_connection *__rds_conn_create(__be32 laddr, __be32 faddr, struct rds_transport *trans, gfp_t gfp, int is_outgoing) { struct rds_connection *conn, *parent = NULL; struct hlist_head *head = rds_conn_bucket(laddr, faddr); struct rds_transport *loop_trans; unsigned long flags; int ret;...
static struct rds_connection *__rds_conn_create(__be32 laddr, __be32 faddr, struct rds_transport *trans, gfp_t gfp, int is_outgoing) { struct rds_connection *conn, *parent = NULL; struct hlist_head *head = rds_conn_bucket(laddr, faddr); struct rds_transport *loop_trans; unsigned long flags; int ret;...
static struct rds_connection *__rds_conn_create(__be32 laddr, __be32 faddr, struct rds_transport *trans, gfp_t gfp, int is_outgoing) { struct rds_connection *conn, *parent = NULL; struct hlist_head *head = rds_conn_bucket(laddr, faddr); struct rds_transport *loop_trans; unsigned long flags; int ret;...
static struct rds_connection *__rds_conn_create(__be32 laddr, __be32 faddr, struct rds_transport *trans, gfp_t gfp, int is_outgoing) { struct hlist_head *head = rds_conn_bucket(laddr, faddr); conn = rds_conn_lookup(head, laddr, faddr, trans); conn = kmem_cache_zalloc(rds_conn_slab, gfp); if (!conn) { ...
static struct rds_connection *__rds_conn_create(__be32 laddr, __be32 faddr, struct rds_transport *trans, gfp_t gfp, int is_outgoing) { struct hlist_head *head = rds_conn_bucket(laddr, faddr); conn = rds_conn_lookup(head, laddr, faddr, trans); conn = kmem_cache_zalloc(rds_conn_slab, gfp); if (!conn) { ...
static struct rds_connection *__rds_conn_create(__be32 laddr, __be32 faddr, struct rds_transport *trans, gfp_t gfp, int is_outgoing) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct hlist_head *head = rds_conn_bucket(laddr, faddr); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ conn = rds_conn_look...
static struct rds_connection *__rds_conn_create(__be32 laddr, __be32 faddr, struct rds_transport *trans, gfp_t gfp, int is_outgoing) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct hlist_head *head = rds_conn_bucket(laddr, faddr); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ conn = rds_conn_look...
static struct rds_connection *__rds_conn_create(__be32 laddr, __be32 faddr, struct rds_transport *trans, gfp_t gfp, int is_outgoing) { struct hlist_head *head = rds_conn_bucket(laddr, faddr); conn = rds_conn_lookup(head, laddr, faddr, trans); conn = kmem_cache_zalloc(rds_conn_slab, gfp); if (!conn)...
CVE-2015-7513
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
arch/x86/kvm/x86.c
kvm_vm_ioctl_set_pit
static int kvm_vm_ioctl_set_pit(struct kvm *kvm, struct kvm_pit_state *ps) { int r = 0; mutex_lock(&kvm->arch.vpit->pit_state.lock); memcpy(&kvm->arch.vpit->pit_state, ps, sizeof(struct kvm_pit_state)); kvm_pit_load_count(kvm, 0, ps->channels[0].count, 0); mutex_unlock(&kvm->arch.vpit->pit_state.loc...
static int kvm_vm_ioctl_set_pit(struct kvm *kvm, struct kvm_pit_state *ps) { int r = 0; int i; mutex_lock(&kvm->arch.vpit->pit_state.lock); memcpy(&kvm->arch.vpit->pit_state, ps, sizeof(struct kvm_pit_state)); for (i = 0; i < 3; i++) kvm_pit_load_count(kvm, i, ps->channels[i].count, 0); ...
static int kvm_vm_ioctl_set_pit(struct kvm *kvm, struct kvm_pit_state *ps) { mutex_lock(&kvm->arch.vpit->pit_state.lock); memcpy(&kvm->arch.vpit->pit_state, ps, sizeof(struct kvm_pit_state)); kvm_pit_load_count(kvm, 0, ps->channels[0].count, 0); mutex_unlock(&kvm->arch.vpit->pit_state.lock); return ...
static int kvm_vm_ioctl_set_pit(struct kvm *kvm, struct kvm_pit_state *ps) { int i; mutex_lock(&kvm->arch.vpit->pit_state.lock); memcpy(&kvm->arch.vpit->pit_state, ps, sizeof(struct kvm_pit_state)); for (i = 0; i < 3; i++) kvm_pit_load_count(kvm, i, ps->channels[i].count, 0); mutex_unlock(&k...
static int kvm_vm_ioctl_set_pit(struct kvm *kvm, struct kvm_pit_state *ps) { int r = 0; mutex_lock(&kvm->arch.vpit->pit_state.lock); memcpy(&kvm->arch.vpit->pit_state, ps, sizeof(struct kvm_pit_state)); kvm_pit_load_count(kvm, 0, ps->channels[0].count, 0); mutex_unlock(&kvm->arch.vpit->pit_state.loc...
static int kvm_vm_ioctl_set_pit(struct kvm *kvm, struct kvm_pit_state *ps) { int r = 0; int i; mutex_lock(&kvm->arch.vpit->pit_state.lock); memcpy(&kvm->arch.vpit->pit_state, ps, sizeof(struct kvm_pit_state)); for (i = 0; i < 3; i++) kvm_pit_load_count(kvm, i, ps->channels[i].count, 0); ...
static int kvm_vm_ioctl_set_pit(struct kvm *kvm, struct kvm_pit_state *ps) { mutex_lock(&kvm->arch.vpit->pit_state.lock); memcpy(&kvm->arch.vpit->pit_state, ps, sizeof(struct kvm_pit_state)); kvm_pit_load_count(kvm, 0, ps->channels[0].count, 0); mutex_unlock(&kvm->arch.vpit->pit_state.lock); return ...
static int kvm_vm_ioctl_set_pit(struct kvm *kvm, struct kvm_pit_state *ps) { int i; mutex_lock(&kvm->arch.vpit->pit_state.lock); memcpy(&kvm->arch.vpit->pit_state, ps, sizeof(struct kvm_pit_state)); for (i = 0; i < 3; i++) kvm_pit_load_count(kvm, i, ps->channels[i].count, 0); mutex_unlock(&k...
static int kvm_vm_ioctl_set_pit(struct kvm *kvm, struct kvm_pit_state *ps) { int r = 0; + int i; mutex_lock(&kvm->arch.vpit->pit_state.lock); memcpy(&kvm->arch.vpit->pit_state, ps, sizeof(struct kvm_pit_state)); - kvm_pit_load_count(kvm, 0, ps->channels[0].count, 0); + for (i = 0; i < 3; i++) +...
CVE-2015-7513
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
arch/x86/kvm/x86.c
kvm_vm_ioctl_set_pit2
static int kvm_vm_ioctl_set_pit2(struct kvm *kvm, struct kvm_pit_state2 *ps) { int r = 0, start = 0; u32 prev_legacy, cur_legacy; mutex_lock(&kvm->arch.vpit->pit_state.lock); prev_legacy = kvm->arch.vpit->pit_state.flags & KVM_PIT_FLAGS_HPET_LEGACY; cur_legacy = ps->flags & KVM_PIT_FLAGS_HPET_LEGACY...
static int kvm_vm_ioctl_set_pit2(struct kvm *kvm, struct kvm_pit_state2 *ps) { int r = 0, start = 0; int i; u32 prev_legacy, cur_legacy; mutex_lock(&kvm->arch.vpit->pit_state.lock); prev_legacy = kvm->arch.vpit->pit_state.flags & KVM_PIT_FLAGS_HPET_LEGACY; cur_legacy = ps->flags & KVM_PIT_FLAGS_...
static int kvm_vm_ioctl_set_pit2(struct kvm *kvm, struct kvm_pit_state2 *ps) { int start = 0; u32 prev_legacy, cur_legacy; mutex_lock(&kvm->arch.vpit->pit_state.lock); prev_legacy = kvm->arch.vpit->pit_state.flags & KVM_PIT_FLAGS_HPET_LEGACY; cur_legacy = ps->flags & KVM_PIT_FLAGS_HPET_LEGACY; i...
static int kvm_vm_ioctl_set_pit2(struct kvm *kvm, struct kvm_pit_state2 *ps) { int start = 0; int i; u32 prev_legacy, cur_legacy; mutex_lock(&kvm->arch.vpit->pit_state.lock); prev_legacy = kvm->arch.vpit->pit_state.flags & KVM_PIT_FLAGS_HPET_LEGACY; cur_legacy = ps->flags & KVM_PIT_FLAGS_HPET_LE...
static int kvm_vm_ioctl_set_pit2(struct kvm *kvm, struct kvm_pit_state2 *ps) { int r = 0, start = 0; u32 prev_legacy, cur_legacy; if (!prev_legacy && cur_legacy) { start = 1; } kvm->arch.vpit->pit_state.flags = ps->flags; kvm_pit_load_count(kvm, 0, kvm->arch.vpit->pit_state.channels[0].c...
static int kvm_vm_ioctl_set_pit2(struct kvm *kvm, struct kvm_pit_state2 *ps) { int r = 0, start = 0; int i; u32 prev_legacy, cur_legacy; if (!prev_legacy && cur_legacy) { start = 1; } kvm->arch.vpit->pit_state.flags = ps->flags; for (i = 0; i < 3; i++) kvm_pit_load_count(kvm,...
static int kvm_vm_ioctl_set_pit2(struct kvm *kvm, struct kvm_pit_state2 *ps) { int start = 0; u32 prev_legacy, cur_legacy; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!prev_legacy && cur_legacy) { start = 1; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ kvm->arch.vpit->pit_st...
static int kvm_vm_ioctl_set_pit2(struct kvm *kvm, struct kvm_pit_state2 *ps) { int start = 0; int i; u32 prev_legacy, cur_legacy; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!prev_legacy && cur_legacy) { start = 1; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ kvm->arch.v...
static int kvm_vm_ioctl_set_pit2(struct kvm *kvm, struct kvm_pit_state2 *ps) { int r = 0, start = 0; + int i; u32 prev_legacy, cur_legacy; if (!prev_legacy && cur_legacy) { start = 1; } kvm->arch.vpit->pit_state.flags = ps->flags; - kvm_pit_load_count(kvm, 0, kvm->arch.vpit->pit...
CVE-2015-7515
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/input/tablet/aiptek.c
aiptek_probe
static int aiptek_probe(struct usb_interface *intf, const struct usb_device_id *id) { struct usb_device *usbdev = interface_to_usbdev(intf); struct usb_endpoint_descriptor *endpoint; struct aiptek *aiptek; struct input_dev *inputdev; int i; int speeds[] = { 0, AIPTEK_PROGRAMMABLE_DELAY_50, AIPTE...
static int aiptek_probe(struct usb_interface *intf, const struct usb_device_id *id) { struct usb_device *usbdev = interface_to_usbdev(intf); struct usb_endpoint_descriptor *endpoint; struct aiptek *aiptek; struct input_dev *inputdev; int i; int speeds[] = { 0, AIPTEK_PROGRAMMABLE_DELAY_50, AIPTE...
static int aiptek_probe(struct usb_interface *intf, const struct usb_device_id *id) { struct usb_device *usbdev = interface_to_usbdev(intf); struct usb_endpoint_descriptor *endpoint; struct aiptek *aiptek; struct input_dev *inputdev; int i; int speeds[] = { 0, AIPTEK_PROGRAMMABLE_DELAY_50, AIPTE...
static int aiptek_probe(struct usb_interface *intf, const struct usb_device_id *id) { struct usb_device *usbdev = interface_to_usbdev(intf); struct usb_endpoint_descriptor *endpoint; struct aiptek *aiptek; struct input_dev *inputdev; int i; int speeds[] = { 0, AIPTEK_PROGRAMMABLE_DELAY_50, AIPTE...
static int aiptek_probe(struct usb_interface *intf, const struct usb_device_id *id) { struct usb_device *usbdev = interface_to_usbdev(intf); input_set_abs_params(inputdev, ABS_WHEEL, AIPTEK_WHEEL_M, AIPTEK_WHEEL_MAX - 1, 0, 0); endpoint = &intf->altsetting[0].endpoint[0].desc; if (i == ARRAY_SIZE(speeds...
static int aiptek_probe(struct usb_interface *intf, const struct usb_device_id *id) { struct usb_device *usbdev = interface_to_usbdev(intf); input_set_abs_params(inputdev, ABS_WHEEL, AIPTEK_WHEEL_M, AIPTEK_WHEEL_MAX - 1, 0, 0); if (intf->altsetting[0].desc.bNumEndpoints < 1) { dev_err(&intf->dev, "i...
static int aiptek_probe(struct usb_interface *intf, const struct usb_device_id *id) { struct usb_device *usbdev = interface_to_usbdev(intf); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ input_set_abs_params(inputdev, ABS_WHEEL, AIPTEK_WHEEL_M, AIPTEK_WHEEL_MAX - 1, 0, 0); endpoint = &intf->altsetting[0...
static int aiptek_probe(struct usb_interface *intf, const struct usb_device_id *id) { struct usb_device *usbdev = interface_to_usbdev(intf); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ input_set_abs_params(inputdev, ABS_WHEEL, AIPTEK_WHEEL_M, AIPTEK_WHEEL_MAX - 1, 0, 0); if (intf->altsetting[0].desc.b...
static int aiptek_probe(struct usb_interface *intf, const struct usb_device_id *id) { struct usb_device *usbdev = interface_to_usbdev(intf); input_set_abs_params(inputdev, ABS_WHEEL, AIPTEK_WHEEL_M, AIPTEK_WHEEL_MAX - 1, 0, 0); + if (intf->altsetting[0].desc.bNumEndpoints < 1) { + dev_err(&intf->de...
CVE-2015-7550
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
security/keys/keyctl.c
keyctl_read_key
long keyctl_read_key(key_serial_t keyid, char *buffer, size_t buflen) { struct key *key; key_ref_t key_ref; long ret; key_ref = lookup_user_key(keyid, 0, 0); if (IS_ERR(key_ref)) { ret = -ENOKEY; goto error; } key = key_ref_to_ptr(key_ref); ret = key_permission(key_ref, K...
long keyctl_read_key(key_serial_t keyid, char *buffer, size_t buflen) { struct key *key; key_ref_t key_ref; long ret; key_ref = lookup_user_key(keyid, 0, 0); if (IS_ERR(key_ref)) { ret = -ENOKEY; goto error; } key = key_ref_to_ptr(key_ref); ret = key_permission(key_ref, K...
long keyctl_read_key(key_serial_t keyid, char *buffer, size_t buflen) { struct key *key; key_ref_t key_ref; long ret; key_ref = lookup_user_key(keyid, 0, 0); if (IS_ERR(key_ref)) { ret = -ENOKEY; goto error; } key = key_ref_to_ptr(key_ref); ret = key_permission(key_ref, K...
long keyctl_read_key(key_serial_t keyid, char *buffer, size_t buflen) { struct key *key; key_ref_t key_ref; long ret; key_ref = lookup_user_key(keyid, 0, 0); if (IS_ERR(key_ref)) { ret = -ENOKEY; goto error; } key = key_ref_to_ptr(key_ref); ret = key_permission(key_ref, K...
long keyctl_read_key(key_serial_t keyid, char *buffer, size_t buflen) { key_ref = lookup_user_key(keyid, 0, 0); if (IS_ERR(key_ref)) { goto error; } key = key_ref_to_ptr(key_ref); if (ret == 0) { goto can_read_key; } if (!is_key_possessed(key_ref)) { goto error2; ...
long keyctl_read_key(key_serial_t keyid, char *buffer, size_t buflen) { key_ref = lookup_user_key(keyid, 0, 0); if (IS_ERR(key_ref)) { goto error; } key = key_ref_to_ptr(key_ref); if (ret == 0) { goto can_read_key; } if (!is_key_possessed(key_ref)) { goto error2; ...
long keyctl_read_key(key_serial_t keyid, char *buffer, size_t buflen) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ key_ref = lookup_user_key(keyid, 0, 0); if (IS_ERR(key_ref)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ goto error; } key = key_ref_to_ptr(key_ref); /* PLACEHOLD...
long keyctl_read_key(key_serial_t keyid, char *buffer, size_t buflen) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ key_ref = lookup_user_key(keyid, 0, 0); if (IS_ERR(key_ref)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ goto error; } key = key_ref_to_ptr(key_ref); /* PLACEHOLD...
long keyctl_read_key(key_serial_t keyid, char *buffer, size_t buflen) { key_ref = lookup_user_key(keyid, 0, 0); if (IS_ERR(key_ref)) { goto error; } key = key_ref_to_ptr(key_ref); if (ret == 0) { goto can_read_key; } if (!is_key_possessed(key_ref)) { goto e...
CVE-2015-7566
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/usb/serial/visor.c
clie_5_attach
static int clie_5_attach(struct usb_serial *serial) { struct usb_serial_port *port; unsigned int pipe; int j; if (serial->num_ports < 2) { return -1; } port = serial->port[0]; port->bulk_out_endpointAddress = serial->port[1]->bulk_out_endpointAddress; pipe = usb_sndbulkpipe(seria...
static int clie_5_attach(struct usb_serial *serial) { struct usb_serial_port *port; unsigned int pipe; int j; if (serial->num_bulk_out < 2) { dev_err(&serial->interface->dev, "missing bulk out endpoints\n"); return -ENODEV; } port = serial->port[0]; port->bulk_out_endpointAdd...
static int clie_5_attach(struct usb_serial *serial) { struct usb_serial_port *port; unsigned int pipe; int j; dbg("%s", __func__); if (serial->num_ports < 2) { return -1; } port = serial->port[0]; port->bulk_out_endpointAddress = serial->port[1]->bulk_out_endpointAddress; pip...
static int clie_5_attach(struct usb_serial *serial) { struct usb_serial_port *port; unsigned int pipe; int j; dbg("%s", __func__); if (serial->num_bulk_out < 2) { dev_err(&serial->interface->dev, "missing bulk out endpoints\n"); return -ENODEV; } port = serial->port[0]; p...
static int clie_5_attach(struct usb_serial *serial) { int j; if (serial->num_ports < 2) { return -1; } port = serial->port[0]; }
static int clie_5_attach(struct usb_serial *serial) { int j; if (serial->num_bulk_out < 2) { dev_err(&serial->interface->dev, "missing bulk out endpoints\n"); return -ENODEV; } port = serial->port[0]; }
static int clie_5_attach(struct usb_serial *serial) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int j; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (serial->num_ports < 2) { return -1; } port = serial->port[0]; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static int clie_5_attach(struct usb_serial *serial) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int j; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (serial->num_bulk_out < 2) { dev_err(&serial->interface->dev, "missing bulk out endpoints\n"); return -ENODEV; } port = seri...
static int clie_5_attach(struct usb_serial *serial) { int j; - if (serial->num_ports < 2) { - return -1; + if (serial->num_bulk_out < 2) { + dev_err(&serial->interface->dev, "missing bulk out endpoints\n"); + return -ENODEV; } port = serial->port[0]; }
CVE-2015-7613
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
ipc/msg.c
newque
static int newque(struct ipc_namespace *ns, struct ipc_params *params) { struct msg_queue *msq; int id, retval; key_t key = params->key; int msgflg = params->flg; msq = ipc_rcu_alloc(sizeof(*msq)); if (!msq) { return -ENOMEM; } msq->q_perm.mode = msgflg & S_IRWXUGO; msq->q_pe...
static int newque(struct ipc_namespace *ns, struct ipc_params *params) { struct msg_queue *msq; int id, retval; key_t key = params->key; int msgflg = params->flg; msq = ipc_rcu_alloc(sizeof(*msq)); if (!msq) { return -ENOMEM; } msq->q_perm.mode = msgflg & S_IRWXUGO; msq->q_pe...
static int newque(struct ipc_namespace *ns, struct ipc_params *params) { struct msg_queue *msq; int id, retval; key_t key = params->key; int msgflg = params->flg; msq = ipc_rcu_alloc(sizeof(*msq)); if (!msq) { return -ENOMEM; } msq->q_perm.mode = msgflg & S_IRWXUGO; msq->q_pe...
static int newque(struct ipc_namespace *ns, struct ipc_params *params) { struct msg_queue *msq; int id, retval; key_t key = params->key; int msgflg = params->flg; msq = ipc_rcu_alloc(sizeof(*msq)); if (!msq) { return -ENOMEM; } msq->q_perm.mode = msgflg & S_IRWXUGO; msq->q_pe...
static int newque(struct ipc_namespace *ns, struct ipc_params *params) { msq = ipc_rcu_alloc(sizeof(*msq)); if (!msq) { return -ENOMEM; } retval = security_msg_queue_alloc(msq); if (retval) { return retval; } id = ipc_addid(&msg_ids(ns), &msq->q_perm, ns->msg_ctlmni); if ...
static int newque(struct ipc_namespace *ns, struct ipc_params *params) { msq = ipc_rcu_alloc(sizeof(*msq)); if (!msq) { return -ENOMEM; } retval = security_msg_queue_alloc(msq); if (retval) { return retval; } msq->q_stime = msq->q_rtime = 0; msq->q_qbytes = ns->msg_ctlmnb...
static int newque(struct ipc_namespace *ns, struct ipc_params *params) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ msq = ipc_rcu_alloc(sizeof(*msq)); if (!msq) { return -ENOMEM; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ retval = security_msg_queue_alloc(msq); if (retval) { ...
static int newque(struct ipc_namespace *ns, struct ipc_params *params) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ msq = ipc_rcu_alloc(sizeof(*msq)); if (!msq) { return -ENOMEM; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ retval = security_msg_queue_alloc(msq); if (retval) { ...
static int newque(struct ipc_namespace *ns, struct ipc_params *params) { msq = ipc_rcu_alloc(sizeof(*msq)); if (!msq) { return -ENOMEM; } retval = security_msg_queue_alloc(msq); if (retval) { return retval; } + msq->q_stime = msq->q_rtime = 0; + msq->q_qbytes = ns-...
CVE-2015-7613
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
ipc/shm.c
newseg
static int newseg(struct ipc_namespace *ns, struct ipc_params *params) { key_t key = params->key; int shmflg = params->flg; size_t size = params->u.size; int error; struct shmid_kernel *shp; size_t numpages = (size + PAGE_SIZE - 1) >> PAGE_SHIFT; struct file * file; char name[13]; in...
static int newseg(struct ipc_namespace *ns, struct ipc_params *params) { key_t key = params->key; int shmflg = params->flg; size_t size = params->u.size; int error; struct shmid_kernel *shp; size_t numpages = (size + PAGE_SIZE - 1) >> PAGE_SHIFT; struct file * file; char name[13]; in...
static int newseg(struct ipc_namespace *ns, struct ipc_params *params) { key_t key = params->key; int shmflg = params->flg; size_t size = params->u.size; int error; struct shmid_kernel *shp; size_t numpages = (size + PAGE_SIZE - 1) >> PAGE_SHIFT; struct file * file; char name[13]; in...
static int newseg(struct ipc_namespace *ns, struct ipc_params *params) { key_t key = params->key; int shmflg = params->flg; size_t size = params->u.size; int error; struct shmid_kernel *shp; size_t numpages = (size + PAGE_SIZE - 1) >> PAGE_SHIFT; struct file * file; char name[13]; in...
static int newseg(struct ipc_namespace *ns, struct ipc_params *params) { shp = ipc_rcu_alloc(sizeof(*shp)); if (!shp) { return -ENOMEM; } error = security_shm_alloc(shp); if (IS_ERR(file)) { goto no_file; } id = ipc_addid(&shm_ids(ns), &shp->shm_perm, ns->shm_ctlmni); if ...
static int newseg(struct ipc_namespace *ns, struct ipc_params *params) { shp = ipc_rcu_alloc(sizeof(*shp)); if (!shp) { return -ENOMEM; } error = security_shm_alloc(shp); if (IS_ERR(file)) { goto no_file; } shp->shm_cprid = task_tgid_vnr(current); shp->shm_creator = curre...
static int newseg(struct ipc_namespace *ns, struct ipc_params *params) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ shp = ipc_rcu_alloc(sizeof(*shp)); if (!shp) { return -ENOMEM; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ error = security_shm_alloc(shp); /* PLACEHOLDER: DO NO...
static int newseg(struct ipc_namespace *ns, struct ipc_params *params) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ shp = ipc_rcu_alloc(sizeof(*shp)); if (!shp) { return -ENOMEM; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ error = security_shm_alloc(shp); /* PLACEHOLDER: DO NO...
static int newseg(struct ipc_namespace *ns, struct ipc_params *params) { shp = ipc_rcu_alloc(sizeof(*shp)); if (!shp) { return -ENOMEM; } error = security_shm_alloc(shp); if (IS_ERR(file)) { goto no_file; } + shp->shm_cprid = task_tgid_vnr(current); + shp->shm_crea...
CVE-2015-7613
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
ipc/util.c
ipc_addid
int ipc_addid(struct ipc_ids* ids, struct kern_ipc_perm* new, int size) { uid_t euid; gid_t egid; int id, err; if (size > IPCMNI) { size = IPCMNI; } if (ids->in_use >= size) { return -ENOSPC; } spin_lock_init(&new->lock); new->deleted = 0; rcu_read_lock(); spi...
int ipc_addid(struct ipc_ids* ids, struct kern_ipc_perm* new, int size) { uid_t euid; gid_t egid; int id, err; if (size > IPCMNI) { size = IPCMNI; } if (ids->in_use >= size) { return -ENOSPC; } spin_lock_init(&new->lock); new->deleted = 0; rcu_read_lock(); spi...
int ipc_addid(struct ipc_ids* ids, struct kern_ipc_perm* new, int size) { kuid_t euid; kgid_t egid; int id; int next_id = ids->next_id; if (size > IPCMNI) { size = IPCMNI; } if (ids->in_use >= size) { return -ENOSPC; } idr_preload(GFP_KERNEL); spin_lock_init(&new-...
int ipc_addid(struct ipc_ids* ids, struct kern_ipc_perm* new, int size) { kuid_t euid; kgid_t egid; int id; int next_id = ids->next_id; if (size > IPCMNI) { size = IPCMNI; } if (ids->in_use >= size) { return -ENOSPC; } idr_preload(GFP_KERNEL); spin_lock_init(&new-...
int ipc_addid(struct ipc_ids* ids, struct kern_ipc_perm* new, int size) { spin_lock(&new->lock); err = idr_get_new(&ids->ipcs_idr, new, &id); if (err) { spin_unlock(&new->lock); return err; } ids->in_use++; current_euid_egid(&euid, &egid); new->cuid = new->uid = euid; new...
int ipc_addid(struct ipc_ids* ids, struct kern_ipc_perm* new, int size) { spin_lock(&new->lock); current_euid_egid(&euid, &egid); new->cuid = new->uid = euid; new->gid = new->cgid = egid; err = idr_get_new(&ids->ipcs_idr, new, &id); if (err) { spin_unlock(&new->lock); return err;...
int ipc_addid(struct ipc_ids* ids, struct kern_ipc_perm* new, int size) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ spin_lock(&new->lock); id = idr_alloc(&ids->ipcs_idr, new, (next_id < 0) ? 0 : ipcid_to_idx(next_id), 0, GFP_NOWAIT); idr_preload_end(); if (id < 0) { spin_unlock(&new->loc...
int ipc_addid(struct ipc_ids* ids, struct kern_ipc_perm* new, int size) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ spin_lock(&new->lock); current_euid_egid(&euid, &egid); new->cuid = new->uid = euid; new->gid = new->cgid = egid; id = idr_alloc(&ids->ipcs_idr, new, (next_id < 0) ? 0 : ipcid_...
int ipc_addid(struct ipc_ids* ids, struct kern_ipc_perm* new, int size) { spin_lock(&new->lock); + current_euid_egid(&euid, &egid); + new->cuid = new->uid = euid; + new->gid = new->cgid = egid; err = idr_get_new(&ids->ipcs_idr, new, &id); if (err) { spin_unlock(&new->lock); re...
CVE-2015-7799
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/isdn/i4l/isdn_ppp.c
isdn_ppp_open
int isdn_ppp_open(int min, struct file *file) { int slot; struct ippp_struct *is; if (min < 0 || min >= ISDN_MAX_CHANNELS) { return -ENODEV; } slot = isdn_ppp_get_slot(); if (slot < 0) { return -EBUSY; } is = file->private_data = ippp_table[slot]; printk(KERN_DEBUG "i...
int isdn_ppp_open(int min, struct file *file) { int slot; struct ippp_struct *is; if (min < 0 || min >= ISDN_MAX_CHANNELS) { return -ENODEV; } slot = isdn_ppp_get_slot(); if (slot < 0) { return -EBUSY; } is = file->private_data = ippp_table[slot]; printk(KERN_DEBUG "i...
int isdn_ppp_open(int min, struct file *file) { int slot; struct ippp_struct *is; if (min < 0 || min >= ISDN_MAX_CHANNELS) { return -ENODEV; } slot = isdn_ppp_get_slot(); if (slot < 0) { return -EBUSY; } is = file->private_data = ippp_table[slot]; printk(KERN_DEBUG "i...
int isdn_ppp_open(int min, struct file *file) { int slot; struct ippp_struct *is; if (min < 0 || min >= ISDN_MAX_CHANNELS) { return -ENODEV; } slot = isdn_ppp_get_slot(); if (slot < 0) { return -EBUSY; } is = file->private_data = ippp_table[slot]; printk(KERN_DEBUG "i...
int isdn_ppp_open(int min, struct file *file) { is = file->private_data = ippp_table[slot]; is->reset = isdn_ppp_ccp_reset_alloc(is); is->lp = NULL; is->slcomp = slhc_init(16, 16); is->pass_filter = NULL; }
int isdn_ppp_open(int min, struct file *file) { is = file->private_data = ippp_table[slot]; is->reset = isdn_ppp_ccp_reset_alloc(is); if (!is->reset) { return -ENOMEM; } is->lp = NULL; is->slcomp = slhc_init(16, 16); if (!is->slcomp) { isdn_ppp_ccp_reset_free(is); ret...
int isdn_ppp_open(int min, struct file *file) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ is = file->private_data = ippp_table[slot]; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ is->reset = isdn_ppp_ccp_reset_alloc(is); is->lp = NULL; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ is->s...
int isdn_ppp_open(int min, struct file *file) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ is = file->private_data = ippp_table[slot]; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ is->reset = isdn_ppp_ccp_reset_alloc(is); if (!is->reset) { return -ENOMEM; } is->lp = NULL; /* ...
int isdn_ppp_open(int min, struct file *file) { is = file->private_data = ippp_table[slot]; is->reset = isdn_ppp_ccp_reset_alloc(is); + if (!is->reset) { + return -ENOMEM; + } is->lp = NULL; is->slcomp = slhc_init(16, 16); + if (!is->slcomp) { + isdn_ppp_ccp_reset_free(is); +...
CVE-2015-7884
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/media/platform/vivid/vivid-osd.c
vivid_fb_ioctl
static int vivid_fb_ioctl(struct fb_info *info, unsigned cmd, unsigned long arg) { struct vivid_dev *dev = (struct vivid_dev *)info->par; switch (cmd) { case FBIOGET_VBLANK: { struct fb_vblank vblank; vblank.flags = FB_VBLANK_HAVE_COUNT | FB_VBLANK_HAVE_VCOUNT | FB_VBLANK_HAVE_VSYNC; ...
static int vivid_fb_ioctl(struct fb_info *info, unsigned cmd, unsigned long arg) { struct vivid_dev *dev = (struct vivid_dev *)info->par; switch (cmd) { case FBIOGET_VBLANK: { struct fb_vblank vblank; memset(&vblank, 0, sizeof(vblank)); vblank.flags = FB_VBLANK_HAVE_COUNT | FB_VBLANK...
static int vivid_fb_ioctl(struct fb_info *info, unsigned cmd, unsigned long arg) { struct vivid_dev *dev = (struct vivid_dev *)info->par; switch (cmd) { case FBIOGET_VBLANK: { struct fb_vblank vblank; vblank.flags = FB_VBLANK_HAVE_COUNT | FB_VBLANK_HAVE_VCOUNT | FB_VBLANK_HAVE_VSYNC; ...
static int vivid_fb_ioctl(struct fb_info *info, unsigned cmd, unsigned long arg) { struct vivid_dev *dev = (struct vivid_dev *)info->par; switch (cmd) { case FBIOGET_VBLANK: { struct fb_vblank vblank; memset(&vblank, 0, sizeof(vblank)); vblank.flags = FB_VBLANK_HAVE_COUNT | FB_VBLANK...
static int vivid_fb_ioctl(struct fb_info *info, unsigned cmd, unsigned long arg) { switch (cmd) { case FBIOGET_VBLANK: { struct fb_vblank vblank; vblank.flags = FB_VBLANK_HAVE_COUNT | FB_VBLANK_HAVE_VCOUNT | FB_VBLANK_HAVE_VSYNC; return 0; } } }
static int vivid_fb_ioctl(struct fb_info *info, unsigned cmd, unsigned long arg) { switch (cmd) { case FBIOGET_VBLANK: { struct fb_vblank vblank; memset(&vblank, 0, sizeof(vblank)); vblank.flags = FB_VBLANK_HAVE_COUNT | FB_VBLANK_HAVE_VCOUNT | FB_VBLANK_HAVE_VSYNC; return 0; ...
static int vivid_fb_ioctl(struct fb_info *info, unsigned cmd, unsigned long arg) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ switch (cmd) { case FBIOGET_VBLANK: { struct fb_vblank vblank; vblank.flags = FB_VBLANK_HAVE_COUNT | FB_VBLANK_HAVE_VCOUNT | FB_VBLANK_HAVE_VSYNC; /* PLACEHOLD...
static int vivid_fb_ioctl(struct fb_info *info, unsigned cmd, unsigned long arg) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ switch (cmd) { case FBIOGET_VBLANK: { struct fb_vblank vblank; memset(&vblank, 0, sizeof(vblank)); vblank.flags = FB_VBLANK_HAVE_COUNT | FB_VBLANK_HAVE_VCO...
static int vivid_fb_ioctl(struct fb_info *info, unsigned cmd, unsigned long arg) { switch (cmd) { case FBIOGET_VBLANK: { struct fb_vblank vblank; + memset(&vblank, 0, sizeof(vblank)); vblank.flags = FB_VBLANK_HAVE_COUNT | FB_VBLANK_HAVE_VCOUNT | FB_VBLANK_HAVE_VSYNC; return ...
CVE-2015-7885
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/staging/dgnc/dgnc_mgmt.c
dgnc_mgmt_ioctl
long dgnc_mgmt_ioctl(struct file *file, unsigned int cmd, unsigned long arg) { unsigned long lock_flags; void *uarg = (void *) arg; DPR_MGMT(("dgnc_mgmt_ioctl start.\n")); switch (cmd) { case DIGI_GETDD: { struct digi_dinfo ddi; DGNC_LOCK(dgnc_global_lock, lock_flags); ddi.di...
long dgnc_mgmt_ioctl(struct file *file, unsigned int cmd, unsigned long arg) { unsigned long lock_flags; void *uarg = (void *) arg; DPR_MGMT(("dgnc_mgmt_ioctl start.\n")); switch (cmd) { case DIGI_GETDD: { struct digi_dinfo ddi; DGNC_LOCK(dgnc_global_lock, lock_flags); memset...
long dgnc_mgmt_ioctl(struct file *file, unsigned int cmd, unsigned long arg) { unsigned long lock_flags; void *uarg = (void *) arg; DPR_MGMT(("dgnc_mgmt_ioctl start.\n")); switch (cmd) { case DIGI_GETDD: { struct digi_dinfo ddi; DGNC_LOCK(dgnc_global_lock, lock_flags); ddi.di...
long dgnc_mgmt_ioctl(struct file *file, unsigned int cmd, unsigned long arg) { unsigned long lock_flags; void *uarg = (void *) arg; DPR_MGMT(("dgnc_mgmt_ioctl start.\n")); switch (cmd) { case DIGI_GETDD: { struct digi_dinfo ddi; DGNC_LOCK(dgnc_global_lock, lock_flags); memset...
long dgnc_mgmt_ioctl(struct file *file, unsigned int cmd, unsigned long arg) { switch (cmd) { case DIGI_GETDD: { DGNC_LOCK(dgnc_global_lock, lock_flags); ddi.dinfo_nboards = dgnc_NumBoards; break; } } }
long dgnc_mgmt_ioctl(struct file *file, unsigned int cmd, unsigned long arg) { switch (cmd) { case DIGI_GETDD: { DGNC_LOCK(dgnc_global_lock, lock_flags); memset(&ddi, 0, sizeof(ddi)); ddi.dinfo_nboards = dgnc_NumBoards; break; } } }
long dgnc_mgmt_ioctl(struct file *file, unsigned int cmd, unsigned long arg) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ switch (cmd) { case DIGI_GETDD: { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ DGNC_LOCK(dgnc_global_lock, lock_flags); ddi.dinfo_nboards = dgnc_NumBoards; /*...
long dgnc_mgmt_ioctl(struct file *file, unsigned int cmd, unsigned long arg) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ switch (cmd) { case DIGI_GETDD: { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ DGNC_LOCK(dgnc_global_lock, lock_flags); memset(&ddi, 0, sizeof(ddi)); ddi....
long dgnc_mgmt_ioctl(struct file *file, unsigned int cmd, unsigned long arg) { switch (cmd) { case DIGI_GETDD: { DGNC_LOCK(dgnc_global_lock, lock_flags); + memset(&ddi, 0, sizeof(ddi)); ddi.dinfo_nboards = dgnc_NumBoards; break; } } }
CVE-2015-8019
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/core/datagram.c
skb_copy_and_csum_datagram_iovec
int skb_copy_and_csum_datagram_iovec(struct sk_buff *skb, int hlen, struct iovec *iov) { __wsum csum; int chunk = skb->len - hlen; if (!chunk) { return 0; } while (!iov->iov_len) iov++; if (iov->iov_len < chunk) { if (__skb_checksum_complete(skb)) { goto csum_...
int skb_copy_and_csum_datagram_iovec(struct sk_buff *skb, int hlen, struct iovec *iov, int len) { __wsum csum; int chunk = skb->len - hlen; if (chunk > len) { chunk = len; } if (!chunk) { return 0; } while (!iov->iov_len) iov++; if (iov->iov_len < chunk) { ...
int skb_copy_and_csum_datagram_iovec(struct sk_buff *skb, int hlen, struct iovec *iov) { __wsum csum; int chunk = skb->len - hlen; if (!chunk) { return 0; } while (!iov->iov_len) iov++; if (iov->iov_len < chunk) { if (__skb_checksum_complete(skb)) { goto csum_...
int skb_copy_and_csum_datagram_iovec(struct sk_buff *skb, int hlen, struct iovec *iov, int len) { __wsum csum; int chunk = skb->len - hlen; if (chunk > len) { chunk = len; } if (!chunk) { return 0; } while (!iov->iov_len) iov++; if (iov->iov_len < chunk) { ...
int skb_copy_and_csum_datagram_iovec(struct sk_buff *skb, int hlen, struct iovec *iov) { int chunk = skb->len - hlen; if (!chunk) { return 0; } if (iov->iov_len < chunk) { if (skb_copy_datagram_iovec(skb, hlen, iov, chunk)) { goto fault; } } else { if (skb...
int skb_copy_and_csum_datagram_iovec(struct sk_buff *skb, int hlen, struct iovec *iov, int len) { int chunk = skb->len - hlen; if (chunk > len) { chunk = len; } if (!chunk) { return 0; } if (iov->iov_len < chunk) { if (skb_copy_datagram_iovec(skb, hlen, iov, chunk)) { ...
int skb_copy_and_csum_datagram_iovec(struct sk_buff *skb, int hlen, struct iovec *iov) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int chunk = skb->len - hlen; if (!chunk) { return 0; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (iov->iov_len < chunk) { /* PLACEHOLDER: DO N...
int skb_copy_and_csum_datagram_iovec(struct sk_buff *skb, int hlen, struct iovec *iov, int len) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int chunk = skb->len - hlen; if (chunk > len) { chunk = len; } if (!chunk) { return 0; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT ...
-int skb_copy_and_csum_datagram_iovec(struct sk_buff *skb, int hlen, struct iovec *iov) { +int skb_copy_and_csum_datagram_iovec(struct sk_buff *skb, int hlen, struct iovec *iov, int len) { int chunk = skb->len - hlen; + if (chunk > len) { + chunk = len; + } if (!chunk) { return 0; }...
CVE-2015-8019
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv4/tcp_input.c
tcp_copy_to_iovec
static int tcp_copy_to_iovec(struct sock *sk, struct sk_buff *skb, int hlen) { struct tcp_sock *tp = tcp_sk(sk); int chunk = skb->len - hlen; int err; local_bh_enable(); if (skb_csum_unnecessary(skb)) { err = skb_copy_datagram_iovec(skb, hlen, tp->ucopy.iov, chunk); } else { err ...
static int tcp_copy_to_iovec(struct sock *sk, struct sk_buff *skb, int hlen) { struct tcp_sock *tp = tcp_sk(sk); int chunk = skb->len - hlen; int err; local_bh_enable(); if (skb_csum_unnecessary(skb)) { err = skb_copy_datagram_iovec(skb, hlen, tp->ucopy.iov, chunk); } else { err ...
static int tcp_copy_to_iovec(struct sock *sk, struct sk_buff *skb, int hlen) { struct tcp_sock *tp = tcp_sk(sk); int chunk = skb->len - hlen; int err; local_bh_enable(); if (skb_csum_unnecessary(skb)) { err = skb_copy_datagram_iovec(skb, hlen, tp->ucopy.iov, chunk); } else { err ...
static int tcp_copy_to_iovec(struct sock *sk, struct sk_buff *skb, int hlen) { struct tcp_sock *tp = tcp_sk(sk); int chunk = skb->len - hlen; int err; local_bh_enable(); if (skb_csum_unnecessary(skb)) { err = skb_copy_datagram_iovec(skb, hlen, tp->ucopy.iov, chunk); } else { err ...
static int tcp_copy_to_iovec(struct sock *sk, struct sk_buff *skb, int hlen) { int chunk = skb->len - hlen; if (skb_csum_unnecessary(skb)) { } else { err = skb_copy_and_csum_datagram_iovec(skb, hlen, tp->ucopy.iov); } if (!err) { tp->ucopy.len -= chunk; tp->copied_seq += chun...
static int tcp_copy_to_iovec(struct sock *sk, struct sk_buff *skb, int hlen) { int chunk = skb->len - hlen; if (skb_csum_unnecessary(skb)) { } else { err = skb_copy_and_csum_datagram_iovec(skb, hlen, tp->ucopy.iov, chunk); } if (!err) { tp->ucopy.len -= chunk; tp->copied_seq ...
static int tcp_copy_to_iovec(struct sock *sk, struct sk_buff *skb, int hlen) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int chunk = skb->len - hlen; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (skb_csum_unnecessary(skb)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } else { ...
static int tcp_copy_to_iovec(struct sock *sk, struct sk_buff *skb, int hlen) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int chunk = skb->len - hlen; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (skb_csum_unnecessary(skb)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } else { ...
static int tcp_copy_to_iovec(struct sock *sk, struct sk_buff *skb, int hlen) { int chunk = skb->len - hlen; if (skb_csum_unnecessary(skb)) { } else { - err = skb_copy_and_csum_datagram_iovec(skb, hlen, tp->ucopy.iov); + err = skb_copy_and_csum_datagram_iovec(skb, hlen, tp->ucopy.iov, chunk...
CVE-2015-8019
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv4/udp.c
udp_recvmsg
int udp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct inet_sock *inet = inet_sk(sk); struct sockaddr_in *sin = (struct sockaddr_in *)msg->msg_name; struct sk_buff *skb; unsigned int ulen, copied; int peeked, off = 0; ...
int udp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct inet_sock *inet = inet_sk(sk); struct sockaddr_in *sin = (struct sockaddr_in *)msg->msg_name; struct sk_buff *skb; unsigned int ulen, copied; int peeked, off = 0; ...
int udp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct inet_sock *inet = inet_sk(sk); struct sockaddr_in *sin = (struct sockaddr_in *)msg->msg_name; struct sk_buff *skb; unsigned int ulen, copied; int peeked; int err; ...
int udp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct inet_sock *inet = inet_sk(sk); struct sockaddr_in *sin = (struct sockaddr_in *)msg->msg_name; struct sk_buff *skb; unsigned int ulen, copied; int peeked; int err; ...
int udp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct inet_sock *inet = inet_sk(sk); int peeked, off = 0; int is_udplite = IS_UDPLITE(sk); if (flags & MSG_ERRQUEUE) { return ip_recv_error(sk, msg, len, addr_len); ...
int udp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct inet_sock *inet = inet_sk(sk); int peeked, off = 0; int is_udplite = IS_UDPLITE(sk); if (flags & MSG_ERRQUEUE) { return ip_recv_error(sk, msg, len, addr_len); ...
int udp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct inet_sock *inet = inet_sk(sk); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int peeked; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int is_udplite = IS_UDPLITE(sk);...
int udp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct inet_sock *inet = inet_sk(sk); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int peeked; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int is_udplite = IS_UDPLITE(sk);...
int udp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct inet_sock *inet = inet_sk(sk); int peeked, off = 0; int is_udplite = IS_UDPLITE(sk); if (flags & MSG_ERRQUEUE) { return ip_recv_error(sk, msg, len, addr_len)...
CVE-2015-8019
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv6/raw.c
rawv6_recvmsg
static int rawv6_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct ipv6_pinfo *np = inet6_sk(sk); struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)msg->msg_name; struct sk_buff *skb; size_t copied; int err; if (flags & ...
static int rawv6_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct ipv6_pinfo *np = inet6_sk(sk); struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)msg->msg_name; struct sk_buff *skb; size_t copied; int err; if (flags & ...
static int rawv6_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct ipv6_pinfo *np = inet6_sk(sk); struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)msg->msg_name; struct sk_buff *skb; size_t copied; int err; if (flags & ...
static int rawv6_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct ipv6_pinfo *np = inet6_sk(sk); struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)msg->msg_name; struct sk_buff *skb; size_t copied; int err; if (flags & ...
static int rawv6_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct ipv6_pinfo *np = inet6_sk(sk); if (flags & MSG_OOB) { return -EOPNOTSUPP; } if (flags & MSG_ERRQUEUE) { return ipv6_recv_error(sk, msg, len, addr_...
static int rawv6_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct ipv6_pinfo *np = inet6_sk(sk); if (flags & MSG_OOB) { return -EOPNOTSUPP; } if (flags & MSG_ERRQUEUE) { return ipv6_recv_error(sk, msg, len, addr_...
static int rawv6_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct ipv6_pinfo *np = inet6_sk(sk); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (flags & MSG_OOB) { return -EOPNOTSUPP; } if (flags & MSG_ERRQUEUE) { ...
static int rawv6_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct ipv6_pinfo *np = inet6_sk(sk); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (flags & MSG_OOB) { return -EOPNOTSUPP; } if (flags & MSG_ERRQUEUE) { ...
static int rawv6_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct ipv6_pinfo *np = inet6_sk(sk); if (flags & MSG_OOB) { return -EOPNOTSUPP; } if (flags & MSG_ERRQUEUE) { return ipv6_recv_error(sk, msg, len...
CVE-2015-8019
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv6/udp.c
udpv6_recvmsg
int udpv6_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct ipv6_pinfo *np = inet6_sk(sk); struct inet_sock *inet = inet_sk(sk); struct sk_buff *skb; unsigned int ulen, copied; int peeked, off = 0; int err; int is_udp...
int udpv6_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct ipv6_pinfo *np = inet6_sk(sk); struct inet_sock *inet = inet_sk(sk); struct sk_buff *skb; unsigned int ulen, copied; int peeked, off = 0; int err; int is_udp...
int udpv6_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct ipv6_pinfo *np = inet6_sk(sk); struct inet_sock *inet = inet_sk(sk); struct sk_buff *skb; unsigned int ulen, copied; int peeked; int err; int is_udplite = IS...
int udpv6_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct ipv6_pinfo *np = inet6_sk(sk); struct inet_sock *inet = inet_sk(sk); struct sk_buff *skb; unsigned int ulen, copied; int peeked; int err; int is_udplite = IS...
int udpv6_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct ipv6_pinfo *np = inet6_sk(sk); struct inet_sock *inet = inet_sk(sk); int peeked, off = 0; int is_udplite = IS_UDPLITE(sk); if (flags & MSG_ERRQUEUE) { return...
int udpv6_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct ipv6_pinfo *np = inet6_sk(sk); struct inet_sock *inet = inet_sk(sk); int peeked, off = 0; int is_udplite = IS_UDPLITE(sk); if (flags & MSG_ERRQUEUE) { return...
int udpv6_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct ipv6_pinfo *np = inet6_sk(sk); struct inet_sock *inet = inet_sk(sk); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int peeked; /* PLACEHOLDER: DO NOT DELETE THIS COM...
int udpv6_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct ipv6_pinfo *np = inet6_sk(sk); struct inet_sock *inet = inet_sk(sk); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int peeked; /* PLACEHOLDER: DO NOT DELETE THIS COM...
int udpv6_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct ipv6_pinfo *np = inet6_sk(sk); struct inet_sock *inet = inet_sk(sk); int peeked, off = 0; int is_udplite = IS_UDPLITE(sk); if (flags & MSG_ERRQUEUE) { ...
CVE-2015-8019
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/rxrpc/ar-recvmsg.c
rxrpc_recvmsg
int rxrpc_recvmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *msg, size_t len, int flags) { struct rxrpc_skb_priv *sp; struct rxrpc_call *call = NULL, *continue_call = NULL; struct rxrpc_sock *rx = rxrpc_sk(sock->sk); struct sk_buff *skb; long timeo; int copy, ret, ullen, offset, cop...
int rxrpc_recvmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *msg, size_t len, int flags) { struct rxrpc_skb_priv *sp; struct rxrpc_call *call = NULL, *continue_call = NULL; struct rxrpc_sock *rx = rxrpc_sk(sock->sk); struct sk_buff *skb; long timeo; int copy, ret, ullen, offset, cop...
int rxrpc_recvmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *msg, size_t len, int flags) { struct rxrpc_skb_priv *sp; struct rxrpc_call *call = NULL, *continue_call = NULL; struct rxrpc_sock *rx = rxrpc_sk(sock->sk); struct sk_buff *skb; long timeo; int copy, ret, ullen, offset, cop...
int rxrpc_recvmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *msg, size_t len, int flags) { struct rxrpc_skb_priv *sp; struct rxrpc_call *call = NULL, *continue_call = NULL; struct rxrpc_sock *rx = rxrpc_sk(sock->sk); struct sk_buff *skb; long timeo; int copy, ret, ullen, offset, cop...
int rxrpc_recvmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *msg, size_t len, int flags) { struct rxrpc_call *call = NULL, *continue_call = NULL; struct rxrpc_sock *rx = rxrpc_sk(sock->sk); int copy, ret, ullen, offset, copied = 0; _enter(",,,%zu,%d", len, flags); if (flags & (MSG_OOB |...
int rxrpc_recvmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *msg, size_t len, int flags) { struct rxrpc_call *call = NULL, *continue_call = NULL; struct rxrpc_sock *rx = rxrpc_sk(sock->sk); int copy, ret, ullen, offset, copied = 0; _enter(",,,%zu,%d", len, flags); if (flags & (MSG_OOB |...
int rxrpc_recvmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *msg, size_t len, int flags) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct rxrpc_call *call = NULL, *continue_call = NULL; struct rxrpc_sock *rx = rxrpc_sk(sock->sk); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int c...
int rxrpc_recvmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *msg, size_t len, int flags) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct rxrpc_call *call = NULL, *continue_call = NULL; struct rxrpc_sock *rx = rxrpc_sk(sock->sk); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int c...
int rxrpc_recvmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *msg, size_t len, int flags) { struct rxrpc_call *call = NULL, *continue_call = NULL; struct rxrpc_sock *rx = rxrpc_sk(sock->sk); int copy, ret, ullen, offset, copied = 0; _enter(",,,%zu,%d", len, flags); if (flags & (MSG...
CVE-2015-8104
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
arch/x86/kvm/svm.c
db_interception
static int db_interception(struct vcpu_svm *svm) { struct kvm_run *kvm_run = svm->vcpu.run; if (!(svm->vcpu.guest_debug & (KVM_GUESTDBG_SGLESTEP | KVM_GUESTDBG_USE_HW_BP)) && !svm->nmi_singlestep) { kvm_queue_exception(&svm->vcpu, DB_VECTOR); return 1; } if (svm->nmi_singlestep) { ...
static int db_interception(struct vcpu_svm *svm) { struct kvm_run *kvm_run = svm->vcpu.run; if (!(svm->vcpu.guest_debug & (KVM_GUESTDBG_SGLESTEP | KVM_GUESTDBG_USE_HW_BP)) && !svm->nmi_singlestep) { kvm_queue_exception(&svm->vcpu, DB_VECTOR); return 1; } if (svm->nmi_singlestep) { ...
static int db_interception(struct vcpu_svm *svm) { struct kvm_run *kvm_run = svm->vcpu.run; if (!(svm->vcpu.guest_debug & (KVM_GUESTDBG_SGLESTEP | KVM_GUESTDBG_USE_HW_BP)) && !svm->nmi_singlestep) { kvm_queue_exception(&svm->vcpu, DB_VECTOR); return 1; } if (svm->nmi_singlestep) { ...
static int db_interception(struct vcpu_svm *svm) { struct kvm_run *kvm_run = svm->vcpu.run; if (!(svm->vcpu.guest_debug & (KVM_GUESTDBG_SGLESTEP | KVM_GUESTDBG_USE_HW_BP)) && !svm->nmi_singlestep) { kvm_queue_exception(&svm->vcpu, DB_VECTOR); return 1; } if (svm->nmi_singlestep) { ...
static int db_interception(struct vcpu_svm *svm) { if (svm->nmi_singlestep) { if (!(svm->vcpu.guest_debug & KVM_GUESTDBG_SGLESTEP)) { svm->vmcb->save.rflags &= ~(X86_EFLAGS_TF | X86_EFLAGS_RF); } update_db_bp_intercept(&svm->vcpu); } if (svm->vcpu.guest_debug & (KVM_GUEST...
static int db_interception(struct vcpu_svm *svm) { if (svm->nmi_singlestep) { if (!(svm->vcpu.guest_debug & KVM_GUESTDBG_SGLESTEP)) { svm->vmcb->save.rflags &= ~(X86_EFLAGS_TF | X86_EFLAGS_RF); } } if (svm->vcpu.guest_debug & (KVM_GUESTDBG_SGLESTEP | KVM_GUESTDBG_USE_HW_BP)) { ...
static int db_interception(struct vcpu_svm *svm) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (svm->nmi_singlestep) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!(svm->vcpu.guest_debug & KVM_GUESTDBG_SGLESTEP)) { svm->vmcb->save.rflags &= ~(X86_EFLAGS_TF | X86_EFLAGS_RF); ...
static int db_interception(struct vcpu_svm *svm) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (svm->nmi_singlestep) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!(svm->vcpu.guest_debug & KVM_GUESTDBG_SGLESTEP)) { svm->vmcb->save.rflags &= ~(X86_EFLAGS_TF | X86_EFLAGS_RF); ...
static int db_interception(struct vcpu_svm *svm) { if (svm->nmi_singlestep) { if (!(svm->vcpu.guest_debug & KVM_GUESTDBG_SGLESTEP)) { svm->vmcb->save.rflags &= ~(X86_EFLAGS_TF | X86_EFLAGS_RF); } - update_db_bp_intercept(&svm->vcpu); } if (svm->vcpu.guest_debug & (K...
CVE-2015-8104
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
arch/x86/kvm/svm.c
enable_nmi_window
static int enable_nmi_window(struct kvm_vcpu *vcpu) { struct vcpu_svm *svm = to_svm(vcpu); if ((svm->vcpu.arch.hflags & (HF_NMI_MASK | HF_IRET_MASK)) == HF_NMI_MASK) { return 0; } svm->nmi_singlestep = true; svm->vmcb->save.rflags |= (X86_EFLAGS_TF | X86_EFLAGS_RF); update_db...
static int enable_nmi_window(struct kvm_vcpu *vcpu) { struct vcpu_svm *svm = to_svm(vcpu); if ((svm->vcpu.arch.hflags & (HF_NMI_MASK | HF_IRET_MASK)) == HF_NMI_MASK) { return 0; } svm->nmi_singlestep = true; svm->vmcb->save.rflags |= (X86_EFLAGS_TF | X86_EFLAGS_RF); return 0;...
static void enable_nmi_window(struct kvm_vcpu *vcpu) { struct vcpu_svm *svm = to_svm(vcpu); if ((svm->vcpu.arch.hflags & (HF_NMI_MASK | HF_IRET_MASK)) == HF_NMI_MASK) { return; } svm->nmi_singlestep = true; svm->vmcb->save.rflags |= (X86_EFLAGS_TF | X86_EFLAGS_RF); update_db_...
static void enable_nmi_window(struct kvm_vcpu *vcpu) { struct vcpu_svm *svm = to_svm(vcpu); if ((svm->vcpu.arch.hflags & (HF_NMI_MASK | HF_IRET_MASK)) == HF_NMI_MASK) { return; } svm->nmi_singlestep = true; svm->vmcb->save.rflags |= (X86_EFLAGS_TF | X86_EFLAGS_RF); }
static int enable_nmi_window(struct kvm_vcpu *vcpu) { struct vcpu_svm *svm = to_svm(vcpu); svm->vmcb->save.rflags |= (X86_EFLAGS_TF | X86_EFLAGS_RF); update_db_bp_intercept(vcpu); return 0; }
static int enable_nmi_window(struct kvm_vcpu *vcpu) { struct vcpu_svm *svm = to_svm(vcpu); svm->vmcb->save.rflags |= (X86_EFLAGS_TF | X86_EFLAGS_RF); return 0; }
static void enable_nmi_window(struct kvm_vcpu *vcpu) { struct vcpu_svm *svm = to_svm(vcpu); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ svm->vmcb->save.rflags |= (X86_EFLAGS_TF | X86_EFLAGS_RF); update_db_bp_intercept(vcpu); }
static void enable_nmi_window(struct kvm_vcpu *vcpu) { struct vcpu_svm *svm = to_svm(vcpu); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ svm->vmcb->save.rflags |= (X86_EFLAGS_TF | X86_EFLAGS_RF); }
static int enable_nmi_window(struct kvm_vcpu *vcpu) { struct vcpu_svm *svm = to_svm(vcpu); svm->vmcb->save.rflags |= (X86_EFLAGS_TF | X86_EFLAGS_RF); - update_db_bp_intercept(vcpu); return 0; }
CVE-2015-8104
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
arch/x86/kvm/svm.c
init_vmcb
static void init_vmcb(struct vcpu_svm *svm) { struct vmcb_control_area *control = &svm->vmcb->control; struct vmcb_save_area *save = &svm->vmcb->save; svm->vcpu.fpu_active = 1; svm->vcpu.arch.hflags = 0; set_cr_intercept(svm, TERCEPT_CR0_READ); set_cr_intercept(svm, TERCEPT_CR3_READ); set_cr...
static void init_vmcb(struct vcpu_svm *svm) { struct vmcb_control_area *control = &svm->vmcb->control; struct vmcb_save_area *save = &svm->vmcb->save; svm->vcpu.fpu_active = 1; svm->vcpu.arch.hflags = 0; set_cr_intercept(svm, TERCEPT_CR0_READ); set_cr_intercept(svm, TERCEPT_CR3_READ); set_cr...
static void init_vmcb(struct vcpu_svm *svm) { struct vmcb_control_area *control = &svm->vmcb->control; struct vmcb_save_area *save = &svm->vmcb->save; svm->vcpu.fpu_active = 1; svm->vcpu.arch.hflags = 0; set_cr_intercept(svm, TERCEPT_CR0_READ); set_cr_intercept(svm, TERCEPT_CR3_READ); set_cr...
static void init_vmcb(struct vcpu_svm *svm) { struct vmcb_control_area *control = &svm->vmcb->control; struct vmcb_save_area *save = &svm->vmcb->save; svm->vcpu.fpu_active = 1; svm->vcpu.arch.hflags = 0; set_cr_intercept(svm, TERCEPT_CR0_READ); set_cr_intercept(svm, TERCEPT_CR3_READ); set_cr...
static void init_vmcb(struct vcpu_svm *svm) { set_cr_intercept(svm, TERCEPT_CR0_READ); set_cr_intercept(svm, TERCEPT_CR3_READ); set_cr_intercept(svm, TERCEPT_CR4_READ); set_cr_intercept(svm, TERCEPT_CR0_WRITE); set_cr_intercept(svm, TERCEPT_CR3_WRITE); set_cr_intercept(svm, TERCEPT_CR4_WRITE); ...
static void init_vmcb(struct vcpu_svm *svm) { set_cr_intercept(svm, TERCEPT_CR0_READ); set_cr_intercept(svm, TERCEPT_CR3_READ); set_cr_intercept(svm, TERCEPT_CR4_READ); set_cr_intercept(svm, TERCEPT_CR0_WRITE); set_cr_intercept(svm, TERCEPT_CR3_WRITE); set_cr_intercept(svm, TERCEPT_CR4_WRITE); ...
static void init_vmcb(struct vcpu_svm *svm) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ set_cr_intercept(svm, TERCEPT_CR0_READ); set_cr_intercept(svm, TERCEPT_CR3_READ); set_cr_intercept(svm, TERCEPT_CR4_READ); set_cr_intercept(svm, TERCEPT_CR0_WRITE); set_cr_intercept(svm, TERCEPT_CR3_WRITE...
static void init_vmcb(struct vcpu_svm *svm) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ set_cr_intercept(svm, TERCEPT_CR0_READ); set_cr_intercept(svm, TERCEPT_CR3_READ); set_cr_intercept(svm, TERCEPT_CR4_READ); set_cr_intercept(svm, TERCEPT_CR0_WRITE); set_cr_intercept(svm, TERCEPT_CR3_WRITE...
static void init_vmcb(struct vcpu_svm *svm) { set_cr_intercept(svm, TERCEPT_CR0_READ); set_cr_intercept(svm, TERCEPT_CR3_READ); set_cr_intercept(svm, TERCEPT_CR4_READ); set_cr_intercept(svm, TERCEPT_CR0_WRITE); set_cr_intercept(svm, TERCEPT_CR3_WRITE); set_cr_intercept(svm, TERCEPT_CR4_WR...
CVE-2015-8374
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/btrfs/inode.c
btrfs_truncate_inode_items
int btrfs_truncate_inode_items(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *inode, u64 new_size, u32 min_type) { struct btrfs_path *path; struct extent_buffer *leaf; struct btrfs_file_extent_item *fi; struct btrfs_key key; struct btrfs_key found_key; u64 extent_start ...
int btrfs_truncate_inode_items(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *inode, u64 new_size, u32 min_type) { struct btrfs_path *path; struct extent_buffer *leaf; struct btrfs_file_extent_item *fi; struct btrfs_key key; struct btrfs_key found_key; u64 extent_start ...
int btrfs_truncate_inode_items(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *inode, u64 new_size, u32 min_type) { struct btrfs_path *path; struct extent_buffer *leaf; struct btrfs_file_extent_item *fi; struct btrfs_key key; struct btrfs_key found_key; u64 extent_start ...
int btrfs_truncate_inode_items(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *inode, u64 new_size, u32 min_type) { struct btrfs_path *path; struct extent_buffer *leaf; struct btrfs_file_extent_item *fi; struct btrfs_key key; struct btrfs_key found_key; u64 extent_start ...
int btrfs_truncate_inode_items(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *inode, u64 new_size, u32 min_type) { u64 mask = root->sectorsize - 1; int pending_del_nr = 0; int pending_del_slot = 0; u64 ino = btrfs_ino(inode); BUG_ON(new_size > 0 && min_type != BTRFS_EXTENT_...
int btrfs_truncate_inode_items(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *inode, u64 new_size, u32 min_type) { u64 mask = root->sectorsize - 1; int pending_del_nr = 0; int pending_del_slot = 0; u64 ino = btrfs_ino(inode); BUG_ON(new_size > 0 && min_type != BTRFS_EXTENT_...
int btrfs_truncate_inode_items(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *inode, u64 new_size, u32 min_type) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ u64 last_size = new_size; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int pending_del_nr = 0; int pending_del_s...
int btrfs_truncate_inode_items(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *inode, u64 new_size, u32 min_type) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ u64 last_size = new_size; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int pending_del_nr = 0; int pending_del_s...
int btrfs_truncate_inode_items(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *inode, u64 new_size, u32 min_type) { u64 mask = root->sectorsize - 1; int pending_del_nr = 0; int pending_del_slot = 0; u64 ino = btrfs_ino(inode); BUG_ON(new_size > 0 && min_type != BTRFS_E...
CVE-2015-8543
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ax25/af_ax25.c
ax25_create
static int ax25_create(struct net *net, struct socket *sock, int protocol, int kern) { struct sock *sk; ax25_cb *ax25; if (!net_eq(net, &init_net)) { return -EAFNOSUPPORT; } switch (sock->type) { case SOCK_DGRAM: if (protocol == 0 || protocol == PF_AX25) { protocol = ...
static int ax25_create(struct net *net, struct socket *sock, int protocol, int kern) { struct sock *sk; ax25_cb *ax25; if (protocol < 0 || protocol > SK_PROTOCOL_MAX) { return -EVAL; } if (!net_eq(net, &init_net)) { return -EAFNOSUPPORT; } switch (sock->type) { case SOCK_...
static int ax25_create(struct net *net, struct socket *sock, int protocol, int kern) { struct sock *sk; ax25_cb *ax25; if (!net_eq(net, &init_net)) { return -EAFNOSUPPORT; } switch (sock->type) { case SOCK_DGRAM: if (protocol == 0 || protocol == PF_AX25) { protocol = ...
static int ax25_create(struct net *net, struct socket *sock, int protocol, int kern) { struct sock *sk; ax25_cb *ax25; if (protocol < 0 || protocol > SK_PROTOCOL_MAX) { return -EVAL; } if (!net_eq(net, &init_net)) { return -EAFNOSUPPORT; } switch (sock->type) { case SOCK_...
static int ax25_create(struct net *net, struct socket *sock, int protocol, int kern) { ax25_cb *ax25; if (!net_eq(net, &init_net)) { return -EAFNOSUPPORT; } switch (sock->type) { case SOCK_DGRAM: break; } sk = sk_alloc(net, PF_AX25, GFP_ATOMIC, &ax25_proto); if (sk == NUL...
static int ax25_create(struct net *net, struct socket *sock, int protocol, int kern) { ax25_cb *ax25; if (protocol < 0 || protocol > SK_PROTOCOL_MAX) { return -EVAL; } if (!net_eq(net, &init_net)) { return -EAFNOSUPPORT; } switch (sock->type) { case SOCK_DGRAM: break;...
static int ax25_create(struct net *net, struct socket *sock, int protocol, int kern) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ax25_cb *ax25; if (!net_eq(net, &init_net)) { return -EAFNOSUPPORT; } switch (sock->type) { case SOCK_DGRAM: /* PLACEHOLDER: DO NOT DELETE THIS COMMENT...
static int ax25_create(struct net *net, struct socket *sock, int protocol, int kern) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ax25_cb *ax25; if (protocol < 0 || protocol > SK_PROTOCOL_MAX) { return -EVAL; } if (!net_eq(net, &init_net)) { return -EAFNOSUPPORT; } switch ...
static int ax25_create(struct net *net, struct socket *sock, int protocol, int kern) { ax25_cb *ax25; + if (protocol < 0 || protocol > SK_PROTOCOL_MAX) { + return -EVAL; + } if (!net_eq(net, &init_net)) { return -EAFNOSUPPORT; } switch (sock->type) { case SOCK_DGRAM: ...
CVE-2015-8543
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/decnet/af_decnet.c
dn_create
static int dn_create(struct net *net, struct socket *sock, int protocol, int kern) { struct sock *sk; if (!net_eq(net, &init_net)) { return -EAFNOSUPPORT; } switch (sock->type) { case SOCK_SEQPACKET: if (protocol != DNPROTO_NSP) { return -EPROTONOSUPPORT; } ...
static int dn_create(struct net *net, struct socket *sock, int protocol, int kern) { struct sock *sk; if (protocol < 0 || protocol > SK_PROTOCOL_MAX) { return -EVAL; } if (!net_eq(net, &init_net)) { return -EAFNOSUPPORT; } switch (sock->type) { case SOCK_SEQPACKET: if...
static int dn_create(struct net *net, struct socket *sock, int protocol, int kern) { struct sock *sk; if (!net_eq(net, &init_net)) { return -EAFNOSUPPORT; } switch (sock->type) { case SOCK_SEQPACKET: if (protocol != DNPROTO_NSP) { return -EPROTONOSUPPORT; } ...
static int dn_create(struct net *net, struct socket *sock, int protocol, int kern) { struct sock *sk; if (protocol < 0 || protocol > SK_PROTOCOL_MAX) { return -EVAL; } if (!net_eq(net, &init_net)) { return -EAFNOSUPPORT; } switch (sock->type) { case SOCK_SEQPACKET: if...
static int dn_create(struct net *net, struct socket *sock, int protocol, int kern) { struct sock *sk; if (!net_eq(net, &init_net)) { return -EAFNOSUPPORT; } switch (sock->type) { case SOCK_SEQPACKET: if (protocol != DNPROTO_NSP) { return -EPROTONOSUPPORT; } ...
static int dn_create(struct net *net, struct socket *sock, int protocol, int kern) { struct sock *sk; if (protocol < 0 || protocol > SK_PROTOCOL_MAX) { return -EVAL; } if (!net_eq(net, &init_net)) { return -EAFNOSUPPORT; } switch (sock->type) { case SOCK_SEQPACKET: if...
static int dn_create(struct net *net, struct socket *sock, int protocol, int kern) { struct sock *sk; if (!net_eq(net, &init_net)) { return -EAFNOSUPPORT; } switch (sock->type) { case SOCK_SEQPACKET: if (protocol != DNPROTO_NSP) { return -EPROTONOSUPPORT; } ...
static int dn_create(struct net *net, struct socket *sock, int protocol, int kern) { struct sock *sk; if (protocol < 0 || protocol > SK_PROTOCOL_MAX) { return -EVAL; } if (!net_eq(net, &init_net)) { return -EAFNOSUPPORT; } switch (sock->type) { case SOCK_SEQPACKET: if...
static int dn_create(struct net *net, struct socket *sock, int protocol, int kern) { struct sock *sk; + if (protocol < 0 || protocol > SK_PROTOCOL_MAX) { + return -EVAL; + } if (!net_eq(net, &init_net)) { return -EAFNOSUPPORT; } switch (sock->type) { case SOCK_SEQPACKET: ...
CVE-2015-8543
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv4/af_inet.c
inet_create
static int inet_create(struct net *net, struct socket *sock, int protocol, int kern) { struct sock *sk; struct inet_protosw *answer; struct inet_sock *inet; struct proto *answer_prot; unsigned char answer_flags; char answer_no_check; int try_loading_module = 0; int err; if (unlikely(...
static int inet_create(struct net *net, struct socket *sock, int protocol, int kern) { struct sock *sk; struct inet_protosw *answer; struct inet_sock *inet; struct proto *answer_prot; unsigned char answer_flags; char answer_no_check; int try_loading_module = 0; int err; if (protocol ...
static int inet_create(struct net *net, struct socket *sock, int protocol, int kern) { struct sock *sk; struct inet_protosw *answer; struct inet_sock *inet; struct proto *answer_prot; unsigned char answer_flags; int try_loading_module = 0; int err; sock->state = SS_UNCONNECTED; lookup_pr...
static int inet_create(struct net *net, struct socket *sock, int protocol, int kern) { struct sock *sk; struct inet_protosw *answer; struct inet_sock *inet; struct proto *answer_prot; unsigned char answer_flags; int try_loading_module = 0; int err; if (protocol < 0 || protocol >= IPPROTO...
static int inet_create(struct net *net, struct socket *sock, int protocol, int kern) { int try_loading_module = 0; int err; lookup_protocol: err = -ESOCKTNOSUPPORT; list_for_each_entry_rcu(answer, &inetsw[sock->type], list) { if (protocol == answer->protocol) { } else { if (I...
static int inet_create(struct net *net, struct socket *sock, int protocol, int kern) { int try_loading_module = 0; int err; if (protocol < 0 || protocol >= IPPROTO_MAX) { return -EVAL; } lookup_protocol: err = -ESOCKTNOSUPPORT; list_for_each_entry_rcu(answer, &inetsw[sock->type], list) {...
static int inet_create(struct net *net, struct socket *sock, int protocol, int kern) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int try_loading_module = 0; int err; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ lookup_protocol: err = -ESOCKTNOSUPPORT; /* PLACEHOLDER: DO NOT DELETE THIS COMM...
static int inet_create(struct net *net, struct socket *sock, int protocol, int kern) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int try_loading_module = 0; int err; if (protocol < 0 || protocol >= IPPROTO_MAX) { return -EVAL; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ lookup_pr...
static int inet_create(struct net *net, struct socket *sock, int protocol, int kern) { int try_loading_module = 0; int err; + if (protocol < 0 || protocol >= IPPROTO_MAX) { + return -EVAL; + } lookup_protocol: err = -ESOCKTNOSUPPORT; list_for_each_entry_rcu(answer, &inetsw[sock->type]...
CVE-2015-8543
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv6/af_inet6.c
inet6_create
static int inet6_create(struct net *net, struct socket *sock, int protocol, int kern) { struct inet_sock *inet; struct ipv6_pinfo *np; struct sock *sk; struct inet_protosw *answer; struct proto *answer_prot; unsigned char answer_flags; char answer_no_check; int try_loading_module = 0; ...
static int inet6_create(struct net *net, struct socket *sock, int protocol, int kern) { struct inet_sock *inet; struct ipv6_pinfo *np; struct sock *sk; struct inet_protosw *answer; struct proto *answer_prot; unsigned char answer_flags; char answer_no_check; int try_loading_module = 0; ...
static int inet6_create(struct net *net, struct socket *sock, int protocol, int kern) { struct inet_sock *inet; struct ipv6_pinfo *np; struct sock *sk; struct inet_protosw *answer; struct proto *answer_prot; unsigned char answer_flags; int try_loading_module = 0; int err; lookup_protocol...
static int inet6_create(struct net *net, struct socket *sock, int protocol, int kern) { struct inet_sock *inet; struct ipv6_pinfo *np; struct sock *sk; struct inet_protosw *answer; struct proto *answer_prot; unsigned char answer_flags; int try_loading_module = 0; int err; if (protoco...
static int inet6_create(struct net *net, struct socket *sock, int protocol, int kern) { int try_loading_module = 0; int err; lookup_protocol: err = -ESOCKTNOSUPPORT; list_for_each_entry_rcu(answer, &inetsw6[sock->type], list) { if (protocol == answer->protocol) { } else { if ...
static int inet6_create(struct net *net, struct socket *sock, int protocol, int kern) { int try_loading_module = 0; int err; if (protocol < 0 || protocol >= IPPROTO_MAX) { return -EVAL; } lookup_protocol: err = -ESOCKTNOSUPPORT; list_for_each_entry_rcu(answer, &inetsw6[sock->type], list)...
static int inet6_create(struct net *net, struct socket *sock, int protocol, int kern) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int try_loading_module = 0; int err; lookup_protocol: err = -ESOCKTNOSUPPORT; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ list_for_each_entry_rcu(answer, &inets...
static int inet6_create(struct net *net, struct socket *sock, int protocol, int kern) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int try_loading_module = 0; int err; if (protocol < 0 || protocol >= IPPROTO_MAX) { return -EVAL; } lookup_protocol: err = -ESOCKTNOSUPPORT; /* PLACEH...
static int inet6_create(struct net *net, struct socket *sock, int protocol, int kern) { int try_loading_module = 0; int err; + if (protocol < 0 || protocol >= IPPROTO_MAX) { + return -EVAL; + } lookup_protocol: err = -ESOCKTNOSUPPORT; list_for_each_entry_rcu(answer, &inetsw6[sock->typ...
CVE-2015-8543
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/irda/af_irda.c
irda_create
static int irda_create(struct net *net, struct socket *sock, int protocol, int kern) { struct sock *sk; struct irda_sock *self; IRDA_DEBUG(2, "%s()\n", __func__); if (net != &init_net) { return -EAFNOSUPPORT; } switch (sock->type) { case SOCK_STREAM: case SOCK_SEQPACKET: case...
static int irda_create(struct net *net, struct socket *sock, int protocol, int kern) { struct sock *sk; struct irda_sock *self; IRDA_DEBUG(2, "%s()\n", __func__); if (protocol < 0 || protocol > SK_PROTOCOL_MAX) { return -EVAL; } if (net != &init_net) { return -EAFNOSUPPORT; }...
static int irda_create(struct net *net, struct socket *sock, int protocol, int kern) { struct sock *sk; struct irda_sock *self; if (net != &init_net) { return -EAFNOSUPPORT; } switch (sock->type) { case SOCK_STREAM: case SOCK_SEQPACKET: case SOCK_DGRAM: break; default...
static int irda_create(struct net *net, struct socket *sock, int protocol, int kern) { struct sock *sk; struct irda_sock *self; if (protocol < 0 || protocol > SK_PROTOCOL_MAX) { return -EVAL; } if (net != &init_net) { return -EAFNOSUPPORT; } switch (sock->type) { case SOC...
static int irda_create(struct net *net, struct socket *sock, int protocol, int kern) { IRDA_DEBUG(2, "%s()\n", __func__); if (net != &init_net) { return -EAFNOSUPPORT; } sk->sk_protocol = protocol; }
static int irda_create(struct net *net, struct socket *sock, int protocol, int kern) { IRDA_DEBUG(2, "%s()\n", __func__); if (protocol < 0 || protocol > SK_PROTOCOL_MAX) { return -EVAL; } if (net != &init_net) { return -EAFNOSUPPORT; } sk->sk_protocol = protocol; }
static int irda_create(struct net *net, struct socket *sock, int protocol, int kern) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (net != &init_net) { return -EAFNOSUPPORT; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ sk->sk_protocol = protocol; /* PLACEHOLDER: DO NOT DELETE THI...
static int irda_create(struct net *net, struct socket *sock, int protocol, int kern) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (protocol < 0 || protocol > SK_PROTOCOL_MAX) { return -EVAL; } if (net != &init_net) { return -EAFNOSUPPORT; } /* PLACEHOLDER: DO NOT DELETE THI...
static int irda_create(struct net *net, struct socket *sock, int protocol, int kern) { IRDA_DEBUG(2, "%s()\n", __func__); + if (protocol < 0 || protocol > SK_PROTOCOL_MAX) { + return -EVAL; + } if (net != &init_net) { return -EAFNOSUPPORT; } sk->sk_protocol = protocol; }
CVE-2015-8551
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/xen/xen-pciback/pciback_ops.c
xen_pcibk_enable_msi
static int xen_pcibk_enable_msi(struct xen_pcibk_device *pdev, struct pci_dev *dev, struct xen_pci_op *op) { struct xen_pcibk_dev_data *dev_data; int status; if (unlikely(verbose_request)) { printk(KERN_DEBUG DRV_NAME ": %s: enable MSI\n", pci_name(dev)); } status = pci_enable_msi(dev); ...
static int xen_pcibk_enable_msi(struct xen_pcibk_device *pdev, struct pci_dev *dev, struct xen_pci_op *op) { struct xen_pcibk_dev_data *dev_data; int status; if (unlikely(verbose_request)) { printk(KERN_DEBUG DRV_NAME ": %s: enable MSI\n", pci_name(dev)); } if (dev->msi_enabled) { st...
static int xen_pcibk_enable_msi(struct xen_pcibk_device *pdev, struct pci_dev *dev, struct xen_pci_op *op) { struct xen_pcibk_dev_data *dev_data; int status; if (unlikely(verbose_request)) { printk(KERN_DEBUG DRV_NAME ": %s: enable MSI\n", pci_name(dev)); } status = pci_enable_msi(dev); ...
static int xen_pcibk_enable_msi(struct xen_pcibk_device *pdev, struct pci_dev *dev, struct xen_pci_op *op) { struct xen_pcibk_dev_data *dev_data; int status; if (unlikely(verbose_request)) { printk(KERN_DEBUG DRV_NAME ": %s: enable MSI\n", pci_name(dev)); } if (dev->msi_enabled) { st...
static int xen_pcibk_enable_msi(struct xen_pcibk_device *pdev, struct pci_dev *dev, struct xen_pci_op *op) { status = pci_enable_msi(dev); if (status) { return XEN_PCI_ERR_op_failed; } }
static int xen_pcibk_enable_msi(struct xen_pcibk_device *pdev, struct pci_dev *dev, struct xen_pci_op *op) { if (dev->msi_enabled) { status = -EALREADY; } else if (dev->msix_enabled) { status = -ENXIO; } else { status = pci_enable_msi(dev); } if (status) { return XEN_...
static int xen_pcibk_enable_msi(struct xen_pcibk_device *pdev, struct pci_dev *dev, struct xen_pci_op *op) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ status = pci_enable_msi(dev); if (status) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ return XEN_PCI_ERR_op_failed; } /* PLACEHOL...
static int xen_pcibk_enable_msi(struct xen_pcibk_device *pdev, struct pci_dev *dev, struct xen_pci_op *op) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (dev->msi_enabled) { status = -EALREADY; } else if (dev->msix_enabled) { status = -ENXIO; } else { status = pci_enable_msi...
static int xen_pcibk_enable_msi(struct xen_pcibk_device *pdev, struct pci_dev *dev, struct xen_pci_op *op) { - status = pci_enable_msi(dev); + if (dev->msi_enabled) { + status = -EALREADY; + } else if (dev->msix_enabled) { + status = -ENXIO; + } else { + status = pci_enable_msi(dev); +...