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-2017-15951
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
security/keys/trusted.c
trusted_update
static int trusted_update(struct key *key, struct key_preparsed_payload *prep) { struct trusted_key_payload *p; struct trusted_key_payload *new_p; struct trusted_key_options *new_o; size_t datalen = prep->datalen; char *datablob; int ret = 0; if (test_bit(KEY_FLAG_NEGATIVE, &key->flags)) { ...
static int trusted_update(struct key *key, struct key_preparsed_payload *prep) { struct trusted_key_payload *p; struct trusted_key_payload *new_p; struct trusted_key_options *new_o; size_t datalen = prep->datalen; char *datablob; int ret = 0; if (key_is_negative(key)) { return -ENOKE...
static int trusted_update(struct key *key, struct key_preparsed_payload *prep) { struct trusted_key_payload *p; struct trusted_key_payload *new_p; struct trusted_key_options *new_o; size_t datalen = prep->datalen; char *datablob; int ret = 0; if (test_bit(KEY_FLAG_NEGATIVE, &key->flags)) { ...
static int trusted_update(struct key *key, struct key_preparsed_payload *prep) { struct trusted_key_payload *p; struct trusted_key_payload *new_p; struct trusted_key_options *new_o; size_t datalen = prep->datalen; char *datablob; int ret = 0; if (key_is_negative(key)) { return -ENOKE...
static int trusted_update(struct key *key, struct key_preparsed_payload *prep) { int ret = 0; if (test_bit(KEY_FLAG_NEGATIVE, &key->flags)) { return -ENOKEY; } p = key->payload.data[0]; new_p = trusted_payload_alloc(key); if (!new_p) { goto out; } ret = datablob_parse(dat...
static int trusted_update(struct key *key, struct key_preparsed_payload *prep) { int ret = 0; if (key_is_negative(key)) { return -ENOKEY; } p = key->payload.data[0]; new_p = trusted_payload_alloc(key); if (!new_p) { goto out; } ret = datablob_parse(datablob, new_p, new_o)...
static int trusted_update(struct key *key, struct key_preparsed_payload *prep) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int ret = 0; if (test_bit(KEY_FLAG_NEGATIVE, &key->flags)) { return -ENOKEY; } p = key->payload.data[0]; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ new_p ...
static int trusted_update(struct key *key, struct key_preparsed_payload *prep) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int ret = 0; if (key_is_negative(key)) { return -ENOKEY; } p = key->payload.data[0]; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ new_p = trusted_payload_al...
static int trusted_update(struct key *key, struct key_preparsed_payload *prep) { int ret = 0; - if (test_bit(KEY_FLAG_NEGATIVE, &key->flags)) { + if (key_is_negative(key)) { return -ENOKEY; } p = key->payload.data[0]; new_p = trusted_payload_alloc(key); if (!new_p) { go...
CVE-2017-15951
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
security/keys/user_defined.c
user_describe
void user_describe(const struct key *key, struct seq_file *m) { seq_puts(m, key->description); if (key_is_instantiated(key)) { seq_printf(m, ": %u", key->datalen); } }
void user_describe(const struct key *key, struct seq_file *m) { seq_puts(m, key->description); if (key_is_positive(key)) { seq_printf(m, ": %u", key->datalen); } }
void user_describe(const struct key *key, struct seq_file *m) { seq_puts(m, key->description); if (key_is_instantiated(key)) { seq_printf(m, ": %u", key->datalen); } }
void user_describe(const struct key *key, struct seq_file *m) { seq_puts(m, key->description); if (key_is_positive(key)) { seq_printf(m, ": %u", key->datalen); } }
void user_describe(const struct key *key, struct seq_file *m) { seq_puts(m, key->description); if (key_is_instantiated(key)) { seq_printf(m, ": %u", key->datalen); } }
void user_describe(const struct key *key, struct seq_file *m) { seq_puts(m, key->description); if (key_is_positive(key)) { seq_printf(m, ": %u", key->datalen); } }
void user_describe(const struct key *key, struct seq_file *m) { seq_puts(m, key->description); if (key_is_instantiated(key)) { seq_printf(m, ": %u", key->datalen); } }
void user_describe(const struct key *key, struct seq_file *m) { seq_puts(m, key->description); if (key_is_positive(key)) { seq_printf(m, ": %u", key->datalen); } }
void user_describe(const struct key *key, struct seq_file *m) { seq_puts(m, key->description); - if (key_is_instantiated(key)) { + if (key_is_positive(key)) { seq_printf(m, ": %u", key->datalen); } }
CVE-2017-15951
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
security/keys/user_defined.c
user_update
int user_update(struct key *key, struct key_preparsed_payload *prep) { struct user_key_payload *upayload, *zap; size_t datalen = prep->datalen; int ret; ret = -EVAL; if (datalen <= 0 || datalen > 32767 || !prep->data) { goto error; } ret = -ENOMEM; upayload = kmalloc(sizeof(*upay...
int user_update(struct key *key, struct key_preparsed_payload *prep) { struct user_key_payload *upayload, *zap; size_t datalen = prep->datalen; int ret; ret = -EVAL; if (datalen <= 0 || datalen > 32767 || !prep->data) { goto error; } ret = -ENOMEM; upayload = kmalloc(sizeof(*upay...
int user_update(struct key *key, struct key_preparsed_payload *prep) { struct user_key_payload *zap = NULL; int ret; ret = key_payload_reserve(key, prep->datalen); if (ret < 0) { return ret; } key->expiry = prep->expiry; if (!test_bit(KEY_FLAG_NEGATIVE, &key->flags)) { zap = ...
int user_update(struct key *key, struct key_preparsed_payload *prep) { struct user_key_payload *zap = NULL; int ret; ret = key_payload_reserve(key, prep->datalen); if (ret < 0) { return ret; } key->expiry = prep->expiry; if (key_is_positive(key)) { zap = dereference_key_locke...
int user_update(struct key *key, struct key_preparsed_payload *prep) { size_t datalen = prep->datalen; if (datalen <= 0 || datalen > 32767 || !prep->data) { goto error; } upayload = kmalloc(sizeof(*upayload) + datalen, GFP_KERNEL); if (!upayload) { goto error; } memcpy(upaylo...
int user_update(struct key *key, struct key_preparsed_payload *prep) { size_t datalen = prep->datalen; if (datalen <= 0 || datalen > 32767 || !prep->data) { goto error; } upayload = kmalloc(sizeof(*upayload) + datalen, GFP_KERNEL); if (!upayload) { goto error; } memcpy(upaylo...
int user_update(struct key *key, struct key_preparsed_payload *prep) { struct user_key_payload *zap = NULL; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ret = key_payload_reserve(key, prep->datalen); if (ret < 0) { return ret; } key->expiry = prep->expiry; if (!test_bit(KEY_FLAG_NEG...
int user_update(struct key *key, struct key_preparsed_payload *prep) { struct user_key_payload *zap = NULL; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ret = key_payload_reserve(key, prep->datalen); if (ret < 0) { return ret; } key->expiry = prep->expiry; if (key_is_positive(key)) ...
int user_update(struct key *key, struct key_preparsed_payload *prep) { size_t datalen = prep->datalen; if (datalen <= 0 || datalen > 32767 || !prep->data) { goto error; } upayload = kmalloc(sizeof(*upayload) + datalen, GFP_KERNEL); if (!upayload) { goto error; } mem...
CVE-2017-16525
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/usb/serial/console.c
usb_console_setup
static int usb_console_setup(struct console *co, char *options) { struct usbcons_info *info = &usbcons_info; int baud = 9600; int bits = 8; int parity = 'n'; int doflow = 0; int cflag = CREAD | HUPCL | C; char *s; struct usb_serial *serial; struct usb_serial_port *port; int retva...
static int usb_console_setup(struct console *co, char *options) { struct usbcons_info *info = &usbcons_info; int baud = 9600; int bits = 8; int parity = 'n'; int doflow = 0; int cflag = CREAD | HUPCL | C; char *s; struct usb_serial *serial; struct usb_serial_port *port; int retva...
static int usb_console_setup(struct console *co, char *options) { struct usbcons_info *info = &usbcons_info; int baud = 9600; int bits = 8; int parity = 'n'; int doflow = 0; int cflag = CREAD | HUPCL | C; char *s; struct usb_serial *serial; struct usb_serial_port *port; int retva...
static int usb_console_setup(struct console *co, char *options) { struct usbcons_info *info = &usbcons_info; int baud = 9600; int bits = 8; int parity = 'n'; int doflow = 0; int cflag = CREAD | HUPCL | C; char *s; struct usb_serial *serial; struct usb_serial_port *port; int retva...
static int usb_console_setup(struct console *co, char *options) { if (options) { baud = simple_strtoul(options, NULL, 10); } port = usb_serial_port_get_by_minor(co->index); if (port == NULL) { return -ENODEV; } tty_port_tty_set(&port->port, NULL); if (!test_bit(ASYNCB_ITIALIZ...
static int usb_console_setup(struct console *co, char *options) { if (options) { baud = simple_strtoul(options, NULL, 10); } port = usb_serial_port_get_by_minor(co->index); if (port == NULL) { return -ENODEV; } tty_port_tty_set(&port->port, NULL); if (!test_bit(ASYNCB_ITIALIZ...
static int usb_console_setup(struct console *co, char *options) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (options) { baud = simple_strtoul(options, NULL, 10); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ serial = usb_serial_get_b...
static int usb_console_setup(struct console *co, char *options) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (options) { baud = simple_strtoul(options, NULL, 10); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ serial = usb_serial_get_b...
static int usb_console_setup(struct console *co, char *options) { if (options) { baud = simple_strtoul(options, NULL, 10); } port = usb_serial_port_get_by_minor(co->index); if (port == NULL) { return -ENODEV; } tty_port_tty_set(&port->port, NULL); if (!test_bit(ASYN...
CVE-2017-16526
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/uwb/uwbd.c
uwbd_start
void uwbd_start(struct uwb_rc *rc) { rc->uwbd.task = kthread_run(uwbd, rc, "uwbd"); if (rc->uwbd.task == NULL) { printk(KERN_ERR "UWB: Cannot start management daemon; " "UWB won't work\n"); } else { rc->uwbd.pid = rc->uwbd.task->pid; } }
void uwbd_start(struct uwb_rc *rc) { struct task_struct *task = kthread_run(uwbd, rc, "uwbd"); if (IS_ERR(task)) { rc->uwbd.task = NULL; printk(KERN_ERR "UWB: Cannot start management daemon; " "UWB won't work\n"); } else { rc->uwbd.task = task; rc->uwbd.pid = rc->uwbd.task->p...
void uwbd_start(struct uwb_rc *rc) { rc->uwbd.task = kthread_run(uwbd, rc, "uwbd"); if (rc->uwbd.task == NULL) { printk(KERN_ERR "UWB: Cannot start management daemon; " "UWB won't work\n"); } else { rc->uwbd.pid = rc->uwbd.task->pid; } }
void uwbd_start(struct uwb_rc *rc) { struct task_struct *task = kthread_run(uwbd, rc, "uwbd"); if (IS_ERR(task)) { rc->uwbd.task = NULL; printk(KERN_ERR "UWB: Cannot start management daemon; " "UWB won't work\n"); } else { rc->uwbd.task = task; rc->uwbd.pid = rc->uwbd.task->p...
void uwbd_start(struct uwb_rc *rc) { rc->uwbd.task = kthread_run(uwbd, rc, "uwbd"); if (rc->uwbd.task == NULL) { printk(KERN_ERR "UWB: Cannot start management daemon; " "UWB won't work\n"); } else { rc->uwbd.pid = rc->uwbd.task->pid; } }
void uwbd_start(struct uwb_rc *rc) { struct task_struct *task = kthread_run(uwbd, rc, "uwbd"); if (IS_ERR(task)) { rc->uwbd.task = NULL; printk(KERN_ERR "UWB: Cannot start management daemon; " "UWB won't work\n"); } else { rc->uwbd.task = task; rc->uwbd.pid = rc->uwbd.task->p...
void uwbd_start(struct uwb_rc *rc) { rc->uwbd.task = kthread_run(uwbd, rc, "uwbd"); if (rc->uwbd.task == NULL) { printk(KERN_ERR "UWB: Cannot start management daemon; " "UWB won't work\n"); } else { rc->uwbd.pid = rc->uwbd.task->pid; } }
void uwbd_start(struct uwb_rc *rc) { struct task_struct *task = kthread_run(uwbd, rc, "uwbd"); if (IS_ERR(task)) { rc->uwbd.task = NULL; printk(KERN_ERR "UWB: Cannot start management daemon; " "UWB won't work\n"); } else { rc->uwbd.task = task; rc->uwbd.pid = rc->uwbd.task->p...
void uwbd_start(struct uwb_rc *rc) { - rc->uwbd.task = kthread_run(uwbd, rc, "uwbd"); - if (rc->uwbd.task == NULL) { + struct task_struct *task = kthread_run(uwbd, rc, "uwbd"); + if (IS_ERR(task)) { + rc->uwbd.task = NULL; printk(KERN_ERR "UWB: Cannot start management daemon; " "UWB won't w...
CVE-2017-16526
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/uwb/uwbd.c
uwbd_stop
void uwbd_stop(struct uwb_rc *rc) { kthread_stop(rc->uwbd.task); uwbd_flush(rc); }
void uwbd_stop(struct uwb_rc *rc) { if (rc->uwbd.task) { kthread_stop(rc->uwbd.task); } uwbd_flush(rc); }
void uwbd_stop(struct uwb_rc *rc) { kthread_stop(rc->uwbd.task); uwbd_flush(rc); }
void uwbd_stop(struct uwb_rc *rc) { if (rc->uwbd.task) { kthread_stop(rc->uwbd.task); } uwbd_flush(rc); }
void uwbd_stop(struct uwb_rc *rc) { kthread_stop(rc->uwbd.task); uwbd_flush(rc); }
void uwbd_stop(struct uwb_rc *rc) { if (rc->uwbd.task) { kthread_stop(rc->uwbd.task); } uwbd_flush(rc); }
void uwbd_stop(struct uwb_rc *rc) { kthread_stop(rc->uwbd.task); uwbd_flush(rc); }
void uwbd_stop(struct uwb_rc *rc) { if (rc->uwbd.task) { kthread_stop(rc->uwbd.task); } uwbd_flush(rc); }
void uwbd_stop(struct uwb_rc *rc) { - kthread_stop(rc->uwbd.task); + if (rc->uwbd.task) { + kthread_stop(rc->uwbd.task); + } uwbd_flush(rc); }
CVE-2017-16527
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
sound/usb/mixer.c
snd_usb_mixer_disconnect
void snd_usb_mixer_disconnect(struct list_head *p) { struct usb_mixer_interface *mixer; mixer = list_entry(p, struct usb_mixer_interface, list); usb_kill_urb(mixer->urb); usb_kill_urb(mixer->rc_urb); }
void snd_usb_mixer_disconnect(struct list_head *p) { struct usb_mixer_interface *mixer; mixer = list_entry(p, struct usb_mixer_interface, list); if (mixer->disconnected) { return; } if (mixer->urb) { usb_kill_urb(mixer->urb); } if (mixer->rc_urb) { usb_kill_urb(mixer-...
void snd_usb_mixer_disconnect(struct list_head *p) { struct usb_mixer_interface *mixer; mixer = list_entry(p, struct usb_mixer_interface, list); usb_kill_urb(mixer->urb); usb_kill_urb(mixer->rc_urb); }
void snd_usb_mixer_disconnect(struct list_head *p) { struct usb_mixer_interface *mixer; mixer = list_entry(p, struct usb_mixer_interface, list); if (mixer->disconnected) { return; } if (mixer->urb) { usb_kill_urb(mixer->urb); } if (mixer->rc_urb) { usb_kill_urb(mixer-...
void snd_usb_mixer_disconnect(struct list_head *p) { struct usb_mixer_interface *mixer; mixer = list_entry(p, struct usb_mixer_interface, list); usb_kill_urb(mixer->urb); usb_kill_urb(mixer->rc_urb); }
void snd_usb_mixer_disconnect(struct list_head *p) { struct usb_mixer_interface *mixer; mixer = list_entry(p, struct usb_mixer_interface, list); if (mixer->disconnected) { return; } if (mixer->urb) { usb_kill_urb(mixer->urb); } if (mixer->rc_urb) { usb_kill_urb(mixer-...
void snd_usb_mixer_disconnect(struct list_head *p) { struct usb_mixer_interface *mixer; mixer = list_entry(p, struct usb_mixer_interface, list); usb_kill_urb(mixer->urb); usb_kill_urb(mixer->rc_urb); }
void snd_usb_mixer_disconnect(struct list_head *p) { struct usb_mixer_interface *mixer; mixer = list_entry(p, struct usb_mixer_interface, list); if (mixer->disconnected) { return; } if (mixer->urb) { usb_kill_urb(mixer->urb); } if (mixer->rc_urb) { usb_kill_urb(mixer-...
void snd_usb_mixer_disconnect(struct list_head *p) { struct usb_mixer_interface *mixer; mixer = list_entry(p, struct usb_mixer_interface, list); - usb_kill_urb(mixer->urb); - usb_kill_urb(mixer->rc_urb); + if (mixer->disconnected) { + return; + } + if (mixer->urb) { + usb_kill_ur...
CVE-2017-16527
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
sound/usb/mixer.c
snd_usb_mixer_free
static void snd_usb_mixer_free(struct usb_mixer_interface *mixer) { kfree(mixer->id_elems); if (mixer->urb) { kfree(mixer->urb->transfer_buffer); usb_free_urb(mixer->urb); } usb_free_urb(mixer->rc_urb); kfree(mixer->rc_setup_packet); kfree(mixer); }
static void snd_usb_mixer_free(struct usb_mixer_interface *mixer) { snd_usb_mixer_disconnect(&mixer->list); kfree(mixer->id_elems); if (mixer->urb) { kfree(mixer->urb->transfer_buffer); usb_free_urb(mixer->urb); } usb_free_urb(mixer->rc_urb); kfree(mixer->rc_setup_packet); kf...
static void snd_usb_mixer_free(struct usb_mixer_interface *mixer) { kfree(mixer->id_elems); if (mixer->urb) { kfree(mixer->urb->transfer_buffer); usb_free_urb(mixer->urb); } usb_free_urb(mixer->rc_urb); kfree(mixer->rc_setup_packet); kfree(mixer); }
static void snd_usb_mixer_free(struct usb_mixer_interface *mixer) { snd_usb_mixer_disconnect(&mixer->list); kfree(mixer->id_elems); if (mixer->urb) { kfree(mixer->urb->transfer_buffer); usb_free_urb(mixer->urb); } usb_free_urb(mixer->rc_urb); kfree(mixer->rc_setup_packet); kf...
static void snd_usb_mixer_free(struct usb_mixer_interface *mixer) { kfree(mixer->id_elems); }
static void snd_usb_mixer_free(struct usb_mixer_interface *mixer) { snd_usb_mixer_disconnect(&mixer->list); kfree(mixer->id_elems); }
static void snd_usb_mixer_free(struct usb_mixer_interface *mixer) { kfree(mixer->id_elems); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static void snd_usb_mixer_free(struct usb_mixer_interface *mixer) { snd_usb_mixer_disconnect(&mixer->list); kfree(mixer->id_elems); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static void snd_usb_mixer_free(struct usb_mixer_interface *mixer) { + snd_usb_mixer_disconnect(&mixer->list); kfree(mixer->id_elems); }
CVE-2017-16528
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
sound/core/seq/seq_device.c
snd_seq_device_dev_free
static int snd_seq_device_dev_free(struct snd_device *device) { struct snd_seq_device *dev = device->device_data; put_device(&dev->dev); return 0; }
static int snd_seq_device_dev_free(struct snd_device *device) { struct snd_seq_device *dev = device->device_data; cancel_autoload_drivers(); put_device(&dev->dev); return 0; }
static int snd_seq_device_dev_free(struct snd_device *device) { struct snd_seq_device *dev = device->device_data; put_device(&dev->dev); return 0; }
static int snd_seq_device_dev_free(struct snd_device *device) { struct snd_seq_device *dev = device->device_data; cancel_autoload_drivers(); put_device(&dev->dev); return 0; }
static int snd_seq_device_dev_free(struct snd_device *device) { struct snd_seq_device *dev = device->device_data; put_device(&dev->dev); return 0; }
static int snd_seq_device_dev_free(struct snd_device *device) { struct snd_seq_device *dev = device->device_data; cancel_autoload_drivers(); put_device(&dev->dev); return 0; }
static int snd_seq_device_dev_free(struct snd_device *device) { struct snd_seq_device *dev = device->device_data; put_device(&dev->dev); return 0; }
static int snd_seq_device_dev_free(struct snd_device *device) { struct snd_seq_device *dev = device->device_data; cancel_autoload_drivers(); put_device(&dev->dev); return 0; }
static int snd_seq_device_dev_free(struct snd_device *device) { struct snd_seq_device *dev = device->device_data; + cancel_autoload_drivers(); put_device(&dev->dev); return 0; }
CVE-2017-16529
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
sound/usb/card.c
snd_usb_create_streams
static int snd_usb_create_streams(struct snd_usb_audio *chip, int ctrlif) { struct usb_device *dev = chip->dev; struct usb_host_interface *host_iface; struct usb_interface_descriptor *altsd; void *control_header; int i, protocol; host_iface = &usb_ifnum_to_if(dev, ctrlif)->altsetting[0]; con...
static int snd_usb_create_streams(struct snd_usb_audio *chip, int ctrlif) { struct usb_device *dev = chip->dev; struct usb_host_interface *host_iface; struct usb_interface_descriptor *altsd; void *control_header; int i, protocol; int rest_bytes; host_iface = &usb_ifnum_to_if(dev, ctrlif)->al...
static int snd_usb_create_streams(struct snd_usb_audio *chip, int ctrlif) { struct usb_device *dev = chip->dev; struct usb_host_interface *host_iface; struct usb_interface_descriptor *altsd; void *control_header; int i, protocol; host_iface = &usb_ifnum_to_if(dev, ctrlif)->altsetting[0]; con...
static int snd_usb_create_streams(struct snd_usb_audio *chip, int ctrlif) { struct usb_device *dev = chip->dev; struct usb_host_interface *host_iface; struct usb_interface_descriptor *altsd; void *control_header; int i, protocol; int rest_bytes; host_iface = &usb_ifnum_to_if(dev, ctrlif)->al...
static int snd_usb_create_streams(struct snd_usb_audio *chip, int ctrlif) { struct usb_device *dev = chip->dev; int i, protocol; host_iface = &usb_ifnum_to_if(dev, ctrlif)->altsetting[0]; control_header = snd_usb_find_csint_desc(host_iface->extra, host_iface->extralen, NULL, UAC_HEADER); altsd = get...
static int snd_usb_create_streams(struct snd_usb_audio *chip, int ctrlif) { struct usb_device *dev = chip->dev; int i, protocol; int rest_bytes; host_iface = &usb_ifnum_to_if(dev, ctrlif)->altsetting[0]; control_header = snd_usb_find_csint_desc(host_iface->extra, host_iface->extralen, NULL, UAC_HEAD...
static int snd_usb_create_streams(struct snd_usb_audio *chip, int ctrlif) { struct usb_device *dev = chip->dev; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int i, protocol; host_iface = &usb_ifnum_to_if(dev, ctrlif)->altsetting[0]; control_header = snd_usb_find_csint_desc(host_iface->extra, host_i...
static int snd_usb_create_streams(struct snd_usb_audio *chip, int ctrlif) { struct usb_device *dev = chip->dev; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int i, protocol; int rest_bytes; host_iface = &usb_ifnum_to_if(dev, ctrlif)->altsetting[0]; control_header = snd_usb_find_csint_desc(host_...
static int snd_usb_create_streams(struct snd_usb_audio *chip, int ctrlif) { struct usb_device *dev = chip->dev; int i, protocol; + int rest_bytes; host_iface = &usb_ifnum_to_if(dev, ctrlif)->altsetting[0]; control_header = snd_usb_find_csint_desc(host_iface->extra, host_iface->extralen, NULL, UA...
CVE-2017-16530
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/usb/storage/uas-detect.h
uas_find_uas_alt_setting
static int uas_find_uas_alt_setting(struct usb_interface *intf) { int i; for (i = 0; i < intf->num_altsetting; i++) { struct usb_host_interface *alt = &intf->altsetting[i]; if (uas_is_interface(alt)) { return alt->desc.bAlternateSetting; } } return -ENODEV; }
static struct usb_host_interface *uas_find_uas_alt_setting( struct usb_interface *intf) { int i; for (i = 0; i < intf->num_altsetting; i++) { struct usb_host_interface *alt = &intf->altsetting[i]; if (uas_is_interface(alt)) { return alt; } } return NULL; }
static int uas_find_uas_alt_setting(struct usb_interface *intf) { int i; for (i = 0; i < intf->num_altsetting; i++) { struct usb_host_interface *alt = &intf->altsetting[i]; if (uas_is_interface(alt)) { return alt->desc.bAlternateSetting; } } return -ENODEV; }
static struct usb_host_interface *uas_find_uas_alt_setting( struct usb_interface *intf) { int i; for (i = 0; i < intf->num_altsetting; i++) { struct usb_host_interface *alt = &intf->altsetting[i]; if (uas_is_interface(alt)) { return alt; } } return NULL; }
static int uas_find_uas_alt_setting(struct usb_interface *intf) { for (i = 0; i < intf->num_altsetting; i++) { struct usb_host_interface *alt = &intf->altsetting[i]; if (uas_is_interface(alt)) { return alt->desc.bAlternateSetting; } } return -ENODEV; }
static struct usb_host_interface *uas_find_uas_alt_setting( struct usb_interface *intf) { for (i = 0; i < intf->num_altsetting; i++) { struct usb_host_interface *alt = &intf->altsetting[i]; if (uas_is_interface(alt)) { return alt; } } return NULL; }
static int uas_find_uas_alt_setting(struct usb_interface *intf) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (i = 0; i < intf->num_altsetting; i++) { struct usb_host_interface *alt = &intf->altsetting[i]; if (uas_is_interface(alt)) { return alt->desc.bAlternateSetting; ...
static struct usb_host_interface *uas_find_uas_alt_setting( struct usb_interface *intf) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (i = 0; i < intf->num_altsetting; i++) { struct usb_host_interface *alt = &intf->altsetting[i]; if (uas_is_interface(alt)) { return alt; ...
-static int uas_find_uas_alt_setting(struct usb_interface *intf) { +static struct usb_host_interface *uas_find_uas_alt_setting( struct usb_interface *intf) { for (i = 0; i < intf->num_altsetting; i++) { struct usb_host_interface *alt = &intf->altsetting[i]; if (uas_is_interface(alt)) { - ...
CVE-2017-16530
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/usb/storage/uas-detect.h
uas_use_uas_driver
static int uas_use_uas_driver(struct usb_interface *intf, const struct usb_device_id *id, unsigned long *flags_ret) { struct usb_host_endpoint *eps[4] = { }; struct usb_device *udev = interface_to_usbdev(intf); struct usb_hcd *hcd = bus_to_hcd(udev->bus); unsigned long flags = id->driver_info; int r...
static int uas_use_uas_driver(struct usb_interface *intf, const struct usb_device_id *id, unsigned long *flags_ret) { struct usb_host_endpoint *eps[4] = { }; struct usb_device *udev = interface_to_usbdev(intf); struct usb_hcd *hcd = bus_to_hcd(udev->bus); unsigned long flags = id->driver_info; struc...
static int uas_use_uas_driver(struct usb_interface *intf, const struct usb_device_id *id, unsigned long *flags_ret) { struct usb_host_endpoint *eps[4] = { }; struct usb_device *udev = interface_to_usbdev(intf); struct usb_hcd *hcd = bus_to_hcd(udev->bus); unsigned long flags = id->driver_info; int r...
static int uas_use_uas_driver(struct usb_interface *intf, const struct usb_device_id *id, unsigned long *flags_ret) { struct usb_host_endpoint *eps[4] = { }; struct usb_device *udev = interface_to_usbdev(intf); struct usb_hcd *hcd = bus_to_hcd(udev->bus); unsigned long flags = id->driver_info; struc...
static int uas_use_uas_driver(struct usb_interface *intf, const struct usb_device_id *id, unsigned long *flags_ret) { struct usb_host_endpoint *eps[4] = { }; struct usb_device *udev = interface_to_usbdev(intf); unsigned long flags = id->driver_info; int r, alt; alt = uas_find_uas_alt_setting(intf); ...
static int uas_use_uas_driver(struct usb_interface *intf, const struct usb_device_id *id, unsigned long *flags_ret) { struct usb_host_endpoint *eps[4] = { }; struct usb_device *udev = interface_to_usbdev(intf); unsigned long flags = id->driver_info; struct usb_host_interface *alt; int r; alt = u...
static int uas_use_uas_driver(struct usb_interface *intf, const struct usb_device_id *id, unsigned long *flags_ret) { struct usb_host_endpoint *eps[4] = { }; struct usb_device *udev = interface_to_usbdev(intf); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ unsigned long flags = id->driver_info; int ...
static int uas_use_uas_driver(struct usb_interface *intf, const struct usb_device_id *id, unsigned long *flags_ret) { struct usb_host_endpoint *eps[4] = { }; struct usb_device *udev = interface_to_usbdev(intf); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ unsigned long flags = id->driver_info; stru...
static int uas_use_uas_driver(struct usb_interface *intf, const struct usb_device_id *id, unsigned long *flags_ret) { struct usb_host_endpoint *eps[4] = { }; struct usb_device *udev = interface_to_usbdev(intf); unsigned long flags = id->driver_info; - int r, alt; + struct usb_host_interface *alt; ...
CVE-2017-16530
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/usb/storage/uas.c
uas_switch_interface
static int uas_switch_interface(struct usb_device *udev, struct usb_interface *intf) { int alt; alt = uas_find_uas_alt_setting(intf); if (alt < 0) { return alt; } return usb_set_interface(udev, intf->altsetting[0].desc.bInterfaceNumber, alt); }
static int uas_switch_interface(struct usb_device *udev, struct usb_interface *intf) { struct usb_host_interface *alt; alt = uas_find_uas_alt_setting(intf); if (!alt) { return -ENODEV; } return usb_set_interface(udev, alt->desc.bInterfaceNumber, alt->desc.bAlternateSetting); }
static int uas_switch_interface(struct usb_device *udev, struct usb_interface *intf) { int alt; alt = uas_find_uas_alt_setting(intf); if (alt < 0) { return alt; } return usb_set_interface(udev, intf->altsetting[0].desc.bInterfaceNumber, alt); }
static int uas_switch_interface(struct usb_device *udev, struct usb_interface *intf) { struct usb_host_interface *alt; alt = uas_find_uas_alt_setting(intf); if (!alt) { return -ENODEV; } return usb_set_interface(udev, alt->desc.bInterfaceNumber, alt->desc.bAlternateSetting); }
static int uas_switch_interface(struct usb_device *udev, struct usb_interface *intf) { int alt; alt = uas_find_uas_alt_setting(intf); if (alt < 0) { return alt; } return usb_set_interface(udev, intf->altsetting[0].desc.bInterfaceNumber, alt); }
static int uas_switch_interface(struct usb_device *udev, struct usb_interface *intf) { struct usb_host_interface *alt; alt = uas_find_uas_alt_setting(intf); if (!alt) { return -ENODEV; } return usb_set_interface(udev, alt->desc.bInterfaceNumber, alt->desc.bAlternateSetting); }
static int uas_switch_interface(struct usb_device *udev, struct usb_interface *intf) { int alt; alt = uas_find_uas_alt_setting(intf); if (alt < 0) { return alt; } return usb_set_interface(udev, intf->altsetting[0].desc.bInterfaceNumber, alt); }
static int uas_switch_interface(struct usb_device *udev, struct usb_interface *intf) { struct usb_host_interface *alt; alt = uas_find_uas_alt_setting(intf); if (!alt) { return -ENODEV; } return usb_set_interface(udev, alt->desc.bInterfaceNumber, alt->desc.bAlternateSetting); }
static int uas_switch_interface(struct usb_device *udev, struct usb_interface *intf) { - int alt; + struct usb_host_interface *alt; alt = uas_find_uas_alt_setting(intf); - if (alt < 0) { - return alt; + if (!alt) { + return -ENODEV; } - return usb_set_interface(udev, intf->altset...
CVE-2017-16531
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/usb/core/config.c
usb_parse_configuration
static int usb_parse_configuration(struct usb_device *dev, int cfgidx, struct usb_host_config *config, unsigned char *buffer, int size) { struct device *ddev = &dev->dev; unsigned char *buffer0 = buffer; int cfgno; int nintf, nintf_orig; int i, j, n; struct usb_interface_cache *intfc; unsign...
static int usb_parse_configuration(struct usb_device *dev, int cfgidx, struct usb_host_config *config, unsigned char *buffer, int size) { struct device *ddev = &dev->dev; unsigned char *buffer0 = buffer; int cfgno; int nintf, nintf_orig; int i, j, n; struct usb_interface_cache *intfc; unsign...
static int usb_parse_configuration(struct usb_device *dev, int cfgidx, struct usb_host_config *config, unsigned char *buffer, int size) { struct device *ddev = &dev->dev; unsigned char *buffer0 = buffer; int cfgno; int nintf, nintf_orig; int i, j, n; struct usb_interface_cache *intfc; unsign...
static int usb_parse_configuration(struct usb_device *dev, int cfgidx, struct usb_host_config *config, unsigned char *buffer, int size) { struct device *ddev = &dev->dev; unsigned char *buffer0 = buffer; int cfgno; int nintf, nintf_orig; int i, j, n; struct usb_interface_cache *intfc; unsign...
static int usb_parse_configuration(struct usb_device *dev, int cfgidx, struct usb_host_config *config, unsigned char *buffer, int size) { struct device *ddev = &dev->dev; memcpy(&config->desc, buffer, USB_DT_CONFIG_SIZE); if (config->desc.bDescriptorType != USB_DT_CONFIG || config->desc.bLength < USB_DT_CON...
static int usb_parse_configuration(struct usb_device *dev, int cfgidx, struct usb_host_config *config, unsigned char *buffer, int size) { struct device *ddev = &dev->dev; memcpy(&config->desc, buffer, USB_DT_CONFIG_SIZE); if (config->desc.bDescriptorType != USB_DT_CONFIG || config->desc.bLength < USB_DT_CON...
static int usb_parse_configuration(struct usb_device *dev, int cfgidx, struct usb_host_config *config, unsigned char *buffer, int size) { struct device *ddev = &dev->dev; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ memcpy(&config->desc, buffer, USB_DT_CONFIG_SIZE); if (config->desc.bDescriptorType != ...
static int usb_parse_configuration(struct usb_device *dev, int cfgidx, struct usb_host_config *config, unsigned char *buffer, int size) { struct device *ddev = &dev->dev; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ memcpy(&config->desc, buffer, USB_DT_CONFIG_SIZE); if (config->desc.bDescriptorType != ...
static int usb_parse_configuration(struct usb_device *dev, int cfgidx, struct usb_host_config *config, unsigned char *buffer, int size) { struct device *ddev = &dev->dev; memcpy(&config->desc, buffer, USB_DT_CONFIG_SIZE); if (config->desc.bDescriptorType != USB_DT_CONFIG || config->desc.bLength < USB_DT...
CVE-2017-16532
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/usb/misc/usbtest.c
get_endpoints
static int get_endpoints(struct usbtest_dev *dev, struct usb_interface *intf) { int tmp; struct usb_host_interface *alt; struct usb_host_endpoint *in, *out; struct usb_host_endpoint *iso_in, *iso_out; struct usb_device *udev; for (tmp = 0; tmp < intf->num_altsetting; tmp++) { unsigned ep...
static int get_endpoints(struct usbtest_dev *dev, struct usb_interface *intf) { int tmp; struct usb_host_interface *alt; struct usb_host_endpoint *in, *out; struct usb_host_endpoint *iso_in, *iso_out; struct usb_device *udev; for (tmp = 0; tmp < intf->num_altsetting; tmp++) { unsigned ep...
static int get_endpoints(struct usbtest_dev *dev, struct usb_interface *intf) { int tmp; struct usb_host_interface *alt; struct usb_host_endpoint *in, *out; struct usb_host_endpoint *iso_in, *iso_out; struct usb_host_endpoint *int_in, *int_out; struct usb_device *udev; for (tmp = 0; tmp < in...
static int get_endpoints(struct usbtest_dev *dev, struct usb_interface *intf) { int tmp; struct usb_host_interface *alt; struct usb_host_endpoint *in, *out; struct usb_host_endpoint *iso_in, *iso_out; struct usb_host_endpoint *int_in, *int_out; struct usb_device *udev; for (tmp = 0; tmp < in...
static int get_endpoints(struct usbtest_dev *dev, struct usb_interface *intf) { if (in) { dev->in_pipe = usb_rcvbulkpipe(udev, in->desc.bEndpointAddress & USB_ENDPOT_NUMBER_MASK); dev->out_pipe = usb_sndbulkpipe(udev, out->desc.bEndpointAddress & USB_ENDPOT_NUMBER_MASK); } }
static int get_endpoints(struct usbtest_dev *dev, struct usb_interface *intf) { if (in) { dev->in_pipe = usb_rcvbulkpipe(udev, in->desc.bEndpointAddress & USB_ENDPOT_NUMBER_MASK); } if (out) { dev->out_pipe = usb_sndbulkpipe(udev, out->desc.bEndpointAddress & USB_ENDPOT_NUMBER_MASK); } }...
static int get_endpoints(struct usbtest_dev *dev, struct usb_interface *intf) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (in) { dev->in_pipe = usb_rcvbulkpipe(udev, in->desc.bEndpointAddress & USB_ENDPOT_NUMBER_MASK); dev->out_pipe = usb_sndbulkpipe(udev, out->desc.bEndpointAddress & USB...
static int get_endpoints(struct usbtest_dev *dev, struct usb_interface *intf) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (in) { dev->in_pipe = usb_rcvbulkpipe(udev, in->desc.bEndpointAddress & USB_ENDPOT_NUMBER_MASK); } if (out) { dev->out_pipe = usb_sndbulkpipe(udev, out->desc.b...
static int get_endpoints(struct usbtest_dev *dev, struct usb_interface *intf) { if (in) { dev->in_pipe = usb_rcvbulkpipe(udev, in->desc.bEndpointAddress & USB_ENDPOT_NUMBER_MASK); + } + if (out) { dev->out_pipe = usb_sndbulkpipe(udev, out->desc.bEndpointAddress & USB_ENDPOT_NUMBER_MASK); ...
CVE-2017-16533
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/hid/usbhid/hid-core.c
usbhid_parse
static int usbhid_parse(struct hid_device *hid) { struct usb_interface *intf = to_usb_interface(hid->dev.parent); struct usb_host_interface *interface = intf->cur_altsetting; struct usb_device *dev = interface_to_usbdev (intf); struct hid_descriptor *hdesc; u32 quirks = 0; unsigned int rsize = 0...
static int usbhid_parse(struct hid_device *hid) { struct usb_interface *intf = to_usb_interface(hid->dev.parent); struct usb_host_interface *interface = intf->cur_altsetting; struct usb_device *dev = interface_to_usbdev (intf); struct hid_descriptor *hdesc; u32 quirks = 0; unsigned int rsize = 0...
static int usbhid_parse(struct hid_device *hid) { struct usb_interface *intf = to_usb_interface(hid->dev.parent); struct usb_host_interface *interface = intf->cur_altsetting; struct usb_device *dev = interface_to_usbdev (intf); struct hid_descriptor *hdesc; u32 quirks = 0; unsigned int rsize = 0...
static int usbhid_parse(struct hid_device *hid) { struct usb_interface *intf = to_usb_interface(hid->dev.parent); struct usb_host_interface *interface = intf->cur_altsetting; struct usb_device *dev = interface_to_usbdev (intf); struct hid_descriptor *hdesc; u32 quirks = 0; unsigned int rsize = 0...
static int usbhid_parse(struct hid_device *hid) { int ret, n; if (usb_get_extra_descriptor(interface, HID_DT_HID, &hdesc) && (!interface->desc.bNumEndpoints || usb_get_extra_descriptor(&interface->endpoint[0], HID_DT_HID, &hdesc))) { return -ENODEV; } hid->version = le16_to_cpu(hdesc->bcdHID); ...
static int usbhid_parse(struct hid_device *hid) { int ret, n; int num_descriptors; size_t offset = offsetof(struct hid_descriptor, desc); if (usb_get_extra_descriptor(interface, HID_DT_HID, &hdesc) && (!interface->desc.bNumEndpoints || usb_get_extra_descriptor(&interface->endpoint[0], HID_DT_HID, &hdesc...
static int usbhid_parse(struct hid_device *hid) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int ret, n; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (usb_get_extra_descriptor(interface, HID_DT_HID, &hdesc) && (!interface->desc.bNumEndpoints || usb_get_extra_descriptor(&interface->endpoint[0], HI...
static int usbhid_parse(struct hid_device *hid) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int ret, n; int num_descriptors; size_t offset = offsetof(struct hid_descriptor, desc); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (usb_get_extra_descriptor(interface, HID_DT_HID, &hdesc) && (!i...
static int usbhid_parse(struct hid_device *hid) { int ret, n; + int num_descriptors; + size_t offset = offsetof(struct hid_descriptor, desc); if (usb_get_extra_descriptor(interface, HID_DT_HID, &hdesc) && (!interface->desc.bNumEndpoints || usb_get_extra_descriptor(&interface->endpoint[0], HID_DT_HID, &...
CVE-2017-16535
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/usb/core/config.c
usb_get_bos_descriptor
int usb_get_bos_descriptor(struct usb_device *dev) { struct device *ddev = &dev->dev; struct usb_bos_descriptor *bos; struct usb_dev_cap_header *cap; unsigned char *buffer; int length, total_len, num, i; int ret; bos = kzalloc(sizeof(struct usb_bos_descriptor), GFP_KERNEL); if (!bos) { ...
int usb_get_bos_descriptor(struct usb_device *dev) { struct device *ddev = &dev->dev; struct usb_bos_descriptor *bos; struct usb_dev_cap_header *cap; unsigned char *buffer; int length, total_len, num, i; int ret; bos = kzalloc(sizeof(struct usb_bos_descriptor), GFP_KERNEL); if (!bos) { ...
int usb_get_bos_descriptor(struct usb_device *dev) { struct device *ddev = &dev->dev; struct usb_bos_descriptor *bos; struct usb_dev_cap_header *cap; unsigned char *buffer; int length, total_len, num, i; int ret; bos = kzalloc(sizeof(struct usb_bos_descriptor), GFP_KERNEL); if (!bos) { ...
int usb_get_bos_descriptor(struct usb_device *dev) { struct device *ddev = &dev->dev; struct usb_bos_descriptor *bos; struct usb_dev_cap_header *cap; unsigned char *buffer; int length, total_len, num, i; int ret; bos = kzalloc(sizeof(struct usb_bos_descriptor), GFP_KERNEL); if (!bos) { ...
int usb_get_bos_descriptor(struct usb_device *dev) { bos = kzalloc(sizeof(struct usb_bos_descriptor), GFP_KERNEL); if (!bos) { return -ENOMEM; } ret = usb_get_descriptor(dev, USB_DT_BOS, 0, bos, USB_DT_BOS_SIZE); length = bos->bLength; total_len = le16_to_cpu(bos->wTotalLength); num ...
int usb_get_bos_descriptor(struct usb_device *dev) { bos = kzalloc(sizeof(struct usb_bos_descriptor), GFP_KERNEL); if (!bos) { return -ENOMEM; } ret = usb_get_descriptor(dev, USB_DT_BOS, 0, bos, USB_DT_BOS_SIZE); length = bos->bLength; total_len = le16_to_cpu(bos->wTotalLength); num ...
int usb_get_bos_descriptor(struct usb_device *dev) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ bos = kzalloc(sizeof(struct usb_bos_descriptor), GFP_KERNEL); if (!bos) { return -ENOMEM; } ret = usb_get_descriptor(dev, USB_DT_BOS, 0, bos, USB_DT_BOS_SIZE); /* PLACEHOLDER: DO NOT DELETE...
int usb_get_bos_descriptor(struct usb_device *dev) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ bos = kzalloc(sizeof(struct usb_bos_descriptor), GFP_KERNEL); if (!bos) { return -ENOMEM; } ret = usb_get_descriptor(dev, USB_DT_BOS, 0, bos, USB_DT_BOS_SIZE); /* PLACEHOLDER: DO NOT DELETE...
int usb_get_bos_descriptor(struct usb_device *dev) { bos = kzalloc(sizeof(struct usb_bos_descriptor), GFP_KERNEL); if (!bos) { return -ENOMEM; } ret = usb_get_descriptor(dev, USB_DT_BOS, 0, bos, USB_DT_BOS_SIZE); length = bos->bLength; total_len = le16_to_cpu(bos->wTotalLength); ...
CVE-2017-16536
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/media/usb/cx231xx/cx231xx-cards.c
cx231xx_usb_probe
static int cx231xx_usb_probe(struct usb_interface *interface, const struct usb_device_id *id) { struct usb_device *udev; struct usb_interface *uif; struct cx231xx *dev = NULL; int retval = -ENODEV; int nr = 0, ifnum; int i, isoc_pipe = 0; char *speed; struct usb_interface_assoc_descripto...
static int cx231xx_usb_probe(struct usb_interface *interface, const struct usb_device_id *id) { struct usb_device *udev; struct usb_interface *uif; struct cx231xx *dev = NULL; int retval = -ENODEV; int nr = 0, ifnum; int i, isoc_pipe = 0; char *speed; struct usb_interface_assoc_descripto...
static int cx231xx_usb_probe(struct usb_interface *interface, const struct usb_device_id *id) { struct usb_device *udev; struct device *d = &interface->dev; struct usb_interface *uif; struct cx231xx *dev = NULL; int retval = -ENODEV; int nr = 0, ifnum; int i, isoc_pipe = 0; char *speed; ...
static int cx231xx_usb_probe(struct usb_interface *interface, const struct usb_device_id *id) { struct usb_device *udev; struct device *d = &interface->dev; struct usb_interface *uif; struct cx231xx *dev = NULL; int retval = -ENODEV; int nr = 0, ifnum; int i, isoc_pipe = 0; char *speed; ...
static int cx231xx_usb_probe(struct usb_interface *interface, const struct usb_device_id *id) { ifnum = interface->altsetting[0].desc.bInterfaceNumber; if (ifnum != 1) { return -ENODEV; } assoc_desc = udev->actconfig->intf_assoc[0]; assoc_desc = udev->actconfig->intf_assoc[0]; if (assoc_...
static int cx231xx_usb_probe(struct usb_interface *interface, const struct usb_device_id *id) { ifnum = interface->altsetting[0].desc.bInterfaceNumber; if (ifnum != 1) { return -ENODEV; } assoc_desc = udev->actconfig->intf_assoc[0]; assoc_desc = udev->actconfig->intf_assoc[0]; if (!assoc...
static int cx231xx_usb_probe(struct usb_interface *interface, const struct usb_device_id *id) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ifnum = interface->altsetting[0].desc.bInterfaceNumber; if (ifnum != 1) { return -ENODEV; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ dev->max...
static int cx231xx_usb_probe(struct usb_interface *interface, const struct usb_device_id *id) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ifnum = interface->altsetting[0].desc.bInterfaceNumber; if (ifnum != 1) { return -ENODEV; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ dev->max...
static int cx231xx_usb_probe(struct usb_interface *interface, const struct usb_device_id *id) { ifnum = interface->altsetting[0].desc.bInterfaceNumber; if (ifnum != 1) { return -ENODEV; } assoc_desc = udev->actconfig->intf_assoc[0]; assoc_desc = udev->actconfig->intf_assoc[0]; - if...
CVE-2017-16537
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/media/rc/imon.c
imon_probe
static int imon_probe(struct usb_interface *interface, const struct usb_device_id *id) { struct usb_device *usbdev = NULL; struct usb_host_interface *iface_desc = NULL; struct usb_interface *first_if; struct device *dev = &interface->dev; int ifnum, sysfs_err; int ret = 0; struct imon_contex...
static int imon_probe(struct usb_interface *interface, const struct usb_device_id *id) { struct usb_device *usbdev = NULL; struct usb_host_interface *iface_desc = NULL; struct usb_interface *first_if; struct device *dev = &interface->dev; int ifnum, sysfs_err; int ret = 0; struct imon_contex...
static int imon_probe(struct usb_interface *interface, const struct usb_device_id *id) { struct usb_device *usbdev = NULL; struct usb_host_interface *iface_desc = NULL; struct usb_interface *first_if; struct device *dev = &interface->dev; int ifnum, sysfs_err; int ret = 0; struct imon_contex...
static int imon_probe(struct usb_interface *interface, const struct usb_device_id *id) { struct usb_device *usbdev = NULL; struct usb_host_interface *iface_desc = NULL; struct usb_interface *first_if; struct device *dev = &interface->dev; int ifnum, sysfs_err; int ret = 0; struct imon_contex...
static int imon_probe(struct usb_interface *interface, const struct usb_device_id *id) { usbdev = usb_get_dev(interface_to_usbdev(interface)); first_if = usb_ifnum_to_if(usbdev, 0); first_if_ctx = usb_get_intfdata(first_if); if (ifnum == 0) { } else { if (!first_if_ctx) { goto fa...
static int imon_probe(struct usb_interface *interface, const struct usb_device_id *id) { usbdev = usb_get_dev(interface_to_usbdev(interface)); first_if = usb_ifnum_to_if(usbdev, 0); if (!first_if) { ret = -ENODEV; goto fail; } first_if_ctx = usb_get_intfdata(first_if); if (ifnum ...
static int imon_probe(struct usb_interface *interface, const struct usb_device_id *id) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ usbdev = usb_get_dev(interface_to_usbdev(interface)); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ first_if = usb_ifnum_to_if(usbdev, 0); first_if_ctx = usb_get_int...
static int imon_probe(struct usb_interface *interface, const struct usb_device_id *id) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ usbdev = usb_get_dev(interface_to_usbdev(interface)); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ first_if = usb_ifnum_to_if(usbdev, 0); if (!first_if) { r...
static int imon_probe(struct usb_interface *interface, const struct usb_device_id *id) { usbdev = usb_get_dev(interface_to_usbdev(interface)); first_if = usb_ifnum_to_if(usbdev, 0); + if (!first_if) { + ret = -ENODEV; + goto fail; + } first_if_ctx = usb_get_intfdata(first_if); i...
CVE-2017-16538
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/media/usb/dvb-usb-v2/lmedm04.c
lme2510_identify_state
static int lme2510_identify_state(struct dvb_usb_device *d, const char **name) { struct lme2510_state *st = d->priv; usb_reset_configuration(d->udev); usb_set_interface(d->udev, d->props->bInterfaceNumber, 1); st->dvb_usb_lme2510_firmware = dvb_usb_lme2510_firmware; if (lme2510_return_status(d) == 0...
static int lme2510_identify_state(struct dvb_usb_device *d, const char **name) { struct lme2510_state *st = d->priv; int status; usb_reset_configuration(d->udev); usb_set_interface(d->udev, d->props->bInterfaceNumber, 1); st->dvb_usb_lme2510_firmware = dvb_usb_lme2510_firmware; status = lme2510_...
static int lme2510_identify_state(struct dvb_usb_device *d, const char **name) { struct lme2510_state *st = d->priv; usb_reset_configuration(d->udev); usb_set_interface(d->udev, d->props->bInterfaceNumber, 1); st->dvb_usb_lme2510_firmware = dvb_usb_lme2510_firmware; if (lme2510_return_status(d) == 0...
static int lme2510_identify_state(struct dvb_usb_device *d, const char **name) { struct lme2510_state *st = d->priv; int status; usb_reset_configuration(d->udev); usb_set_interface(d->udev, d->props->bInterfaceNumber, 1); st->dvb_usb_lme2510_firmware = dvb_usb_lme2510_firmware; status = lme2510_...
static int lme2510_identify_state(struct dvb_usb_device *d, const char **name) { struct lme2510_state *st = d->priv; usb_reset_configuration(d->udev); st->dvb_usb_lme2510_firmware = dvb_usb_lme2510_firmware; if (lme2510_return_status(d) == 0x44) { *name = lme_firmware_switch(d, 0); retur...
static int lme2510_identify_state(struct dvb_usb_device *d, const char **name) { struct lme2510_state *st = d->priv; int status; usb_reset_configuration(d->udev); st->dvb_usb_lme2510_firmware = dvb_usb_lme2510_firmware; status = lme2510_return_status(d); if (status == 0x44) { *name = lme...
static int lme2510_identify_state(struct dvb_usb_device *d, const char **name) { struct lme2510_state *st = d->priv; usb_reset_configuration(d->udev); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ st->dvb_usb_lme2510_firmware = dvb_usb_lme2510_firmware; if (lme2510_return_status(d) == 0x44) { ...
static int lme2510_identify_state(struct dvb_usb_device *d, const char **name) { struct lme2510_state *st = d->priv; int status; usb_reset_configuration(d->udev); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ st->dvb_usb_lme2510_firmware = dvb_usb_lme2510_firmware; status = lme2510_return_status...
static int lme2510_identify_state(struct dvb_usb_device *d, const char **name) { struct lme2510_state *st = d->priv; + int status; usb_reset_configuration(d->udev); st->dvb_usb_lme2510_firmware = dvb_usb_lme2510_firmware; - if (lme2510_return_status(d) == 0x44) { + status = lme2510_return_statu...
CVE-2017-16538
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/media/usb/dvb-usb-v2/lmedm04.c
lme2510_return_status
static int lme2510_return_status(struct dvb_usb_device *d) { int ret = 0; u8 *data; data = kzalloc(10, GFP_KERNEL); if (!data) { return -ENOMEM; } ret |= usb_control_msg(d->udev, usb_rcvctrlpipe(d->udev, 0), 0x06, 0x80, 0x0302, 0x00, data, 0x0006, 200); info("Firmware Status: %x (%x)...
static int lme2510_return_status(struct dvb_usb_device *d) { int ret; u8 *data; data = kzalloc(6, GFP_KERNEL); if (!data) { return -ENOMEM; } ret = usb_control_msg(d->udev, usb_rcvctrlpipe(d->udev, 0), 0x06, 0x80, 0x0302, 0x00, data, 0x6, 200); if (ret != 6) { ret = -EVAL; ...
static int lme2510_return_status(struct dvb_usb_device *d) { int ret = 0; u8 *data; data = kzalloc(10, GFP_KERNEL); if (!data) { return -ENOMEM; } ret |= usb_control_msg(d->udev, usb_rcvctrlpipe(d->udev, 0), 0x06, 0x80, 0x0302, 0x00, data, 0x0006, 200); info("Firmware Status: %x (%x)...
static int lme2510_return_status(struct dvb_usb_device *d) { int ret; u8 *data; data = kzalloc(6, GFP_KERNEL); if (!data) { return -ENOMEM; } ret = usb_control_msg(d->udev, usb_rcvctrlpipe(d->udev, 0), 0x06, 0x80, 0x0302, 0x00, data, 0x6, 200); if (ret != 6) { ret = -EVAL; ...
static int lme2510_return_status(struct dvb_usb_device *d) { int ret = 0; u8 *data; data = kzalloc(10, GFP_KERNEL); if (!data) { return -ENOMEM; } ret |= usb_control_msg(d->udev, usb_rcvctrlpipe(d->udev, 0), 0x06, 0x80, 0x0302, 0x00, data, 0x0006, 200); info("Firmware Status: %x (%x)...
static int lme2510_return_status(struct dvb_usb_device *d) { int ret; u8 *data; data = kzalloc(6, GFP_KERNEL); if (!data) { return -ENOMEM; } ret = usb_control_msg(d->udev, usb_rcvctrlpipe(d->udev, 0), 0x06, 0x80, 0x0302, 0x00, data, 0x6, 200); if (ret != 6) { ret = -EVAL; ...
static int lme2510_return_status(struct dvb_usb_device *d) { int ret = 0; u8 *data; data = kzalloc(10, GFP_KERNEL); if (!data) { return -ENOMEM; } ret |= usb_control_msg(d->udev, usb_rcvctrlpipe(d->udev, 0), 0x06, 0x80, 0x0302, 0x00, data, 0x0006, 200); info("Firmware Status: %x (%x)...
static int lme2510_return_status(struct dvb_usb_device *d) { int ret; u8 *data; data = kzalloc(6, GFP_KERNEL); if (!data) { return -ENOMEM; } ret = usb_control_msg(d->udev, usb_rcvctrlpipe(d->udev, 0), 0x06, 0x80, 0x0302, 0x00, data, 0x6, 200); if (ret != 6) { ret = -EVAL; ...
static int lme2510_return_status(struct dvb_usb_device *d) { - int ret = 0; + int ret; u8 *data; - data = kzalloc(10, GFP_KERNEL); + data = kzalloc(6, GFP_KERNEL); if (!data) { return -ENOMEM; } - ret |= usb_control_msg(d->udev, usb_rcvctrlpipe(d->udev, 0), 0x06, 0x80, 0x0302, 0x...
CVE-2017-16643
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/input/tablet/gtco.c
parse_hid_report_descriptor
static void parse_hid_report_descriptor(struct gtco *device, char * report, int length) { struct device *ddev = &device->intf->dev; int x, i = 0; __u8 prefix; __u8 size; __u8 tag; __u8 type; __u8 data = 0; __u16 data16 = 0; __u32 data32 = 0; int inputnum = 0; __u32 usage = 0;...
static void parse_hid_report_descriptor(struct gtco *device, char * report, int length) { struct device *ddev = &device->intf->dev; int x, i = 0; __u8 prefix; __u8 size; __u8 tag; __u8 type; __u8 data = 0; __u16 data16 = 0; __u32 data32 = 0; int inputnum = 0; __u32 usage = 0;...
static void parse_hid_report_descriptor(struct gtco *device, char * report, int length) { int x, i = 0; __u8 prefix; __u8 size; __u8 tag; __u8 type; __u8 data = 0; __u16 data16 = 0; __u32 data32 = 0; int inputnum = 0; __u32 usage = 0; __u32 globalval[TAG_GLOB_MAX]; __u32 ...
static void parse_hid_report_descriptor(struct gtco *device, char * report, int length) { int x, i = 0; __u8 prefix; __u8 size; __u8 tag; __u8 type; __u8 data = 0; __u16 data16 = 0; __u32 data32 = 0; int inputnum = 0; __u32 usage = 0; __u32 globalval[TAG_GLOB_MAX]; __u32 ...
static void parse_hid_report_descriptor(struct gtco *device, char * report, int length) { struct device *ddev = &device->intf->dev; int x, i = 0; dev_dbg(ddev, "======>>>>>>PARSE<<<<<<======\n"); while (i < length) { prefix = report[i]; i++; size = PREF_SIZE(prefix); swit...
static void parse_hid_report_descriptor(struct gtco *device, char * report, int length) { struct device *ddev = &device->intf->dev; int x, i = 0; dev_dbg(ddev, "======>>>>>>PARSE<<<<<<======\n"); while (i < length) { prefix = report[i++]; size = (1U << PREF_SIZE(prefix)) >> 1; if...
static void parse_hid_report_descriptor(struct gtco *device, char * report, int length) { int x, i = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ dbg("======>>>>>>PARSE<<<<<<======"); while (i < length) { prefix = report[i]; i++; size = PREF_SIZE(prefix); switch (size...
static void parse_hid_report_descriptor(struct gtco *device, char * report, int length) { int x, i = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ dbg("======>>>>>>PARSE<<<<<<======"); while (i < length) { prefix = report[i++]; size = (1U << PREF_SIZE(prefix)) >> 1; if (i + si...
static void parse_hid_report_descriptor(struct gtco *device, char * report, int length) { struct device *ddev = &device->intf->dev; int x, i = 0; dev_dbg(ddev, "======>>>>>>PARSE<<<<<<======\n"); while (i < length) { - prefix = report[i]; - i++; - size = PREF_SIZE(prefix); + ...
CVE-2017-16644
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/media/usb/hdpvr/hdpvr-core.c
hdpvr_probe
static int hdpvr_probe(struct usb_interface *interface, const struct usb_device_id *id) { struct hdpvr_device *dev; struct usb_host_interface *iface_desc; struct usb_endpoint_descriptor *endpoint; struct i2c_client *client; size_t buffer_size; int i; int retval = -ENOMEM; dev = kzalloc(s...
static int hdpvr_probe(struct usb_interface *interface, const struct usb_device_id *id) { struct hdpvr_device *dev; struct usb_host_interface *iface_desc; struct usb_endpoint_descriptor *endpoint; struct i2c_client *client; size_t buffer_size; int i; int retval = -ENOMEM; dev = kzalloc(s...
static int hdpvr_probe(struct usb_interface *interface, const struct usb_device_id *id) { struct hdpvr_device *dev; struct usb_host_interface *iface_desc; struct usb_endpoint_descriptor *endpoint; struct i2c_client *client; size_t buffer_size; int i; int retval = -ENOMEM; dev = kzalloc(s...
static int hdpvr_probe(struct usb_interface *interface, const struct usb_device_id *id) { struct hdpvr_device *dev; struct usb_host_interface *iface_desc; struct usb_endpoint_descriptor *endpoint; struct i2c_client *client; size_t buffer_size; int i; int retval = -ENOMEM; dev = kzalloc(s...
static int hdpvr_probe(struct usb_interface *interface, const struct usb_device_id *id) { dev = kzalloc(sizeof(*dev), GFP_KERNEL); if (!dev) { dev_err(&interface->dev, "Out of memory\n"); goto error; } if (v4l2_device_register(&interface->dev, &dev->v4l2_dev)) { dev_err(&interfac...
static int hdpvr_probe(struct usb_interface *interface, const struct usb_device_id *id) { dev = kzalloc(sizeof(*dev), GFP_KERNEL); if (!dev) { dev_err(&interface->dev, "Out of memory\n"); goto error; } if (v4l2_device_register(&interface->dev, &dev->v4l2_dev)) { dev_err(&interfac...
static int hdpvr_probe(struct usb_interface *interface, const struct usb_device_id *id) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ dev = kzalloc(sizeof(*dev), GFP_KERNEL); if (!dev) { dev_err(&interface->dev, "Out of memory\n"); goto error; } /* PLACEHOLDER: DO NOT DELETE THIS C...
static int hdpvr_probe(struct usb_interface *interface, const struct usb_device_id *id) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ dev = kzalloc(sizeof(*dev), GFP_KERNEL); if (!dev) { dev_err(&interface->dev, "Out of memory\n"); goto error; } /* PLACEHOLDER: DO NOT DELETE THIS C...
static int hdpvr_probe(struct usb_interface *interface, const struct usb_device_id *id) { dev = kzalloc(sizeof(*dev), GFP_KERNEL); if (!dev) { dev_err(&interface->dev, "Out of memory\n"); goto error; } if (v4l2_device_register(&interface->dev, &dev->v4l2_dev)) { dev_err(&...
CVE-2017-16645
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/input/misc/ims-pcu.c
ims_pcu_get_cdc_union_desc
static const struct usb_cdc_union_desc * ims_pcu_get_cdc_union_desc(struct usb_interface *intf) { const void *buf = intf->altsetting->extra; size_t buflen = intf->altsetting->extralen; struct usb_cdc_union_desc *union_desc; if (!buf) { dev_err(&intf->dev, "Missing descriptor data\n"); re...
static const struct usb_cdc_union_desc * ims_pcu_get_cdc_union_desc(struct usb_interface *intf) { const void *buf = intf->altsetting->extra; size_t buflen = intf->altsetting->extralen; struct usb_cdc_union_desc *union_desc; if (!buf) { dev_err(&intf->dev, "Missing descriptor data\n"); re...
static const struct usb_cdc_union_desc * ims_pcu_get_cdc_union_desc(struct usb_interface *intf) { const void *buf = intf->altsetting->extra; size_t buflen = intf->altsetting->extralen; struct usb_cdc_union_desc *union_desc; if (!buf) { dev_err(&intf->dev, "Missing descriptor data\n"); re...
static const struct usb_cdc_union_desc * ims_pcu_get_cdc_union_desc(struct usb_interface *intf) { const void *buf = intf->altsetting->extra; size_t buflen = intf->altsetting->extralen; struct usb_cdc_union_desc *union_desc; if (!buf) { dev_err(&intf->dev, "Missing descriptor data\n"); re...
static const struct usb_cdc_union_desc * ims_pcu_get_cdc_union_desc(struct usb_interface *intf) { const void *buf = intf->altsetting->extra; size_t buflen = intf->altsetting->extralen; if (!buf) { return NULL; } if (!buflen) { return NULL; } while (buflen > 0) { union...
static const struct usb_cdc_union_desc * ims_pcu_get_cdc_union_desc(struct usb_interface *intf) { const void *buf = intf->altsetting->extra; size_t buflen = intf->altsetting->extralen; if (!buf) { return NULL; } if (!buflen) { return NULL; } while (buflen >= sizeof(*union_des...
static const struct usb_cdc_union_desc * ims_pcu_get_cdc_union_desc(struct usb_interface *intf) { const void *buf = intf->altsetting->extra; size_t buflen = intf->altsetting->extralen; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!buf) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ret...
static const struct usb_cdc_union_desc * ims_pcu_get_cdc_union_desc(struct usb_interface *intf) { const void *buf = intf->altsetting->extra; size_t buflen = intf->altsetting->extralen; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!buf) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ret...
static const struct usb_cdc_union_desc * ims_pcu_get_cdc_union_desc(struct usb_interface *intf) { const void *buf = intf->altsetting->extra; size_t buflen = intf->altsetting->extralen; if (!buf) { return NULL; } if (!buflen) { return NULL; } - while (buflen > 0) { + ...
CVE-2017-16646
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/media/usb/dvb-usb/dib0700_devices.c
nim7090_frontend_attach
static int nim7090_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } dib0700_set_gpio(adap->dev, GPIO6, GPIO_, 1); msleep(20); dib0700_set_gpio(adap->dev, GPIO9, GP...
static int nim7090_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } dib0700_set_gpio(adap->dev, GPIO6, GPIO_, 1); msleep(20); dib0700_set_gpio(adap->dev, GPIO9, GP...
static int nim7090_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } dib0700_set_gpio(adap->dev, GPIO6, GPIO_, 1); msleep(20); dib0700_set_gpio(adap->dev, GPIO9, GP...
static int nim7090_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } dib0700_set_gpio(adap->dev, GPIO6, GPIO_, 1); msleep(20); dib0700_set_gpio(adap->dev, GPIO9, GP...
static int nim7090_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 0x10, &nim7090_dib7000p_config) != 0) { err("%s: state->dib7000p_ops.i2c_enumeration failed. Cannot continue\n", __func__...
static int nim7090_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 0x10, &nim7090_dib7000p_config) != 0) { err("%s: state->dib7000p_ops.i2c_enumeration failed. Cannot continue\n", __func__...
static int nim7090_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 0x10, &nim7090_dib7000p_config) != 0) { err("%s: state->dib7000p_ops.i2c...
static int nim7090_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 0x10, &nim7090_dib7000p_config) != 0) { err("%s: state->dib7000p_ops.i2c...
static int nim7090_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 0x10, &nim7090_dib7000p_config) != 0) { err("%s: state->dib7000p_ops.i2c_enumeration failed. Cannot continue\n", __fu...
CVE-2017-16646
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/media/usb/dvb-usb/dib0700_devices.c
novatd_frontend_attach
static int novatd_frontend_attach(struct dvb_usb_adapter *adap) { struct dvb_usb_device *dev = adap->dev; struct dib0700_state *st = dev->priv; struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } if (adap->id == 0)...
static int novatd_frontend_attach(struct dvb_usb_adapter *adap) { struct dvb_usb_device *dev = adap->dev; struct dib0700_state *st = dev->priv; struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } if (adap->id == 0)...
static int novatd_frontend_attach(struct dvb_usb_adapter *adap) { struct dvb_usb_device *dev = adap->dev; struct dib0700_state *st = dev->priv; struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } if (adap->id == 0)...
static int novatd_frontend_attach(struct dvb_usb_adapter *adap) { struct dvb_usb_device *dev = adap->dev; struct dib0700_state *st = dev->priv; struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } if (adap->id == 0)...
static int novatd_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (adap->id == 0) { if (state->dib7000p_ops.i2c_enumeration(&dev->i2c_adap, 2, 18, stk7070pd_dib7000p_config) != 0) { err("%s: state->dib7000p_ops.i2c_enumeration failed. Can...
static int novatd_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (adap->id == 0) { if (state->dib7000p_ops.i2c_enumeration(&dev->i2c_adap, 2, 18, stk7070pd_dib7000p_config) != 0) { err("%s: state->dib7000p_ops.i2c_enumeration failed. Can...
static int novatd_frontend_attach(struct dvb_usb_adapter *adap) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct dib0700_adapter_state *state = adap->priv; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (adap->id == 0) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (state->dib700...
static int novatd_frontend_attach(struct dvb_usb_adapter *adap) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct dib0700_adapter_state *state = adap->priv; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (adap->id == 0) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (state->dib700...
static int novatd_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (adap->id == 0) { if (state->dib7000p_ops.i2c_enumeration(&dev->i2c_adap, 2, 18, stk7070pd_dib7000p_config) != 0) { err("%s: state->dib7000p_ops.i2c_enumeration failed....
CVE-2017-16646
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/media/usb/dvb-usb/dib0700_devices.c
pctv340e_frontend_attach
static int pctv340e_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_state *st = adap->dev->priv; struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } dib0700_set_gpio(adap->dev, GPIO6, GPIO_, 0); msle...
static int pctv340e_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_state *st = adap->dev->priv; struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } dib0700_set_gpio(adap->dev, GPIO6, GPIO_, 0); msle...
static int pctv340e_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_state *st = adap->dev->priv; struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } dib0700_set_gpio(adap->dev, GPIO6, GPIO_, 0); msle...
static int pctv340e_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_state *st = adap->dev->priv; struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } dib0700_set_gpio(adap->dev, GPIO6, GPIO_, 0); msle...
static int pctv340e_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (state->dib7000p_ops.dib7000pc_detection(&adap->dev->i2c_adap) == 0) { dvb_detach(&state->dib7000p_ops); return -ENODEV; } }
static int pctv340e_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (state->dib7000p_ops.dib7000pc_detection(&adap->dev->i2c_adap) == 0) { dvb_detach(state->dib7000p_ops.set_wbd_ref); return -ENODEV; } }
static int pctv340e_frontend_attach(struct dvb_usb_adapter *adap) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct dib0700_adapter_state *state = adap->priv; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (state->dib7000p_ops.dib7000pc_detection(&adap->dev->i2c_adap) == 0) { dvb_detach(&...
static int pctv340e_frontend_attach(struct dvb_usb_adapter *adap) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct dib0700_adapter_state *state = adap->priv; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (state->dib7000p_ops.dib7000pc_detection(&adap->dev->i2c_adap) == 0) { dvb_detach(s...
static int pctv340e_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (state->dib7000p_ops.dib7000pc_detection(&adap->dev->i2c_adap) == 0) { - dvb_detach(&state->dib7000p_ops); + dvb_detach(state->dib7000p_ops.set_wbd_ref); return -ENO...
CVE-2017-16646
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/media/usb/dvb-usb/dib0700_devices.c
stk7070p_frontend_attach
static int stk7070p_frontend_attach(struct dvb_usb_adapter *adap) { struct usb_device_descriptor *p = &adap->dev->udev->descriptor; struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } if (p->idVendor == cpu_to_le16(USB...
static int stk7070p_frontend_attach(struct dvb_usb_adapter *adap) { struct usb_device_descriptor *p = &adap->dev->udev->descriptor; struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } if (p->idVendor == cpu_to_le16(USB...
static int stk7070p_frontend_attach(struct dvb_usb_adapter *adap) { struct usb_device_descriptor *p = &adap->dev->udev->descriptor; struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } if (p->idVendor == cpu_to_le16(USB...
static int stk7070p_frontend_attach(struct dvb_usb_adapter *adap) { struct usb_device_descriptor *p = &adap->dev->udev->descriptor; struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } if (p->idVendor == cpu_to_le16(USB...
static int stk7070p_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 18, &dib7070p_dib7000p_config) != 0) { err("%s: state->dib7000p_ops.i2c_enumeration failed. Cannot continue\n", __func__...
static int stk7070p_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 18, &dib7070p_dib7000p_config) != 0) { err("%s: state->dib7000p_ops.i2c_enumeration failed. Cannot continue\n", __func__...
static int stk7070p_frontend_attach(struct dvb_usb_adapter *adap) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct dib0700_adapter_state *state = adap->priv; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 18, &dib7070p_dib7000p_config...
static int stk7070p_frontend_attach(struct dvb_usb_adapter *adap) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct dib0700_adapter_state *state = adap->priv; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 18, &dib7070p_dib7000p_config...
static int stk7070p_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 18, &dib7070p_dib7000p_config) != 0) { err("%s: state->dib7000p_ops.i2c_enumeration failed. Cannot continue\n", __fu...
CVE-2017-16646
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/media/usb/dvb-usb/dib0700_devices.c
stk7070pd_frontend_attach0
static int stk7070pd_frontend_attach0(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } stk7070pd_init(adap->dev); msleep(10); dib0700_set_gpio(adap->dev, GPIO0, GPIO_, 1); if ...
static int stk7070pd_frontend_attach0(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } stk7070pd_init(adap->dev); msleep(10); dib0700_set_gpio(adap->dev, GPIO0, GPIO_, 1); if ...
static int stk7070pd_frontend_attach0(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } stk7070pd_init(adap->dev); msleep(10); dib0700_set_gpio(adap->dev, GPIO0, GPIO_, 1); if ...
static int stk7070pd_frontend_attach0(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } stk7070pd_init(adap->dev); msleep(10); dib0700_set_gpio(adap->dev, GPIO0, GPIO_, 1); if ...
static int stk7070pd_frontend_attach0(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 2, 18, stk7070pd_dib7000p_config) != 0) { err("%s: state->dib7000p_ops.i2c_enumeration failed. Cannot continue\n", __func...
static int stk7070pd_frontend_attach0(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 2, 18, stk7070pd_dib7000p_config) != 0) { err("%s: state->dib7000p_ops.i2c_enumeration failed. Cannot continue\n", __func...
static int stk7070pd_frontend_attach0(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 2, 18, stk7070pd_dib7000p_config) != 0) { err("%s: state->dib7000p_ops.i...
static int stk7070pd_frontend_attach0(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 2, 18, stk7070pd_dib7000p_config) != 0) { err("%s: state->dib7000p_ops.i...
static int stk7070pd_frontend_attach0(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 2, 18, stk7070pd_dib7000p_config) != 0) { err("%s: state->dib7000p_ops.i2c_enumeration failed. Cannot continue\n", __...
CVE-2017-16646
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/media/usb/dvb-usb/dib0700_devices.c
stk7700P2_frontend_attach
static int stk7700P2_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } if (adap->id == 0) { dib0700_set_gpio(adap->dev, GPIO6, GPIO_, 1); msleep(10); ...
static int stk7700P2_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } if (adap->id == 0) { dib0700_set_gpio(adap->dev, GPIO6, GPIO_, 1); msleep(10); ...
static int stk7700P2_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } if (adap->id == 0) { dib0700_set_gpio(adap->dev, GPIO6, GPIO_, 1); msleep(10); ...
static int stk7700P2_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } if (adap->id == 0) { dib0700_set_gpio(adap->dev, GPIO6, GPIO_, 1); msleep(10); ...
static int stk7700P2_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (adap->id == 0) { if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 18, stk7700d_dib7000p_mt2266_config) != 0) { err("%s: state->dib7000p_o...
static int stk7700P2_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (adap->id == 0) { if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 18, stk7700d_dib7000p_mt2266_config) != 0) { err("%s: state->dib7000p_o...
static int stk7700P2_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (adap->id == 0) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1,...
static int stk7700P2_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (adap->id == 0) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1,...
static int stk7700P2_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (adap->id == 0) { if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 18, stk7700d_dib7000p_mt2266_config) != 0) { err("%s: state->dib7...
CVE-2017-16646
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/media/usb/dvb-usb/dib0700_devices.c
stk7700d_frontend_attach
static int stk7700d_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } if (adap->id == 0) { dib0700_set_gpio(adap->dev, GPIO6, GPIO_, 1); msleep(10); ...
static int stk7700d_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } if (adap->id == 0) { dib0700_set_gpio(adap->dev, GPIO6, GPIO_, 1); msleep(10); ...
static int stk7700d_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } if (adap->id == 0) { dib0700_set_gpio(adap->dev, GPIO6, GPIO_, 1); msleep(10); ...
static int stk7700d_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } if (adap->id == 0) { dib0700_set_gpio(adap->dev, GPIO6, GPIO_, 1); msleep(10); ...
static int stk7700d_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (adap->id == 0) { if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 2, 18, stk7700d_dib7000p_mt2266_config) != 0) { err("%s: state->dib7000p_op...
static int stk7700d_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (adap->id == 0) { if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 2, 18, stk7700d_dib7000p_mt2266_config) != 0) { err("%s: state->dib7000p_op...
static int stk7700d_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (adap->id == 0) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 2, ...
static int stk7700d_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (adap->id == 0) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 2, ...
static int stk7700d_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (adap->id == 0) { if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 2, 18, stk7700d_dib7000p_mt2266_config) != 0) { err("%s: state->dib70...
CVE-2017-16646
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/media/usb/dvb-usb/dib0700_devices.c
stk7700ph_frontend_attach
static int stk7700ph_frontend_attach(struct dvb_usb_adapter *adap) { struct usb_device_descriptor *desc = &adap->dev->udev->descriptor; struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } if (desc->idVendor == cpu_to_l...
static int stk7700ph_frontend_attach(struct dvb_usb_adapter *adap) { struct usb_device_descriptor *desc = &adap->dev->udev->descriptor; struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } if (desc->idVendor == cpu_to_l...
static int stk7700ph_frontend_attach(struct dvb_usb_adapter *adap) { struct usb_device_descriptor *desc = &adap->dev->udev->descriptor; struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } if (desc->idVendor == cpu_to_l...
static int stk7700ph_frontend_attach(struct dvb_usb_adapter *adap) { struct usb_device_descriptor *desc = &adap->dev->udev->descriptor; struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } if (desc->idVendor == cpu_to_l...
static int stk7700ph_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 18, &stk7700ph_dib7700_xc3028_config) != 0) { err("%s: state->dib7000p_ops.i2c_enumeration failed. Cannot continue\n", ...
static int stk7700ph_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 18, &stk7700ph_dib7700_xc3028_config) != 0) { err("%s: state->dib7000p_ops.i2c_enumeration failed. Cannot continue\n", ...
static int stk7700ph_frontend_attach(struct dvb_usb_adapter *adap) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct dib0700_adapter_state *state = adap->priv; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 18, &stk7700ph_dib7700_xc302...
static int stk7700ph_frontend_attach(struct dvb_usb_adapter *adap) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct dib0700_adapter_state *state = adap->priv; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 18, &stk7700ph_dib7700_xc302...
static int stk7700ph_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 18, &stk7700ph_dib7700_xc3028_config) != 0) { err("%s: state->dib7000p_ops.i2c_enumeration failed. Cannot continue\...
CVE-2017-16646
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/media/usb/dvb-usb/dib0700_devices.c
stk7770p_frontend_attach
static int stk7770p_frontend_attach(struct dvb_usb_adapter *adap) { struct usb_device_descriptor *p = &adap->dev->udev->descriptor; struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } if (p->idVendor == cpu_to_le16(USB...
static int stk7770p_frontend_attach(struct dvb_usb_adapter *adap) { struct usb_device_descriptor *p = &adap->dev->udev->descriptor; struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } if (p->idVendor == cpu_to_le16(USB...
static int stk7770p_frontend_attach(struct dvb_usb_adapter *adap) { struct usb_device_descriptor *p = &adap->dev->udev->descriptor; struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } if (p->idVendor == cpu_to_le16(USB...
static int stk7770p_frontend_attach(struct dvb_usb_adapter *adap) { struct usb_device_descriptor *p = &adap->dev->udev->descriptor; struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } if (p->idVendor == cpu_to_le16(USB...
static int stk7770p_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 18, &dib7770p_dib7000p_config) != 0) { err("%s: state->dib7000p_ops.i2c_enumeration failed. Cannot continue\n", __func__...
static int stk7770p_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 18, &dib7770p_dib7000p_config) != 0) { err("%s: state->dib7000p_ops.i2c_enumeration failed. Cannot continue\n", __func__...
static int stk7770p_frontend_attach(struct dvb_usb_adapter *adap) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct dib0700_adapter_state *state = adap->priv; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 18, &dib7770p_dib7000p_config...
static int stk7770p_frontend_attach(struct dvb_usb_adapter *adap) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct dib0700_adapter_state *state = adap->priv; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 18, &dib7770p_dib7000p_config...
static int stk7770p_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 18, &dib7770p_dib7000p_config) != 0) { err("%s: state->dib7000p_ops.i2c_enumeration failed. Cannot continue\n", __fu...
CVE-2017-16646
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/media/usb/dvb-usb/dib0700_devices.c
tfe7090pvr_frontend0_attach
static int tfe7090pvr_frontend0_attach(struct dvb_usb_adapter *adap) { struct dib0700_state *st = adap->dev->priv; struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } st->disable_streaming_master_mode = 1; dib0700_...
static int tfe7090pvr_frontend0_attach(struct dvb_usb_adapter *adap) { struct dib0700_state *st = adap->dev->priv; struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } st->disable_streaming_master_mode = 1; dib0700_...
static int tfe7090pvr_frontend0_attach(struct dvb_usb_adapter *adap) { struct dib0700_state *st = adap->dev->priv; struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } st->disable_streaming_master_mode = 1; dib0700_...
static int tfe7090pvr_frontend0_attach(struct dvb_usb_adapter *adap) { struct dib0700_state *st = adap->dev->priv; struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } st->disable_streaming_master_mode = 1; dib0700_...
static int tfe7090pvr_frontend0_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 0x20, &tfe7090pvr_dib7000p_config[0]) != 0) { err("%s: state->dib7000p_ops.i2c_enumeration failed. Cannot continue\n"...
static int tfe7090pvr_frontend0_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 0x20, &tfe7090pvr_dib7000p_config[0]) != 0) { err("%s: state->dib7000p_ops.i2c_enumeration failed. Cannot continue\n"...
static int tfe7090pvr_frontend0_attach(struct dvb_usb_adapter *adap) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct dib0700_adapter_state *state = adap->priv; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 0x20, &tfe7090pvr_dib7000p...
static int tfe7090pvr_frontend0_attach(struct dvb_usb_adapter *adap) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct dib0700_adapter_state *state = adap->priv; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 0x20, &tfe7090pvr_dib7000p...
static int tfe7090pvr_frontend0_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 0x20, &tfe7090pvr_dib7000p_config[0]) != 0) { err("%s: state->dib7000p_ops.i2c_enumeration failed. Cannot continu...
CVE-2017-16646
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/media/usb/dvb-usb/dib0700_devices.c
tfe7090pvr_frontend1_attach
static int tfe7090pvr_frontend1_attach(struct dvb_usb_adapter *adap) { struct i2c_adapter *i2c; struct dib0700_adapter_state *state = adap->priv; if (adap->dev->adapter[0].fe_adap[0].fe == NULL) { err("the master dib7090 has to be initialized first"); return -ENODEV; } if (!dvb_attac...
static int tfe7090pvr_frontend1_attach(struct dvb_usb_adapter *adap) { struct i2c_adapter *i2c; struct dib0700_adapter_state *state = adap->priv; if (adap->dev->adapter[0].fe_adap[0].fe == NULL) { err("the master dib7090 has to be initialized first"); return -ENODEV; } if (!dvb_attac...
static int tfe7090pvr_frontend1_attach(struct dvb_usb_adapter *adap) { struct i2c_adapter *i2c; struct dib0700_adapter_state *state = adap->priv; if (adap->dev->adapter[0].fe_adap[0].fe == NULL) { err("the master dib7090 has to be initialized first"); return -ENODEV; } if (!dvb_attac...
static int tfe7090pvr_frontend1_attach(struct dvb_usb_adapter *adap) { struct i2c_adapter *i2c; struct dib0700_adapter_state *state = adap->priv; if (adap->dev->adapter[0].fe_adap[0].fe == NULL) { err("the master dib7090 has to be initialized first"); return -ENODEV; } if (!dvb_attac...
static int tfe7090pvr_frontend1_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (state->dib7000p_ops.i2c_enumeration(i2c, 1, 0x10, &tfe7090pvr_dib7000p_config[1]) != 0) { err("%s: state->dib7000p_ops.i2c_enumeration failed. Cannot continue\n", __func__); ...
static int tfe7090pvr_frontend1_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (state->dib7000p_ops.i2c_enumeration(i2c, 1, 0x10, &tfe7090pvr_dib7000p_config[1]) != 0) { err("%s: state->dib7000p_ops.i2c_enumeration failed. Cannot continue\n", __func__); ...
static int tfe7090pvr_frontend1_attach(struct dvb_usb_adapter *adap) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct dib0700_adapter_state *state = adap->priv; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (state->dib7000p_ops.i2c_enumeration(i2c, 1, 0x10, &tfe7090pvr_dib7000p_config[1]) != 0)...
static int tfe7090pvr_frontend1_attach(struct dvb_usb_adapter *adap) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct dib0700_adapter_state *state = adap->priv; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (state->dib7000p_ops.i2c_enumeration(i2c, 1, 0x10, &tfe7090pvr_dib7000p_config[1]) != 0)...
static int tfe7090pvr_frontend1_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (state->dib7000p_ops.i2c_enumeration(i2c, 1, 0x10, &tfe7090pvr_dib7000p_config[1]) != 0) { err("%s: state->dib7000p_ops.i2c_enumeration failed. Cannot continue\n", __func__); ...
CVE-2017-16646
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/media/usb/dvb-usb/dib0700_devices.c
tfe7790p_frontend_attach
static int tfe7790p_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_state *st = adap->dev->priv; struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } st->disable_streaming_master_mode = 1; dib0700_set...
static int tfe7790p_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_state *st = adap->dev->priv; struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } st->disable_streaming_master_mode = 1; dib0700_set...
static int tfe7790p_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_state *st = adap->dev->priv; struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } st->disable_streaming_master_mode = 1; dib0700_set...
static int tfe7790p_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_state *st = adap->dev->priv; struct dib0700_adapter_state *state = adap->priv; if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) { return -ENODEV; } st->disable_streaming_master_mode = 1; dib0700_set...
static int tfe7790p_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 0x10, &tfe7790p_dib7000p_config) != 0) { err("%s: state->dib7000p_ops.i2c_enumeration failed. Cannot continue\n", __func...
static int tfe7790p_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 0x10, &tfe7790p_dib7000p_config) != 0) { err("%s: state->dib7000p_ops.i2c_enumeration failed. Cannot continue\n", __func...
static int tfe7790p_frontend_attach(struct dvb_usb_adapter *adap) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct dib0700_adapter_state *state = adap->priv; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 0x10, &tfe7790p_dib7000p_conf...
static int tfe7790p_frontend_attach(struct dvb_usb_adapter *adap) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct dib0700_adapter_state *state = adap->priv; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 0x10, &tfe7790p_dib7000p_conf...
static int tfe7790p_frontend_attach(struct dvb_usb_adapter *adap) { struct dib0700_adapter_state *state = adap->priv; if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 0x10, &tfe7790p_dib7000p_config) != 0) { err("%s: state->dib7000p_ops.i2c_enumeration failed. Cannot continue\n", __...
CVE-2017-16649
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/net/usb/cdc_ether.c
usbnet_generic_cdc_bind
int usbnet_generic_cdc_bind(struct usbnet *dev, struct usb_interface *intf) { u8 *buf = intf->cur_altsetting->extra; int len = intf->cur_altsetting->extralen; struct usb_interface_descriptor *d; struct cdc_state *info = (void *) &dev->data; int status; int rndis; bool android_rndis_quirk = f...
int usbnet_generic_cdc_bind(struct usbnet *dev, struct usb_interface *intf) { u8 *buf = intf->cur_altsetting->extra; int len = intf->cur_altsetting->extralen; struct usb_interface_descriptor *d; struct cdc_state *info = (void *) &dev->data; int status; int rndis; bool android_rndis_quirk = f...
int usbnet_generic_cdc_bind(struct usbnet *dev, struct usb_interface *intf) { u8 *buf = intf->cur_altsetting->extra; int len = intf->cur_altsetting->extralen; struct usb_interface_descriptor *d; struct cdc_state *info = (void *) &dev->data; int status; int rndis; bool android_rndis_quirk = f...
int usbnet_generic_cdc_bind(struct usbnet *dev, struct usb_interface *intf) { u8 *buf = intf->cur_altsetting->extra; int len = intf->cur_altsetting->extralen; struct usb_interface_descriptor *d; struct cdc_state *info = (void *) &dev->data; int status; int rndis; bool android_rndis_quirk = f...
int usbnet_generic_cdc_bind(struct usbnet *dev, struct usb_interface *intf) { skip: if ( rndis && header.usb_cdc_acm_descriptor && header.usb_cdc_acm_descriptor->bmCapabilities) { dev_dbg(&intf->dev, "ACM capabilities %02x, not really RNDIS?\n", header.usb_cdc_acm_descriptor->bmCapabilities); goto b...
int usbnet_generic_cdc_bind(struct usbnet *dev, struct usb_interface *intf) { skip: if ( rndis && header.usb_cdc_acm_descriptor && header.usb_cdc_acm_descriptor->bmCapabilities) { dev_dbg(&intf->dev, "ACM capabilities %02x, not really RNDIS?\n", header.usb_cdc_acm_descriptor->bmCapabilities); goto b...
int usbnet_generic_cdc_bind(struct usbnet *dev, struct usb_interface *intf) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ while (len > 3) { if (buf [1] != USB_DT_CS_TERFACE) { goto next_desc; } switch (buf [2]) { case USB_CDC_HEADER_TYPE: if (info->heade...
int usbnet_generic_cdc_bind(struct usbnet *dev, struct usb_interface *intf) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ while (len > 3) { if (buf [1] != USB_DT_CS_TERFACE) { goto next_desc; } switch (buf [2]) { case USB_CDC_HEADER_TYPE: if (info->heade...
int usbnet_generic_cdc_bind(struct usbnet *dev, struct usb_interface *intf) { skip: if ( rndis && header.usb_cdc_acm_descriptor && header.usb_cdc_acm_descriptor->bmCapabilities) { dev_dbg(&intf->dev, "ACM capabilities %02x, not really RNDIS?\n", header.usb_cdc_acm_descriptor->bmCapabilities); g...
CVE-2017-16650
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/net/usb/qmi_wwan.c
qmi_wwan_bind
static int qmi_wwan_bind(struct usbnet *dev, struct usb_interface *intf) { int status = -1; u8 *buf = intf->cur_altsetting->extra; int len = intf->cur_altsetting->extralen; struct usb_interface_descriptor *desc = &intf->cur_altsetting->desc; struct usb_cdc_union_desc *cdc_union; struct usb_cdc_e...
static int qmi_wwan_bind(struct usbnet *dev, struct usb_interface *intf) { int status = -1; u8 *buf = intf->cur_altsetting->extra; int len = intf->cur_altsetting->extralen; struct usb_interface_descriptor *desc = &intf->cur_altsetting->desc; struct usb_cdc_union_desc *cdc_union; struct usb_cdc_e...
static int qmi_wwan_bind(struct usbnet *dev, struct usb_interface *intf) { int status = -1; u8 *buf = intf->cur_altsetting->extra; int len = intf->cur_altsetting->extralen; struct usb_interface_descriptor *desc = &intf->cur_altsetting->desc; struct usb_cdc_union_desc *cdc_union = NULL; struct us...
static int qmi_wwan_bind(struct usbnet *dev, struct usb_interface *intf) { int status = -1; u8 *buf = intf->cur_altsetting->extra; int len = intf->cur_altsetting->extralen; struct usb_interface_descriptor *desc = &intf->cur_altsetting->desc; struct usb_cdc_union_desc *cdc_union = NULL; struct us...
static int qmi_wwan_bind(struct usbnet *dev, struct usb_interface *intf) { cdc_ether = hdr.usb_cdc_ether_desc; if (cdc_union) { if (desc->bInterfaceNumber != cdc_union->bMasterInterface0 || !info->data) { info->data = intf; } } if (cdc_ether) { dev->hard_mtu = le16_to...
static int qmi_wwan_bind(struct usbnet *dev, struct usb_interface *intf) { cdc_ether = hdr.usb_cdc_ether_desc; if (cdc_union) { if (desc->bInterfaceNumber != cdc_union->bMasterInterface0 || !info->data) { info->data = intf; } } if (cdc_ether && cdc_ether->wMaxSegmentSize) { ...
static int qmi_wwan_bind(struct usbnet *dev, struct usb_interface *intf) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ while (len > 3) { struct usb_descriptor_header *h = (void *)buf; if (h->bDescriptorType != USB_DT_CS_TERFACE) { goto next_desc; } switch (buf[2]) {...
static int qmi_wwan_bind(struct usbnet *dev, struct usb_interface *intf) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ while (len > 3) { struct usb_descriptor_header *h = (void *)buf; if (h->bDescriptorType != USB_DT_CS_TERFACE) { goto next_desc; } switch (buf[2]) {...
static int qmi_wwan_bind(struct usbnet *dev, struct usb_interface *intf) { cdc_ether = hdr.usb_cdc_ether_desc; if (cdc_union) { if (desc->bInterfaceNumber != cdc_union->bMasterInterface0 || !info->data) { info->data = intf; } } - if (cdc_ether) { + if (cdc_ether && c...
CVE-2017-16912
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/usb/usbip/stub_rx.c
get_pipe
static int get_pipe(struct stub_device *sdev, int epnum, int dir) { struct usb_device *udev = sdev->udev; struct usb_host_endpoint *ep; struct usb_endpoint_descriptor *epd = NULL; if (dir == USBIP_DIR_) { ep = udev->ep_in[epnum & 0x7f]; } else { ep = udev->ep_out[epnum & 0x7f]; }...
static int get_pipe(struct stub_device *sdev, int epnum, int dir) { struct usb_device *udev = sdev->udev; struct usb_host_endpoint *ep; struct usb_endpoint_descriptor *epd = NULL; if (epnum < 0 || epnum > 15) { goto err_ret; } if (dir == USBIP_DIR_) { ep = udev->ep_in[epnum & 0x7...
static int get_pipe(struct stub_device *sdev, int epnum, int dir) { struct usb_device *udev = sdev->udev; struct usb_host_endpoint *ep; struct usb_endpoint_descriptor *epd = NULL; if (dir == USBIP_DIR_) { ep = udev->ep_in[epnum & 0x7f]; } else { ep = udev->ep_out[epnum & 0x7f]; }...
static int get_pipe(struct stub_device *sdev, int epnum, int dir) { struct usb_device *udev = sdev->udev; struct usb_host_endpoint *ep; struct usb_endpoint_descriptor *epd = NULL; if (epnum < 0 || epnum > 15) { goto err_ret; } if (dir == USBIP_DIR_) { ep = udev->ep_in[epnum & 0x7...
static int get_pipe(struct stub_device *sdev, int epnum, int dir) { struct usb_endpoint_descriptor *epd = NULL; if (dir == USBIP_DIR_) { ep = udev->ep_in[epnum & 0x7f]; } else { ep = udev->ep_out[epnum & 0x7f]; } if (!ep) { dev_err(&sdev->udev->dev, "no such endpoint?, %d\n",...
static int get_pipe(struct stub_device *sdev, int epnum, int dir) { struct usb_endpoint_descriptor *epd = NULL; if (epnum < 0 || epnum > 15) { goto err_ret; } if (dir == USBIP_DIR_) { ep = udev->ep_in[epnum & 0x7f]; } else { ep = udev->ep_out[epnum & 0x7f]; } if (!ep)...
static int get_pipe(struct stub_device *sdev, int epnum, int dir) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct usb_endpoint_descriptor *epd = NULL; if (dir == USBIP_DIR_) { ep = udev->ep_in[epnum & 0x7f]; } else { ep = udev->ep_out[epnum & 0x7f]; } if (!ep) { de...
static int get_pipe(struct stub_device *sdev, int epnum, int dir) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct usb_endpoint_descriptor *epd = NULL; if (epnum < 0 || epnum > 15) { goto err_ret; } if (dir == USBIP_DIR_) { ep = udev->ep_in[epnum & 0x7f]; } else { e...
static int get_pipe(struct stub_device *sdev, int epnum, int dir) { struct usb_endpoint_descriptor *epd = NULL; + if (epnum < 0 || epnum > 15) { + goto err_ret; + } if (dir == USBIP_DIR_) { ep = udev->ep_in[epnum & 0x7f]; } else { ep = udev->ep_out[epnum & 0x7f]; } ...
CVE-2017-16912
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/usb/usbip/stub_rx.c
stub_recv_cmd_submit
static void stub_recv_cmd_submit(struct stub_device *sdev, struct usbip_header *pdu) { int ret; struct stub_priv *priv; struct usbip_device *ud = &sdev->ud; struct usb_device *udev = sdev->udev; int pipe = get_pipe(sdev, pdu->base.ep, pdu->base.direction); priv = stub_priv_alloc(sdev, pdu); ...
static void stub_recv_cmd_submit(struct stub_device *sdev, struct usbip_header *pdu) { int ret; struct stub_priv *priv; struct usbip_device *ud = &sdev->ud; struct usb_device *udev = sdev->udev; int pipe = get_pipe(sdev, pdu->base.ep, pdu->base.direction); if (pipe == -1) { return; }...
static void stub_recv_cmd_submit(struct stub_device *sdev, struct usbip_header *pdu) { int ret; struct stub_priv *priv; struct usbip_device *ud = &sdev->ud; struct usb_device *udev = sdev->udev; int pipe = get_pipe(sdev, pdu->base.ep, pdu->base.direction); priv = stub_priv_alloc(sdev, pdu); ...
static void stub_recv_cmd_submit(struct stub_device *sdev, struct usbip_header *pdu) { int ret; struct stub_priv *priv; struct usbip_device *ud = &sdev->ud; struct usb_device *udev = sdev->udev; int pipe = get_pipe(sdev, pdu->base.ep, pdu->base.direction); if (pipe == -1) { return; }...
static void stub_recv_cmd_submit(struct stub_device *sdev, struct usbip_header *pdu) { int pipe = get_pipe(sdev, pdu->base.ep, pdu->base.direction); priv = stub_priv_alloc(sdev, pdu); if (usb_pipeisoc(pipe)) { } else { } priv->urb->pipe = pipe; usbip_pack_pdu(pdu, priv->urb, USBIP_CMD_SUBMIT...
static void stub_recv_cmd_submit(struct stub_device *sdev, struct usbip_header *pdu) { int pipe = get_pipe(sdev, pdu->base.ep, pdu->base.direction); if (pipe == -1) { return; } priv = stub_priv_alloc(sdev, pdu); if (usb_pipeisoc(pipe)) { } else { } priv->urb->pipe = pipe; usb...
static void stub_recv_cmd_submit(struct stub_device *sdev, struct usbip_header *pdu) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int pipe = get_pipe(sdev, pdu->base.ep, pdu->base.direction); priv = stub_priv_alloc(sdev, pdu); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (usb_pipeisoc(pipe)) ...
static void stub_recv_cmd_submit(struct stub_device *sdev, struct usbip_header *pdu) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int pipe = get_pipe(sdev, pdu->base.ep, pdu->base.direction); if (pipe == -1) { return; } priv = stub_priv_alloc(sdev, pdu); /* PLACEHOLDER: DO NOT DELETE ...
static void stub_recv_cmd_submit(struct stub_device *sdev, struct usbip_header *pdu) { int pipe = get_pipe(sdev, pdu->base.ep, pdu->base.direction); + if (pipe == -1) { + return; + } priv = stub_priv_alloc(sdev, pdu); if (usb_pipeisoc(pipe)) { } else { } priv->urb->pipe = pip...
CVE-2017-16913
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/usb/usbip/stub_rx.c
get_pipe
static int get_pipe(struct stub_device *sdev, int epnum, int dir) { struct usb_device *udev = sdev->udev; struct usb_host_endpoint *ep; struct usb_endpoint_descriptor *epd = NULL; if (epnum < 0 || epnum > 15) { goto err_ret; } if (dir == USBIP_DIR_) { ep = udev->ep_in[epnum & 0x7...
static int get_pipe(struct stub_device *sdev, struct usbip_header *pdu) { struct usb_device *udev = sdev->udev; struct usb_host_endpoint *ep; struct usb_endpoint_descriptor *epd = NULL; int epnum = pdu->base.ep; int dir = pdu->base.direction; if (epnum < 0 || epnum > 15) { goto err_ret; ...
static int get_pipe(struct stub_device *sdev, int epnum, int dir) { struct usb_device *udev = sdev->udev; struct usb_host_endpoint *ep; struct usb_endpoint_descriptor *epd = NULL; if (epnum < 0 || epnum > 15) { goto err_ret; } if (dir == USBIP_DIR_) { ep = udev->ep_in[epnum & 0x7...
static int get_pipe(struct stub_device *sdev, struct usbip_header *pdu) { struct usb_device *udev = sdev->udev; struct usb_host_endpoint *ep; struct usb_endpoint_descriptor *epd = NULL; int epnum = pdu->base.ep; int dir = pdu->base.direction; if (epnum < 0 || epnum > 15) { goto err_ret; ...
static int get_pipe(struct stub_device *sdev, int epnum, int dir) { struct usb_endpoint_descriptor *epd = NULL; if (epnum < 0 || epnum > 15) { goto err_ret; } if (dir == USBIP_DIR_) { ep = udev->ep_in[epnum & 0x7f]; } else { ep = udev->ep_out[epnum & 0x7f]; } if (!ep)...
static int get_pipe(struct stub_device *sdev, struct usbip_header *pdu) { struct usb_endpoint_descriptor *epd = NULL; int epnum = pdu->base.ep; int dir = pdu->base.direction; if (epnum < 0 || epnum > 15) { goto err_ret; } if (dir == USBIP_DIR_) { ep = udev->ep_in[epnum & 0x7f]; ...
static int get_pipe(struct stub_device *sdev, int epnum, int dir) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct usb_endpoint_descriptor *epd = NULL; if (epnum < 0 || epnum > 15) { goto err_ret; } if (dir == USBIP_DIR_) { ep = udev->ep_in[epnum & 0x7f]; } else { e...
static int get_pipe(struct stub_device *sdev, struct usbip_header *pdu) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct usb_endpoint_descriptor *epd = NULL; int epnum = pdu->base.ep; int dir = pdu->base.direction; if (epnum < 0 || epnum > 15) { goto err_ret; } if (dir == USBIP...
-static int get_pipe(struct stub_device *sdev, int epnum, int dir) { +static int get_pipe(struct stub_device *sdev, struct usbip_header *pdu) { struct usb_endpoint_descriptor *epd = NULL; + int epnum = pdu->base.ep; + int dir = pdu->base.direction; if (epnum < 0 || epnum > 15) { goto err_ret; ...
CVE-2017-16913
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/usb/usbip/stub_rx.c
stub_recv_cmd_submit
static void stub_recv_cmd_submit(struct stub_device *sdev, struct usbip_header *pdu) { int ret; struct stub_priv *priv; struct usbip_device *ud = &sdev->ud; struct usb_device *udev = sdev->udev; int pipe = get_pipe(sdev, pdu->base.ep, pdu->base.direction); if (pipe == -1) { return; }...
static void stub_recv_cmd_submit(struct stub_device *sdev, struct usbip_header *pdu) { int ret; struct stub_priv *priv; struct usbip_device *ud = &sdev->ud; struct usb_device *udev = sdev->udev; int pipe = get_pipe(sdev, pdu); if (pipe == -1) { return; } priv = stub_priv_alloc(sd...
static void stub_recv_cmd_submit(struct stub_device *sdev, struct usbip_header *pdu) { int ret; struct stub_priv *priv; struct usbip_device *ud = &sdev->ud; struct usb_device *udev = sdev->udev; int pipe = get_pipe(sdev, pdu->base.ep, pdu->base.direction); if (pipe == -1) { return; }...
static void stub_recv_cmd_submit(struct stub_device *sdev, struct usbip_header *pdu) { int ret; struct stub_priv *priv; struct usbip_device *ud = &sdev->ud; struct usb_device *udev = sdev->udev; int pipe = get_pipe(sdev, pdu); if (pipe == -1) { return; } priv = stub_priv_alloc(sd...
static void stub_recv_cmd_submit(struct stub_device *sdev, struct usbip_header *pdu) { struct usb_device *udev = sdev->udev; int pipe = get_pipe(sdev, pdu->base.ep, pdu->base.direction); if (pipe == -1) { return; } priv = stub_priv_alloc(sdev, pdu); if (!priv) { return; } ...
static void stub_recv_cmd_submit(struct stub_device *sdev, struct usbip_header *pdu) { struct usb_device *udev = sdev->udev; int pipe = get_pipe(sdev, pdu); if (pipe == -1) { return; } priv = stub_priv_alloc(sdev, pdu); if (!priv) { return; } if (usb_pipeisoc(pipe)) { ...
static void stub_recv_cmd_submit(struct stub_device *sdev, struct usbip_header *pdu) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct usb_device *udev = sdev->udev; int pipe = get_pipe(sdev, pdu->base.ep, pdu->base.direction); if (pipe == -1) { return; } priv = stub_priv_alloc(sdev...
static void stub_recv_cmd_submit(struct stub_device *sdev, struct usbip_header *pdu) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct usb_device *udev = sdev->udev; int pipe = get_pipe(sdev, pdu); if (pipe == -1) { return; } priv = stub_priv_alloc(sdev, pdu); if (!priv) { ...
static void stub_recv_cmd_submit(struct stub_device *sdev, struct usbip_header *pdu) { struct usb_device *udev = sdev->udev; - int pipe = get_pipe(sdev, pdu->base.ep, pdu->base.direction); + int pipe = get_pipe(sdev, pdu); if (pipe == -1) { return; } priv = stub_priv_alloc(sdev, pdu)...
CVE-2017-16914
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/staging/usbip/stub_tx.c
stub_send_ret_submit
static int stub_send_ret_submit(struct stub_device *sdev) { unsigned long flags; struct stub_priv *priv, *tmp; struct msghdr msg; size_t txsize; size_t total_size = 0; while ((priv = dequeue_from_priv_tx(sdev)) != NULL) { int ret; struct urb *urb = priv->urb; struct usbip...
static int stub_send_ret_submit(struct stub_device *sdev) { unsigned long flags; struct stub_priv *priv, *tmp; struct msghdr msg; size_t txsize; size_t total_size = 0; while ((priv = dequeue_from_priv_tx(sdev)) != NULL) { int ret; struct urb *urb = priv->urb; struct usbip...
static int stub_send_ret_submit(struct stub_device *sdev) { unsigned long flags; struct stub_priv *priv, *tmp; struct msghdr msg; size_t txsize; size_t total_size = 0; while ((priv = dequeue_from_priv_tx(sdev)) != NULL) { int ret; struct urb *urb = priv->urb; struct usbip...
static int stub_send_ret_submit(struct stub_device *sdev) { unsigned long flags; struct stub_priv *priv, *tmp; struct msghdr msg; size_t txsize; size_t total_size = 0; while ((priv = dequeue_from_priv_tx(sdev)) != NULL) { int ret; struct urb *urb = priv->urb; struct usbip...
static int stub_send_ret_submit(struct stub_device *sdev) { while ((priv = dequeue_from_priv_tx(sdev)) != NULL) { int ret; struct urb *urb = priv->urb; struct usbip_header pdu_header; struct usbip_iso_packet_descriptor *iso_buffer = NULL; struct kvec *iov = NULL; int ...
static int stub_send_ret_submit(struct stub_device *sdev) { while ((priv = dequeue_from_priv_tx(sdev)) != NULL) { int ret; struct urb *urb = priv->urb; struct usbip_header pdu_header; struct usbip_iso_packet_descriptor *iso_buffer = NULL; struct kvec *iov = NULL; int ...
static int stub_send_ret_submit(struct stub_device *sdev) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ while ((priv = dequeue_from_priv_tx(sdev)) != NULL) { int ret; struct urb *urb = priv->urb; struct usbip_header pdu_header; struct usbip_iso_packet_descriptor *iso_buffer = N...
static int stub_send_ret_submit(struct stub_device *sdev) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ while ((priv = dequeue_from_priv_tx(sdev)) != NULL) { int ret; struct urb *urb = priv->urb; struct usbip_header pdu_header; struct usbip_iso_packet_descriptor *iso_buffer = N...
static int stub_send_ret_submit(struct stub_device *sdev) { while ((priv = dequeue_from_priv_tx(sdev)) != NULL) { int ret; struct urb *urb = priv->urb; struct usbip_header pdu_header; struct usbip_iso_packet_descriptor *iso_buffer = NULL; struct kvec *iov = NULL; ...
CVE-2017-16939
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/xfrm/xfrm_user.c
xfrm_dump_policy_done
static int xfrm_dump_policy_done(struct netlink_callback *cb) { struct xfrm_policy_walk *walk = (struct xfrm_policy_walk *) &cb->args[1]; struct net *net = sock_net(cb->skb->sk); xfrm_policy_walk_done(walk, net); return 0; }
static int xfrm_dump_policy_done(struct netlink_callback *cb) { struct xfrm_policy_walk *walk = (struct xfrm_policy_walk *)cb->args; struct net *net = sock_net(cb->skb->sk); xfrm_policy_walk_done(walk, net); return 0; }
static int xfrm_dump_policy_done(struct netlink_callback *cb) { struct xfrm_policy_walk *walk = (struct xfrm_policy_walk *) &cb->args[1]; struct net *net = sock_net(cb->skb->sk); xfrm_policy_walk_done(walk, net); return 0; }
static int xfrm_dump_policy_done(struct netlink_callback *cb) { struct xfrm_policy_walk *walk = (struct xfrm_policy_walk *) &cb->args[1]; struct net *net = sock_net(cb->skb->sk); if (cb->args[0]) { xfrm_policy_walk_done(walk, net); } return 0; }
static int xfrm_dump_policy_done(struct netlink_callback *cb) { struct xfrm_policy_walk *walk = (struct xfrm_policy_walk *) &cb->args[1]; struct net *net = sock_net(cb->skb->sk); xfrm_policy_walk_done(walk, net); return 0; }
static int xfrm_dump_policy_done(struct netlink_callback *cb) { struct xfrm_policy_walk *walk = (struct xfrm_policy_walk *)cb->args; struct net *net = sock_net(cb->skb->sk); xfrm_policy_walk_done(walk, net); return 0; }
static int xfrm_dump_policy_done(struct netlink_callback *cb) { struct xfrm_policy_walk *walk = (struct xfrm_policy_walk *) &cb->args[1]; struct net *net = sock_net(cb->skb->sk); xfrm_policy_walk_done(walk, net); return 0; }
static int xfrm_dump_policy_done(struct netlink_callback *cb) { struct xfrm_policy_walk *walk = (struct xfrm_policy_walk *) &cb->args[1]; struct net *net = sock_net(cb->skb->sk); if (cb->args[0]) { xfrm_policy_walk_done(walk, net); } return 0; }
static int xfrm_dump_policy_done(struct netlink_callback *cb) { - struct xfrm_policy_walk *walk = (struct xfrm_policy_walk *) &cb->args[1]; + struct xfrm_policy_walk *walk = (struct xfrm_policy_walk *)cb->args; struct net *net = sock_net(cb->skb->sk); xfrm_policy_walk_done(walk, net); return 0; }
CVE-2017-16994
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
mm/pagewalk.c
walk_hugetlb_range
static int walk_hugetlb_range(unsigned long addr, unsigned long end, struct mm_walk *walk) { struct vm_area_struct *vma = walk->vma; struct hstate *h = hstate_vma(vma); unsigned long next; unsigned long hmask = huge_page_mask(h); pte_t *pte; int err = 0; do { next = hugetlb_entry_end...
static int walk_hugetlb_range(unsigned long addr, unsigned long end, struct mm_walk *walk) { struct vm_area_struct *vma = walk->vma; struct hstate *h = hstate_vma(vma); unsigned long next; unsigned long hmask = huge_page_mask(h); pte_t *pte; int err = 0; do { next = hugetlb_entry_end...
static int walk_hugetlb_range(unsigned long addr, unsigned long end, struct mm_walk *walk) { struct vm_area_struct *vma = walk->vma; struct hstate *h = hstate_vma(vma); unsigned long next; unsigned long hmask = huge_page_mask(h); pte_t *pte; int err = 0; do { next = hugetlb_entry_end...
static int walk_hugetlb_range(unsigned long addr, unsigned long end, struct mm_walk *walk) { struct vm_area_struct *vma = walk->vma; struct hstate *h = hstate_vma(vma); unsigned long next; unsigned long hmask = huge_page_mask(h); pte_t *pte; int err = 0; do { next = hugetlb_entry_end...
static int walk_hugetlb_range(unsigned long addr, unsigned long end, struct mm_walk *walk) { struct vm_area_struct *vma = walk->vma; struct hstate *h = hstate_vma(vma); unsigned long hmask = huge_page_mask(h); do { next = hugetlb_entry_end(h, addr, end); pte = huge_pte_offset(walk->mm, a...
static int walk_hugetlb_range(unsigned long addr, unsigned long end, struct mm_walk *walk) { struct vm_area_struct *vma = walk->vma; struct hstate *h = hstate_vma(vma); unsigned long hmask = huge_page_mask(h); do { next = hugetlb_entry_end(h, addr, end); pte = huge_pte_offset(walk->mm, a...
static int walk_hugetlb_range(unsigned long addr, unsigned long end, struct mm_walk *walk) { struct vm_area_struct *vma = walk->vma; struct hstate *h = hstate_vma(vma); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ unsigned long hmask = huge_page_mask(h); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT *...
static int walk_hugetlb_range(unsigned long addr, unsigned long end, struct mm_walk *walk) { struct vm_area_struct *vma = walk->vma; struct hstate *h = hstate_vma(vma); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ unsigned long hmask = huge_page_mask(h); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT *...
static int walk_hugetlb_range(unsigned long addr, unsigned long end, struct mm_walk *walk) { struct vm_area_struct *vma = walk->vma; struct hstate *h = hstate_vma(vma); unsigned long hmask = huge_page_mask(h); do { next = hugetlb_entry_end(h, addr, end); pte = huge_pte_offset(walk...
CVE-2017-16995
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
kernel/bpf/verifier.c
check_alu_op
static int check_alu_op(struct bpf_verifier_env *env, struct bpf_insn *insn) { struct bpf_reg_state *regs = env->cur_state.regs, *dst_reg; u8 opcode = BPF_OP(insn->code); int err; if (opcode == BPF_END || opcode == BPF_NEG) { if (opcode == BPF_NEG) { if (BPF_SRC(insn->code) != 0 || i...
static int check_alu_op(struct bpf_verifier_env *env, struct bpf_insn *insn) { struct bpf_reg_state *regs = env->cur_state.regs, *dst_reg; u8 opcode = BPF_OP(insn->code); int err; if (opcode == BPF_END || opcode == BPF_NEG) { if (opcode == BPF_NEG) { if (BPF_SRC(insn->code) != 0 || i...
static int check_alu_op(struct verifier_env *env, struct bpf_insn *insn) { struct reg_state *regs = env->cur_state.regs; u8 opcode = BPF_OP(insn->code); int err; if (opcode == BPF_END || opcode == BPF_NEG) { if (opcode == BPF_NEG) { if (BPF_SRC(insn->code) != 0 || insn->src_reg != BP...
static int check_alu_op(struct verifier_env *env, struct bpf_insn *insn) { struct reg_state *regs = env->cur_state.regs; u8 opcode = BPF_OP(insn->code); int err; if (opcode == BPF_END || opcode == BPF_NEG) { if (opcode == BPF_NEG) { if (BPF_SRC(insn->code) != 0 || insn->src_reg != BP...
static int check_alu_op(struct bpf_verifier_env *env, struct bpf_insn *insn) { u8 opcode = BPF_OP(insn->code); if (opcode == BPF_END || opcode == BPF_NEG) { } else if (opcode == BPF_MOV) { if (BPF_SRC(insn->code) == BPF_X) { if (insn->imm != 0 || insn->off != 0) { return ...
static int check_alu_op(struct bpf_verifier_env *env, struct bpf_insn *insn) { u8 opcode = BPF_OP(insn->code); if (opcode == BPF_END || opcode == BPF_NEG) { } else if (opcode == BPF_MOV) { if (BPF_SRC(insn->code) == BPF_X) { if (insn->imm != 0 || insn->off != 0) { return ...
static int check_alu_op(struct verifier_env *env, struct bpf_insn *insn) { struct reg_state *regs = env->cur_state.regs; u8 opcode = BPF_OP(insn->code); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (opcode == BPF_END || opcode == BPF_NEG) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } els...
static int check_alu_op(struct verifier_env *env, struct bpf_insn *insn) { struct reg_state *regs = env->cur_state.regs; u8 opcode = BPF_OP(insn->code); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (opcode == BPF_END || opcode == BPF_NEG) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } els...
static int check_alu_op(struct bpf_verifier_env *env, struct bpf_insn *insn) { u8 opcode = BPF_OP(insn->code); if (opcode == BPF_END || opcode == BPF_NEG) { } else if (opcode == BPF_MOV) { if (BPF_SRC(insn->code) == BPF_X) { if (insn->imm != 0 || insn->off != 0) { ...
CVE-2017-17052
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
kernel/fork.c
mm_init
static struct mm_struct *mm_init(struct mm_struct *mm, struct task_struct *p, struct user_namespace *user_ns) { mm->mmap = NULL; mm->mm_rb = RB_ROOT; mm->vmacache_seqnum = 0; atomic_set(&mm->mm_users, 1); atomic_set(&mm->mm_count, 1); init_rwsem(&mm->mmap_sem); IT_LIST_HEAD(&mm->mmlist); ...
static struct mm_struct *mm_init(struct mm_struct *mm, struct task_struct *p, struct user_namespace *user_ns) { mm->mmap = NULL; mm->mm_rb = RB_ROOT; mm->vmacache_seqnum = 0; atomic_set(&mm->mm_users, 1); atomic_set(&mm->mm_count, 1); init_rwsem(&mm->mmap_sem); IT_LIST_HEAD(&mm->mmlist); ...
static struct mm_struct *mm_init(struct mm_struct *mm, struct task_struct *p, struct user_namespace *user_ns) { mm->mmap = NULL; mm->mm_rb = RB_ROOT; mm->vmacache_seqnum = 0; atomic_set(&mm->mm_users, 1); atomic_set(&mm->mm_count, 1); init_rwsem(&mm->mmap_sem); IT_LIST_HEAD(&mm->mmlist); ...
static struct mm_struct *mm_init(struct mm_struct *mm, struct task_struct *p, struct user_namespace *user_ns) { mm->mmap = NULL; mm->mm_rb = RB_ROOT; mm->vmacache_seqnum = 0; atomic_set(&mm->mm_users, 1); atomic_set(&mm->mm_count, 1); init_rwsem(&mm->mmap_sem); IT_LIST_HEAD(&mm->mmlist); ...
static struct mm_struct *mm_init(struct mm_struct *mm, struct task_struct *p, struct user_namespace *user_ns) { mm_nr_pmds_init(mm); mm_init_cpumask(mm); mm_init_aio(mm); mm_init_owner(mm, p); mmu_notifier_mm_init(mm); clear_tlb_flush_pending(mm); mm->pmd_huge_pte = NULL; if (mm_alloc_pg...
static struct mm_struct *mm_init(struct mm_struct *mm, struct task_struct *p, struct user_namespace *user_ns) { mm_nr_pmds_init(mm); mm_init_cpumask(mm); mm_init_aio(mm); mm_init_owner(mm, p); RCU_IT_POTER(mm->exe_file, NULL); mmu_notifier_mm_init(mm); clear_tlb_flush_pending(mm); mm->pm...
static struct mm_struct *mm_init(struct mm_struct *mm, struct task_struct *p, struct user_namespace *user_ns) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ mm_nr_pmds_init(mm); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ mm_init_cpumask(mm); mm_init_aio(mm); mm_init_owner(mm, p); mmu_not...
static struct mm_struct *mm_init(struct mm_struct *mm, struct task_struct *p, struct user_namespace *user_ns) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ mm_nr_pmds_init(mm); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ mm_init_cpumask(mm); mm_init_aio(mm); mm_init_owner(mm, p); RCU_IT_...
static struct mm_struct *mm_init(struct mm_struct *mm, struct task_struct *p, struct user_namespace *user_ns) { mm_nr_pmds_init(mm); mm_init_cpumask(mm); mm_init_aio(mm); mm_init_owner(mm, p); + RCU_IT_POTER(mm->exe_file, NULL); mmu_notifier_mm_init(mm); clear_tlb_flush_pending(mm); ...
CVE-2017-17053
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
arch/x86/include/asm/mmu_context.h
init_new_context
static inline int init_new_context(struct task_struct *tsk, struct mm_struct *mm) { if (cpu_feature_enabled(X86_FEATURE_OSPKE)) { mm->context.pkey_allocation_map = 0x1; mm->context.execute_only_pkey = -1; } init_new_context_ldt(tsk, mm); return 0; }
static inline int init_new_context(struct task_struct *tsk, struct mm_struct *mm) { if (cpu_feature_enabled(X86_FEATURE_OSPKE)) { mm->context.pkey_allocation_map = 0x1; mm->context.execute_only_pkey = -1; } return init_new_context_ldt(tsk, mm); }
static inline int init_new_context(struct task_struct *tsk, struct mm_struct *mm) { if (cpu_feature_enabled(X86_FEATURE_OSPKE)) { mm->context.pkey_allocation_map = 0x1; mm->context.execute_only_pkey = -1; } init_new_context_ldt(tsk, mm); return 0; }
static inline int init_new_context(struct task_struct *tsk, struct mm_struct *mm) { if (cpu_feature_enabled(X86_FEATURE_OSPKE)) { mm->context.pkey_allocation_map = 0x1; mm->context.execute_only_pkey = -1; } return init_new_context_ldt(tsk, mm); }
static inline int init_new_context(struct task_struct *tsk, struct mm_struct *mm) { if (cpu_feature_enabled(X86_FEATURE_OSPKE)) { mm->context.pkey_allocation_map = 0x1; mm->context.execute_only_pkey = -1; } init_new_context_ldt(tsk, mm); return 0; }
static inline int init_new_context(struct task_struct *tsk, struct mm_struct *mm) { if (cpu_feature_enabled(X86_FEATURE_OSPKE)) { mm->context.pkey_allocation_map = 0x1; mm->context.execute_only_pkey = -1; } return init_new_context_ldt(tsk, mm); }
static inline int init_new_context(struct task_struct *tsk, struct mm_struct *mm) { if (cpu_feature_enabled(X86_FEATURE_OSPKE)) { mm->context.pkey_allocation_map = 0x1; mm->context.execute_only_pkey = -1; } init_new_context_ldt(tsk, mm); return 0; }
static inline int init_new_context(struct task_struct *tsk, struct mm_struct *mm) { if (cpu_feature_enabled(X86_FEATURE_OSPKE)) { mm->context.pkey_allocation_map = 0x1; mm->context.execute_only_pkey = -1; } return init_new_context_ldt(tsk, mm); }
static inline int init_new_context(struct task_struct *tsk, struct mm_struct *mm) { if (cpu_feature_enabled(X86_FEATURE_OSPKE)) { mm->context.pkey_allocation_map = 0x1; mm->context.execute_only_pkey = -1; } - init_new_context_ldt(tsk, mm); - return 0; + return init_new_context_ldt(...
CVE-2017-17448
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/netfilter/nfnetlink_cthelper.c
nfnl_cthelper_del
static int nfnl_cthelper_del(struct sock *nfnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const tb[]) { char *helper_name = NULL; struct nf_conntrack_helper *cur; struct hlist_node *tmp; struct nf_conntrack_tuple tuple; bool tuple_set = false, found = false; int i, j...
static int nfnl_cthelper_del(struct sock *nfnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const tb[]) { char *helper_name = NULL; struct nf_conntrack_helper *cur; struct hlist_node *tmp; struct nf_conntrack_tuple tuple; bool tuple_set = false, found = false; int i, j...
static int nfnl_cthelper_del(struct sock *nfnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const tb[]) { char *helper_name = NULL; struct nf_conntrack_helper *cur; struct nf_conntrack_tuple tuple; bool tuple_set = false, found = false; struct nfnl_cthelper *nlcth, *n; ...
static int nfnl_cthelper_del(struct sock *nfnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const tb[]) { char *helper_name = NULL; struct nf_conntrack_helper *cur; struct nf_conntrack_tuple tuple; bool tuple_set = false, found = false; struct nfnl_cthelper *nlcth, *n; ...
static int nfnl_cthelper_del(struct sock *nfnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const tb[]) { int i, j = 0, ret; }
static int nfnl_cthelper_del(struct sock *nfnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const tb[]) { int i, j = 0, ret; if (!capable(CAP_NET_ADM)) { return -EPERM; } }
static int nfnl_cthelper_del(struct sock *nfnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const tb[]) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct nfnl_cthelper *nlcth, *n; int j = 0, ret; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static int nfnl_cthelper_del(struct sock *nfnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const tb[]) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct nfnl_cthelper *nlcth, *n; int j = 0, ret; if (!capable(CAP_NET_ADM)) { return -EPERM; } /* PLACEHOLDER...
static int nfnl_cthelper_del(struct sock *nfnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const tb[]) { int i, j = 0, ret; + if (!capable(CAP_NET_ADM)) { + return -EPERM; + } }
CVE-2017-17448
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/netfilter/nfnetlink_cthelper.c
nfnl_cthelper_get
static int nfnl_cthelper_get(struct sock *nfnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const tb[]) { int ret = -ENOENT, i; struct nf_conntrack_helper *cur; struct sk_buff *skb2; char *helper_name = NULL; struct nf_conntrack_tuple tuple; bool tuple_set = false; ...
static int nfnl_cthelper_get(struct sock *nfnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const tb[]) { int ret = -ENOENT, i; struct nf_conntrack_helper *cur; struct sk_buff *skb2; char *helper_name = NULL; struct nf_conntrack_tuple tuple; bool tuple_set = false; ...
static int nfnl_cthelper_get(struct sock *nfnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const tb[]) { int ret = -ENOENT; struct nf_conntrack_helper *cur; struct sk_buff *skb2; char *helper_name = NULL; struct nf_conntrack_tuple tuple; struct nfnl_cthelper *nlcth; ...
static int nfnl_cthelper_get(struct sock *nfnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const tb[]) { int ret = -ENOENT; struct nf_conntrack_helper *cur; struct sk_buff *skb2; char *helper_name = NULL; struct nf_conntrack_tuple tuple; struct nfnl_cthelper *nlcth; ...
static int nfnl_cthelper_get(struct sock *nfnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const tb[]) { bool tuple_set = false; if (nlh->nlmsg_flags & NLM_F_DUMP) { return netlink_dump_start(nfnl, skb, nlh, &c); } }
static int nfnl_cthelper_get(struct sock *nfnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const tb[]) { bool tuple_set = false; if (!capable(CAP_NET_ADM)) { return -EPERM; } if (nlh->nlmsg_flags & NLM_F_DUMP) { return netlink_dump_start(nfnl, skb, nlh, &c); ...
static int nfnl_cthelper_get(struct sock *nfnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const tb[]) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ bool tuple_set = false; if (nlh->nlmsg_flags & NLM_F_DUMP) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ return net...
static int nfnl_cthelper_get(struct sock *nfnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const tb[]) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ bool tuple_set = false; if (!capable(CAP_NET_ADM)) { return -EPERM; } if (nlh->nlmsg_flags & NLM_F_DUMP) { /*...
static int nfnl_cthelper_get(struct sock *nfnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const tb[]) { bool tuple_set = false; + if (!capable(CAP_NET_ADM)) { + return -EPERM; + } if (nlh->nlmsg_flags & NLM_F_DUMP) { return netlink_dump_start(nfnl, skb, nlh,...
CVE-2017-17448
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/netfilter/nfnetlink_cthelper.c
nfnl_cthelper_new
static int nfnl_cthelper_new(struct sock *nfnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const tb[]) { const char *helper_name; struct nf_conntrack_helper *cur, *helper = NULL; struct nf_conntrack_tuple tuple; int ret = 0, i; if (!tb[NFCTH_NAME] || !tb[NFCTH_TUPLE]) { ...
static int nfnl_cthelper_new(struct sock *nfnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const tb[]) { const char *helper_name; struct nf_conntrack_helper *cur, *helper = NULL; struct nf_conntrack_tuple tuple; int ret = 0, i; if (!capable(CAP_NET_ADM)) { return ...
static int nfnl_cthelper_new(struct sock *nfnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const tb[]) { const char *helper_name; struct nf_conntrack_helper *cur, *helper = NULL; struct nf_conntrack_tuple tuple; struct nfnl_cthelper *nlcth; int ret = 0; if (!tb[NFCTH_...
static int nfnl_cthelper_new(struct sock *nfnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const tb[]) { const char *helper_name; struct nf_conntrack_helper *cur, *helper = NULL; struct nf_conntrack_tuple tuple; struct nfnl_cthelper *nlcth; int ret = 0; if (!capable(C...
static int nfnl_cthelper_new(struct sock *nfnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const tb[]) { int ret = 0, i; if (!tb[NFCTH_NAME] || !tb[NFCTH_TUPLE]) { return -EVAL; } }
static int nfnl_cthelper_new(struct sock *nfnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const tb[]) { int ret = 0, i; if (!capable(CAP_NET_ADM)) { return -EPERM; } if (!tb[NFCTH_NAME] || !tb[NFCTH_TUPLE]) { return -EVAL; } }
static int nfnl_cthelper_new(struct sock *nfnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const tb[]) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct nfnl_cthelper *nlcth; int ret = 0; if (!tb[NFCTH_NAME] || !tb[NFCTH_TUPLE]) { return -EVAL; } /* PLACE...
static int nfnl_cthelper_new(struct sock *nfnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const tb[]) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct nfnl_cthelper *nlcth; int ret = 0; if (!capable(CAP_NET_ADM)) { return -EPERM; } if (!tb[NFCTH_NAME] |...
static int nfnl_cthelper_new(struct sock *nfnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const tb[]) { int ret = 0, i; + if (!capable(CAP_NET_ADM)) { + return -EPERM; + } if (!tb[NFCTH_NAME] || !tb[NFCTH_TUPLE]) { return -EVAL; } }
CVE-2017-17449
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/netlink/af_netlink.c
__netlink_deliver_tap_skb
static int __netlink_deliver_tap_skb(struct sk_buff *skb, struct net_device *dev) { struct sk_buff *nskb; struct sock *sk = skb->sk; int ret = -ENOMEM; dev_hold(dev); if (is_vmalloc_addr(skb->head)) { nskb = netlink_to_full_skb(skb, GFP_ATOMIC); } else { nskb = skb_clone(skb, GFP...
static int __netlink_deliver_tap_skb(struct sk_buff *skb, struct net_device *dev) { struct sk_buff *nskb; struct sock *sk = skb->sk; int ret = -ENOMEM; if (!net_eq(dev_net(dev), sock_net(sk))) { return 0; } dev_hold(dev); if (is_vmalloc_addr(skb->head)) { nskb = netlink_to_fu...
static int __netlink_deliver_tap_skb(struct sk_buff *skb, struct net_device *dev) { struct sk_buff *nskb; struct sock *sk = skb->sk; int ret = -ENOMEM; dev_hold(dev); if (netlink_skb_is_mmaped(skb) || is_vmalloc_addr(skb->head)) { nskb = netlink_to_full_skb(skb, GFP_ATOMIC); } else { ...
static int __netlink_deliver_tap_skb(struct sk_buff *skb, struct net_device *dev) { struct sk_buff *nskb; struct sock *sk = skb->sk; int ret = -ENOMEM; if (!net_eq(dev_net(dev), sock_net(sk))) { return 0; } dev_hold(dev); if (netlink_skb_is_mmaped(skb) || is_vmalloc_addr(skb->head)) ...
static int __netlink_deliver_tap_skb(struct sk_buff *skb, struct net_device *dev) { struct sock *sk = skb->sk; int ret = -ENOMEM; dev_hold(dev); if (nskb) { nskb->dev = dev; nskb->protocol = htons((u16) sk->sk_protocol); nskb->pkt_type = netlink_is_kernel(sk) ? PACKET_KERNEL : PA...
static int __netlink_deliver_tap_skb(struct sk_buff *skb, struct net_device *dev) { struct sock *sk = skb->sk; int ret = -ENOMEM; if (!net_eq(dev_net(dev), sock_net(sk))) { return 0; } dev_hold(dev); if (nskb) { nskb->dev = dev; nskb->protocol = htons((u16) sk->sk_protoco...
static int __netlink_deliver_tap_skb(struct sk_buff *skb, struct net_device *dev) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct sock *sk = skb->sk; int ret = -ENOMEM; dev_hold(dev); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (nskb) { nskb->dev = dev; nskb->protocol...
static int __netlink_deliver_tap_skb(struct sk_buff *skb, struct net_device *dev) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct sock *sk = skb->sk; int ret = -ENOMEM; if (!net_eq(dev_net(dev), sock_net(sk))) { return 0; } dev_hold(dev); /* PLACEHOLDER: DO NOT DELETE THIS COM...
static int __netlink_deliver_tap_skb(struct sk_buff *skb, struct net_device *dev) { struct sock *sk = skb->sk; int ret = -ENOMEM; + if (!net_eq(dev_net(dev), sock_net(sk))) { + return 0; + } dev_hold(dev); if (nskb) { nskb->dev = dev; nskb->protocol = htons((u16) sk->...
CVE-2017-17450
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/netfilter/xt_osf.c
xt_osf_add_callback
static int xt_osf_add_callback(struct sock *ctnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const osf_attrs[]) { struct xt_osf_user_finger *f; struct xt_osf_finger *kf = NULL, *sf; int err = 0; if (!osf_attrs[OSF_ATTR_FGER]) { return -EVAL; } if (!(nlh->nlmsg...
static int xt_osf_add_callback(struct sock *ctnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const osf_attrs[]) { struct xt_osf_user_finger *f; struct xt_osf_finger *kf = NULL, *sf; int err = 0; if (!capable(CAP_NET_ADM)) { return -EPERM; } if (!osf_attrs[OSF_...
static int xt_osf_add_callback(struct sock *ctnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const osf_attrs[]) { struct xt_osf_user_finger *f; struct xt_osf_finger *kf = NULL, *sf; int err = 0; if (!osf_attrs[OSF_ATTR_FGER]) { return -EVAL; } if (!(nlh->nlmsg...
static int xt_osf_add_callback(struct sock *ctnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const osf_attrs[]) { struct xt_osf_user_finger *f; struct xt_osf_finger *kf = NULL, *sf; int err = 0; if (!capable(CAP_NET_ADM)) { return -EPERM; } if (!osf_attrs[OSF_...
static int xt_osf_add_callback(struct sock *ctnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const osf_attrs[]) { int err = 0; if (!osf_attrs[OSF_ATTR_FGER]) { return -EVAL; } }
static int xt_osf_add_callback(struct sock *ctnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const osf_attrs[]) { int err = 0; if (!capable(CAP_NET_ADM)) { return -EPERM; } if (!osf_attrs[OSF_ATTR_FGER]) { return -EVAL; } }
static int xt_osf_add_callback(struct sock *ctnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const osf_attrs[]) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int err = 0; if (!osf_attrs[OSF_ATTR_FGER]) { return -EVAL; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT...
static int xt_osf_add_callback(struct sock *ctnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const osf_attrs[]) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int err = 0; if (!capable(CAP_NET_ADM)) { return -EPERM; } if (!osf_attrs[OSF_ATTR_FGER]) { retu...
static int xt_osf_add_callback(struct sock *ctnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const osf_attrs[]) { int err = 0; + if (!capable(CAP_NET_ADM)) { + return -EPERM; + } if (!osf_attrs[OSF_ATTR_FGER]) { return -EVAL; } }
CVE-2017-17450
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/netfilter/xt_osf.c
xt_osf_remove_callback
static int xt_osf_remove_callback(struct sock *ctnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const osf_attrs[]) { struct xt_osf_user_finger *f; struct xt_osf_finger *sf; int err = -ENOENT; if (!osf_attrs[OSF_ATTR_FGER]) { return -EVAL; } f = nla_data(osf_at...
static int xt_osf_remove_callback(struct sock *ctnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const osf_attrs[]) { struct xt_osf_user_finger *f; struct xt_osf_finger *sf; int err = -ENOENT; if (!capable(CAP_NET_ADM)) { return -EPERM; } if (!osf_attrs[OSF_ATT...
static int xt_osf_remove_callback(struct sock *ctnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const osf_attrs[]) { struct xt_osf_user_finger *f; struct xt_osf_finger *sf; int err = -ENOENT; if (!osf_attrs[OSF_ATTR_FGER]) { return -EVAL; } f = nla_data(osf_at...
static int xt_osf_remove_callback(struct sock *ctnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const osf_attrs[]) { struct xt_osf_user_finger *f; struct xt_osf_finger *sf; int err = -ENOENT; if (!capable(CAP_NET_ADM)) { return -EPERM; } if (!osf_attrs[OSF_ATT...
static int xt_osf_remove_callback(struct sock *ctnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const osf_attrs[]) { int err = -ENOENT; if (!osf_attrs[OSF_ATTR_FGER]) { return -EVAL; } }
static int xt_osf_remove_callback(struct sock *ctnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const osf_attrs[]) { int err = -ENOENT; if (!capable(CAP_NET_ADM)) { return -EPERM; } if (!osf_attrs[OSF_ATTR_FGER]) { return -EVAL; } }
static int xt_osf_remove_callback(struct sock *ctnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const osf_attrs[]) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int err = -ENOENT; if (!osf_attrs[OSF_ATTR_FGER]) { return -EVAL; } /* PLACEHOLDER: DO NOT DELETE THI...
static int xt_osf_remove_callback(struct sock *ctnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const osf_attrs[]) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int err = -ENOENT; if (!capable(CAP_NET_ADM)) { return -EPERM; } if (!osf_attrs[OSF_ATTR_FGER]) { ...
static int xt_osf_remove_callback(struct sock *ctnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const osf_attrs[]) { int err = -ENOENT; + if (!capable(CAP_NET_ADM)) { + return -EPERM; + } if (!osf_attrs[OSF_ATTR_FGER]) { return -EVAL; } }
CVE-2017-17558
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/usb/core/config.c
usb_parse_configuration
static int usb_parse_configuration(struct usb_device *dev, int cfgidx, struct usb_host_config *config, unsigned char *buffer, int size) { struct device *ddev = &dev->dev; unsigned char *buffer0 = buffer; int cfgno; int nintf, nintf_orig; int i, j, n; struct usb_interface_cache *intfc; unsign...
static int usb_parse_configuration(struct usb_device *dev, int cfgidx, struct usb_host_config *config, unsigned char *buffer, int size) { struct device *ddev = &dev->dev; unsigned char *buffer0 = buffer; int cfgno; int nintf, nintf_orig; int i, j, n; struct usb_interface_cache *intfc; unsign...
static int usb_parse_configuration(struct usb_device *dev, int cfgidx, struct usb_host_config *config, unsigned char *buffer, int size) { struct device *ddev = &dev->dev; unsigned char *buffer0 = buffer; int cfgno; int nintf, nintf_orig; int i, j, n; struct usb_interface_cache *intfc; unsign...
static int usb_parse_configuration(struct usb_device *dev, int cfgidx, struct usb_host_config *config, unsigned char *buffer, int size) { struct device *ddev = &dev->dev; unsigned char *buffer0 = buffer; int cfgno; int nintf, nintf_orig; int i, j, n; struct usb_interface_cache *intfc; unsign...
static int usb_parse_configuration(struct usb_device *dev, int cfgidx, struct usb_host_config *config, unsigned char *buffer, int size) { memcpy(&config->desc, buffer, USB_DT_CONFIG_SIZE); if (config->desc.bDescriptorType != USB_DT_CONFIG || config->desc.bLength < USB_DT_CONFIG_SIZE || config->desc.bLength > si...
static int usb_parse_configuration(struct usb_device *dev, int cfgidx, struct usb_host_config *config, unsigned char *buffer, int size) { memcpy(&config->desc, buffer, USB_DT_CONFIG_SIZE); nintf = nintf_orig = config->desc.bNumInterfaces; config->desc.bNumInterfaces = 0; if (config->desc.bDescriptorType...
static int usb_parse_configuration(struct usb_device *dev, int cfgidx, struct usb_host_config *config, unsigned char *buffer, int size) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ memcpy(&config->desc, buffer, USB_DT_CONFIG_SIZE); if (config->desc.bDescriptorType != USB_DT_CONFIG || config->desc.bLength...
static int usb_parse_configuration(struct usb_device *dev, int cfgidx, struct usb_host_config *config, unsigned char *buffer, int size) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ memcpy(&config->desc, buffer, USB_DT_CONFIG_SIZE); nintf = nintf_orig = config->desc.bNumInterfaces; config->desc.bNumIn...
static int usb_parse_configuration(struct usb_device *dev, int cfgidx, struct usb_host_config *config, unsigned char *buffer, int size) { memcpy(&config->desc, buffer, USB_DT_CONFIG_SIZE); + nintf = nintf_orig = config->desc.bNumInterfaces; + config->desc.bNumInterfaces = 0; if (config->desc.bDescripto...
CVE-2017-17712
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv4/raw.c
raw_sendmsg
static int raw_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) { struct inet_sock *inet = inet_sk(sk); struct net *net = sock_net(sk); struct ipcm_cookie ipc; struct rtable *rt = NULL; struct flowi4 fl4; int free = 0; __be32 daddr; __be32 saddr; u8 tos; int err; stru...
static int raw_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) { struct inet_sock *inet = inet_sk(sk); struct net *net = sock_net(sk); struct ipcm_cookie ipc; struct rtable *rt = NULL; struct flowi4 fl4; int free = 0; __be32 daddr; __be32 saddr; u8 tos; int err; stru...
static int raw_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) { struct inet_sock *inet = inet_sk(sk); struct ipcm_cookie ipc; struct rtable *rt = NULL; struct flowi4 fl4; int free = 0; __be32 daddr; __be32 saddr; u8 tos; int err; struct ip_options_data opt_copy; str...
static int raw_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) { struct inet_sock *inet = inet_sk(sk); struct ipcm_cookie ipc; struct rtable *rt = NULL; struct flowi4 fl4; int free = 0; __be32 daddr; __be32 saddr; u8 tos; int err; struct ip_options_data opt_copy; str...
static int raw_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) { struct inet_sock *inet = inet_sk(sk); struct net *net = sock_net(sk); struct raw_frag_vec rfv; err = -EMSGSIZE; if (len > 0xFFFF) { goto out; } err = -EOPNOTSUPP; if (msg->msg_namelen) { daddr = usi...
static int raw_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) { struct inet_sock *inet = inet_sk(sk); struct net *net = sock_net(sk); struct raw_frag_vec rfv; int hdrincl; err = -EMSGSIZE; if (len > 0xFFFF) { goto out; } hdrincl = inet->hdrincl; err = -EOPNOTSUPP; ...
static int raw_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) { struct inet_sock *inet = inet_sk(sk); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct raw_frag_vec rfv; err = -EMSGSIZE; if (len > 0xFFFF) { goto out; } err = -EOPNOTSUPP; /* PLACEHOLDER: DO NOT DELETE...
static int raw_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) { struct inet_sock *inet = inet_sk(sk); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct raw_frag_vec rfv; int hdrincl; err = -EMSGSIZE; if (len > 0xFFFF) { goto out; } hdrincl = inet->hdrincl; err = ...
static int raw_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) { struct inet_sock *inet = inet_sk(sk); struct net *net = sock_net(sk); struct raw_frag_vec rfv; + int hdrincl; err = -EMSGSIZE; if (len > 0xFFFF) { goto out; } + hdrincl = inet->hdrincl; err = -EO...
CVE-2017-17805
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
arch/x86/crypto/salsa20_glue.c
encrypt
static int encrypt(struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) { struct blkcipher_walk walk; struct crypto_blkcipher *tfm = desc->tfm; struct salsa20_ctx *ctx = crypto_blkcipher_ctx(tfm); int err; blkcipher_walk_init(&walk, dst, src, nbytes); ...
static int encrypt(struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) { struct blkcipher_walk walk; struct crypto_blkcipher *tfm = desc->tfm; struct salsa20_ctx *ctx = crypto_blkcipher_ctx(tfm); int err; blkcipher_walk_init(&walk, dst, src, nbytes); ...
static int encrypt(struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) { struct blkcipher_walk walk; struct crypto_blkcipher *tfm = desc->tfm; struct salsa20_ctx *ctx = crypto_blkcipher_ctx(tfm); int err; blkcipher_walk_init(&walk, dst, src, nbytes); ...
static int encrypt(struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) { struct blkcipher_walk walk; struct crypto_blkcipher *tfm = desc->tfm; struct salsa20_ctx *ctx = crypto_blkcipher_ctx(tfm); int err; blkcipher_walk_init(&walk, dst, src, nbytes); ...
static int encrypt(struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) { struct crypto_blkcipher *tfm = desc->tfm; struct salsa20_ctx *ctx = crypto_blkcipher_ctx(tfm); blkcipher_walk_init(&walk, dst, src, nbytes); err = blkcipher_walk_virt_block(desc, &wal...
static int encrypt(struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) { struct crypto_blkcipher *tfm = desc->tfm; struct salsa20_ctx *ctx = crypto_blkcipher_ctx(tfm); blkcipher_walk_init(&walk, dst, src, nbytes); err = blkcipher_walk_virt_block(desc, &wal...
static int encrypt(struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct crypto_blkcipher *tfm = desc->tfm; struct salsa20_ctx *ctx = crypto_blkcipher_ctx(tfm); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT...
static int encrypt(struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct crypto_blkcipher *tfm = desc->tfm; struct salsa20_ctx *ctx = crypto_blkcipher_ctx(tfm); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT...
static int encrypt(struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) { struct crypto_blkcipher *tfm = desc->tfm; struct salsa20_ctx *ctx = crypto_blkcipher_ctx(tfm); blkcipher_walk_init(&walk, dst, src, nbytes); err = blkcipher_walk_virt_block(desc,...
CVE-2017-17805
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
crypto/salsa20_generic.c
encrypt
static int encrypt(struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) { struct blkcipher_walk walk; struct crypto_blkcipher *tfm = desc->tfm; struct salsa20_ctx *ctx = crypto_blkcipher_ctx(tfm); int err; blkcipher_walk_init(&walk, dst, src, nbytes); ...
static int encrypt(struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) { struct blkcipher_walk walk; struct crypto_blkcipher *tfm = desc->tfm; struct salsa20_ctx *ctx = crypto_blkcipher_ctx(tfm); int err; blkcipher_walk_init(&walk, dst, src, nbytes); ...
static int encrypt(struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) { struct blkcipher_walk walk; struct crypto_blkcipher *tfm = desc->tfm; struct salsa20_ctx *ctx = crypto_blkcipher_ctx(tfm); int err; blkcipher_walk_init(&walk, dst, src, nbytes); ...
static int encrypt(struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) { struct blkcipher_walk walk; struct crypto_blkcipher *tfm = desc->tfm; struct salsa20_ctx *ctx = crypto_blkcipher_ctx(tfm); int err; blkcipher_walk_init(&walk, dst, src, nbytes); ...
static int encrypt(struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) { struct crypto_blkcipher *tfm = desc->tfm; struct salsa20_ctx *ctx = crypto_blkcipher_ctx(tfm); blkcipher_walk_init(&walk, dst, src, nbytes); err = blkcipher_walk_virt_block(desc, &wal...
static int encrypt(struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) { struct crypto_blkcipher *tfm = desc->tfm; struct salsa20_ctx *ctx = crypto_blkcipher_ctx(tfm); blkcipher_walk_init(&walk, dst, src, nbytes); err = blkcipher_walk_virt_block(desc, &wal...
static int encrypt(struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct crypto_blkcipher *tfm = desc->tfm; struct salsa20_ctx *ctx = crypto_blkcipher_ctx(tfm); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT...
static int encrypt(struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct crypto_blkcipher *tfm = desc->tfm; struct salsa20_ctx *ctx = crypto_blkcipher_ctx(tfm); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT...
static int encrypt(struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) { struct crypto_blkcipher *tfm = desc->tfm; struct salsa20_ctx *ctx = crypto_blkcipher_ctx(tfm); blkcipher_walk_init(&walk, dst, src, nbytes); err = blkcipher_walk_virt_block(desc,...
CVE-2017-17806
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
crypto/hmac.c
hmac_create
static int hmac_create(struct crypto_template *tmpl, struct rtattr **tb) { struct shash_instance *inst; struct crypto_alg *alg; struct shash_alg *salg; int err; int ds; int ss; err = crypto_check_attr_type(tb, CRYPTO_ALG_TYPE_SHASH); if (err) { return err; } salg = shash_...
static int hmac_create(struct crypto_template *tmpl, struct rtattr **tb) { struct shash_instance *inst; struct crypto_alg *alg; struct shash_alg *salg; int err; int ds; int ss; err = crypto_check_attr_type(tb, CRYPTO_ALG_TYPE_SHASH); if (err) { return err; } salg = shash_...
static int hmac_create(struct crypto_template *tmpl, struct rtattr **tb) { struct shash_instance *inst; struct crypto_alg *alg; struct shash_alg *salg; int err; int ds; int ss; err = crypto_check_attr_type(tb, CRYPTO_ALG_TYPE_SHASH); if (err) { return err; } salg = shash_...
static int hmac_create(struct crypto_template *tmpl, struct rtattr **tb) { struct shash_instance *inst; struct crypto_alg *alg; struct shash_alg *salg; int err; int ds; int ss; err = crypto_check_attr_type(tb, CRYPTO_ALG_TYPE_SHASH); if (err) { return err; } salg = shash_...
static int hmac_create(struct crypto_template *tmpl, struct rtattr **tb) { err = crypto_check_attr_type(tb, CRYPTO_ALG_TYPE_SHASH); salg = shash_attr_alg(tb[1], 0, 0); if (IS_ERR(salg)) { return PTR_ERR(salg); } err = -EVAL; ds = salg->digestsize; ss = salg->statesize; alg = &sal...
static int hmac_create(struct crypto_template *tmpl, struct rtattr **tb) { err = crypto_check_attr_type(tb, CRYPTO_ALG_TYPE_SHASH); salg = shash_attr_alg(tb[1], 0, 0); if (IS_ERR(salg)) { return PTR_ERR(salg); } alg = &salg->base; err = -EVAL; if (crypto_shash_alg_has_setkey(salg)) {...
static int hmac_create(struct crypto_template *tmpl, struct rtattr **tb) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ err = crypto_check_attr_type(tb, CRYPTO_ALG_TYPE_SHASH); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ salg = shash_attr_alg(tb[1], 0, 0); if (IS_ERR(salg)) { return PTR_E...
static int hmac_create(struct crypto_template *tmpl, struct rtattr **tb) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ err = crypto_check_attr_type(tb, CRYPTO_ALG_TYPE_SHASH); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ salg = shash_attr_alg(tb[1], 0, 0); if (IS_ERR(salg)) { return PTR_E...
static int hmac_create(struct crypto_template *tmpl, struct rtattr **tb) { err = crypto_check_attr_type(tb, CRYPTO_ALG_TYPE_SHASH); salg = shash_attr_alg(tb[1], 0, 0); if (IS_ERR(salg)) { return PTR_ERR(salg); } + alg = &salg->base; err = -EVAL; + if (crypto_shash_alg_has_setkey...
CVE-2017-17806
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
crypto/shash.c
shash_no_setkey
static int shash_no_setkey(struct crypto_shash *tfm, const u8 *key, unsigned int keylen) { return -ENOSYS; }
int shash_no_setkey(struct crypto_shash *tfm, const u8 *key, unsigned int keylen) { return -ENOSYS; }
static int shash_no_setkey(struct crypto_shash *tfm, const u8 *key, unsigned int keylen) { return -ENOSYS; }
int shash_no_setkey(struct crypto_shash *tfm, const u8 *key, unsigned int keylen) { return -ENOSYS; }
static int shash_no_setkey(struct crypto_shash *tfm, const u8 *key, unsigned int keylen) { return -ENOSYS; }
int shash_no_setkey(struct crypto_shash *tfm, const u8 *key, unsigned int keylen) { return -ENOSYS; }
static int shash_no_setkey(struct crypto_shash *tfm, const u8 *key, unsigned int keylen) { return -ENOSYS; }
int shash_no_setkey(struct crypto_shash *tfm, const u8 *key, unsigned int keylen) { return -ENOSYS; }
-static int shash_no_setkey(struct crypto_shash *tfm, const u8 *key, unsigned int keylen) { +int shash_no_setkey(struct crypto_shash *tfm, const u8 *key, unsigned int keylen) { return -ENOSYS; }
CVE-2017-17807
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
security/keys/request_key.c
construct_get_dest_keyring
static void construct_get_dest_keyring(struct key **_dest_keyring) { struct request_key_auth *rka; const struct cred *cred = current_cred(); struct key *dest_keyring = *_dest_keyring, *authkey; kenter("%p", dest_keyring); if (dest_keyring) { key_get(dest_keyring); } else { switch...
static int construct_get_dest_keyring(struct key **_dest_keyring) { struct request_key_auth *rka; const struct cred *cred = current_cred(); struct key *dest_keyring = *_dest_keyring, *authkey; int ret; kenter("%p", dest_keyring); if (dest_keyring) { key_get(dest_keyring); } else { ...
static void construct_get_dest_keyring(struct key **_dest_keyring) { struct request_key_auth *rka; const struct cred *cred = current_cred(); struct key *dest_keyring = *_dest_keyring, *authkey; kenter("%p", dest_keyring); if (dest_keyring) { key_get(dest_keyring); } else { switch...
static int construct_get_dest_keyring(struct key **_dest_keyring) { struct request_key_auth *rka; const struct cred *cred = current_cred(); struct key *dest_keyring = *_dest_keyring, *authkey; int ret; kenter("%p", dest_keyring); if (dest_keyring) { key_get(dest_keyring); } else { ...
static void construct_get_dest_keyring(struct key **_dest_keyring) { const struct cred *cred = current_cred(); struct key *dest_keyring = *_dest_keyring, *authkey; kenter("%p", dest_keyring); if (dest_keyring) { } else { switch (cred->jit_keyring) { case KEY_REQKEY_DEFL_REQUESTOR_KEY...
static int construct_get_dest_keyring(struct key **_dest_keyring) { const struct cred *cred = current_cred(); struct key *dest_keyring = *_dest_keyring, *authkey; int ret; kenter("%p", dest_keyring); if (dest_keyring) { } else { bool do_perm_check = true; switch (cred->jit_keyrin...
static void construct_get_dest_keyring(struct key **_dest_keyring) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ const struct cred *cred = current_cred(); struct key *dest_keyring = *_dest_keyring, *authkey; kenter("%p", dest_keyring); if (dest_keyring) { /* PLACEHOLDER: DO NOT DELETE THIS COM...
static int construct_get_dest_keyring(struct key **_dest_keyring) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ const struct cred *cred = current_cred(); struct key *dest_keyring = *_dest_keyring, *authkey; int ret; kenter("%p", dest_keyring); if (dest_keyring) { /* PLACEHOLDER: DO NOT DEL...
-static void construct_get_dest_keyring(struct key **_dest_keyring) { +static int construct_get_dest_keyring(struct key **_dest_keyring) { const struct cred *cred = current_cred(); struct key *dest_keyring = *_dest_keyring, *authkey; + int ret; kenter("%p", dest_keyring); if (dest_keyring) { ...
CVE-2017-17807
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
security/keys/request_key.c
construct_key_and_link
static struct key *construct_key_and_link(struct keyring_search_context *ctx, const char *callout_info, size_t callout_len, void *aux, struct key *dest_keyring, unsigned long flags) { struct key_user *user; struct key *key; int ret; kenter(""); if (ctx->index_key.type == &key_type_keyring) { ...
static struct key *construct_key_and_link(struct keyring_search_context *ctx, const char *callout_info, size_t callout_len, void *aux, struct key *dest_keyring, unsigned long flags) { struct key_user *user; struct key *key; int ret; kenter(""); if (ctx->index_key.type == &key_type_keyring) { ...
static struct key *construct_key_and_link(struct keyring_search_context *ctx, const char *callout_info, size_t callout_len, void *aux, struct key *dest_keyring, unsigned long flags) { struct key_user *user; struct key *key; int ret; kenter(""); if (ctx->index_key.type == &key_type_keyring) { ...
static struct key *construct_key_and_link(struct keyring_search_context *ctx, const char *callout_info, size_t callout_len, void *aux, struct key *dest_keyring, unsigned long flags) { struct key_user *user; struct key *key; int ret; kenter(""); if (ctx->index_key.type == &key_type_keyring) { ...
static struct key *construct_key_and_link(struct keyring_search_context *ctx, const char *callout_info, size_t callout_len, void *aux, struct key *dest_keyring, unsigned long flags) { if (ctx->index_key.type == &key_type_keyring) { return ERR_PTR(-EPERM); } user = key_user_lookup(current_fsuid()); ...
static struct key *construct_key_and_link(struct keyring_search_context *ctx, const char *callout_info, size_t callout_len, void *aux, struct key *dest_keyring, unsigned long flags) { if (ctx->index_key.type == &key_type_keyring) { return ERR_PTR(-EPERM); } ret = construct_get_dest_keyring(&dest_key...
static struct key *construct_key_and_link(struct keyring_search_context *ctx, const char *callout_info, size_t callout_len, void *aux, struct key *dest_keyring, unsigned long flags) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (ctx->index_key.type == &key_type_keyring) { return ERR_PTR(-EPERM); ...
static struct key *construct_key_and_link(struct keyring_search_context *ctx, const char *callout_info, size_t callout_len, void *aux, struct key *dest_keyring, unsigned long flags) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (ctx->index_key.type == &key_type_keyring) { return ERR_PTR(-EPERM); ...
static struct key *construct_key_and_link(struct keyring_search_context *ctx, const char *callout_info, size_t callout_len, void *aux, struct key *dest_keyring, unsigned long flags) { if (ctx->index_key.type == &key_type_keyring) { return ERR_PTR(-EPERM); } + ret = construct_get_dest_keyring(&des...
CVE-2017-17862
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
kernel/bpf/verifier.c
adjust_insn_aux_data
static int adjust_insn_aux_data(struct bpf_verifier_env *env, u32 prog_len, u32 off, u32 cnt) { struct bpf_insn_aux_data *new_data, *old_data = env->insn_aux_data; if (cnt == 1) { return 0; } new_data = vzalloc(sizeof(struct bpf_insn_aux_data) * prog_len); if (!new_data) { return -EN...
static int adjust_insn_aux_data(struct bpf_verifier_env *env, u32 prog_len, u32 off, u32 cnt) { struct bpf_insn_aux_data *new_data, *old_data = env->insn_aux_data; int i; if (cnt == 1) { return 0; } new_data = vzalloc(sizeof(struct bpf_insn_aux_data) * prog_len); if (!new_data) { ...
static int adjust_insn_aux_data(struct verifier_env *env, u32 prog_len, u32 off, u32 cnt) { struct bpf_insn_aux_data *new_data, *old_data = env->insn_aux_data; if (cnt == 1) { return 0; } new_data = vzalloc(sizeof(struct bpf_insn_aux_data) * prog_len); if (!new_data) { return -ENOMEM...
static int adjust_insn_aux_data(struct verifier_env *env, u32 prog_len, u32 off, u32 cnt) { struct bpf_insn_aux_data *new_data, *old_data = env->insn_aux_data; int i; if (cnt == 1) { return 0; } new_data = vzalloc(sizeof(struct bpf_insn_aux_data) * prog_len); if (!new_data) { ret...
static int adjust_insn_aux_data(struct bpf_verifier_env *env, u32 prog_len, u32 off, u32 cnt) { struct bpf_insn_aux_data *new_data, *old_data = env->insn_aux_data; if (cnt == 1) { return 0; } new_data = vzalloc(sizeof(struct bpf_insn_aux_data) * prog_len); if (!new_data) { return -EN...
static int adjust_insn_aux_data(struct bpf_verifier_env *env, u32 prog_len, u32 off, u32 cnt) { struct bpf_insn_aux_data *new_data, *old_data = env->insn_aux_data; int i; if (cnt == 1) { return 0; } new_data = vzalloc(sizeof(struct bpf_insn_aux_data) * prog_len); if (!new_data) { ...
static int adjust_insn_aux_data(struct verifier_env *env, u32 prog_len, u32 off, u32 cnt) { struct bpf_insn_aux_data *new_data, *old_data = env->insn_aux_data; if (cnt == 1) { return 0; } new_data = vzalloc(sizeof(struct bpf_insn_aux_data) * prog_len); if (!new_data) { return -ENOMEM...
static int adjust_insn_aux_data(struct verifier_env *env, u32 prog_len, u32 off, u32 cnt) { struct bpf_insn_aux_data *new_data, *old_data = env->insn_aux_data; int i; if (cnt == 1) { return 0; } new_data = vzalloc(sizeof(struct bpf_insn_aux_data) * prog_len); if (!new_data) { ret...
static int adjust_insn_aux_data(struct bpf_verifier_env *env, u32 prog_len, u32 off, u32 cnt) { struct bpf_insn_aux_data *new_data, *old_data = env->insn_aux_data; + int i; if (cnt == 1) { return 0; } new_data = vzalloc(sizeof(struct bpf_insn_aux_data) * prog_len); if (!new_data) {...
CVE-2017-17862
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
kernel/bpf/verifier.c
bpf_check
int bpf_check(struct bpf_prog **prog, union bpf_attr *attr) { char *log_ubuf = NULL; struct bpf_verifier_env *env; int ret = -EVAL; if ((*prog)->len <= 0 || (*prog)->len > BPF_MAXSNS) { return -E2BIG; } env = kzalloc(sizeof(struct bpf_verifier_env), GFP_KERNEL); if (!env) { r...
int bpf_check(struct bpf_prog **prog, union bpf_attr *attr) { char *log_ubuf = NULL; struct bpf_verifier_env *env; int ret = -EVAL; if ((*prog)->len <= 0 || (*prog)->len > BPF_MAXSNS) { return -E2BIG; } env = kzalloc(sizeof(struct bpf_verifier_env), GFP_KERNEL); if (!env) { r...
int bpf_check(struct bpf_prog **prog, union bpf_attr *attr) { char *log_ubuf = NULL; struct verifier_env *env; int ret = -EVAL; if ((*prog)->len <= 0 || (*prog)->len > BPF_MAXSNS) { return -E2BIG; } env = kzalloc(sizeof(struct verifier_env), GFP_KERNEL); if (!env) { return -E...
int bpf_check(struct bpf_prog **prog, union bpf_attr *attr) { char *log_ubuf = NULL; struct verifier_env *env; int ret = -EVAL; if ((*prog)->len <= 0 || (*prog)->len > BPF_MAXSNS) { return -E2BIG; } env = kzalloc(sizeof(struct verifier_env), GFP_KERNEL); if (!env) { return -E...
int bpf_check(struct bpf_prog **prog, union bpf_attr *attr) { env = kzalloc(sizeof(struct bpf_verifier_env), GFP_KERNEL); if (!env) { return -ENOMEM; } ret = -ENOMEM; if (attr->log_level || attr->log_buf || attr->log_size) { log_level = attr->log_level; log_ubuf = (char *) (u...
int bpf_check(struct bpf_prog **prog, union bpf_attr *attr) { env = kzalloc(sizeof(struct bpf_verifier_env), GFP_KERNEL); if (!env) { return -ENOMEM; } ret = -ENOMEM; if (attr->log_level || attr->log_buf || attr->log_size) { log_level = attr->log_level; log_ubuf = (char *) (u...
int bpf_check(struct bpf_prog **prog, union bpf_attr *attr) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ env = kzalloc(sizeof(struct verifier_env), GFP_KERNEL); if (!env) { return -ENOMEM; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ret = -ENOMEM; /* PLACEHOLDER: DO NOT DELETE...
int bpf_check(struct bpf_prog **prog, union bpf_attr *attr) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ env = kzalloc(sizeof(struct verifier_env), GFP_KERNEL); if (!env) { return -ENOMEM; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ret = -ENOMEM; /* PLACEHOLDER: DO NOT DELETE...
int bpf_check(struct bpf_prog **prog, union bpf_attr *attr) { env = kzalloc(sizeof(struct bpf_verifier_env), GFP_KERNEL); if (!env) { return -ENOMEM; } ret = -ENOMEM; if (attr->log_level || attr->log_buf || attr->log_size) { log_level = attr->log_level; log_ubuf = (c...
CVE-2017-17862
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
kernel/bpf/verifier.c
do_check
static int do_check(struct bpf_verifier_env *env) { struct bpf_verifier_state *state = &env->cur_state; struct bpf_insn *insns = env->prog->insnsi; struct bpf_reg_state *regs = state->regs; int insn_cnt = env->prog->len; int insn_idx, prev_insn_idx = 0; int insn_processed = 0; bool do_print_...
static int do_check(struct bpf_verifier_env *env) { struct bpf_verifier_state *state = &env->cur_state; struct bpf_insn *insns = env->prog->insnsi; struct bpf_reg_state *regs = state->regs; int insn_cnt = env->prog->len; int insn_idx, prev_insn_idx = 0; int insn_processed = 0; bool do_print_...
static int do_check(struct verifier_env *env) { struct verifier_state *state = &env->cur_state; struct bpf_insn *insns = env->prog->insnsi; struct reg_state *regs = state->regs; int insn_cnt = env->prog->len; int insn_idx, prev_insn_idx = 0; int insn_processed = 0; bool do_print_state = fals...
static int do_check(struct verifier_env *env) { struct verifier_state *state = &env->cur_state; struct bpf_insn *insns = env->prog->insnsi; struct reg_state *regs = state->regs; int insn_cnt = env->prog->len; int insn_idx, prev_insn_idx = 0; int insn_processed = 0; bool do_print_state = fals...
static int do_check(struct bpf_verifier_env *env) { for (;;) { if (err) { return err; } if (class == BPF_ALU || class == BPF_ALU64) { } else if (class == BPF_LDX) { } else if (class == BPF_STX) { } { } } else if (class =...
static int do_check(struct bpf_verifier_env *env) { for (;;) { if (err) { return err; } env->insn_aux_data[insn_idx].seen = true; if (class == BPF_ALU || class == BPF_ALU64) { } else if (class == BPF_LDX) { } else if (class == BPF_STX) { } ...
static int do_check(struct verifier_env *env) { struct verifier_state *state = &env->cur_state; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (;;) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (class == BPF_ALU || class == BPF_ALU64) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ...
static int do_check(struct verifier_env *env) { struct verifier_state *state = &env->cur_state; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (;;) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ env->insn_aux_data[insn_idx].seen = true; if (class == BPF_ALU || class == BPF_ALU64) { ...
static int do_check(struct bpf_verifier_env *env) { for (;;) { if (err) { return err; } + env->insn_aux_data[insn_idx].seen = true; if (class == BPF_ALU || class == BPF_ALU64) { } else if (class == BPF_LDX) { } else if (class == BPF_STX) { ...
CVE-2017-17975
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/media/usb/usbtv/usbtv-core.c
usbtv_probe
static int usbtv_probe(struct usb_interface *intf, const struct usb_device_id *id) { int ret; int size; struct device *dev = &intf->dev; struct usbtv *usbtv; if (intf->num_altsetting != 2) { return -ENODEV; } if (intf->altsetting[1].desc.bNumEndpoints != 4) { return -ENODEV; ...
static int usbtv_probe(struct usb_interface *intf, const struct usb_device_id *id) { int ret; int size; struct device *dev = &intf->dev; struct usbtv *usbtv; if (intf->num_altsetting != 2) { return -ENODEV; } if (intf->altsetting[1].desc.bNumEndpoints != 4) { return -ENODEV; ...
static int usbtv_probe(struct usb_interface *intf, const struct usb_device_id *id) { int ret; int size; struct device *dev = &intf->dev; struct usbtv *usbtv; if (intf->num_altsetting != 2) { return -ENODEV; } if (intf->altsetting[1].desc.bNumEndpoints != 4) { return -ENODEV; ...
static int usbtv_probe(struct usb_interface *intf, const struct usb_device_id *id) { int ret; int size; struct device *dev = &intf->dev; struct usbtv *usbtv; if (intf->num_altsetting != 2) { return -ENODEV; } if (intf->altsetting[1].desc.bNumEndpoints != 4) { return -ENODEV; ...
static int usbtv_probe(struct usb_interface *intf, const struct usb_device_id *id) { usbtv = kzalloc(sizeof(struct usbtv), GFP_KERNEL); if (usbtv == NULL) { return -ENOMEM; } usbtv->udev = usb_get_dev(interface_to_usbdev(intf)); usb_set_intfdata(intf, usbtv); ret = usbtv_video_init(usbtv...
static int usbtv_probe(struct usb_interface *intf, const struct usb_device_id *id) { usbtv = kzalloc(sizeof(struct usbtv), GFP_KERNEL); if (usbtv == NULL) { return -ENOMEM; } usbtv->udev = usb_get_dev(interface_to_usbdev(intf)); usb_set_intfdata(intf, usbtv); ret = usbtv_video_init(usbtv...
static int usbtv_probe(struct usb_interface *intf, const struct usb_device_id *id) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ usbtv = kzalloc(sizeof(struct usbtv), GFP_KERNEL); if (usbtv == NULL) { return -ENOMEM; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ usbtv->udev = usb_get...
static int usbtv_probe(struct usb_interface *intf, const struct usb_device_id *id) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ usbtv = kzalloc(sizeof(struct usbtv), GFP_KERNEL); if (usbtv == NULL) { return -ENOMEM; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ usbtv->udev = usb_get...
static int usbtv_probe(struct usb_interface *intf, const struct usb_device_id *id) { usbtv = kzalloc(sizeof(struct usbtv), GFP_KERNEL); if (usbtv == NULL) { return -ENOMEM; } usbtv->udev = usb_get_dev(interface_to_usbdev(intf)); usb_set_intfdata(intf, usbtv); ret = usbtv_video_in...
CVE-2017-18017
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/netfilter/xt_TCPMSS.c
tcpmss_mangle_packet
static int tcpmss_mangle_packet(struct sk_buff *skb, const struct xt_action_param *par, unsigned int family, unsigned int tcphoff, unsigned int minlen) { const struct xt_tcpmss_info *info = par->targinfo; struct tcphdr *tcph; int len, tcp_hdrlen; unsigned int i; __be16 oldval; u16 newmss; u8...
static int tcpmss_mangle_packet(struct sk_buff *skb, const struct xt_action_param *par, unsigned int family, unsigned int tcphoff, unsigned int minlen) { const struct xt_tcpmss_info *info = par->targinfo; struct tcphdr *tcph; int len, tcp_hdrlen; unsigned int i; __be16 oldval; u16 newmss; u8...
static int tcpmss_mangle_packet(struct sk_buff *skb, const struct xt_action_param *par, unsigned int family, unsigned int tcphoff, unsigned int minlen) { const struct xt_tcpmss_info *info = par->targinfo; struct tcphdr *tcph; int len, tcp_hdrlen; unsigned int i; __be16 oldval; u16 newmss; u8...
static int tcpmss_mangle_packet(struct sk_buff *skb, const struct xt_action_param *par, unsigned int family, unsigned int tcphoff, unsigned int minlen) { const struct xt_tcpmss_info *info = par->targinfo; struct tcphdr *tcph; int len, tcp_hdrlen; unsigned int i; __be16 oldval; u16 newmss; u8...
static int tcpmss_mangle_packet(struct sk_buff *skb, const struct xt_action_param *par, unsigned int family, unsigned int tcphoff, unsigned int minlen) { if (!skb_make_writable(skb, skb->len)) { return -1; } len = skb->len - tcphoff; if (len < (int)sizeof(struct tcphdr)) { return -1; ...
static int tcpmss_mangle_packet(struct sk_buff *skb, const struct xt_action_param *par, unsigned int family, unsigned int tcphoff, unsigned int minlen) { if (!skb_make_writable(skb, skb->len)) { return -1; } len = skb->len - tcphoff; if (len < (int)sizeof(struct tcphdr)) { return -1; ...
static int tcpmss_mangle_packet(struct sk_buff *skb, const struct xt_action_param *par, unsigned int family, unsigned int tcphoff, unsigned int minlen) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!skb_make_writable(skb, skb->len)) { return -1; } len = skb->len - tcphoff; if (len < (i...
static int tcpmss_mangle_packet(struct sk_buff *skb, const struct xt_action_param *par, unsigned int family, unsigned int tcphoff, unsigned int minlen) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!skb_make_writable(skb, skb->len)) { return -1; } len = skb->len - tcphoff; if (len < (i...
static int tcpmss_mangle_packet(struct sk_buff *skb, const struct xt_action_param *par, unsigned int family, unsigned int tcphoff, unsigned int minlen) { if (!skb_make_writable(skb, skb->len)) { return -1; } len = skb->len - tcphoff; if (len < (int)sizeof(struct tcphdr)) { return ...
CVE-2017-18075
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
crypto/pcrypt.c
pcrypt_create_aead
static int pcrypt_create_aead(struct crypto_template *tmpl, struct rtattr **tb, u32 type, u32 mask) { struct pcrypt_instance_ctx *ctx; struct crypto_attr_type *algt; struct aead_instance *inst; struct aead_alg *alg; const char *name; int err; algt = crypto_get_attr_type(tb); if (IS_ERR(a...
static int pcrypt_create_aead(struct crypto_template *tmpl, struct rtattr **tb, u32 type, u32 mask) { struct pcrypt_instance_ctx *ctx; struct crypto_attr_type *algt; struct aead_instance *inst; struct aead_alg *alg; const char *name; int err; algt = crypto_get_attr_type(tb); if (IS_ERR(a...
static int pcrypt_create_aead(struct crypto_template *tmpl, struct rtattr **tb, u32 type, u32 mask) { struct pcrypt_instance_ctx *ctx; struct crypto_attr_type *algt; struct aead_instance *inst; struct aead_alg *alg; const char *name; int err; algt = crypto_get_attr_type(tb); if (IS_ERR(a...
static int pcrypt_create_aead(struct crypto_template *tmpl, struct rtattr **tb, u32 type, u32 mask) { struct pcrypt_instance_ctx *ctx; struct crypto_attr_type *algt; struct aead_instance *inst; struct aead_alg *alg; const char *name; int err; algt = crypto_get_attr_type(tb); if (IS_ERR(a...
static int pcrypt_create_aead(struct crypto_template *tmpl, struct rtattr **tb, u32 type, u32 mask) { inst->alg.decrypt = pcrypt_aead_decrypt; err = aead_register_instance(tmpl, inst); out: return err; out_free_inst: kfree(inst); }
static int pcrypt_create_aead(struct crypto_template *tmpl, struct rtattr **tb, u32 type, u32 mask) { inst->alg.decrypt = pcrypt_aead_decrypt; inst->free = pcrypt_free; err = aead_register_instance(tmpl, inst); out: return err; out_free_inst: kfree(inst); }
static int pcrypt_create_aead(struct crypto_template *tmpl, struct rtattr **tb, u32 type, u32 mask) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ inst->alg.decrypt = pcrypt_aead_decrypt; err = aead_register_instance(tmpl, inst); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ out: return err; /*...
static int pcrypt_create_aead(struct crypto_template *tmpl, struct rtattr **tb, u32 type, u32 mask) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ inst->alg.decrypt = pcrypt_aead_decrypt; inst->free = pcrypt_free; err = aead_register_instance(tmpl, inst); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT ...
static int pcrypt_create_aead(struct crypto_template *tmpl, struct rtattr **tb, u32 type, u32 mask) { inst->alg.decrypt = pcrypt_aead_decrypt; + inst->free = pcrypt_free; err = aead_register_instance(tmpl, inst); out: return err; out_free_inst: kfree(inst); }
CVE-2017-18079
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/input/serio/i8042.c
i8042_interrupt
static irqreturn_t i8042_interrupt(int irq, void *dev_id) { struct i8042_port *port; struct serio *serio; unsigned long flags; unsigned char str, data; unsigned int dfl; unsigned int port_no; bool filtered; int ret = 1; spin_lock_irqsave(&i8042_lock, flags); str = i8042_read_stat...
static irqreturn_t i8042_interrupt(int irq, void *dev_id) { struct i8042_port *port; struct serio *serio; unsigned long flags; unsigned char str, data; unsigned int dfl; unsigned int port_no; bool filtered; int ret = 1; spin_lock_irqsave(&i8042_lock, flags); str = i8042_read_stat...
static irqreturn_t i8042_interrupt(int irq, void *dev_id) { struct i8042_port *port; struct serio *serio; unsigned long flags; unsigned char str, data; unsigned int dfl; unsigned int port_no; bool filtered; int ret = 1; spin_lock_irqsave(&i8042_lock, flags); str = i8042_read_stat...
static irqreturn_t i8042_interrupt(int irq, void *dev_id) { struct i8042_port *port; struct serio *serio; unsigned long flags; unsigned char str, data; unsigned int dfl; unsigned int port_no; bool filtered; int ret = 1; spin_lock_irqsave(&i8042_lock, flags); str = i8042_read_stat...
static irqreturn_t i8042_interrupt(int irq, void *dev_id) { str = i8042_read_status(); if (unlikely(~str & I8042_STR_OBF)) { goto out; } data = i8042_read_data(); if (i8042_mux_present && (str & I8042_STR_AUXDATA)) { dfl = 0; if (str & I8042_STR_MUXERR) { dbg("MUX...
static irqreturn_t i8042_interrupt(int irq, void *dev_id) { str = i8042_read_status(); if (unlikely(~str & I8042_STR_OBF)) { goto out; } data = i8042_read_data(); if (i8042_mux_present && (str & I8042_STR_AUXDATA)) { dfl = 0; if (str & I8042_STR_MUXERR) { dbg("MUX...
static irqreturn_t i8042_interrupt(int irq, void *dev_id) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ str = i8042_read_status(); if (unlikely(~str & I8042_STR_OBF)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ goto out; } data = i8042_read_data(); if (i8042_mux_present && (str...
static irqreturn_t i8042_interrupt(int irq, void *dev_id) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ str = i8042_read_status(); if (unlikely(~str & I8042_STR_OBF)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ goto out; } data = i8042_read_data(); if (i8042_mux_present && (str...
static irqreturn_t i8042_interrupt(int irq, void *dev_id) { str = i8042_read_status(); if (unlikely(~str & I8042_STR_OBF)) { goto out; } data = i8042_read_data(); if (i8042_mux_present && (str & I8042_STR_AUXDATA)) { dfl = 0; if (str & I8042_STR_MUXERR) { ...
CVE-2017-18079
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/input/serio/i8042.c
i8042_start
static int i8042_start(struct serio *serio) { struct i8042_port *port = serio->port_data; port->exists = true; mb(); return 0; }
static int i8042_start(struct serio *serio) { struct i8042_port *port = serio->port_data; spin_lock_irq(&i8042_lock); port->exists = true; spin_unlock_irq(&i8042_lock); return 0; }
static int i8042_start(struct serio *serio) { struct i8042_port *port = serio->port_data; port->exists = true; mb(); return 0; }
static int i8042_start(struct serio *serio) { struct i8042_port *port = serio->port_data; spin_lock_irq(&i8042_lock); port->exists = true; spin_unlock_irq(&i8042_lock); return 0; }
static int i8042_start(struct serio *serio) { struct i8042_port *port = serio->port_data; port->exists = true; mb(); return 0; }
static int i8042_start(struct serio *serio) { struct i8042_port *port = serio->port_data; spin_lock_irq(&i8042_lock); port->exists = true; spin_unlock_irq(&i8042_lock); return 0; }
static int i8042_start(struct serio *serio) { struct i8042_port *port = serio->port_data; port->exists = true; mb(); return 0; }
static int i8042_start(struct serio *serio) { struct i8042_port *port = serio->port_data; spin_lock_irq(&i8042_lock); port->exists = true; spin_unlock_irq(&i8042_lock); return 0; }
static int i8042_start(struct serio *serio) { struct i8042_port *port = serio->port_data; + spin_lock_irq(&i8042_lock); port->exists = true; - mb(); + spin_unlock_irq(&i8042_lock); return 0; }
CVE-2017-18079
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/input/serio/i8042.c
i8042_stop
static void i8042_stop(struct serio *serio) { struct i8042_port *port = serio->port_data; port->exists = false; synchronize_irq(I8042_AUX_IRQ); synchronize_irq(I8042_KBD_IRQ); port->serio = NULL; }
static void i8042_stop(struct serio *serio) { struct i8042_port *port = serio->port_data; spin_lock_irq(&i8042_lock); port->exists = false; port->serio = NULL; spin_unlock_irq(&i8042_lock); synchronize_irq(I8042_AUX_IRQ); synchronize_irq(I8042_KBD_IRQ); }
static void i8042_stop(struct serio *serio) { struct i8042_port *port = serio->port_data; port->exists = false; synchronize_irq(I8042_AUX_IRQ); synchronize_irq(I8042_KBD_IRQ); port->serio = NULL; }
static void i8042_stop(struct serio *serio) { struct i8042_port *port = serio->port_data; spin_lock_irq(&i8042_lock); port->exists = false; port->serio = NULL; spin_unlock_irq(&i8042_lock); synchronize_irq(I8042_AUX_IRQ); synchronize_irq(I8042_KBD_IRQ); }
static void i8042_stop(struct serio *serio) { struct i8042_port *port = serio->port_data; port->exists = false; synchronize_irq(I8042_AUX_IRQ); synchronize_irq(I8042_KBD_IRQ); port->serio = NULL; }
static void i8042_stop(struct serio *serio) { struct i8042_port *port = serio->port_data; spin_lock_irq(&i8042_lock); port->exists = false; port->serio = NULL; spin_unlock_irq(&i8042_lock); synchronize_irq(I8042_AUX_IRQ); synchronize_irq(I8042_KBD_IRQ); }
static void i8042_stop(struct serio *serio) { struct i8042_port *port = serio->port_data; port->exists = false; synchronize_irq(I8042_AUX_IRQ); synchronize_irq(I8042_KBD_IRQ); port->serio = NULL; }
static void i8042_stop(struct serio *serio) { struct i8042_port *port = serio->port_data; spin_lock_irq(&i8042_lock); port->exists = false; port->serio = NULL; spin_unlock_irq(&i8042_lock); synchronize_irq(I8042_AUX_IRQ); synchronize_irq(I8042_KBD_IRQ); }
static void i8042_stop(struct serio *serio) { struct i8042_port *port = serio->port_data; + spin_lock_irq(&i8042_lock); port->exists = false; + port->serio = NULL; + spin_unlock_irq(&i8042_lock); synchronize_irq(I8042_AUX_IRQ); synchronize_irq(I8042_KBD_IRQ); - port->serio = NULL; }
CVE-2017-18202
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
mm/oom_kill.c
__oom_reap_task_mm
static bool __oom_reap_task_mm(struct task_struct *tsk, struct mm_struct *mm) { struct mmu_gather tlb; struct vm_area_struct *vma; bool ret = true; mutex_lock(&oom_lock); if (!down_read_trylock(&mm->mmap_sem)) { ret = false; trace_skip_task_reaping(tsk->pid); goto unlock_oom;...
static bool __oom_reap_task_mm(struct task_struct *tsk, struct mm_struct *mm) { struct mmu_gather tlb; struct vm_area_struct *vma; bool ret = true; mutex_lock(&oom_lock); if (!down_read_trylock(&mm->mmap_sem)) { ret = false; trace_skip_task_reaping(tsk->pid); goto unlock_oom;...
static bool __oom_reap_task_mm(struct task_struct *tsk, struct mm_struct *mm) { struct mmu_gather tlb; struct vm_area_struct *vma; struct zap_details details = {.check_swap_entries = true, .ignore_dirty = true }; bool ret = true; mutex_lock(&oom_lock); if (!down_read_trylock(&mm->mmap_sem)) { ...
static bool __oom_reap_task_mm(struct task_struct *tsk, struct mm_struct *mm) { struct mmu_gather tlb; struct vm_area_struct *vma; struct zap_details details = {.check_swap_entries = true, .ignore_dirty = true }; bool ret = true; mutex_lock(&oom_lock); if (!down_read_trylock(&mm->mmap_sem)) { ...
static bool __oom_reap_task_mm(struct task_struct *tsk, struct mm_struct *mm) { if (mm_has_notifiers(mm)) { goto unlock_oom; } set_bit(MMF_UNSTABLE, &mm->flags); tlb_gather_mmu(&tlb, mm, 0, -1); for (vma = mm->mmap ; vma; vma = vma->vm_next) { if (vma_is_anonymous(vma) || !(vma->vm_f...
static bool __oom_reap_task_mm(struct task_struct *tsk, struct mm_struct *mm) { if (mm_has_notifiers(mm)) { goto unlock_oom; } set_bit(MMF_UNSTABLE, &mm->flags); for (vma = mm->mmap ; vma; vma = vma->vm_next) { if (vma_is_anonymous(vma) || !(vma->vm_flags & VM_SHARED)) { tlb_...
static bool __oom_reap_task_mm(struct task_struct *tsk, struct mm_struct *mm) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (mm_has_notifiers(mm)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ goto unlock_oom; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ set_bit(MMF_UNSTABLE, &...
static bool __oom_reap_task_mm(struct task_struct *tsk, struct mm_struct *mm) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (mm_has_notifiers(mm)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ goto unlock_oom; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ set_bit(MMF_UNSTABLE, &...
static bool __oom_reap_task_mm(struct task_struct *tsk, struct mm_struct *mm) { if (mm_has_notifiers(mm)) { goto unlock_oom; } set_bit(MMF_UNSTABLE, &mm->flags); - tlb_gather_mmu(&tlb, mm, 0, -1); for (vma = mm->mmap ; vma; vma = vma->vm_next) { if (vma_is_anonymous(vma) || !(v...
CVE-2017-18203
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/md/dm.c
dm_get_from_kobject
struct mapped_device *dm_get_from_kobject(struct kobject *kobj) { struct mapped_device *md; md = container_of(kobj, struct mapped_device, kobj_holder.kobj); if (test_bit(DMF_FREEG, &md->flags) || dm_deleting_md(md)) { return NULL; } dm_get(md); return md; }
struct mapped_device *dm_get_from_kobject(struct kobject *kobj) { struct mapped_device *md; md = container_of(kobj, struct mapped_device, kobj_holder.kobj); spin_lock(&_minor_lock); if (test_bit(DMF_FREEG, &md->flags) || dm_deleting_md(md)) { md = NULL; goto out; } dm_get(md); ou...
struct mapped_device *dm_get_from_kobject(struct kobject *kobj) { struct mapped_device *md; md = container_of(kobj, struct mapped_device, kobj_holder.kobj); if (test_bit(DMF_FREEG, &md->flags) || dm_deleting_md(md)) { return NULL; } dm_get(md); return md; }
struct mapped_device *dm_get_from_kobject(struct kobject *kobj) { struct mapped_device *md; md = container_of(kobj, struct mapped_device, kobj_holder.kobj); spin_lock(&_minor_lock); if (test_bit(DMF_FREEG, &md->flags) || dm_deleting_md(md)) { md = NULL; goto out; } dm_get(md); ou...
struct mapped_device *dm_get_from_kobject(struct kobject *kobj) { struct mapped_device *md; md = container_of(kobj, struct mapped_device, kobj_holder.kobj); if (test_bit(DMF_FREEG, &md->flags) || dm_deleting_md(md)) { return NULL; } dm_get(md); return md; }
struct mapped_device *dm_get_from_kobject(struct kobject *kobj) { struct mapped_device *md; md = container_of(kobj, struct mapped_device, kobj_holder.kobj); spin_lock(&_minor_lock); if (test_bit(DMF_FREEG, &md->flags) || dm_deleting_md(md)) { md = NULL; goto out; } dm_get(md); ou...
struct mapped_device *dm_get_from_kobject(struct kobject *kobj) { struct mapped_device *md; md = container_of(kobj, struct mapped_device, kobj_holder.kobj); if (test_bit(DMF_FREEG, &md->flags) || dm_deleting_md(md)) { return NULL; } dm_get(md); return md; }
struct mapped_device *dm_get_from_kobject(struct kobject *kobj) { struct mapped_device *md; md = container_of(kobj, struct mapped_device, kobj_holder.kobj); spin_lock(&_minor_lock); if (test_bit(DMF_FREEG, &md->flags) || dm_deleting_md(md)) { md = NULL; goto out; } dm_get(md); ou...
struct mapped_device *dm_get_from_kobject(struct kobject *kobj) { struct mapped_device *md; md = container_of(kobj, struct mapped_device, kobj_holder.kobj); + spin_lock(&_minor_lock); if (test_bit(DMF_FREEG, &md->flags) || dm_deleting_md(md)) { - return NULL; + md = NULL; + goto ...
CVE-2017-18204
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/ocfs2/file.c
ocfs2_setattr
int ocfs2_setattr(struct dentry *dentry, struct iattr *attr) { int status = 0, size_change; struct inode *inode = dentry->d_inode; struct super_block *sb = inode->i_sb; struct ocfs2_super *osb = OCFS2_SB(sb); struct buffer_head *bh = NULL; handle_t *handle = NULL; struct dquot *transfer_to[M...
int ocfs2_setattr(struct dentry *dentry, struct iattr *attr) { int status = 0, size_change; struct inode *inode = dentry->d_inode; struct super_block *sb = inode->i_sb; struct ocfs2_super *osb = OCFS2_SB(sb); struct buffer_head *bh = NULL; handle_t *handle = NULL; struct dquot *transfer_to[M...
int ocfs2_setattr(struct dentry *dentry, struct iattr *attr) { int status = 0, size_change; struct inode *inode = d_inode(dentry); struct super_block *sb = inode->i_sb; struct ocfs2_super *osb = OCFS2_SB(sb); struct buffer_head *bh = NULL; handle_t *handle = NULL; struct dquot *transfer_to[M...
int ocfs2_setattr(struct dentry *dentry, struct iattr *attr) { int status = 0, size_change; struct inode *inode = d_inode(dentry); struct super_block *sb = inode->i_sb; struct ocfs2_super *osb = OCFS2_SB(sb); struct buffer_head *bh = NULL; handle_t *handle = NULL; struct dquot *transfer_to[M...
int ocfs2_setattr(struct dentry *dentry, struct iattr *attr) { struct inode *inode = dentry->d_inode; struct buffer_head *bh = NULL; trace_ocfs2_setattr(inode, dentry, (unsigned long long)OCFS2_I(inode)->ip_blkno, dentry->d_name.len, dentry->d_name.name, attr->ia_valid, attr->ia_mode, from_kuid(&init_user_n...
int ocfs2_setattr(struct dentry *dentry, struct iattr *attr) { struct inode *inode = dentry->d_inode; struct buffer_head *bh = NULL; trace_ocfs2_setattr(inode, dentry, (unsigned long long)OCFS2_I(inode)->ip_blkno, dentry->d_name.len, dentry->d_name.name, attr->ia_valid, attr->ia_mode, from_kuid(&init_user_n...
int ocfs2_setattr(struct dentry *dentry, struct iattr *attr) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct inode *inode = d_inode(dentry); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct buffer_head *bh = NULL; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ trace_ocfs2_setattr(inode...
int ocfs2_setattr(struct dentry *dentry, struct iattr *attr) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct inode *inode = d_inode(dentry); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct buffer_head *bh = NULL; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ trace_ocfs2_setattr(inode...
int ocfs2_setattr(struct dentry *dentry, struct iattr *attr) { struct inode *inode = dentry->d_inode; struct buffer_head *bh = NULL; trace_ocfs2_setattr(inode, dentry, (unsigned long long)OCFS2_I(inode)->ip_blkno, dentry->d_name.len, dentry->d_name.name, attr->ia_valid, attr->ia_mode, from_kuid(&init_us...
CVE-2017-18208
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
mm/madvise.c
madvise_willneed
static long madvise_willneed(struct vm_area_struct *vma, struct vm_area_struct **prev, unsigned long start, unsigned long end) { struct file *file = vma->vm_file; if (!file || mapping_cap_swap_backed(file->f_mapping)) { *prev = vma; if (!file) { force_swapin_readahead(vma, start, end...
static long madvise_willneed(struct vm_area_struct *vma, struct vm_area_struct **prev, unsigned long start, unsigned long end) { struct file *file = vma->vm_file; *prev = vma; if (!file || mapping_cap_swap_backed(file->f_mapping)) { if (!file) { force_swapin_readahead(vma, start, end); ...
static long madvise_willneed(struct vm_area_struct *vma, struct vm_area_struct **prev, unsigned long start, unsigned long end) { struct file *file = vma->vm_file; if (!file || mapping_cap_swap_backed(file->f_mapping)) { *prev = vma; if (!file) { force_swapin_readahead(vma, start, end...
static long madvise_willneed(struct vm_area_struct *vma, struct vm_area_struct **prev, unsigned long start, unsigned long end) { struct file *file = vma->vm_file; *prev = vma; if (!file || mapping_cap_swap_backed(file->f_mapping)) { if (!file) { force_swapin_readahead(vma, start, end); ...
static long madvise_willneed(struct vm_area_struct *vma, struct vm_area_struct **prev, unsigned long start, unsigned long end) { struct file *file = vma->vm_file; if (!file || mapping_cap_swap_backed(file->f_mapping)) { *prev = vma; if (!file) { } else { force_shm_swapin_read...
static long madvise_willneed(struct vm_area_struct *vma, struct vm_area_struct **prev, unsigned long start, unsigned long end) { struct file *file = vma->vm_file; *prev = vma; if (!file || mapping_cap_swap_backed(file->f_mapping)) { if (!file) { } else { force_shm_swapin_readahea...
static long madvise_willneed(struct vm_area_struct *vma, struct vm_area_struct **prev, unsigned long start, unsigned long end) { struct file *file = vma->vm_file; if (!file || mapping_cap_swap_backed(file->f_mapping)) { *prev = vma; if (!file) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ...
static long madvise_willneed(struct vm_area_struct *vma, struct vm_area_struct **prev, unsigned long start, unsigned long end) { struct file *file = vma->vm_file; *prev = vma; if (!file || mapping_cap_swap_backed(file->f_mapping)) { if (!file) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ...
static long madvise_willneed(struct vm_area_struct *vma, struct vm_area_struct **prev, unsigned long start, unsigned long end) { struct file *file = vma->vm_file; + *prev = vma; if (!file || mapping_cap_swap_backed(file->f_mapping)) { - *prev = vma; if (!file) { } else { ...
CVE-2017-18221
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
mm/mlock.c
__munlock_pagevec
static void __munlock_pagevec(struct pagevec *pvec, struct zone *zone) { int i; int nr = pagevec_count(pvec); int delta_munlocked; struct pagevec pvec_putback; int pgrescued = 0; pagevec_init(&pvec_putback, 0); spin_lock_irq(&zone->lru_lock); for (i = 0; i < nr; i++) { struct pag...
static void __munlock_pagevec(struct pagevec *pvec, struct zone *zone) { int i; int nr = pagevec_count(pvec); int delta_munlocked = -nr; struct pagevec pvec_putback; int pgrescued = 0; pagevec_init(&pvec_putback, 0); spin_lock_irq(&zone->lru_lock); for (i = 0; i < nr; i++) { stru...
static void __munlock_pagevec(struct pagevec *pvec, struct zone *zone) { int i; int nr = pagevec_count(pvec); int delta_munlocked; struct pagevec pvec_putback; int pgrescued = 0; pagevec_init(&pvec_putback, 0); spin_lock_irq(&zone->lru_lock); for (i = 0; i < nr; i++) { struct pag...
static void __munlock_pagevec(struct pagevec *pvec, struct zone *zone) { int i; int nr = pagevec_count(pvec); int delta_munlocked = -nr; struct pagevec pvec_putback; int pgrescued = 0; pagevec_init(&pvec_putback, 0); spin_lock_irq(&zone->lru_lock); for (i = 0; i < nr; i++) { stru...
static void __munlock_pagevec(struct pagevec *pvec, struct zone *zone) { int nr = pagevec_count(pvec); int delta_munlocked; struct pagevec pvec_putback; int pgrescued = 0; for (i = 0; i < nr; i++) { if (TestClearPageMlocked(page)) { } pagevec_add(&pvec_putback, pvec->pages[i]...
static void __munlock_pagevec(struct pagevec *pvec, struct zone *zone) { int nr = pagevec_count(pvec); int delta_munlocked = -nr; struct pagevec pvec_putback; int pgrescued = 0; for (i = 0; i < nr; i++) { if (TestClearPageMlocked(page)) { } else { delta_munlocked++; ...
static void __munlock_pagevec(struct pagevec *pvec, struct zone *zone) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int nr = pagevec_count(pvec); int delta_munlocked; struct pagevec pvec_putback; int pgrescued = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (i = 0; i < nr; i++) { ...
static void __munlock_pagevec(struct pagevec *pvec, struct zone *zone) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int nr = pagevec_count(pvec); int delta_munlocked = -nr; struct pagevec pvec_putback; int pgrescued = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (i = 0; i < nr; i+...
static void __munlock_pagevec(struct pagevec *pvec, struct zone *zone) { int nr = pagevec_count(pvec); - int delta_munlocked; + int delta_munlocked = -nr; struct pagevec pvec_putback; int pgrescued = 0; for (i = 0; i < nr; i++) { if (TestClearPageMlocked(page)) { + } else { + ...
CVE-2017-18222
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c
hns_gmac_get_sset_count
static int hns_gmac_get_sset_count(int stringset) { if (stringset == ETH_SS_STATS) { return ARRAY_SIZE(g_gmac_stats_string); } return 0; }
static int hns_gmac_get_sset_count(int stringset) { if (stringset == ETH_SS_STATS || stringset == ETH_SS_PRIV_FLAGS) { return ARRAY_SIZE(g_gmac_stats_string); } return 0; }
static int hns_gmac_get_sset_count(int stringset) { if (stringset == ETH_SS_STATS) { return ARRAY_SIZE(g_gmac_stats_string); } return 0; }
static int hns_gmac_get_sset_count(int stringset) { if (stringset == ETH_SS_STATS || stringset == ETH_SS_PRIV_FLAGS) { return ARRAY_SIZE(g_gmac_stats_string); } return 0; }
static int hns_gmac_get_sset_count(int stringset) { if (stringset == ETH_SS_STATS) { return ARRAY_SIZE(g_gmac_stats_string); } return 0; }
static int hns_gmac_get_sset_count(int stringset) { if (stringset == ETH_SS_STATS || stringset == ETH_SS_PRIV_FLAGS) { return ARRAY_SIZE(g_gmac_stats_string); } return 0; }
static int hns_gmac_get_sset_count(int stringset) { if (stringset == ETH_SS_STATS) { return ARRAY_SIZE(g_gmac_stats_string); } return 0; }
static int hns_gmac_get_sset_count(int stringset) { if (stringset == ETH_SS_STATS || stringset == ETH_SS_PRIV_FLAGS) { return ARRAY_SIZE(g_gmac_stats_string); } return 0; }
static int hns_gmac_get_sset_count(int stringset) { - if (stringset == ETH_SS_STATS) { + if (stringset == ETH_SS_STATS || stringset == ETH_SS_PRIV_FLAGS) { return ARRAY_SIZE(g_gmac_stats_string); } return 0; }
CVE-2017-18222
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/net/ethernet/hisilicon/hns/hns_dsaf_ppe.c
hns_ppe_get_sset_count
int hns_ppe_get_sset_count(int stringset) { if (stringset == ETH_SS_STATS) { return ETH_PPE_STATIC_NUM; } return 0; }
int hns_ppe_get_sset_count(int stringset) { if (stringset == ETH_SS_STATS || stringset == ETH_SS_PRIV_FLAGS) { return ETH_PPE_STATIC_NUM; } return 0; }
int hns_ppe_get_sset_count(int stringset) { if (stringset == ETH_SS_STATS) { return ETH_PPE_STATIC_NUM; } return 0; }
int hns_ppe_get_sset_count(int stringset) { if (stringset == ETH_SS_STATS || stringset == ETH_SS_PRIV_FLAGS) { return ETH_PPE_STATIC_NUM; } return 0; }
int hns_ppe_get_sset_count(int stringset) { if (stringset == ETH_SS_STATS) { return ETH_PPE_STATIC_NUM; } return 0; }
int hns_ppe_get_sset_count(int stringset) { if (stringset == ETH_SS_STATS || stringset == ETH_SS_PRIV_FLAGS) { return ETH_PPE_STATIC_NUM; } return 0; }
int hns_ppe_get_sset_count(int stringset) { if (stringset == ETH_SS_STATS) { return ETH_PPE_STATIC_NUM; } return 0; }
int hns_ppe_get_sset_count(int stringset) { if (stringset == ETH_SS_STATS || stringset == ETH_SS_PRIV_FLAGS) { return ETH_PPE_STATIC_NUM; } return 0; }
int hns_ppe_get_sset_count(int stringset) { - if (stringset == ETH_SS_STATS) { + if (stringset == ETH_SS_STATS || stringset == ETH_SS_PRIV_FLAGS) { return ETH_PPE_STATIC_NUM; } return 0; }
CVE-2017-18222
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/net/ethernet/hisilicon/hns/hns_dsaf_rcb.c
hns_rcb_get_ring_sset_count
int hns_rcb_get_ring_sset_count(int stringset) { if (stringset == ETH_SS_STATS) { return HNS_RG_STATIC_REG_NUM; } return 0; }
int hns_rcb_get_ring_sset_count(int stringset) { if (stringset == ETH_SS_STATS || stringset == ETH_SS_PRIV_FLAGS) { return HNS_RG_STATIC_REG_NUM; } return 0; }
int hns_rcb_get_ring_sset_count(int stringset) { if (stringset == ETH_SS_STATS) { return HNS_RG_STATIC_REG_NUM; } return 0; }
int hns_rcb_get_ring_sset_count(int stringset) { if (stringset == ETH_SS_STATS || stringset == ETH_SS_PRIV_FLAGS) { return HNS_RG_STATIC_REG_NUM; } return 0; }
int hns_rcb_get_ring_sset_count(int stringset) { if (stringset == ETH_SS_STATS) { return HNS_RG_STATIC_REG_NUM; } return 0; }
int hns_rcb_get_ring_sset_count(int stringset) { if (stringset == ETH_SS_STATS || stringset == ETH_SS_PRIV_FLAGS) { return HNS_RG_STATIC_REG_NUM; } return 0; }
int hns_rcb_get_ring_sset_count(int stringset) { if (stringset == ETH_SS_STATS) { return HNS_RG_STATIC_REG_NUM; } return 0; }
int hns_rcb_get_ring_sset_count(int stringset) { if (stringset == ETH_SS_STATS || stringset == ETH_SS_PRIV_FLAGS) { return HNS_RG_STATIC_REG_NUM; } return 0; }
int hns_rcb_get_ring_sset_count(int stringset) { - if (stringset == ETH_SS_STATS) { + if (stringset == ETH_SS_STATS || stringset == ETH_SS_PRIV_FLAGS) { return HNS_RG_STATIC_REG_NUM; } return 0; }
CVE-2017-18222
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c
hns_xgmac_get_sset_count
static int hns_xgmac_get_sset_count(int stringset) { if (stringset == ETH_SS_STATS) { return ARRAY_SIZE(g_xgmac_stats_string); } return 0; }
static int hns_xgmac_get_sset_count(int stringset) { if (stringset == ETH_SS_STATS || stringset == ETH_SS_PRIV_FLAGS) { return ARRAY_SIZE(g_xgmac_stats_string); } return 0; }
static int hns_xgmac_get_sset_count(int stringset) { if (stringset == ETH_SS_STATS) { return ARRAY_SIZE(g_xgmac_stats_string); } return 0; }
static int hns_xgmac_get_sset_count(int stringset) { if (stringset == ETH_SS_STATS || stringset == ETH_SS_PRIV_FLAGS) { return ARRAY_SIZE(g_xgmac_stats_string); } return 0; }
static int hns_xgmac_get_sset_count(int stringset) { if (stringset == ETH_SS_STATS) { return ARRAY_SIZE(g_xgmac_stats_string); } return 0; }
static int hns_xgmac_get_sset_count(int stringset) { if (stringset == ETH_SS_STATS || stringset == ETH_SS_PRIV_FLAGS) { return ARRAY_SIZE(g_xgmac_stats_string); } return 0; }
static int hns_xgmac_get_sset_count(int stringset) { if (stringset == ETH_SS_STATS) { return ARRAY_SIZE(g_xgmac_stats_string); } return 0; }
static int hns_xgmac_get_sset_count(int stringset) { if (stringset == ETH_SS_STATS || stringset == ETH_SS_PRIV_FLAGS) { return ARRAY_SIZE(g_xgmac_stats_string); } return 0; }
static int hns_xgmac_get_sset_count(int stringset) { - if (stringset == ETH_SS_STATS) { + if (stringset == ETH_SS_STATS || stringset == ETH_SS_PRIV_FLAGS) { return ARRAY_SIZE(g_xgmac_stats_string); } return 0; }
CVE-2017-18224
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/ocfs2/aops.c
ocfs2_direct_IO
static ssize_t ocfs2_direct_IO(struct kiocb *iocb, struct iov_iter *iter) { struct file *file = iocb->ki_filp; struct inode *inode = file->f_mapping->host; struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); get_block_t *get_block; if (OCFS2_I(inode)->ip_dyn_features & OCFS2__DATA_FL) { return ...
static ssize_t ocfs2_direct_IO(struct kiocb *iocb, struct iov_iter *iter) { struct file *file = iocb->ki_filp; struct inode *inode = file->f_mapping->host; struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); get_block_t *get_block; if (OCFS2_I(inode)->ip_dyn_features & OCFS2__DATA_FL) { return ...
static ssize_t ocfs2_direct_IO(struct kiocb *iocb, struct iov_iter *iter) { struct file *file = iocb->ki_filp; struct inode *inode = file->f_mapping->host; struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); get_block_t *get_block; if (OCFS2_I(inode)->ip_dyn_features & OCFS2__DATA_FL) { return ...
static ssize_t ocfs2_direct_IO(struct kiocb *iocb, struct iov_iter *iter) { struct file *file = iocb->ki_filp; struct inode *inode = file->f_mapping->host; struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); get_block_t *get_block; if (OCFS2_I(inode)->ip_dyn_features & OCFS2__DATA_FL) { return ...
static ssize_t ocfs2_direct_IO(struct kiocb *iocb, struct iov_iter *iter) { if (iov_iter_rw(iter) == READ) { get_block = ocfs2_get_block; } else { get_block = ocfs2_dio_get_block; } return __blockdev_direct_IO(iocb, inode, inode->i_sb->s_bdev, iter, get_block, ocfs2_dio_end_io, NULL, 0);...
static ssize_t ocfs2_direct_IO(struct kiocb *iocb, struct iov_iter *iter) { if (iov_iter_rw(iter) == READ) { get_block = ocfs2_lock_get_block; } else { get_block = ocfs2_dio_wr_get_block; } return __blockdev_direct_IO(iocb, inode, inode->i_sb->s_bdev, iter, get_block, ocfs2_dio_end_io, N...
static ssize_t ocfs2_direct_IO(struct kiocb *iocb, struct iov_iter *iter) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (iov_iter_rw(iter) == READ) { get_block = ocfs2_get_block; } else { get_block = ocfs2_dio_get_block; } return __blockdev_direct_IO(iocb, inode, inode->i_sb->s_...
static ssize_t ocfs2_direct_IO(struct kiocb *iocb, struct iov_iter *iter) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (iov_iter_rw(iter) == READ) { get_block = ocfs2_lock_get_block; } else { get_block = ocfs2_dio_wr_get_block; } return __blockdev_direct_IO(iocb, inode, inode->...
static ssize_t ocfs2_direct_IO(struct kiocb *iocb, struct iov_iter *iter) { if (iov_iter_rw(iter) == READ) { - get_block = ocfs2_get_block; + get_block = ocfs2_lock_get_block; } else { - get_block = ocfs2_dio_get_block; + get_block = ocfs2_dio_wr_get_block; } return __bl...
CVE-2017-18241
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/f2fs/segment.c
build_segment_manager
int build_segment_manager(struct f2fs_sb_info *sbi) { struct f2fs_super_block *raw_super = F2FS_RAW_SUPER(sbi); struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); struct f2fs_sm_info *sm_info; int err; sm_info = kzalloc(sizeof(struct f2fs_sm_info), GFP_KERNEL); if (!sm_info) { return -ENOMEM...
int build_segment_manager(struct f2fs_sb_info *sbi) { struct f2fs_super_block *raw_super = F2FS_RAW_SUPER(sbi); struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); struct f2fs_sm_info *sm_info; int err; sm_info = kzalloc(sizeof(struct f2fs_sm_info), GFP_KERNEL); if (!sm_info) { return -ENOMEM...
int build_segment_manager(struct f2fs_sb_info *sbi) { struct f2fs_super_block *raw_super = F2FS_RAW_SUPER(sbi); struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); struct f2fs_sm_info *sm_info; int err; sm_info = kzalloc(sizeof(struct f2fs_sm_info), GFP_KERNEL); if (!sm_info) { return -ENOMEM...
int build_segment_manager(struct f2fs_sb_info *sbi) { struct f2fs_super_block *raw_super = F2FS_RAW_SUPER(sbi); struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); struct f2fs_sm_info *sm_info; int err; sm_info = kzalloc(sizeof(struct f2fs_sm_info), GFP_KERNEL); if (!sm_info) { return -ENOMEM...
int build_segment_manager(struct f2fs_sb_info *sbi) { struct f2fs_super_block *raw_super = F2FS_RAW_SUPER(sbi); struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); sm_info->max_discards = 0; if (test_opt(sbi, FLUSH_MERGE) && !f2fs_readonly(sbi->sb)) { err = create_flush_cmd_control(sbi); if (...
int build_segment_manager(struct f2fs_sb_info *sbi) { struct f2fs_super_block *raw_super = F2FS_RAW_SUPER(sbi); struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); sm_info->max_discards = 0; if (!f2fs_readonly(sbi->sb)) { err = create_flush_cmd_control(sbi); if (err) { return err;...
int build_segment_manager(struct f2fs_sb_info *sbi) { struct f2fs_super_block *raw_super = F2FS_RAW_SUPER(sbi); struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ sm_info->max_discards = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (test_opt(sbi, ...
int build_segment_manager(struct f2fs_sb_info *sbi) { struct f2fs_super_block *raw_super = F2FS_RAW_SUPER(sbi); struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ sm_info->max_discards = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!f2fs_readonly...
int build_segment_manager(struct f2fs_sb_info *sbi) { struct f2fs_super_block *raw_super = F2FS_RAW_SUPER(sbi); struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); sm_info->max_discards = 0; - if (test_opt(sbi, FLUSH_MERGE) && !f2fs_readonly(sbi->sb)) { + if (!f2fs_readonly(sbi->sb)) { err = c...
CVE-2017-18241
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/f2fs/segment.c
create_flush_cmd_control
int create_flush_cmd_control(struct f2fs_sb_info *sbi) { dev_t dev = sbi->sb->s_bdev->bd_dev; struct flush_cmd_control *fcc; int err = 0; fcc = kzalloc(sizeof(struct flush_cmd_control), GFP_KERNEL); if (!fcc) { return -ENOMEM; } spin_lock_init(&fcc->issue_lock); init_waitqueue_he...
int create_flush_cmd_control(struct f2fs_sb_info *sbi) { dev_t dev = sbi->sb->s_bdev->bd_dev; struct flush_cmd_control *fcc; int err = 0; fcc = kzalloc(sizeof(struct flush_cmd_control), GFP_KERNEL); if (!fcc) { return -ENOMEM; } spin_lock_init(&fcc->issue_lock); init_waitqueue_he...
int create_flush_cmd_control(struct f2fs_sb_info *sbi) { dev_t dev = sbi->sb->s_bdev->bd_dev; struct flush_cmd_control *fcc; int err = 0; fcc = kzalloc(sizeof(struct flush_cmd_control), GFP_KERNEL); if (!fcc) { return -ENOMEM; } init_waitqueue_head(&fcc->flush_wait_queue); init_l...
int create_flush_cmd_control(struct f2fs_sb_info *sbi) { dev_t dev = sbi->sb->s_bdev->bd_dev; struct flush_cmd_control *fcc; int err = 0; fcc = kzalloc(sizeof(struct flush_cmd_control), GFP_KERNEL); if (!fcc) { return -ENOMEM; } init_waitqueue_head(&fcc->flush_wait_queue); init_l...
int create_flush_cmd_control(struct f2fs_sb_info *sbi) { int err = 0; sbi->sm_info->cmd_control_info = fcc; fcc->f2fs_issue_flush = kthread_run(issue_flush_thread, sbi, "f2fs_flush-%u:%u", MAJOR(dev), MOR(dev)); if (IS_ERR(fcc->f2fs_issue_flush)) { err = PTR_ERR(fcc->f2fs_issue_flush); k...
int create_flush_cmd_control(struct f2fs_sb_info *sbi) { int err = 0; sbi->sm_info->cmd_control_info = fcc; if (!test_opt(sbi, FLUSH_MERGE)) { return err; } fcc->f2fs_issue_flush = kthread_run(issue_flush_thread, sbi, "f2fs_flush-%u:%u", MAJOR(dev), MOR(dev)); if (IS_ERR(fcc->f2fs_issue_...
int create_flush_cmd_control(struct f2fs_sb_info *sbi) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int err = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ init_llist_head(&fcc->issue_list); SM_I(sbi)->cmd_control_info = fcc; fcc->f2fs_issue_flush = kthread_run(issue_flush_thread, sbi, "f2...
int create_flush_cmd_control(struct f2fs_sb_info *sbi) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int err = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ init_llist_head(&fcc->issue_list); SM_I(sbi)->cmd_control_info = fcc; if (!test_opt(sbi, FLUSH_MERGE)) { return err; } ...
int create_flush_cmd_control(struct f2fs_sb_info *sbi) { int err = 0; sbi->sm_info->cmd_control_info = fcc; + if (!test_opt(sbi, FLUSH_MERGE)) { + return err; + } fcc->f2fs_issue_flush = kthread_run(issue_flush_thread, sbi, "f2fs_flush-%u:%u", MAJOR(dev), MOR(dev)); if (IS_ERR(fcc->f2f...
CVE-2017-18249
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/f2fs/node.c
add_free_nid
static int add_free_nid(struct f2fs_sb_info *sbi, nid_t nid, bool build) { struct f2fs_nm_info *nm_i = NM_I(sbi); struct free_nid *i; struct nat_entry *ne; if (!available_free_memory(sbi, FREE_NIDS)) { return -1; } if (unlikely(nid == 0)) { return 0; } if (build) { ...
static int add_free_nid(struct f2fs_sb_info *sbi, nid_t nid, bool build) { struct f2fs_nm_info *nm_i = NM_I(sbi); struct free_nid *i, *e; struct nat_entry *ne; int err = -EVAL; if (!available_free_memory(sbi, FREE_NIDS)) { return -1; } if (unlikely(nid == 0)) { return 0; ...
static int add_free_nid(struct f2fs_sb_info *sbi, nid_t nid, bool build) { struct f2fs_nm_info *nm_i = NM_I(sbi); struct free_nid *i; struct nat_entry *ne; if (!available_free_memory(sbi, FREE_NIDS)) { return -1; } if (unlikely(nid == 0)) { return 0; } if (build) { ...
static int add_free_nid(struct f2fs_sb_info *sbi, nid_t nid, bool build) { struct f2fs_nm_info *nm_i = NM_I(sbi); struct free_nid *i, *e; struct nat_entry *ne; int err = -EVAL; if (!available_free_memory(sbi, FREE_NIDS)) { return -1; } if (unlikely(nid == 0)) { return 0; ...
static int add_free_nid(struct f2fs_sb_info *sbi, nid_t nid, bool build) { struct f2fs_nm_info *nm_i = NM_I(sbi); struct free_nid *i; struct nat_entry *ne; if (!available_free_memory(sbi, FREE_NIDS)) { return -1; } if (unlikely(nid == 0)) { return 0; } if (build) { ...
static int add_free_nid(struct f2fs_sb_info *sbi, nid_t nid, bool build) { struct f2fs_nm_info *nm_i = NM_I(sbi); struct free_nid *i, *e; struct nat_entry *ne; int err = -EVAL; if (!available_free_memory(sbi, FREE_NIDS)) { return -1; } if (unlikely(nid == 0)) { return 0; ...
static int add_free_nid(struct f2fs_sb_info *sbi, nid_t nid, bool build) { struct f2fs_nm_info *nm_i = NM_I(sbi); struct free_nid *i; struct nat_entry *ne; if (!available_free_memory(sbi, FREE_NIDS)) { return -1; } if (unlikely(nid == 0)) { return 0; } if (build) { ...
static int add_free_nid(struct f2fs_sb_info *sbi, nid_t nid, bool build) { struct f2fs_nm_info *nm_i = NM_I(sbi); struct free_nid *i, *e; struct nat_entry *ne; int err = -EVAL; if (!available_free_memory(sbi, FREE_NIDS)) { return -1; } if (unlikely(nid == 0)) { return 0; ...
static int add_free_nid(struct f2fs_sb_info *sbi, nid_t nid, bool build) { struct f2fs_nm_info *nm_i = NM_I(sbi); - struct free_nid *i; + struct free_nid *i, *e; struct nat_entry *ne; + int err = -EVAL; if (!available_free_memory(sbi, FREE_NIDS)) { return -1; } if (unlikely(n...
CVE-2017-18255
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
kernel/events/core.c
perf_cpu_time_max_percent_handler
int perf_cpu_time_max_percent_handler(struct ctl_table *table, int write, void *buffer, size_t *lenp, loff_t *ppos) { int ret = proc_dointvec(table, write, buffer, lenp, ppos); if (ret || !write) { return ret; } if (sysctl_perf_cpu_time_max_percent == 100 || sysctl_perf_cpu_time_max_percent == 0...
int perf_cpu_time_max_percent_handler(struct ctl_table *table, int write, void *buffer, size_t *lenp, loff_t *ppos) { int ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); if (ret || !write) { return ret; } if (sysctl_perf_cpu_time_max_percent == 100 || sysctl_perf_cpu_time_max_perce...
int perf_cpu_time_max_percent_handler(struct ctl_table *table, int write, void *buffer, size_t *lenp, loff_t *ppos) { int ret = proc_dointvec(table, write, buffer, lenp, ppos); if (ret || !write) { return ret; } update_perf_cpu_limits(); return 0; }
int perf_cpu_time_max_percent_handler(struct ctl_table *table, int write, void *buffer, size_t *lenp, loff_t *ppos) { int ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); if (ret || !write) { return ret; } update_perf_cpu_limits(); return 0; }
int perf_cpu_time_max_percent_handler(struct ctl_table *table, int write, void *buffer, size_t *lenp, loff_t *ppos) { int ret = proc_dointvec(table, write, buffer, lenp, ppos); if (ret || !write) { return ret; } }
int perf_cpu_time_max_percent_handler(struct ctl_table *table, int write, void *buffer, size_t *lenp, loff_t *ppos) { int ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); if (ret || !write) { return ret; } }
int perf_cpu_time_max_percent_handler(struct ctl_table *table, int write, void *buffer, size_t *lenp, loff_t *ppos) { int ret = proc_dointvec(table, write, buffer, lenp, ppos); if (ret || !write) { return ret; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
int perf_cpu_time_max_percent_handler(struct ctl_table *table, int write, void *buffer, size_t *lenp, loff_t *ppos) { int ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); if (ret || !write) { return ret; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
int perf_cpu_time_max_percent_handler(struct ctl_table *table, int write, void *buffer, size_t *lenp, loff_t *ppos) { - int ret = proc_dointvec(table, write, buffer, lenp, ppos); + int ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); if (ret || !write) { return ret; } }
CVE-2017-18257
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/f2fs/data.c
__get_data_block
static int __get_data_block(struct inode *inode, sector_t iblock, struct buffer_head *bh, int create, int flag) { struct f2fs_map_blocks map; int ret; map.m_lblk = iblock; map.m_len = bh->b_size >> inode->i_blkbits; ret = f2fs_map_blocks(inode, &map, create, flag); if (!ret) { map_bh(bh,...
static int __get_data_block(struct inode *inode, sector_t iblock, struct buffer_head *bh, int create, int flag) { struct f2fs_map_blocks map; int ret; map.m_lblk = iblock; map.m_len = bh->b_size >> inode->i_blkbits; ret = f2fs_map_blocks(inode, &map, create, flag); if (!ret) { map_bh(bh,...
static int __get_data_block(struct inode *inode, sector_t iblock, struct buffer_head *bh, int create, int flag, pgoff_t *next_pgofs) { struct f2fs_map_blocks map; int ret; map.m_lblk = iblock; map.m_len = bh->b_size >> inode->i_blkbits; map.m_next_pgofs = next_pgofs; ret = f2fs_map_blocks(inode,...
static int __get_data_block(struct inode *inode, sector_t iblock, struct buffer_head *bh, int create, int flag, pgoff_t *next_pgofs) { struct f2fs_map_blocks map; int ret; map.m_lblk = iblock; map.m_len = bh->b_size >> inode->i_blkbits; map.m_next_pgofs = next_pgofs; ret = f2fs_map_blocks(inode,...
static int __get_data_block(struct inode *inode, sector_t iblock, struct buffer_head *bh, int create, int flag) { map.m_len = bh->b_size >> inode->i_blkbits; ret = f2fs_map_blocks(inode, &map, create, flag); if (!ret) { bh->b_state = (bh->b_state & ~F2FS_MAP_FLAGS) | map.m_flags; bh->b_size ...
static int __get_data_block(struct inode *inode, sector_t iblock, struct buffer_head *bh, int create, int flag) { map.m_len = bh->b_size >> inode->i_blkbits; ret = f2fs_map_blocks(inode, &map, create, flag); if (!ret) { bh->b_state = (bh->b_state & ~F2FS_MAP_FLAGS) | map.m_flags; bh->b_size ...
static int __get_data_block(struct inode *inode, sector_t iblock, struct buffer_head *bh, int create, int flag, pgoff_t *next_pgofs) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ map.m_len = bh->b_size >> inode->i_blkbits; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ret = f2fs_map_blocks(inode, &map...
static int __get_data_block(struct inode *inode, sector_t iblock, struct buffer_head *bh, int create, int flag, pgoff_t *next_pgofs) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ map.m_len = bh->b_size >> inode->i_blkbits; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ret = f2fs_map_blocks(inode, &map...
static int __get_data_block(struct inode *inode, sector_t iblock, struct buffer_head *bh, int create, int flag) { map.m_len = bh->b_size >> inode->i_blkbits; ret = f2fs_map_blocks(inode, &map, create, flag); if (!ret) { bh->b_state = (bh->b_state & ~F2FS_MAP_FLAGS) | map.m_flags; - bh->b...
CVE-2017-18270
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
security/keys/key.c
key_alloc
struct key *key_alloc(struct key_type *type, const char *desc, kuid_t uid, kgid_t gid, const struct cred *cred, key_perm_t perm, unsigned long flags) { struct key_user *user = NULL; struct key *key; size_t desclen, quotalen; int ret; key = ERR_PTR(-EVAL); if (!desc || !*desc) { goto erro...
struct key *key_alloc(struct key_type *type, const char *desc, kuid_t uid, kgid_t gid, const struct cred *cred, key_perm_t perm, unsigned long flags) { struct key_user *user = NULL; struct key *key; size_t desclen, quotalen; int ret; key = ERR_PTR(-EVAL); if (!desc || !*desc) { goto erro...
struct key *key_alloc(struct key_type *type, const char *desc, kuid_t uid, kgid_t gid, const struct cred *cred, key_perm_t perm, unsigned long flags) { struct key_user *user = NULL; struct key *key; size_t desclen, quotalen; int ret; key = ERR_PTR(-EVAL); if (!desc || !*desc) { goto erro...
struct key *key_alloc(struct key_type *type, const char *desc, kuid_t uid, kgid_t gid, const struct cred *cred, key_perm_t perm, unsigned long flags) { struct key_user *user = NULL; struct key *key; size_t desclen, quotalen; int ret; key = ERR_PTR(-EVAL); if (!desc || !*desc) { goto erro...
struct key *key_alloc(struct key_type *type, const char *desc, kuid_t uid, kgid_t gid, const struct cred *cred, key_perm_t perm, unsigned long flags) { if (!(flags & KEY_ALLOC_NOT__QUOTA)) { } key = kmem_cache_zalloc(key_jar, GFP_KERNEL); if (!key) { goto no_memory_2; } if (!(flags & KEY...
struct key *key_alloc(struct key_type *type, const char *desc, kuid_t uid, kgid_t gid, const struct cred *cred, key_perm_t perm, unsigned long flags) { if (!(flags & KEY_ALLOC_NOT__QUOTA)) { } key = kmem_cache_zalloc(key_jar, GFP_KERNEL); if (!key) { goto no_memory_2; } if (!(flags & KEY...
struct key *key_alloc(struct key_type *type, const char *desc, kuid_t uid, kgid_t gid, const struct cred *cred, key_perm_t perm, unsigned long flags) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!(flags & KEY_ALLOC_NOT__QUOTA)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } key = kmem_cach...
struct key *key_alloc(struct key_type *type, const char *desc, kuid_t uid, kgid_t gid, const struct cred *cred, key_perm_t perm, unsigned long flags) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!(flags & KEY_ALLOC_NOT__QUOTA)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } key = kmem_cach...
struct key *key_alloc(struct key_type *type, const char *desc, kuid_t uid, kgid_t gid, const struct cred *cred, key_perm_t perm, unsigned long flags) { if (!(flags & KEY_ALLOC_NOT__QUOTA)) { } key = kmem_cache_zalloc(key_jar, GFP_KERNEL); if (!key) { goto no_memory_2; } if (!(fla...
CVE-2017-18270
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
security/keys/keyring.c
find_keyring_by_name
struct key *find_keyring_by_name(const char *name, bool skip_perm_check) { struct key *keyring; int bucket; if (!name) { return ERR_PTR(-EVAL); } bucket = keyring_hash(name); read_lock(&keyring_name_lock); if (keyring_name_hash[bucket].next) { list_for_each_entry(keyring, &ke...
struct key *find_keyring_by_name(const char *name, bool uid_keyring) { struct key *keyring; int bucket; if (!name) { return ERR_PTR(-EVAL); } bucket = keyring_hash(name); read_lock(&keyring_name_lock); if (keyring_name_hash[bucket].next) { list_for_each_entry(keyring, &keyrin...
struct key *find_keyring_by_name(const char *name, bool skip_perm_check) { struct key *keyring; int bucket; if (!name) { return ERR_PTR(-EVAL); } bucket = keyring_hash(name); read_lock(&keyring_name_lock); if (keyring_name_hash[bucket].next) { list_for_each_entry(keyring, &ke...
struct key *find_keyring_by_name(const char *name, bool uid_keyring) { struct key *keyring; int bucket; if (!name) { return ERR_PTR(-EVAL); } bucket = keyring_hash(name); read_lock(&keyring_name_lock); if (keyring_name_hash[bucket].next) { list_for_each_entry(keyring, &keyrin...
struct key *find_keyring_by_name(const char *name, bool skip_perm_check) { if (keyring_name_hash[bucket].next) { list_for_each_entry(keyring, &keyring_name_hash[bucket], type_data.link ) { if (!skip_perm_check && key_permission(make_key_ref(keyring, 0), KEY_NEED_SEARCH) < 0) { co...
struct key *find_keyring_by_name(const char *name, bool uid_keyring) { if (keyring_name_hash[bucket].next) { list_for_each_entry(keyring, &keyring_name_hash[bucket], type_data.link ) { if (uid_keyring) { if (!test_bit(KEY_FLAG_UID_KEYRG, &keyring->flags)) { co...
struct key *find_keyring_by_name(const char *name, bool skip_perm_check) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (keyring_name_hash[bucket].next) { list_for_each_entry(keyring, &keyring_name_hash[bucket], type_data.link ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!sk...
struct key *find_keyring_by_name(const char *name, bool uid_keyring) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (keyring_name_hash[bucket].next) { list_for_each_entry(keyring, &keyring_name_hash[bucket], type_data.link ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (uid_key...
-struct key *find_keyring_by_name(const char *name, bool skip_perm_check) { +struct key *find_keyring_by_name(const char *name, bool uid_keyring) { if (keyring_name_hash[bucket].next) { list_for_each_entry(keyring, &keyring_name_hash[bucket], type_data.link ) { - if (!skip_perm_check && key_per...
CVE-2017-18270
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
security/keys/process_keys.c
install_user_keyrings
int install_user_keyrings(void) { struct user_struct *user; const struct cred *cred; struct key *uid_keyring, *session_keyring; key_perm_t user_keyring_perm; char buf[20]; int ret; uid_t uid; user_keyring_perm = (KEY_POS_ALL & ~KEY_POS_SETATTR) | KEY_USR_ALL; cred = current_cred(); ...
int install_user_keyrings(void) { struct user_struct *user; const struct cred *cred; struct key *uid_keyring, *session_keyring; key_perm_t user_keyring_perm; char buf[20]; int ret; uid_t uid; user_keyring_perm = (KEY_POS_ALL & ~KEY_POS_SETATTR) | KEY_USR_ALL; cred = current_cred(); ...
int install_user_keyrings(void) { struct user_struct *user; const struct cred *cred; struct key *uid_keyring, *session_keyring; key_perm_t user_keyring_perm; char buf[20]; int ret; uid_t uid; user_keyring_perm = (KEY_POS_ALL & ~KEY_POS_SETATTR) | KEY_USR_ALL; cred = current_cred(); ...
int install_user_keyrings(void) { struct user_struct *user; const struct cred *cred; struct key *uid_keyring, *session_keyring; key_perm_t user_keyring_perm; char buf[20]; int ret; uid_t uid; user_keyring_perm = (KEY_POS_ALL & ~KEY_POS_SETATTR) | KEY_USR_ALL; cred = current_cred(); ...
int install_user_keyrings(void) { user_keyring_perm = (KEY_POS_ALL & ~KEY_POS_SETATTR) | KEY_USR_ALL; cred = current_cred(); user = cred->user; uid = from_kuid(cred->user_ns, user->uid); kenter("%p{%u}", user, uid); if (!user->uid_keyring) { sprintf(buf, "_uid.%u", uid); uid_keyr...
int install_user_keyrings(void) { user_keyring_perm = (KEY_POS_ALL & ~KEY_POS_SETATTR) | KEY_USR_ALL; cred = current_cred(); user = cred->user; uid = from_kuid(cred->user_ns, user->uid); kenter("%p{%u}", user, uid); if (!user->uid_keyring) { sprintf(buf, "_uid.%u", uid); uid_keyr...
int install_user_keyrings(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ user_keyring_perm = (KEY_POS_ALL & ~KEY_POS_SETATTR) | KEY_USR_ALL; cred = current_cred(); user = cred->user; uid = from_kuid(cred->user_ns, user->uid); kenter("%p{%u}", user, uid); /* PLACEHOLDER: DO NOT DELETE ...
int install_user_keyrings(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ user_keyring_perm = (KEY_POS_ALL & ~KEY_POS_SETATTR) | KEY_USR_ALL; cred = current_cred(); user = cred->user; uid = from_kuid(cred->user_ns, user->uid); kenter("%p{%u}", user, uid); /* PLACEHOLDER: DO NOT DELETE ...
int install_user_keyrings(void) { user_keyring_perm = (KEY_POS_ALL & ~KEY_POS_SETATTR) | KEY_USR_ALL; cred = current_cred(); user = cred->user; uid = from_kuid(cred->user_ns, user->uid); kenter("%p{%u}", user, uid); if (!user->uid_keyring) { sprintf(buf, "_uid.%u", uid); ...
CVE-2017-18344
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
kernel/posix-timers.c
common_timer_get
void common_timer_get(struct k_itimer *timr, struct itimerspec64 *cur_setting) { const struct k_clock *kc = timr->kclock; ktime_t now, remaining, iv; struct timespec64 ts64; bool sig_none; sig_none = (timr->it_sigev_notify & ~SIGEV_THREAD_ID) == SIGEV_NONE; iv = timr->it_interval; if (iv) { ...
void common_timer_get(struct k_itimer *timr, struct itimerspec64 *cur_setting) { const struct k_clock *kc = timr->kclock; ktime_t now, remaining, iv; struct timespec64 ts64; bool sig_none; sig_none = timr->it_sigev_notify == SIGEV_NONE; iv = timr->it_interval; if (iv) { cur_setting->...
static void common_timer_get(struct k_itimer *timr, struct itimerspec *cur_setting) { ktime_t now, remaining, iv; struct hrtimer *timer = &timr->it.real.timer; memset(cur_setting, 0, sizeof(struct itimerspec)); iv = timr->it.real.interval; if (iv.tv64) { cur_setting->it_interval = ktime_to_t...
static void common_timer_get(struct k_itimer *timr, struct itimerspec *cur_setting) { ktime_t now, remaining, iv; struct hrtimer *timer = &timr->it.real.timer; bool sig_none; memset(cur_setting, 0, sizeof(struct itimerspec)); sig_none = timr->it_sigev_notify == SIGEV_NONE; iv = timr->it.real.int...
void common_timer_get(struct k_itimer *timr, struct itimerspec64 *cur_setting) { const struct k_clock *kc = timr->kclock; bool sig_none; sig_none = (timr->it_sigev_notify & ~SIGEV_THREAD_ID) == SIGEV_NONE; iv = timr->it_interval; if (iv) { } else if (!timr->it_active) { if (!sig_none) { ...
void common_timer_get(struct k_itimer *timr, struct itimerspec64 *cur_setting) { const struct k_clock *kc = timr->kclock; bool sig_none; sig_none = timr->it_sigev_notify == SIGEV_NONE; iv = timr->it_interval; if (iv) { } else if (!timr->it_active) { if (!sig_none) { return; ...
static void common_timer_get(struct k_itimer *timr, struct itimerspec *cur_setting) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct hrtimer *timer = &timr->it.real.timer; memset(cur_setting, 0, sizeof(struct itimerspec)); iv = timr->it.real.interval; if (iv.tv64) { cur_setting->it_int...
static void common_timer_get(struct k_itimer *timr, struct itimerspec *cur_setting) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct hrtimer *timer = &timr->it.real.timer; bool sig_none; memset(cur_setting, 0, sizeof(struct itimerspec)); sig_none = timr->it_sigev_notify == SIGEV_NONE; iv =...
void common_timer_get(struct k_itimer *timr, struct itimerspec64 *cur_setting) { const struct k_clock *kc = timr->kclock; bool sig_none; - sig_none = (timr->it_sigev_notify & ~SIGEV_THREAD_ID) == SIGEV_NONE; + sig_none = timr->it_sigev_notify == SIGEV_NONE; iv = timr->it_interval; if (iv) { ...
CVE-2017-18344
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
kernel/posix-timers.c
common_timer_set
int common_timer_set(struct k_itimer *timr, int flags, struct itimerspec64 *new_setting, struct itimerspec64 *old_setting) { const struct k_clock *kc = timr->kclock; bool sigev_none; ktime_t expires; if (old_setting) { common_timer_get(timr, old_setting); } timr->it_interval = 0; if ...
int common_timer_set(struct k_itimer *timr, int flags, struct itimerspec64 *new_setting, struct itimerspec64 *old_setting) { const struct k_clock *kc = timr->kclock; bool sigev_none; ktime_t expires; if (old_setting) { common_timer_get(timr, old_setting); } timr->it_interval = 0; if ...
static int common_timer_set(struct k_itimer *timr, int flags, struct itimerspec *new_setting, struct itimerspec *old_setting) { struct hrtimer *timer = &timr->it.real.timer; enum hrtimer_mode mode; if (old_setting) { common_timer_get(timr, old_setting); } timr->it.real.interval.tv64 = 0; ...
static int common_timer_set(struct k_itimer *timr, int flags, struct itimerspec *new_setting, struct itimerspec *old_setting) { struct hrtimer *timer = &timr->it.real.timer; enum hrtimer_mode mode; if (old_setting) { common_timer_get(timr, old_setting); } timr->it.real.interval.tv64 = 0; ...
int common_timer_set(struct k_itimer *timr, int flags, struct itimerspec64 *new_setting, struct itimerspec64 *old_setting) { const struct k_clock *kc = timr->kclock; if (old_setting) { common_timer_get(timr, old_setting); } if (kc->timer_try_to_cancel(timr) < 0) { return TIMER_RETRY; ...
int common_timer_set(struct k_itimer *timr, int flags, struct itimerspec64 *new_setting, struct itimerspec64 *old_setting) { const struct k_clock *kc = timr->kclock; if (old_setting) { common_timer_get(timr, old_setting); } if (kc->timer_try_to_cancel(timr) < 0) { return TIMER_RETRY; ...
static int common_timer_set(struct k_itimer *timr, int flags, struct itimerspec *new_setting, struct itimerspec *old_setting) { struct hrtimer *timer = &timr->it.real.timer; enum hrtimer_mode mode; if (old_setting) { common_timer_get(timr, old_setting); } timr->it.real.interval.tv64 = 0; ...
static int common_timer_set(struct k_itimer *timr, int flags, struct itimerspec *new_setting, struct itimerspec *old_setting) { struct hrtimer *timer = &timr->it.real.timer; enum hrtimer_mode mode; if (old_setting) { common_timer_get(timr, old_setting); } timr->it.real.interval.tv64 = 0; ...
int common_timer_set(struct k_itimer *timr, int flags, struct itimerspec64 *new_setting, struct itimerspec64 *old_setting) { const struct k_clock *kc = timr->kclock; if (old_setting) { common_timer_get(timr, old_setting); } if (kc->timer_try_to_cancel(timr) < 0) { return TIMER_RET...
CVE-2017-18344
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
kernel/posix-timers.c
good_sigevent
static struct pid *good_sigevent(sigevent_t * event) { struct task_struct *rtn = current->group_leader; if ((event->sigev_notify & SIGEV_THREAD_ID ) && (!(rtn = find_task_by_vpid(event->sigev_notify_thread_id)) || !same_thread_group(rtn, current) || (event->sigev_notify & ~SIGEV_THREAD_ID) != SIGEV_...
static struct pid *good_sigevent(sigevent_t * event) { struct task_struct *rtn = current->group_leader; switch (event->sigev_notify) { case SIGEV_SIGNAL | SIGEV_THREAD_ID: rtn = find_task_by_vpid(event->sigev_notify_thread_id); if (!rtn || !same_thread_group(rtn, current)) { retu...
static struct pid *good_sigevent(sigevent_t * event) { struct task_struct *rtn = current->group_leader; if ((event->sigev_notify & SIGEV_THREAD_ID ) && (!(rtn = find_task_by_vpid(event->sigev_notify_thread_id)) || !same_thread_group(rtn, current) || (event->sigev_notify & ~SIGEV_THREAD_ID) != SIGEV_...
static struct pid *good_sigevent(sigevent_t * event) { struct task_struct *rtn = current->group_leader; switch (event->sigev_notify) { case SIGEV_SIGNAL | SIGEV_THREAD_ID: rtn = find_task_by_vpid(event->sigev_notify_thread_id); if (!rtn || !same_thread_group(rtn, current)) { retu...
static struct pid *good_sigevent(sigevent_t * event) { struct task_struct *rtn = current->group_leader; if ((event->sigev_notify & SIGEV_THREAD_ID ) && (!(rtn = find_task_by_vpid(event->sigev_notify_thread_id)) || !same_thread_group(rtn, current) || (event->sigev_notify & ~SIGEV_THREAD_ID) != SIGEV_...
static struct pid *good_sigevent(sigevent_t * event) { struct task_struct *rtn = current->group_leader; switch (event->sigev_notify) { case SIGEV_SIGNAL | SIGEV_THREAD_ID: rtn = find_task_by_vpid(event->sigev_notify_thread_id); if (!rtn || !same_thread_group(rtn, current)) { retu...
static struct pid *good_sigevent(sigevent_t * event) { struct task_struct *rtn = current->group_leader; if ((event->sigev_notify & SIGEV_THREAD_ID ) && (!(rtn = find_task_by_vpid(event->sigev_notify_thread_id)) || !same_thread_group(rtn, current) || (event->sigev_notify & ~SIGEV_THREAD_ID) != SIGEV_...
static struct pid *good_sigevent(sigevent_t * event) { struct task_struct *rtn = current->group_leader; switch (event->sigev_notify) { case SIGEV_SIGNAL | SIGEV_THREAD_ID: rtn = find_task_by_vpid(event->sigev_notify_thread_id); if (!rtn || !same_thread_group(rtn, current)) { retu...
static struct pid *good_sigevent(sigevent_t * event) { struct task_struct *rtn = current->group_leader; - if ((event->sigev_notify & SIGEV_THREAD_ID ) && (!(rtn = find_task_by_vpid(event->sigev_notify_thread_id)) || !same_thread_group(rtn, current) - || (event->sigev_notify & ~SIGEV_THREAD_ID) != SI...
CVE-2017-18360
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/usb/serial/io_ti.c
change_port_settings
static void change_port_settings(struct tty_struct *tty, struct edgeport_port *edge_port, struct ktermios *old_termios) { struct device *dev = &edge_port->port->dev; struct ump_uart_config *config; int baud; unsigned cflag; int status; int port_number = edge_port->port->port_number; config =...
static void change_port_settings(struct tty_struct *tty, struct edgeport_port *edge_port, struct ktermios *old_termios) { struct device *dev = &edge_port->port->dev; struct ump_uart_config *config; int baud; unsigned cflag; int status; int port_number = edge_port->port->port_number; config =...
static void change_port_settings(struct tty_struct *tty, struct edgeport_port *edge_port, struct ktermios *old_termios) { struct ump_uart_config *config; int baud; unsigned cflag; int status; int port_number = edge_port->port->number - edge_port->port->serial->minor; dbg("%s - port %d", __func__...
static void change_port_settings(struct tty_struct *tty, struct edgeport_port *edge_port, struct ktermios *old_termios) { struct ump_uart_config *config; int baud; unsigned cflag; int status; int port_number = edge_port->port->number - edge_port->port->serial->minor; dbg("%s - port %d", __func__...
static void change_port_settings(struct tty_struct *tty, struct edgeport_port *edge_port, struct ktermios *old_termios) { config->cXon = START_CHAR(tty); config->cXoff = STOP_CHAR(tty); if (I_IXOFF(tty)) { } else { } if (I_IXON(tty)) { } else { } baud = tty_get_baud_rate(tty); if...
static void change_port_settings(struct tty_struct *tty, struct edgeport_port *edge_port, struct ktermios *old_termios) { config->cXon = START_CHAR(tty); config->cXoff = STOP_CHAR(tty); if (I_IXOFF(tty)) { } else { } if (I_IXON(tty)) { } else { } baud = tty_get_baud_rate(tty); if...
static void change_port_settings(struct tty_struct *tty, struct edgeport_port *edge_port, struct ktermios *old_termios) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ config->cXon = START_CHAR(tty); config->cXoff = STOP_CHAR(tty); if (I_IXOFF(tty)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ...
static void change_port_settings(struct tty_struct *tty, struct edgeport_port *edge_port, struct ktermios *old_termios) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ config->cXon = START_CHAR(tty); config->cXoff = STOP_CHAR(tty); if (I_IXOFF(tty)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ...
static void change_port_settings(struct tty_struct *tty, struct edgeport_port *edge_port, struct ktermios *old_termios) { config->cXon = START_CHAR(tty); config->cXoff = STOP_CHAR(tty); if (I_IXOFF(tty)) { } else { } if (I_IXON(tty)) { } else { } baud = tty_get_baud_rate(tt...
CVE-2017-18509
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv6/ip6mr.c
ip6_mroute_getsockopt
int ip6_mroute_getsockopt(struct sock *sk, int optname, char *optval, int *optlen) { int olr; int val; struct net *net = sock_net(sk); struct mr6_table *mrt; mrt = ip6mr_get_table(net, raw6_sk(sk)->ip6mr_table ? : RT6_TABLE_DFLT); if (!mrt) { return -ENOENT; } switch (optname) { ...
int ip6_mroute_getsockopt(struct sock *sk, int optname, char *optval, int *optlen) { int olr; int val; struct net *net = sock_net(sk); struct mr6_table *mrt; if (sk->sk_type != SOCK_RAW || inet_sk(sk)->inet_num != IPPROTO_ICMPV6) { return -EOPNOTSUPP; } mrt = ip6mr_get_table(net, raw...
int ip6_mroute_getsockopt(struct sock *sk, int optname, char *optval, int *optlen) { int olr; int val; struct net *net = sock_net(sk); struct mr6_table *mrt; mrt = ip6mr_get_table(net, raw6_sk(sk)->ip6mr_table ? : RT6_TABLE_DFLT); if (mrt == NULL) { return -ENOENT; } switch (optn...
int ip6_mroute_getsockopt(struct sock *sk, int optname, char *optval, int *optlen) { int olr; int val; struct net *net = sock_net(sk); struct mr6_table *mrt; if (sk->sk_type != SOCK_RAW || inet_sk(sk)->inet_num != IPPROTO_ICMPV6) { return -EOPNOTSUPP; } mrt = ip6mr_get_table(net, raw...
int ip6_mroute_getsockopt(struct sock *sk, int optname, char *optval, int *optlen) { struct net *net = sock_net(sk); struct mr6_table *mrt; mrt = ip6mr_get_table(net, raw6_sk(sk)->ip6mr_table ? : RT6_TABLE_DFLT); if (!mrt) { return -ENOENT; } switch (optname) { case MRT6_PIM: ...
int ip6_mroute_getsockopt(struct sock *sk, int optname, char *optval, int *optlen) { struct net *net = sock_net(sk); struct mr6_table *mrt; if (sk->sk_type != SOCK_RAW || inet_sk(sk)->inet_num != IPPROTO_ICMPV6) { return -EOPNOTSUPP; } mrt = ip6mr_get_table(net, raw6_sk(sk)->ip6mr_table ? : ...
int ip6_mroute_getsockopt(struct sock *sk, int optname, char *optval, int *optlen) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct net *net = sock_net(sk); struct mr6_table *mrt; mrt = ip6mr_get_table(net, raw6_sk(sk)->ip6mr_table ? : RT6_TABLE_DFLT); if (mrt == NULL) { return -ENOENT...
int ip6_mroute_getsockopt(struct sock *sk, int optname, char *optval, int *optlen) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct net *net = sock_net(sk); struct mr6_table *mrt; if (sk->sk_type != SOCK_RAW || inet_sk(sk)->inet_num != IPPROTO_ICMPV6) { return -EOPNOTSUPP; } mrt = ...
int ip6_mroute_getsockopt(struct sock *sk, int optname, char *optval, int *optlen) { struct net *net = sock_net(sk); struct mr6_table *mrt; + if (sk->sk_type != SOCK_RAW || inet_sk(sk)->inet_num != IPPROTO_ICMPV6) { + return -EOPNOTSUPP; + } mrt = ip6mr_get_table(net, raw6_sk(sk)->ip6mr_tab...
CVE-2017-18509
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv6/ip6mr.c
ip6_mroute_setsockopt
int ip6_mroute_setsockopt(struct sock *sk, int optname, char *optval, unsigned int optlen) { int ret, parent = 0; struct mif6ctl vif; struct mf6cctl mfc; mifi_t mifi; struct net *net = sock_net(sk); struct mr6_table *mrt; mrt = ip6mr_get_table(net, raw6_sk(sk)->ip6mr_table ? : RT6_TABLE_DFLT...
int ip6_mroute_setsockopt(struct sock *sk, int optname, char *optval, unsigned int optlen) { int ret, parent = 0; struct mif6ctl vif; struct mf6cctl mfc; mifi_t mifi; struct net *net = sock_net(sk); struct mr6_table *mrt; if (sk->sk_type != SOCK_RAW || inet_sk(sk)->inet_num != IPPROTO_ICMPV6...
int ip6_mroute_setsockopt(struct sock *sk, int optname, char *optval, unsigned int optlen) { int ret, parent = 0; struct mif6ctl vif; struct mf6cctl mfc; mifi_t mifi; struct net *net = sock_net(sk); struct mr6_table *mrt; mrt = ip6mr_get_table(net, raw6_sk(sk)->ip6mr_table ? : RT6_TABLE_DFLT...
int ip6_mroute_setsockopt(struct sock *sk, int optname, char *optval, unsigned int optlen) { int ret, parent = 0; struct mif6ctl vif; struct mf6cctl mfc; mifi_t mifi; struct net *net = sock_net(sk); struct mr6_table *mrt; if (sk->sk_type != SOCK_RAW || inet_sk(sk)->inet_num != IPPROTO_ICMPV6...
int ip6_mroute_setsockopt(struct sock *sk, int optname, char *optval, unsigned int optlen) { struct net *net = sock_net(sk); struct mr6_table *mrt; mrt = ip6mr_get_table(net, raw6_sk(sk)->ip6mr_table ? : RT6_TABLE_DFLT); if (!mrt) { return -ENOENT; } if (optname != MRT6_IT) { if ...
int ip6_mroute_setsockopt(struct sock *sk, int optname, char *optval, unsigned int optlen) { struct net *net = sock_net(sk); struct mr6_table *mrt; if (sk->sk_type != SOCK_RAW || inet_sk(sk)->inet_num != IPPROTO_ICMPV6) { return -EOPNOTSUPP; } mrt = ip6mr_get_table(net, raw6_sk(sk)->ip6mr_ta...
int ip6_mroute_setsockopt(struct sock *sk, int optname, char *optval, unsigned int optlen) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct net *net = sock_net(sk); struct mr6_table *mrt; mrt = ip6mr_get_table(net, raw6_sk(sk)->ip6mr_table ? : RT6_TABLE_DFLT); if (mrt == NULL) { return...
int ip6_mroute_setsockopt(struct sock *sk, int optname, char *optval, unsigned int optlen) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct net *net = sock_net(sk); struct mr6_table *mrt; if (sk->sk_type != SOCK_RAW || inet_sk(sk)->inet_num != IPPROTO_ICMPV6) { return -EOPNOTSUPP; } ...
int ip6_mroute_setsockopt(struct sock *sk, int optname, char *optval, unsigned int optlen) { struct net *net = sock_net(sk); struct mr6_table *mrt; + if (sk->sk_type != SOCK_RAW || inet_sk(sk)->inet_num != IPPROTO_ICMPV6) { + return -EOPNOTSUPP; + } mrt = ip6mr_get_table(net, raw6_sk(sk)->i...
CVE-2017-18595
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
kernel/trace/trace.c
allocate_trace_buffer
static int allocate_trace_buffer(struct trace_array *tr, struct trace_buffer *buf, int size) { enum ring_buffer_flags rb_flags; rb_flags = trace_flags & TRACE_ITER_OVERWRITE ? RB_FL_OVERWRITE : 0; buf->tr = tr; buf->buffer = ring_buffer_alloc(size, rb_flags); if (!buf->buffer) { return -ENOM...
static int allocate_trace_buffer(struct trace_array *tr, struct trace_buffer *buf, int size) { enum ring_buffer_flags rb_flags; rb_flags = trace_flags & TRACE_ITER_OVERWRITE ? RB_FL_OVERWRITE : 0; buf->tr = tr; buf->buffer = ring_buffer_alloc(size, rb_flags); if (!buf->buffer) { return -ENOM...
static int allocate_trace_buffer(struct trace_array *tr, struct trace_buffer *buf, int size) { enum ring_buffer_flags rb_flags; rb_flags = trace_flags & TRACE_ITER_OVERWRITE ? RB_FL_OVERWRITE : 0; buf->tr = tr; buf->buffer = ring_buffer_alloc(size, rb_flags); if (!buf->buffer) { return -ENOM...
static int allocate_trace_buffer(struct trace_array *tr, struct trace_buffer *buf, int size) { enum ring_buffer_flags rb_flags; rb_flags = trace_flags & TRACE_ITER_OVERWRITE ? RB_FL_OVERWRITE : 0; buf->tr = tr; buf->buffer = ring_buffer_alloc(size, rb_flags); if (!buf->buffer) { return -ENOM...
static int allocate_trace_buffer(struct trace_array *tr, struct trace_buffer *buf, int size) { if (!buf->data) { ring_buffer_free(buf->buffer); return -ENOMEM; } }
static int allocate_trace_buffer(struct trace_array *tr, struct trace_buffer *buf, int size) { if (!buf->data) { ring_buffer_free(buf->buffer); buf->buffer = NULL; return -ENOMEM; } }
static int allocate_trace_buffer(struct trace_array *tr, struct trace_buffer *buf, int size) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!buf->data) { ring_buffer_free(buf->buffer); return -ENOMEM; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static int allocate_trace_buffer(struct trace_array *tr, struct trace_buffer *buf, int size) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!buf->data) { ring_buffer_free(buf->buffer); buf->buffer = NULL; return -ENOMEM; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static int allocate_trace_buffer(struct trace_array *tr, struct trace_buffer *buf, int size) { if (!buf->data) { ring_buffer_free(buf->buffer); + buf->buffer = NULL; return -ENOMEM; } }
CVE-2017-2583
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
arch/x86/kvm/emulate.c
__load_segment_descriptor
static int __load_segment_descriptor(struct x86_emulate_ctxt *ctxt, u16 selector, int seg, u8 cpl, enum x86_transfer_type transfer, struct desc_struct *desc) { struct desc_struct seg_desc, old_desc; u8 dpl, rpl; unsigned err_vec = GP_VECTOR; u32 err_code = 0; bool null_selector = !(selector & ~0x3);...
static int __load_segment_descriptor(struct x86_emulate_ctxt *ctxt, u16 selector, int seg, u8 cpl, enum x86_transfer_type transfer, struct desc_struct *desc) { struct desc_struct seg_desc, old_desc; u8 dpl, rpl; unsigned err_vec = GP_VECTOR; u32 err_code = 0; bool null_selector = !(selector & ~0x3);...
static int __load_segment_descriptor(struct x86_emulate_ctxt *ctxt, u16 selector, int seg, u8 cpl, bool in_task_switch, struct desc_struct *desc) { struct desc_struct seg_desc, old_desc; u8 dpl, rpl; unsigned err_vec = GP_VECTOR; u32 err_code = 0; bool null_selector = !(selector & ~0x3); ulong d...
static int __load_segment_descriptor(struct x86_emulate_ctxt *ctxt, u16 selector, int seg, u8 cpl, bool in_task_switch, struct desc_struct *desc) { struct desc_struct seg_desc, old_desc; u8 dpl, rpl; unsigned err_vec = GP_VECTOR; u32 err_code = 0; bool null_selector = !(selector & ~0x3); ulong d...
static int __load_segment_descriptor(struct x86_emulate_ctxt *ctxt, u16 selector, int seg, u8 cpl, enum x86_transfer_type transfer, struct desc_struct *desc) { bool null_selector = !(selector & ~0x3); if (ctxt->mode == X86EMUL_MODE_REAL) { goto load; } else if (seg <= VCPU_SREG_GS && ctxt->mode == X...
static int __load_segment_descriptor(struct x86_emulate_ctxt *ctxt, u16 selector, int seg, u8 cpl, enum x86_transfer_type transfer, struct desc_struct *desc) { bool null_selector = !(selector & ~0x3); if (ctxt->mode == X86EMUL_MODE_REAL) { goto load; } else if (seg <= VCPU_SREG_GS && ctxt->mode == X...
static int __load_segment_descriptor(struct x86_emulate_ctxt *ctxt, u16 selector, int seg, u8 cpl, bool in_task_switch, struct desc_struct *desc) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ bool null_selector = !(selector & ~0x3); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (ctxt->mode == X86EM...
static int __load_segment_descriptor(struct x86_emulate_ctxt *ctxt, u16 selector, int seg, u8 cpl, bool in_task_switch, struct desc_struct *desc) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ bool null_selector = !(selector & ~0x3); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (ctxt->mode == X86EM...
static int __load_segment_descriptor(struct x86_emulate_ctxt *ctxt, u16 selector, int seg, u8 cpl, enum x86_transfer_type transfer, struct desc_struct *desc) { bool null_selector = !(selector & ~0x3); if (ctxt->mode == X86EMUL_MODE_REAL) { goto load; } else if (seg <= VCPU_SREG_GS && ctxt->mode...
CVE-2017-2583
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
arch/x86/kvm/emulate.c
load_segment_descriptor
static int load_segment_descriptor(struct x86_emulate_ctxt *ctxt, u16 selector, int seg) { u8 cpl = ctxt->ops->cpl(ctxt); return __load_segment_descriptor(ctxt, selector, seg, cpl, X86_TRANSFER_NONE, NULL); }
static int load_segment_descriptor(struct x86_emulate_ctxt *ctxt, u16 selector, int seg) { u8 cpl = ctxt->ops->cpl(ctxt); if (seg == VCPU_SREG_SS && selector == 3 && ctxt->mode == X86EMUL_MODE_PROT64) { return emulate_exception(ctxt, GP_VECTOR, 0, true); } return __load_segment_descriptor(ctxt, ...
static int load_segment_descriptor(struct x86_emulate_ctxt *ctxt, u16 selector, int seg) { u8 cpl = ctxt->ops->cpl(ctxt); return __load_segment_descriptor(ctxt, selector, seg, cpl, false, NULL); }
static int load_segment_descriptor(struct x86_emulate_ctxt *ctxt, u16 selector, int seg) { u8 cpl = ctxt->ops->cpl(ctxt); if (seg == VCPU_SREG_SS && selector == 3 && ctxt->mode == X86EMUL_MODE_PROT64) { return emulate_exception(ctxt, GP_VECTOR, 0, true); } return __load_segment_descriptor(ctxt, ...
static int load_segment_descriptor(struct x86_emulate_ctxt *ctxt, u16 selector, int seg) { u8 cpl = ctxt->ops->cpl(ctxt); return __load_segment_descriptor(ctxt, selector, seg, cpl, X86_TRANSFER_NONE, NULL); }
static int load_segment_descriptor(struct x86_emulate_ctxt *ctxt, u16 selector, int seg) { u8 cpl = ctxt->ops->cpl(ctxt); if (seg == VCPU_SREG_SS && selector == 3 && ctxt->mode == X86EMUL_MODE_PROT64) { return emulate_exception(ctxt, GP_VECTOR, 0, true); } return __load_segment_descriptor(ctxt, ...
static int load_segment_descriptor(struct x86_emulate_ctxt *ctxt, u16 selector, int seg) { u8 cpl = ctxt->ops->cpl(ctxt); return __load_segment_descriptor(ctxt, selector, seg, cpl, false, NULL); }
static int load_segment_descriptor(struct x86_emulate_ctxt *ctxt, u16 selector, int seg) { u8 cpl = ctxt->ops->cpl(ctxt); if (seg == VCPU_SREG_SS && selector == 3 && ctxt->mode == X86EMUL_MODE_PROT64) { return emulate_exception(ctxt, GP_VECTOR, 0, true); } return __load_segment_descriptor(ctxt, ...
static int load_segment_descriptor(struct x86_emulate_ctxt *ctxt, u16 selector, int seg) { u8 cpl = ctxt->ops->cpl(ctxt); + if (seg == VCPU_SREG_SS && selector == 3 && ctxt->mode == X86EMUL_MODE_PROT64) { + return emulate_exception(ctxt, GP_VECTOR, 0, true); + } return __load_segment_descriptor(...
CVE-2017-2584
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
arch/x86/kvm/emulate.c
emulate_store_desc_ptr
static int emulate_store_desc_ptr(struct x86_emulate_ctxt *ctxt, void (*get)(struct x86_emulate_ctxt *ctxt, struct desc_ptr *ptr)) { struct desc_ptr desc_ptr; if (ctxt->mode == X86EMUL_MODE_PROT64) { ctxt->op_bytes = 8; } get(ctxt, &desc_ptr); if (ctxt->op_bytes == 2) { ctxt->op_byte...
static int emulate_store_desc_ptr(struct x86_emulate_ctxt *ctxt, void (*get)(struct x86_emulate_ctxt *ctxt, struct desc_ptr *ptr)) { struct desc_ptr desc_ptr; if (ctxt->mode == X86EMUL_MODE_PROT64) { ctxt->op_bytes = 8; } get(ctxt, &desc_ptr); if (ctxt->op_bytes == 2) { ctxt->op_byte...
static int emulate_store_desc_ptr(struct x86_emulate_ctxt *ctxt, void (*get)(struct x86_emulate_ctxt *ctxt, struct desc_ptr *ptr)) { struct desc_ptr desc_ptr; if (ctxt->mode == X86EMUL_MODE_PROT64) { ctxt->op_bytes = 8; } get(ctxt, &desc_ptr); if (ctxt->op_bytes == 2) { ctxt->op_byte...
static int emulate_store_desc_ptr(struct x86_emulate_ctxt *ctxt, void (*get)(struct x86_emulate_ctxt *ctxt, struct desc_ptr *ptr)) { struct desc_ptr desc_ptr; if (ctxt->mode == X86EMUL_MODE_PROT64) { ctxt->op_bytes = 8; } get(ctxt, &desc_ptr); if (ctxt->op_bytes == 2) { ctxt->op_byte...
static int emulate_store_desc_ptr(struct x86_emulate_ctxt *ctxt, void (*get)(struct x86_emulate_ctxt *ctxt, struct desc_ptr *ptr)) { if (ctxt->mode == X86EMUL_MODE_PROT64) { ctxt->op_bytes = 8; } get(ctxt, &desc_ptr); if (ctxt->op_bytes == 2) { ctxt->op_bytes = 4; } ctxt->dst.typ...
static int emulate_store_desc_ptr(struct x86_emulate_ctxt *ctxt, void (*get)(struct x86_emulate_ctxt *ctxt, struct desc_ptr *ptr)) { if (ctxt->mode == X86EMUL_MODE_PROT64) { ctxt->op_bytes = 8; } get(ctxt, &desc_ptr); if (ctxt->op_bytes == 2) { ctxt->op_bytes = 4; } ctxt->dst.typ...
static int emulate_store_desc_ptr(struct x86_emulate_ctxt *ctxt, void (*get)(struct x86_emulate_ctxt *ctxt, struct desc_ptr *ptr)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (ctxt->mode == X86EMUL_MODE_PROT64) { ctxt->op_bytes = 8; } get(ctxt, &desc_ptr); if (ctxt->op_bytes == 2) { ...
static int emulate_store_desc_ptr(struct x86_emulate_ctxt *ctxt, void (*get)(struct x86_emulate_ctxt *ctxt, struct desc_ptr *ptr)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (ctxt->mode == X86EMUL_MODE_PROT64) { ctxt->op_bytes = 8; } get(ctxt, &desc_ptr); if (ctxt->op_bytes == 2) { ...
static int emulate_store_desc_ptr(struct x86_emulate_ctxt *ctxt, void (*get)(struct x86_emulate_ctxt *ctxt, struct desc_ptr *ptr)) { if (ctxt->mode == X86EMUL_MODE_PROT64) { ctxt->op_bytes = 8; } get(ctxt, &desc_ptr); if (ctxt->op_bytes == 2) { ctxt->op_bytes = 4; } ctxt...
CVE-2017-2596
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
arch/x86/kvm/vmx.c
nested_vmx_check_vmptr
static int nested_vmx_check_vmptr(struct kvm_vcpu *vcpu, int exit_reason, gpa_t *vmpointer) { gva_t gva; gpa_t vmptr; struct x86_exception e; struct page *page; struct vcpu_vmx *vmx = to_vmx(vcpu); int maxphyaddr = cpuid_maxphyaddr(vcpu); if (get_vmx_mem_address(vcpu, vmcs_readl(EXIT_QUALIFI...
static int nested_vmx_check_vmptr(struct kvm_vcpu *vcpu, int exit_reason, gpa_t *vmpointer) { gva_t gva; gpa_t vmptr; struct x86_exception e; struct page *page; struct vcpu_vmx *vmx = to_vmx(vcpu); int maxphyaddr = cpuid_maxphyaddr(vcpu); if (get_vmx_mem_address(vcpu, vmcs_readl(EXIT_QUALIFI...
static int nested_vmx_check_vmptr(struct kvm_vcpu *vcpu, int exit_reason, gpa_t *vmpointer) { gva_t gva; gpa_t vmptr; struct x86_exception e; struct page *page; struct vcpu_vmx *vmx = to_vmx(vcpu); int maxphyaddr = cpuid_maxphyaddr(vcpu); if (get_vmx_mem_address(vcpu, vmcs_readl(EXIT_QUALIFI...
static int nested_vmx_check_vmptr(struct kvm_vcpu *vcpu, int exit_reason, gpa_t *vmpointer) { gva_t gva; gpa_t vmptr; struct x86_exception e; struct page *page; struct vcpu_vmx *vmx = to_vmx(vcpu); int maxphyaddr = cpuid_maxphyaddr(vcpu); if (get_vmx_mem_address(vcpu, vmcs_readl(EXIT_QUALIFI...
static int nested_vmx_check_vmptr(struct kvm_vcpu *vcpu, int exit_reason, gpa_t *vmpointer) { struct vcpu_vmx *vmx = to_vmx(vcpu); int maxphyaddr = cpuid_maxphyaddr(vcpu); if (get_vmx_mem_address(vcpu, vmcs_readl(EXIT_QUALIFICATION), vmcs_read32(VMX_STRUCTION_FO), &gva)) { return 1; } switch...
static int nested_vmx_check_vmptr(struct kvm_vcpu *vcpu, int exit_reason, gpa_t *vmpointer) { struct vcpu_vmx *vmx = to_vmx(vcpu); int maxphyaddr = cpuid_maxphyaddr(vcpu); if (get_vmx_mem_address(vcpu, vmcs_readl(EXIT_QUALIFICATION), vmcs_read32(VMX_STRUCTION_FO), &gva)) { return 1; } switch...
static int nested_vmx_check_vmptr(struct kvm_vcpu *vcpu, int exit_reason, gpa_t *vmpointer) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct vcpu_vmx *vmx = to_vmx(vcpu); int maxphyaddr = cpuid_maxphyaddr(vcpu); if (get_vmx_mem_address(vcpu, vmcs_readl(EXIT_QUALIFICATION), vmcs_read32(VMX_STRUCTIO...
static int nested_vmx_check_vmptr(struct kvm_vcpu *vcpu, int exit_reason, gpa_t *vmpointer) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct vcpu_vmx *vmx = to_vmx(vcpu); int maxphyaddr = cpuid_maxphyaddr(vcpu); if (get_vmx_mem_address(vcpu, vmcs_readl(EXIT_QUALIFICATION), vmcs_read32(VMX_STRUCTIO...
static int nested_vmx_check_vmptr(struct kvm_vcpu *vcpu, int exit_reason, gpa_t *vmpointer) { struct vcpu_vmx *vmx = to_vmx(vcpu); int maxphyaddr = cpuid_maxphyaddr(vcpu); if (get_vmx_mem_address(vcpu, vmcs_readl(EXIT_QUALIFICATION), vmcs_read32(VMX_STRUCTION_FO), &gva)) { return 1; } ...