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-2851 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | net/ipv4/ping.c | ping_init_sock | int ping_init_sock(struct sock *sk) {
struct net *net = sock_net(sk);
kgid_t group = current_egid();
struct group_info *group_info = get_current_groups();
int i, j, count = group_info->ngroups;
kgid_t low, high;
inet_get_ping_group_range_net(net, &low, &high);
if (gid_lte(low, group) && gid_... | int ping_init_sock(struct sock *sk) {
struct net *net = sock_net(sk);
kgid_t group = current_egid();
struct group_info *group_info;
int i, j, count;
kgid_t low, high;
int ret = 0;
inet_get_ping_group_range_net(net, &low, &high);
if (gid_lte(low, group) && gid_lte(group, high)) {
... | static int ping_init_sock(struct sock *sk) {
struct net *net = sock_net(sk);
gid_t group = current_egid();
gid_t range[2];
struct group_info *group_info = get_current_groups();
int i, j, count = group_info->ngroups;
inet_get_ping_group_range_net(net, range, range+1);
if (range[0] <= group &&... | static int ping_init_sock(struct sock *sk) {
struct net *net = sock_net(sk);
gid_t group = current_egid();
gid_t range[2];
struct group_info *group_info;
int i, j, count;
int ret = 0;
inet_get_ping_group_range_net(net, range, range+1);
if (range[0] <= group && group <= range[1]) {
... | int ping_init_sock(struct sock *sk) {
kgid_t group = current_egid();
struct group_info *group_info = get_current_groups();
int i, j, count = group_info->ngroups;
kgid_t low, high;
inet_get_ping_group_range_net(net, &low, &high);
if (gid_lte(low, group) && gid_lte(group, high)) {
return 0... | int ping_init_sock(struct sock *sk) {
kgid_t group = current_egid();
struct group_info *group_info;
int i, j, count;
kgid_t low, high;
int ret = 0;
inet_get_ping_group_range_net(net, &low, &high);
if (gid_lte(low, group) && gid_lte(group, high)) {
return 0;
}
group_info = get... | static int ping_init_sock(struct sock *sk) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
gid_t group = current_egid();
gid_t range[2];
struct group_info *group_info = get_current_groups();
int i, j, count = group_info->ngroups;
inet_get_ping_group_range_net(net, range, range+1);
if (range[... | static int ping_init_sock(struct sock *sk) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
gid_t group = current_egid();
gid_t range[2];
struct group_info *group_info;
int i, j, count;
int ret = 0;
inet_get_ping_group_range_net(net, range, range+1);
if (range[0] <= group && group <= rang... | int ping_init_sock(struct sock *sk) {
kgid_t group = current_egid();
- struct group_info *group_info = get_current_groups();
- int i, j, count = group_info->ngroups;
+ struct group_info *group_info;
+ int i, j, count;
kgid_t low, high;
+ int ret = 0;
inet_get_ping_group_range_net(net, &lo... |
CVE-2014-3122 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | mm/rmap.c | try_to_unmap_cluster | static int try_to_unmap_cluster(unsigned long cursor, unsigned int *mapcount, struct vm_area_struct *vma, struct page *check_page) {
struct mm_struct *mm = vma->vm_mm;
pgd_t *pgd;
pud_t *pud;
pmd_t *pmd;
pte_t *pte;
pte_t pteval;
spinlock_t *ptl;
struct page *page;
unsigned long addr... | static int try_to_unmap_cluster(unsigned long cursor, unsigned int *mapcount, struct vm_area_struct *vma, struct page *check_page) {
struct mm_struct *mm = vma->vm_mm;
pgd_t *pgd;
pud_t *pud;
pmd_t *pmd;
pte_t *pte;
pte_t pteval;
spinlock_t *ptl;
struct page *page;
unsigned long addr... | static int try_to_unmap_cluster(unsigned long cursor, unsigned int *mapcount, struct vm_area_struct *vma, struct page *check_page) {
struct mm_struct *mm = vma->vm_mm;
pmd_t *pmd;
pte_t *pte;
pte_t pteval;
spinlock_t *ptl;
struct page *page;
unsigned long address;
unsigned long mmun_star... | static int try_to_unmap_cluster(unsigned long cursor, unsigned int *mapcount, struct vm_area_struct *vma, struct page *check_page) {
struct mm_struct *mm = vma->vm_mm;
pmd_t *pmd;
pte_t *pte;
pte_t pteval;
spinlock_t *ptl;
struct page *page;
unsigned long address;
unsigned long mmun_star... | static int try_to_unmap_cluster(unsigned long cursor, unsigned int *mapcount, struct vm_area_struct *vma, struct page *check_page) {
struct mm_struct *mm = vma->vm_mm;
address = (vma->vm_start + cursor) & CLUSTER_MASK;
end = address + CLUSTER_SIZE;
if (address < vma->vm_start) {
address = vma->v... | static int try_to_unmap_cluster(unsigned long cursor, unsigned int *mapcount, struct vm_area_struct *vma, struct page *check_page) {
struct mm_struct *mm = vma->vm_mm;
address = (vma->vm_start + cursor) & CLUSTER_MASK;
end = address + CLUSTER_SIZE;
if (address < vma->vm_start) {
address = vma->v... | static int try_to_unmap_cluster(unsigned long cursor, unsigned int *mapcount, struct vm_area_struct *vma, struct page *check_page) {
struct mm_struct *mm = vma->vm_mm;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
address = (vma->vm_start + cursor) & CLUSTER_MASK;
end = address + CLUSTER_SIZE;
if (a... | static int try_to_unmap_cluster(unsigned long cursor, unsigned int *mapcount, struct vm_area_struct *vma, struct page *check_page) {
struct mm_struct *mm = vma->vm_mm;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
address = (vma->vm_start + cursor) & CLUSTER_MASK;
end = address + CLUSTER_SIZE;
if (a... | static int try_to_unmap_cluster(unsigned long cursor, unsigned int *mapcount, struct vm_area_struct *vma, struct page *check_page) {
struct mm_struct *mm = vma->vm_mm;
address = (vma->vm_start + cursor) & CLUSTER_MASK;
end = address + CLUSTER_SIZE;
if (address < vma->vm_start) {
address = ... |
CVE-2014-3144 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | net/core/filter.c | sk_run_filter | unsigned int sk_run_filter(const struct sk_buff *skb, const struct sock_filter *fentry) {
void *ptr;
u32 A = 0;
u32 X = 0;
u32 mem[BPF_MEMWORDS];
u32 tmp;
int k;
for (;; fentry++) {
const u32 K = fentry->k;
switch (fentry->code) {
case BPF_S_ALU_ADD_X:
A +... | unsigned int sk_run_filter(const struct sk_buff *skb, const struct sock_filter *fentry) {
void *ptr;
u32 A = 0;
u32 X = 0;
u32 mem[BPF_MEMWORDS];
u32 tmp;
int k;
for (;; fentry++) {
const u32 K = fentry->k;
switch (fentry->code) {
case BPF_S_ALU_ADD_X:
A +... | unsigned int sk_run_filter(const struct sk_buff *skb, const struct sock_filter *fentry) {
void *ptr;
u32 A = 0;
u32 X = 0;
u32 mem[BPF_MEMWORDS];
u32 tmp;
int k;
for (;; fentry++) {
const u32 K = fentry->k;
switch (fentry->code) {
case BPF_S_ALU_ADD_X:
A +... | unsigned int sk_run_filter(const struct sk_buff *skb, const struct sock_filter *fentry) {
void *ptr;
u32 A = 0;
u32 X = 0;
u32 mem[BPF_MEMWORDS];
u32 tmp;
int k;
for (;; fentry++) {
const u32 K = fentry->k;
switch (fentry->code) {
case BPF_S_ALU_ADD_X:
A +... | unsigned int sk_run_filter(const struct sk_buff *skb, const struct sock_filter *fentry) {
u32 A = 0;
u32 X = 0;
for (;; fentry++) {
const u32 K = fentry->k;
switch (fentry->code) {
case BPF_S_ALU_ADD_X:
A += X;
case BPF_S_ALU_ADD_K:
A += K;
cas... | unsigned int sk_run_filter(const struct sk_buff *skb, const struct sock_filter *fentry) {
u32 A = 0;
u32 X = 0;
for (;; fentry++) {
const u32 K = fentry->k;
switch (fentry->code) {
case BPF_S_ALU_ADD_X:
A += X;
case BPF_S_ALU_ADD_K:
A += K;
cas... | unsigned int sk_run_filter(const struct sk_buff *skb, const struct sock_filter *fentry) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
u32 A = 0;
u32 X = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
for (;; fentry++) {
const u32 K = fentry->k;
switch (fentry->code) {
cas... | unsigned int sk_run_filter(const struct sk_buff *skb, const struct sock_filter *fentry) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
u32 A = 0;
u32 X = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
for (;; fentry++) {
const u32 K = fentry->k;
switch (fentry->code) {
cas... | unsigned int sk_run_filter(const struct sk_buff *skb, const struct sock_filter *fentry) {
u32 A = 0;
u32 X = 0;
for (;; fentry++) {
const u32 K = fentry->k;
switch (fentry->code) {
case BPF_S_ALU_ADD_X:
A += X;
case BPF_S_ALU_ADD_K:
A += K;
... |
CVE-2014-3145 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | net/core/filter.c | sk_run_filter | unsigned int sk_run_filter(const struct sk_buff *skb, const struct sock_filter *fentry) {
void *ptr;
u32 A = 0;
u32 X = 0;
u32 mem[BPF_MEMWORDS];
u32 tmp;
int k;
for (;; fentry++) {
const u32 K = fentry->k;
switch (fentry->code) {
case BPF_S_ALU_ADD_X:
A +... | unsigned int sk_run_filter(const struct sk_buff *skb, const struct sock_filter *fentry) {
void *ptr;
u32 A = 0;
u32 X = 0;
u32 mem[BPF_MEMWORDS];
u32 tmp;
int k;
for (;; fentry++) {
const u32 K = fentry->k;
switch (fentry->code) {
case BPF_S_ALU_ADD_X:
A +... | unsigned int sk_run_filter(const struct sk_buff *skb, const struct sock_filter *fentry) {
void *ptr;
u32 A = 0;
u32 X = 0;
u32 mem[BPF_MEMWORDS];
u32 tmp;
int k;
for (;; fentry++) {
const u32 K = fentry->k;
switch (fentry->code) {
case BPF_S_ALU_ADD_X:
A +... | unsigned int sk_run_filter(const struct sk_buff *skb, const struct sock_filter *fentry) {
void *ptr;
u32 A = 0;
u32 X = 0;
u32 mem[BPF_MEMWORDS];
u32 tmp;
int k;
for (;; fentry++) {
const u32 K = fentry->k;
switch (fentry->code) {
case BPF_S_ALU_ADD_X:
A +... | unsigned int sk_run_filter(const struct sk_buff *skb, const struct sock_filter *fentry) {
u32 A = 0;
u32 X = 0;
for (;; fentry++) {
const u32 K = fentry->k;
switch (fentry->code) {
case BPF_S_ALU_ADD_X:
A += X;
case BPF_S_ALU_ADD_K:
A += K;
cas... | unsigned int sk_run_filter(const struct sk_buff *skb, const struct sock_filter *fentry) {
u32 A = 0;
u32 X = 0;
for (;; fentry++) {
const u32 K = fentry->k;
switch (fentry->code) {
case BPF_S_ALU_ADD_X:
A += X;
case BPF_S_ALU_ADD_K:
A += K;
cas... | unsigned int sk_run_filter(const struct sk_buff *skb, const struct sock_filter *fentry) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
u32 A = 0;
u32 X = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
for (;; fentry++) {
const u32 K = fentry->k;
switch (fentry->code) {
cas... | unsigned int sk_run_filter(const struct sk_buff *skb, const struct sock_filter *fentry) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
u32 A = 0;
u32 X = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
for (;; fentry++) {
const u32 K = fentry->k;
switch (fentry->code) {
cas... | unsigned int sk_run_filter(const struct sk_buff *skb, const struct sock_filter *fentry) {
u32 A = 0;
u32 X = 0;
for (;; fentry++) {
const u32 K = fentry->k;
switch (fentry->code) {
case BPF_S_ALU_ADD_X:
A += X;
case BPF_S_ALU_ADD_K:
A += K;
... |
CVE-2014-3153 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | kernel/futex.c | futex_lock_pi_atomic | static int futex_lock_pi_atomic(u32 *uaddr, struct futex_hash_bucket *hb, union futex_key *key, struct futex_pi_state **ps, struct task_struct *task, int set_waiters) {
int lock_taken, ret, force_take = 0;
u32 uval, newval, curval, vpid = task_pid_vnr(task);
retry:
ret = lock_taken = 0;
newval = vpid;
... | static int futex_lock_pi_atomic(u32 *uaddr, struct futex_hash_bucket *hb, union futex_key *key, struct futex_pi_state **ps, struct task_struct *task, int set_waiters) {
int lock_taken, ret, force_take = 0;
u32 uval, newval, curval, vpid = task_pid_vnr(task);
retry:
ret = lock_taken = 0;
newval = vpid;
... | static int futex_lock_pi_atomic(u32 *uaddr, struct futex_hash_bucket *hb, union futex_key *key, struct futex_pi_state **ps, struct task_struct *task, int set_waiters) {
int lock_taken, ret, force_take = 0;
u32 uval, newval, curval, vpid = task_pid_vnr(task);
retry:
ret = lock_taken = 0;
newval = vpid;
... | static int futex_lock_pi_atomic(u32 *uaddr, struct futex_hash_bucket *hb, union futex_key *key, struct futex_pi_state **ps, struct task_struct *task, int set_waiters) {
int lock_taken, ret, force_take = 0;
u32 uval, newval, curval, vpid = task_pid_vnr(task);
retry:
ret = lock_taken = 0;
newval = vpid;
... | static int futex_lock_pi_atomic(u32 *uaddr, struct futex_hash_bucket *hb, union futex_key *key, struct futex_pi_state **ps, struct task_struct *task, int set_waiters) {
u32 uval, newval, curval, vpid = task_pid_vnr(task);
retry:
ret = lock_taken = 0;
newval = vpid;
if (set_waiters) {
newval |= F... | static int futex_lock_pi_atomic(u32 *uaddr, struct futex_hash_bucket *hb, union futex_key *key, struct futex_pi_state **ps, struct task_struct *task, int set_waiters) {
u32 uval, newval, curval, vpid = task_pid_vnr(task);
retry:
ret = lock_taken = 0;
newval = vpid;
if (set_waiters) {
newval |= F... | static int futex_lock_pi_atomic(u32 *uaddr, struct futex_hash_bucket *hb, union futex_key *key, struct futex_pi_state **ps, struct task_struct *task, int set_waiters) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
u32 uval, newval, curval, vpid = task_pid_vnr(task);
retry:
ret = lock_taken = 0;
newval ... | static int futex_lock_pi_atomic(u32 *uaddr, struct futex_hash_bucket *hb, union futex_key *key, struct futex_pi_state **ps, struct task_struct *task, int set_waiters) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
u32 uval, newval, curval, vpid = task_pid_vnr(task);
retry:
ret = lock_taken = 0;
newval ... | static int futex_lock_pi_atomic(u32 *uaddr, struct futex_hash_bucket *hb, union futex_key *key, struct futex_pi_state **ps, struct task_struct *task, int set_waiters) {
u32 uval, newval, curval, vpid = task_pid_vnr(task);
retry:
ret = lock_taken = 0;
newval = vpid;
if (set_waiters) {
newv... |
CVE-2014-3153 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | kernel/futex.c | futex_requeue | static int futex_requeue(u32 *uaddr1, unsigned int flags, u32 *uaddr2, int nr_wake, int nr_requeue, u32 *cmpval, int requeue_pi) {
union futex_key key1 = FUTEX_KEY_IT, key2 = FUTEX_KEY_IT;
int drop_count = 0, task_count = 0, ret;
struct futex_pi_state *pi_state = NULL;
struct futex_hash_bucket *hb1, *hb... | static int futex_requeue(u32 *uaddr1, unsigned int flags, u32 *uaddr2, int nr_wake, int nr_requeue, u32 *cmpval, int requeue_pi) {
union futex_key key1 = FUTEX_KEY_IT, key2 = FUTEX_KEY_IT;
int drop_count = 0, task_count = 0, ret;
struct futex_pi_state *pi_state = NULL;
struct futex_hash_bucket *hb1, *hb... | static int futex_requeue(u32 *uaddr1, unsigned int flags, u32 *uaddr2, int nr_wake, int nr_requeue, u32 *cmpval, int requeue_pi) {
union futex_key key1 = FUTEX_KEY_IT, key2 = FUTEX_KEY_IT;
int drop_count = 0, task_count = 0, ret;
struct futex_pi_state *pi_state = NULL;
struct futex_hash_bucket *hb1, *hb... | static int futex_requeue(u32 *uaddr1, unsigned int flags, u32 *uaddr2, int nr_wake, int nr_requeue, u32 *cmpval, int requeue_pi) {
union futex_key key1 = FUTEX_KEY_IT, key2 = FUTEX_KEY_IT;
int drop_count = 0, task_count = 0, ret;
struct futex_pi_state *pi_state = NULL;
struct futex_hash_bucket *hb1, *hb... | static int futex_requeue(u32 *uaddr1, unsigned int flags, u32 *uaddr2, int nr_wake, int nr_requeue, u32 *cmpval, int requeue_pi) {
union futex_key key1 = FUTEX_KEY_IT, key2 = FUTEX_KEY_IT;
int drop_count = 0, task_count = 0, ret;
struct futex_pi_state *pi_state = NULL;
if (requeue_pi) {
if (uadd... | static int futex_requeue(u32 *uaddr1, unsigned int flags, u32 *uaddr2, int nr_wake, int nr_requeue, u32 *cmpval, int requeue_pi) {
union futex_key key1 = FUTEX_KEY_IT, key2 = FUTEX_KEY_IT;
int drop_count = 0, task_count = 0, ret;
struct futex_pi_state *pi_state = NULL;
if (requeue_pi) {
if (uadd... | static int futex_requeue(u32 *uaddr1, unsigned int flags, u32 *uaddr2, int nr_wake, int nr_requeue, u32 *cmpval, int requeue_pi) {
union futex_key key1 = FUTEX_KEY_IT, key2 = FUTEX_KEY_IT;
int drop_count = 0, task_count = 0, ret;
struct futex_pi_state *pi_state = NULL;
/* PLACEHOLDER: DO NOT DELETE THIS... | static int futex_requeue(u32 *uaddr1, unsigned int flags, u32 *uaddr2, int nr_wake, int nr_requeue, u32 *cmpval, int requeue_pi) {
union futex_key key1 = FUTEX_KEY_IT, key2 = FUTEX_KEY_IT;
int drop_count = 0, task_count = 0, ret;
struct futex_pi_state *pi_state = NULL;
/* PLACEHOLDER: DO NOT DELETE THIS... | static int futex_requeue(u32 *uaddr1, unsigned int flags, u32 *uaddr2, int nr_wake, int nr_requeue, u32 *cmpval, int requeue_pi) {
union futex_key key1 = FUTEX_KEY_IT, key2 = FUTEX_KEY_IT;
int drop_count = 0, task_count = 0, ret;
struct futex_pi_state *pi_state = NULL;
if (requeue_pi) {
if... |
CVE-2014-3153 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | kernel/futex.c | lookup_pi_state | static int lookup_pi_state(u32 uval, struct futex_hash_bucket *hb, union futex_key *key, struct futex_pi_state **ps, struct task_struct *task) {
struct futex_pi_state *pi_state = NULL;
struct futex_q *this, *next;
struct task_struct *p;
pid_t pid = uval & FUTEX_TID_MASK;
plist_for_each_entry_safe(th... | static int lookup_pi_state(u32 uval, struct futex_hash_bucket *hb, union futex_key *key, struct futex_pi_state **ps) {
struct futex_pi_state *pi_state = NULL;
struct futex_q *this, *next;
struct task_struct *p;
pid_t pid = uval & FUTEX_TID_MASK;
plist_for_each_entry_safe(this, next, &hb->chain, list... | static int lookup_pi_state(u32 uval, struct futex_hash_bucket *hb, union futex_key *key, struct futex_pi_state **ps, struct task_struct *task) {
struct futex_pi_state *pi_state = NULL;
struct futex_q *this, *next;
struct plist_head *head;
struct task_struct *p;
pid_t pid = uval & FUTEX_TID_MASK;
... | static int lookup_pi_state(u32 uval, struct futex_hash_bucket *hb, union futex_key *key, struct futex_pi_state **ps) {
struct futex_pi_state *pi_state = NULL;
struct futex_q *this, *next;
struct plist_head *head;
struct task_struct *p;
pid_t pid = uval & FUTEX_TID_MASK;
head = &hb->chain;
pl... | static int lookup_pi_state(u32 uval, struct futex_hash_bucket *hb, union futex_key *key, struct futex_pi_state **ps, struct task_struct *task) {
pid_t pid = uval & FUTEX_TID_MASK;
plist_for_each_entry_safe(this, next, &hb->chain, list) {
if (match_futex(&this->key, key)) {
pi_state = this->p... | static int lookup_pi_state(u32 uval, struct futex_hash_bucket *hb, union futex_key *key, struct futex_pi_state **ps) {
pid_t pid = uval & FUTEX_TID_MASK;
plist_for_each_entry_safe(this, next, &hb->chain, list) {
if (match_futex(&this->key, key)) {
pi_state = this->pi_state;
if (u... | static int lookup_pi_state(u32 uval, struct futex_hash_bucket *hb, union futex_key *key, struct futex_pi_state **ps, struct task_struct *task) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
pid_t pid = uval & FUTEX_TID_MASK;
head = &hb->chain;
plist_for_each_entry_safe(this, next, head, list) {
... | static int lookup_pi_state(u32 uval, struct futex_hash_bucket *hb, union futex_key *key, struct futex_pi_state **ps) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
pid_t pid = uval & FUTEX_TID_MASK;
head = &hb->chain;
plist_for_each_entry_safe(this, next, head, list) {
if (match_futex(&this->ke... | -static int lookup_pi_state(u32 uval, struct futex_hash_bucket *hb, union futex_key *key, struct futex_pi_state **ps, struct task_struct *task) {
+static int lookup_pi_state(u32 uval, struct futex_hash_bucket *hb, union futex_key *key, struct futex_pi_state **ps) {
pid_t pid = uval & FUTEX_TID_MASK;
plist_for... |
CVE-2014-3181 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | drivers/hid/hid-magicmouse.c | magicmouse_raw_event | static int magicmouse_raw_event(struct hid_device *hdev, struct hid_report *report, u8 *data, int size) {
struct magicmouse_sc *msc = hid_get_drvdata(hdev);
struct input_dev *input = msc->input;
int x = 0, y = 0, ii, clicks = 0, npoints;
switch (data[0]) {
case TRACKPAD_REPORT_ID:
if (size <... | static int magicmouse_raw_event(struct hid_device *hdev, struct hid_report *report, u8 *data, int size) {
struct magicmouse_sc *msc = hid_get_drvdata(hdev);
struct input_dev *input = msc->input;
int x = 0, y = 0, ii, clicks = 0, npoints;
switch (data[0]) {
case TRACKPAD_REPORT_ID:
if (size <... | static int magicmouse_raw_event(struct hid_device *hdev, struct hid_report *report, u8 *data, int size) {
struct magicmouse_sc *msc = hid_get_drvdata(hdev);
struct input_dev *input = msc->input;
int x = 0, y = 0, ii, clicks = 0, npoints;
switch (data[0]) {
case TRACKPAD_REPORT_ID:
if (size <... | static int magicmouse_raw_event(struct hid_device *hdev, struct hid_report *report, u8 *data, int size) {
struct magicmouse_sc *msc = hid_get_drvdata(hdev);
struct input_dev *input = msc->input;
int x = 0, y = 0, ii, clicks = 0, npoints;
switch (data[0]) {
case TRACKPAD_REPORT_ID:
if (size <... | static int magicmouse_raw_event(struct hid_device *hdev, struct hid_report *report, u8 *data, int size) {
struct magicmouse_sc *msc = hid_get_drvdata(hdev);
switch (data[0]) {
case TRACKPAD_REPORT_ID:
if (size < 4 || ((size - 4) % 9) != 0) {
return 0;
}
npoints = (size - ... | static int magicmouse_raw_event(struct hid_device *hdev, struct hid_report *report, u8 *data, int size) {
struct magicmouse_sc *msc = hid_get_drvdata(hdev);
switch (data[0]) {
case TRACKPAD_REPORT_ID:
if (size < 4 || ((size - 4) % 9) != 0) {
return 0;
}
npoints = (size - ... | static int magicmouse_raw_event(struct hid_device *hdev, struct hid_report *report, u8 *data, int size) {
struct magicmouse_sc *msc = hid_get_drvdata(hdev);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
switch (data[0]) {
case TRACKPAD_REPORT_ID:
if (size < 4 || ((size - 4) % 9) != 0) {
... | static int magicmouse_raw_event(struct hid_device *hdev, struct hid_report *report, u8 *data, int size) {
struct magicmouse_sc *msc = hid_get_drvdata(hdev);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
switch (data[0]) {
case TRACKPAD_REPORT_ID:
if (size < 4 || ((size - 4) % 9) != 0) {
... | static int magicmouse_raw_event(struct hid_device *hdev, struct hid_report *report, u8 *data, int size) {
struct magicmouse_sc *msc = hid_get_drvdata(hdev);
switch (data[0]) {
case TRACKPAD_REPORT_ID:
if (size < 4 || ((size - 4) % 9) != 0) {
return 0;
}
npoints = ... |
CVE-2014-3182 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | drivers/hid/hid-logitech-dj.c | logi_dj_raw_event | static int logi_dj_raw_event(struct hid_device *hdev, struct hid_report *report, u8 *data, int size) {
struct dj_receiver_dev *djrcv_dev = hid_get_drvdata(hdev);
struct dj_report *dj_report = (struct dj_report *) data;
unsigned long flags;
bool report_processed = false;
dbg_hid("%s, size:%d\n", __fu... | static int logi_dj_raw_event(struct hid_device *hdev, struct hid_report *report, u8 *data, int size) {
struct dj_receiver_dev *djrcv_dev = hid_get_drvdata(hdev);
struct dj_report *dj_report = (struct dj_report *) data;
unsigned long flags;
bool report_processed = false;
dbg_hid("%s, size:%d\n", __fu... | static int logi_dj_raw_event(struct hid_device *hdev, struct hid_report *report, u8 *data, int size) {
struct dj_receiver_dev *djrcv_dev = hid_get_drvdata(hdev);
struct dj_report *dj_report = (struct dj_report *) data;
unsigned long flags;
bool report_processed = false;
dbg_hid("%s, size:%d\n", __fu... | static int logi_dj_raw_event(struct hid_device *hdev, struct hid_report *report, u8 *data, int size) {
struct dj_receiver_dev *djrcv_dev = hid_get_drvdata(hdev);
struct dj_report *dj_report = (struct dj_report *) data;
unsigned long flags;
bool report_processed = false;
dbg_hid("%s, size:%d\n", __fu... | static int logi_dj_raw_event(struct hid_device *hdev, struct hid_report *report, u8 *data, int size) {
struct dj_receiver_dev *djrcv_dev = hid_get_drvdata(hdev);
struct dj_report *dj_report = (struct dj_report *) data;
dbg_hid("%s, size:%d\n", __func__, size);
spin_lock_irqsave(&djrcv_dev->lock, flags);... | static int logi_dj_raw_event(struct hid_device *hdev, struct hid_report *report, u8 *data, int size) {
struct dj_receiver_dev *djrcv_dev = hid_get_drvdata(hdev);
struct dj_report *dj_report = (struct dj_report *) data;
dbg_hid("%s, size:%d\n", __func__, size);
if ((dj_report->device_index < DJ_DEVICE_DE... | static int logi_dj_raw_event(struct hid_device *hdev, struct hid_report *report, u8 *data, int size) {
struct dj_receiver_dev *djrcv_dev = hid_get_drvdata(hdev);
struct dj_report *dj_report = (struct dj_report *) data;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
dbg_hid("%s, size:%d\n", __func__, size... | static int logi_dj_raw_event(struct hid_device *hdev, struct hid_report *report, u8 *data, int size) {
struct dj_receiver_dev *djrcv_dev = hid_get_drvdata(hdev);
struct dj_report *dj_report = (struct dj_report *) data;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
dbg_hid("%s, size:%d\n", __func__, size... | static int logi_dj_raw_event(struct hid_device *hdev, struct hid_report *report, u8 *data, int size) {
struct dj_receiver_dev *djrcv_dev = hid_get_drvdata(hdev);
struct dj_report *dj_report = (struct dj_report *) data;
dbg_hid("%s, size:%d\n", __func__, size);
+ if ((dj_report->device_index < DJ_DEVI... |
CVE-2014-3182 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | drivers/hid/hid-logitech-dj.c | logi_dj_recv_add_djhid_device | static void logi_dj_recv_add_djhid_device(struct dj_receiver_dev *djrcv_dev, struct dj_report *dj_report) {
struct hid_device *djrcv_hdev = djrcv_dev->hdev;
struct usb_interface *intf = to_usb_interface(djrcv_hdev->dev.parent);
struct usb_device *usbdev = interface_to_usbdev(intf);
struct hid_device *dj... | static void logi_dj_recv_add_djhid_device(struct dj_receiver_dev *djrcv_dev, struct dj_report *dj_report) {
struct hid_device *djrcv_hdev = djrcv_dev->hdev;
struct usb_interface *intf = to_usb_interface(djrcv_hdev->dev.parent);
struct usb_device *usbdev = interface_to_usbdev(intf);
struct hid_device *dj... | static void logi_dj_recv_add_djhid_device(struct dj_receiver_dev *djrcv_dev, struct dj_report *dj_report) {
struct hid_device *djrcv_hdev = djrcv_dev->hdev;
struct usb_interface *intf = to_usb_interface(djrcv_hdev->dev.parent);
struct usb_device *usbdev = interface_to_usbdev(intf);
struct hid_device *dj... | static void logi_dj_recv_add_djhid_device(struct dj_receiver_dev *djrcv_dev, struct dj_report *dj_report) {
struct hid_device *djrcv_hdev = djrcv_dev->hdev;
struct usb_interface *intf = to_usb_interface(djrcv_hdev->dev.parent);
struct usb_device *usbdev = interface_to_usbdev(intf);
struct hid_device *dj... | static void logi_dj_recv_add_djhid_device(struct dj_receiver_dev *djrcv_dev, struct dj_report *dj_report) {
struct hid_device *djrcv_hdev = djrcv_dev->hdev;
if (dj_report->report_params[DEVICE_PAIRED_PARAM_SPFUNCTION] & SPFUNCTION_DEVICE_LIST_EMPTY) {
return;
}
if ((dj_report->device_index < DJ_... | static void logi_dj_recv_add_djhid_device(struct dj_receiver_dev *djrcv_dev, struct dj_report *dj_report) {
struct hid_device *djrcv_hdev = djrcv_dev->hdev;
if (dj_report->report_params[DEVICE_PAIRED_PARAM_SPFUNCTION] & SPFUNCTION_DEVICE_LIST_EMPTY) {
return;
}
if (djrcv_dev->paired_dj_devices[d... | static void logi_dj_recv_add_djhid_device(struct dj_receiver_dev *djrcv_dev, struct dj_report *dj_report) {
struct hid_device *djrcv_hdev = djrcv_dev->hdev;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (dj_report->report_params[DEVICE_PAIRED_PARAM_SPFUNCTION] & SPFUNCTION_DEVICE_LIST_EMPTY) {
/* PLA... | static void logi_dj_recv_add_djhid_device(struct dj_receiver_dev *djrcv_dev, struct dj_report *dj_report) {
struct hid_device *djrcv_hdev = djrcv_dev->hdev;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (dj_report->report_params[DEVICE_PAIRED_PARAM_SPFUNCTION] & SPFUNCTION_DEVICE_LIST_EMPTY) {
/* PLA... | static void logi_dj_recv_add_djhid_device(struct dj_receiver_dev *djrcv_dev, struct dj_report *dj_report) {
struct hid_device *djrcv_hdev = djrcv_dev->hdev;
if (dj_report->report_params[DEVICE_PAIRED_PARAM_SPFUNCTION] & SPFUNCTION_DEVICE_LIST_EMPTY) {
- return;
- }
- if ((dj_report->device_index... |
CVE-2014-3184 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | drivers/hid/hid-cherry.c | ch_report_fixup | static __u8 *ch_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
if (*rsize >= 17 && rdesc[11] == 0x3c && rdesc[12] == 0x02) {
hid_info(hdev, "fixing up Cherry Cymotion report descriptor\n");
rdesc[11] = rdesc[16] = 0xff;
rdesc[12] = rdesc[17] = 0x03;
}
retur... | static __u8 *ch_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
if (*rsize >= 18 && rdesc[11] == 0x3c && rdesc[12] == 0x02) {
hid_info(hdev, "fixing up Cherry Cymotion report descriptor\n");
rdesc[11] = rdesc[16] = 0xff;
rdesc[12] = rdesc[17] = 0x03;
}
retur... | static __u8 *ch_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
if (*rsize >= 17 && rdesc[11] == 0x3c && rdesc[12] == 0x02) {
hid_info(hdev, "fixing up Cherry Cymotion report descriptor\n");
rdesc[11] = rdesc[16] = 0xff;
rdesc[12] = rdesc[17] = 0x03;
}
retur... | static __u8 *ch_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
if (*rsize >= 18 && rdesc[11] == 0x3c && rdesc[12] == 0x02) {
hid_info(hdev, "fixing up Cherry Cymotion report descriptor\n");
rdesc[11] = rdesc[16] = 0xff;
rdesc[12] = rdesc[17] = 0x03;
}
retur... | static __u8 *ch_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
if (*rsize >= 17 && rdesc[11] == 0x3c && rdesc[12] == 0x02) {
hid_info(hdev, "fixing up Cherry Cymotion report descriptor\n");
rdesc[11] = rdesc[16] = 0xff;
rdesc[12] = rdesc[17] = 0x03;
}
retur... | static __u8 *ch_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
if (*rsize >= 18 && rdesc[11] == 0x3c && rdesc[12] == 0x02) {
hid_info(hdev, "fixing up Cherry Cymotion report descriptor\n");
rdesc[11] = rdesc[16] = 0xff;
rdesc[12] = rdesc[17] = 0x03;
}
retur... | static __u8 *ch_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
if (*rsize >= 17 && rdesc[11] == 0x3c && rdesc[12] == 0x02) {
hid_info(hdev, "fixing up Cherry Cymotion report descriptor\n");
rdesc[11] = rdesc[16] = 0xff;
rdesc[12] = rdesc[17] = 0x03;
}
retur... | static __u8 *ch_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
if (*rsize >= 18 && rdesc[11] == 0x3c && rdesc[12] == 0x02) {
hid_info(hdev, "fixing up Cherry Cymotion report descriptor\n");
rdesc[11] = rdesc[16] = 0xff;
rdesc[12] = rdesc[17] = 0x03;
}
retur... | static __u8 *ch_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
- if (*rsize >= 17 && rdesc[11] == 0x3c && rdesc[12] == 0x02) {
+ if (*rsize >= 18 && rdesc[11] == 0x3c && rdesc[12] == 0x02) {
hid_info(hdev, "fixing up Cherry Cymotion report descriptor\n");
rdesc[11] = ... |
CVE-2014-3184 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | drivers/hid/hid-kye.c | kye_report_fixup | static __u8 *kye_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
switch (hdev->product) {
case USB_DEVICE_ID_KYE_ERGO_525V:
if (*rsize >= 74 && rdesc[61] == 0x05 && rdesc[62] == 0x08 && rdesc[63] == 0x19 && rdesc[64] == 0x08 && rdesc[65] == 0x29 && rdesc[66] == 0x0f && rdesc[71... | static __u8 *kye_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
switch (hdev->product) {
case USB_DEVICE_ID_KYE_ERGO_525V:
if (*rsize >= 75 && rdesc[61] == 0x05 && rdesc[62] == 0x08 && rdesc[63] == 0x19 && rdesc[64] == 0x08 && rdesc[65] == 0x29 && rdesc[66] == 0x0f && rdesc[71... | static __u8 *kye_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
if (*rsize >= 74 && rdesc[61] == 0x05 && rdesc[62] == 0x08 && rdesc[63] == 0x19 && rdesc[64] == 0x08 && rdesc[65] == 0x29 && rdesc[66] == 0x0f && rdesc[71] == 0x75 && rdesc[72] == 0x08
&& rdesc[73] == 0x95 && rdes... | static __u8 *kye_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
if (*rsize >= 75 && rdesc[61] == 0x05 && rdesc[62] == 0x08 && rdesc[63] == 0x19 && rdesc[64] == 0x08 && rdesc[65] == 0x29 && rdesc[66] == 0x0f && rdesc[71] == 0x75 && rdesc[72] == 0x08
&& rdesc[73] == 0x95 && rdes... | static __u8 *kye_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
switch (hdev->product) {
case USB_DEVICE_ID_KYE_ERGO_525V:
if (*rsize >= 74 && rdesc[61] == 0x05 && rdesc[62] == 0x08 && rdesc[63] == 0x19 && rdesc[64] == 0x08 && rdesc[65] == 0x29 && rdesc[66] == 0x0f && rdesc[71... | static __u8 *kye_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
switch (hdev->product) {
case USB_DEVICE_ID_KYE_ERGO_525V:
if (*rsize >= 75 && rdesc[61] == 0x05 && rdesc[62] == 0x08 && rdesc[63] == 0x19 && rdesc[64] == 0x08 && rdesc[65] == 0x29 && rdesc[66] == 0x0f && rdesc[71... | static __u8 *kye_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
if (*rsize >= 74 && rdesc[61] == 0x05 && rdesc[62] == 0x08 && rdesc[63] == 0x19 && rdesc[64] == 0x08 && rdesc[65] == 0x29 && rdesc[66] == 0x0f && rdesc[71] == 0x75 && rdesc[72] == 0x08
&& rdesc[73] == 0x95 && rdes... | static __u8 *kye_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
if (*rsize >= 75 && rdesc[61] == 0x05 && rdesc[62] == 0x08 && rdesc[63] == 0x19 && rdesc[64] == 0x08 && rdesc[65] == 0x29 && rdesc[66] == 0x0f && rdesc[71] == 0x75 && rdesc[72] == 0x08
&& rdesc[73] == 0x95 && rdes... | static __u8 *kye_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
switch (hdev->product) {
case USB_DEVICE_ID_KYE_ERGO_525V:
- if (*rsize >= 74 && rdesc[61] == 0x05 && rdesc[62] == 0x08 && rdesc[63] == 0x19 && rdesc[64] == 0x08 && rdesc[65] == 0x29 && rdesc[66] == 0x0f && rdes... |
CVE-2014-3184 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | drivers/hid/hid-lg.c | lg_report_fixup | static __u8 *lg_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
struct lg_drv_data *drv_data = hid_get_drvdata(hdev);
struct usb_device_descriptor *udesc;
__u16 bcdDevice, rev_maj, rev_min;
if ((drv_data->quirks & LG_RDESC) && *rsize >= 90 && rdesc[83] == 0x26 && rdesc[84] == 0... | static __u8 *lg_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
struct lg_drv_data *drv_data = hid_get_drvdata(hdev);
struct usb_device_descriptor *udesc;
__u16 bcdDevice, rev_maj, rev_min;
if ((drv_data->quirks & LG_RDESC) && *rsize >= 91 && rdesc[83] == 0x26 && rdesc[84] == 0... | static __u8 *lg_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
unsigned long quirks = (unsigned long)hid_get_drvdata(hdev);
if ((quirks & LG_RDESC) && *rsize >= 90 && rdesc[83] == 0x26 && rdesc[84] == 0x8c && rdesc[85] == 0x02) {
hid_info(hdev, "fixing up Logitech keyboard rep... | static __u8 *lg_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
unsigned long quirks = (unsigned long)hid_get_drvdata(hdev);
if ((quirks & LG_RDESC) && *rsize >= 91 && rdesc[83] == 0x26 && rdesc[84] == 0x8c && rdesc[85] == 0x02) {
hid_info(hdev, "fixing up Logitech keyboard rep... | static __u8 *lg_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
struct lg_drv_data *drv_data = hid_get_drvdata(hdev);
__u16 bcdDevice, rev_maj, rev_min;
if ((drv_data->quirks & LG_RDESC) && *rsize >= 90 && rdesc[83] == 0x26 && rdesc[84] == 0x8c && rdesc[85] == 0x02) {
hid_i... | static __u8 *lg_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
struct lg_drv_data *drv_data = hid_get_drvdata(hdev);
__u16 bcdDevice, rev_maj, rev_min;
if ((drv_data->quirks & LG_RDESC) && *rsize >= 91 && rdesc[83] == 0x26 && rdesc[84] == 0x8c && rdesc[85] == 0x02) {
hid_i... | static __u8 *lg_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
unsigned long quirks = (unsigned long)hid_get_drvdata(hdev);
if ((quirks & LG_RDESC) && *rsize >= 90 && rdesc[83] == 0x26 && rdesc[84] == 0x8c && rdesc[85] == 0x02) {
hid_info(hdev, "fixing up Logitech keyboard rep... | static __u8 *lg_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
unsigned long quirks = (unsigned long)hid_get_drvdata(hdev);
if ((quirks & LG_RDESC) && *rsize >= 91 && rdesc[83] == 0x26 && rdesc[84] == 0x8c && rdesc[85] == 0x02) {
hid_info(hdev, "fixing up Logitech keyboard rep... | static __u8 *lg_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
struct lg_drv_data *drv_data = hid_get_drvdata(hdev);
__u16 bcdDevice, rev_maj, rev_min;
- if ((drv_data->quirks & LG_RDESC) && *rsize >= 90 && rdesc[83] == 0x26 && rdesc[84] == 0x8c && rdesc[85] == 0x02) {
+ if (... |
CVE-2014-3184 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | drivers/hid/hid-monterey.c | mr_report_fixup | static __u8 *mr_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
if (*rsize >= 30 && rdesc[29] == 0x05 && rdesc[30] == 0x09) {
hid_info(hdev, "fixing up button/consumer in HID report descriptor\n");
rdesc[30] = 0x0c;
}
return rdesc;
} | static __u8 *mr_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
if (*rsize >= 31 && rdesc[29] == 0x05 && rdesc[30] == 0x09) {
hid_info(hdev, "fixing up button/consumer in HID report descriptor\n");
rdesc[30] = 0x0c;
}
return rdesc;
} | static __u8 *mr_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
if (*rsize >= 30 && rdesc[29] == 0x05 && rdesc[30] == 0x09) {
hid_info(hdev, "fixing up button/consumer in HID report descriptor\n");
rdesc[30] = 0x0c;
}
return rdesc;
} | static __u8 *mr_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
if (*rsize >= 31 && rdesc[29] == 0x05 && rdesc[30] == 0x09) {
hid_info(hdev, "fixing up button/consumer in HID report descriptor\n");
rdesc[30] = 0x0c;
}
return rdesc;
} | static __u8 *mr_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
if (*rsize >= 30 && rdesc[29] == 0x05 && rdesc[30] == 0x09) {
hid_info(hdev, "fixing up button/consumer in HID report descriptor\n");
rdesc[30] = 0x0c;
}
return rdesc;
}
| static __u8 *mr_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
if (*rsize >= 31 && rdesc[29] == 0x05 && rdesc[30] == 0x09) {
hid_info(hdev, "fixing up button/consumer in HID report descriptor\n");
rdesc[30] = 0x0c;
}
return rdesc;
}
| static __u8 *mr_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
if (*rsize >= 30 && rdesc[29] == 0x05 && rdesc[30] == 0x09) {
hid_info(hdev, "fixing up button/consumer in HID report descriptor\n");
rdesc[30] = 0x0c;
}
return rdesc;
}
| static __u8 *mr_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
if (*rsize >= 31 && rdesc[29] == 0x05 && rdesc[30] == 0x09) {
hid_info(hdev, "fixing up button/consumer in HID report descriptor\n");
rdesc[30] = 0x0c;
}
return rdesc;
} | static __u8 *mr_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
- if (*rsize >= 30 && rdesc[29] == 0x05 && rdesc[30] == 0x09) {
+ if (*rsize >= 31 && rdesc[29] == 0x05 && rdesc[30] == 0x09) {
hid_info(hdev, "fixing up button/consumer in HID report descriptor\n");
rdesc... |
CVE-2014-3184 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | drivers/hid/hid-petalynx.c | pl_report_fixup | static __u8 *pl_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
if (*rsize >= 60 && rdesc[39] == 0x2a && rdesc[40] == 0xf5 && rdesc[41] == 0x00 && rdesc[59] == 0x26 && rdesc[60] == 0xf9 && rdesc[61] == 0x00) {
hid_info(hdev, "fixing up Petalynx Maxter Remote report descriptor\n");
... | static __u8 *pl_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
if (*rsize >= 62 && rdesc[39] == 0x2a && rdesc[40] == 0xf5 && rdesc[41] == 0x00 && rdesc[59] == 0x26 && rdesc[60] == 0xf9 && rdesc[61] == 0x00) {
hid_info(hdev, "fixing up Petalynx Maxter Remote report descriptor\n");
... | static __u8 *pl_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
if (*rsize >= 60 && rdesc[39] == 0x2a && rdesc[40] == 0xf5 && rdesc[41] == 0x00 && rdesc[59] == 0x26 && rdesc[60] == 0xf9 && rdesc[61] == 0x00) {
hid_info(hdev, "fixing up Petalynx Maxter Remote report descriptor\n");
... | static __u8 *pl_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
if (*rsize >= 62 && rdesc[39] == 0x2a && rdesc[40] == 0xf5 && rdesc[41] == 0x00 && rdesc[59] == 0x26 && rdesc[60] == 0xf9 && rdesc[61] == 0x00) {
hid_info(hdev, "fixing up Petalynx Maxter Remote report descriptor\n");
... | static __u8 *pl_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
if (*rsize >= 60 && rdesc[39] == 0x2a && rdesc[40] == 0xf5 && rdesc[41] == 0x00 && rdesc[59] == 0x26 && rdesc[60] == 0xf9 && rdesc[61] == 0x00) {
hid_info(hdev, "fixing up Petalynx Maxter Remote report descriptor\n");
... | static __u8 *pl_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
if (*rsize >= 62 && rdesc[39] == 0x2a && rdesc[40] == 0xf5 && rdesc[41] == 0x00 && rdesc[59] == 0x26 && rdesc[60] == 0xf9 && rdesc[61] == 0x00) {
hid_info(hdev, "fixing up Petalynx Maxter Remote report descriptor\n");
... | static __u8 *pl_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
if (*rsize >= 60 && rdesc[39] == 0x2a && rdesc[40] == 0xf5 && rdesc[41] == 0x00 && rdesc[59] == 0x26 && rdesc[60] == 0xf9 && rdesc[61] == 0x00) {
hid_info(hdev, "fixing up Petalynx Maxter Remote report descriptor\n");
... | static __u8 *pl_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
if (*rsize >= 62 && rdesc[39] == 0x2a && rdesc[40] == 0xf5 && rdesc[41] == 0x00 && rdesc[59] == 0x26 && rdesc[60] == 0xf9 && rdesc[61] == 0x00) {
hid_info(hdev, "fixing up Petalynx Maxter Remote report descriptor\n");
... | static __u8 *pl_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
- if (*rsize >= 60 && rdesc[39] == 0x2a && rdesc[40] == 0xf5 && rdesc[41] == 0x00 && rdesc[59] == 0x26 && rdesc[60] == 0xf9 && rdesc[61] == 0x00) {
+ if (*rsize >= 62 && rdesc[39] == 0x2a && rdesc[40] == 0xf5 && rdesc[41] =... |
CVE-2014-3184 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | drivers/hid/hid-sunplus.c | sp_report_fixup | static __u8 *sp_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
if (*rsize >= 107 && rdesc[104] == 0x26 && rdesc[105] == 0x80 && rdesc[106] == 0x03) {
hid_info(hdev, "fixing up Sunplus Wireless Desktop report descriptor\n");
rdesc[105] = rdesc[110] = 0x03;
rdesc[106... | static __u8 *sp_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
if (*rsize >= 112 && rdesc[104] == 0x26 && rdesc[105] == 0x80 && rdesc[106] == 0x03) {
hid_info(hdev, "fixing up Sunplus Wireless Desktop report descriptor\n");
rdesc[105] = rdesc[110] = 0x03;
rdesc[106... | static __u8 *sp_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
if (*rsize >= 107 && rdesc[104] == 0x26 && rdesc[105] == 0x80 && rdesc[106] == 0x03) {
hid_info(hdev, "fixing up Sunplus Wireless Desktop report descriptor\n");
rdesc[105] = rdesc[110] = 0x03;
rdesc[106... | static __u8 *sp_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
if (*rsize >= 112 && rdesc[104] == 0x26 && rdesc[105] == 0x80 && rdesc[106] == 0x03) {
hid_info(hdev, "fixing up Sunplus Wireless Desktop report descriptor\n");
rdesc[105] = rdesc[110] = 0x03;
rdesc[106... | static __u8 *sp_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
if (*rsize >= 107 && rdesc[104] == 0x26 && rdesc[105] == 0x80 && rdesc[106] == 0x03) {
hid_info(hdev, "fixing up Sunplus Wireless Desktop report descriptor\n");
rdesc[105] = rdesc[110] = 0x03;
rdesc[106... | static __u8 *sp_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
if (*rsize >= 112 && rdesc[104] == 0x26 && rdesc[105] == 0x80 && rdesc[106] == 0x03) {
hid_info(hdev, "fixing up Sunplus Wireless Desktop report descriptor\n");
rdesc[105] = rdesc[110] = 0x03;
rdesc[106... | static __u8 *sp_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
if (*rsize >= 107 && rdesc[104] == 0x26 && rdesc[105] == 0x80 && rdesc[106] == 0x03) {
hid_info(hdev, "fixing up Sunplus Wireless Desktop report descriptor\n");
rdesc[105] = rdesc[110] = 0x03;
rdesc[106... | static __u8 *sp_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
if (*rsize >= 112 && rdesc[104] == 0x26 && rdesc[105] == 0x80 && rdesc[106] == 0x03) {
hid_info(hdev, "fixing up Sunplus Wireless Desktop report descriptor\n");
rdesc[105] = rdesc[110] = 0x03;
rdesc[106... | static __u8 *sp_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) {
- if (*rsize >= 107 && rdesc[104] == 0x26 && rdesc[105] == 0x80 && rdesc[106] == 0x03) {
+ if (*rsize >= 112 && rdesc[104] == 0x26 && rdesc[105] == 0x80 && rdesc[106] == 0x03) {
hid_info(hdev, "fixing up Sunplus Wi... |
CVE-2014-3185 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | drivers/usb/serial/whiteheat.c | command_port_read_callback | static void command_port_read_callback(struct urb *urb) {
struct usb_serial_port *command_port = urb->context;
struct whiteheat_command_private *command_info;
int status = urb->status;
unsigned char *data = urb->transfer_buffer;
int result;
command_info = usb_get_serial_port_data(command_port);
... | static void command_port_read_callback(struct urb *urb) {
struct usb_serial_port *command_port = urb->context;
struct whiteheat_command_private *command_info;
int status = urb->status;
unsigned char *data = urb->transfer_buffer;
int result;
command_info = usb_get_serial_port_data(command_port);
... | static void command_port_read_callback(struct urb *urb) {
struct usb_serial_port *command_port = urb->context;
struct whiteheat_command_private *command_info;
int status = urb->status;
unsigned char *data = urb->transfer_buffer;
int result;
command_info = usb_get_serial_port_data(command_port);
... | static void command_port_read_callback(struct urb *urb) {
struct usb_serial_port *command_port = urb->context;
struct whiteheat_command_private *command_info;
int status = urb->status;
unsigned char *data = urb->transfer_buffer;
int result;
command_info = usb_get_serial_port_data(command_port);
... | static void command_port_read_callback(struct urb *urb) {
struct usb_serial_port *command_port = urb->context;
unsigned char *data = urb->transfer_buffer;
command_info = usb_get_serial_port_data(command_port);
if (!command_info) {
return;
}
if (status) {
return;
}
usb_ser... | static void command_port_read_callback(struct urb *urb) {
struct usb_serial_port *command_port = urb->context;
unsigned char *data = urb->transfer_buffer;
command_info = usb_get_serial_port_data(command_port);
if (!command_info) {
return;
}
if (!urb->actual_length) {
dev_dbg(&urb... | static void command_port_read_callback(struct urb *urb) {
struct usb_serial_port *command_port = urb->context;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
unsigned char *data = urb->transfer_buffer;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
command_info = usb_get_serial_port_data(command_port)... | static void command_port_read_callback(struct urb *urb) {
struct usb_serial_port *command_port = urb->context;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
unsigned char *data = urb->transfer_buffer;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
command_info = usb_get_serial_port_data(command_port)... | static void command_port_read_callback(struct urb *urb) {
struct usb_serial_port *command_port = urb->context;
unsigned char *data = urb->transfer_buffer;
command_info = usb_get_serial_port_data(command_port);
if (!command_info) {
+ return;
+ }
+ if (!urb->actual_length) {
+ dev... |
CVE-2014-3534 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | arch/s390/kernel/ptrace.c | __poke_user | static int __poke_user(struct task_struct *child, addr_t addr, addr_t data) {
struct user *dummy = NULL;
addr_t offset;
if (addr < (addr_t) &dummy->regs.acrs) {
if (addr == (addr_t) &dummy->regs.psw.mask && ((data & ~PSW_MASK_USER) != psw_user_bits || ((data & PSW_MASK_EA) && !(data & PSW_MASK_BA)))... | static int __poke_user(struct task_struct *child, addr_t addr, addr_t data) {
struct user *dummy = NULL;
addr_t offset;
if (addr < (addr_t) &dummy->regs.acrs) {
if (addr == (addr_t) &dummy->regs.psw.mask && (((data^psw_user_bits) & ~PSW_MASK_USER) || (((data^psw_user_bits) & PSW_MASK_ASC) && ((data|... | static int __poke_user(struct task_struct *child, addr_t addr, addr_t data) {
struct user *dummy = NULL;
addr_t offset;
if (addr < (addr_t) &dummy->regs.acrs) {
if (addr == (addr_t) &dummy->regs.psw.mask && ((data & ~PSW_MASK_USER) != psw_user_bits || ((data & PSW_MASK_EA) && !(data & PSW_MASK_BA)))... | static int __poke_user(struct task_struct *child, addr_t addr, addr_t data) {
struct user *dummy = NULL;
addr_t offset;
if (addr < (addr_t) &dummy->regs.acrs) {
if (addr == (addr_t) &dummy->regs.psw.mask && (((data^psw_user_bits) & ~PSW_MASK_USER) || (((data^psw_user_bits) & PSW_MASK_ASC) && ((data|... | static int __poke_user(struct task_struct *child, addr_t addr, addr_t data) {
if (addr < (addr_t) &dummy->regs.acrs) {
if (addr == (addr_t) &dummy->regs.psw.mask && ((data & ~PSW_MASK_USER) != psw_user_bits || ((data & PSW_MASK_EA) && !(data & PSW_MASK_BA)))) {
return -EVAL;
}
*(... | static int __poke_user(struct task_struct *child, addr_t addr, addr_t data) {
if (addr < (addr_t) &dummy->regs.acrs) {
if (addr == (addr_t) &dummy->regs.psw.mask && (((data^psw_user_bits) & ~PSW_MASK_USER) || (((data^psw_user_bits) & PSW_MASK_ASC) && ((data|psw_user_bits) & PSW_MASK_ASC) == PSW_MASK_ASC)
... | static int __poke_user(struct task_struct *child, addr_t addr, addr_t data) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (addr < (addr_t) &dummy->regs.acrs) {
if (addr == (addr_t) &dummy->regs.psw.mask && ((data & ~PSW_MASK_USER) != psw_user_bits || ((data & PSW_MASK_EA) && !(data & PSW_MASK_BA)))... | static int __poke_user(struct task_struct *child, addr_t addr, addr_t data) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (addr < (addr_t) &dummy->regs.acrs) {
if (addr == (addr_t) &dummy->regs.psw.mask && (((data^psw_user_bits) & ~PSW_MASK_USER) || (((data^psw_user_bits) & PSW_MASK_ASC) && ((data|... | static int __poke_user(struct task_struct *child, addr_t addr, addr_t data) {
if (addr < (addr_t) &dummy->regs.acrs) {
- if (addr == (addr_t) &dummy->regs.psw.mask && ((data & ~PSW_MASK_USER) != psw_user_bits || ((data & PSW_MASK_EA) && !(data & PSW_MASK_BA)))) {
+ if (addr == (addr_t) &dummy->regs.... |
CVE-2014-3534 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | arch/s390/kernel/ptrace.c | __poke_user_compat | static int __poke_user_compat(struct task_struct *child, addr_t addr, addr_t data) {
struct compat_user *dummy32 = NULL;
__u32 tmp = (__u32) data;
addr_t offset;
if (addr < (addr_t) &dummy32->regs.acrs) {
struct pt_regs *regs = task_pt_regs(child);
if (addr == (addr_t) &dummy32->regs.psw... | static int __poke_user_compat(struct task_struct *child, addr_t addr, addr_t data) {
struct compat_user *dummy32 = NULL;
__u32 tmp = (__u32) data;
addr_t offset;
if (addr < (addr_t) &dummy32->regs.acrs) {
struct pt_regs *regs = task_pt_regs(child);
if (addr == (addr_t) &dummy32->regs.psw... | static int __poke_user_compat(struct task_struct *child, addr_t addr, addr_t data) {
struct compat_user *dummy32 = NULL;
__u32 tmp = (__u32) data;
addr_t offset;
if (addr < (addr_t) &dummy32->regs.acrs) {
struct pt_regs *regs = task_pt_regs(child);
if (addr == (addr_t) &dummy32->regs.psw... | static int __poke_user_compat(struct task_struct *child, addr_t addr, addr_t data) {
struct compat_user *dummy32 = NULL;
__u32 tmp = (__u32) data;
addr_t offset;
if (addr < (addr_t) &dummy32->regs.acrs) {
struct pt_regs *regs = task_pt_regs(child);
if (addr == (addr_t) &dummy32->regs.psw... | static int __poke_user_compat(struct task_struct *child, addr_t addr, addr_t data) {
__u32 tmp = (__u32) data;
if (addr < (addr_t) &dummy32->regs.acrs) {
if (addr == (addr_t) &dummy32->regs.psw.mask) {
if ((tmp & ~PSW32_MASK_USER) != psw32_user_bits) {
return -EVAL;
... | static int __poke_user_compat(struct task_struct *child, addr_t addr, addr_t data) {
__u32 tmp = (__u32) data;
if (addr < (addr_t) &dummy32->regs.acrs) {
if (addr == (addr_t) &dummy32->regs.psw.mask) {
if (((tmp^psw32_user_bits) & ~PSW32_MASK_USER) || (((tmp^psw32_user_bits) & PSW32_MASK_ASC... | static int __poke_user_compat(struct task_struct *child, addr_t addr, addr_t data) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
__u32 tmp = (__u32) data;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (addr < (addr_t) &dummy32->regs.acrs) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
... | static int __poke_user_compat(struct task_struct *child, addr_t addr, addr_t data) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
__u32 tmp = (__u32) data;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (addr < (addr_t) &dummy32->regs.acrs) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
... | static int __poke_user_compat(struct task_struct *child, addr_t addr, addr_t data) {
__u32 tmp = (__u32) data;
if (addr < (addr_t) &dummy32->regs.acrs) {
if (addr == (addr_t) &dummy32->regs.psw.mask) {
- if ((tmp & ~PSW32_MASK_USER) != psw32_user_bits) {
+ if (((tmp^psw32_user_... |
CVE-2014-3601 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | virt/kvm/iommu.c | kvm_iommu_map_pages | int kvm_iommu_map_pages(struct kvm *kvm, struct kvm_memory_slot *slot) {
gfn_t gfn, end_gfn;
pfn_t pfn;
int r = 0;
struct iommu_domain *domain = kvm->arch.iommu_domain;
int flags;
if (!domain) {
return 0;
}
gfn = slot->base_gfn;
end_gfn = gfn + slot->npages;
flags = IOMMU... | int kvm_iommu_map_pages(struct kvm *kvm, struct kvm_memory_slot *slot) {
gfn_t gfn, end_gfn;
pfn_t pfn;
int r = 0;
struct iommu_domain *domain = kvm->arch.iommu_domain;
int flags;
if (!domain) {
return 0;
}
gfn = slot->base_gfn;
end_gfn = gfn + slot->npages;
flags = IOMMU... | int kvm_iommu_map_pages(struct kvm *kvm, struct kvm_memory_slot *slot) {
gfn_t gfn, end_gfn;
pfn_t pfn;
int r = 0;
struct iommu_domain *domain = kvm->arch.iommu_domain;
int flags;
if (!domain) {
return 0;
}
gfn = slot->base_gfn;
end_gfn = gfn + slot->npages;
flags = IOMMU... | int kvm_iommu_map_pages(struct kvm *kvm, struct kvm_memory_slot *slot) {
gfn_t gfn, end_gfn;
pfn_t pfn;
int r = 0;
struct iommu_domain *domain = kvm->arch.iommu_domain;
int flags;
if (!domain) {
return 0;
}
gfn = slot->base_gfn;
end_gfn = gfn + slot->npages;
flags = IOMMU... | int kvm_iommu_map_pages(struct kvm *kvm, struct kvm_memory_slot *slot) {
struct iommu_domain *domain = kvm->arch.iommu_domain;
if (!domain) {
return 0;
}
gfn = slot->base_gfn;
end_gfn = gfn + slot->npages;
flags = IOMMU_READ;
if (!(slot->flags & KVM_MEM_READONLY)) {
flags |= ... | int kvm_iommu_map_pages(struct kvm *kvm, struct kvm_memory_slot *slot) {
struct iommu_domain *domain = kvm->arch.iommu_domain;
if (!domain) {
return 0;
}
gfn = slot->base_gfn;
end_gfn = gfn + slot->npages;
flags = IOMMU_READ;
if (!(slot->flags & KVM_MEM_READONLY)) {
flags |= ... | int kvm_iommu_map_pages(struct kvm *kvm, struct kvm_memory_slot *slot) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
struct iommu_domain *domain = kvm->arch.iommu_domain;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (!domain) {
return 0;
}
gfn = slot->base_gfn;
end_gfn = gfn + ... | int kvm_iommu_map_pages(struct kvm *kvm, struct kvm_memory_slot *slot) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
struct iommu_domain *domain = kvm->arch.iommu_domain;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (!domain) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
}
gfn = ... | int kvm_iommu_map_pages(struct kvm *kvm, struct kvm_memory_slot *slot) {
struct iommu_domain *domain = kvm->arch.iommu_domain;
if (!domain) {
return 0;
}
gfn = slot->base_gfn;
end_gfn = gfn + slot->npages;
flags = IOMMU_READ;
if (!(slot->flags & KVM_MEM_READONLY)) {
... |
CVE-2014-3610 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | arch/x86/kvm/svm.c | wrmsr_interception | static int wrmsr_interception(struct vcpu_svm *svm) {
struct msr_data msr;
u32 ecx = svm->vcpu.arch.regs[VCPU_REGS_RCX];
u64 data = (svm->vcpu.arch.regs[VCPU_REGS_RAX] & -1u)
| ((u64)(svm->vcpu.arch.regs[VCPU_REGS_RDX] & -1u) << 32);
msr.data = data;
msr.index = ecx;
msr.host_init... | static int wrmsr_interception(struct vcpu_svm *svm) {
struct msr_data msr;
u32 ecx = svm->vcpu.arch.regs[VCPU_REGS_RCX];
u64 data = (svm->vcpu.arch.regs[VCPU_REGS_RAX] & -1u)
| ((u64)(svm->vcpu.arch.regs[VCPU_REGS_RDX] & -1u) << 32);
msr.data = data;
msr.index = ecx;
msr.host_init... | static int wrmsr_interception(struct vcpu_svm *svm) {
struct msr_data msr;
u32 ecx = svm->vcpu.arch.regs[VCPU_REGS_RCX];
u64 data = (svm->vcpu.arch.regs[VCPU_REGS_RAX] & -1u)
| ((u64)(svm->vcpu.arch.regs[VCPU_REGS_RDX] & -1u) << 32);
msr.data = data;
msr.index = ecx;
msr.host_init... | static int wrmsr_interception(struct vcpu_svm *svm) {
struct msr_data msr;
u32 ecx = svm->vcpu.arch.regs[VCPU_REGS_RCX];
u64 data = (svm->vcpu.arch.regs[VCPU_REGS_RAX] & -1u)
| ((u64)(svm->vcpu.arch.regs[VCPU_REGS_RDX] & -1u) << 32);
msr.data = data;
msr.index = ecx;
msr.host_init... | static int wrmsr_interception(struct vcpu_svm *svm) {
svm->next_rip = kvm_rip_read(&svm->vcpu) + 2;
if (svm_set_msr(&svm->vcpu, &msr)) {
trace_kvm_msr_write_ex(ecx, data);
} else {
trace_kvm_msr_write(ecx, data);
}
}
| static int wrmsr_interception(struct vcpu_svm *svm) {
svm->next_rip = kvm_rip_read(&svm->vcpu) + 2;
if (kvm_set_msr(&svm->vcpu, &msr)) {
trace_kvm_msr_write_ex(ecx, data);
} else {
trace_kvm_msr_write(ecx, data);
}
}
| static int wrmsr_interception(struct vcpu_svm *svm) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
svm->next_rip = kvm_rip_read(&svm->vcpu) + 2;
if (svm_set_msr(&svm->vcpu, &msr)) {
trace_kvm_msr_write_ex(ecx, data);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
} else {
trace_kvm_m... | static int wrmsr_interception(struct vcpu_svm *svm) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
svm->next_rip = kvm_rip_read(&svm->vcpu) + 2;
if (kvm_set_msr(&svm->vcpu, &msr)) {
trace_kvm_msr_write_ex(ecx, data);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
} else {
trace_kvm_m... | static int wrmsr_interception(struct vcpu_svm *svm) {
svm->next_rip = kvm_rip_read(&svm->vcpu) + 2;
- if (svm_set_msr(&svm->vcpu, &msr)) {
+ if (kvm_set_msr(&svm->vcpu, &msr)) {
trace_kvm_msr_write_ex(ecx, data);
} else {
trace_kvm_msr_write(ecx, data);
}
} |
CVE-2014-3610 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | arch/x86/kvm/vmx.c | handle_wrmsr | static int handle_wrmsr(struct kvm_vcpu *vcpu) {
struct msr_data msr;
u32 ecx = vcpu->arch.regs[VCPU_REGS_RCX];
u64 data = (vcpu->arch.regs[VCPU_REGS_RAX] & -1u)
| ((u64)(vcpu->arch.regs[VCPU_REGS_RDX] & -1u) << 32);
msr.data = data;
msr.index = ecx;
msr.host_initiated = false;
... | static int handle_wrmsr(struct kvm_vcpu *vcpu) {
struct msr_data msr;
u32 ecx = vcpu->arch.regs[VCPU_REGS_RCX];
u64 data = (vcpu->arch.regs[VCPU_REGS_RAX] & -1u)
| ((u64)(vcpu->arch.regs[VCPU_REGS_RDX] & -1u) << 32);
msr.data = data;
msr.index = ecx;
msr.host_initiated = false;
... | static int handle_wrmsr(struct kvm_vcpu *vcpu) {
struct msr_data msr;
u32 ecx = vcpu->arch.regs[VCPU_REGS_RCX];
u64 data = (vcpu->arch.regs[VCPU_REGS_RAX] & -1u)
| ((u64)(vcpu->arch.regs[VCPU_REGS_RDX] & -1u) << 32);
msr.data = data;
msr.index = ecx;
msr.host_initiated = false;
... | static int handle_wrmsr(struct kvm_vcpu *vcpu) {
struct msr_data msr;
u32 ecx = vcpu->arch.regs[VCPU_REGS_RCX];
u64 data = (vcpu->arch.regs[VCPU_REGS_RAX] & -1u)
| ((u64)(vcpu->arch.regs[VCPU_REGS_RDX] & -1u) << 32);
msr.data = data;
msr.index = ecx;
msr.host_initiated = false;
... | static int handle_wrmsr(struct kvm_vcpu *vcpu) {
msr.host_initiated = false;
if (vmx_set_msr(vcpu, &msr) != 0) {
trace_kvm_msr_write_ex(ecx, data);
kvm_inject_gp(vcpu, 0);
return 1;
}
trace_kvm_msr_write(ecx, data);
skip_emulated_instruction(vcpu);
}
| static int handle_wrmsr(struct kvm_vcpu *vcpu) {
msr.host_initiated = false;
if (kvm_set_msr(vcpu, &msr) != 0) {
trace_kvm_msr_write_ex(ecx, data);
kvm_inject_gp(vcpu, 0);
return 1;
}
trace_kvm_msr_write(ecx, data);
skip_emulated_instruction(vcpu);
}
| static int handle_wrmsr(struct kvm_vcpu *vcpu) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
msr.host_initiated = false;
if (vmx_set_msr(vcpu, &msr) != 0) {
trace_kvm_msr_write_ex(ecx, data);
kvm_inject_gp(vcpu, 0);
return 1;
}
trace_kvm_msr_write(ecx, data);
skip_emula... | static int handle_wrmsr(struct kvm_vcpu *vcpu) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
msr.host_initiated = false;
if (kvm_set_msr(vcpu, &msr) != 0) {
trace_kvm_msr_write_ex(ecx, data);
kvm_inject_gp(vcpu, 0);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
}
trace_kvm_... | static int handle_wrmsr(struct kvm_vcpu *vcpu) {
msr.host_initiated = false;
- if (vmx_set_msr(vcpu, &msr) != 0) {
+ if (kvm_set_msr(vcpu, &msr) != 0) {
trace_kvm_msr_write_ex(ecx, data);
kvm_inject_gp(vcpu, 0);
return 1;
}
trace_kvm_msr_write(ecx, data);
skip_emula... |
CVE-2014-3610 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | arch/x86/kvm/x86.c | kvm_set_msr | int kvm_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr) {
return kvm_x86_ops->set_msr(vcpu, msr);
} | int kvm_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr) {
switch (msr->index) {
case MSR_FS_BASE:
case MSR_GS_BASE:
case MSR_KERNEL_GS_BASE:
case MSR_CSTAR:
case MSR_LSTAR:
if (is_noncanonical_address(msr->data)) {
return 1;
}
break;
case MSR_IA32_SYS... | int kvm_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr) {
return kvm_x86_ops->set_msr(vcpu, msr);
} | int kvm_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr) {
switch (msr->index) {
case MSR_FS_BASE:
case MSR_GS_BASE:
case MSR_KERNEL_GS_BASE:
case MSR_CSTAR:
case MSR_LSTAR:
if (is_noncanonical_address(msr->data)) {
return 1;
}
break;
case MSR_IA32_SYS... | int kvm_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr) {
return kvm_x86_ops->set_msr(vcpu, msr);
}
| int kvm_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr) {
switch (msr->index) {
case MSR_FS_BASE:
case MSR_GS_BASE:
case MSR_KERNEL_GS_BASE:
case MSR_CSTAR:
case MSR_LSTAR:
if (is_noncanonical_address(msr->data)) {
return 1;
}
break;
case MSR_IA32_SYS... | int kvm_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr) {
return kvm_x86_ops->set_msr(vcpu, msr);
}
| int kvm_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr) {
switch (msr->index) {
case MSR_FS_BASE:
case MSR_GS_BASE:
case MSR_KERNEL_GS_BASE:
case MSR_CSTAR:
case MSR_LSTAR:
if (is_noncanonical_address(msr->data)) {
return 1;
}
break;
case MSR_IA32_SYS... | int kvm_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr) {
+ switch (msr->index) {
+ case MSR_FS_BASE:
+ case MSR_GS_BASE:
+ case MSR_KERNEL_GS_BASE:
+ case MSR_CSTAR:
+ case MSR_LSTAR:
+ if (is_noncanonical_address(msr->data)) {
+ return 1;
+ }
+ break;
+ case ... |
CVE-2014-3611 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | arch/x86/kvm/i8254.c | __kvm_migrate_pit_timer | void __kvm_migrate_pit_timer(struct kvm_vcpu *vcpu) {
struct kvm_pit *pit = vcpu->kvm->arch.vpit;
struct hrtimer *timer;
if (!kvm_vcpu_is_bsp(vcpu) || !pit) {
return;
}
timer = &pit->pit_state.timer;
if (hrtimer_cancel(timer)) {
hrtimer_start_expires(timer, HRTIMER_MODE_ABS);
... | void __kvm_migrate_pit_timer(struct kvm_vcpu *vcpu) {
struct kvm_pit *pit = vcpu->kvm->arch.vpit;
struct hrtimer *timer;
if (!kvm_vcpu_is_bsp(vcpu) || !pit) {
return;
}
timer = &pit->pit_state.timer;
mutex_lock(&pit->pit_state.lock);
if (hrtimer_cancel(timer)) {
hrtimer_start... | void __kvm_migrate_pit_timer(struct kvm_vcpu *vcpu) {
struct kvm_pit *pit = vcpu->kvm->arch.vpit;
struct hrtimer *timer;
if (!kvm_vcpu_is_bsp(vcpu) || !pit) {
return;
}
timer = &pit->pit_state.timer;
if (hrtimer_cancel(timer)) {
hrtimer_start_expires(timer, HRTIMER_MODE_ABS);
... | void __kvm_migrate_pit_timer(struct kvm_vcpu *vcpu) {
struct kvm_pit *pit = vcpu->kvm->arch.vpit;
struct hrtimer *timer;
if (!kvm_vcpu_is_bsp(vcpu) || !pit) {
return;
}
timer = &pit->pit_state.timer;
mutex_lock(&pit->pit_state.lock);
if (hrtimer_cancel(timer)) {
hrtimer_start... | void __kvm_migrate_pit_timer(struct kvm_vcpu *vcpu) {
timer = &pit->pit_state.timer;
if (hrtimer_cancel(timer)) {
hrtimer_start_expires(timer, HRTIMER_MODE_ABS);
}
}
| void __kvm_migrate_pit_timer(struct kvm_vcpu *vcpu) {
timer = &pit->pit_state.timer;
mutex_lock(&pit->pit_state.lock);
if (hrtimer_cancel(timer)) {
hrtimer_start_expires(timer, HRTIMER_MODE_ABS);
}
mutex_unlock(&pit->pit_state.lock);
}
| void __kvm_migrate_pit_timer(struct kvm_vcpu *vcpu) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
timer = &pit->pit_state.timer;
if (hrtimer_cancel(timer)) {
hrtimer_start_expires(timer, HRTIMER_MODE_ABS);
}
}
| void __kvm_migrate_pit_timer(struct kvm_vcpu *vcpu) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
timer = &pit->pit_state.timer;
mutex_lock(&pit->pit_state.lock);
if (hrtimer_cancel(timer)) {
hrtimer_start_expires(timer, HRTIMER_MODE_ABS);
}
mutex_unlock(&pit->pit_state.lock);
} | void __kvm_migrate_pit_timer(struct kvm_vcpu *vcpu) {
timer = &pit->pit_state.timer;
+ mutex_lock(&pit->pit_state.lock);
if (hrtimer_cancel(timer)) {
hrtimer_start_expires(timer, HRTIMER_MODE_ABS);
}
+ mutex_unlock(&pit->pit_state.lock);
} |
CVE-2014-3631 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | lib/assoc_array.c | assoc_array_gc | int assoc_array_gc(struct assoc_array *array, const struct assoc_array_ops *ops, bool (*iterator)(void *object, void *iterator_data), void *iterator_data) {
struct assoc_array_shortcut *shortcut, *new_s;
struct assoc_array_node *node, *new_n;
struct assoc_array_edit *edit;
struct assoc_array_ptr *cursor... | int assoc_array_gc(struct assoc_array *array, const struct assoc_array_ops *ops, bool (*iterator)(void *object, void *iterator_data), void *iterator_data) {
struct assoc_array_shortcut *shortcut, *new_s;
struct assoc_array_node *node, *new_n;
struct assoc_array_edit *edit;
struct assoc_array_ptr *cursor... | int assoc_array_gc(struct assoc_array *array, const struct assoc_array_ops *ops, bool (*iterator)(void *object, void *iterator_data), void *iterator_data) {
struct assoc_array_shortcut *shortcut, *new_s;
struct assoc_array_node *node, *new_n;
struct assoc_array_edit *edit;
struct assoc_array_ptr *cursor... | int assoc_array_gc(struct assoc_array *array, const struct assoc_array_ops *ops, bool (*iterator)(void *object, void *iterator_data), void *iterator_data) {
struct assoc_array_shortcut *shortcut, *new_s;
struct assoc_array_node *node, *new_n;
struct assoc_array_edit *edit;
struct assoc_array_ptr *cursor... | int assoc_array_gc(struct assoc_array *array, const struct assoc_array_ops *ops, bool (*iterator)(void *object, void *iterator_data), void *iterator_data) {
if (!array->root) {
return 0;
}
edit = kzalloc(sizeof(struct assoc_array_edit), GFP_KERNEL);
cursor = array->root;
descend:
if (assoc_a... | int assoc_array_gc(struct assoc_array *array, const struct assoc_array_ops *ops, bool (*iterator)(void *object, void *iterator_data), void *iterator_data) {
if (!array->root) {
return 0;
}
edit = kzalloc(sizeof(struct assoc_array_edit), GFP_KERNEL);
cursor = array->root;
descend:
if (assoc_a... | int assoc_array_gc(struct assoc_array *array, const struct assoc_array_ops *ops, bool (*iterator)(void *object, void *iterator_data), void *iterator_data) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (!array->root) {
return 0;
}
edit = kzalloc(sizeof(struct assoc_array_edit), GFP_KERNEL);
... | int assoc_array_gc(struct assoc_array *array, const struct assoc_array_ops *ops, bool (*iterator)(void *object, void *iterator_data), void *iterator_data) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (!array->root) {
return 0;
}
edit = kzalloc(sizeof(struct assoc_array_edit), GFP_KERNEL);
... | int assoc_array_gc(struct assoc_array *array, const struct assoc_array_ops *ops, bool (*iterator)(void *object, void *iterator_data), void *iterator_data) {
if (!array->root) {
return 0;
}
edit = kzalloc(sizeof(struct assoc_array_edit), GFP_KERNEL);
cursor = array->root;
descend:
if ... |
CVE-2014-3646 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | arch/x86/kvm/vmx.c | nested_vmx_exit_handled | static bool nested_vmx_exit_handled(struct kvm_vcpu *vcpu) {
u32 intr_info = vmcs_read32(VM_EXIT_TR_FO);
struct vcpu_vmx *vmx = to_vmx(vcpu);
struct vmcs12 *vmcs12 = get_vmcs12(vcpu);
u32 exit_reason = vmx->exit_reason;
trace_kvm_nested_vmexit(kvm_rip_read(vcpu), exit_reason, vmcs_readl(EXIT_QUALIFI... | static bool nested_vmx_exit_handled(struct kvm_vcpu *vcpu) {
u32 intr_info = vmcs_read32(VM_EXIT_TR_FO);
struct vcpu_vmx *vmx = to_vmx(vcpu);
struct vmcs12 *vmcs12 = get_vmcs12(vcpu);
u32 exit_reason = vmx->exit_reason;
trace_kvm_nested_vmexit(kvm_rip_read(vcpu), exit_reason, vmcs_readl(EXIT_QUALIFI... | static bool nested_vmx_exit_handled(struct kvm_vcpu *vcpu) {
u32 intr_info = vmcs_read32(VM_EXIT_TR_FO);
struct vcpu_vmx *vmx = to_vmx(vcpu);
struct vmcs12 *vmcs12 = get_vmcs12(vcpu);
u32 exit_reason = vmx->exit_reason;
trace_kvm_nested_vmexit(kvm_rip_read(vcpu), exit_reason, vmcs_readl(EXIT_QUALIFI... | static bool nested_vmx_exit_handled(struct kvm_vcpu *vcpu) {
u32 intr_info = vmcs_read32(VM_EXIT_TR_FO);
struct vcpu_vmx *vmx = to_vmx(vcpu);
struct vmcs12 *vmcs12 = get_vmcs12(vcpu);
u32 exit_reason = vmx->exit_reason;
trace_kvm_nested_vmexit(kvm_rip_read(vcpu), exit_reason, vmcs_readl(EXIT_QUALIFI... | static bool nested_vmx_exit_handled(struct kvm_vcpu *vcpu) {
switch (exit_reason) {
case EXIT_REASON_VEPT:
return 1;
}
}
| static bool nested_vmx_exit_handled(struct kvm_vcpu *vcpu) {
switch (exit_reason) {
case EXIT_REASON_VEPT: case EXIT_REASON_VVPID:
return 1;
}
}
| static bool nested_vmx_exit_handled(struct kvm_vcpu *vcpu) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
switch (exit_reason) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
case EXIT_REASON_VEPT:
return 1;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
}
}
| static bool nested_vmx_exit_handled(struct kvm_vcpu *vcpu) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
switch (exit_reason) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
case EXIT_REASON_VEPT: case EXIT_REASON_VVPID:
return 1;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
}
} | static bool nested_vmx_exit_handled(struct kvm_vcpu *vcpu) {
switch (exit_reason) {
- case EXIT_REASON_VEPT:
+ case EXIT_REASON_VEPT: case EXIT_REASON_VVPID:
return 1;
}
} |
CVE-2014-3647 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | arch/x86/kvm/emulate.c | assign_eip_near | static inline void assign_eip_near(struct x86_emulate_ctxt *ctxt, ulong dst) {
switch (ctxt->op_bytes) {
case 2:
ctxt->_eip = (u16)dst;
break;
case 4:
ctxt->_eip = (u32)dst;
break;
case 8:
ctxt->_eip = dst;
break;
default:
WARN(1, "unsupported ... | static inline int assign_eip_near(struct x86_emulate_ctxt *ctxt, ulong dst) {
return assign_eip_far(ctxt, dst, ctxt->mode == X86EMUL_MODE_PROT64);
} | static inline void assign_eip_near(struct x86_emulate_ctxt *ctxt, ulong dst) {
switch (ctxt->op_bytes) {
case 2:
ctxt->_eip = (u16)dst;
break;
case 4:
ctxt->_eip = (u32)dst;
break;
case 8:
ctxt->_eip = dst;
break;
default:
WARN(1, "unsupported ... | static inline int assign_eip_near(struct x86_emulate_ctxt *ctxt, ulong dst) {
return assign_eip_far(ctxt, dst, ctxt->mode == X86EMUL_MODE_PROT64);
} | static inline void assign_eip_near(struct x86_emulate_ctxt *ctxt, ulong dst) {
switch (ctxt->op_bytes) {
case 2:
ctxt->_eip = (u16)dst;
break;
case 4:
ctxt->_eip = (u32)dst;
break;
case 8:
ctxt->_eip = dst;
break;
default:
WARN(1, "unsupported ... | static inline int assign_eip_near(struct x86_emulate_ctxt *ctxt, ulong dst) {
return assign_eip_far(ctxt, dst, ctxt->mode == X86EMUL_MODE_PROT64);
}
| static inline void assign_eip_near(struct x86_emulate_ctxt *ctxt, ulong dst) {
switch (ctxt->op_bytes) {
case 2:
ctxt->_eip = (u16)dst;
break;
case 4:
ctxt->_eip = (u32)dst;
break;
case 8:
ctxt->_eip = dst;
break;
default:
WARN(1, "unsupported ... | static inline int assign_eip_near(struct x86_emulate_ctxt *ctxt, ulong dst) {
return assign_eip_far(ctxt, dst, ctxt->mode == X86EMUL_MODE_PROT64);
} | -static inline void assign_eip_near(struct x86_emulate_ctxt *ctxt, ulong dst) {
- switch (ctxt->op_bytes) {
- case 2:
- ctxt->_eip = (u16)dst;
- break;
- case 4:
- ctxt->_eip = (u32)dst;
- break;
- case 8:
- ctxt->_eip = dst;
- break;
- default:
- WARN(1, ... |
CVE-2014-3647 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | arch/x86/kvm/emulate.c | em_call | static int em_call(struct x86_emulate_ctxt *ctxt) {
long rel = ctxt->src.val;
ctxt->src.val = (unsigned long)ctxt->_eip;
jmp_rel(ctxt, rel);
return em_push(ctxt);
} | static int em_call(struct x86_emulate_ctxt *ctxt) {
int rc;
long rel = ctxt->src.val;
ctxt->src.val = (unsigned long)ctxt->_eip;
rc = jmp_rel(ctxt, rel);
if (rc != X86EMUL_CONTUE) {
return rc;
}
return em_push(ctxt);
} | static int em_call(struct x86_emulate_ctxt *ctxt) {
long rel = ctxt->src.val;
ctxt->src.val = (unsigned long)ctxt->_eip;
jmp_rel(ctxt, rel);
return em_push(ctxt);
} | static int em_call(struct x86_emulate_ctxt *ctxt) {
int rc;
long rel = ctxt->src.val;
ctxt->src.val = (unsigned long)ctxt->_eip;
rc = jmp_rel(ctxt, rel);
if (rc != X86EMUL_CONTUE) {
return rc;
}
return em_push(ctxt);
} | static int em_call(struct x86_emulate_ctxt *ctxt) {
long rel = ctxt->src.val;
ctxt->src.val = (unsigned long)ctxt->_eip;
jmp_rel(ctxt, rel);
return em_push(ctxt);
}
| static int em_call(struct x86_emulate_ctxt *ctxt) {
int rc;
long rel = ctxt->src.val;
ctxt->src.val = (unsigned long)ctxt->_eip;
rc = jmp_rel(ctxt, rel);
if (rc != X86EMUL_CONTUE) {
return rc;
}
return em_push(ctxt);
}
| static int em_call(struct x86_emulate_ctxt *ctxt) {
long rel = ctxt->src.val;
ctxt->src.val = (unsigned long)ctxt->_eip;
jmp_rel(ctxt, rel);
return em_push(ctxt);
}
| static int em_call(struct x86_emulate_ctxt *ctxt) {
int rc;
long rel = ctxt->src.val;
ctxt->src.val = (unsigned long)ctxt->_eip;
rc = jmp_rel(ctxt, rel);
if (rc != X86EMUL_CONTUE) {
return rc;
}
return em_push(ctxt);
} | static int em_call(struct x86_emulate_ctxt *ctxt) {
+ int rc;
long rel = ctxt->src.val;
ctxt->src.val = (unsigned long)ctxt->_eip;
- jmp_rel(ctxt, rel);
+ rc = jmp_rel(ctxt, rel);
+ if (rc != X86EMUL_CONTUE) {
+ return rc;
+ }
return em_push(ctxt);
} |
CVE-2014-3647 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | arch/x86/kvm/emulate.c | em_grp45 | static int em_grp45(struct x86_emulate_ctxt *ctxt) {
int rc = X86EMUL_CONTUE;
switch (ctxt->modrm_reg) {
case 2: {
long int old_eip;
old_eip = ctxt->_eip;
ctxt->_eip = ctxt->src.val;
ctxt->src.val = old_eip;
rc = em_push(ctxt);
break;
}
case 4:
... | static int em_grp45(struct x86_emulate_ctxt *ctxt) {
int rc = X86EMUL_CONTUE;
switch (ctxt->modrm_reg) {
case 2: {
long int old_eip;
old_eip = ctxt->_eip;
rc = assign_eip_near(ctxt, ctxt->src.val);
if (rc != X86EMUL_CONTUE) {
break;
}
ctxt->src.val... | static int em_grp45(struct x86_emulate_ctxt *ctxt) {
int rc = X86EMUL_CONTUE;
switch (ctxt->modrm_reg) {
case 2: {
long int old_eip;
old_eip = ctxt->_eip;
ctxt->_eip = ctxt->src.val;
ctxt->src.val = old_eip;
rc = em_push(ctxt);
break;
}
case 4:
... | static int em_grp45(struct x86_emulate_ctxt *ctxt) {
int rc = X86EMUL_CONTUE;
switch (ctxt->modrm_reg) {
case 2: {
long int old_eip;
old_eip = ctxt->_eip;
rc = assign_eip_near(ctxt, ctxt->src.val);
if (rc != X86EMUL_CONTUE) {
break;
}
ctxt->src.val... | static int em_grp45(struct x86_emulate_ctxt *ctxt) {
switch (ctxt->modrm_reg) {
case 2: {
old_eip = ctxt->_eip;
ctxt->_eip = ctxt->src.val;
ctxt->src.val = old_eip;
rc = em_push(ctxt);
break;
}
case 4:
ctxt->_eip = ctxt->src.val;
break;
}
r... | static int em_grp45(struct x86_emulate_ctxt *ctxt) {
switch (ctxt->modrm_reg) {
case 2: {
old_eip = ctxt->_eip;
rc = assign_eip_near(ctxt, ctxt->src.val);
if (rc != X86EMUL_CONTUE) {
break;
}
ctxt->src.val = old_eip;
rc = em_push(ctxt);
break;
... | static int em_grp45(struct x86_emulate_ctxt *ctxt) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
switch (ctxt->modrm_reg) {
case 2: {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
old_eip = ctxt->_eip;
ctxt->_eip = ctxt->src.val;
ctxt->src.val = old_eip;
rc = em_push(ct... | static int em_grp45(struct x86_emulate_ctxt *ctxt) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
switch (ctxt->modrm_reg) {
case 2: {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
old_eip = ctxt->_eip;
rc = assign_eip_near(ctxt, ctxt->src.val);
if (rc != X86EMUL_CONTUE) {
... | static int em_grp45(struct x86_emulate_ctxt *ctxt) {
switch (ctxt->modrm_reg) {
case 2: {
old_eip = ctxt->_eip;
- ctxt->_eip = ctxt->src.val;
+ rc = assign_eip_near(ctxt, ctxt->src.val);
+ if (rc != X86EMUL_CONTUE) {
+ break;
+ }
ctxt->src.val = old_ei... |
CVE-2014-3647 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | arch/x86/kvm/emulate.c | em_jcxz | static int em_jcxz(struct x86_emulate_ctxt *ctxt) {
if (address_mask(ctxt, reg_read(ctxt, VCPU_REGS_RCX)) == 0) {
jmp_rel(ctxt, ctxt->src.val);
}
return X86EMUL_CONTUE;
} | static int em_jcxz(struct x86_emulate_ctxt *ctxt) {
int rc = X86EMUL_CONTUE;
if (address_mask(ctxt, reg_read(ctxt, VCPU_REGS_RCX)) == 0) {
rc = jmp_rel(ctxt, ctxt->src.val);
}
return rc;
} | static int em_jcxz(struct x86_emulate_ctxt *ctxt) {
if (address_mask(ctxt, reg_read(ctxt, VCPU_REGS_RCX)) == 0) {
jmp_rel(ctxt, ctxt->src.val);
}
return X86EMUL_CONTUE;
} | static int em_jcxz(struct x86_emulate_ctxt *ctxt) {
int rc = X86EMUL_CONTUE;
if (address_mask(ctxt, reg_read(ctxt, VCPU_REGS_RCX)) == 0) {
rc = jmp_rel(ctxt, ctxt->src.val);
}
return rc;
} | static int em_jcxz(struct x86_emulate_ctxt *ctxt) {
if (address_mask(ctxt, reg_read(ctxt, VCPU_REGS_RCX)) == 0) {
jmp_rel(ctxt, ctxt->src.val);
}
return X86EMUL_CONTUE;
}
| static int em_jcxz(struct x86_emulate_ctxt *ctxt) {
int rc = X86EMUL_CONTUE;
if (address_mask(ctxt, reg_read(ctxt, VCPU_REGS_RCX)) == 0) {
rc = jmp_rel(ctxt, ctxt->src.val);
}
return rc;
}
| static int em_jcxz(struct x86_emulate_ctxt *ctxt) {
if (address_mask(ctxt, reg_read(ctxt, VCPU_REGS_RCX)) == 0) {
jmp_rel(ctxt, ctxt->src.val);
}
return X86EMUL_CONTUE;
}
| static int em_jcxz(struct x86_emulate_ctxt *ctxt) {
int rc = X86EMUL_CONTUE;
if (address_mask(ctxt, reg_read(ctxt, VCPU_REGS_RCX)) == 0) {
rc = jmp_rel(ctxt, ctxt->src.val);
}
return rc;
} | static int em_jcxz(struct x86_emulate_ctxt *ctxt) {
+ int rc = X86EMUL_CONTUE;
if (address_mask(ctxt, reg_read(ctxt, VCPU_REGS_RCX)) == 0) {
- jmp_rel(ctxt, ctxt->src.val);
+ rc = jmp_rel(ctxt, ctxt->src.val);
}
- return X86EMUL_CONTUE;
+ return rc;
} |
CVE-2014-3647 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | arch/x86/kvm/emulate.c | em_loop | static int em_loop(struct x86_emulate_ctxt *ctxt) {
register_address_increment(ctxt, reg_rmw(ctxt, VCPU_REGS_RCX), -1);
if ((address_mask(ctxt, reg_read(ctxt, VCPU_REGS_RCX)) != 0) && (ctxt->b == 0xe2 || test_cc(ctxt->b ^ 0x5, ctxt->eflags))) {
jmp_rel(ctxt, ctxt->src.val);
}
return X86EMUL_CONT... | static int em_loop(struct x86_emulate_ctxt *ctxt) {
int rc = X86EMUL_CONTUE;
register_address_increment(ctxt, reg_rmw(ctxt, VCPU_REGS_RCX), -1);
if ((address_mask(ctxt, reg_read(ctxt, VCPU_REGS_RCX)) != 0) && (ctxt->b == 0xe2 || test_cc(ctxt->b ^ 0x5, ctxt->eflags))) {
rc = jmp_rel(ctxt, ctxt->src.v... | static int em_loop(struct x86_emulate_ctxt *ctxt) {
register_address_increment(ctxt, reg_rmw(ctxt, VCPU_REGS_RCX), -1);
if ((address_mask(ctxt, reg_read(ctxt, VCPU_REGS_RCX)) != 0) && (ctxt->b == 0xe2 || test_cc(ctxt->b ^ 0x5, ctxt->eflags))) {
jmp_rel(ctxt, ctxt->src.val);
}
return X86EMUL_CONT... | static int em_loop(struct x86_emulate_ctxt *ctxt) {
int rc = X86EMUL_CONTUE;
register_address_increment(ctxt, reg_rmw(ctxt, VCPU_REGS_RCX), -1);
if ((address_mask(ctxt, reg_read(ctxt, VCPU_REGS_RCX)) != 0) && (ctxt->b == 0xe2 || test_cc(ctxt->b ^ 0x5, ctxt->eflags))) {
rc = jmp_rel(ctxt, ctxt->src.v... | static int em_loop(struct x86_emulate_ctxt *ctxt) {
register_address_increment(ctxt, reg_rmw(ctxt, VCPU_REGS_RCX), -1);
if ((address_mask(ctxt, reg_read(ctxt, VCPU_REGS_RCX)) != 0) && (ctxt->b == 0xe2 || test_cc(ctxt->b ^ 0x5, ctxt->eflags))) {
jmp_rel(ctxt, ctxt->src.val);
}
return X86EMUL_CONT... | static int em_loop(struct x86_emulate_ctxt *ctxt) {
int rc = X86EMUL_CONTUE;
register_address_increment(ctxt, reg_rmw(ctxt, VCPU_REGS_RCX), -1);
if ((address_mask(ctxt, reg_read(ctxt, VCPU_REGS_RCX)) != 0) && (ctxt->b == 0xe2 || test_cc(ctxt->b ^ 0x5, ctxt->eflags))) {
rc = jmp_rel(ctxt, ctxt->src.v... | static int em_loop(struct x86_emulate_ctxt *ctxt) {
register_address_increment(ctxt, reg_rmw(ctxt, VCPU_REGS_RCX), -1);
if ((address_mask(ctxt, reg_read(ctxt, VCPU_REGS_RCX)) != 0) && (ctxt->b == 0xe2 || test_cc(ctxt->b ^ 0x5, ctxt->eflags))) {
jmp_rel(ctxt, ctxt->src.val);
}
return X86EMUL_CONT... | static int em_loop(struct x86_emulate_ctxt *ctxt) {
int rc = X86EMUL_CONTUE;
register_address_increment(ctxt, reg_rmw(ctxt, VCPU_REGS_RCX), -1);
if ((address_mask(ctxt, reg_read(ctxt, VCPU_REGS_RCX)) != 0) && (ctxt->b == 0xe2 || test_cc(ctxt->b ^ 0x5, ctxt->eflags))) {
rc = jmp_rel(ctxt, ctxt->src.v... | static int em_loop(struct x86_emulate_ctxt *ctxt) {
+ int rc = X86EMUL_CONTUE;
register_address_increment(ctxt, reg_rmw(ctxt, VCPU_REGS_RCX), -1);
if ((address_mask(ctxt, reg_read(ctxt, VCPU_REGS_RCX)) != 0) && (ctxt->b == 0xe2 || test_cc(ctxt->b ^ 0x5, ctxt->eflags))) {
- jmp_rel(ctxt, ctxt->src.v... |
CVE-2014-3647 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | arch/x86/kvm/emulate.c | em_ret | static int em_ret(struct x86_emulate_ctxt *ctxt) {
ctxt->dst.type = OP_REG;
ctxt->dst.addr.reg = &ctxt->_eip;
ctxt->dst.bytes = ctxt->op_bytes;
return em_pop(ctxt);
} | static int em_ret(struct x86_emulate_ctxt *ctxt) {
int rc;
unsigned long eip;
rc = emulate_pop(ctxt, &eip, ctxt->op_bytes);
if (rc != X86EMUL_CONTUE) {
return rc;
}
return assign_eip_near(ctxt, eip);
} | static int em_ret(struct x86_emulate_ctxt *ctxt) {
ctxt->dst.type = OP_REG;
ctxt->dst.addr.reg = &ctxt->_eip;
ctxt->dst.bytes = ctxt->op_bytes;
return em_pop(ctxt);
} | static int em_ret(struct x86_emulate_ctxt *ctxt) {
int rc;
unsigned long eip;
rc = emulate_pop(ctxt, &eip, ctxt->op_bytes);
if (rc != X86EMUL_CONTUE) {
return rc;
}
return assign_eip_near(ctxt, eip);
} | static int em_ret(struct x86_emulate_ctxt *ctxt) {
ctxt->dst.type = OP_REG;
ctxt->dst.addr.reg = &ctxt->_eip;
ctxt->dst.bytes = ctxt->op_bytes;
return em_pop(ctxt);
}
| static int em_ret(struct x86_emulate_ctxt *ctxt) {
int rc;
unsigned long eip;
rc = emulate_pop(ctxt, &eip, ctxt->op_bytes);
if (rc != X86EMUL_CONTUE) {
return rc;
}
return assign_eip_near(ctxt, eip);
}
| static int em_ret(struct x86_emulate_ctxt *ctxt) {
ctxt->dst.type = OP_REG;
ctxt->dst.addr.reg = &ctxt->_eip;
ctxt->dst.bytes = ctxt->op_bytes;
return em_pop(ctxt);
}
| static int em_ret(struct x86_emulate_ctxt *ctxt) {
int rc;
unsigned long eip;
rc = emulate_pop(ctxt, &eip, ctxt->op_bytes);
if (rc != X86EMUL_CONTUE) {
return rc;
}
return assign_eip_near(ctxt, eip);
} | static int em_ret(struct x86_emulate_ctxt *ctxt) {
- ctxt->dst.type = OP_REG;
- ctxt->dst.addr.reg = &ctxt->_eip;
- ctxt->dst.bytes = ctxt->op_bytes;
- return em_pop(ctxt);
+ int rc;
+ unsigned long eip;
+ rc = emulate_pop(ctxt, &eip, ctxt->op_bytes);
+ if (rc != X86EMUL_CONTUE) {
+ retu... |
CVE-2014-3647 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | arch/x86/kvm/emulate.c | em_ret_near_imm | static int em_ret_near_imm(struct x86_emulate_ctxt *ctxt) {
int rc;
ctxt->dst.type = OP_REG;
ctxt->dst.addr.reg = &ctxt->_eip;
ctxt->dst.bytes = ctxt->op_bytes;
rc = emulate_pop(ctxt, &ctxt->dst.val, ctxt->op_bytes);
if (rc != X86EMUL_CONTUE) {
return rc;
}
rsp_increment(ctxt, ct... | static int em_ret_near_imm(struct x86_emulate_ctxt *ctxt) {
int rc;
unsigned long eip;
rc = emulate_pop(ctxt, &eip, ctxt->op_bytes);
if (rc != X86EMUL_CONTUE) {
return rc;
}
rc = assign_eip_near(ctxt, eip);
if (rc != X86EMUL_CONTUE) {
return rc;
}
rsp_increment(ctxt, ... | static int em_ret_near_imm(struct x86_emulate_ctxt *ctxt) {
int rc;
ctxt->dst.type = OP_REG;
ctxt->dst.addr.reg = &ctxt->_eip;
ctxt->dst.bytes = ctxt->op_bytes;
rc = emulate_pop(ctxt, &ctxt->dst.val, ctxt->op_bytes);
if (rc != X86EMUL_CONTUE) {
return rc;
}
rsp_increment(ctxt, ct... | static int em_ret_near_imm(struct x86_emulate_ctxt *ctxt) {
int rc;
unsigned long eip;
rc = emulate_pop(ctxt, &eip, ctxt->op_bytes);
if (rc != X86EMUL_CONTUE) {
return rc;
}
rc = assign_eip_near(ctxt, eip);
if (rc != X86EMUL_CONTUE) {
return rc;
}
rsp_increment(ctxt, ... | static int em_ret_near_imm(struct x86_emulate_ctxt *ctxt) {
int rc;
ctxt->dst.type = OP_REG;
ctxt->dst.addr.reg = &ctxt->_eip;
ctxt->dst.bytes = ctxt->op_bytes;
rc = emulate_pop(ctxt, &ctxt->dst.val, ctxt->op_bytes);
if (rc != X86EMUL_CONTUE) {
return rc;
}
rsp_increment(ctxt, ct... | static int em_ret_near_imm(struct x86_emulate_ctxt *ctxt) {
int rc;
unsigned long eip;
rc = emulate_pop(ctxt, &eip, ctxt->op_bytes);
if (rc != X86EMUL_CONTUE) {
return rc;
}
rc = assign_eip_near(ctxt, eip);
if (rc != X86EMUL_CONTUE) {
return rc;
}
rsp_increment(ctxt, ... | static int em_ret_near_imm(struct x86_emulate_ctxt *ctxt) {
int rc;
ctxt->dst.type = OP_REG;
ctxt->dst.addr.reg = &ctxt->_eip;
ctxt->dst.bytes = ctxt->op_bytes;
rc = emulate_pop(ctxt, &ctxt->dst.val, ctxt->op_bytes);
if (rc != X86EMUL_CONTUE) {
return rc;
}
rsp_increment(ctxt, ct... | static int em_ret_near_imm(struct x86_emulate_ctxt *ctxt) {
int rc;
unsigned long eip;
rc = emulate_pop(ctxt, &eip, ctxt->op_bytes);
if (rc != X86EMUL_CONTUE) {
return rc;
}
rc = assign_eip_near(ctxt, eip);
if (rc != X86EMUL_CONTUE) {
return rc;
}
rsp_increment(ctxt, ... | static int em_ret_near_imm(struct x86_emulate_ctxt *ctxt) {
int rc;
- ctxt->dst.type = OP_REG;
- ctxt->dst.addr.reg = &ctxt->_eip;
- ctxt->dst.bytes = ctxt->op_bytes;
- rc = emulate_pop(ctxt, &ctxt->dst.val, ctxt->op_bytes);
+ unsigned long eip;
+ rc = emulate_pop(ctxt, &eip, ctxt->op_bytes);
+ ... |
CVE-2014-3647 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | arch/x86/kvm/emulate.c | em_sysexit | static int em_sysexit(struct x86_emulate_ctxt *ctxt) {
const struct x86_emulate_ops *ops = ctxt->ops;
struct desc_struct cs, ss;
u64 msr_data;
int usermode;
u16 cs_sel = 0, ss_sel = 0;
if (ctxt->mode == X86EMUL_MODE_REAL || ctxt->mode == X86EMUL_MODE_VM86) {
return emulate_gp(ctxt, 0);
... | static int em_sysexit(struct x86_emulate_ctxt *ctxt) {
const struct x86_emulate_ops *ops = ctxt->ops;
struct desc_struct cs, ss;
u64 msr_data, rcx, rdx;
int usermode;
u16 cs_sel = 0, ss_sel = 0;
if (ctxt->mode == X86EMUL_MODE_REAL || ctxt->mode == X86EMUL_MODE_VM86) {
return emulate_gp(c... | static int em_sysexit(struct x86_emulate_ctxt *ctxt) {
const struct x86_emulate_ops *ops = ctxt->ops;
struct desc_struct cs, ss;
u64 msr_data;
int usermode;
u16 cs_sel = 0, ss_sel = 0;
if (ctxt->mode == X86EMUL_MODE_REAL || ctxt->mode == X86EMUL_MODE_VM86) {
return emulate_gp(ctxt, 0);
... | static int em_sysexit(struct x86_emulate_ctxt *ctxt) {
const struct x86_emulate_ops *ops = ctxt->ops;
struct desc_struct cs, ss;
u64 msr_data, rcx, rdx;
int usermode;
u16 cs_sel = 0, ss_sel = 0;
if (ctxt->mode == X86EMUL_MODE_REAL || ctxt->mode == X86EMUL_MODE_VM86) {
return emulate_gp(c... | static int em_sysexit(struct x86_emulate_ctxt *ctxt) {
const struct x86_emulate_ops *ops = ctxt->ops;
struct desc_struct cs, ss;
u64 msr_data;
int usermode;
u16 cs_sel = 0, ss_sel = 0;
setup_syscalls_segments(ctxt, &cs, &ss);
if ((ctxt->rex_prefix & 0x8) != 0x0) {
usermode = X86EMUL_... | static int em_sysexit(struct x86_emulate_ctxt *ctxt) {
const struct x86_emulate_ops *ops = ctxt->ops;
struct desc_struct cs, ss;
u64 msr_data, rcx, rdx;
int usermode;
u16 cs_sel = 0, ss_sel = 0;
setup_syscalls_segments(ctxt, &cs, &ss);
if ((ctxt->rex_prefix & 0x8) != 0x0) {
usermode ... | static int em_sysexit(struct x86_emulate_ctxt *ctxt) {
const struct x86_emulate_ops *ops = ctxt->ops;
struct desc_struct cs, ss;
u64 msr_data;
int usermode;
u16 cs_sel = 0, ss_sel = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
setup_syscalls_segments(ctxt, &cs, &ss);
if ((ctxt->rex_p... | static int em_sysexit(struct x86_emulate_ctxt *ctxt) {
const struct x86_emulate_ops *ops = ctxt->ops;
struct desc_struct cs, ss;
u64 msr_data, rcx, rdx;
int usermode;
u16 cs_sel = 0, ss_sel = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
setup_syscalls_segments(ctxt, &cs, &ss);
if ((c... | static int em_sysexit(struct x86_emulate_ctxt *ctxt) {
const struct x86_emulate_ops *ops = ctxt->ops;
struct desc_struct cs, ss;
- u64 msr_data;
+ u64 msr_data, rcx, rdx;
int usermode;
u16 cs_sel = 0, ss_sel = 0;
setup_syscalls_segments(ctxt, &cs, &ss);
if ((ctxt->rex_prefix & 0x8) ... |
CVE-2014-3647 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | arch/x86/kvm/emulate.c | jmp_rel | static inline void jmp_rel(struct x86_emulate_ctxt *ctxt, int rel) {
assign_eip_near(ctxt, ctxt->_eip + rel);
} | static inline int jmp_rel(struct x86_emulate_ctxt *ctxt, int rel) {
return assign_eip_near(ctxt, ctxt->_eip + rel);
} | static inline void jmp_rel(struct x86_emulate_ctxt *ctxt, int rel) {
assign_eip_near(ctxt, ctxt->_eip + rel);
} | static inline int jmp_rel(struct x86_emulate_ctxt *ctxt, int rel) {
return assign_eip_near(ctxt, ctxt->_eip + rel);
} | static inline void jmp_rel(struct x86_emulate_ctxt *ctxt, int rel) {
assign_eip_near(ctxt, ctxt->_eip + rel);
}
| static inline int jmp_rel(struct x86_emulate_ctxt *ctxt, int rel) {
return assign_eip_near(ctxt, ctxt->_eip + rel);
}
| static inline void jmp_rel(struct x86_emulate_ctxt *ctxt, int rel) {
assign_eip_near(ctxt, ctxt->_eip + rel);
}
| static inline int jmp_rel(struct x86_emulate_ctxt *ctxt, int rel) {
return assign_eip_near(ctxt, ctxt->_eip + rel);
} | -static inline void jmp_rel(struct x86_emulate_ctxt *ctxt, int rel) {
- assign_eip_near(ctxt, ctxt->_eip + rel);
+static inline int jmp_rel(struct x86_emulate_ctxt *ctxt, int rel) {
+ return assign_eip_near(ctxt, ctxt->_eip + rel);
} |
CVE-2014-3647 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | arch/x86/kvm/emulate.c | x86_emulate_insn | int x86_emulate_insn(struct x86_emulate_ctxt *ctxt) {
const struct x86_emulate_ops *ops = ctxt->ops;
int rc = X86EMUL_CONTUE;
int saved_dst_type = ctxt->dst.type;
ctxt->mem_read.pos = 0;
if ((ctxt->mode == X86EMUL_MODE_PROT64 && (ctxt->d & No64)) || (ctxt->d & Undefined)) {
rc = emulate_ud(c... | int x86_emulate_insn(struct x86_emulate_ctxt *ctxt) {
const struct x86_emulate_ops *ops = ctxt->ops;
int rc = X86EMUL_CONTUE;
int saved_dst_type = ctxt->dst.type;
ctxt->mem_read.pos = 0;
if ((ctxt->mode == X86EMUL_MODE_PROT64 && (ctxt->d & No64)) || (ctxt->d & Undefined)) {
rc = emulate_ud(c... | int x86_emulate_insn(struct x86_emulate_ctxt *ctxt) {
const struct x86_emulate_ops *ops = ctxt->ops;
int rc = X86EMUL_CONTUE;
int saved_dst_type = ctxt->dst.type;
ctxt->mem_read.pos = 0;
if ((ctxt->mode == X86EMUL_MODE_PROT64 && (ctxt->d & No64)) || (ctxt->d & Undefined)) {
rc = emulate_ud(c... | int x86_emulate_insn(struct x86_emulate_ctxt *ctxt) {
const struct x86_emulate_ops *ops = ctxt->ops;
int rc = X86EMUL_CONTUE;
int saved_dst_type = ctxt->dst.type;
ctxt->mem_read.pos = 0;
if ((ctxt->mode == X86EMUL_MODE_PROT64 && (ctxt->d & No64)) || (ctxt->d & Undefined)) {
rc = emulate_ud(c... | int x86_emulate_insn(struct x86_emulate_ctxt *ctxt) {
const struct x86_emulate_ops *ops = ctxt->ops;
if ((ctxt->mode == X86EMUL_MODE_PROT64 && (ctxt->d & No64)) || (ctxt->d & Undefined)) {
goto done;
}
if (ctxt->lock_prefix && (!(ctxt->d & Lock) || ctxt->dst.type != OP_MEM)) {
goto done;... | int x86_emulate_insn(struct x86_emulate_ctxt *ctxt) {
const struct x86_emulate_ops *ops = ctxt->ops;
if ((ctxt->mode == X86EMUL_MODE_PROT64 && (ctxt->d & No64)) || (ctxt->d & Undefined)) {
goto done;
}
if (ctxt->lock_prefix && (!(ctxt->d & Lock) || ctxt->dst.type != OP_MEM)) {
goto done;... | int x86_emulate_insn(struct x86_emulate_ctxt *ctxt) {
const struct x86_emulate_ops *ops = ctxt->ops;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if ((ctxt->mode == X86EMUL_MODE_PROT64 && (ctxt->d & No64)) || (ctxt->d & Undefined)) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
goto done;
... | int x86_emulate_insn(struct x86_emulate_ctxt *ctxt) {
const struct x86_emulate_ops *ops = ctxt->ops;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if ((ctxt->mode == X86EMUL_MODE_PROT64 && (ctxt->d & No64)) || (ctxt->d & Undefined)) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
goto done;
... | int x86_emulate_insn(struct x86_emulate_ctxt *ctxt) {
const struct x86_emulate_ops *ops = ctxt->ops;
if ((ctxt->mode == X86EMUL_MODE_PROT64 && (ctxt->d & No64)) || (ctxt->d & Undefined)) {
goto done;
}
if (ctxt->lock_prefix && (!(ctxt->d & Lock) || ctxt->dst.type != OP_MEM)) {
got... |
CVE-2014-3673 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | net/sctp/sm_make_chunk.c | sctp_process_asconf | struct sctp_chunk *sctp_process_asconf(struct sctp_association *asoc, struct sctp_chunk *asconf) {
sctp_addiphdr_t *hdr;
union sctp_addr_param *addr_param;
sctp_addip_param_t *asconf_param;
struct sctp_chunk *asconf_ack;
__be16 err_code;
int length = 0;
int chunk_len;
__u32 serial;
i... | struct sctp_chunk *sctp_process_asconf(struct sctp_association *asoc, struct sctp_chunk *asconf) {
sctp_addip_chunk_t *addip = (sctp_addip_chunk_t *) asconf->chunk_hdr;
bool all_param_pass = true;
union sctp_params param;
sctp_addiphdr_t *hdr;
union sctp_addr_param *addr_param;
sctp_addip_param_... | struct sctp_chunk *sctp_process_asconf(struct sctp_association *asoc, struct sctp_chunk *asconf) {
sctp_addiphdr_t *hdr;
union sctp_addr_param *addr_param;
sctp_addip_param_t *asconf_param;
struct sctp_chunk *asconf_ack;
__be16 err_code;
int length = 0;
int chunk_len;
__u32 serial;
i... | struct sctp_chunk *sctp_process_asconf(struct sctp_association *asoc, struct sctp_chunk *asconf) {
sctp_addip_chunk_t *addip = (sctp_addip_chunk_t *) asconf->chunk_hdr;
bool all_param_pass = true;
union sctp_params param;
sctp_addiphdr_t *hdr;
union sctp_addr_param *addr_param;
sctp_addip_param_... | struct sctp_chunk *sctp_process_asconf(struct sctp_association *asoc, struct sctp_chunk *asconf) {
sctp_addiphdr_t *hdr;
int length = 0;
__u32 serial;
int all_param_pass = 1;
chunk_len = ntohs(asconf->chunk_hdr->length) - sizeof(sctp_chunkhdr_t);
hdr = (sctp_addiphdr_t *)asconf->skb->data;
s... | struct sctp_chunk *sctp_process_asconf(struct sctp_association *asoc, struct sctp_chunk *asconf) {
sctp_addip_chunk_t *addip = (sctp_addip_chunk_t *) asconf->chunk_hdr;
bool all_param_pass = true;
union sctp_params param;
sctp_addiphdr_t *hdr;
int length = 0;
__u32 serial;
chunk_len = ntohs(... | struct sctp_chunk *sctp_process_asconf(struct sctp_association *asoc, struct sctp_chunk *asconf) {
sctp_addiphdr_t *hdr;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int length = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
__u32 serial;
int all_param_pass = 1;
chunk_len = ntohs(asconf-... | struct sctp_chunk *sctp_process_asconf(struct sctp_association *asoc, struct sctp_chunk *asconf) {
sctp_addip_chunk_t *addip = (sctp_addip_chunk_t *) asconf->chunk_hdr;
bool all_param_pass = true;
union sctp_params param;
sctp_addiphdr_t *hdr;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int le... | struct sctp_chunk *sctp_process_asconf(struct sctp_association *asoc, struct sctp_chunk *asconf) {
+ sctp_addip_chunk_t *addip = (sctp_addip_chunk_t *) asconf->chunk_hdr;
+ bool all_param_pass = true;
+ union sctp_params param;
sctp_addiphdr_t *hdr;
int length = 0;
__u32 serial;
- int all_pa... |
CVE-2014-3673 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | net/sctp/sm_make_chunk.c | sctp_verify_asconf | int sctp_verify_asconf(const struct sctp_association *asoc, struct sctp_paramhdr *param_hdr, void *chunk_end, struct sctp_paramhdr **errp) {
sctp_addip_param_t *asconf_param;
union sctp_params param;
int length, plen;
param.v = (sctp_paramhdr_t *) param_hdr;
while (param.v <= chunk_end - sizeof(sctp... | bool sctp_verify_asconf(const struct sctp_association *asoc, struct sctp_chunk *chunk, bool addr_param_needed, struct sctp_paramhdr **errp) {
sctp_addip_chunk_t *addip = (sctp_addip_chunk_t *) chunk->chunk_hdr;
union sctp_params param;
bool addr_param_seen = false;
sctp_walk_params(param, addip, addip_h... | int sctp_verify_asconf(const struct sctp_association *asoc, struct sctp_paramhdr *param_hdr, void *chunk_end, struct sctp_paramhdr **errp) {
sctp_addip_param_t *asconf_param;
union sctp_params param;
int length, plen;
param.v = (sctp_paramhdr_t *) param_hdr;
while (param.v <= chunk_end - sizeof(sctp... | bool sctp_verify_asconf(const struct sctp_association *asoc, struct sctp_chunk *chunk, bool addr_param_needed, struct sctp_paramhdr **errp) {
sctp_addip_chunk_t *addip = (sctp_addip_chunk_t *) chunk->chunk_hdr;
union sctp_params param;
bool addr_param_seen = false;
sctp_walk_params(param, addip, addip_h... | int sctp_verify_asconf(const struct sctp_association *asoc, struct sctp_paramhdr *param_hdr, void *chunk_end, struct sctp_paramhdr **errp) {
sctp_addip_param_t *asconf_param;
union sctp_params param;
int length, plen;
param.v = (sctp_paramhdr_t *) param_hdr;
while (param.v <= chunk_end - sizeof(sctp... | bool sctp_verify_asconf(const struct sctp_association *asoc, struct sctp_chunk *chunk, bool addr_param_needed, struct sctp_paramhdr **errp) {
sctp_addip_chunk_t *addip = (sctp_addip_chunk_t *) chunk->chunk_hdr;
union sctp_params param;
bool addr_param_seen = false;
sctp_walk_params(param, addip, addip_h... | int sctp_verify_asconf(const struct sctp_association *asoc, struct sctp_paramhdr *param_hdr, void *chunk_end, struct sctp_paramhdr **errp) {
sctp_addip_param_t *asconf_param;
union sctp_params param;
int length, plen;
param.v = (sctp_paramhdr_t *) param_hdr;
while (param.v <= chunk_end - sizeof(sctp... | bool sctp_verify_asconf(const struct sctp_association *asoc, struct sctp_chunk *chunk, bool addr_param_needed, struct sctp_paramhdr **errp) {
sctp_addip_chunk_t *addip = (sctp_addip_chunk_t *) chunk->chunk_hdr;
union sctp_params param;
bool addr_param_seen = false;
sctp_walk_params(param, addip, addip_h... | -int sctp_verify_asconf(const struct sctp_association *asoc, struct sctp_paramhdr *param_hdr, void *chunk_end, struct sctp_paramhdr **errp) {
- sctp_addip_param_t *asconf_param;
+bool sctp_verify_asconf(const struct sctp_association *asoc, struct sctp_chunk *chunk, bool addr_param_needed, struct sctp_paramhdr **errp... |
CVE-2014-3673 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | net/sctp/sm_statefuns.c | sctp_sf_do_asconf | sctp_disposition_t sctp_sf_do_asconf(const struct sctp_endpoint *ep, const struct sctp_association *asoc, const sctp_subtype_t type, void *arg, sctp_cmd_seq_t *commands) {
struct sctp_chunk *chunk = arg;
struct sctp_chunk *asconf_ack = NULL;
struct sctp_paramhdr *err_param = NULL;
sctp_addiphdr_t *hdr;
... | sctp_disposition_t sctp_sf_do_asconf(const struct sctp_endpoint *ep, const struct sctp_association *asoc, const sctp_subtype_t type, void *arg, sctp_cmd_seq_t *commands) {
struct sctp_chunk *chunk = arg;
struct sctp_chunk *asconf_ack = NULL;
struct sctp_paramhdr *err_param = NULL;
sctp_addiphdr_t *hdr;
... | sctp_disposition_t sctp_sf_do_asconf(struct net *net, const struct sctp_endpoint *ep, const struct sctp_association *asoc, const sctp_subtype_t type, void *arg, sctp_cmd_seq_t *commands) {
struct sctp_chunk *chunk = arg;
struct sctp_chunk *asconf_ack = NULL;
struct sctp_paramhdr *err_param = NULL;
sctp_... | sctp_disposition_t sctp_sf_do_asconf(struct net *net, const struct sctp_endpoint *ep, const struct sctp_association *asoc, const sctp_subtype_t type, void *arg, sctp_cmd_seq_t *commands) {
struct sctp_chunk *chunk = arg;
struct sctp_chunk *asconf_ack = NULL;
struct sctp_paramhdr *err_param = NULL;
sctp_... | sctp_disposition_t sctp_sf_do_asconf(const struct sctp_endpoint *ep, const struct sctp_association *asoc, const sctp_subtype_t type, void *arg, sctp_cmd_seq_t *commands) {
struct sctp_chunk *chunk = arg;
struct sctp_paramhdr *err_param = NULL;
sctp_addiphdr_t *hdr;
union sctp_addr_param *addr_param;
... | sctp_disposition_t sctp_sf_do_asconf(const struct sctp_endpoint *ep, const struct sctp_association *asoc, const sctp_subtype_t type, void *arg, sctp_cmd_seq_t *commands) {
struct sctp_chunk *chunk = arg;
struct sctp_paramhdr *err_param = NULL;
sctp_addiphdr_t *hdr;
__u32 serial;
if (!sctp_vtag_verif... | sctp_disposition_t sctp_sf_do_asconf(struct net *net, const struct sctp_endpoint *ep, const struct sctp_association *asoc, const sctp_subtype_t type, void *arg, sctp_cmd_seq_t *commands) {
struct sctp_chunk *chunk = arg;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
struct sctp_paramhdr *err_param = NULL;
... | sctp_disposition_t sctp_sf_do_asconf(struct net *net, const struct sctp_endpoint *ep, const struct sctp_association *asoc, const sctp_subtype_t type, void *arg, sctp_cmd_seq_t *commands) {
struct sctp_chunk *chunk = arg;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
struct sctp_paramhdr *err_param = NULL;
... | sctp_disposition_t sctp_sf_do_asconf(const struct sctp_endpoint *ep, const struct sctp_association *asoc, const sctp_subtype_t type, void *arg, sctp_cmd_seq_t *commands) {
struct sctp_chunk *chunk = arg;
struct sctp_paramhdr *err_param = NULL;
sctp_addiphdr_t *hdr;
- union sctp_addr_param *addr_param... |
CVE-2014-3673 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | net/sctp/sm_statefuns.c | sctp_sf_do_asconf_ack | sctp_disposition_t sctp_sf_do_asconf_ack(const struct sctp_endpoint *ep, const struct sctp_association *asoc, const sctp_subtype_t type, void *arg, sctp_cmd_seq_t *commands) {
struct sctp_chunk *asconf_ack = arg;
struct sctp_chunk *last_asconf = asoc->addip_last_asconf;
struct sctp_chunk *abort;
struct ... | sctp_disposition_t sctp_sf_do_asconf_ack(const struct sctp_endpoint *ep, const struct sctp_association *asoc, const sctp_subtype_t type, void *arg, sctp_cmd_seq_t *commands) {
struct sctp_chunk *asconf_ack = arg;
struct sctp_chunk *last_asconf = asoc->addip_last_asconf;
struct sctp_chunk *abort;
struct ... | sctp_disposition_t sctp_sf_do_asconf_ack(struct net *net, const struct sctp_endpoint *ep, const struct sctp_association *asoc, const sctp_subtype_t type, void *arg, sctp_cmd_seq_t *commands) {
struct sctp_chunk *asconf_ack = arg;
struct sctp_chunk *last_asconf = asoc->addip_last_asconf;
struct sctp_chunk *a... | sctp_disposition_t sctp_sf_do_asconf_ack(struct net *net, const struct sctp_endpoint *ep, const struct sctp_association *asoc, const sctp_subtype_t type, void *arg, sctp_cmd_seq_t *commands) {
struct sctp_chunk *asconf_ack = arg;
struct sctp_chunk *last_asconf = asoc->addip_last_asconf;
struct sctp_chunk *a... | sctp_disposition_t sctp_sf_do_asconf_ack(const struct sctp_endpoint *ep, const struct sctp_association *asoc, const sctp_subtype_t type, void *arg, sctp_cmd_seq_t *commands) {
struct sctp_chunk *asconf_ack = arg;
struct sctp_paramhdr *err_param = NULL;
if (!sctp_vtag_verify(asconf_ack, asoc)) {
retu... | sctp_disposition_t sctp_sf_do_asconf_ack(const struct sctp_endpoint *ep, const struct sctp_association *asoc, const sctp_subtype_t type, void *arg, sctp_cmd_seq_t *commands) {
struct sctp_chunk *asconf_ack = arg;
struct sctp_paramhdr *err_param = NULL;
if (!sctp_vtag_verify(asconf_ack, asoc)) {
retu... | sctp_disposition_t sctp_sf_do_asconf_ack(struct net *net, const struct sctp_endpoint *ep, const struct sctp_association *asoc, const sctp_subtype_t type, void *arg, sctp_cmd_seq_t *commands) {
struct sctp_chunk *asconf_ack = arg;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
struct sctp_paramhdr *err_param ... | sctp_disposition_t sctp_sf_do_asconf_ack(struct net *net, const struct sctp_endpoint *ep, const struct sctp_association *asoc, const sctp_subtype_t type, void *arg, sctp_cmd_seq_t *commands) {
struct sctp_chunk *asconf_ack = arg;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
struct sctp_paramhdr *err_param ... | sctp_disposition_t sctp_sf_do_asconf_ack(const struct sctp_endpoint *ep, const struct sctp_association *asoc, const sctp_subtype_t type, void *arg, sctp_cmd_seq_t *commands) {
struct sctp_chunk *asconf_ack = arg;
struct sctp_paramhdr *err_param = NULL;
if (!sctp_vtag_verify(asconf_ack, asoc)) {
... |
CVE-2014-3687 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | net/sctp/associola.c | sctp_assoc_lookup_asconf_ack | struct sctp_chunk *sctp_assoc_lookup_asconf_ack( const struct sctp_association *asoc, __be32 serial) {
struct sctp_chunk *ack;
list_for_each_entry(ack, &asoc->asconf_ack_list, transmitted_list) {
if (ack->subh.addip_hdr->serial == serial) {
sctp_chunk_hold(ack);
return ack;
... | struct sctp_chunk *sctp_assoc_lookup_asconf_ack( const struct sctp_association *asoc, __be32 serial) {
struct sctp_chunk *ack;
list_for_each_entry(ack, &asoc->asconf_ack_list, transmitted_list) {
if (sctp_chunk_pending(ack)) {
continue;
}
if (ack->subh.addip_hdr->serial == se... | struct sctp_chunk *sctp_assoc_lookup_asconf_ack( const struct sctp_association *asoc, __be32 serial) {
struct sctp_chunk *ack;
list_for_each_entry(ack, &asoc->asconf_ack_list, transmitted_list) {
if (ack->subh.addip_hdr->serial == serial) {
sctp_chunk_hold(ack);
return ack;
... | struct sctp_chunk *sctp_assoc_lookup_asconf_ack( const struct sctp_association *asoc, __be32 serial) {
struct sctp_chunk *ack;
list_for_each_entry(ack, &asoc->asconf_ack_list, transmitted_list) {
if (sctp_chunk_pending(ack)) {
continue;
}
if (ack->subh.addip_hdr->serial == se... | struct sctp_chunk *sctp_assoc_lookup_asconf_ack( const struct sctp_association *asoc, __be32 serial) {
list_for_each_entry(ack, &asoc->asconf_ack_list, transmitted_list) {
if (ack->subh.addip_hdr->serial == serial) {
sctp_chunk_hold(ack);
return ack;
}
}
}
| struct sctp_chunk *sctp_assoc_lookup_asconf_ack( const struct sctp_association *asoc, __be32 serial) {
list_for_each_entry(ack, &asoc->asconf_ack_list, transmitted_list) {
if (sctp_chunk_pending(ack)) {
continue;
}
if (ack->subh.addip_hdr->serial == serial) {
sctp_chu... | struct sctp_chunk *sctp_assoc_lookup_asconf_ack( const struct sctp_association *asoc, __be32 serial) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
list_for_each_entry(ack, &asoc->asconf_ack_list, transmitted_list) {
if (ack->subh.addip_hdr->serial == serial) {
sctp_chunk_hold(ack);
... | struct sctp_chunk *sctp_assoc_lookup_asconf_ack( const struct sctp_association *asoc, __be32 serial) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
list_for_each_entry(ack, &asoc->asconf_ack_list, transmitted_list) {
if (sctp_chunk_pending(ack)) {
continue;
}
if (ack->subh.a... | struct sctp_chunk *sctp_assoc_lookup_asconf_ack( const struct sctp_association *asoc, __be32 serial) {
list_for_each_entry(ack, &asoc->asconf_ack_list, transmitted_list) {
+ if (sctp_chunk_pending(ack)) {
+ continue;
+ }
if (ack->subh.addip_hdr->serial == serial) {
s... |
CVE-2014-3688 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | net/sctp/inqueue.c | sctp_inq_pop | struct sctp_chunk *sctp_inq_pop(struct sctp_inq *queue) {
struct sctp_chunk *chunk;
sctp_chunkhdr_t *ch = NULL;
if ((chunk = queue->in_progress)) {
if (chunk->singleton || chunk->end_of_packet || chunk->pdiscard) {
sctp_chunk_free(chunk);
chunk = queue->in_progress = NULL;
... | struct sctp_chunk *sctp_inq_pop(struct sctp_inq *queue) {
struct sctp_chunk *chunk;
sctp_chunkhdr_t *ch = NULL;
if ((chunk = queue->in_progress)) {
if (chunk->singleton || chunk->end_of_packet || chunk->pdiscard) {
sctp_chunk_free(chunk);
chunk = queue->in_progress = NULL;
... | struct sctp_chunk *sctp_inq_pop(struct sctp_inq *queue) {
struct sctp_chunk *chunk;
sctp_chunkhdr_t *ch = NULL;
if ((chunk = queue->in_progress)) {
if (chunk->singleton || chunk->end_of_packet || chunk->pdiscard) {
sctp_chunk_free(chunk);
chunk = queue->in_progress = NULL;
... | struct sctp_chunk *sctp_inq_pop(struct sctp_inq *queue) {
struct sctp_chunk *chunk;
sctp_chunkhdr_t *ch = NULL;
if ((chunk = queue->in_progress)) {
if (chunk->singleton || chunk->end_of_packet || chunk->pdiscard) {
sctp_chunk_free(chunk);
chunk = queue->in_progress = NULL;
... | struct sctp_chunk *sctp_inq_pop(struct sctp_inq *queue) {
sctp_chunkhdr_t *ch = NULL;
if ((chunk = queue->in_progress)) {
if (chunk->singleton || chunk->end_of_packet || chunk->pdiscard) {
chunk = queue->in_progress = NULL;
} else {
ch = (sctp_chunkhdr_t *) chunk->chunk_e... | struct sctp_chunk *sctp_inq_pop(struct sctp_inq *queue) {
sctp_chunkhdr_t *ch = NULL;
if ((chunk = queue->in_progress)) {
if (chunk->singleton || chunk->end_of_packet || chunk->pdiscard) {
chunk = queue->in_progress = NULL;
} else {
ch = (sctp_chunkhdr_t *) chunk->chunk_e... | struct sctp_chunk *sctp_inq_pop(struct sctp_inq *queue) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
sctp_chunkhdr_t *ch = NULL;
if ((chunk = queue->in_progress)) {
if (chunk->singleton || chunk->end_of_packet || chunk->pdiscard) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
chu... | struct sctp_chunk *sctp_inq_pop(struct sctp_inq *queue) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
sctp_chunkhdr_t *ch = NULL;
if ((chunk = queue->in_progress)) {
if (chunk->singleton || chunk->end_of_packet || chunk->pdiscard) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
chu... | struct sctp_chunk *sctp_inq_pop(struct sctp_inq *queue) {
sctp_chunkhdr_t *ch = NULL;
if ((chunk = queue->in_progress)) {
if (chunk->singleton || chunk->end_of_packet || chunk->pdiscard) {
chunk = queue->in_progress = NULL;
} else {
ch = (sctp_chunkhdr_t *) chunk->... |
CVE-2014-3688 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | net/sctp/sm_statefuns.c | sctp_chunk_length_valid | static inline int sctp_chunk_length_valid(struct sctp_chunk *chunk, __u16 required_length) {
__u16 chunk_length = ntohs(chunk->chunk_hdr->length);
if (unlikely(chunk_length < required_length)) {
return 0;
}
return 1;
} | static inline int sctp_chunk_length_valid(struct sctp_chunk *chunk, __u16 required_length) {
__u16 chunk_length = ntohs(chunk->chunk_hdr->length);
if (unlikely(chunk->pdiscard)) {
return 0;
}
if (unlikely(chunk_length < required_length)) {
return 0;
}
return 1;
} | static inline int sctp_chunk_length_valid(struct sctp_chunk *chunk, __u16 required_length) {
__u16 chunk_length = ntohs(chunk->chunk_hdr->length);
if (unlikely(chunk_length < required_length)) {
return 0;
}
return 1;
} | static inline int sctp_chunk_length_valid(struct sctp_chunk *chunk, __u16 required_length) {
__u16 chunk_length = ntohs(chunk->chunk_hdr->length);
if (unlikely(chunk->pdiscard)) {
return 0;
}
if (unlikely(chunk_length < required_length)) {
return 0;
}
return 1;
} | static inline int sctp_chunk_length_valid(struct sctp_chunk *chunk, __u16 required_length) {
__u16 chunk_length = ntohs(chunk->chunk_hdr->length);
if (unlikely(chunk_length < required_length)) {
return 0;
}
return 1;
}
| static inline int sctp_chunk_length_valid(struct sctp_chunk *chunk, __u16 required_length) {
__u16 chunk_length = ntohs(chunk->chunk_hdr->length);
if (unlikely(chunk->pdiscard)) {
return 0;
}
if (unlikely(chunk_length < required_length)) {
return 0;
}
return 1;
}
| static inline int sctp_chunk_length_valid(struct sctp_chunk *chunk, __u16 required_length) {
__u16 chunk_length = ntohs(chunk->chunk_hdr->length);
if (unlikely(chunk_length < required_length)) {
return 0;
}
return 1;
}
| static inline int sctp_chunk_length_valid(struct sctp_chunk *chunk, __u16 required_length) {
__u16 chunk_length = ntohs(chunk->chunk_hdr->length);
if (unlikely(chunk->pdiscard)) {
return 0;
}
if (unlikely(chunk_length < required_length)) {
return 0;
}
return 1;
} | static inline int sctp_chunk_length_valid(struct sctp_chunk *chunk, __u16 required_length) {
__u16 chunk_length = ntohs(chunk->chunk_hdr->length);
+ if (unlikely(chunk->pdiscard)) {
+ return 0;
+ }
if (unlikely(chunk_length < required_length)) {
return 0;
}
return 1;
} |
CVE-2014-3690 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | arch/x86/kvm/vmx.c | vmx_set_constant_host_state | static void vmx_set_constant_host_state(struct vcpu_vmx *vmx) {
u32 low32, high32;
unsigned long tmpl;
struct desc_ptr dt;
vmcs_writel(HOST_CR0, read_cr0() & ~X86_CR0_TS);
vmcs_writel(HOST_CR4, read_cr4());
vmcs_writel(HOST_CR3, read_cr3());
vmcs_write16(HOST_CS_SELECTOR, __KERNEL_CS);
v... | static void vmx_set_constant_host_state(struct vcpu_vmx *vmx) {
u32 low32, high32;
unsigned long tmpl;
struct desc_ptr dt;
unsigned long cr4;
vmcs_writel(HOST_CR0, read_cr0() & ~X86_CR0_TS);
vmcs_writel(HOST_CR3, read_cr3());
cr4 = read_cr4();
vmcs_writel(HOST_CR4, cr4);
vmx->host_st... | static void vmx_set_constant_host_state(struct vcpu_vmx *vmx) {
u32 low32, high32;
unsigned long tmpl;
struct desc_ptr dt;
vmcs_writel(HOST_CR0, read_cr0() & ~X86_CR0_TS);
vmcs_writel(HOST_CR4, read_cr4());
vmcs_writel(HOST_CR3, read_cr3());
vmcs_write16(HOST_CS_SELECTOR, __KERNEL_CS);
v... | static void vmx_set_constant_host_state(struct vcpu_vmx *vmx) {
u32 low32, high32;
unsigned long tmpl;
struct desc_ptr dt;
unsigned long cr4;
vmcs_writel(HOST_CR0, read_cr0() & ~X86_CR0_TS);
vmcs_writel(HOST_CR3, read_cr3());
cr4 = read_cr4();
vmcs_writel(HOST_CR4, cr4);
vmx->host_st... | static void vmx_set_constant_host_state(struct vcpu_vmx *vmx) {
struct desc_ptr dt;
vmcs_writel(HOST_CR0, read_cr0() & ~X86_CR0_TS);
vmcs_writel(HOST_CR4, read_cr4());
vmcs_writel(HOST_CR3, read_cr3());
vmcs_write16(HOST_CS_SELECTOR, __KERNEL_CS);
}
| static void vmx_set_constant_host_state(struct vcpu_vmx *vmx) {
struct desc_ptr dt;
unsigned long cr4;
vmcs_writel(HOST_CR0, read_cr0() & ~X86_CR0_TS);
vmcs_writel(HOST_CR3, read_cr3());
cr4 = read_cr4();
vmcs_writel(HOST_CR4, cr4);
vmx->host_state.vmcs_host_cr4 = cr4;
vmcs_write16(HOST_... | static void vmx_set_constant_host_state(struct vcpu_vmx *vmx) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
struct desc_ptr dt;
vmcs_writel(HOST_CR0, read_cr0() & ~X86_CR0_TS);
vmcs_writel(HOST_CR4, read_cr4());
vmcs_writel(HOST_CR3, read_cr3());
vmcs_write16(HOST_CS_SELECTOR, __KERNEL_CS);
... | static void vmx_set_constant_host_state(struct vcpu_vmx *vmx) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
struct desc_ptr dt;
unsigned long cr4;
vmcs_writel(HOST_CR0, read_cr0() & ~X86_CR0_TS);
vmcs_writel(HOST_CR3, read_cr3());
cr4 = read_cr4();
vmcs_writel(HOST_CR4, cr4);
vmx->host... | static void vmx_set_constant_host_state(struct vcpu_vmx *vmx) {
struct desc_ptr dt;
+ unsigned long cr4;
vmcs_writel(HOST_CR0, read_cr0() & ~X86_CR0_TS);
- vmcs_writel(HOST_CR4, read_cr4());
vmcs_writel(HOST_CR3, read_cr3());
+ cr4 = read_cr4();
+ vmcs_writel(HOST_CR4, cr4);
+ vmx->host_s... |
CVE-2014-3940 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | fs/proc/task_mmu.c | gather_hugetbl_stats | static int gather_hugetbl_stats(pte_t *pte, unsigned long hmask, unsigned long addr, unsigned long end, struct mm_walk *walk) {
struct numa_maps *md;
struct page *page;
if (pte_none(*pte)) {
return 0;
}
page = pte_page(*pte);
if (!page) {
return 0;
}
md = walk->private;
... | static int gather_hugetbl_stats(pte_t *pte, unsigned long hmask, unsigned long addr, unsigned long end, struct mm_walk *walk) {
struct numa_maps *md;
struct page *page;
if (!pte_present(*pte)) {
return 0;
}
page = pte_page(*pte);
if (!page) {
return 0;
}
md = walk->privat... | static int gather_hugetbl_stats(pte_t *pte, unsigned long hmask, unsigned long addr, unsigned long end, struct mm_walk *walk) {
struct numa_maps *md;
struct page *page;
if (pte_none(*pte)) {
return 0;
}
page = pte_page(*pte);
if (!page) {
return 0;
}
md = walk->private;
... | static int gather_hugetbl_stats(pte_t *pte, unsigned long hmask, unsigned long addr, unsigned long end, struct mm_walk *walk) {
struct numa_maps *md;
struct page *page;
if (!pte_present(*pte)) {
return 0;
}
page = pte_page(*pte);
if (!page) {
return 0;
}
md = walk->privat... | static int gather_hugetbl_stats(pte_t *pte, unsigned long hmask, unsigned long addr, unsigned long end, struct mm_walk *walk) {
struct page *page;
if (pte_none(*pte)) {
return 0;
}
page = pte_page(*pte);
if (!page) {
return 0;
}
gather_stats(page, md, pte_dirty(*pte), 1);
}
| static int gather_hugetbl_stats(pte_t *pte, unsigned long hmask, unsigned long addr, unsigned long end, struct mm_walk *walk) {
struct page *page;
if (!pte_present(*pte)) {
return 0;
}
page = pte_page(*pte);
if (!page) {
return 0;
}
gather_stats(page, md, pte_dirty(*pte), 1);... | static int gather_hugetbl_stats(pte_t *pte, unsigned long hmask, unsigned long addr, unsigned long end, struct mm_walk *walk) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
struct page *page;
if (pte_none(*pte)) {
return 0;
}
page = pte_page(*pte);
if (!page) {
return 0;
}
... | static int gather_hugetbl_stats(pte_t *pte, unsigned long hmask, unsigned long addr, unsigned long end, struct mm_walk *walk) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
struct page *page;
if (!pte_present(*pte)) {
return 0;
}
page = pte_page(*pte);
if (!page) {
return 0;
... | static int gather_hugetbl_stats(pte_t *pte, unsigned long hmask, unsigned long addr, unsigned long end, struct mm_walk *walk) {
struct page *page;
- if (pte_none(*pte)) {
+ if (!pte_present(*pte)) {
return 0;
}
page = pte_page(*pte);
if (!page) {
return 0;
}
gather... |
CVE-2014-3940 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | mm/mempolicy.c | queue_pages_hugetlb_pmd_range | static void queue_pages_hugetlb_pmd_range(struct vm_area_struct *vma, pmd_t *pmd, const nodemask_t *nodes, unsigned long flags, void *private) {
int nid;
struct page *page;
spinlock_t *ptl;
ptl = huge_pte_lock(hstate_vma(vma), vma->vm_mm, (pte_t *)pmd);
page = pte_page(huge_ptep_get((pte_t *)pmd));
... | static void queue_pages_hugetlb_pmd_range(struct vm_area_struct *vma, pmd_t *pmd, const nodemask_t *nodes, unsigned long flags, void *private) {
int nid;
struct page *page;
spinlock_t *ptl;
pte_t entry;
ptl = huge_pte_lock(hstate_vma(vma), vma->vm_mm, (pte_t *)pmd);
entry = huge_ptep_get((pte_t ... | static void queue_pages_hugetlb_pmd_range(struct vm_area_struct *vma, pmd_t *pmd, const nodemask_t *nodes, unsigned long flags, void *private) {
int nid;
struct page *page;
spin_lock(&vma->vm_mm->page_table_lock);
page = pte_page(huge_ptep_get((pte_t *)pmd));
nid = page_to_nid(page);
if (node_is... | static void queue_pages_hugetlb_pmd_range(struct vm_area_struct *vma, pmd_t *pmd, const nodemask_t *nodes, unsigned long flags, void *private) {
int nid;
struct page *page;
pte_t entry;
spin_lock(&vma->vm_mm->page_table_lock);
entry = huge_ptep_get((pte_t *)pmd);
if (!pte_present(entry)) {
... | static void queue_pages_hugetlb_pmd_range(struct vm_area_struct *vma, pmd_t *pmd, const nodemask_t *nodes, unsigned long flags, void *private) {
spinlock_t *ptl;
ptl = huge_pte_lock(hstate_vma(vma), vma->vm_mm, (pte_t *)pmd);
page = pte_page(huge_ptep_get((pte_t *)pmd));
nid = page_to_nid(page);
if ... | static void queue_pages_hugetlb_pmd_range(struct vm_area_struct *vma, pmd_t *pmd, const nodemask_t *nodes, unsigned long flags, void *private) {
spinlock_t *ptl;
pte_t entry;
ptl = huge_pte_lock(hstate_vma(vma), vma->vm_mm, (pte_t *)pmd);
entry = huge_ptep_get((pte_t *)pmd);
if (!pte_present(entry))... | static void queue_pages_hugetlb_pmd_range(struct vm_area_struct *vma, pmd_t *pmd, const nodemask_t *nodes, unsigned long flags, void *private) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
spin_lock(&vma->vm_mm->page_table_lock);
page = pte_page(huge_ptep_get((pte_t *)pmd));
nid = page_to_nid(page);
... | static void queue_pages_hugetlb_pmd_range(struct vm_area_struct *vma, pmd_t *pmd, const nodemask_t *nodes, unsigned long flags, void *private) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
pte_t entry;
spin_lock(&vma->vm_mm->page_table_lock);
entry = huge_ptep_get((pte_t *)pmd);
if (!pte_present(e... | static void queue_pages_hugetlb_pmd_range(struct vm_area_struct *vma, pmd_t *pmd, const nodemask_t *nodes, unsigned long flags, void *private) {
spinlock_t *ptl;
+ pte_t entry;
ptl = huge_pte_lock(hstate_vma(vma), vma->vm_mm, (pte_t *)pmd);
- page = pte_page(huge_ptep_get((pte_t *)pmd));
+ entry = h... |
CVE-2014-4014 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | fs/attr.c | inode_change_ok | int inode_change_ok(const struct inode *inode, struct iattr *attr) {
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_valid & ATTR_FORCE) {
return 0;
... | int inode_change_ok(const struct inode *inode, struct iattr *attr) {
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_valid & ATTR_FORCE) {
return 0;
... | int inode_change_ok(const struct inode *inode, struct iattr *attr) {
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_valid & ATTR_FORCE) {
return 0;
... | int inode_change_ok(const struct inode *inode, struct iattr *attr) {
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_valid & ATTR_FORCE) {
return 0;
... | int inode_change_ok(const struct inode *inode, struct iattr *attr) {
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_valid & ATTR_UID) && (!uid_eq(current_fs... | int inode_change_ok(const struct inode *inode, struct iattr *attr) {
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_valid & ATTR_UID) && (!uid_eq(current_fs... | int inode_change_ok(const struct inode *inode, struct iattr *attr) {
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 & ATTR_FORCE) {
return 0;
}
... | int inode_change_ok(const struct inode *inode, struct iattr *attr) {
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 & ATTR_FORCE) {
return 0;
}
... | int inode_change_ok(const struct inode *inode, struct iattr *attr) {
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_valid & ATTR_UID) && (!uid_eq(c... |
CVE-2014-4014 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | fs/attr.c | setattr_copy | void setattr_copy(struct inode *inode, const struct iattr *attr) {
unsigned int ia_valid = attr->ia_valid;
if (ia_valid & ATTR_UID) {
inode->i_uid = attr->ia_uid;
}
if (ia_valid & ATTR_GID) {
inode->i_gid = attr->ia_gid;
}
if (ia_valid & ATTR_ATIME) {
inode->i_atime = tim... | void setattr_copy(struct inode *inode, const struct iattr *attr) {
unsigned int ia_valid = attr->ia_valid;
if (ia_valid & ATTR_UID) {
inode->i_uid = attr->ia_uid;
}
if (ia_valid & ATTR_GID) {
inode->i_gid = attr->ia_gid;
}
if (ia_valid & ATTR_ATIME) {
inode->i_atime = tim... | void setattr_copy(struct inode *inode, const struct iattr *attr) {
unsigned int ia_valid = attr->ia_valid;
if (ia_valid & ATTR_UID) {
inode->i_uid = attr->ia_uid;
}
if (ia_valid & ATTR_GID) {
inode->i_gid = attr->ia_gid;
}
if (ia_valid & ATTR_ATIME) {
inode->i_atime = tim... | void setattr_copy(struct inode *inode, const struct iattr *attr) {
unsigned int ia_valid = attr->ia_valid;
if (ia_valid & ATTR_UID) {
inode->i_uid = attr->ia_uid;
}
if (ia_valid & ATTR_GID) {
inode->i_gid = attr->ia_gid;
}
if (ia_valid & ATTR_ATIME) {
inode->i_atime = tim... | void setattr_copy(struct inode *inode, const struct iattr *attr) {
if (ia_valid & ATTR_GID) {
inode->i_gid = attr->ia_gid;
}
if (ia_valid & ATTR_MODE) {
umode_t mode = attr->ia_mode;
if (!in_group_p(inode->i_gid) && !inode_capable(inode, CAP_FSETID)) {
mode &= ~S_ISGID;
... | void setattr_copy(struct inode *inode, const struct iattr *attr) {
if (ia_valid & ATTR_GID) {
inode->i_gid = attr->ia_gid;
}
if (ia_valid & ATTR_MODE) {
umode_t mode = attr->ia_mode;
if (!in_group_p(inode->i_gid) && !capable_wrt_inode_uidgid(inode, CAP_FSETID)) {
mode &= ... | void setattr_copy(struct inode *inode, const struct iattr *attr) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (ia_valid & ATTR_GID) {
inode->i_gid = attr->ia_gid;
}
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (ia_valid & ATTR_MODE) {
umode_t mode = attr->ia_mode;
i... | void setattr_copy(struct inode *inode, const struct iattr *attr) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (ia_valid & ATTR_GID) {
inode->i_gid = attr->ia_gid;
}
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (ia_valid & ATTR_MODE) {
umode_t mode = attr->ia_mode;
i... | void setattr_copy(struct inode *inode, const struct iattr *attr) {
if (ia_valid & ATTR_GID) {
inode->i_gid = attr->ia_gid;
}
if (ia_valid & ATTR_MODE) {
umode_t mode = attr->ia_mode;
- if (!in_group_p(inode->i_gid) && !inode_capable(inode, CAP_FSETID)) {
+ if (!in_group_p... |
CVE-2014-4014 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | fs/inode.c | inode_owner_or_capable | bool inode_owner_or_capable(const struct inode *inode) {
if (uid_eq(current_fsuid(), inode->i_uid)) {
return true;
}
if (inode_capable(inode, CAP_FOWNER)) {
return true;
}
return false;
} | bool inode_owner_or_capable(const struct inode *inode) {
struct user_namespace *ns;
if (uid_eq(current_fsuid(), inode->i_uid)) {
return true;
}
ns = current_user_ns();
if (ns_capable(ns, CAP_FOWNER) && kuid_has_mapping(ns, inode->i_uid)) {
return true;
}
return false;
} | bool inode_owner_or_capable(const struct inode *inode) {
if (uid_eq(current_fsuid(), inode->i_uid)) {
return true;
}
if (inode_capable(inode, CAP_FOWNER)) {
return true;
}
return false;
} | bool inode_owner_or_capable(const struct inode *inode) {
struct user_namespace *ns;
if (uid_eq(current_fsuid(), inode->i_uid)) {
return true;
}
ns = current_user_ns();
if (ns_capable(ns, CAP_FOWNER) && kuid_has_mapping(ns, inode->i_uid)) {
return true;
}
return false;
} | bool inode_owner_or_capable(const struct inode *inode) {
if (uid_eq(current_fsuid(), inode->i_uid)) {
return true;
}
if (inode_capable(inode, CAP_FOWNER)) {
return true;
}
return false;
}
| bool inode_owner_or_capable(const struct inode *inode) {
struct user_namespace *ns;
if (uid_eq(current_fsuid(), inode->i_uid)) {
return true;
}
ns = current_user_ns();
if (ns_capable(ns, CAP_FOWNER) && kuid_has_mapping(ns, inode->i_uid)) {
return true;
}
return false;
}
| bool inode_owner_or_capable(const struct inode *inode) {
if (uid_eq(current_fsuid(), inode->i_uid)) {
return true;
}
if (inode_capable(inode, CAP_FOWNER)) {
return true;
}
return false;
}
| bool inode_owner_or_capable(const struct inode *inode) {
struct user_namespace *ns;
if (uid_eq(current_fsuid(), inode->i_uid)) {
return true;
}
ns = current_user_ns();
if (ns_capable(ns, CAP_FOWNER) && kuid_has_mapping(ns, inode->i_uid)) {
return true;
}
return false;
} | bool inode_owner_or_capable(const struct inode *inode) {
+ struct user_namespace *ns;
if (uid_eq(current_fsuid(), inode->i_uid)) {
return true;
}
- if (inode_capable(inode, CAP_FOWNER)) {
+ ns = current_user_ns();
+ if (ns_capable(ns, CAP_FOWNER) && kuid_has_mapping(ns, inode->i_uid)) {
... |
CVE-2014-4014 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | fs/namei.c | check_sticky | static inline int check_sticky(struct inode *dir, struct inode *inode) {
kuid_t fsuid = current_fsuid();
if (!(dir->i_mode & S_ISVTX)) {
return 0;
}
if (uid_eq(inode->i_uid, fsuid)) {
return 0;
}
if (uid_eq(dir->i_uid, fsuid)) {
return 0;
}
return !inode_capable(i... | static inline int check_sticky(struct inode *dir, struct inode *inode) {
kuid_t fsuid = current_fsuid();
if (!(dir->i_mode & S_ISVTX)) {
return 0;
}
if (uid_eq(inode->i_uid, fsuid)) {
return 0;
}
if (uid_eq(dir->i_uid, fsuid)) {
return 0;
}
return !capable_wrt_ino... | static inline int check_sticky(struct inode *dir, struct inode *inode) {
kuid_t fsuid = current_fsuid();
if (!(dir->i_mode & S_ISVTX)) {
return 0;
}
if (uid_eq(inode->i_uid, fsuid)) {
return 0;
}
if (uid_eq(dir->i_uid, fsuid)) {
return 0;
}
return !inode_capable(i... | static inline int check_sticky(struct inode *dir, struct inode *inode) {
kuid_t fsuid = current_fsuid();
if (!(dir->i_mode & S_ISVTX)) {
return 0;
}
if (uid_eq(inode->i_uid, fsuid)) {
return 0;
}
if (uid_eq(dir->i_uid, fsuid)) {
return 0;
}
return !capable_wrt_ino... | static inline int check_sticky(struct inode *dir, struct inode *inode) {
if (uid_eq(dir->i_uid, fsuid)) {
return 0;
}
return !inode_capable(inode, CAP_FOWNER);
}
| static inline int check_sticky(struct inode *dir, struct inode *inode) {
if (uid_eq(dir->i_uid, fsuid)) {
return 0;
}
return !capable_wrt_inode_uidgid(inode, CAP_FOWNER);
}
| static inline int check_sticky(struct inode *dir, struct inode *inode) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (uid_eq(dir->i_uid, fsuid)) {
return 0;
}
return !inode_capable(inode, CAP_FOWNER);
}
| static inline int check_sticky(struct inode *dir, struct inode *inode) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (uid_eq(dir->i_uid, fsuid)) {
return 0;
}
return !capable_wrt_inode_uidgid(inode, CAP_FOWNER);
} | static inline int check_sticky(struct inode *dir, struct inode *inode) {
if (uid_eq(dir->i_uid, fsuid)) {
return 0;
}
- return !inode_capable(inode, CAP_FOWNER);
+ return !capable_wrt_inode_uidgid(inode, CAP_FOWNER);
} |
CVE-2014-4014 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | fs/namei.c | generic_permission | int generic_permission(struct inode *inode, int mask) {
int ret;
ret = acl_permission_check(inode, mask);
if (ret != -EACCES) {
return ret;
}
if (S_ISDIR(inode->i_mode)) {
if (inode_capable(inode, CAP_DAC_OVERRIDE)) {
return 0;
}
if (!(mask & MAY_WRITE)) {... | int generic_permission(struct inode *inode, int mask) {
int ret;
ret = acl_permission_check(inode, mask);
if (ret != -EACCES) {
return ret;
}
if (S_ISDIR(inode->i_mode)) {
if (capable_wrt_inode_uidgid(inode, CAP_DAC_OVERRIDE)) {
return 0;
}
if (!(mask & MA... | int generic_permission(struct inode *inode, int mask) {
int ret;
ret = acl_permission_check(inode, mask);
if (ret != -EACCES) {
return ret;
}
if (S_ISDIR(inode->i_mode)) {
if (inode_capable(inode, CAP_DAC_OVERRIDE)) {
return 0;
}
if (!(mask & MAY_WRITE)) {... | int generic_permission(struct inode *inode, int mask) {
int ret;
ret = acl_permission_check(inode, mask);
if (ret != -EACCES) {
return ret;
}
if (S_ISDIR(inode->i_mode)) {
if (capable_wrt_inode_uidgid(inode, CAP_DAC_OVERRIDE)) {
return 0;
}
if (!(mask & MA... | int generic_permission(struct inode *inode, int mask) {
ret = acl_permission_check(inode, mask);
if (S_ISDIR(inode->i_mode)) {
if (inode_capable(inode, CAP_DAC_OVERRIDE)) {
return 0;
}
if (!(mask & MAY_WRITE)) {
if (inode_capable(inode, CAP_DAC_READ_SEARCH)) {
... | int generic_permission(struct inode *inode, int mask) {
ret = acl_permission_check(inode, mask);
if (S_ISDIR(inode->i_mode)) {
if (capable_wrt_inode_uidgid(inode, CAP_DAC_OVERRIDE)) {
return 0;
}
if (!(mask & MAY_WRITE)) {
if (capable_wrt_inode_uidgid(inode, CAP_D... | int generic_permission(struct inode *inode, int mask) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
ret = acl_permission_check(inode, mask);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (S_ISDIR(inode->i_mode)) {
if (inode_capable(inode, CAP_DAC_OVERRIDE)) {
return 0;
}... | int generic_permission(struct inode *inode, int mask) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
ret = acl_permission_check(inode, mask);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (S_ISDIR(inode->i_mode)) {
if (capable_wrt_inode_uidgid(inode, CAP_DAC_OVERRIDE)) {
return 0... | int generic_permission(struct inode *inode, int mask) {
ret = acl_permission_check(inode, mask);
if (S_ISDIR(inode->i_mode)) {
- if (inode_capable(inode, CAP_DAC_OVERRIDE)) {
+ if (capable_wrt_inode_uidgid(inode, CAP_DAC_OVERRIDE)) {
return 0;
}
if (!(mask & MAY_W... |
CVE-2014-4171 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | mm/shmem.c | shmem_fault | static int shmem_fault(struct vm_area_struct *vma, struct vm_fault *vmf) {
struct inode *inode = file_inode(vma->vm_file);
int error;
int ret = VM_FAULT_LOCKED;
error = shmem_getpage(inode, vmf->pgoff, &vmf->page, SGP_CACHE, &ret);
if (error) {
return ((error == -ENOMEM) ? VM_FAULT_OOM : VM_... | static int shmem_fault(struct vm_area_struct *vma, struct vm_fault *vmf) {
struct inode *inode = file_inode(vma->vm_file);
int error;
int ret = VM_FAULT_LOCKED;
if (unlikely(inode->i_private)) {
struct shmem_falloc *shmem_falloc;
spin_lock(&inode->i_lock);
shmem_falloc = inode->i... | static int shmem_fault(struct vm_area_struct *vma, struct vm_fault *vmf) {
struct inode *inode = vma->vm_file->f_path.dentry->d_inode;
int error;
int ret = VM_FAULT_LOCKED;
error = shmem_getpage(inode, vmf->pgoff, &vmf->page, SGP_CACHE, &ret);
if (error) {
return ((error == -ENOMEM) ? VM_FAU... | static int shmem_fault(struct vm_area_struct *vma, struct vm_fault *vmf) {
struct inode *inode = vma->vm_file->f_path.dentry->d_inode;
int error;
int ret = VM_FAULT_LOCKED;
if (unlikely(inode->i_private)) {
struct shmem_falloc *shmem_falloc;
spin_lock(&inode->i_lock);
shmem_fallo... | static int shmem_fault(struct vm_area_struct *vma, struct vm_fault *vmf) {
struct inode *inode = file_inode(vma->vm_file);
int ret = VM_FAULT_LOCKED;
error = shmem_getpage(inode, vmf->pgoff, &vmf->page, SGP_CACHE, &ret);
if (error) {
return ((error == -ENOMEM) ? VM_FAULT_OOM : VM_FAULT_SIGBUS);
... | static int shmem_fault(struct vm_area_struct *vma, struct vm_fault *vmf) {
struct inode *inode = file_inode(vma->vm_file);
int ret = VM_FAULT_LOCKED;
if (unlikely(inode->i_private)) {
struct shmem_falloc *shmem_falloc;
spin_lock(&inode->i_lock);
shmem_falloc = inode->i_private;
... | static int shmem_fault(struct vm_area_struct *vma, struct vm_fault *vmf) {
struct inode *inode = vma->vm_file->f_path.dentry->d_inode;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int ret = VM_FAULT_LOCKED;
error = shmem_getpage(inode, vmf->pgoff, &vmf->page, SGP_CACHE, &ret);
if (error) {
... | static int shmem_fault(struct vm_area_struct *vma, struct vm_fault *vmf) {
struct inode *inode = vma->vm_file->f_path.dentry->d_inode;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int ret = VM_FAULT_LOCKED;
if (unlikely(inode->i_private)) {
struct shmem_falloc *shmem_falloc;
spin_lock(&... | static int shmem_fault(struct vm_area_struct *vma, struct vm_fault *vmf) {
struct inode *inode = file_inode(vma->vm_file);
int ret = VM_FAULT_LOCKED;
+ if (unlikely(inode->i_private)) {
+ struct shmem_falloc *shmem_falloc;
+ spin_lock(&inode->i_lock);
+ shmem_falloc = inode->i_private... |
CVE-2014-4608 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | lib/lzo/lzo1x_decompress_safe.c | lzo1x_decompress_safe | int lzo1x_decompress_safe(const unsigned char *in, size_t in_len, unsigned char *out, size_t *out_len) {
unsigned char *op;
const unsigned char *ip;
size_t t, next;
size_t state = 0;
const unsigned char *m_pos;
const unsigned char * const ip_end = in + in_len;
unsigned char * const op_end = ... | int lzo1x_decompress_safe(const unsigned char *in, size_t in_len, unsigned char *out, size_t *out_len) {
unsigned char *op;
const unsigned char *ip;
size_t t, next;
size_t state = 0;
const unsigned char *m_pos;
const unsigned char * const ip_end = in + in_len;
unsigned char * const op_end = ... | int lzo1x_decompress_safe(const unsigned char *in, size_t in_len, unsigned char *out, size_t *out_len) {
unsigned char *op;
const unsigned char *ip;
size_t t, next;
size_t state = 0;
const unsigned char *m_pos;
const unsigned char * const ip_end = in + in_len;
unsigned char * const op_end = ... | int lzo1x_decompress_safe(const unsigned char *in, size_t in_len, unsigned char *out, size_t *out_len) {
unsigned char *op;
const unsigned char *ip;
size_t t, next;
size_t state = 0;
const unsigned char *m_pos;
const unsigned char * const ip_end = in + in_len;
unsigned char * const op_end = ... | int lzo1x_decompress_safe(const unsigned char *in, size_t in_len, unsigned char *out, size_t *out_len) {
op = out;
ip = in;
if (*ip > 17) {
t = *ip++ - 17;
if (t < 4) {
goto match_next;
}
goto copy_literal_run;
}
for (;;) {
t = *ip++;
if (t... | int lzo1x_decompress_safe(const unsigned char *in, size_t in_len, unsigned char *out, size_t *out_len) {
op = out;
ip = in;
if (*ip > 17) {
t = *ip++ - 17;
if (t < 4) {
goto match_next;
}
goto copy_literal_run;
}
for (;;) {
t = *ip++;
if (t... | int lzo1x_decompress_safe(const unsigned char *in, size_t in_len, unsigned char *out, size_t *out_len) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
op = out;
ip = in;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (*ip > 17) {
t = *ip++ - 17;
if (t < 4) {
/* PLACEHOLDER: DO ... | int lzo1x_decompress_safe(const unsigned char *in, size_t in_len, unsigned char *out, size_t *out_len) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
op = out;
ip = in;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (*ip > 17) {
t = *ip++ - 17;
if (t < 4) {
/* PLACEHOLDER: DO ... | int lzo1x_decompress_safe(const unsigned char *in, size_t in_len, unsigned char *out, size_t *out_len) {
op = out;
ip = in;
if (*ip > 17) {
t = *ip++ - 17;
if (t < 4) {
goto match_next;
}
goto copy_literal_run;
}
for (;;) {
t = *ip++;
... |
CVE-2014-4611 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | lib/lz4/lz4_decompress.c | lz4_uncompress | static int lz4_uncompress(const char *source, char *dest, int osize) {
const BYTE *ip = (const BYTE *) source;
const BYTE *ref;
BYTE *op = (BYTE *) dest;
BYTE * const oend = op + osize;
BYTE *cpy;
unsigned token;
size_t length;
size_t dec32table[] = {0, 3, 2, 3, 0, 0, 0, 0};
size_t d... | static int lz4_uncompress(const char *source, char *dest, int osize) {
const BYTE *ip = (const BYTE *) source;
const BYTE *ref;
BYTE *op = (BYTE *) dest;
BYTE * const oend = op + osize;
BYTE *cpy;
unsigned token;
size_t length;
size_t dec32table[] = {0, 3, 2, 3, 0, 0, 0, 0};
size_t d... | static int lz4_uncompress(const char *source, char *dest, int osize) {
const BYTE *ip = (const BYTE *) source;
const BYTE *ref;
BYTE *op = (BYTE *) dest;
BYTE * const oend = op + osize;
BYTE *cpy;
unsigned token;
size_t length;
size_t dec32table[] = {0, 3, 2, 3, 0, 0, 0, 0};
size_t d... | static int lz4_uncompress(const char *source, char *dest, int osize) {
const BYTE *ip = (const BYTE *) source;
const BYTE *ref;
BYTE *op = (BYTE *) dest;
BYTE * const oend = op + osize;
BYTE *cpy;
unsigned token;
size_t length;
size_t dec32table[] = {0, 3, 2, 3, 0, 0, 0, 0};
size_t d... | static int lz4_uncompress(const char *source, char *dest, int osize) {
const BYTE *ip = (const BYTE *) source;
while (1) {
token = *ip++;
length = (token >> ML_BITS);
if (length == RUN_MASK) {
size_t len;
len = *ip++;
for (; len == 255; length += 255)
... | static int lz4_uncompress(const char *source, char *dest, int osize) {
const BYTE *ip = (const BYTE *) source;
while (1) {
token = *ip++;
length = (token >> ML_BITS);
if (length == RUN_MASK) {
size_t len;
len = *ip++;
for (; len == 255; length += 255)
... | static int lz4_uncompress(const char *source, char *dest, int osize) {
const BYTE *ip = (const BYTE *) source;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
while (1) {
token = *ip++;
length = (token >> ML_BITS);
if (length == RUN_MASK) {
size_t len;
len = *ip... | static int lz4_uncompress(const char *source, char *dest, int osize) {
const BYTE *ip = (const BYTE *) source;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
while (1) {
token = *ip++;
length = (token >> ML_BITS);
if (length == RUN_MASK) {
size_t len;
len = *ip... | static int lz4_uncompress(const char *source, char *dest, int osize) {
const BYTE *ip = (const BYTE *) source;
while (1) {
token = *ip++;
length = (token >> ML_BITS);
if (length == RUN_MASK) {
size_t len;
len = *ip++;
for (; len == 255; length... |
CVE-2014-4652 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | sound/core/control.c | snd_ctl_elem_add | static int snd_ctl_elem_add(struct snd_ctl_file *file, struct snd_ctl_elem_info *info, int replace) {
struct snd_card *card = file->card;
struct snd_kcontrol kctl, *_kctl;
unsigned int access;
long private_size;
struct user_element *ue;
int idx, err;
if (!replace && card->user_ctl_count >= M... | static int snd_ctl_elem_add(struct snd_ctl_file *file, struct snd_ctl_elem_info *info, int replace) {
struct snd_card *card = file->card;
struct snd_kcontrol kctl, *_kctl;
unsigned int access;
long private_size;
struct user_element *ue;
int idx, err;
if (!replace && card->user_ctl_count >= M... | static int snd_ctl_elem_add(struct snd_ctl_file *file, struct snd_ctl_elem_info *info, int replace) {
struct snd_card *card = file->card;
struct snd_kcontrol kctl, *_kctl;
unsigned int access;
long private_size;
struct user_element *ue;
int idx, err;
if (!replace && card->user_ctl_count >= M... | static int snd_ctl_elem_add(struct snd_ctl_file *file, struct snd_ctl_elem_info *info, int replace) {
struct snd_card *card = file->card;
struct snd_kcontrol kctl, *_kctl;
unsigned int access;
long private_size;
struct user_element *ue;
int idx, err;
if (!replace && card->user_ctl_count >= M... | static int snd_ctl_elem_add(struct snd_ctl_file *file, struct snd_ctl_elem_info *info, int replace) {
struct snd_card *card = file->card;
_kctl = snd_ctl_find_id(card, &info->id);
if (_kctl) {
if (replace) {
err = snd_ctl_remove(card, _kctl);
} else {
}
} else {
}... | static int snd_ctl_elem_add(struct snd_ctl_file *file, struct snd_ctl_elem_info *info, int replace) {
struct snd_card *card = file->card;
_kctl = snd_ctl_find_id(card, &info->id);
if (_kctl) {
if (replace) {
err = snd_ctl_remove(card, _kctl);
} else {
}
} else {
}... | static int snd_ctl_elem_add(struct snd_ctl_file *file, struct snd_ctl_elem_info *info, int replace) {
struct snd_card *card = file->card;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
_kctl = snd_ctl_find_id(card, &info->id);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (_kctl) {
if (rep... | static int snd_ctl_elem_add(struct snd_ctl_file *file, struct snd_ctl_elem_info *info, int replace) {
struct snd_card *card = file->card;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
_kctl = snd_ctl_find_id(card, &info->id);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (_kctl) {
if (rep... | static int snd_ctl_elem_add(struct snd_ctl_file *file, struct snd_ctl_elem_info *info, int replace) {
struct snd_card *card = file->card;
_kctl = snd_ctl_find_id(card, &info->id);
if (_kctl) {
if (replace) {
err = snd_ctl_remove(card, _kctl);
} else {
}
} els... |
CVE-2014-4652 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | sound/core/control.c | snd_ctl_elem_user_get | static int snd_ctl_elem_user_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {
struct user_element *ue = kcontrol->private_data;
memcpy(&ucontrol->value, ue->elem_data, ue->elem_data_size);
return 0;
} | static int snd_ctl_elem_user_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {
struct user_element *ue = kcontrol->private_data;
mutex_lock(&ue->card->user_ctl_lock);
memcpy(&ucontrol->value, ue->elem_data, ue->elem_data_size);
mutex_unlock(&ue->card->user_ctl_lock);
return 0... | static int snd_ctl_elem_user_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {
struct user_element *ue = kcontrol->private_data;
memcpy(&ucontrol->value, ue->elem_data, ue->elem_data_size);
return 0;
} | static int snd_ctl_elem_user_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {
struct user_element *ue = kcontrol->private_data;
mutex_lock(&ue->card->user_ctl_lock);
memcpy(&ucontrol->value, ue->elem_data, ue->elem_data_size);
mutex_unlock(&ue->card->user_ctl_lock);
return 0... | static int snd_ctl_elem_user_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {
struct user_element *ue = kcontrol->private_data;
memcpy(&ucontrol->value, ue->elem_data, ue->elem_data_size);
return 0;
}
| static int snd_ctl_elem_user_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {
struct user_element *ue = kcontrol->private_data;
mutex_lock(&ue->card->user_ctl_lock);
memcpy(&ucontrol->value, ue->elem_data, ue->elem_data_size);
mutex_unlock(&ue->card->user_ctl_lock);
return 0... | static int snd_ctl_elem_user_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {
struct user_element *ue = kcontrol->private_data;
memcpy(&ucontrol->value, ue->elem_data, ue->elem_data_size);
return 0;
}
| static int snd_ctl_elem_user_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {
struct user_element *ue = kcontrol->private_data;
mutex_lock(&ue->card->user_ctl_lock);
memcpy(&ucontrol->value, ue->elem_data, ue->elem_data_size);
mutex_unlock(&ue->card->user_ctl_lock);
return 0... | static int snd_ctl_elem_user_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {
struct user_element *ue = kcontrol->private_data;
+ mutex_lock(&ue->card->user_ctl_lock);
memcpy(&ucontrol->value, ue->elem_data, ue->elem_data_size);
+ mutex_unlock(&ue->card->user_ctl_lock);
re... |
CVE-2014-4652 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | sound/core/control.c | snd_ctl_elem_user_put | static int snd_ctl_elem_user_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {
int change;
struct user_element *ue = kcontrol->private_data;
change = memcmp(&ucontrol->value, ue->elem_data, ue->elem_data_size) != 0;
if (change) {
memcpy(ue->elem_data, &ucontrol->value, ue... | static int snd_ctl_elem_user_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {
int change;
struct user_element *ue = kcontrol->private_data;
mutex_lock(&ue->card->user_ctl_lock);
change = memcmp(&ucontrol->value, ue->elem_data, ue->elem_data_size) != 0;
if (change) {
... | static int snd_ctl_elem_user_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {
int change;
struct user_element *ue = kcontrol->private_data;
change = memcmp(&ucontrol->value, ue->elem_data, ue->elem_data_size) != 0;
if (change) {
memcpy(ue->elem_data, &ucontrol->value, ue... | static int snd_ctl_elem_user_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {
int change;
struct user_element *ue = kcontrol->private_data;
mutex_lock(&ue->card->user_ctl_lock);
change = memcmp(&ucontrol->value, ue->elem_data, ue->elem_data_size) != 0;
if (change) {
... | static int snd_ctl_elem_user_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {
int change;
struct user_element *ue = kcontrol->private_data;
change = memcmp(&ucontrol->value, ue->elem_data, ue->elem_data_size) != 0;
if (change) {
memcpy(ue->elem_data, &ucontrol->value, ue... | static int snd_ctl_elem_user_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {
int change;
struct user_element *ue = kcontrol->private_data;
mutex_lock(&ue->card->user_ctl_lock);
change = memcmp(&ucontrol->value, ue->elem_data, ue->elem_data_size) != 0;
if (change) {
... | static int snd_ctl_elem_user_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {
int change;
struct user_element *ue = kcontrol->private_data;
change = memcmp(&ucontrol->value, ue->elem_data, ue->elem_data_size) != 0;
if (change) {
memcpy(ue->elem_data, &ucontrol->value, ue... | static int snd_ctl_elem_user_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {
int change;
struct user_element *ue = kcontrol->private_data;
mutex_lock(&ue->card->user_ctl_lock);
change = memcmp(&ucontrol->value, ue->elem_data, ue->elem_data_size) != 0;
if (change) {
... | static int snd_ctl_elem_user_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {
int change;
struct user_element *ue = kcontrol->private_data;
+ mutex_lock(&ue->card->user_ctl_lock);
change = memcmp(&ucontrol->value, ue->elem_data, ue->elem_data_size) != 0;
if (change) {
... |
CVE-2014-4652 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | sound/core/control.c | snd_ctl_elem_user_tlv | static int snd_ctl_elem_user_tlv(struct snd_kcontrol *kcontrol, int op_flag, unsigned int size, unsigned int *tlv) {
struct user_element *ue = kcontrol->private_data;
int change = 0;
void *new_data;
if (op_flag > 0) {
if (size > 1024 * 128) {
return -EVAL;
}
new_data ... | static int snd_ctl_elem_user_tlv(struct snd_kcontrol *kcontrol, int op_flag, unsigned int size, unsigned int *tlv) {
struct user_element *ue = kcontrol->private_data;
int change = 0;
void *new_data;
if (op_flag > 0) {
if (size > 1024 * 128) {
return -EVAL;
}
new_data ... | static int snd_ctl_elem_user_tlv(struct snd_kcontrol *kcontrol, int op_flag, unsigned int size, unsigned int *tlv) {
struct user_element *ue = kcontrol->private_data;
int change = 0;
void *new_data;
if (op_flag > 0) {
if (size > 1024 * 128) {
return -EVAL;
}
new_data ... | static int snd_ctl_elem_user_tlv(struct snd_kcontrol *kcontrol, int op_flag, unsigned int size, unsigned int *tlv) {
struct user_element *ue = kcontrol->private_data;
int change = 0;
void *new_data;
if (op_flag > 0) {
if (size > 1024 * 128) {
return -EVAL;
}
new_data ... | static int snd_ctl_elem_user_tlv(struct snd_kcontrol *kcontrol, int op_flag, unsigned int size, unsigned int *tlv) {
if (op_flag > 0) {
if (IS_ERR(new_data)) {
return PTR_ERR(new_data);
}
change = ue->tlv_data_size != size;
ue->tlv_data_size = size;
} else {
i... | static int snd_ctl_elem_user_tlv(struct snd_kcontrol *kcontrol, int op_flag, unsigned int size, unsigned int *tlv) {
if (op_flag > 0) {
if (IS_ERR(new_data)) {
return PTR_ERR(new_data);
}
mutex_lock(&ue->card->user_ctl_lock);
change = ue->tlv_data_size != size;
ue... | static int snd_ctl_elem_user_tlv(struct snd_kcontrol *kcontrol, int op_flag, unsigned int size, unsigned int *tlv) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (op_flag > 0) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (IS_ERR(new_data)) {
return PTR_ERR(new_data);
}
... | static int snd_ctl_elem_user_tlv(struct snd_kcontrol *kcontrol, int op_flag, unsigned int size, unsigned int *tlv) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (op_flag > 0) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (IS_ERR(new_data)) {
return PTR_ERR(new_data);
}
... | static int snd_ctl_elem_user_tlv(struct snd_kcontrol *kcontrol, int op_flag, unsigned int size, unsigned int *tlv) {
if (op_flag > 0) {
if (IS_ERR(new_data)) {
return PTR_ERR(new_data);
}
+ mutex_lock(&ue->card->user_ctl_lock);
change = ue->tlv_data_size != size;
... |
CVE-2014-4652 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | sound/core/init.c | snd_card_create | int snd_card_create(int idx, const char *xid, struct module *module, int extra_size, struct snd_card **card_ret) {
struct snd_card *card;
int err;
if (snd_BUG_ON(!card_ret)) {
return -EVAL;
}
*card_ret = NULL;
if (extra_size < 0) {
extra_size = 0;
}
card = kzalloc(sizeof(... | int snd_card_create(int idx, const char *xid, struct module *module, int extra_size, struct snd_card **card_ret) {
struct snd_card *card;
int err;
if (snd_BUG_ON(!card_ret)) {
return -EVAL;
}
*card_ret = NULL;
if (extra_size < 0) {
extra_size = 0;
}
card = kzalloc(sizeof(... | int snd_card_create(int idx, const char *xid, struct module *module, int extra_size, struct snd_card **card_ret) {
struct snd_card *card;
int err, idx2;
if (snd_BUG_ON(!card_ret)) {
return -EVAL;
}
*card_ret = NULL;
if (extra_size < 0) {
extra_size = 0;
}
card = kzalloc(s... | int snd_card_create(int idx, const char *xid, struct module *module, int extra_size, struct snd_card **card_ret) {
struct snd_card *card;
int err, idx2;
if (snd_BUG_ON(!card_ret)) {
return -EVAL;
}
*card_ret = NULL;
if (extra_size < 0) {
extra_size = 0;
}
card = kzalloc(s... | int snd_card_create(int idx, const char *xid, struct module *module, int extra_size, struct snd_card **card_ret) {
if (extra_size < 0) {
extra_size = 0;
}
card = kzalloc(sizeof(*card) + extra_size, GFP_KERNEL);
if (!card) {
return -ENOMEM;
}
rwlock_init(&card->ctl_files_rwlock);
... | int snd_card_create(int idx, const char *xid, struct module *module, int extra_size, struct snd_card **card_ret) {
if (extra_size < 0) {
extra_size = 0;
}
card = kzalloc(sizeof(*card) + extra_size, GFP_KERNEL);
if (!card) {
return -ENOMEM;
}
rwlock_init(&card->ctl_files_rwlock);
... | int snd_card_create(int idx, const char *xid, struct module *module, int extra_size, struct snd_card **card_ret) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (extra_size < 0) {
extra_size = 0;
}
card = kzalloc(sizeof(*card) + extra_size, GFP_KERNEL);
if (!card) {
return -ENOMEM... | int snd_card_create(int idx, const char *xid, struct module *module, int extra_size, struct snd_card **card_ret) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (extra_size < 0) {
extra_size = 0;
}
card = kzalloc(sizeof(*card) + extra_size, GFP_KERNEL);
if (!card) {
return -ENOMEM... | int snd_card_create(int idx, const char *xid, struct module *module, int extra_size, struct snd_card **card_ret) {
if (extra_size < 0) {
extra_size = 0;
}
card = kzalloc(sizeof(*card) + extra_size, GFP_KERNEL);
if (!card) {
return -ENOMEM;
}
rwlock_init(&card->ctl_files_... |
CVE-2014-4653 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | sound/core/control.c | snd_ctl_add | int snd_ctl_add(struct snd_card *card, struct snd_kcontrol *kcontrol) {
struct snd_ctl_elem_id id;
unsigned int idx;
int err = -EVAL;
if (! kcontrol) {
return err;
}
if (snd_BUG_ON(!card || !kcontrol->info)) {
goto error;
}
id = kcontrol->id;
down_write(&card->control... | int snd_ctl_add(struct snd_card *card, struct snd_kcontrol *kcontrol) {
struct snd_ctl_elem_id id;
unsigned int idx;
unsigned int count;
int err = -EVAL;
if (! kcontrol) {
return err;
}
if (snd_BUG_ON(!card || !kcontrol->info)) {
goto error;
}
id = kcontrol->id;
d... | int snd_ctl_add(struct snd_card *card, struct snd_kcontrol *kcontrol) {
struct snd_ctl_elem_id id;
unsigned int idx;
int err = -EVAL;
if (! kcontrol) {
return err;
}
if (snd_BUG_ON(!card || !kcontrol->info)) {
goto error;
}
id = kcontrol->id;
down_write(&card->control... | int snd_ctl_add(struct snd_card *card, struct snd_kcontrol *kcontrol) {
struct snd_ctl_elem_id id;
unsigned int idx;
unsigned int count;
int err = -EVAL;
if (! kcontrol) {
return err;
}
if (snd_BUG_ON(!card || !kcontrol->info)) {
goto error;
}
id = kcontrol->id;
d... | int snd_ctl_add(struct snd_card *card, struct snd_kcontrol *kcontrol) {
unsigned int idx;
int err = -EVAL;
if (! kcontrol) {
return err;
}
if (snd_BUG_ON(!card || !kcontrol->info)) {
goto error;
}
id = kcontrol->id;
if (snd_ctl_find_id(card, &id)) {
goto error;
... | int snd_ctl_add(struct snd_card *card, struct snd_kcontrol *kcontrol) {
unsigned int idx;
unsigned int count;
int err = -EVAL;
if (! kcontrol) {
return err;
}
if (snd_BUG_ON(!card || !kcontrol->info)) {
goto error;
}
id = kcontrol->id;
if (snd_ctl_find_id(card, &id)) ... | int snd_ctl_add(struct snd_card *card, struct snd_kcontrol *kcontrol) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
unsigned int idx;
int err = -EVAL;
if (! kcontrol) {
return err;
}
if (snd_BUG_ON(!card || !kcontrol->info)) {
goto error;
}
id = kcontrol->id;
/* PLA... | int snd_ctl_add(struct snd_card *card, struct snd_kcontrol *kcontrol) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
unsigned int idx;
unsigned int count;
int err = -EVAL;
if (! kcontrol) {
return err;
}
if (snd_BUG_ON(!card || !kcontrol->info)) {
goto error;
}
id = ... | int snd_ctl_add(struct snd_card *card, struct snd_kcontrol *kcontrol) {
unsigned int idx;
+ unsigned int count;
int err = -EVAL;
if (! kcontrol) {
return err;
}
if (snd_BUG_ON(!card || !kcontrol->info)) {
goto error;
}
id = kcontrol->id;
if (snd_ctl_find_id(... |
CVE-2014-4653 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | sound/core/control.c | snd_ctl_elem_write | static int snd_ctl_elem_write(struct snd_card *card, struct snd_ctl_file *file, struct snd_ctl_elem_value *control) {
struct snd_kcontrol *kctl;
struct snd_kcontrol_volatile *vd;
unsigned int index_offset;
int result;
down_read(&card->controls_rwsem);
kctl = snd_ctl_find_id(card, &control->id);
... | static int snd_ctl_elem_write(struct snd_card *card, struct snd_ctl_file *file, struct snd_ctl_elem_value *control) {
struct snd_kcontrol *kctl;
struct snd_kcontrol_volatile *vd;
unsigned int index_offset;
int result;
down_read(&card->controls_rwsem);
kctl = snd_ctl_find_id(card, &control->id);
... | static int snd_ctl_elem_write(struct snd_card *card, struct snd_ctl_file *file, struct snd_ctl_elem_value *control) {
struct snd_kcontrol *kctl;
struct snd_kcontrol_volatile *vd;
unsigned int index_offset;
int result;
down_read(&card->controls_rwsem);
kctl = snd_ctl_find_id(card, &control->id);
... | static int snd_ctl_elem_write(struct snd_card *card, struct snd_ctl_file *file, struct snd_ctl_elem_value *control) {
struct snd_kcontrol *kctl;
struct snd_kcontrol_volatile *vd;
unsigned int index_offset;
int result;
down_read(&card->controls_rwsem);
kctl = snd_ctl_find_id(card, &control->id);
... | static int snd_ctl_elem_write(struct snd_card *card, struct snd_ctl_file *file, struct snd_ctl_elem_value *control) {
kctl = snd_ctl_find_id(card, &control->id);
if (kctl == NULL) {
} else {
index_offset = snd_ctl_get_ioff(kctl, &control->id);
vd = &kctl->vd[index_offset];
if (!(vd->... | static int snd_ctl_elem_write(struct snd_card *card, struct snd_ctl_file *file, struct snd_ctl_elem_value *control) {
kctl = snd_ctl_find_id(card, &control->id);
if (kctl == NULL) {
} else {
index_offset = snd_ctl_get_ioff(kctl, &control->id);
vd = &kctl->vd[index_offset];
if (!(vd->... | static int snd_ctl_elem_write(struct snd_card *card, struct snd_ctl_file *file, struct snd_ctl_elem_value *control) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
kctl = snd_ctl_find_id(card, &control->id);
if (kctl == NULL) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
} else {
index_off... | static int snd_ctl_elem_write(struct snd_card *card, struct snd_ctl_file *file, struct snd_ctl_elem_value *control) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
kctl = snd_ctl_find_id(card, &control->id);
if (kctl == NULL) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
} else {
index_off... | static int snd_ctl_elem_write(struct snd_card *card, struct snd_ctl_file *file, struct snd_ctl_elem_value *control) {
kctl = snd_ctl_find_id(card, &control->id);
if (kctl == NULL) {
} else {
index_offset = snd_ctl_get_ioff(kctl, &control->id);
vd = &kctl->vd[index_offset];
if ... |
CVE-2014-4653 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | sound/core/control.c | snd_ctl_replace | int snd_ctl_replace(struct snd_card *card, struct snd_kcontrol *kcontrol, bool add_on_replace) {
struct snd_ctl_elem_id id;
unsigned int idx;
struct snd_kcontrol *old;
int ret;
if (!kcontrol) {
return -EVAL;
}
if (snd_BUG_ON(!card || !kcontrol->info)) {
ret = -EVAL;
g... | int snd_ctl_replace(struct snd_card *card, struct snd_kcontrol *kcontrol, bool add_on_replace) {
struct snd_ctl_elem_id id;
unsigned int count;
unsigned int idx;
struct snd_kcontrol *old;
int ret;
if (!kcontrol) {
return -EVAL;
}
if (snd_BUG_ON(!card || !kcontrol->info)) {
... | int snd_ctl_replace(struct snd_card *card, struct snd_kcontrol *kcontrol, bool add_on_replace) {
struct snd_ctl_elem_id id;
unsigned int idx;
struct snd_kcontrol *old;
int ret;
if (!kcontrol) {
return -EVAL;
}
if (snd_BUG_ON(!card || !kcontrol->info)) {
ret = -EVAL;
g... | int snd_ctl_replace(struct snd_card *card, struct snd_kcontrol *kcontrol, bool add_on_replace) {
struct snd_ctl_elem_id id;
unsigned int count;
unsigned int idx;
struct snd_kcontrol *old;
int ret;
if (!kcontrol) {
return -EVAL;
}
if (snd_BUG_ON(!card || !kcontrol->info)) {
... | int snd_ctl_replace(struct snd_card *card, struct snd_kcontrol *kcontrol, bool add_on_replace) {
struct snd_ctl_elem_id id;
unsigned int idx;
if (!kcontrol) {
return -EVAL;
}
if (snd_BUG_ON(!card || !kcontrol->info)) {
goto error;
}
id = kcontrol->id;
old = snd_ctl_find_i... | int snd_ctl_replace(struct snd_card *card, struct snd_kcontrol *kcontrol, bool add_on_replace) {
struct snd_ctl_elem_id id;
unsigned int count;
unsigned int idx;
if (!kcontrol) {
return -EVAL;
}
if (snd_BUG_ON(!card || !kcontrol->info)) {
goto error;
}
id = kcontrol->id;
... | int snd_ctl_replace(struct snd_card *card, struct snd_kcontrol *kcontrol, bool add_on_replace) {
struct snd_ctl_elem_id id;
unsigned int idx;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (!kcontrol) {
return -EVAL;
}
if (snd_BUG_ON(!card || !kcontrol->info)) {
/* PLACEHOLDER: DO ... | int snd_ctl_replace(struct snd_card *card, struct snd_kcontrol *kcontrol, bool add_on_replace) {
struct snd_ctl_elem_id id;
unsigned int count;
unsigned int idx;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (!kcontrol) {
return -EVAL;
}
if (snd_BUG_ON(!card || !kcontrol->info)) {... | int snd_ctl_replace(struct snd_card *card, struct snd_kcontrol *kcontrol, bool add_on_replace) {
struct snd_ctl_elem_id id;
+ unsigned int count;
unsigned int idx;
if (!kcontrol) {
return -EVAL;
}
if (snd_BUG_ON(!card || !kcontrol->info)) {
goto error;
}
id = kco... |
CVE-2014-4653 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | sound/core/control.c | snd_ctl_tlv_ioctl | static int snd_ctl_tlv_ioctl(struct snd_ctl_file *file, struct snd_ctl_tlv *_tlv, int op_flag) {
struct snd_card *card = file->card;
struct snd_ctl_tlv tlv;
struct snd_kcontrol *kctl;
struct snd_kcontrol_volatile *vd;
unsigned int len;
int err = 0;
if (copy_from_user(&tlv, _tlv, sizeof(tlv))... | static int snd_ctl_tlv_ioctl(struct snd_ctl_file *file, struct snd_ctl_tlv *_tlv, int op_flag) {
struct snd_card *card = file->card;
struct snd_ctl_tlv tlv;
struct snd_kcontrol *kctl;
struct snd_kcontrol_volatile *vd;
unsigned int len;
int err = 0;
if (copy_from_user(&tlv, _tlv, sizeof(tlv))... | static int snd_ctl_tlv_ioctl(struct snd_ctl_file *file, struct snd_ctl_tlv *_tlv, int op_flag) {
struct snd_card *card = file->card;
struct snd_ctl_tlv tlv;
struct snd_kcontrol *kctl;
struct snd_kcontrol_volatile *vd;
unsigned int len;
int err = 0;
if (copy_from_user(&tlv, _tlv, sizeof(tlv))... | static int snd_ctl_tlv_ioctl(struct snd_ctl_file *file, struct snd_ctl_tlv *_tlv, int op_flag) {
struct snd_card *card = file->card;
struct snd_ctl_tlv tlv;
struct snd_kcontrol *kctl;
struct snd_kcontrol_volatile *vd;
unsigned int len;
int err = 0;
if (copy_from_user(&tlv, _tlv, sizeof(tlv))... | static int snd_ctl_tlv_ioctl(struct snd_ctl_file *file, struct snd_ctl_tlv *_tlv, int op_flag) {
struct snd_card *card = file->card;
if (copy_from_user(&tlv, _tlv, sizeof(tlv))) {
return -EFAULT;
}
if (tlv.length < sizeof(unsigned int) * 2) {
return -EVAL;
}
kctl = snd_ctl_find_n... | static int snd_ctl_tlv_ioctl(struct snd_ctl_file *file, struct snd_ctl_tlv *_tlv, int op_flag) {
struct snd_card *card = file->card;
if (copy_from_user(&tlv, _tlv, sizeof(tlv))) {
return -EFAULT;
}
if (tlv.length < sizeof(unsigned int) * 2) {
return -EVAL;
}
kctl = snd_ctl_find_n... | static int snd_ctl_tlv_ioctl(struct snd_ctl_file *file, struct snd_ctl_tlv *_tlv, int op_flag) {
struct snd_card *card = file->card;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (copy_from_user(&tlv, _tlv, sizeof(tlv))) {
return -EFAULT;
}
if (tlv.length < sizeof(unsigned int) * 2) {
... | static int snd_ctl_tlv_ioctl(struct snd_ctl_file *file, struct snd_ctl_tlv *_tlv, int op_flag) {
struct snd_card *card = file->card;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (copy_from_user(&tlv, _tlv, sizeof(tlv))) {
return -EFAULT;
}
if (tlv.length < sizeof(unsigned int) * 2) {
... | static int snd_ctl_tlv_ioctl(struct snd_ctl_file *file, struct snd_ctl_tlv *_tlv, int op_flag) {
struct snd_card *card = file->card;
if (copy_from_user(&tlv, _tlv, sizeof(tlv))) {
return -EFAULT;
}
if (tlv.length < sizeof(unsigned int) * 2) {
return -EVAL;
}
kctl = snd_c... |
CVE-2014-4654 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | sound/core/control.c | snd_ctl_elem_add | static int snd_ctl_elem_add(struct snd_ctl_file *file, struct snd_ctl_elem_info *info, int replace) {
struct snd_card *card = file->card;
struct snd_kcontrol kctl, *_kctl;
unsigned int access;
long private_size;
struct user_element *ue;
int idx, err;
if (!replace && card->user_ctl_count >= M... | static int snd_ctl_elem_add(struct snd_ctl_file *file, struct snd_ctl_elem_info *info, int replace) {
struct snd_card *card = file->card;
struct snd_kcontrol kctl, *_kctl;
unsigned int access;
long private_size;
struct user_element *ue;
int idx, err;
if (info->count < 1) {
return -EV... | static int snd_ctl_elem_add(struct snd_ctl_file *file, struct snd_ctl_elem_info *info, int replace) {
struct snd_card *card = file->card;
struct snd_kcontrol kctl, *_kctl;
unsigned int access;
long private_size;
struct user_element *ue;
int idx, err;
if (!replace && card->user_ctl_count >= M... | static int snd_ctl_elem_add(struct snd_ctl_file *file, struct snd_ctl_elem_info *info, int replace) {
struct snd_card *card = file->card;
struct snd_kcontrol kctl, *_kctl;
unsigned int access;
long private_size;
struct user_element *ue;
int idx, err;
if (info->count < 1) {
return -EV... | static int snd_ctl_elem_add(struct snd_ctl_file *file, struct snd_ctl_elem_info *info, int replace) {
struct snd_card *card = file->card;
int idx, err;
if (!replace && card->user_ctl_count >= MAX_USER_CONTROLS) {
return -ENOMEM;
}
if (info->count < 1) {
return -EVAL;
}
memset... | static int snd_ctl_elem_add(struct snd_ctl_file *file, struct snd_ctl_elem_info *info, int replace) {
struct snd_card *card = file->card;
int idx, err;
if (info->count < 1) {
return -EVAL;
}
memset(&kctl, 0, sizeof(kctl));
if (replace) {
err = snd_ctl_remove_user_ctl(file, &info-... | static int snd_ctl_elem_add(struct snd_ctl_file *file, struct snd_ctl_elem_info *info, int replace) {
struct snd_card *card = file->card;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int idx, err;
if (!replace && card->user_ctl_count >= MAX_USER_CONTROLS) {
return -ENOMEM;
}
if (info->c... | static int snd_ctl_elem_add(struct snd_ctl_file *file, struct snd_ctl_elem_info *info, int replace) {
struct snd_card *card = file->card;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int idx, err;
if (info->count < 1) {
return -EVAL;
}
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
m... | static int snd_ctl_elem_add(struct snd_ctl_file *file, struct snd_ctl_elem_info *info, int replace) {
struct snd_card *card = file->card;
int idx, err;
- if (!replace && card->user_ctl_count >= MAX_USER_CONTROLS) {
- return -ENOMEM;
- }
if (info->count < 1) {
return -EVAL;
}
... |
CVE-2014-4655 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | sound/core/control.c | snd_ctl_elem_add | static int snd_ctl_elem_add(struct snd_ctl_file *file, struct snd_ctl_elem_info *info, int replace) {
struct snd_card *card = file->card;
struct snd_kcontrol kctl, *_kctl;
unsigned int access;
long private_size;
struct user_element *ue;
int idx, err;
if (!replace && card->user_ctl_count >= M... | static int snd_ctl_elem_add(struct snd_ctl_file *file, struct snd_ctl_elem_info *info, int replace) {
struct snd_card *card = file->card;
struct snd_kcontrol kctl, *_kctl;
unsigned int access;
long private_size;
struct user_element *ue;
int idx, err;
if (info->count < 1) {
return -EV... | static int snd_ctl_elem_add(struct snd_ctl_file *file, struct snd_ctl_elem_info *info, int replace) {
struct snd_card *card = file->card;
struct snd_kcontrol kctl, *_kctl;
unsigned int access;
long private_size;
struct user_element *ue;
int idx, err;
if (!replace && card->user_ctl_count >= M... | static int snd_ctl_elem_add(struct snd_ctl_file *file, struct snd_ctl_elem_info *info, int replace) {
struct snd_card *card = file->card;
struct snd_kcontrol kctl, *_kctl;
unsigned int access;
long private_size;
struct user_element *ue;
int idx, err;
if (info->count < 1) {
return -EV... | static int snd_ctl_elem_add(struct snd_ctl_file *file, struct snd_ctl_elem_info *info, int replace) {
struct snd_card *card = file->card;
int idx, err;
if (!replace && card->user_ctl_count >= MAX_USER_CONTROLS) {
return -ENOMEM;
}
if (info->count < 1) {
return -EVAL;
}
memset... | static int snd_ctl_elem_add(struct snd_ctl_file *file, struct snd_ctl_elem_info *info, int replace) {
struct snd_card *card = file->card;
int idx, err;
if (info->count < 1) {
return -EVAL;
}
memset(&kctl, 0, sizeof(kctl));
if (replace) {
err = snd_ctl_remove_user_ctl(file, &info-... | static int snd_ctl_elem_add(struct snd_ctl_file *file, struct snd_ctl_elem_info *info, int replace) {
struct snd_card *card = file->card;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int idx, err;
if (!replace && card->user_ctl_count >= MAX_USER_CONTROLS) {
return -ENOMEM;
}
if (info->c... | static int snd_ctl_elem_add(struct snd_ctl_file *file, struct snd_ctl_elem_info *info, int replace) {
struct snd_card *card = file->card;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int idx, err;
if (info->count < 1) {
return -EVAL;
}
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
m... | static int snd_ctl_elem_add(struct snd_ctl_file *file, struct snd_ctl_elem_info *info, int replace) {
struct snd_card *card = file->card;
int idx, err;
- if (!replace && card->user_ctl_count >= MAX_USER_CONTROLS) {
- return -ENOMEM;
- }
if (info->count < 1) {
return -EVAL;
}
... |
CVE-2014-4656 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | sound/core/control.c | snd_ctl_remove_numid_conflict | static bool snd_ctl_remove_numid_conflict(struct snd_card *card, unsigned int count) {
struct snd_kcontrol *kctl;
list_for_each_entry(kctl, &card->controls, list) {
if (kctl->id.numid < card->last_numid + 1 + count && kctl->id.numid + kctl->count > card->last_numid + 1) {
card->last_numid = ... | static bool snd_ctl_remove_numid_conflict(struct snd_card *card, unsigned int count) {
struct snd_kcontrol *kctl;
if (card->last_numid >= UT_MAX - count) {
card->last_numid = 0;
}
list_for_each_entry(kctl, &card->controls, list) {
if (kctl->id.numid < card->last_numid + 1 + count && kctl... | static bool snd_ctl_remove_numid_conflict(struct snd_card *card, unsigned int count) {
struct snd_kcontrol *kctl;
list_for_each_entry(kctl, &card->controls, list) {
if (kctl->id.numid < card->last_numid + 1 + count && kctl->id.numid + kctl->count > card->last_numid + 1) {
card->last_numid = ... | static bool snd_ctl_remove_numid_conflict(struct snd_card *card, unsigned int count) {
struct snd_kcontrol *kctl;
if (card->last_numid >= UT_MAX - count) {
card->last_numid = 0;
}
list_for_each_entry(kctl, &card->controls, list) {
if (kctl->id.numid < card->last_numid + 1 + count && kctl... | static bool snd_ctl_remove_numid_conflict(struct snd_card *card, unsigned int count) {
struct snd_kcontrol *kctl;
list_for_each_entry(kctl, &card->controls, list) {
if (kctl->id.numid < card->last_numid + 1 + count && kctl->id.numid + kctl->count > card->last_numid + 1) {
card->last_numid = ... | static bool snd_ctl_remove_numid_conflict(struct snd_card *card, unsigned int count) {
struct snd_kcontrol *kctl;
if (card->last_numid >= UT_MAX - count) {
card->last_numid = 0;
}
list_for_each_entry(kctl, &card->controls, list) {
if (kctl->id.numid < card->last_numid + 1 + count && kctl... | static bool snd_ctl_remove_numid_conflict(struct snd_card *card, unsigned int count) {
struct snd_kcontrol *kctl;
list_for_each_entry(kctl, &card->controls, list) {
if (kctl->id.numid < card->last_numid + 1 + count && kctl->id.numid + kctl->count > card->last_numid + 1) {
card->last_numid = ... | static bool snd_ctl_remove_numid_conflict(struct snd_card *card, unsigned int count) {
struct snd_kcontrol *kctl;
if (card->last_numid >= UT_MAX - count) {
card->last_numid = 0;
}
list_for_each_entry(kctl, &card->controls, list) {
if (kctl->id.numid < card->last_numid + 1 + count && kctl... | static bool snd_ctl_remove_numid_conflict(struct snd_card *card, unsigned int count) {
struct snd_kcontrol *kctl;
+ if (card->last_numid >= UT_MAX - count) {
+ card->last_numid = 0;
+ }
list_for_each_entry(kctl, &card->controls, list) {
if (kctl->id.numid < card->last_numid + 1 + count ... |
CVE-2014-4667 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | net/sctp/associola.c | sctp_association_free | void sctp_association_free(struct sctp_association *asoc) {
struct sock *sk = asoc->base.sk;
struct sctp_transport *transport;
struct list_head *pos, *temp;
int i;
if (!asoc->temp) {
list_del(&asoc->asocs);
if (sctp_style(sk, TCP) && sctp_sstate(sk, LISTENG)) {
sk->sk_ack... | void sctp_association_free(struct sctp_association *asoc) {
struct sock *sk = asoc->base.sk;
struct sctp_transport *transport;
struct list_head *pos, *temp;
int i;
if (!list_empty(&asoc->asocs)) {
list_del(&asoc->asocs);
if (sctp_style(sk, TCP) && sctp_sstate(sk, LISTENG)) {
... | void sctp_association_free(struct sctp_association *asoc) {
struct sock *sk = asoc->base.sk;
struct sctp_transport *transport;
struct list_head *pos, *temp;
int i;
if (!asoc->temp) {
list_del(&asoc->asocs);
if (sctp_style(sk, TCP) && sctp_sstate(sk, LISTENG)) {
sk->sk_ack... | void sctp_association_free(struct sctp_association *asoc) {
struct sock *sk = asoc->base.sk;
struct sctp_transport *transport;
struct list_head *pos, *temp;
int i;
if (!list_empty(&asoc->asocs)) {
list_del(&asoc->asocs);
if (sctp_style(sk, TCP) && sctp_sstate(sk, LISTENG)) {
... | void sctp_association_free(struct sctp_association *asoc) {
struct sock *sk = asoc->base.sk;
int i;
if (!asoc->temp) {
list_del(&asoc->asocs);
}
asoc->base.dead = true;
for (i = SCTP_EVENT_TIME_NONE; i < SCTP_NUM_TIME_TYPES; ++i) {
if (del_timer(&asoc->timers[i])) {
s... | void sctp_association_free(struct sctp_association *asoc) {
struct sock *sk = asoc->base.sk;
int i;
if (!list_empty(&asoc->asocs)) {
list_del(&asoc->asocs);
}
asoc->base.dead = true;
for (i = SCTP_EVENT_TIME_NONE; i < SCTP_NUM_TIME_TYPES; ++i) {
if (del_timer(&asoc->timers[i])) {... | void sctp_association_free(struct sctp_association *asoc) {
struct sock *sk = asoc->base.sk;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int i;
if (!asoc->temp) {
list_del(&asoc->asocs);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
}
asoc->base.dead = 1;
/* PLACEHOLDER: DO NOT... | void sctp_association_free(struct sctp_association *asoc) {
struct sock *sk = asoc->base.sk;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int i;
if (!list_empty(&asoc->asocs)) {
list_del(&asoc->asocs);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
}
asoc->base.dead = 1;
/* PLACE... | void sctp_association_free(struct sctp_association *asoc) {
struct sock *sk = asoc->base.sk;
int i;
- if (!asoc->temp) {
+ if (!list_empty(&asoc->asocs)) {
list_del(&asoc->asocs);
}
asoc->base.dead = true;
for (i = SCTP_EVENT_TIME_NONE; i < SCTP_NUM_TIME_TYPES; ++i) {
i... |
CVE-2014-5045 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | fs/namei.c | mountpoint_last | static int mountpoint_last(struct nameidata *nd, struct path *path) {
int error = 0;
struct dentry *dentry;
struct dentry *dir = nd->path.dentry;
if (nd->flags & LOOKUP_RCU) {
if (unlazy_walk(nd, NULL)) {
error = -ECHILD;
goto out;
}
}
nd->flags &= ~LOOKUP... | static int mountpoint_last(struct nameidata *nd, struct path *path) {
int error = 0;
struct dentry *dentry;
struct dentry *dir = nd->path.dentry;
if (nd->flags & LOOKUP_RCU) {
if (unlazy_walk(nd, NULL)) {
error = -ECHILD;
goto out;
}
}
nd->flags &= ~LOOKUP... | static int mountpoint_last(struct nameidata *nd, struct path *path) {
int error = 0;
struct dentry *dentry;
struct dentry *dir = nd->path.dentry;
if (nd->flags & LOOKUP_RCU) {
if (unlazy_walk(nd, NULL)) {
error = -ECHILD;
goto out;
}
}
nd->flags &= ~LOOKUP... | static int mountpoint_last(struct nameidata *nd, struct path *path) {
int error = 0;
struct dentry *dentry;
struct dentry *dir = nd->path.dentry;
if (nd->flags & LOOKUP_RCU) {
if (unlazy_walk(nd, NULL)) {
error = -ECHILD;
goto out;
}
}
nd->flags &= ~LOOKUP... | static int mountpoint_last(struct nameidata *nd, struct path *path) {
path->dentry = dentry;
path->mnt = mntget(nd->path.mnt);
if (should_follow_link(dentry->d_inode, nd->flags & LOOKUP_FOLLOW)) {
return 1;
}
follow_mount(path);
}
| static int mountpoint_last(struct nameidata *nd, struct path *path) {
path->dentry = dentry;
path->mnt = nd->path.mnt;
if (should_follow_link(dentry->d_inode, nd->flags & LOOKUP_FOLLOW)) {
return 1;
}
mntget(path->mnt);
follow_mount(path);
}
| static int mountpoint_last(struct nameidata *nd, struct path *path) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
path->dentry = dentry;
path->mnt = mntget(nd->path.mnt);
if (should_follow_link(dentry, nd->flags & LOOKUP_FOLLOW)) {
return 1;
}
follow_mount(path);
/* PLACEHOLDER: DO... | static int mountpoint_last(struct nameidata *nd, struct path *path) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
path->dentry = dentry;
path->mnt = nd->path.mnt;
if (should_follow_link(dentry, nd->flags & LOOKUP_FOLLOW)) {
return 1;
}
mntget(path->mnt);
follow_mount(path);
/* ... | static int mountpoint_last(struct nameidata *nd, struct path *path) {
path->dentry = dentry;
- path->mnt = mntget(nd->path.mnt);
+ path->mnt = nd->path.mnt;
if (should_follow_link(dentry->d_inode, nd->flags & LOOKUP_FOLLOW)) {
return 1;
}
+ mntget(path->mnt);
follow_mount(path);
... |
CVE-2014-5077 | 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.i = new->peer.i;
sctp_tsnmap_init(&... | 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.i = new->peer.i;
sctp_tsnmap_init(&... | 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) {
asoc->peer.sack_needed = new->peer.sack_needed;
asoc->peer.i = new->peer.i;
}
| void sctp_assoc_update(struct sctp_association *asoc, struct sctp_association *new) {
asoc->peer.sack_needed = new->peer.sack_needed;
asoc->peer.auth_capable = new->peer.auth_capable;
asoc->peer.i = new->peer.i;
}
| void sctp_assoc_update(struct sctp_association *asoc, struct sctp_association *new) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
asoc->peer.sack_needed = new->peer.sack_needed;
asoc->peer.i = new->peer.i;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
}
| void sctp_assoc_update(struct sctp_association *asoc, struct sctp_association *new) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
asoc->peer.sack_needed = new->peer.sack_needed;
asoc->peer.auth_capable = new->peer.auth_capable;
asoc->peer.i = new->peer.i;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT... | void sctp_assoc_update(struct sctp_association *asoc, struct sctp_association *new) {
asoc->peer.sack_needed = new->peer.sack_needed;
+ asoc->peer.auth_capable = new->peer.auth_capable;
asoc->peer.i = new->peer.i;
} |
CVE-2014-5206 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | fs/namespace.c | do_remount | static int do_remount(struct path *path, int flags, int mnt_flags, void *data) {
int err;
struct super_block *sb = path->mnt->mnt_sb;
struct mount *mnt = real_mount(path->mnt);
if (!check_mnt(mnt)) {
return -EVAL;
}
if (path->dentry != path->mnt->mnt_root) {
return -EVAL;
}
... | static int do_remount(struct path *path, int flags, int mnt_flags, void *data) {
int err;
struct super_block *sb = path->mnt->mnt_sb;
struct mount *mnt = real_mount(path->mnt);
if (!check_mnt(mnt)) {
return -EVAL;
}
if (path->dentry != path->mnt->mnt_root) {
return -EVAL;
}
... | static int do_remount(struct path *path, int flags, int mnt_flags, void *data) {
int err;
struct super_block *sb = path->mnt->mnt_sb;
struct mount *mnt = real_mount(path->mnt);
if (!check_mnt(mnt)) {
return -EVAL;
}
if (path->dentry != path->mnt->mnt_root) {
return -EVAL;
}
... | static int do_remount(struct path *path, int flags, int mnt_flags, void *data) {
int err;
struct super_block *sb = path->mnt->mnt_sb;
struct mount *mnt = real_mount(path->mnt);
if (!check_mnt(mnt)) {
return -EVAL;
}
if (path->dentry != path->mnt->mnt_root) {
return -EVAL;
}
... | static int do_remount(struct path *path, int flags, int mnt_flags, void *data) {
if (!err) {
br_write_lock(&vfsmount_lock);
mnt_flags |= mnt->mnt.mnt_flags & MNT_PROPAGATION_MASK;
mnt->mnt.mnt_flags = mnt_flags;
}
}
| static int do_remount(struct path *path, int flags, int mnt_flags, void *data) {
if (!err) {
br_write_lock(&vfsmount_lock);
mnt_flags |= mnt->mnt.mnt_flags & ~MNT_USER_SETTABLE_MASK;
mnt->mnt.mnt_flags = mnt_flags;
}
}
| static int do_remount(struct path *path, int flags, int mnt_flags, void *data) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (!err) {
lock_mount_hash();
mnt_flags |= mnt->mnt.mnt_flags & MNT_PROPAGATION_MASK;
mnt->mnt.mnt_flags = mnt_flags;
/* PLACEHOLDER: DO NOT DELETE THIS COM... | static int do_remount(struct path *path, int flags, int mnt_flags, void *data) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (!err) {
lock_mount_hash();
mnt_flags |= mnt->mnt.mnt_flags & ~MNT_USER_SETTABLE_MASK;
mnt->mnt.mnt_flags = mnt_flags;
/* PLACEHOLDER: DO NOT DELETE THIS ... | static int do_remount(struct path *path, int flags, int mnt_flags, void *data) {
if (!err) {
br_write_lock(&vfsmount_lock);
- mnt_flags |= mnt->mnt.mnt_flags & MNT_PROPAGATION_MASK;
+ mnt_flags |= mnt->mnt.mnt_flags & ~MNT_USER_SETTABLE_MASK;
mnt->mnt.mnt_flags = mnt_flags;
}
... |
CVE-2014-5207 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | fs/namespace.c | clone_mnt | static struct mount *clone_mnt(struct mount *old, struct dentry *root, int flag) {
struct super_block *sb = old->mnt.mnt_sb;
struct mount *mnt;
int err;
mnt = alloc_vfsmnt(old->mnt_devname);
if (!mnt) {
return ERR_PTR(-ENOMEM);
}
if (flag & (CL_SLAVE | CL_PRIVATE | CL_SHARED_TO_SLAVE... | static struct mount *clone_mnt(struct mount *old, struct dentry *root, int flag) {
struct super_block *sb = old->mnt.mnt_sb;
struct mount *mnt;
int err;
mnt = alloc_vfsmnt(old->mnt_devname);
if (!mnt) {
return ERR_PTR(-ENOMEM);
}
if (flag & (CL_SLAVE | CL_PRIVATE | CL_SHARED_TO_SLAVE... | static struct mount *clone_mnt(struct mount *old, struct dentry *root, int flag) {
struct super_block *sb = old->mnt.mnt_sb;
struct mount *mnt;
int err;
mnt = alloc_vfsmnt(old->mnt_devname);
if (!mnt) {
return ERR_PTR(-ENOMEM);
}
if (flag & (CL_SLAVE | CL_PRIVATE | CL_SHARED_TO_SLAVE... | static struct mount *clone_mnt(struct mount *old, struct dentry *root, int flag) {
struct super_block *sb = old->mnt.mnt_sb;
struct mount *mnt;
int err;
mnt = alloc_vfsmnt(old->mnt_devname);
if (!mnt) {
return ERR_PTR(-ENOMEM);
}
if (flag & (CL_SLAVE | CL_PRIVATE | CL_SHARED_TO_SLAVE... | static struct mount *clone_mnt(struct mount *old, struct dentry *root, int flag) {
mnt = alloc_vfsmnt(old->mnt_devname);
if (!mnt) {
return ERR_PTR(-ENOMEM);
}
if (flag & (CL_SLAVE | CL_PRIVATE | CL_SHARED_TO_SLAVE)) {
mnt->mnt_group_id = 0;
} else {
mnt->mnt_group_id = old->... | static struct mount *clone_mnt(struct mount *old, struct dentry *root, int flag) {
mnt = alloc_vfsmnt(old->mnt_devname);
if (!mnt) {
return ERR_PTR(-ENOMEM);
}
if (flag & (CL_SLAVE | CL_PRIVATE | CL_SHARED_TO_SLAVE)) {
mnt->mnt_group_id = 0;
} else {
mnt->mnt_group_id = old->... | static struct mount *clone_mnt(struct mount *old, struct dentry *root, int flag) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
mnt = alloc_vfsmnt(old->mnt_devname);
if (!mnt) {
return ERR_PTR(-ENOMEM);
}
if (flag & (CL_SLAVE | CL_PRIVATE | CL_SHARED_TO_SLAVE)) {
mnt->mnt_group_id =... | static struct mount *clone_mnt(struct mount *old, struct dentry *root, int flag) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
mnt = alloc_vfsmnt(old->mnt_devname);
if (!mnt) {
return ERR_PTR(-ENOMEM);
}
if (flag & (CL_SLAVE | CL_PRIVATE | CL_SHARED_TO_SLAVE)) {
mnt->mnt_group_id =... | static struct mount *clone_mnt(struct mount *old, struct dentry *root, int flag) {
mnt = alloc_vfsmnt(old->mnt_devname);
if (!mnt) {
return ERR_PTR(-ENOMEM);
}
if (flag & (CL_SLAVE | CL_PRIVATE | CL_SHARED_TO_SLAVE)) {
mnt->mnt_group_id = 0;
} else {
mnt->mnt_group_i... |
CVE-2014-5207 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | fs/namespace.c | do_new_mount | static int do_new_mount(struct path *path, const char *fstype, int flags, int mnt_flags, const char *name, void *data) {
struct file_system_type *type;
struct user_namespace *user_ns = current->nsproxy->mnt_ns->user_ns;
struct vfsmount *mnt;
int err;
if (!fstype) {
return -EVAL;
}
ty... | static int do_new_mount(struct path *path, const char *fstype, int flags, int mnt_flags, const char *name, void *data) {
struct file_system_type *type;
struct user_namespace *user_ns = current->nsproxy->mnt_ns->user_ns;
struct vfsmount *mnt;
int err;
if (!fstype) {
return -EVAL;
}
ty... | static int do_new_mount(struct path *path, const char *fstype, int flags, int mnt_flags, const char *name, void *data) {
struct file_system_type *type;
struct user_namespace *user_ns = current->nsproxy->mnt_ns->user_ns;
struct vfsmount *mnt;
int err;
if (!fstype) {
return -EVAL;
}
ty... | static int do_new_mount(struct path *path, const char *fstype, int flags, int mnt_flags, const char *name, void *data) {
struct file_system_type *type;
struct user_namespace *user_ns = current->nsproxy->mnt_ns->user_ns;
struct vfsmount *mnt;
int err;
if (!fstype) {
return -EVAL;
}
ty... | static int do_new_mount(struct path *path, const char *fstype, int flags, int mnt_flags, const char *name, void *data) {
if (user_ns != &init_user_ns) {
if (!(type->fs_flags & FS_USERNS_DEV_MOUNT)) {
flags |= MS_NODEV;
mnt_flags |= MNT_NODEV;
}
}
mnt = vfs_kern_mount(... | static int do_new_mount(struct path *path, const char *fstype, int flags, int mnt_flags, const char *name, void *data) {
if (user_ns != &init_user_ns) {
if (!(type->fs_flags & FS_USERNS_DEV_MOUNT)) {
flags |= MS_NODEV;
mnt_flags |= MNT_NODEV | MNT_LOCK_NODEV;
}
}
mnt ... | static int do_new_mount(struct path *path, const char *fstype, int flags, int mnt_flags, const char *name, void *data) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (user_ns != &init_user_ns) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (!(type->fs_flags & FS_USERNS_DEV_MOUNT)) {
... | static int do_new_mount(struct path *path, const char *fstype, int flags, int mnt_flags, const char *name, void *data) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (user_ns != &init_user_ns) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (!(type->fs_flags & FS_USERNS_DEV_MOUNT)) {
... | static int do_new_mount(struct path *path, const char *fstype, int flags, int mnt_flags, const char *name, void *data) {
if (user_ns != &init_user_ns) {
if (!(type->fs_flags & FS_USERNS_DEV_MOUNT)) {
flags |= MS_NODEV;
- mnt_flags |= MNT_NODEV;
+ mnt_flags |= MNT_NODEV ... |
CVE-2014-5207 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | fs/namespace.c | do_remount | static int do_remount(struct path *path, int flags, int mnt_flags, void *data) {
int err;
struct super_block *sb = path->mnt->mnt_sb;
struct mount *mnt = real_mount(path->mnt);
if (!check_mnt(mnt)) {
return -EVAL;
}
if (path->dentry != path->mnt->mnt_root) {
return -EVAL;
}
... | static int do_remount(struct path *path, int flags, int mnt_flags, void *data) {
int err;
struct super_block *sb = path->mnt->mnt_sb;
struct mount *mnt = real_mount(path->mnt);
if (!check_mnt(mnt)) {
return -EVAL;
}
if (path->dentry != path->mnt->mnt_root) {
return -EVAL;
}
... | static int do_remount(struct path *path, int flags, int mnt_flags, void *data) {
int err;
struct super_block *sb = path->mnt->mnt_sb;
struct mount *mnt = real_mount(path->mnt);
if (!check_mnt(mnt)) {
return -EVAL;
}
if (path->dentry != path->mnt->mnt_root) {
return -EVAL;
}
... | static int do_remount(struct path *path, int flags, int mnt_flags, void *data) {
int err;
struct super_block *sb = path->mnt->mnt_sb;
struct mount *mnt = real_mount(path->mnt);
if (!check_mnt(mnt)) {
return -EVAL;
}
if (path->dentry != path->mnt->mnt_root) {
return -EVAL;
}
... | static int do_remount(struct path *path, int flags, int mnt_flags, void *data) {
if ((mnt->mnt.mnt_flags & MNT_LOCK_READONLY) && !(mnt_flags & MNT_READONLY)) {
return -EPERM;
}
err = security_sb_remount(sb, data);
if (!err) {
mnt_flags |= mnt->mnt.mnt_flags & ~MNT_USER_SETTABLE_MASK;
... | static int do_remount(struct path *path, int flags, int mnt_flags, void *data) {
if ((mnt->mnt.mnt_flags & MNT_LOCK_READONLY) && !(mnt_flags & MNT_READONLY)) {
return -EPERM;
}
if ((mnt->mnt.mnt_flags & MNT_LOCK_NODEV) && !(mnt_flags & MNT_NODEV)) {
return -EPERM;
}
if ((mnt->mnt.mnt... | static int do_remount(struct path *path, int flags, int mnt_flags, void *data) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if ((mnt->mnt.mnt_flags & MNT_LOCK_READONLY) && !(mnt_flags & MNT_READONLY)) {
return -EPERM;
}
err = security_sb_remount(sb, data);
/* PLACEHOLDER: DO NOT DELETE TH... | static int do_remount(struct path *path, int flags, int mnt_flags, void *data) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if ((mnt->mnt.mnt_flags & MNT_LOCK_READONLY) && !(mnt_flags & MNT_READONLY)) {
return -EPERM;
}
if ((mnt->mnt.mnt_flags & MNT_LOCK_NODEV) && !(mnt_flags & MNT_NODEV)) {
... | static int do_remount(struct path *path, int flags, int mnt_flags, void *data) {
if ((mnt->mnt.mnt_flags & MNT_LOCK_READONLY) && !(mnt_flags & MNT_READONLY)) {
+ return -EPERM;
+ }
+ if ((mnt->mnt.mnt_flags & MNT_LOCK_NODEV) && !(mnt_flags & MNT_NODEV)) {
+ return -EPERM;
+ }
+ if ((mnt-... |
CVE-2014-5471 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | fs/isofs/inode.c | isofs_read_inode | static int isofs_read_inode(struct inode *inode) {
struct super_block *sb = inode->i_sb;
struct isofs_sb_info *sbi = ISOFS_SB(sb);
unsigned long bufsize = ISOFS_BUFFER_SIZE(inode);
unsigned long block;
int high_sierra = sbi->s_high_sierra;
struct buffer_head *bh = NULL;
struct iso_directory_... | static int isofs_read_inode(struct inode *inode, int relocated) {
struct super_block *sb = inode->i_sb;
struct isofs_sb_info *sbi = ISOFS_SB(sb);
unsigned long bufsize = ISOFS_BUFFER_SIZE(inode);
unsigned long block;
int high_sierra = sbi->s_high_sierra;
struct buffer_head *bh = NULL;
struct... | static int isofs_read_inode(struct inode *inode) {
struct super_block *sb = inode->i_sb;
struct isofs_sb_info *sbi = ISOFS_SB(sb);
unsigned long bufsize = ISOFS_BUFFER_SIZE(inode);
unsigned long block;
int high_sierra = sbi->s_high_sierra;
struct buffer_head *bh = NULL;
struct iso_directory_... | static int isofs_read_inode(struct inode *inode, int relocated) {
struct super_block *sb = inode->i_sb;
struct isofs_sb_info *sbi = ISOFS_SB(sb);
unsigned long bufsize = ISOFS_BUFFER_SIZE(inode);
unsigned long block;
int high_sierra = sbi->s_high_sierra;
struct buffer_head *bh = NULL;
struct... | static int isofs_read_inode(struct inode *inode) {
unsigned long bufsize = ISOFS_BUFFER_SIZE(inode);
struct iso_inode_info *ei = ISOFS_I(inode);
block = ei->i_iget5_block;
bh = sb_bread(inode->i_sb, block);
if (!bh) {
goto out_badread;
}
offset = ei->i_iget5_offset;
de = (struct ... | static int isofs_read_inode(struct inode *inode, int relocated) {
unsigned long bufsize = ISOFS_BUFFER_SIZE(inode);
struct iso_inode_info *ei = ISOFS_I(inode);
block = ei->i_iget5_block;
bh = sb_bread(inode->i_sb, block);
if (!bh) {
goto out_badread;
}
offset = ei->i_iget5_offset;
... | static int isofs_read_inode(struct inode *inode) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
unsigned long bufsize = ISOFS_BUFFER_SIZE(inode);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
struct iso_inode_info *ei = ISOFS_I(inode);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
block = ei->i... | static int isofs_read_inode(struct inode *inode, int relocated) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
unsigned long bufsize = ISOFS_BUFFER_SIZE(inode);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
struct iso_inode_info *ei = ISOFS_I(inode);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
... | -static int isofs_read_inode(struct inode *inode) {
+static int isofs_read_inode(struct inode *inode, int relocated) {
unsigned long bufsize = ISOFS_BUFFER_SIZE(inode);
struct iso_inode_info *ei = ISOFS_I(inode);
block = ei->i_iget5_block;
bh = sb_bread(inode->i_sb, block);
if (!bh) {
... |
CVE-2014-5471 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | fs/isofs/rock.c | parse_rock_ridge_inode | int parse_rock_ridge_inode(struct iso_directory_record *de, struct inode *inode) {
int result = parse_rock_ridge_inode_internal(de, inode, 0);
if ((ISOFS_SB(inode->i_sb)->s_rock_offset == -1) && (ISOFS_SB(inode->i_sb)->s_rock == 2)) {
result = parse_rock_ridge_inode_internal(de, inode, 14);
}
re... | int parse_rock_ridge_inode(struct iso_directory_record *de, struct inode *inode, int relocated) {
int flags = relocated ? RR_RELOC_DE : 0;
int result = parse_rock_ridge_inode_internal(de, inode, flags);
if ((ISOFS_SB(inode->i_sb)->s_rock_offset == -1) && (ISOFS_SB(inode->i_sb)->s_rock == 2)) {
resul... | int parse_rock_ridge_inode(struct iso_directory_record *de, struct inode *inode) {
int result = parse_rock_ridge_inode_internal(de, inode, 0);
if ((ISOFS_SB(inode->i_sb)->s_rock_offset == -1) && (ISOFS_SB(inode->i_sb)->s_rock == 2)) {
result = parse_rock_ridge_inode_internal(de, inode, 14);
}
re... | int parse_rock_ridge_inode(struct iso_directory_record *de, struct inode *inode, int relocated) {
int flags = relocated ? RR_RELOC_DE : 0;
int result = parse_rock_ridge_inode_internal(de, inode, flags);
if ((ISOFS_SB(inode->i_sb)->s_rock_offset == -1) && (ISOFS_SB(inode->i_sb)->s_rock == 2)) {
resul... | int parse_rock_ridge_inode(struct iso_directory_record *de, struct inode *inode) {
int result = parse_rock_ridge_inode_internal(de, inode, 0);
if ((ISOFS_SB(inode->i_sb)->s_rock_offset == -1) && (ISOFS_SB(inode->i_sb)->s_rock == 2)) {
result = parse_rock_ridge_inode_internal(de, inode, 14);
}
re... | int parse_rock_ridge_inode(struct iso_directory_record *de, struct inode *inode, int relocated) {
int flags = relocated ? RR_RELOC_DE : 0;
int result = parse_rock_ridge_inode_internal(de, inode, flags);
if ((ISOFS_SB(inode->i_sb)->s_rock_offset == -1) && (ISOFS_SB(inode->i_sb)->s_rock == 2)) {
resul... | int parse_rock_ridge_inode(struct iso_directory_record *de, struct inode *inode) {
int result = parse_rock_ridge_inode_internal(de, inode, 0);
if ((ISOFS_SB(inode->i_sb)->s_rock_offset == -1) && (ISOFS_SB(inode->i_sb)->s_rock == 2)) {
result = parse_rock_ridge_inode_internal(de, inode, 14);
}
re... | int parse_rock_ridge_inode(struct iso_directory_record *de, struct inode *inode, int relocated) {
int flags = relocated ? RR_RELOC_DE : 0;
int result = parse_rock_ridge_inode_internal(de, inode, flags);
if ((ISOFS_SB(inode->i_sb)->s_rock_offset == -1) && (ISOFS_SB(inode->i_sb)->s_rock == 2)) {
resul... | -int parse_rock_ridge_inode(struct iso_directory_record *de, struct inode *inode) {
- int result = parse_rock_ridge_inode_internal(de, inode, 0);
+int parse_rock_ridge_inode(struct iso_directory_record *de, struct inode *inode, int relocated) {
+ int flags = relocated ? RR_RELOC_DE : 0;
+ int result = parse_ro... |
CVE-2014-5471 | 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 regard_xa) {
int symlink_len = 0;
int cnt, sig;
struct inode *reloc;
struct rock_ridge *rr;
int rootflag;
struct rock_state rs;
int ret = 0;
if (!ISOFS_SB(inode->i_sb)->s_rock) {
... | 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 regard_xa) {
int symlink_len = 0;
int cnt, sig;
struct inode *reloc;
struct rock_ridge *rr;
int rootflag;
struct rock_state rs;
int ret = 0;
if (!ISOFS_SB(inode->i_sb)->s_rock) {
... | 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 regard_xa) {
int cnt, sig;
struct inode *reloc;
if (!ISOFS_SB(inode->i_sb)->s_rock) {
return 0;
}
init_rock_state(&rs, inode);
setup_rock_ridge(de, inode, &rs);
if (regard_xa) {
... | static int parse_rock_ridge_inode_internal(struct iso_directory_record *de, struct inode *inode, int flags) {
int cnt, sig;
unsigned int reloc_block;
struct inode *reloc;
if (!ISOFS_SB(inode->i_sb)->s_rock) {
return 0;
}
init_rock_state(&rs, inode);
setup_rock_ridge(de, inode, &rs);
... | static int parse_rock_ridge_inode_internal(struct iso_directory_record *de, struct inode *inode, int regard_xa) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int cnt, sig;
struct inode *reloc;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (!ISOFS_SB(inode->i_sb)->s_rock) {
return 0;
... | static int parse_rock_ridge_inode_internal(struct iso_directory_record *de, struct inode *inode, int flags) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int cnt, sig;
unsigned int reloc_block;
struct inode *reloc;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (!ISOFS_SB(inode->i_sb)->s_roc... | -static int parse_rock_ridge_inode_internal(struct iso_directory_record *de, struct inode *inode, int regard_xa) {
+static int parse_rock_ridge_inode_internal(struct iso_directory_record *de, struct inode *inode, int flags) {
int cnt, sig;
+ unsigned int reloc_block;
struct inode *reloc;
if (!ISOFS_SB... |
CVE-2014-5472 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | fs/isofs/inode.c | isofs_read_inode | static int isofs_read_inode(struct inode *inode) {
struct super_block *sb = inode->i_sb;
struct isofs_sb_info *sbi = ISOFS_SB(sb);
unsigned long bufsize = ISOFS_BUFFER_SIZE(inode);
unsigned long block;
int high_sierra = sbi->s_high_sierra;
struct buffer_head *bh = NULL;
struct iso_directory_... | static int isofs_read_inode(struct inode *inode, int relocated) {
struct super_block *sb = inode->i_sb;
struct isofs_sb_info *sbi = ISOFS_SB(sb);
unsigned long bufsize = ISOFS_BUFFER_SIZE(inode);
unsigned long block;
int high_sierra = sbi->s_high_sierra;
struct buffer_head *bh = NULL;
struct... | static int isofs_read_inode(struct inode *inode) {
struct super_block *sb = inode->i_sb;
struct isofs_sb_info *sbi = ISOFS_SB(sb);
unsigned long bufsize = ISOFS_BUFFER_SIZE(inode);
unsigned long block;
int high_sierra = sbi->s_high_sierra;
struct buffer_head *bh = NULL;
struct iso_directory_... | static int isofs_read_inode(struct inode *inode, int relocated) {
struct super_block *sb = inode->i_sb;
struct isofs_sb_info *sbi = ISOFS_SB(sb);
unsigned long bufsize = ISOFS_BUFFER_SIZE(inode);
unsigned long block;
int high_sierra = sbi->s_high_sierra;
struct buffer_head *bh = NULL;
struct... | static int isofs_read_inode(struct inode *inode) {
unsigned long bufsize = ISOFS_BUFFER_SIZE(inode);
struct iso_inode_info *ei = ISOFS_I(inode);
block = ei->i_iget5_block;
bh = sb_bread(inode->i_sb, block);
if (!bh) {
goto out_badread;
}
offset = ei->i_iget5_offset;
de = (struct ... | static int isofs_read_inode(struct inode *inode, int relocated) {
unsigned long bufsize = ISOFS_BUFFER_SIZE(inode);
struct iso_inode_info *ei = ISOFS_I(inode);
block = ei->i_iget5_block;
bh = sb_bread(inode->i_sb, block);
if (!bh) {
goto out_badread;
}
offset = ei->i_iget5_offset;
... | static int isofs_read_inode(struct inode *inode) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
unsigned long bufsize = ISOFS_BUFFER_SIZE(inode);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
struct iso_inode_info *ei = ISOFS_I(inode);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
block = ei->i... | static int isofs_read_inode(struct inode *inode, int relocated) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
unsigned long bufsize = ISOFS_BUFFER_SIZE(inode);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
struct iso_inode_info *ei = ISOFS_I(inode);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
... | -static int isofs_read_inode(struct inode *inode) {
+static int isofs_read_inode(struct inode *inode, int relocated) {
unsigned long bufsize = ISOFS_BUFFER_SIZE(inode);
struct iso_inode_info *ei = ISOFS_I(inode);
block = ei->i_iget5_block;
bh = sb_bread(inode->i_sb, block);
if (!bh) {
... |
CVE-2014-5472 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | fs/isofs/rock.c | parse_rock_ridge_inode | int parse_rock_ridge_inode(struct iso_directory_record *de, struct inode *inode) {
int result = parse_rock_ridge_inode_internal(de, inode, 0);
if ((ISOFS_SB(inode->i_sb)->s_rock_offset == -1) && (ISOFS_SB(inode->i_sb)->s_rock == 2)) {
result = parse_rock_ridge_inode_internal(de, inode, 14);
}
re... | int parse_rock_ridge_inode(struct iso_directory_record *de, struct inode *inode, int relocated) {
int flags = relocated ? RR_RELOC_DE : 0;
int result = parse_rock_ridge_inode_internal(de, inode, flags);
if ((ISOFS_SB(inode->i_sb)->s_rock_offset == -1) && (ISOFS_SB(inode->i_sb)->s_rock == 2)) {
resul... | int parse_rock_ridge_inode(struct iso_directory_record *de, struct inode *inode) {
int result = parse_rock_ridge_inode_internal(de, inode, 0);
if ((ISOFS_SB(inode->i_sb)->s_rock_offset == -1) && (ISOFS_SB(inode->i_sb)->s_rock == 2)) {
result = parse_rock_ridge_inode_internal(de, inode, 14);
}
re... | int parse_rock_ridge_inode(struct iso_directory_record *de, struct inode *inode, int relocated) {
int flags = relocated ? RR_RELOC_DE : 0;
int result = parse_rock_ridge_inode_internal(de, inode, flags);
if ((ISOFS_SB(inode->i_sb)->s_rock_offset == -1) && (ISOFS_SB(inode->i_sb)->s_rock == 2)) {
resul... | int parse_rock_ridge_inode(struct iso_directory_record *de, struct inode *inode) {
int result = parse_rock_ridge_inode_internal(de, inode, 0);
if ((ISOFS_SB(inode->i_sb)->s_rock_offset == -1) && (ISOFS_SB(inode->i_sb)->s_rock == 2)) {
result = parse_rock_ridge_inode_internal(de, inode, 14);
}
re... | int parse_rock_ridge_inode(struct iso_directory_record *de, struct inode *inode, int relocated) {
int flags = relocated ? RR_RELOC_DE : 0;
int result = parse_rock_ridge_inode_internal(de, inode, flags);
if ((ISOFS_SB(inode->i_sb)->s_rock_offset == -1) && (ISOFS_SB(inode->i_sb)->s_rock == 2)) {
resul... | int parse_rock_ridge_inode(struct iso_directory_record *de, struct inode *inode) {
int result = parse_rock_ridge_inode_internal(de, inode, 0);
if ((ISOFS_SB(inode->i_sb)->s_rock_offset == -1) && (ISOFS_SB(inode->i_sb)->s_rock == 2)) {
result = parse_rock_ridge_inode_internal(de, inode, 14);
}
re... | int parse_rock_ridge_inode(struct iso_directory_record *de, struct inode *inode, int relocated) {
int flags = relocated ? RR_RELOC_DE : 0;
int result = parse_rock_ridge_inode_internal(de, inode, flags);
if ((ISOFS_SB(inode->i_sb)->s_rock_offset == -1) && (ISOFS_SB(inode->i_sb)->s_rock == 2)) {
resul... | -int parse_rock_ridge_inode(struct iso_directory_record *de, struct inode *inode) {
- int result = parse_rock_ridge_inode_internal(de, inode, 0);
+int parse_rock_ridge_inode(struct iso_directory_record *de, struct inode *inode, int relocated) {
+ int flags = relocated ? RR_RELOC_DE : 0;
+ int result = parse_ro... |
CVE-2014-5472 | 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 regard_xa) {
int symlink_len = 0;
int cnt, sig;
struct inode *reloc;
struct rock_ridge *rr;
int rootflag;
struct rock_state rs;
int ret = 0;
if (!ISOFS_SB(inode->i_sb)->s_rock) {
... | 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 regard_xa) {
int symlink_len = 0;
int cnt, sig;
struct inode *reloc;
struct rock_ridge *rr;
int rootflag;
struct rock_state rs;
int ret = 0;
if (!ISOFS_SB(inode->i_sb)->s_rock) {
... | 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 regard_xa) {
int cnt, sig;
struct inode *reloc;
if (!ISOFS_SB(inode->i_sb)->s_rock) {
return 0;
}
init_rock_state(&rs, inode);
setup_rock_ridge(de, inode, &rs);
if (regard_xa) {
... | static int parse_rock_ridge_inode_internal(struct iso_directory_record *de, struct inode *inode, int flags) {
int cnt, sig;
unsigned int reloc_block;
struct inode *reloc;
if (!ISOFS_SB(inode->i_sb)->s_rock) {
return 0;
}
init_rock_state(&rs, inode);
setup_rock_ridge(de, inode, &rs);
... | static int parse_rock_ridge_inode_internal(struct iso_directory_record *de, struct inode *inode, int regard_xa) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int cnt, sig;
struct inode *reloc;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (!ISOFS_SB(inode->i_sb)->s_rock) {
return 0;
... | static int parse_rock_ridge_inode_internal(struct iso_directory_record *de, struct inode *inode, int flags) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int cnt, sig;
unsigned int reloc_block;
struct inode *reloc;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (!ISOFS_SB(inode->i_sb)->s_roc... | -static int parse_rock_ridge_inode_internal(struct iso_directory_record *de, struct inode *inode, int regard_xa) {
+static int parse_rock_ridge_inode_internal(struct iso_directory_record *de, struct inode *inode, int flags) {
int cnt, sig;
+ unsigned int reloc_block;
struct inode *reloc;
if (!ISOFS_SB... |
CVE-2014-6410 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | fs/udf/inode.c | __udf_read_inode | static void __udf_read_inode(struct inode *inode) {
struct buffer_head *bh = NULL;
struct fileEntry *fe;
uint16_t ident;
struct udf_inode_info *iinfo = UDF_I(inode);
bh = udf_read_ptagged(inode->i_sb, &iinfo->i_location, 0, &ident);
if (!bh) {
udf_err(inode->i_sb, "(ino %ld) failed !bh\n... | static void __udf_read_inode(struct inode *inode) {
struct buffer_head *bh = NULL;
struct fileEntry *fe;
uint16_t ident;
struct udf_inode_info *iinfo = UDF_I(inode);
unsigned int indirections = 0;
reread:
bh = udf_read_ptagged(inode->i_sb, &iinfo->i_location, 0, &ident);
if (!bh) {
u... | static void __udf_read_inode(struct inode *inode) {
struct buffer_head *bh = NULL;
struct fileEntry *fe;
uint16_t ident;
struct udf_inode_info *iinfo = UDF_I(inode);
bh = udf_read_ptagged(inode->i_sb, &iinfo->i_location, 0, &ident);
if (!bh) {
udf_err(inode->i_sb, "(ino %ld) failed !bh\n... | static void __udf_read_inode(struct inode *inode) {
struct buffer_head *bh = NULL;
struct fileEntry *fe;
uint16_t ident;
struct udf_inode_info *iinfo = UDF_I(inode);
unsigned int indirections = 0;
reread:
bh = udf_read_ptagged(inode->i_sb, &iinfo->i_location, 0, &ident);
if (!bh) {
u... | static void __udf_read_inode(struct inode *inode) {
struct udf_inode_info *iinfo = UDF_I(inode);
bh = udf_read_ptagged(inode->i_sb, &iinfo->i_location, 0, &ident);
if (ident != TAG_IDENT_FE && ident != TAG_IDENT_EFE && ident != TAG_IDENT_USE) {
return;
}
if (fe->icbTag.strategyType == cpu_to... | static void __udf_read_inode(struct inode *inode) {
struct udf_inode_info *iinfo = UDF_I(inode);
unsigned int indirections = 0;
reread:
bh = udf_read_ptagged(inode->i_sb, &iinfo->i_location, 0, &ident);
if (ident != TAG_IDENT_FE && ident != TAG_IDENT_EFE && ident != TAG_IDENT_USE) {
return;
... | static void __udf_read_inode(struct inode *inode) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
struct udf_inode_info *iinfo = UDF_I(inode);
bh = udf_read_ptagged(inode->i_sb, &iinfo->i_location, 0, &ident);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (ident != TAG_IDENT_FE && ident != TAG_ID... | static void __udf_read_inode(struct inode *inode) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
struct udf_inode_info *iinfo = UDF_I(inode);
unsigned int indirections = 0;
reread:
bh = udf_read_ptagged(inode->i_sb, &iinfo->i_location, 0, &ident);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
i... | static void __udf_read_inode(struct inode *inode) {
struct udf_inode_info *iinfo = UDF_I(inode);
+ unsigned int indirections = 0;
+reread:
bh = udf_read_ptagged(inode->i_sb, &iinfo->i_location, 0, &ident);
if (ident != TAG_IDENT_FE && ident != TAG_IDENT_EFE && ident != TAG_IDENT_USE) {
retur... |
CVE-2014-6416 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | net/ceph/auth_x.c | ceph_x_decrypt | static int ceph_x_decrypt(struct ceph_crypto_key *secret, void **p, void *end, void *obuf, size_t olen) {
struct ceph_x_encrypt_header head;
size_t head_len = sizeof(head);
int len, ret;
len = ceph_decode_32(p);
if (*p + len > end) {
return -EVAL;
}
dout("ceph_x_decrypt len %d\n", le... | static int ceph_x_decrypt(struct ceph_crypto_key *secret, void **p, void *end, void **obuf, size_t olen) {
struct ceph_x_encrypt_header head;
size_t head_len = sizeof(head);
int len, ret;
len = ceph_decode_32(p);
if (*p + len > end) {
return -EVAL;
}
dout("ceph_x_decrypt len %d\n", l... | static int ceph_x_decrypt(struct ceph_crypto_key *secret, void **p, void *end, void *obuf, size_t olen) {
struct ceph_x_encrypt_header head;
size_t head_len = sizeof(head);
int len, ret;
len = ceph_decode_32(p);
if (*p + len > end) {
return -EVAL;
}
dout("ceph_x_decrypt len %d\n", le... | static int ceph_x_decrypt(struct ceph_crypto_key *secret, void **p, void *end, void **obuf, size_t olen) {
struct ceph_x_encrypt_header head;
size_t head_len = sizeof(head);
int len, ret;
len = ceph_decode_32(p);
if (*p + len > end) {
return -EVAL;
}
dout("ceph_x_decrypt len %d\n", l... | static int ceph_x_decrypt(struct ceph_crypto_key *secret, void **p, void *end, void *obuf, size_t olen) {
size_t head_len = sizeof(head);
len = ceph_decode_32(p);
dout("ceph_x_decrypt len %d\n", len);
ret = ceph_decrypt2(secret, &head, &head_len, obuf, &olen, *p, len);
if (ret) {
return ret;... | static int ceph_x_decrypt(struct ceph_crypto_key *secret, void **p, void *end, void **obuf, size_t olen) {
size_t head_len = sizeof(head);
len = ceph_decode_32(p);
dout("ceph_x_decrypt len %d\n", len);
if (*obuf == NULL) {
*obuf = kmalloc(len, GFP_NOFS);
if (!*obuf) {
return ... | static int ceph_x_decrypt(struct ceph_crypto_key *secret, void **p, void *end, void *obuf, size_t olen) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
size_t head_len = sizeof(head);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
len = ceph_decode_32(p);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */... | static int ceph_x_decrypt(struct ceph_crypto_key *secret, void **p, void *end, void **obuf, size_t olen) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
size_t head_len = sizeof(head);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
len = ceph_decode_32(p);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT *... | -static int ceph_x_decrypt(struct ceph_crypto_key *secret, void **p, void *end, void *obuf, size_t olen) {
+static int ceph_x_decrypt(struct ceph_crypto_key *secret, void **p, void *end, void **obuf, size_t olen) {
size_t head_len = sizeof(head);
len = ceph_decode_32(p);
dout("ceph_x_decrypt len %d\n", l... |
CVE-2014-6416 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | net/ceph/auth_x.c | ceph_x_proc_ticket_reply | static int ceph_x_proc_ticket_reply(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void *buf, void *end) {
void *p = buf;
char *dbuf;
char *ticket_buf;
u8 reply_struct_v;
u32 num;
int ret;
dbuf = kmalloc(TEMP_TICKET_BUF_LEN, GFP_NOFS);
if (!dbuf) {
return -ENOMEM;
... | static int ceph_x_proc_ticket_reply(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void *buf, void *end) {
void *p = buf;
u8 reply_struct_v;
u32 num;
int ret;
ceph_decode_8_safe(&p, end, reply_struct_v, bad);
if (reply_struct_v != 1) {
return -EVAL;
}
ceph_decode_32... | static int ceph_x_proc_ticket_reply(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void *buf, void *end) {
void *p = buf;
char *dbuf;
char *ticket_buf;
u8 reply_struct_v;
u32 num;
int ret;
dbuf = kmalloc(TEMP_TICKET_BUF_LEN, GFP_NOFS);
if (!dbuf) {
return -ENOMEM;
... | static int ceph_x_proc_ticket_reply(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void *buf, void *end) {
void *p = buf;
u8 reply_struct_v;
u32 num;
int ret;
ceph_decode_8_safe(&p, end, reply_struct_v, bad);
if (reply_struct_v != 1) {
return -EVAL;
}
ceph_decode_32... | static int ceph_x_proc_ticket_reply(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void *buf, void *end) {
void *p = buf;
char *dbuf;
char *ticket_buf;
u8 reply_struct_v;
int ret;
dbuf = kmalloc(TEMP_TICKET_BUF_LEN, GFP_NOFS);
if (!dbuf) {
return -ENOMEM;
}
ret ... | static int ceph_x_proc_ticket_reply(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void *buf, void *end) {
void *p = buf;
u8 reply_struct_v;
int ret;
ceph_decode_8_safe(&p, end, reply_struct_v, bad);
ceph_decode_32_safe(&p, end, num, bad);
while (num--) {
ret = process_one_... | static int ceph_x_proc_ticket_reply(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void *buf, void *end) {
void *p = buf;
char *dbuf;
char *ticket_buf;
u8 reply_struct_v;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int ret;
dbuf = kmalloc(TEMP_TICKET_BUF_LEN, GFP_NOFS);
i... | static int ceph_x_proc_ticket_reply(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void *buf, void *end) {
void *p = buf;
u8 reply_struct_v;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int ret;
ceph_decode_8_safe(&p, end, reply_struct_v, bad);
/* PLACEHOLDER: DO NOT DELETE THIS C... | static int ceph_x_proc_ticket_reply(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void *buf, void *end) {
void *p = buf;
- char *dbuf;
- char *ticket_buf;
u8 reply_struct_v;
int ret;
- dbuf = kmalloc(TEMP_TICKET_BUF_LEN, GFP_NOFS);
- if (!dbuf) {
- return -ENOMEM;
- ... |
CVE-2014-6416 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | net/ceph/auth_x.c | ceph_x_verify_authorizer_reply | static int ceph_x_verify_authorizer_reply(struct ceph_auth_client *ac, struct ceph_authorizer *a, size_t len) {
struct ceph_x_authorizer *au = (void *)a;
struct ceph_x_ticket_handler *th;
int ret = 0;
struct ceph_x_authorize_reply reply;
void *p = au->reply_buf;
void *end = p + sizeof(au->reply_... | static int ceph_x_verify_authorizer_reply(struct ceph_auth_client *ac, struct ceph_authorizer *a, size_t len) {
struct ceph_x_authorizer *au = (void *)a;
struct ceph_x_ticket_handler *th;
int ret = 0;
struct ceph_x_authorize_reply reply;
void *preply = &reply;
void *p = au->reply_buf;
void *... | static int ceph_x_verify_authorizer_reply(struct ceph_auth_client *ac, struct ceph_authorizer *a, size_t len) {
struct ceph_x_authorizer *au = (void *)a;
struct ceph_x_ticket_handler *th;
int ret = 0;
struct ceph_x_authorize_reply reply;
void *p = au->reply_buf;
void *end = p + sizeof(au->reply_... | static int ceph_x_verify_authorizer_reply(struct ceph_auth_client *ac, struct ceph_authorizer *a, size_t len) {
struct ceph_x_authorizer *au = (void *)a;
struct ceph_x_ticket_handler *th;
int ret = 0;
struct ceph_x_authorize_reply reply;
void *preply = &reply;
void *p = au->reply_buf;
void *... | static int ceph_x_verify_authorizer_reply(struct ceph_auth_client *ac, struct ceph_authorizer *a, size_t len) {
struct ceph_x_authorizer *au = (void *)a;
int ret = 0;
struct ceph_x_authorize_reply reply;
void *p = au->reply_buf;
void *end = p + sizeof(au->reply_buf);
th = get_ticket_handler(ac, ... | static int ceph_x_verify_authorizer_reply(struct ceph_auth_client *ac, struct ceph_authorizer *a, size_t len) {
struct ceph_x_authorizer *au = (void *)a;
int ret = 0;
struct ceph_x_authorize_reply reply;
void *preply = &reply;
void *p = au->reply_buf;
void *end = p + sizeof(au->reply_buf);
t... | static int ceph_x_verify_authorizer_reply(struct ceph_auth_client *ac, struct ceph_authorizer *a, size_t len) {
struct ceph_x_authorizer *au = (void *)a;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int ret = 0;
struct ceph_x_authorize_reply reply;
void *p = au->reply_buf;
void *end = p + sizeo... | static int ceph_x_verify_authorizer_reply(struct ceph_auth_client *ac, struct ceph_authorizer *a, size_t len) {
struct ceph_x_authorizer *au = (void *)a;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int ret = 0;
struct ceph_x_authorize_reply reply;
void *preply = &reply;
void *p = au->reply_buf... | static int ceph_x_verify_authorizer_reply(struct ceph_auth_client *ac, struct ceph_authorizer *a, size_t len) {
struct ceph_x_authorizer *au = (void *)a;
int ret = 0;
struct ceph_x_authorize_reply reply;
+ void *preply = &reply;
void *p = au->reply_buf;
void *end = p + sizeof(au->reply_buf)... |
CVE-2014-6416 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | net/ceph/auth_x.c | process_one_ticket | static int process_one_ticket(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void **p, void *end, void *dbuf, void *ticket_buf) {
struct ceph_x_info *xi = ac->private;
int type;
u8 tkt_struct_v, blob_struct_v;
struct ceph_x_ticket_handler *th;
void *dp, *dend;
int dlen;
char is... | static int process_one_ticket(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void **p, void *end) {
struct ceph_x_info *xi = ac->private;
int type;
u8 tkt_struct_v, blob_struct_v;
struct ceph_x_ticket_handler *th;
void *dbuf = NULL;
void *dp, *dend;
int dlen;
char is_enc;
... | static int process_one_ticket(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void **p, void *end, void *dbuf, void *ticket_buf) {
struct ceph_x_info *xi = ac->private;
int type;
u8 tkt_struct_v, blob_struct_v;
struct ceph_x_ticket_handler *th;
void *dp, *dend;
int dlen;
char is... | static int process_one_ticket(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void **p, void *end) {
struct ceph_x_info *xi = ac->private;
int type;
u8 tkt_struct_v, blob_struct_v;
struct ceph_x_ticket_handler *th;
void *dbuf = NULL;
void *dp, *dend;
int dlen;
char is_enc;
... | static int process_one_ticket(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void **p, void *end, void *dbuf, void *ticket_buf) {
struct ceph_x_info *xi = ac->private;
struct ceph_x_ticket_handler *th;
void *dp, *dend;
struct ceph_crypto_key old_key;
void *tp, *tpend;
ceph_decode_n... | static int process_one_ticket(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void **p, void *end) {
struct ceph_x_info *xi = ac->private;
struct ceph_x_ticket_handler *th;
void *dbuf = NULL;
void *dp, *dend;
struct ceph_crypto_key old_key;
void *ticket_buf = NULL;
void *tp, *tp... | static int process_one_ticket(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void **p, void *end, void *dbuf, void *ticket_buf) {
struct ceph_x_info *xi = ac->private;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
struct ceph_x_ticket_handler *th;
void *dp, *dend;
/* PLACEHOLDER: DO NO... | static int process_one_ticket(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void **p, void *end) {
struct ceph_x_info *xi = ac->private;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
struct ceph_x_ticket_handler *th;
void *dbuf = NULL;
void *dp, *dend;
/* PLACEHOLDER: DO NOT DELET... | -static int process_one_ticket(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void **p, void *end, void *dbuf, void *ticket_buf) {
+static int process_one_ticket(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void **p, void *end) {
struct ceph_x_info *xi = ac->private;
struct ceph_... |
CVE-2014-6417 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | net/ceph/auth_x.c | ceph_x_decrypt | static int ceph_x_decrypt(struct ceph_crypto_key *secret, void **p, void *end, void *obuf, size_t olen) {
struct ceph_x_encrypt_header head;
size_t head_len = sizeof(head);
int len, ret;
len = ceph_decode_32(p);
if (*p + len > end) {
return -EVAL;
}
dout("ceph_x_decrypt len %d\n", le... | static int ceph_x_decrypt(struct ceph_crypto_key *secret, void **p, void *end, void **obuf, size_t olen) {
struct ceph_x_encrypt_header head;
size_t head_len = sizeof(head);
int len, ret;
len = ceph_decode_32(p);
if (*p + len > end) {
return -EVAL;
}
dout("ceph_x_decrypt len %d\n", l... | static int ceph_x_decrypt(struct ceph_crypto_key *secret, void **p, void *end, void *obuf, size_t olen) {
struct ceph_x_encrypt_header head;
size_t head_len = sizeof(head);
int len, ret;
len = ceph_decode_32(p);
if (*p + len > end) {
return -EVAL;
}
dout("ceph_x_decrypt len %d\n", le... | static int ceph_x_decrypt(struct ceph_crypto_key *secret, void **p, void *end, void **obuf, size_t olen) {
struct ceph_x_encrypt_header head;
size_t head_len = sizeof(head);
int len, ret;
len = ceph_decode_32(p);
if (*p + len > end) {
return -EVAL;
}
dout("ceph_x_decrypt len %d\n", l... | static int ceph_x_decrypt(struct ceph_crypto_key *secret, void **p, void *end, void *obuf, size_t olen) {
size_t head_len = sizeof(head);
len = ceph_decode_32(p);
dout("ceph_x_decrypt len %d\n", len);
ret = ceph_decrypt2(secret, &head, &head_len, obuf, &olen, *p, len);
if (ret) {
return ret;... | static int ceph_x_decrypt(struct ceph_crypto_key *secret, void **p, void *end, void **obuf, size_t olen) {
size_t head_len = sizeof(head);
len = ceph_decode_32(p);
dout("ceph_x_decrypt len %d\n", len);
if (*obuf == NULL) {
*obuf = kmalloc(len, GFP_NOFS);
if (!*obuf) {
return ... | static int ceph_x_decrypt(struct ceph_crypto_key *secret, void **p, void *end, void *obuf, size_t olen) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
size_t head_len = sizeof(head);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
len = ceph_decode_32(p);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */... | static int ceph_x_decrypt(struct ceph_crypto_key *secret, void **p, void *end, void **obuf, size_t olen) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
size_t head_len = sizeof(head);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
len = ceph_decode_32(p);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT *... | -static int ceph_x_decrypt(struct ceph_crypto_key *secret, void **p, void *end, void *obuf, size_t olen) {
+static int ceph_x_decrypt(struct ceph_crypto_key *secret, void **p, void *end, void **obuf, size_t olen) {
size_t head_len = sizeof(head);
len = ceph_decode_32(p);
dout("ceph_x_decrypt len %d\n", l... |
CVE-2014-6417 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | net/ceph/auth_x.c | ceph_x_proc_ticket_reply | static int ceph_x_proc_ticket_reply(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void *buf, void *end) {
void *p = buf;
char *dbuf;
char *ticket_buf;
u8 reply_struct_v;
u32 num;
int ret;
dbuf = kmalloc(TEMP_TICKET_BUF_LEN, GFP_NOFS);
if (!dbuf) {
return -ENOMEM;
... | static int ceph_x_proc_ticket_reply(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void *buf, void *end) {
void *p = buf;
u8 reply_struct_v;
u32 num;
int ret;
ceph_decode_8_safe(&p, end, reply_struct_v, bad);
if (reply_struct_v != 1) {
return -EVAL;
}
ceph_decode_32... | static int ceph_x_proc_ticket_reply(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void *buf, void *end) {
void *p = buf;
char *dbuf;
char *ticket_buf;
u8 reply_struct_v;
u32 num;
int ret;
dbuf = kmalloc(TEMP_TICKET_BUF_LEN, GFP_NOFS);
if (!dbuf) {
return -ENOMEM;
... | static int ceph_x_proc_ticket_reply(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void *buf, void *end) {
void *p = buf;
u8 reply_struct_v;
u32 num;
int ret;
ceph_decode_8_safe(&p, end, reply_struct_v, bad);
if (reply_struct_v != 1) {
return -EVAL;
}
ceph_decode_32... | static int ceph_x_proc_ticket_reply(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void *buf, void *end) {
void *p = buf;
char *dbuf;
char *ticket_buf;
u8 reply_struct_v;
int ret;
dbuf = kmalloc(TEMP_TICKET_BUF_LEN, GFP_NOFS);
if (!dbuf) {
return -ENOMEM;
}
ret ... | static int ceph_x_proc_ticket_reply(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void *buf, void *end) {
void *p = buf;
u8 reply_struct_v;
int ret;
ceph_decode_8_safe(&p, end, reply_struct_v, bad);
ceph_decode_32_safe(&p, end, num, bad);
while (num--) {
ret = process_one_... | static int ceph_x_proc_ticket_reply(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void *buf, void *end) {
void *p = buf;
char *dbuf;
char *ticket_buf;
u8 reply_struct_v;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int ret;
dbuf = kmalloc(TEMP_TICKET_BUF_LEN, GFP_NOFS);
i... | static int ceph_x_proc_ticket_reply(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void *buf, void *end) {
void *p = buf;
u8 reply_struct_v;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int ret;
ceph_decode_8_safe(&p, end, reply_struct_v, bad);
/* PLACEHOLDER: DO NOT DELETE THIS C... | static int ceph_x_proc_ticket_reply(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void *buf, void *end) {
void *p = buf;
- char *dbuf;
- char *ticket_buf;
u8 reply_struct_v;
int ret;
- dbuf = kmalloc(TEMP_TICKET_BUF_LEN, GFP_NOFS);
- if (!dbuf) {
- return -ENOMEM;
- ... |
CVE-2014-6417 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | net/ceph/auth_x.c | ceph_x_verify_authorizer_reply | static int ceph_x_verify_authorizer_reply(struct ceph_auth_client *ac, struct ceph_authorizer *a, size_t len) {
struct ceph_x_authorizer *au = (void *)a;
struct ceph_x_ticket_handler *th;
int ret = 0;
struct ceph_x_authorize_reply reply;
void *p = au->reply_buf;
void *end = p + sizeof(au->reply_... | static int ceph_x_verify_authorizer_reply(struct ceph_auth_client *ac, struct ceph_authorizer *a, size_t len) {
struct ceph_x_authorizer *au = (void *)a;
struct ceph_x_ticket_handler *th;
int ret = 0;
struct ceph_x_authorize_reply reply;
void *preply = &reply;
void *p = au->reply_buf;
void *... | static int ceph_x_verify_authorizer_reply(struct ceph_auth_client *ac, struct ceph_authorizer *a, size_t len) {
struct ceph_x_authorizer *au = (void *)a;
struct ceph_x_ticket_handler *th;
int ret = 0;
struct ceph_x_authorize_reply reply;
void *p = au->reply_buf;
void *end = p + sizeof(au->reply_... | static int ceph_x_verify_authorizer_reply(struct ceph_auth_client *ac, struct ceph_authorizer *a, size_t len) {
struct ceph_x_authorizer *au = (void *)a;
struct ceph_x_ticket_handler *th;
int ret = 0;
struct ceph_x_authorize_reply reply;
void *preply = &reply;
void *p = au->reply_buf;
void *... | static int ceph_x_verify_authorizer_reply(struct ceph_auth_client *ac, struct ceph_authorizer *a, size_t len) {
struct ceph_x_authorizer *au = (void *)a;
int ret = 0;
struct ceph_x_authorize_reply reply;
void *p = au->reply_buf;
void *end = p + sizeof(au->reply_buf);
th = get_ticket_handler(ac, ... | static int ceph_x_verify_authorizer_reply(struct ceph_auth_client *ac, struct ceph_authorizer *a, size_t len) {
struct ceph_x_authorizer *au = (void *)a;
int ret = 0;
struct ceph_x_authorize_reply reply;
void *preply = &reply;
void *p = au->reply_buf;
void *end = p + sizeof(au->reply_buf);
t... | static int ceph_x_verify_authorizer_reply(struct ceph_auth_client *ac, struct ceph_authorizer *a, size_t len) {
struct ceph_x_authorizer *au = (void *)a;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int ret = 0;
struct ceph_x_authorize_reply reply;
void *p = au->reply_buf;
void *end = p + sizeo... | static int ceph_x_verify_authorizer_reply(struct ceph_auth_client *ac, struct ceph_authorizer *a, size_t len) {
struct ceph_x_authorizer *au = (void *)a;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int ret = 0;
struct ceph_x_authorize_reply reply;
void *preply = &reply;
void *p = au->reply_buf... | static int ceph_x_verify_authorizer_reply(struct ceph_auth_client *ac, struct ceph_authorizer *a, size_t len) {
struct ceph_x_authorizer *au = (void *)a;
int ret = 0;
struct ceph_x_authorize_reply reply;
+ void *preply = &reply;
void *p = au->reply_buf;
void *end = p + sizeof(au->reply_buf)... |
CVE-2014-6417 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | net/ceph/auth_x.c | process_one_ticket | static int process_one_ticket(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void **p, void *end, void *dbuf, void *ticket_buf) {
struct ceph_x_info *xi = ac->private;
int type;
u8 tkt_struct_v, blob_struct_v;
struct ceph_x_ticket_handler *th;
void *dp, *dend;
int dlen;
char is... | static int process_one_ticket(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void **p, void *end) {
struct ceph_x_info *xi = ac->private;
int type;
u8 tkt_struct_v, blob_struct_v;
struct ceph_x_ticket_handler *th;
void *dbuf = NULL;
void *dp, *dend;
int dlen;
char is_enc;
... | static int process_one_ticket(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void **p, void *end, void *dbuf, void *ticket_buf) {
struct ceph_x_info *xi = ac->private;
int type;
u8 tkt_struct_v, blob_struct_v;
struct ceph_x_ticket_handler *th;
void *dp, *dend;
int dlen;
char is... | static int process_one_ticket(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void **p, void *end) {
struct ceph_x_info *xi = ac->private;
int type;
u8 tkt_struct_v, blob_struct_v;
struct ceph_x_ticket_handler *th;
void *dbuf = NULL;
void *dp, *dend;
int dlen;
char is_enc;
... | static int process_one_ticket(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void **p, void *end, void *dbuf, void *ticket_buf) {
struct ceph_x_info *xi = ac->private;
struct ceph_x_ticket_handler *th;
void *dp, *dend;
struct ceph_crypto_key old_key;
void *tp, *tpend;
ceph_decode_n... | static int process_one_ticket(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void **p, void *end) {
struct ceph_x_info *xi = ac->private;
struct ceph_x_ticket_handler *th;
void *dbuf = NULL;
void *dp, *dend;
struct ceph_crypto_key old_key;
void *ticket_buf = NULL;
void *tp, *tp... | static int process_one_ticket(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void **p, void *end, void *dbuf, void *ticket_buf) {
struct ceph_x_info *xi = ac->private;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
struct ceph_x_ticket_handler *th;
void *dp, *dend;
/* PLACEHOLDER: DO NO... | static int process_one_ticket(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void **p, void *end) {
struct ceph_x_info *xi = ac->private;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
struct ceph_x_ticket_handler *th;
void *dbuf = NULL;
void *dp, *dend;
/* PLACEHOLDER: DO NOT DELET... | -static int process_one_ticket(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void **p, void *end, void *dbuf, void *ticket_buf) {
+static int process_one_ticket(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void **p, void *end) {
struct ceph_x_info *xi = ac->private;
struct ceph_... |
CVE-2014-6418 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | net/ceph/auth_x.c | ceph_x_decrypt | static int ceph_x_decrypt(struct ceph_crypto_key *secret, void **p, void *end, void *obuf, size_t olen) {
struct ceph_x_encrypt_header head;
size_t head_len = sizeof(head);
int len, ret;
len = ceph_decode_32(p);
if (*p + len > end) {
return -EVAL;
}
dout("ceph_x_decrypt len %d\n", le... | static int ceph_x_decrypt(struct ceph_crypto_key *secret, void **p, void *end, void **obuf, size_t olen) {
struct ceph_x_encrypt_header head;
size_t head_len = sizeof(head);
int len, ret;
len = ceph_decode_32(p);
if (*p + len > end) {
return -EVAL;
}
dout("ceph_x_decrypt len %d\n", l... | static int ceph_x_decrypt(struct ceph_crypto_key *secret, void **p, void *end, void *obuf, size_t olen) {
struct ceph_x_encrypt_header head;
size_t head_len = sizeof(head);
int len, ret;
len = ceph_decode_32(p);
if (*p + len > end) {
return -EVAL;
}
dout("ceph_x_decrypt len %d\n", le... | static int ceph_x_decrypt(struct ceph_crypto_key *secret, void **p, void *end, void **obuf, size_t olen) {
struct ceph_x_encrypt_header head;
size_t head_len = sizeof(head);
int len, ret;
len = ceph_decode_32(p);
if (*p + len > end) {
return -EVAL;
}
dout("ceph_x_decrypt len %d\n", l... | static int ceph_x_decrypt(struct ceph_crypto_key *secret, void **p, void *end, void *obuf, size_t olen) {
size_t head_len = sizeof(head);
len = ceph_decode_32(p);
dout("ceph_x_decrypt len %d\n", len);
ret = ceph_decrypt2(secret, &head, &head_len, obuf, &olen, *p, len);
if (ret) {
return ret;... | static int ceph_x_decrypt(struct ceph_crypto_key *secret, void **p, void *end, void **obuf, size_t olen) {
size_t head_len = sizeof(head);
len = ceph_decode_32(p);
dout("ceph_x_decrypt len %d\n", len);
if (*obuf == NULL) {
*obuf = kmalloc(len, GFP_NOFS);
if (!*obuf) {
return ... | static int ceph_x_decrypt(struct ceph_crypto_key *secret, void **p, void *end, void *obuf, size_t olen) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
size_t head_len = sizeof(head);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
len = ceph_decode_32(p);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */... | static int ceph_x_decrypt(struct ceph_crypto_key *secret, void **p, void *end, void **obuf, size_t olen) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
size_t head_len = sizeof(head);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
len = ceph_decode_32(p);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT *... | -static int ceph_x_decrypt(struct ceph_crypto_key *secret, void **p, void *end, void *obuf, size_t olen) {
+static int ceph_x_decrypt(struct ceph_crypto_key *secret, void **p, void *end, void **obuf, size_t olen) {
size_t head_len = sizeof(head);
len = ceph_decode_32(p);
dout("ceph_x_decrypt len %d\n", l... |
CVE-2014-6418 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | net/ceph/auth_x.c | ceph_x_proc_ticket_reply | static int ceph_x_proc_ticket_reply(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void *buf, void *end) {
void *p = buf;
char *dbuf;
char *ticket_buf;
u8 reply_struct_v;
u32 num;
int ret;
dbuf = kmalloc(TEMP_TICKET_BUF_LEN, GFP_NOFS);
if (!dbuf) {
return -ENOMEM;
... | static int ceph_x_proc_ticket_reply(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void *buf, void *end) {
void *p = buf;
u8 reply_struct_v;
u32 num;
int ret;
ceph_decode_8_safe(&p, end, reply_struct_v, bad);
if (reply_struct_v != 1) {
return -EVAL;
}
ceph_decode_32... | static int ceph_x_proc_ticket_reply(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void *buf, void *end) {
void *p = buf;
char *dbuf;
char *ticket_buf;
u8 reply_struct_v;
u32 num;
int ret;
dbuf = kmalloc(TEMP_TICKET_BUF_LEN, GFP_NOFS);
if (!dbuf) {
return -ENOMEM;
... | static int ceph_x_proc_ticket_reply(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void *buf, void *end) {
void *p = buf;
u8 reply_struct_v;
u32 num;
int ret;
ceph_decode_8_safe(&p, end, reply_struct_v, bad);
if (reply_struct_v != 1) {
return -EVAL;
}
ceph_decode_32... | static int ceph_x_proc_ticket_reply(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void *buf, void *end) {
void *p = buf;
char *dbuf;
char *ticket_buf;
u8 reply_struct_v;
int ret;
dbuf = kmalloc(TEMP_TICKET_BUF_LEN, GFP_NOFS);
if (!dbuf) {
return -ENOMEM;
}
ret ... | static int ceph_x_proc_ticket_reply(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void *buf, void *end) {
void *p = buf;
u8 reply_struct_v;
int ret;
ceph_decode_8_safe(&p, end, reply_struct_v, bad);
ceph_decode_32_safe(&p, end, num, bad);
while (num--) {
ret = process_one_... | static int ceph_x_proc_ticket_reply(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void *buf, void *end) {
void *p = buf;
char *dbuf;
char *ticket_buf;
u8 reply_struct_v;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int ret;
dbuf = kmalloc(TEMP_TICKET_BUF_LEN, GFP_NOFS);
i... | static int ceph_x_proc_ticket_reply(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void *buf, void *end) {
void *p = buf;
u8 reply_struct_v;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int ret;
ceph_decode_8_safe(&p, end, reply_struct_v, bad);
/* PLACEHOLDER: DO NOT DELETE THIS C... | static int ceph_x_proc_ticket_reply(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void *buf, void *end) {
void *p = buf;
- char *dbuf;
- char *ticket_buf;
u8 reply_struct_v;
int ret;
- dbuf = kmalloc(TEMP_TICKET_BUF_LEN, GFP_NOFS);
- if (!dbuf) {
- return -ENOMEM;
- ... |
CVE-2014-6418 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | net/ceph/auth_x.c | ceph_x_verify_authorizer_reply | static int ceph_x_verify_authorizer_reply(struct ceph_auth_client *ac, struct ceph_authorizer *a, size_t len) {
struct ceph_x_authorizer *au = (void *)a;
struct ceph_x_ticket_handler *th;
int ret = 0;
struct ceph_x_authorize_reply reply;
void *p = au->reply_buf;
void *end = p + sizeof(au->reply_... | static int ceph_x_verify_authorizer_reply(struct ceph_auth_client *ac, struct ceph_authorizer *a, size_t len) {
struct ceph_x_authorizer *au = (void *)a;
struct ceph_x_ticket_handler *th;
int ret = 0;
struct ceph_x_authorize_reply reply;
void *preply = &reply;
void *p = au->reply_buf;
void *... | static int ceph_x_verify_authorizer_reply(struct ceph_auth_client *ac, struct ceph_authorizer *a, size_t len) {
struct ceph_x_authorizer *au = (void *)a;
struct ceph_x_ticket_handler *th;
int ret = 0;
struct ceph_x_authorize_reply reply;
void *p = au->reply_buf;
void *end = p + sizeof(au->reply_... | static int ceph_x_verify_authorizer_reply(struct ceph_auth_client *ac, struct ceph_authorizer *a, size_t len) {
struct ceph_x_authorizer *au = (void *)a;
struct ceph_x_ticket_handler *th;
int ret = 0;
struct ceph_x_authorize_reply reply;
void *preply = &reply;
void *p = au->reply_buf;
void *... | static int ceph_x_verify_authorizer_reply(struct ceph_auth_client *ac, struct ceph_authorizer *a, size_t len) {
struct ceph_x_authorizer *au = (void *)a;
int ret = 0;
struct ceph_x_authorize_reply reply;
void *p = au->reply_buf;
void *end = p + sizeof(au->reply_buf);
th = get_ticket_handler(ac, ... | static int ceph_x_verify_authorizer_reply(struct ceph_auth_client *ac, struct ceph_authorizer *a, size_t len) {
struct ceph_x_authorizer *au = (void *)a;
int ret = 0;
struct ceph_x_authorize_reply reply;
void *preply = &reply;
void *p = au->reply_buf;
void *end = p + sizeof(au->reply_buf);
t... | static int ceph_x_verify_authorizer_reply(struct ceph_auth_client *ac, struct ceph_authorizer *a, size_t len) {
struct ceph_x_authorizer *au = (void *)a;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int ret = 0;
struct ceph_x_authorize_reply reply;
void *p = au->reply_buf;
void *end = p + sizeo... | static int ceph_x_verify_authorizer_reply(struct ceph_auth_client *ac, struct ceph_authorizer *a, size_t len) {
struct ceph_x_authorizer *au = (void *)a;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int ret = 0;
struct ceph_x_authorize_reply reply;
void *preply = &reply;
void *p = au->reply_buf... | static int ceph_x_verify_authorizer_reply(struct ceph_auth_client *ac, struct ceph_authorizer *a, size_t len) {
struct ceph_x_authorizer *au = (void *)a;
int ret = 0;
struct ceph_x_authorize_reply reply;
+ void *preply = &reply;
void *p = au->reply_buf;
void *end = p + sizeof(au->reply_buf)... |
CVE-2014-6418 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | net/ceph/auth_x.c | process_one_ticket | static int process_one_ticket(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void **p, void *end, void *dbuf, void *ticket_buf) {
struct ceph_x_info *xi = ac->private;
int type;
u8 tkt_struct_v, blob_struct_v;
struct ceph_x_ticket_handler *th;
void *dp, *dend;
int dlen;
char is... | static int process_one_ticket(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void **p, void *end) {
struct ceph_x_info *xi = ac->private;
int type;
u8 tkt_struct_v, blob_struct_v;
struct ceph_x_ticket_handler *th;
void *dbuf = NULL;
void *dp, *dend;
int dlen;
char is_enc;
... | static int process_one_ticket(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void **p, void *end, void *dbuf, void *ticket_buf) {
struct ceph_x_info *xi = ac->private;
int type;
u8 tkt_struct_v, blob_struct_v;
struct ceph_x_ticket_handler *th;
void *dp, *dend;
int dlen;
char is... | static int process_one_ticket(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void **p, void *end) {
struct ceph_x_info *xi = ac->private;
int type;
u8 tkt_struct_v, blob_struct_v;
struct ceph_x_ticket_handler *th;
void *dbuf = NULL;
void *dp, *dend;
int dlen;
char is_enc;
... | static int process_one_ticket(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void **p, void *end, void *dbuf, void *ticket_buf) {
struct ceph_x_info *xi = ac->private;
struct ceph_x_ticket_handler *th;
void *dp, *dend;
struct ceph_crypto_key old_key;
void *tp, *tpend;
ceph_decode_n... | static int process_one_ticket(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void **p, void *end) {
struct ceph_x_info *xi = ac->private;
struct ceph_x_ticket_handler *th;
void *dbuf = NULL;
void *dp, *dend;
struct ceph_crypto_key old_key;
void *ticket_buf = NULL;
void *tp, *tp... | static int process_one_ticket(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void **p, void *end, void *dbuf, void *ticket_buf) {
struct ceph_x_info *xi = ac->private;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
struct ceph_x_ticket_handler *th;
void *dp, *dend;
/* PLACEHOLDER: DO NO... | static int process_one_ticket(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void **p, void *end) {
struct ceph_x_info *xi = ac->private;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
struct ceph_x_ticket_handler *th;
void *dbuf = NULL;
void *dp, *dend;
/* PLACEHOLDER: DO NOT DELET... | -static int process_one_ticket(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void **p, void *end, void *dbuf, void *ticket_buf) {
+static int process_one_ticket(struct ceph_auth_client *ac, struct ceph_crypto_key *secret, void **p, void *end) {
struct ceph_x_info *xi = ac->private;
struct ceph_... |
CVE-2014-7822 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | fs/ocfs2/file.c | ocfs2_file_splice_write | static ssize_t ocfs2_file_splice_write(struct pipe_inode_info *pipe, struct file *out, loff_t *ppos, size_t len, unsigned int flags) {
int ret;
struct address_space *mapping = out->f_mapping;
struct inode *inode = mapping->host;
struct splice_desc sd = {
.total_len = len, .flags = flags, .pos = ... | static ssize_t ocfs2_file_splice_write(struct pipe_inode_info *pipe, struct file *out, loff_t *ppos, size_t len, unsigned int flags) {
int ret;
struct address_space *mapping = out->f_mapping;
struct inode *inode = mapping->host;
struct splice_desc sd = {
.flags = flags, .u.file = out,
};
... | static ssize_t ocfs2_file_splice_write(struct pipe_inode_info *pipe, struct file *out, loff_t *ppos, size_t len, unsigned int flags) {
int ret;
struct address_space *mapping = out->f_mapping;
struct inode *inode = mapping->host;
struct splice_desc sd = {
.total_len = len, .flags = flags, .pos = ... | static ssize_t ocfs2_file_splice_write(struct pipe_inode_info *pipe, struct file *out, loff_t *ppos, size_t len, unsigned int flags) {
int ret;
struct address_space *mapping = out->f_mapping;
struct inode *inode = mapping->host;
struct splice_desc sd = {
.flags = flags, .u.file = out,
};
... | static ssize_t ocfs2_file_splice_write(struct pipe_inode_info *pipe, struct file *out, loff_t *ppos, size_t len, unsigned int flags) {
struct address_space *mapping = out->f_mapping;
struct inode *inode = mapping->host;
struct splice_desc sd = {
.total_len = len, .flags = flags, .pos = *ppos, .u.fil... | static ssize_t ocfs2_file_splice_write(struct pipe_inode_info *pipe, struct file *out, loff_t *ppos, size_t len, unsigned int flags) {
struct address_space *mapping = out->f_mapping;
struct inode *inode = mapping->host;
struct splice_desc sd = {
.flags = flags, .u.file = out,
};
trace_ocfs2_... | static ssize_t ocfs2_file_splice_write(struct pipe_inode_info *pipe, struct file *out, loff_t *ppos, size_t len, unsigned int flags) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
struct address_space *mapping = out->f_mapping;
struct inode *inode = mapping->host;
struct splice_desc sd = {
.tot... | static ssize_t ocfs2_file_splice_write(struct pipe_inode_info *pipe, struct file *out, loff_t *ppos, size_t len, unsigned int flags) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
struct address_space *mapping = out->f_mapping;
struct inode *inode = mapping->host;
struct splice_desc sd = {
.fla... | static ssize_t ocfs2_file_splice_write(struct pipe_inode_info *pipe, struct file *out, loff_t *ppos, size_t len, unsigned int flags) {
struct address_space *mapping = out->f_mapping;
struct inode *inode = mapping->host;
struct splice_desc sd = {
- .total_len = len, .flags = flags, .pos = *ppos, .... |
CVE-2014-7822 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | fs/splice.c | generic_file_splice_write | ssize_t generic_file_splice_write(struct pipe_inode_info *pipe, struct file *out, loff_t *ppos, size_t len, unsigned int flags) {
struct address_space *mapping = out->f_mapping;
struct inode *inode = mapping->host;
struct splice_desc sd = {
.total_len = len, .flags = flags, .pos = *ppos, .u.file = o... | ssize_t generic_file_splice_write(struct pipe_inode_info *pipe, struct file *out, loff_t *ppos, size_t len, unsigned int flags) {
struct address_space *mapping = out->f_mapping;
struct inode *inode = mapping->host;
struct splice_desc sd = {
.flags = flags, .u.file = out,
};
ssize_t ret;
... | ssize_t generic_file_splice_write(struct pipe_inode_info *pipe, struct file *out, loff_t *ppos, size_t len, unsigned int flags) {
struct address_space *mapping = out->f_mapping;
struct inode *inode = mapping->host;
struct splice_desc sd = {
.total_len = len, .flags = flags, .pos = *ppos, .u.file = o... | ssize_t generic_file_splice_write(struct pipe_inode_info *pipe, struct file *out, loff_t *ppos, size_t len, unsigned int flags) {
struct address_space *mapping = out->f_mapping;
struct inode *inode = mapping->host;
struct splice_desc sd = {
.flags = flags, .u.file = out,
};
ssize_t ret;
... | ssize_t generic_file_splice_write(struct pipe_inode_info *pipe, struct file *out, loff_t *ppos, size_t len, unsigned int flags) {
struct address_space *mapping = out->f_mapping;
struct inode *inode = mapping->host;
struct splice_desc sd = {
.total_len = len, .flags = flags, .pos = *ppos, .u.file = o... | ssize_t generic_file_splice_write(struct pipe_inode_info *pipe, struct file *out, loff_t *ppos, size_t len, unsigned int flags) {
struct address_space *mapping = out->f_mapping;
struct inode *inode = mapping->host;
struct splice_desc sd = {
.flags = flags, .u.file = out,
};
ssize_t ret;
... | ssize_t generic_file_splice_write(struct pipe_inode_info *pipe, struct file *out, loff_t *ppos, size_t len, unsigned int flags) {
struct address_space *mapping = out->f_mapping;
struct inode *inode = mapping->host;
struct splice_desc sd = {
.total_len = len, .flags = flags, .pos = *ppos, .u.file = o... | ssize_t generic_file_splice_write(struct pipe_inode_info *pipe, struct file *out, loff_t *ppos, size_t len, unsigned int flags) {
struct address_space *mapping = out->f_mapping;
struct inode *inode = mapping->host;
struct splice_desc sd = {
.flags = flags, .u.file = out,
};
ssize_t ret;
... | ssize_t generic_file_splice_write(struct pipe_inode_info *pipe, struct file *out, loff_t *ppos, size_t len, unsigned int flags) {
struct address_space *mapping = out->f_mapping;
struct inode *inode = mapping->host;
struct splice_desc sd = {
- .total_len = len, .flags = flags, .pos = *ppos, .u.fil... |
CVE-2014-7825 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | kernel/trace/trace_syscalls.c | ftrace_syscall_enter | static void ftrace_syscall_enter(void *data, struct pt_regs *regs, long id) {
struct trace_array *tr = data;
struct ftrace_event_file *ftrace_file;
struct syscall_trace_enter *entry;
struct syscall_metadata *sys_data;
struct ring_buffer_event *event;
struct ring_buffer *buffer;
unsigned long... | static void ftrace_syscall_enter(void *data, struct pt_regs *regs, long id) {
struct trace_array *tr = data;
struct ftrace_event_file *ftrace_file;
struct syscall_trace_enter *entry;
struct syscall_metadata *sys_data;
struct ring_buffer_event *event;
struct ring_buffer *buffer;
unsigned long... | void ftrace_syscall_enter(void *ignore, struct pt_regs *regs, long id) {
struct syscall_trace_enter *entry;
struct syscall_metadata *sys_data;
struct ring_buffer_event *event;
struct ring_buffer *buffer;
unsigned long irq_flags;
int pc;
int size;
int syscall_nr;
syscall_nr = syscall_... | void ftrace_syscall_enter(void *ignore, struct pt_regs *regs, long id) {
struct syscall_trace_enter *entry;
struct syscall_metadata *sys_data;
struct ring_buffer_event *event;
struct ring_buffer *buffer;
unsigned long irq_flags;
int pc;
int size;
int syscall_nr;
syscall_nr = syscall_... | static void ftrace_syscall_enter(void *data, struct pt_regs *regs, long id) {
syscall_nr = trace_get_syscall_nr(current, regs);
if (syscall_nr < 0) {
return;
}
ftrace_file = rcu_dereference_sched(tr->enter_syscall_files[syscall_nr]);
sys_data = syscall_nr_to_meta(syscall_nr);
if (!sys_da... | static void ftrace_syscall_enter(void *data, struct pt_regs *regs, long id) {
syscall_nr = trace_get_syscall_nr(current, regs);
if (syscall_nr < 0 || syscall_nr >= NR_syscalls) {
return;
}
ftrace_file = rcu_dereference_sched(tr->enter_syscall_files[syscall_nr]);
sys_data = syscall_nr_to_meta... | void ftrace_syscall_enter(void *ignore, struct pt_regs *regs, long id) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int syscall_nr;
syscall_nr = syscall_get_nr(current, regs);
if (syscall_nr < 0) {
return;
}
if (!test_bit(syscall_nr, enabled_enter_syscalls)) {
return;
}
... | void ftrace_syscall_enter(void *ignore, struct pt_regs *regs, long id) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int syscall_nr;
syscall_nr = syscall_get_nr(current, regs);
if (syscall_nr < 0 || syscall_nr >= NR_syscalls) {
return;
}
if (!test_bit(syscall_nr, enabled_enter_syscalls... | static void ftrace_syscall_enter(void *data, 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;
}
ftrace_file = rcu_dereference_sched(tr->enter_syscall_files[syscall_nr]);
... |
CVE-2014-7825 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | kernel/trace/trace_syscalls.c | ftrace_syscall_exit | static void ftrace_syscall_exit(void *data, struct pt_regs *regs, long ret) {
struct trace_array *tr = data;
struct ftrace_event_file *ftrace_file;
struct syscall_trace_exit *entry;
struct syscall_metadata *sys_data;
struct ring_buffer_event *event;
struct ring_buffer *buffer;
unsigned long ... | static void ftrace_syscall_exit(void *data, struct pt_regs *regs, long ret) {
struct trace_array *tr = data;
struct ftrace_event_file *ftrace_file;
struct syscall_trace_exit *entry;
struct syscall_metadata *sys_data;
struct ring_buffer_event *event;
struct ring_buffer *buffer;
unsigned long ... | void ftrace_syscall_exit(void *ignore, struct pt_regs *regs, long ret) {
struct syscall_trace_exit *entry;
struct syscall_metadata *sys_data;
struct ring_buffer_event *event;
struct ring_buffer *buffer;
unsigned long irq_flags;
int pc;
int syscall_nr;
syscall_nr = syscall_get_nr(current,... | void ftrace_syscall_exit(void *ignore, struct pt_regs *regs, long ret) {
struct syscall_trace_exit *entry;
struct syscall_metadata *sys_data;
struct ring_buffer_event *event;
struct ring_buffer *buffer;
unsigned long irq_flags;
int pc;
int syscall_nr;
syscall_nr = syscall_get_nr(current,... | static void ftrace_syscall_exit(void *data, struct pt_regs *regs, long ret) {
syscall_nr = trace_get_syscall_nr(current, regs);
if (syscall_nr < 0) {
return;
}
ftrace_file = rcu_dereference_sched(tr->exit_syscall_files[syscall_nr]);
sys_data = syscall_nr_to_meta(syscall_nr);
if (!sys_dat... | static void ftrace_syscall_exit(void *data, struct pt_regs *regs, long ret) {
syscall_nr = trace_get_syscall_nr(current, regs);
if (syscall_nr < 0 || syscall_nr >= NR_syscalls) {
return;
}
ftrace_file = rcu_dereference_sched(tr->exit_syscall_files[syscall_nr]);
sys_data = syscall_nr_to_meta(... | void ftrace_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_exit_syscalls)) {
return;
}
sys_data = syscall_... | void ftrace_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_exit_syscalls)) {
return;
... | static void ftrace_syscall_exit(void *data, 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;
}
ftrace_file = rcu_dereference_sched(tr->exit_syscall_files[syscall_nr]);
... |
CVE-2014-7825 | 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-7825 | 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-7826 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | kernel/trace/trace_syscalls.c | ftrace_syscall_enter | static void ftrace_syscall_enter(void *data, struct pt_regs *regs, long id) {
struct trace_array *tr = data;
struct ftrace_event_file *ftrace_file;
struct syscall_trace_enter *entry;
struct syscall_metadata *sys_data;
struct ring_buffer_event *event;
struct ring_buffer *buffer;
unsigned long... | static void ftrace_syscall_enter(void *data, struct pt_regs *regs, long id) {
struct trace_array *tr = data;
struct ftrace_event_file *ftrace_file;
struct syscall_trace_enter *entry;
struct syscall_metadata *sys_data;
struct ring_buffer_event *event;
struct ring_buffer *buffer;
unsigned long... | void ftrace_syscall_enter(void *ignore, struct pt_regs *regs, long id) {
struct syscall_trace_enter *entry;
struct syscall_metadata *sys_data;
struct ring_buffer_event *event;
struct ring_buffer *buffer;
unsigned long irq_flags;
int pc;
int size;
int syscall_nr;
syscall_nr = syscall_... | void ftrace_syscall_enter(void *ignore, struct pt_regs *regs, long id) {
struct syscall_trace_enter *entry;
struct syscall_metadata *sys_data;
struct ring_buffer_event *event;
struct ring_buffer *buffer;
unsigned long irq_flags;
int pc;
int size;
int syscall_nr;
syscall_nr = syscall_... | static void ftrace_syscall_enter(void *data, struct pt_regs *regs, long id) {
syscall_nr = trace_get_syscall_nr(current, regs);
if (syscall_nr < 0) {
return;
}
ftrace_file = rcu_dereference_sched(tr->enter_syscall_files[syscall_nr]);
sys_data = syscall_nr_to_meta(syscall_nr);
if (!sys_da... | static void ftrace_syscall_enter(void *data, struct pt_regs *regs, long id) {
syscall_nr = trace_get_syscall_nr(current, regs);
if (syscall_nr < 0 || syscall_nr >= NR_syscalls) {
return;
}
ftrace_file = rcu_dereference_sched(tr->enter_syscall_files[syscall_nr]);
sys_data = syscall_nr_to_meta... | void ftrace_syscall_enter(void *ignore, struct pt_regs *regs, long id) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int syscall_nr;
syscall_nr = syscall_get_nr(current, regs);
if (syscall_nr < 0) {
return;
}
if (!test_bit(syscall_nr, enabled_enter_syscalls)) {
return;
}
... | void ftrace_syscall_enter(void *ignore, struct pt_regs *regs, long id) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int syscall_nr;
syscall_nr = syscall_get_nr(current, regs);
if (syscall_nr < 0 || syscall_nr >= NR_syscalls) {
return;
}
if (!test_bit(syscall_nr, enabled_enter_syscalls... | static void ftrace_syscall_enter(void *data, 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;
}
ftrace_file = rcu_dereference_sched(tr->enter_syscall_files[syscall_nr]);
... |
CVE-2014-7826 | linux | https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux | kernel/trace/trace_syscalls.c | ftrace_syscall_exit | static void ftrace_syscall_exit(void *data, struct pt_regs *regs, long ret) {
struct trace_array *tr = data;
struct ftrace_event_file *ftrace_file;
struct syscall_trace_exit *entry;
struct syscall_metadata *sys_data;
struct ring_buffer_event *event;
struct ring_buffer *buffer;
unsigned long ... | static void ftrace_syscall_exit(void *data, struct pt_regs *regs, long ret) {
struct trace_array *tr = data;
struct ftrace_event_file *ftrace_file;
struct syscall_trace_exit *entry;
struct syscall_metadata *sys_data;
struct ring_buffer_event *event;
struct ring_buffer *buffer;
unsigned long ... | void ftrace_syscall_exit(void *ignore, struct pt_regs *regs, long ret) {
struct syscall_trace_exit *entry;
struct syscall_metadata *sys_data;
struct ring_buffer_event *event;
struct ring_buffer *buffer;
unsigned long irq_flags;
int pc;
int syscall_nr;
syscall_nr = syscall_get_nr(current,... | void ftrace_syscall_exit(void *ignore, struct pt_regs *regs, long ret) {
struct syscall_trace_exit *entry;
struct syscall_metadata *sys_data;
struct ring_buffer_event *event;
struct ring_buffer *buffer;
unsigned long irq_flags;
int pc;
int syscall_nr;
syscall_nr = syscall_get_nr(current,... | static void ftrace_syscall_exit(void *data, struct pt_regs *regs, long ret) {
syscall_nr = trace_get_syscall_nr(current, regs);
if (syscall_nr < 0) {
return;
}
ftrace_file = rcu_dereference_sched(tr->exit_syscall_files[syscall_nr]);
sys_data = syscall_nr_to_meta(syscall_nr);
if (!sys_dat... | static void ftrace_syscall_exit(void *data, struct pt_regs *regs, long ret) {
syscall_nr = trace_get_syscall_nr(current, regs);
if (syscall_nr < 0 || syscall_nr >= NR_syscalls) {
return;
}
ftrace_file = rcu_dereference_sched(tr->exit_syscall_files[syscall_nr]);
sys_data = syscall_nr_to_meta(... | void ftrace_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_exit_syscalls)) {
return;
}
sys_data = syscall_... | void ftrace_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_exit_syscalls)) {
return;
... | static void ftrace_syscall_exit(void *data, 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;
}
ftrace_file = rcu_dereference_sched(tr->exit_syscall_files[syscall_nr]);
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.