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-2020-27784
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/usb/gadget/function/f_printer.c
printer_close
static int printer_close(struct inode *inode, struct file *fd) { struct printer_dev *dev = fd->private_data; unsigned long flags; spin_lock_irqsave(&dev->lock, flags); dev->printer_cdev_open = 0; fd->private_data = NULL; dev->printer_status &= ~PRTER_SELECTED; spin_unlock_irqrestore(&dev->lo...
static int printer_close(struct inode *inode, struct file *fd) { struct printer_dev *dev = fd->private_data; unsigned long flags; spin_lock_irqsave(&dev->lock, flags); dev->printer_cdev_open = 0; fd->private_data = NULL; dev->printer_status &= ~PRTER_SELECTED; spin_unlock_irqrestore(&dev->lo...
static int printer_close(struct inode *inode, struct file *fd) { struct printer_dev *dev = fd->private_data; unsigned long flags; spin_lock_irqsave(&dev->lock, flags); dev->printer_cdev_open = 0; fd->private_data = NULL; dev->printer_status &= ~PRTER_SELECTED; spin_unlock_irqrestore(&dev->lo...
static int printer_close(struct inode *inode, struct file *fd) { struct printer_dev *dev = fd->private_data; unsigned long flags; spin_lock_irqsave(&dev->lock, flags); dev->printer_cdev_open = 0; fd->private_data = NULL; dev->printer_status &= ~PRTER_SELECTED; spin_unlock_irqrestore(&dev->lo...
static int printer_close(struct inode *inode, struct file *fd) { struct printer_dev *dev = fd->private_data; spin_unlock_irqrestore(&dev->lock, flags); DBG(dev, "printer_close\n"); }
static int printer_close(struct inode *inode, struct file *fd) { struct printer_dev *dev = fd->private_data; spin_unlock_irqrestore(&dev->lock, flags); kref_put(&dev->kref, printer_dev_free); DBG(dev, "printer_close\n"); }
static int printer_close(struct inode *inode, struct file *fd) { struct printer_dev *dev = fd->private_data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ spin_unlock_irqrestore(&dev->lock, flags); DBG(dev, "printer_close\n"); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static int printer_close(struct inode *inode, struct file *fd) { struct printer_dev *dev = fd->private_data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ spin_unlock_irqrestore(&dev->lock, flags); kref_put(&dev->kref, printer_dev_free); DBG(dev, "printer_close\n"); /* PLACEHOLDER: DO NOT DELETE...
static int printer_close(struct inode *inode, struct file *fd) { struct printer_dev *dev = fd->private_data; spin_unlock_irqrestore(&dev->lock, flags); + kref_put(&dev->kref, printer_dev_free); DBG(dev, "printer_close\n"); }
CVE-2020-27784
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/usb/gadget/function/f_printer.c
printer_open
static int printer_open(struct inode *inode, struct file *fd) { struct printer_dev *dev; unsigned long flags; int ret = -EBUSY; dev = container_of(inode->i_cdev, struct printer_dev, printer_cdev); spin_lock_irqsave(&dev->lock, flags); if (!dev->printer_cdev_open) { dev->printer_cdev_open...
static int printer_open(struct inode *inode, struct file *fd) { struct printer_dev *dev; unsigned long flags; int ret = -EBUSY; dev = container_of(inode->i_cdev, struct printer_dev, printer_cdev); spin_lock_irqsave(&dev->lock, flags); if (!dev->printer_cdev_open) { dev->printer_cdev_open...
static int printer_open(struct inode *inode, struct file *fd) { struct printer_dev *dev; unsigned long flags; int ret = -EBUSY; dev = container_of(inode->i_cdev, struct printer_dev, printer_cdev); spin_lock_irqsave(&dev->lock, flags); if (!dev->printer_cdev_open) { dev->printer_cdev_open...
static int printer_open(struct inode *inode, struct file *fd) { struct printer_dev *dev; unsigned long flags; int ret = -EBUSY; dev = container_of(inode->i_cdev, struct printer_dev, printer_cdev); spin_lock_irqsave(&dev->lock, flags); if (!dev->printer_cdev_open) { dev->printer_cdev_open...
static int printer_open(struct inode *inode, struct file *fd) { spin_unlock_irqrestore(&dev->lock, flags); DBG(dev, "printer_open returned %x\n", ret); }
static int printer_open(struct inode *inode, struct file *fd) { spin_unlock_irqrestore(&dev->lock, flags); kref_get(&dev->kref); DBG(dev, "printer_open returned %x\n", ret); }
static int printer_open(struct inode *inode, struct file *fd) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ spin_unlock_irqrestore(&dev->lock, flags); DBG(dev, "printer_open returned %x\n", ret); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static int printer_open(struct inode *inode, struct file *fd) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ spin_unlock_irqrestore(&dev->lock, flags); kref_get(&dev->kref); DBG(dev, "printer_open returned %x\n", ret); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static int printer_open(struct inode *inode, struct file *fd) { spin_unlock_irqrestore(&dev->lock, flags); + kref_get(&dev->kref); DBG(dev, "printer_open returned %x\n", ret); }
CVE-2020-27820
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/gpu/drm/nouveau/nouveau_drm.c
nouveau_drm_device_remove
void nouveau_drm_device_remove(struct drm_device *dev) { struct nouveau_drm *drm = nouveau_drm(dev); struct nvkm_client *client; struct nvkm_device *device; drm_dev_unregister(dev); client = nvxx_client(&drm->client.base); device = nvkm_device_find(client->device); nouveau_drm_device_fini(de...
void nouveau_drm_device_remove(struct drm_device *dev) { struct nouveau_drm *drm = nouveau_drm(dev); struct nvkm_client *client; struct nvkm_device *device; drm_dev_unplug(dev); client = nvxx_client(&drm->client.base); device = nvkm_device_find(client->device); nouveau_drm_device_fini(dev); ...
void nouveau_drm_device_remove(struct drm_device *dev) { struct pci_dev *pdev = dev->pdev; struct nouveau_drm *drm = nouveau_drm(dev); struct nvkm_client *client; struct nvkm_device *device; drm_dev_unregister(dev); dev->irq_enabled = false; client = nvxx_client(&drm->client.base); devic...
void nouveau_drm_device_remove(struct drm_device *dev) { struct pci_dev *pdev = dev->pdev; struct nouveau_drm *drm = nouveau_drm(dev); struct nvkm_client *client; struct nvkm_device *device; drm_dev_unplug(dev); dev->irq_enabled = false; client = nvxx_client(&drm->client.base); device = ...
void nouveau_drm_device_remove(struct drm_device *dev) { struct nouveau_drm *drm = nouveau_drm(dev); struct nvkm_device *device; drm_dev_unregister(dev); client = nvxx_client(&drm->client.base); nouveau_drm_device_fini(dev); drm_dev_put(dev); }
void nouveau_drm_device_remove(struct drm_device *dev) { struct nouveau_drm *drm = nouveau_drm(dev); struct nvkm_device *device; drm_dev_unplug(dev); client = nvxx_client(&drm->client.base); nouveau_drm_device_fini(dev); drm_dev_put(dev); }
void nouveau_drm_device_remove(struct drm_device *dev) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct nouveau_drm *drm = nouveau_drm(dev); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct nvkm_device *device; drm_dev_unregister(dev); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ...
void nouveau_drm_device_remove(struct drm_device *dev) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct nouveau_drm *drm = nouveau_drm(dev); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct nvkm_device *device; drm_dev_unplug(dev); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ clie...
void nouveau_drm_device_remove(struct drm_device *dev) { struct nouveau_drm *drm = nouveau_drm(dev); struct nvkm_device *device; - drm_dev_unregister(dev); + drm_dev_unplug(dev); client = nvxx_client(&drm->client.base); nouveau_drm_device_fini(dev); drm_dev_put(dev); }
CVE-2020-27825
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
kernel/trace/ring_buffer.c
ring_buffer_reset_cpu
void ring_buffer_reset_cpu(struct trace_buffer *buffer, int cpu) { struct ring_buffer_per_cpu *cpu_buffer = buffer->buffers[cpu]; if (!cpumask_test_cpu(cpu, buffer->cpumask)) { return; } atomic_inc(&cpu_buffer->resize_disabled); atomic_inc(&cpu_buffer->record_disabled); synchronize_rcu()...
void ring_buffer_reset_cpu(struct trace_buffer *buffer, int cpu) { struct ring_buffer_per_cpu *cpu_buffer = buffer->buffers[cpu]; if (!cpumask_test_cpu(cpu, buffer->cpumask)) { return; } mutex_lock(&buffer->mutex); atomic_inc(&cpu_buffer->resize_disabled); atomic_inc(&cpu_buffer->record_...
void ring_buffer_reset_cpu(struct ring_buffer *buffer, int cpu) { struct ring_buffer_per_cpu *cpu_buffer = buffer->buffers[cpu]; unsigned long flags; if (!cpumask_test_cpu(cpu, buffer->cpumask)) { return; } atomic_inc(&buffer->resize_disabled); atomic_inc(&cpu_buffer->record_disabled); ...
void ring_buffer_reset_cpu(struct ring_buffer *buffer, int cpu) { struct ring_buffer_per_cpu *cpu_buffer = buffer->buffers[cpu]; unsigned long flags; if (!cpumask_test_cpu(cpu, buffer->cpumask)) { return; } mutex_lock(&buffer->mutex); atomic_inc(&buffer->resize_disabled); atomic_inc(...
void ring_buffer_reset_cpu(struct trace_buffer *buffer, int cpu) { if (!cpumask_test_cpu(cpu, buffer->cpumask)) { return; } atomic_inc(&cpu_buffer->resize_disabled); atomic_dec(&cpu_buffer->resize_disabled); }
void ring_buffer_reset_cpu(struct trace_buffer *buffer, int cpu) { if (!cpumask_test_cpu(cpu, buffer->cpumask)) { return; } mutex_lock(&buffer->mutex); atomic_inc(&cpu_buffer->resize_disabled); atomic_dec(&cpu_buffer->resize_disabled); mutex_unlock(&buffer->mutex); }
void ring_buffer_reset_cpu(struct ring_buffer *buffer, int cpu) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!cpumask_test_cpu(cpu, buffer->cpumask)) { return; } atomic_inc(&buffer->resize_disabled); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ raw_spin_lock_irqsave(&cpu_buffer->...
void ring_buffer_reset_cpu(struct ring_buffer *buffer, int cpu) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!cpumask_test_cpu(cpu, buffer->cpumask)) { return; } mutex_lock(&buffer->mutex); atomic_inc(&buffer->resize_disabled); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ raw...
void ring_buffer_reset_cpu(struct trace_buffer *buffer, int cpu) { if (!cpumask_test_cpu(cpu, buffer->cpumask)) { return; } + mutex_lock(&buffer->mutex); atomic_inc(&cpu_buffer->resize_disabled); atomic_dec(&cpu_buffer->resize_disabled); + mutex_unlock(&buffer->mutex); }
CVE-2020-27830
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/staging/speakup/spk_ttyio.c
spk_ttyio_initialise_ldisc
static int spk_ttyio_initialise_ldisc(struct spk_synth *synth) { int ret = 0; struct tty_struct *tty; struct ktermios tmp_termios; dev_t dev; ret = get_dev_to_use(synth, &dev); if (ret) { return ret; } tty = tty_kopen(dev); if (IS_ERR(tty)) { return PTR_ERR(tty); ...
static int spk_ttyio_initialise_ldisc(struct spk_synth *synth) { int ret = 0; struct tty_struct *tty; struct ktermios tmp_termios; dev_t dev; ret = get_dev_to_use(synth, &dev); if (ret) { return ret; } tty = tty_kopen(dev); if (IS_ERR(tty)) { return PTR_ERR(tty); ...
static int spk_ttyio_initialise_ldisc(struct spk_synth *synth) { int ret = 0; struct tty_struct *tty; struct ktermios tmp_termios; dev_t dev; ret = get_dev_to_use(synth, &dev); if (ret) { return ret; } tty = tty_kopen(dev); if (IS_ERR(tty)) { return PTR_ERR(tty); ...
static int spk_ttyio_initialise_ldisc(struct spk_synth *synth) { int ret = 0; struct tty_struct *tty; struct ktermios tmp_termios; dev_t dev; ret = get_dev_to_use(synth, &dev); if (ret) { return ret; } tty = tty_kopen(dev); if (IS_ERR(tty)) { return PTR_ERR(tty); ...
static int spk_ttyio_initialise_ldisc(struct spk_synth *synth) { tty = tty_kopen(dev); if (IS_ERR(tty)) { return PTR_ERR(tty); } if (tty->ops->open) { ret = tty->ops->open(tty, NULL); } else { } get_termios(tty, &tmp_termios); if (!(tmp_termios.c_cflag & CRTSCTS)) { ...
static int spk_ttyio_initialise_ldisc(struct spk_synth *synth) { tty = tty_kopen(dev); if (IS_ERR(tty)) { return PTR_ERR(tty); } if (tty->ops->open) { ret = tty->ops->open(tty, NULL); } else { } get_termios(tty, &tmp_termios); if (!(tmp_termios.c_cflag & CRTSCTS)) { ...
static int spk_ttyio_initialise_ldisc(struct spk_synth *synth) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ tty = tty_kopen(dev); if (IS_ERR(tty)) { return PTR_ERR(tty); } if (tty->ops->open) { ret = tty->ops->open(tty, NULL); } else { /* PLACEHOLDER: DO NOT DELETE THIS CO...
static int spk_ttyio_initialise_ldisc(struct spk_synth *synth) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ tty = tty_kopen(dev); if (IS_ERR(tty)) { return PTR_ERR(tty); } if (tty->ops->open) { ret = tty->ops->open(tty, NULL); } else { /* PLACEHOLDER: DO NOT DELETE THIS CO...
static int spk_ttyio_initialise_ldisc(struct spk_synth *synth) { tty = tty_kopen(dev); if (IS_ERR(tty)) { return PTR_ERR(tty); } if (tty->ops->open) { ret = tty->ops->open(tty, NULL); } else { } get_termios(tty, &tmp_termios); if (!(tmp_termios.c_cflag & CRTSCT...
CVE-2020-28097
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/video/console/vgacon.c
vgacon_scroll
static bool vgacon_scroll(struct vc_data *c, unsigned int t, unsigned int b, enum con_scroll dir, unsigned int lines) { unsigned long oldo; unsigned int delta; if (t || b != c->vc_rows || vga_is_gfx || c->vc_mode != KD_TEXT) { return false; } if (!vga_hardscroll_enabled || lines >= c->vc_row...
static bool vgacon_scroll(struct vc_data *c, unsigned int t, unsigned int b, enum con_scroll dir, unsigned int lines) { unsigned long oldo; unsigned int delta; if (t || b != c->vc_rows || vga_is_gfx || c->vc_mode != KD_TEXT) { return false; } if (!vga_hardscroll_enabled || lines >= c->vc_row...
static bool vgacon_scroll(struct vc_data *c, unsigned int t, unsigned int b, enum con_scroll dir, unsigned int lines) { unsigned long oldo; unsigned int delta; if (t || b != c->vc_rows || vga_is_gfx || c->vc_mode != KD_TEXT) { return false; } if (!vga_hardscroll_enabled || lines >= c->vc_row...
static bool vgacon_scroll(struct vc_data *c, unsigned int t, unsigned int b, enum con_scroll dir, unsigned int lines) { unsigned long oldo; unsigned int delta; if (t || b != c->vc_rows || vga_is_gfx || c->vc_mode != KD_TEXT) { return false; } if (!vga_hardscroll_enabled || lines >= c->vc_row...
static bool vgacon_scroll(struct vc_data *c, unsigned int t, unsigned int b, enum con_scroll dir, unsigned int lines) { if (t || b != c->vc_rows || vga_is_gfx || c->vc_mode != KD_TEXT) { return false; } if (!vga_hardscroll_enabled || lines >= c->vc_rows / 2) { return false; } vgacon_...
static bool vgacon_scroll(struct vc_data *c, unsigned int t, unsigned int b, enum con_scroll dir, unsigned int lines) { if (t || b != c->vc_rows || vga_is_gfx || c->vc_mode != KD_TEXT) { return false; } if (!vga_hardscroll_enabled || lines >= c->vc_rows / 2) { return false; } vgacon_...
static bool vgacon_scroll(struct vc_data *c, unsigned int t, unsigned int b, enum con_scroll dir, unsigned int lines) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (t || b != c->vc_rows || vga_is_gfx || c->vc_mode != KD_TEXT) { return false; } if (!vga_hardscroll_enabled || lines >= c->vc_r...
static bool vgacon_scroll(struct vc_data *c, unsigned int t, unsigned int b, enum con_scroll dir, unsigned int lines) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (t || b != c->vc_rows || vga_is_gfx || c->vc_mode != KD_TEXT) { return false; } if (!vga_hardscroll_enabled || lines >= c->vc_r...
static bool vgacon_scroll(struct vc_data *c, unsigned int t, unsigned int b, enum con_scroll dir, unsigned int lines) { if (t || b != c->vc_rows || vga_is_gfx || c->vc_mode != KD_TEXT) { return false; } if (!vga_hardscroll_enabled || lines >= c->vc_rows / 2) { return false; } ...
CVE-2020-28097
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/video/console/vgacon.c
vgacon_startup
static const char *vgacon_startup(void) { const char *display_desc = NULL; u16 saved1, saved2; volatile u16 *p; if (screen_info.orig_video_isVGA == VIDEO_TYPE_VLFB || screen_info.orig_video_isVGA == VIDEO_TYPE_EFI) { no_vga: conswitchp = &dummy_con; return conswitchp->con_startup(); ...
static const char *vgacon_startup(void) { const char *display_desc = NULL; u16 saved1, saved2; volatile u16 *p; if (screen_info.orig_video_isVGA == VIDEO_TYPE_VLFB || screen_info.orig_video_isVGA == VIDEO_TYPE_EFI) { no_vga: conswitchp = &dummy_con; return conswitchp->con_startup(); ...
static const char *vgacon_startup(void) { const char *display_desc = NULL; u16 saved1, saved2; volatile u16 *p; if (screen_info.orig_video_isVGA == VIDEO_TYPE_VLFB || screen_info.orig_video_isVGA == VIDEO_TYPE_EFI) { no_vga: conswitchp = &dummy_con; return conswitchp->con_startup(); ...
static const char *vgacon_startup(void) { const char *display_desc = NULL; u16 saved1, saved2; volatile u16 *p; if (screen_info.orig_video_isVGA == VIDEO_TYPE_VLFB || screen_info.orig_video_isVGA == VIDEO_TYPE_EFI) { no_vga: conswitchp = &dummy_con; return conswitchp->con_startup(); ...
static const char *vgacon_startup(void) { vgacon_yres = vga_scan_lines; if (!vga_init_done) { vgacon_scrollback_startup(); vga_init_done = true; } return display_desc; }
static const char *vgacon_startup(void) { vgacon_yres = vga_scan_lines; vga_init_done = true; return display_desc; }
static const char *vgacon_startup(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ vgacon_yres = vga_scan_lines; if (!vga_init_done) { vgacon_scrollback_startup(); vga_init_done = true; } return display_desc; }
static const char *vgacon_startup(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ vgacon_yres = vga_scan_lines; vga_init_done = true; return display_desc; }
static const char *vgacon_startup(void) { vgacon_yres = vga_scan_lines; - if (!vga_init_done) { - vgacon_scrollback_startup(); - vga_init_done = true; - } + vga_init_done = true; return display_desc; }
CVE-2020-28097
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/video/console/vgacon.c
vgacon_switch
static int vgacon_switch(struct vc_data *c) { int x = c->vc_cols * VGA_FONTWIDTH; int y = c->vc_rows * c->vc_font.height; int rows = screen_info.orig_video_lines * vga_default_font_height/ c->vc_font.height; vga_video_num_columns = c->vc_cols; vga_video_num_lines = c->vc_rows; if (!vga_is_gfx) {...
static int vgacon_switch(struct vc_data *c) { int x = c->vc_cols * VGA_FONTWIDTH; int y = c->vc_rows * c->vc_font.height; int rows = screen_info.orig_video_lines * vga_default_font_height/ c->vc_font.height; vga_video_num_columns = c->vc_cols; vga_video_num_lines = c->vc_rows; if (!vga_is_gfx) {...
static int vgacon_switch(struct vc_data *c) { int x = c->vc_cols * VGA_FONTWIDTH; int y = c->vc_rows * c->vc_font.height; int rows = screen_info.orig_video_lines * vga_default_font_height/ c->vc_font.height; vga_video_num_columns = c->vc_cols; vga_video_num_lines = c->vc_rows; if (!vga_is_gfx) {...
static int vgacon_switch(struct vc_data *c) { int x = c->vc_cols * VGA_FONTWIDTH; int y = c->vc_rows * c->vc_font.height; int rows = screen_info.orig_video_lines * vga_default_font_height/ c->vc_font.height; vga_video_num_columns = c->vc_cols; vga_video_num_lines = c->vc_rows; if (!vga_is_gfx) {...
static int vgacon_switch(struct vc_data *c) { int x = c->vc_cols * VGA_FONTWIDTH; int y = c->vc_rows * c->vc_font.height; if (!vga_is_gfx) { if ((vgacon_xres != x || vgacon_yres != y) && (!(vga_video_num_columns % 2) && vga_video_num_columns <= screen_info.orig_video_cols && vga_video_num_lines <= r...
static int vgacon_switch(struct vc_data *c) { int x = c->vc_cols * VGA_FONTWIDTH; int y = c->vc_rows * c->vc_font.height; if (!vga_is_gfx) { if ((vgacon_xres != x || vgacon_yres != y) && (!(vga_video_num_columns % 2) && vga_video_num_columns <= screen_info.orig_video_cols && vga_video_num_lines <= r...
static int vgacon_switch(struct vc_data *c) { int x = c->vc_cols * VGA_FONTWIDTH; int y = c->vc_rows * c->vc_font.height; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!vga_is_gfx) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if ((vgacon_xres != x || vgacon_yres != y) && (!(vga_video_...
static int vgacon_switch(struct vc_data *c) { int x = c->vc_cols * VGA_FONTWIDTH; int y = c->vc_rows * c->vc_font.height; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!vga_is_gfx) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if ((vgacon_xres != x || vgacon_yres != y) && (!(vga_video_...
static int vgacon_switch(struct vc_data *c) { int x = c->vc_cols * VGA_FONTWIDTH; int y = c->vc_rows * c->vc_font.height; if (!vga_is_gfx) { if ((vgacon_xres != x || vgacon_yres != y) && (!(vga_video_num_columns % 2) && vga_video_num_columns <= screen_info.orig_video_cols && vga_video_num_lines...
CVE-2020-28374
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/target/target_core_xcopy.c
target_xcopy_locate_se_dev_e4
static int target_xcopy_locate_se_dev_e4(const unsigned char *dev_wwn, struct se_device **found_dev) { struct xcopy_dev_search_info info; int ret; memset(&info, 0, sizeof(info)); info.dev_wwn = dev_wwn; ret = target_for_each_device(target_xcopy_locate_se_dev_e4_iter, &info); if (ret == 1) { ...
static int target_xcopy_locate_se_dev_e4(struct se_session *sess, const unsigned char *dev_wwn, struct se_device **_found_dev, struct percpu_ref **_found_lun_ref) { struct se_dev_entry *deve; struct se_node_acl *nacl; struct se_lun *this_lun = NULL; struct se_device *found_dev = NULL; if (!sess) { ...
static int target_xcopy_locate_se_dev_e4(const unsigned char *dev_wwn, struct se_device **found_dev) { struct xcopy_dev_search_info info; int ret; memset(&info, 0, sizeof(info)); info.dev_wwn = dev_wwn; ret = target_for_each_device(target_xcopy_locate_se_dev_e4_iter, &info); if (ret == 1) { ...
static int target_xcopy_locate_se_dev_e4(struct se_session *sess, const unsigned char *dev_wwn, struct se_device **_found_dev, struct percpu_ref **_found_lun_ref) { struct se_dev_entry *deve; struct se_node_acl *nacl; struct se_lun *this_lun = NULL; struct se_device *found_dev = NULL; if (!sess) { ...
static int target_xcopy_locate_se_dev_e4(const unsigned char *dev_wwn, struct se_device **found_dev) { struct xcopy_dev_search_info info; int ret; memset(&info, 0, sizeof(info)); info.dev_wwn = dev_wwn; ret = target_for_each_device(target_xcopy_locate_se_dev_e4_iter, &info); if (ret == 1) { ...
static int target_xcopy_locate_se_dev_e4(struct se_session *sess, const unsigned char *dev_wwn, struct se_device **_found_dev, struct percpu_ref **_found_lun_ref) { struct se_dev_entry *deve; struct se_node_acl *nacl; struct se_lun *this_lun = NULL; struct se_device *found_dev = NULL; if (!sess) { ...
static int target_xcopy_locate_se_dev_e4(const unsigned char *dev_wwn, struct se_device **found_dev) { struct xcopy_dev_search_info info; int ret; memset(&info, 0, sizeof(info)); info.dev_wwn = dev_wwn; ret = target_for_each_device(target_xcopy_locate_se_dev_e4_iter, &info); if (ret == 1) { ...
static int target_xcopy_locate_se_dev_e4(struct se_session *sess, const unsigned char *dev_wwn, struct se_device **_found_dev, struct percpu_ref **_found_lun_ref) { struct se_dev_entry *deve; struct se_node_acl *nacl; struct se_lun *this_lun = NULL; struct se_device *found_dev = NULL; if (!sess) { ...
-static int target_xcopy_locate_se_dev_e4(const unsigned char *dev_wwn, struct se_device **found_dev) { - struct xcopy_dev_search_info info; - int ret; - memset(&info, 0, sizeof(info)); - info.dev_wwn = dev_wwn; - ret = target_for_each_device(target_xcopy_locate_se_dev_e4_iter, &info); - if (ret == 1)...
CVE-2020-28374
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/target/target_core_xcopy.c
target_xcopy_locate_se_dev_e4_iter
static int target_xcopy_locate_se_dev_e4_iter(struct se_device *se_dev, void *data) { struct xcopy_dev_search_info *info = data; unsigned char tmp_dev_wwn[XCOPY_NAA_IEEE_REGEX_LEN]; int rc; if (!se_dev->dev_attrib.emulate_3pc) { return 0; } memset(&tmp_dev_wwn[0], 0, XCOPY_NAA_IEEE_REGEX...
static int target_xcopy_locate_se_dev_e4_iter(struct se_device *se_dev, const unsigned char *dev_wwn) { unsigned char tmp_dev_wwn[XCOPY_NAA_IEEE_REGEX_LEN]; int rc; if (!se_dev->dev_attrib.emulate_3pc) { pr_debug("XCOPY: emulate_3pc disabled on se_dev %p\n", se_dev); return 0; } mems...
static int target_xcopy_locate_se_dev_e4_iter(struct se_device *se_dev, void *data) { struct xcopy_dev_search_info *info = data; unsigned char tmp_dev_wwn[XCOPY_NAA_IEEE_REGEX_LEN]; int rc; if (!se_dev->dev_attrib.emulate_3pc) { return 0; } memset(&tmp_dev_wwn[0], 0, XCOPY_NAA_IEEE_REGEX...
static int target_xcopy_locate_se_dev_e4_iter(struct se_device *se_dev, const unsigned char *dev_wwn) { unsigned char tmp_dev_wwn[XCOPY_NAA_IEEE_REGEX_LEN]; int rc; if (!se_dev->dev_attrib.emulate_3pc) { pr_debug("XCOPY: emulate_3pc disabled on se_dev %p\n", se_dev); return 0; } mems...
static int target_xcopy_locate_se_dev_e4_iter(struct se_device *se_dev, void *data) { struct xcopy_dev_search_info *info = data; unsigned char tmp_dev_wwn[XCOPY_NAA_IEEE_REGEX_LEN]; if (!se_dev->dev_attrib.emulate_3pc) { return 0; } memset(&tmp_dev_wwn[0], 0, XCOPY_NAA_IEEE_REGEX_LEN); t...
static int target_xcopy_locate_se_dev_e4_iter(struct se_device *se_dev, const unsigned char *dev_wwn) { unsigned char tmp_dev_wwn[XCOPY_NAA_IEEE_REGEX_LEN]; if (!se_dev->dev_attrib.emulate_3pc) { pr_debug("XCOPY: emulate_3pc disabled on se_dev %p\n", se_dev); return 0; } memset(&tmp_dev_...
static int target_xcopy_locate_se_dev_e4_iter(struct se_device *se_dev, void *data) { struct xcopy_dev_search_info *info = data; unsigned char tmp_dev_wwn[XCOPY_NAA_IEEE_REGEX_LEN]; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!se_dev->dev_attrib.emulate_3pc) { return 0; } memset(&t...
static int target_xcopy_locate_se_dev_e4_iter(struct se_device *se_dev, const unsigned char *dev_wwn) { unsigned char tmp_dev_wwn[XCOPY_NAA_IEEE_REGEX_LEN]; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!se_dev->dev_attrib.emulate_3pc) { pr_debug("XCOPY: emulate_3pc disabled on se_dev %p\n", se_...
-static int target_xcopy_locate_se_dev_e4_iter(struct se_device *se_dev, void *data) { - struct xcopy_dev_search_info *info = data; +static int target_xcopy_locate_se_dev_e4_iter(struct se_device *se_dev, const unsigned char *dev_wwn) { unsigned char tmp_dev_wwn[XCOPY_NAA_IEEE_REGEX_LEN]; if (!se_dev->dev_...
CVE-2020-28374
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/target/target_core_xcopy.c
target_xcopy_parse_target_descriptors
static int target_xcopy_parse_target_descriptors(struct se_cmd *se_cmd, struct xcopy_op *xop, unsigned char *p, unsigned short tdll, sense_reason_t *sense_ret) { struct se_device *local_dev = se_cmd->se_dev; unsigned char *desc = p; int offset = tdll % XCOPY_TARGET_DESC_LEN, rc; unsigned short cscd_inde...
static int target_xcopy_parse_target_descriptors(struct se_cmd *se_cmd, struct xcopy_op *xop, unsigned char *p, unsigned short tdll, sense_reason_t *sense_ret) { struct se_device *local_dev = se_cmd->se_dev; unsigned char *desc = p; int offset = tdll % XCOPY_TARGET_DESC_LEN, rc; unsigned short cscd_inde...
static int target_xcopy_parse_target_descriptors(struct se_cmd *se_cmd, struct xcopy_op *xop, unsigned char *p, unsigned short tdll, sense_reason_t *sense_ret) { struct se_device *local_dev = se_cmd->se_dev; unsigned char *desc = p; int offset = tdll % XCOPY_TARGET_DESC_LEN, rc; unsigned short cscd_inde...
static int target_xcopy_parse_target_descriptors(struct se_cmd *se_cmd, struct xcopy_op *xop, unsigned char *p, unsigned short tdll, sense_reason_t *sense_ret) { struct se_device *local_dev = se_cmd->se_dev; unsigned char *desc = p; int offset = tdll % XCOPY_TARGET_DESC_LEN, rc; unsigned short cscd_inde...
static int target_xcopy_parse_target_descriptors(struct se_cmd *se_cmd, struct xcopy_op *xop, unsigned char *p, unsigned short tdll, sense_reason_t *sense_ret) { unsigned char *desc = p; unsigned short cscd_index = 0; while (start < tdll) { switch (desc[0]) { case 0xe4: rc = targ...
static int target_xcopy_parse_target_descriptors(struct se_cmd *se_cmd, struct xcopy_op *xop, unsigned char *p, unsigned short tdll, sense_reason_t *sense_ret) { unsigned char *desc = p; unsigned short cscd_index = 0; while (start < tdll) { switch (desc[0]) { case 0xe4: rc = targ...
static int target_xcopy_parse_target_descriptors(struct se_cmd *se_cmd, struct xcopy_op *xop, unsigned char *p, unsigned short tdll, sense_reason_t *sense_ret) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ unsigned char *desc = p; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ unsigned short cscd_index...
static int target_xcopy_parse_target_descriptors(struct se_cmd *se_cmd, struct xcopy_op *xop, unsigned char *p, unsigned short tdll, sense_reason_t *sense_ret) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ unsigned char *desc = p; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ unsigned short cscd_index...
static int target_xcopy_parse_target_descriptors(struct se_cmd *se_cmd, struct xcopy_op *xop, unsigned char *p, unsigned short tdll, sense_reason_t *sense_ret) { unsigned char *desc = p; unsigned short cscd_index = 0; while (start < tdll) { switch (desc[0]) { case 0xe4: rc...
CVE-2020-28374
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/target/target_core_xcopy.c
xcopy_pt_undepend_remotedev
static void xcopy_pt_undepend_remotedev(struct xcopy_op *xop) { struct se_device *remote_dev; if (xop->op_origin == XCOL_SOURCE_RECV_OP) { remote_dev = xop->dst_dev; } else { remote_dev = xop->src_dev; } pr_debug("Calling configfs_undepend_item for" " remote_dev: %p remote_dev->dev_g...
static void xcopy_pt_undepend_remotedev(struct xcopy_op *xop) { if (xop->op_origin == XCOL_SOURCE_RECV_OP) { pr_debug("putting dst lun_ref for %p\n", xop->dst_dev); } else { pr_debug("putting src lun_ref for %p\n", xop->src_dev); } percpu_ref_put(xop->remote_lun_ref); }
static void xcopy_pt_undepend_remotedev(struct xcopy_op *xop) { struct se_device *remote_dev; if (xop->op_origin == XCOL_SOURCE_RECV_OP) { remote_dev = xop->dst_dev; } else { remote_dev = xop->src_dev; } pr_debug("Calling configfs_undepend_item for" " remote_dev: %p remote_dev->dev_g...
static void xcopy_pt_undepend_remotedev(struct xcopy_op *xop) { if (xop->op_origin == XCOL_SOURCE_RECV_OP) { pr_debug("putting dst lun_ref for %p\n", xop->dst_dev); } else { pr_debug("putting src lun_ref for %p\n", xop->src_dev); } percpu_ref_put(xop->remote_lun_ref); }
static void xcopy_pt_undepend_remotedev(struct xcopy_op *xop) { struct se_device *remote_dev; if (xop->op_origin == XCOL_SOURCE_RECV_OP) { remote_dev = xop->dst_dev; } else { remote_dev = xop->src_dev; } pr_debug("Calling configfs_undepend_item for" " remote_dev: %p remote_dev->dev_g...
static void xcopy_pt_undepend_remotedev(struct xcopy_op *xop) { if (xop->op_origin == XCOL_SOURCE_RECV_OP) { pr_debug("putting dst lun_ref for %p\n", xop->dst_dev); } else { pr_debug("putting src lun_ref for %p\n", xop->src_dev); } percpu_ref_put(xop->remote_lun_ref); }
static void xcopy_pt_undepend_remotedev(struct xcopy_op *xop) { struct se_device *remote_dev; if (xop->op_origin == XCOL_SOURCE_RECV_OP) { remote_dev = xop->dst_dev; } else { remote_dev = xop->src_dev; } pr_debug("Calling configfs_undepend_item for" " remote_dev: %p remote_dev->dev_g...
static void xcopy_pt_undepend_remotedev(struct xcopy_op *xop) { if (xop->op_origin == XCOL_SOURCE_RECV_OP) { pr_debug("putting dst lun_ref for %p\n", xop->dst_dev); } else { pr_debug("putting src lun_ref for %p\n", xop->src_dev); } percpu_ref_put(xop->remote_lun_ref); }
static void xcopy_pt_undepend_remotedev(struct xcopy_op *xop) { - struct se_device *remote_dev; if (xop->op_origin == XCOL_SOURCE_RECV_OP) { - remote_dev = xop->dst_dev; + pr_debug("putting dst lun_ref for %p\n", xop->dst_dev); } else { - remote_dev = xop->src_dev; + pr_debug("...
CVE-2020-28588
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
lib/syscall.c
collect_syscall
static int collect_syscall(struct task_struct *target, struct syscall_info *info) { struct pt_regs *regs; if (!try_get_task_stack(target)) { memset(info, 0, sizeof(*info)); info->data.nr = -1; return 0; } regs = task_pt_regs(target); if (unlikely(!regs)) { put_task_st...
static int collect_syscall(struct task_struct *target, struct syscall_info *info) { unsigned long args[6] = { }; struct pt_regs *regs; if (!try_get_task_stack(target)) { memset(info, 0, sizeof(*info)); info->data.nr = -1; return 0; } regs = task_pt_regs(target); if (unlik...
static int collect_syscall(struct task_struct *target, struct syscall_info *info) { struct pt_regs *regs; if (!try_get_task_stack(target)) { memset(info, 0, sizeof(*info)); info->data.nr = -1; return 0; } regs = task_pt_regs(target); if (unlikely(!regs)) { put_task_st...
static int collect_syscall(struct task_struct *target, struct syscall_info *info) { unsigned long args[6] = { }; struct pt_regs *regs; if (!try_get_task_stack(target)) { memset(info, 0, sizeof(*info)); info->data.nr = -1; return 0; } regs = task_pt_regs(target); if (unlik...
static int collect_syscall(struct task_struct *target, struct syscall_info *info) { struct pt_regs *regs; if (!try_get_task_stack(target)) { return 0; } regs = task_pt_regs(target); if (unlikely(!regs)) { return -EAGA; } info->sp = user_stack_pointer(regs); info->data.ins...
static int collect_syscall(struct task_struct *target, struct syscall_info *info) { unsigned long args[6] = { }; struct pt_regs *regs; if (!try_get_task_stack(target)) { return 0; } regs = task_pt_regs(target); if (unlikely(!regs)) { return -EAGA; } info->sp = user_stack_...
static int collect_syscall(struct task_struct *target, struct syscall_info *info) { struct pt_regs *regs; if (!try_get_task_stack(target)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ return 0; } regs = task_pt_regs(target); if (unlikely(!regs)) { /* PLACEHOLDER: DO NOT DELETE THI...
static int collect_syscall(struct task_struct *target, struct syscall_info *info) { unsigned long args[6] = { }; struct pt_regs *regs; if (!try_get_task_stack(target)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ return 0; } regs = task_pt_regs(target); if (unlikely(!regs)) { ...
static int collect_syscall(struct task_struct *target, struct syscall_info *info) { + unsigned long args[6] = { }; struct pt_regs *regs; if (!try_get_task_stack(target)) { return 0; } regs = task_pt_regs(target); if (unlikely(!regs)) { return -EAGA; } info->sp = ...
CVE-2020-28915
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/video/fbdev/core/fbcon.c
fbcon_get_font
static int fbcon_get_font(struct vc_data *vc, struct console_font *font) { u8 *fontdata = vc->vc_font.data; u8 *data = font->data; int i, j; font->width = vc->vc_font.width; font->height = vc->vc_font.height; font->charcount = vc->vc_hi_font_mask ? 512 : 256; if (!font->data) { retur...
static int fbcon_get_font(struct vc_data *vc, struct console_font *font) { u8 *fontdata = vc->vc_font.data; u8 *data = font->data; int i, j; font->width = vc->vc_font.width; font->height = vc->vc_font.height; font->charcount = vc->vc_hi_font_mask ? 512 : 256; if (!font->data) { retur...
static int fbcon_get_font(struct vc_data *vc, struct console_font *font) { u8 *fontdata = vc->vc_font.data; u8 *data = font->data; int i, j; font->width = vc->vc_font.width; font->height = vc->vc_font.height; font->charcount = vc->vc_hi_font_mask ? 512 : 256; if (!font->data) { retur...
static int fbcon_get_font(struct vc_data *vc, struct console_font *font) { u8 *fontdata = vc->vc_font.data; u8 *data = font->data; int i, j; font->width = vc->vc_font.width; font->height = vc->vc_font.height; font->charcount = vc->vc_hi_font_mask ? 512 : 256; if (!font->data) { retur...
static int fbcon_get_font(struct vc_data *vc, struct console_font *font) { u8 *fontdata = vc->vc_font.data; font->charcount = vc->vc_hi_font_mask ? 512 : 256; if (font->width <= 8) { j = vc->vc_font.height; for (i = 0; i < font->charcount; i++) { memcpy(data, fontdata, j); ...
static int fbcon_get_font(struct vc_data *vc, struct console_font *font) { u8 *fontdata = vc->vc_font.data; font->charcount = vc->vc_hi_font_mask ? 512 : 256; if (font->width <= 8) { j = vc->vc_font.height; if (font->charcount * j > FNTSIZE(fontdata)) { return -EVAL; } ...
static int fbcon_get_font(struct vc_data *vc, struct console_font *font) { u8 *fontdata = vc->vc_font.data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ font->charcount = vc->vc_hi_font_mask ? 512 : 256; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (font->width <= 8) { j = vc->vc_font.h...
static int fbcon_get_font(struct vc_data *vc, struct console_font *font) { u8 *fontdata = vc->vc_font.data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ font->charcount = vc->vc_hi_font_mask ? 512 : 256; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (font->width <= 8) { j = vc->vc_font.h...
static int fbcon_get_font(struct vc_data *vc, struct console_font *font) { u8 *fontdata = vc->vc_font.data; font->charcount = vc->vc_hi_font_mask ? 512 : 256; if (font->width <= 8) { j = vc->vc_font.height; + if (font->charcount * j > FNTSIZE(fontdata)) { + return -EVAL; + ...
CVE-2020-28941
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/accessibility/speakup/spk_ttyio.c
spk_ttyio_ldisc_open
static int spk_ttyio_ldisc_open(struct tty_struct *tty) { struct spk_ldisc_data *ldisc_data; if (tty->ops->write == NULL) { return -EOPNOTSUPP; } speakup_tty = tty; ldisc_data = kmalloc(sizeof(struct spk_ldisc_data), GFP_KERNEL); if (!ldisc_data) { pr_err("speakup: Failed to allo...
static int spk_ttyio_ldisc_open(struct tty_struct *tty) { struct spk_ldisc_data *ldisc_data; if (tty->ops->write == NULL) { return -EOPNOTSUPP; } mutex_lock(&speakup_tty_mutex); if (speakup_tty) { mutex_unlock(&speakup_tty_mutex); return -EBUSY; } speakup_tty = tty; ...
static int spk_ttyio_ldisc_open(struct tty_struct *tty) { struct spk_ldisc_data *ldisc_data; if (!tty->ops->write) { return -EOPNOTSUPP; } speakup_tty = tty; ldisc_data = kmalloc(sizeof(*ldisc_data), GFP_KERNEL); if (!ldisc_data) { return -ENOMEM; } init_completion(&ldisc...
static int spk_ttyio_ldisc_open(struct tty_struct *tty) { struct spk_ldisc_data *ldisc_data; if (!tty->ops->write) { return -EOPNOTSUPP; } mutex_lock(&speakup_tty_mutex); if (speakup_tty) { mutex_unlock(&speakup_tty_mutex); return -EBUSY; } speakup_tty = tty; ldis...
static int spk_ttyio_ldisc_open(struct tty_struct *tty) { if (tty->ops->write == NULL) { return -EOPNOTSUPP; } speakup_tty = tty; if (!ldisc_data) { pr_err("speakup: Failed to allocate ldisc_data.\n"); return -ENOMEM; } speakup_tty->disc_data = ldisc_data; return 0; }...
static int spk_ttyio_ldisc_open(struct tty_struct *tty) { if (tty->ops->write == NULL) { return -EOPNOTSUPP; } mutex_lock(&speakup_tty_mutex); if (speakup_tty) { mutex_unlock(&speakup_tty_mutex); return -EBUSY; } speakup_tty = tty; if (!ldisc_data) { speakup_t...
static int spk_ttyio_ldisc_open(struct tty_struct *tty) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!tty->ops->write) { return -EOPNOTSUPP; } speakup_tty = tty; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!ldisc_data) { return -ENOMEM; } /* PLACEHOLDER: DO N...
static int spk_ttyio_ldisc_open(struct tty_struct *tty) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!tty->ops->write) { return -EOPNOTSUPP; } mutex_lock(&speakup_tty_mutex); if (speakup_tty) { mutex_unlock(&speakup_tty_mutex); return -EBUSY; } speakup_tty = tt...
static int spk_ttyio_ldisc_open(struct tty_struct *tty) { if (tty->ops->write == NULL) { return -EOPNOTSUPP; } + mutex_lock(&speakup_tty_mutex); + if (speakup_tty) { + mutex_unlock(&speakup_tty_mutex); + return -EBUSY; + } speakup_tty = tty; if (!ldisc_data) { + ...
CVE-2020-28974
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/tty/vt/vt.c
con_font_op
int con_font_op(struct vc_data *vc, struct console_font_op *op) { switch (op->op) { case KD_FONT_OP_SET: return con_font_set(vc, op); case KD_FONT_OP_GET: return con_font_get(vc, op); case KD_FONT_OP_SET_DEFAULT: return con_font_default(vc, op); case KD_FONT_OP_COPY: ...
int con_font_op(struct vc_data *vc, struct console_font_op *op) { switch (op->op) { case KD_FONT_OP_SET: return con_font_set(vc, op); case KD_FONT_OP_GET: return con_font_get(vc, op); case KD_FONT_OP_SET_DEFAULT: return con_font_default(vc, op); case KD_FONT_OP_COPY: ...
int con_font_op(struct vc_data *vc, struct console_font_op *op) { switch (op->op) { case KD_FONT_OP_SET: return con_font_set(vc, op); case KD_FONT_OP_GET: return con_font_get(vc, op); case KD_FONT_OP_SET_DEFAULT: return con_font_default(vc, op); case KD_FONT_OP_COPY: ...
int con_font_op(struct vc_data *vc, struct console_font_op *op) { switch (op->op) { case KD_FONT_OP_SET: return con_font_set(vc, op); case KD_FONT_OP_GET: return con_font_get(vc, op); case KD_FONT_OP_SET_DEFAULT: return con_font_default(vc, op); case KD_FONT_OP_COPY: ...
int con_font_op(struct vc_data *vc, struct console_font_op *op) { switch (op->op) { case KD_FONT_OP_COPY: return con_font_copy(vc, op); } }
int con_font_op(struct vc_data *vc, struct console_font_op *op) { switch (op->op) { case KD_FONT_OP_COPY: return -EVAL; } }
int con_font_op(struct vc_data *vc, struct console_font_op *op) { switch (op->op) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ case KD_FONT_OP_COPY: return con_font_copy(vc, op); } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
int con_font_op(struct vc_data *vc, struct console_font_op *op) { switch (op->op) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ case KD_FONT_OP_COPY: return -EVAL; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
int con_font_op(struct vc_data *vc, struct console_font_op *op) { switch (op->op) { case KD_FONT_OP_COPY: - return con_font_copy(vc, op); + return -EVAL; } }
CVE-2020-29368
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
mm/huge_memory.c
__split_huge_pmd
void __split_huge_pmd(struct vm_area_struct *vma, pmd_t *pmd, unsigned long address, bool freeze, struct page *page) { spinlock_t *ptl; struct mm_struct *mm = vma->vm_mm; unsigned long haddr = address & HPAGE_PMD_MASK; mmu_notifier_invalidate_range_start(mm, haddr, haddr + HPAGE_PMD_SIZE); ptl = pmd...
void __split_huge_pmd(struct vm_area_struct *vma, pmd_t *pmd, unsigned long address, bool freeze, struct page *page) { spinlock_t *ptl; struct mm_struct *mm = vma->vm_mm; unsigned long haddr = address & HPAGE_PMD_MASK; bool was_locked = false; pmd_t _pmd; mmu_notifier_invalidate_range_start(mm, ...
void __split_huge_pmd(struct vm_area_struct *vma, pmd_t *pmd, unsigned long address, bool freeze, struct page *page) { spinlock_t *ptl; struct mmu_notifier_range range; mmu_notifier_range_init(&range, MMU_NOTIFY_CLEAR, 0, vma, vma->vm_mm, address & HPAGE_PMD_MASK, (address & HPAGE_PMD_MASK) + HPAGE_PMD_SIZE...
void __split_huge_pmd(struct vm_area_struct *vma, pmd_t *pmd, unsigned long address, bool freeze, struct page *page) { spinlock_t *ptl; struct mmu_notifier_range range; bool was_locked = false; pmd_t _pmd; mmu_notifier_range_init(&range, MMU_NOTIFY_CLEAR, 0, vma, vma->vm_mm, address & HPAGE_PMD_MASK...
void __split_huge_pmd(struct vm_area_struct *vma, pmd_t *pmd, unsigned long address, bool freeze, struct page *page) { struct mm_struct *mm = vma->vm_mm; unsigned long haddr = address & HPAGE_PMD_MASK; mmu_notifier_invalidate_range_start(mm, haddr, haddr + HPAGE_PMD_SIZE); ptl = pmd_lock(mm, pmd); V...
void __split_huge_pmd(struct vm_area_struct *vma, pmd_t *pmd, unsigned long address, bool freeze, struct page *page) { struct mm_struct *mm = vma->vm_mm; unsigned long haddr = address & HPAGE_PMD_MASK; bool was_locked = false; pmd_t _pmd; mmu_notifier_invalidate_range_start(mm, haddr, haddr + HPAGE_...
void __split_huge_pmd(struct vm_area_struct *vma, pmd_t *pmd, unsigned long address, bool freeze, struct page *page) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct mmu_notifier_range range; mmu_notifier_range_init(&range, MMU_NOTIFY_CLEAR, 0, vma, vma->vm_mm, address & HPAGE_PMD_MASK, (address & HPA...
void __split_huge_pmd(struct vm_area_struct *vma, pmd_t *pmd, unsigned long address, bool freeze, struct page *page) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct mmu_notifier_range range; bool was_locked = false; pmd_t _pmd; mmu_notifier_range_init(&range, MMU_NOTIFY_CLEAR, 0, vma, vma->vm...
void __split_huge_pmd(struct vm_area_struct *vma, pmd_t *pmd, unsigned long address, bool freeze, struct page *page) { struct mm_struct *mm = vma->vm_mm; unsigned long haddr = address & HPAGE_PMD_MASK; + bool was_locked = false; + pmd_t _pmd; mmu_notifier_invalidate_range_start(mm, haddr, haddr + ...
CVE-2020-29369
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
mm/mmap.c
__do_munmap
int __do_munmap(struct mm_struct *mm, unsigned long start, size_t len, struct list_head *uf, bool downgrade) { unsigned long end; struct vm_area_struct *vma, *prev, *last; if ((offset_in_page(start)) || start > TASK_SIZE || len > TASK_SIZE-start) { return -EVAL; } len = PAGE_ALIGN(len); ...
int __do_munmap(struct mm_struct *mm, unsigned long start, size_t len, struct list_head *uf, bool downgrade) { unsigned long end; struct vm_area_struct *vma, *prev, *last; if ((offset_in_page(start)) || start > TASK_SIZE || len > TASK_SIZE-start) { return -EVAL; } len = PAGE_ALIGN(len); ...
int __do_munmap(struct mm_struct *mm, unsigned long start, size_t len, struct list_head *uf, bool downgrade) { unsigned long end; struct vm_area_struct *vma, *prev, *last; if ((offset_in_page(start)) || start > TASK_SIZE || len > TASK_SIZE-start) { return -EVAL; } len = PAGE_ALIGN(len); ...
int __do_munmap(struct mm_struct *mm, unsigned long start, size_t len, struct list_head *uf, bool downgrade) { unsigned long end; struct vm_area_struct *vma, *prev, *last; if ((offset_in_page(start)) || start > TASK_SIZE || len > TASK_SIZE-start) { return -EVAL; } len = PAGE_ALIGN(len); ...
int __do_munmap(struct mm_struct *mm, unsigned long start, size_t len, struct list_head *uf, bool downgrade) { if ((offset_in_page(start)) || start > TASK_SIZE || len > TASK_SIZE-start) { return -EVAL; } len = PAGE_ALIGN(len); end = start + len; arch_unmap(mm, start, end); vma = find_vma...
int __do_munmap(struct mm_struct *mm, unsigned long start, size_t len, struct list_head *uf, bool downgrade) { if ((offset_in_page(start)) || start > TASK_SIZE || len > TASK_SIZE-start) { return -EVAL; } len = PAGE_ALIGN(len); end = start + len; arch_unmap(mm, start, end); vma = find_vma...
int __do_munmap(struct mm_struct *mm, unsigned long start, size_t len, struct list_head *uf, bool downgrade) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if ((offset_in_page(start)) || start > TASK_SIZE || len > TASK_SIZE-start) { return -EVAL; } len = PAGE_ALIGN(len); end = start + len; ...
int __do_munmap(struct mm_struct *mm, unsigned long start, size_t len, struct list_head *uf, bool downgrade) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if ((offset_in_page(start)) || start > TASK_SIZE || len > TASK_SIZE-start) { return -EVAL; } len = PAGE_ALIGN(len); end = start + len; ...
int __do_munmap(struct mm_struct *mm, unsigned long start, size_t len, struct list_head *uf, bool downgrade) { if ((offset_in_page(start)) || start > TASK_SIZE || len > TASK_SIZE-start) { return -EVAL; } len = PAGE_ALIGN(len); end = start + len; arch_unmap(mm, start, end); vma = ...
CVE-2020-29369
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
mm/mmap.c
detach_vmas_to_be_unmapped
static void detach_vmas_to_be_unmapped(struct mm_struct *mm, struct vm_area_struct *vma, struct vm_area_struct *prev, unsigned long end) { struct vm_area_struct **insertion_point; struct vm_area_struct *tail_vma = NULL; insertion_point = (prev ? &prev->vm_next : &mm->mmap); vma->vm_prev = NULL; do {...
static bool detach_vmas_to_be_unmapped(struct mm_struct *mm, struct vm_area_struct *vma, struct vm_area_struct *prev, unsigned long end) { struct vm_area_struct **insertion_point; struct vm_area_struct *tail_vma = NULL; insertion_point = (prev ? &prev->vm_next : &mm->mmap); vma->vm_prev = NULL; do {...
static void detach_vmas_to_be_unmapped(struct mm_struct *mm, struct vm_area_struct *vma, struct vm_area_struct *prev, unsigned long end) { struct vm_area_struct **insertion_point; struct vm_area_struct *tail_vma = NULL; insertion_point = (prev ? &prev->vm_next : &mm->mmap); vma->vm_prev = NULL; do {...
static bool detach_vmas_to_be_unmapped(struct mm_struct *mm, struct vm_area_struct *vma, struct vm_area_struct *prev, unsigned long end) { struct vm_area_struct **insertion_point; struct vm_area_struct *tail_vma = NULL; insertion_point = (prev ? &prev->vm_next : &mm->mmap); vma->vm_prev = NULL; do {...
static void detach_vmas_to_be_unmapped(struct mm_struct *mm, struct vm_area_struct *vma, struct vm_area_struct *prev, unsigned long end) { do { vma_rb_erase(vma, &mm->mm_rb); mm->map_count--; tail_vma = vma; vma = vma->vm_next; } while (vma && vma->vm_start < end); if (vma) {...
static bool detach_vmas_to_be_unmapped(struct mm_struct *mm, struct vm_area_struct *vma, struct vm_area_struct *prev, unsigned long end) { do { vma_rb_erase(vma, &mm->mm_rb); mm->map_count--; tail_vma = vma; vma = vma->vm_next; } while (vma && vma->vm_start < end); if (vma) {...
static void detach_vmas_to_be_unmapped(struct mm_struct *mm, struct vm_area_struct *vma, struct vm_area_struct *prev, unsigned long end) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ do { vma_rb_erase(vma, &mm->mm_rb); mm->map_count--; tail_vma = vma; vma = vma->vm_next; } ...
static bool detach_vmas_to_be_unmapped(struct mm_struct *mm, struct vm_area_struct *vma, struct vm_area_struct *prev, unsigned long end) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ do { vma_rb_erase(vma, &mm->mm_rb); mm->map_count--; tail_vma = vma; vma = vma->vm_next; } ...
-static void detach_vmas_to_be_unmapped(struct mm_struct *mm, struct vm_area_struct *vma, struct vm_area_struct *prev, unsigned long end) { +static bool detach_vmas_to_be_unmapped(struct mm_struct *mm, struct vm_area_struct *vma, struct vm_area_struct *prev, unsigned long end) { do { vma_rb_erase(vma, &mm...
CVE-2020-29370
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
mm/slub.c
kmem_cache_alloc_bulk
int kmem_cache_alloc_bulk(struct kmem_cache *s, gfp_t flags, size_t size, void **p) { struct kmem_cache_cpu *c; int i; s = slab_pre_alloc_hook(s, flags); if (unlikely(!s)) { return false; } local_irq_disable(); c = this_cpu_ptr(s->cpu_slab); for (i = 0; i < size; i++) { v...
int kmem_cache_alloc_bulk(struct kmem_cache *s, gfp_t flags, size_t size, void **p) { struct kmem_cache_cpu *c; int i; s = slab_pre_alloc_hook(s, flags); if (unlikely(!s)) { return false; } local_irq_disable(); c = this_cpu_ptr(s->cpu_slab); for (i = 0; i < size; i++) { v...
int kmem_cache_alloc_bulk(struct kmem_cache *s, gfp_t flags, size_t size, void **p) { struct kmem_cache_cpu *c; int i; s = slab_pre_alloc_hook(s, flags); if (unlikely(!s)) { return false; } local_irq_disable(); c = this_cpu_ptr(s->cpu_slab); for (i = 0; i < size; i++) { v...
int kmem_cache_alloc_bulk(struct kmem_cache *s, gfp_t flags, size_t size, void **p) { struct kmem_cache_cpu *c; int i; s = slab_pre_alloc_hook(s, flags); if (unlikely(!s)) { return false; } local_irq_disable(); c = this_cpu_ptr(s->cpu_slab); for (i = 0; i < size; i++) { v...
int kmem_cache_alloc_bulk(struct kmem_cache *s, gfp_t flags, size_t size, void **p) { s = slab_pre_alloc_hook(s, flags); if (unlikely(!s)) { return false; } c = this_cpu_ptr(s->cpu_slab); for (i = 0; i < size; i++) { if (unlikely(!object)) { p[i] = ___slab_alloc(s, flags,...
int kmem_cache_alloc_bulk(struct kmem_cache *s, gfp_t flags, size_t size, void **p) { s = slab_pre_alloc_hook(s, flags); if (unlikely(!s)) { return false; } c = this_cpu_ptr(s->cpu_slab); for (i = 0; i < size; i++) { if (unlikely(!object)) { c->tid = next_tid(c->tid); ...
int kmem_cache_alloc_bulk(struct kmem_cache *s, gfp_t flags, size_t size, void **p) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ s = slab_pre_alloc_hook(s, flags); if (unlikely(!s)) { return false; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ c = this_cpu_ptr(s->cpu_slab); for ...
int kmem_cache_alloc_bulk(struct kmem_cache *s, gfp_t flags, size_t size, void **p) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ s = slab_pre_alloc_hook(s, flags); if (unlikely(!s)) { return false; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ c = this_cpu_ptr(s->cpu_slab); for ...
int kmem_cache_alloc_bulk(struct kmem_cache *s, gfp_t flags, size_t size, void **p) { s = slab_pre_alloc_hook(s, flags); if (unlikely(!s)) { return false; } c = this_cpu_ptr(s->cpu_slab); for (i = 0; i < size; i++) { if (unlikely(!object)) { + c->tid = next_tid(c->...
CVE-2020-29371
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/romfs/storage.c
romfs_dev_read
int romfs_dev_read(struct super_block *sb, unsigned long pos, void *buf, size_t buflen) { size_t limit; limit = romfs_maxsize(sb); if (pos >= limit) { return -EIO; } if (buflen > limit - pos) { buflen = limit - pos; } if (sb->s_mtd) { return romfs_mtd_read(sb, pos, bu...
int romfs_dev_read(struct super_block *sb, unsigned long pos, void *buf, size_t buflen) { size_t limit; limit = romfs_maxsize(sb); if (pos >= limit || buflen > limit - pos) { return -EIO; } if (sb->s_mtd) { return romfs_mtd_read(sb, pos, buf, buflen); } if (sb->s_bdev) { ...
int romfs_dev_read(struct super_block *sb, unsigned long pos, void *buf, size_t buflen) { size_t limit; limit = romfs_maxsize(sb); if (pos >= limit) { return -EIO; } if (buflen > limit - pos) { buflen = limit - pos; } if (sb->s_mtd) { return romfs_mtd_read(sb, pos, bu...
int romfs_dev_read(struct super_block *sb, unsigned long pos, void *buf, size_t buflen) { size_t limit; limit = romfs_maxsize(sb); if (pos >= limit || buflen > limit - pos) { return -EIO; } if (sb->s_mtd) { return romfs_mtd_read(sb, pos, buf, buflen); } if (sb->s_bdev) { ...
int romfs_dev_read(struct super_block *sb, unsigned long pos, void *buf, size_t buflen) { limit = romfs_maxsize(sb); if (pos >= limit) { return -EIO; } if (buflen > limit - pos) { buflen = limit - pos; } if (sb->s_mtd) { return romfs_mtd_read(sb, pos, buf, buflen); } ...
int romfs_dev_read(struct super_block *sb, unsigned long pos, void *buf, size_t buflen) { limit = romfs_maxsize(sb); if (pos >= limit || buflen > limit - pos) { return -EIO; } if (sb->s_mtd) { return romfs_mtd_read(sb, pos, buf, buflen); } if (sb->s_bdev) { return romfs_b...
int romfs_dev_read(struct super_block *sb, unsigned long pos, void *buf, size_t buflen) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ limit = romfs_maxsize(sb); if (pos >= limit) { return -EIO; } if (buflen > limit - pos) { buflen = limit - pos; } if (sb->s_mtd) { r...
int romfs_dev_read(struct super_block *sb, unsigned long pos, void *buf, size_t buflen) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ limit = romfs_maxsize(sb); if (pos >= limit || buflen > limit - pos) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } if (sb->s_mtd) { return romfs...
int romfs_dev_read(struct super_block *sb, unsigned long pos, void *buf, size_t buflen) { limit = romfs_maxsize(sb); - if (pos >= limit) { + if (pos >= limit || buflen > limit - pos) { return -EIO; - } - if (buflen > limit - pos) { - buflen = limit - pos; } if (sb->s_mtd) { ...
CVE-2020-29569
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/block/xen-blkback/xenbus.c
xen_blkif_disconnect
static int xen_blkif_disconnect(struct xen_blkif *blkif) { struct pending_req *req, *n; unsigned int j, r; bool busy = false; for (r = 0; r < blkif->nr_rings; r++) { struct xen_blkif_ring *ring = &blkif->rings[r]; unsigned int i = 0; if (!ring->active) { continue; ...
static int xen_blkif_disconnect(struct xen_blkif *blkif) { struct pending_req *req, *n; unsigned int j, r; bool busy = false; for (r = 0; r < blkif->nr_rings; r++) { struct xen_blkif_ring *ring = &blkif->rings[r]; unsigned int i = 0; if (!ring->active) { continue; ...
static int xen_blkif_disconnect(struct xen_blkif *blkif) { struct pending_req *req, *n; unsigned int j, r; bool busy = false; for (r = 0; r < blkif->nr_rings; r++) { struct xen_blkif_ring *ring = &blkif->rings[r]; unsigned int i = 0; if (!ring->active) { continue; ...
static int xen_blkif_disconnect(struct xen_blkif *blkif) { struct pending_req *req, *n; unsigned int j, r; bool busy = false; for (r = 0; r < blkif->nr_rings; r++) { struct xen_blkif_ring *ring = &blkif->rings[r]; unsigned int i = 0; if (!ring->active) { continue; ...
static int xen_blkif_disconnect(struct xen_blkif *blkif) { for (r = 0; r < blkif->nr_rings; r++) { if (ring->xenblkd) { kthread_stop(ring->xenblkd); wake_up(&ring->shutdown_wq); } if (ring->irq) { unbind_from_irqhandler(ring->irq, ring); } ...
static int xen_blkif_disconnect(struct xen_blkif *blkif) { for (r = 0; r < blkif->nr_rings; r++) { if (ring->xenblkd) { kthread_stop(ring->xenblkd); ring->xenblkd = NULL; wake_up(&ring->shutdown_wq); } if (ring->irq) { unbind_from_irqhandler(ri...
static int xen_blkif_disconnect(struct xen_blkif *blkif) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (r = 0; r < blkif->nr_rings; r++) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (ring->xenblkd) { kthread_stop(ring->xenblkd); wake_up(&ring->shutdown_wq); ...
static int xen_blkif_disconnect(struct xen_blkif *blkif) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (r = 0; r < blkif->nr_rings; r++) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (ring->xenblkd) { kthread_stop(ring->xenblkd); ring->xenblkd = NULL; w...
static int xen_blkif_disconnect(struct xen_blkif *blkif) { for (r = 0; r < blkif->nr_rings; r++) { if (ring->xenblkd) { kthread_stop(ring->xenblkd); + ring->xenblkd = NULL; wake_up(&ring->shutdown_wq); } if (ring->irq) { unbind_from_irqh...
CVE-2020-29660
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/tty/tty_io.c
__do_SAK
void __do_SAK(struct tty_struct *tty) { tty_hangup(tty); struct task_struct *g, *p; struct pid *session; int i; if (!tty) { return; } session = tty->session; tty_ldisc_flush(tty); tty_driver_flush_buffer(tty); read_lock(&tasklist_lock); do_each_pid_task(session, PIDTY...
void __do_SAK(struct tty_struct *tty) { tty_hangup(tty); struct task_struct *g, *p; struct pid *session; int i; unsigned long flags; if (!tty) { return; } spin_lock_irqsave(&tty->ctrl_lock, flags); session = get_pid(tty->session); spin_unlock_irqrestore(&tty->ctrl_lock, f...
void __do_SAK(struct tty_struct *tty) { tty_hangup(tty); struct task_struct *g, *p; struct pid *session; int i; if (!tty) { return; } session = tty->session; tty_ldisc_flush(tty); tty_driver_flush_buffer(tty); read_lock(&tasklist_lock); do_each_pid_task(session, PIDTY...
void __do_SAK(struct tty_struct *tty) { tty_hangup(tty); struct task_struct *g, *p; struct pid *session; int i; unsigned long flags; if (!tty) { return; } spin_lock_irqsave(&tty->ctrl_lock, flags); session = get_pid(tty->session); spin_unlock_irqrestore(&tty->ctrl_lock, f...
void __do_SAK(struct tty_struct *tty) { tty_hangup(tty); int i; if (!tty) { return; } session = tty->session; tty_ldisc_flush(tty); tty_driver_flush_buffer(tty); do_each_pid_task(session, PIDTYPE_SID, p) { tty_notice(tty, "SAK: killed process %d (%s): by session\n", task_...
void __do_SAK(struct tty_struct *tty) { tty_hangup(tty); int i; unsigned long flags; if (!tty) { return; } spin_lock_irqsave(&tty->ctrl_lock, flags); session = get_pid(tty->session); spin_unlock_irqrestore(&tty->ctrl_lock, flags); tty_ldisc_flush(tty); tty_driver_flush_bu...
void __do_SAK(struct tty_struct *tty) { tty_hangup(tty); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int i; if (!tty) { return; } session = tty->session; tty_ldisc_flush(tty); tty_driver_flush_buffer(tty); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ do_each_pid_task(s...
void __do_SAK(struct tty_struct *tty) { tty_hangup(tty); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int i; unsigned long flags; if (!tty) { return; } spin_lock_irqsave(&tty->ctrl_lock, flags); session = get_pid(tty->session); spin_unlock_irqrestore(&tty->ctrl_lock, flags);...
void __do_SAK(struct tty_struct *tty) { tty_hangup(tty); int i; + unsigned long flags; if (!tty) { return; } - session = tty->session; + spin_lock_irqsave(&tty->ctrl_lock, flags); + session = get_pid(tty->session); + spin_unlock_irqrestore(&tty->ctrl_lock, flags); tty_l...
CVE-2020-29660
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/tty/tty_jobctrl.c
__proc_set_tty
static void __proc_set_tty(struct tty_struct *tty) { unsigned long flags; spin_lock_irqsave(&tty->ctrl_lock, flags); put_pid(tty->session); put_pid(tty->pgrp); tty->pgrp = get_pid(task_pgrp(current)); spin_unlock_irqrestore(&tty->ctrl_lock, flags); tty->session = get_pid(task_session(current...
static void __proc_set_tty(struct tty_struct *tty) { unsigned long flags; spin_lock_irqsave(&tty->ctrl_lock, flags); put_pid(tty->session); put_pid(tty->pgrp); tty->pgrp = get_pid(task_pgrp(current)); tty->session = get_pid(task_session(current)); spin_unlock_irqrestore(&tty->ctrl_lock, flag...
static void __proc_set_tty(struct tty_struct *tty) { unsigned long flags; spin_lock_irqsave(&tty->ctrl_lock, flags); put_pid(tty->session); put_pid(tty->pgrp); tty->pgrp = get_pid(task_pgrp(current)); spin_unlock_irqrestore(&tty->ctrl_lock, flags); tty->session = get_pid(task_session(current...
static void __proc_set_tty(struct tty_struct *tty) { unsigned long flags; spin_lock_irqsave(&tty->ctrl_lock, flags); put_pid(tty->session); put_pid(tty->pgrp); tty->pgrp = get_pid(task_pgrp(current)); tty->session = get_pid(task_session(current)); spin_unlock_irqrestore(&tty->ctrl_lock, flag...
static void __proc_set_tty(struct tty_struct *tty) { spin_lock_irqsave(&tty->ctrl_lock, flags); tty->pgrp = get_pid(task_pgrp(current)); spin_unlock_irqrestore(&tty->ctrl_lock, flags); tty->session = get_pid(task_session(current)); if (current->signal->tty) { tty_debug(tty, "current tty %s n...
static void __proc_set_tty(struct tty_struct *tty) { spin_lock_irqsave(&tty->ctrl_lock, flags); tty->pgrp = get_pid(task_pgrp(current)); tty->session = get_pid(task_session(current)); spin_unlock_irqrestore(&tty->ctrl_lock, flags); if (current->signal->tty) { tty_debug(tty, "current tty %s n...
static void __proc_set_tty(struct tty_struct *tty) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ spin_lock_irqsave(&tty->ctrl_lock, flags); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ tty->pgrp = get_pid(task_pgrp(current)); spin_unlock_irqrestore(&tty->ctrl_lock, flags); tty->session = get_...
static void __proc_set_tty(struct tty_struct *tty) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ spin_lock_irqsave(&tty->ctrl_lock, flags); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ tty->pgrp = get_pid(task_pgrp(current)); tty->session = get_pid(task_session(current)); spin_unlock_irqresto...
static void __proc_set_tty(struct tty_struct *tty) { spin_lock_irqsave(&tty->ctrl_lock, flags); tty->pgrp = get_pid(task_pgrp(current)); + tty->session = get_pid(task_session(current)); spin_unlock_irqrestore(&tty->ctrl_lock, flags); - tty->session = get_pid(task_session(current)); if (curren...
CVE-2020-29660
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/tty/tty_jobctrl.c
disassociate_ctty
void disassociate_ctty(int on_exit) { struct tty_struct *tty; if (!current->signal->leader) { return; } tty = get_current_tty(); if (tty) { if (on_exit && tty->driver->type != TTY_DRIVER_TYPE_PTY) { tty_vhangup_session(tty); } else { struct pid *tty_pg...
void disassociate_ctty(int on_exit) { struct tty_struct *tty; if (!current->signal->leader) { return; } tty = get_current_tty(); if (tty) { if (on_exit && tty->driver->type != TTY_DRIVER_TYPE_PTY) { tty_vhangup_session(tty); } else { struct pid *tty_pg...
void disassociate_ctty(int on_exit) { struct tty_struct *tty; if (!current->signal->leader) { return; } tty = get_current_tty(); if (tty) { if (on_exit && tty->driver->type != TTY_DRIVER_TYPE_PTY) { tty_vhangup_session(tty); } else { struct pid *tty_pg...
void disassociate_ctty(int on_exit) { struct tty_struct *tty; if (!current->signal->leader) { return; } tty = get_current_tty(); if (tty) { if (on_exit && tty->driver->type != TTY_DRIVER_TYPE_PTY) { tty_vhangup_session(tty); } else { struct pid *tty_pg...
void disassociate_ctty(int on_exit) { tty = tty_kref_get(current->signal->tty); if (tty) { unsigned long flags; spin_lock_irqsave(&tty->ctrl_lock, flags); put_pid(tty->session); put_pid(tty->pgrp); spin_unlock_irqrestore(&tty->ctrl_lock, flags); tty_kref_put(tty);...
void disassociate_ctty(int on_exit) { tty = tty_kref_get(current->signal->tty); spin_unlock_irq(&current->sighand->siglock); if (tty) { unsigned long flags; tty_lock(tty); spin_lock_irqsave(&tty->ctrl_lock, flags); put_pid(tty->session); put_pid(tty->pgrp); sp...
void disassociate_ctty(int on_exit) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ tty = tty_kref_get(current->signal->tty); if (tty) { unsigned long flags; spin_lock_irqsave(&tty->ctrl_lock, flags); put_pid(tty->session); put_pid(tty->pgrp); /* PLACEHOLDER: DO NOT DELET...
void disassociate_ctty(int on_exit) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ tty = tty_kref_get(current->signal->tty); spin_unlock_irq(&current->sighand->siglock); if (tty) { unsigned long flags; tty_lock(tty); spin_lock_irqsave(&tty->ctrl_lock, flags); put_pid(tty...
void disassociate_ctty(int on_exit) { tty = tty_kref_get(current->signal->tty); + spin_unlock_irq(&current->sighand->siglock); if (tty) { unsigned long flags; + tty_lock(tty); spin_lock_irqsave(&tty->ctrl_lock, flags); put_pid(tty->session); put_pid(tty->pgrp); ...
CVE-2020-29660
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/tty/tty_jobctrl.c
tiocgsid
static int tiocgsid(struct tty_struct *tty, struct tty_struct *real_tty, pid_t *p) { if (tty == real_tty && current->signal->tty != real_tty) { return -ENOTTY; } if (!real_tty->session) { return -ENOTTY; } return put_user(pid_vnr(real_tty->session), p); }
static int tiocgsid(struct tty_struct *tty, struct tty_struct *real_tty, pid_t *p) { unsigned long flags; pid_t sid; if (tty == real_tty && current->signal->tty != real_tty) { return -ENOTTY; } spin_lock_irqsave(&real_tty->ctrl_lock, flags); if (!real_tty->session) { goto err; ...
static int tiocgsid(struct tty_struct *tty, struct tty_struct *real_tty, pid_t *p) { if (tty == real_tty && current->signal->tty != real_tty) { return -ENOTTY; } if (!real_tty->session) { return -ENOTTY; } return put_user(pid_vnr(real_tty->session), p); }
static int tiocgsid(struct tty_struct *tty, struct tty_struct *real_tty, pid_t *p) { unsigned long flags; pid_t sid; if (tty == real_tty && current->signal->tty != real_tty) { return -ENOTTY; } spin_lock_irqsave(&real_tty->ctrl_lock, flags); if (!real_tty->session) { goto err; ...
static int tiocgsid(struct tty_struct *tty, struct tty_struct *real_tty, pid_t *p) { if (tty == real_tty && current->signal->tty != real_tty) { return -ENOTTY; } if (!real_tty->session) { return -ENOTTY; } return put_user(pid_vnr(real_tty->session), p); }
static int tiocgsid(struct tty_struct *tty, struct tty_struct *real_tty, pid_t *p) { unsigned long flags; pid_t sid; if (tty == real_tty && current->signal->tty != real_tty) { return -ENOTTY; } spin_lock_irqsave(&real_tty->ctrl_lock, flags); if (!real_tty->session) { goto err; ...
static int tiocgsid(struct tty_struct *tty, struct tty_struct *real_tty, pid_t *p) { if (tty == real_tty && current->signal->tty != real_tty) { return -ENOTTY; } if (!real_tty->session) { return -ENOTTY; } return put_user(pid_vnr(real_tty->session), p); }
static int tiocgsid(struct tty_struct *tty, struct tty_struct *real_tty, pid_t *p) { unsigned long flags; pid_t sid; if (tty == real_tty && current->signal->tty != real_tty) { return -ENOTTY; } spin_lock_irqsave(&real_tty->ctrl_lock, flags); if (!real_tty->session) { goto err; ...
static int tiocgsid(struct tty_struct *tty, struct tty_struct *real_tty, pid_t *p) { + unsigned long flags; + pid_t sid; if (tty == real_tty && current->signal->tty != real_tty) { return -ENOTTY; } + spin_lock_irqsave(&real_tty->ctrl_lock, flags); if (!real_tty->session) { - ret...
CVE-2020-29660
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/tty/tty_jobctrl.c
tiocspgrp
static int tiocspgrp(struct tty_struct *tty, struct tty_struct *real_tty, pid_t *p) { struct pid *pgrp; pid_t pgrp_nr; int retval = tty_check_change(real_tty); if (retval == -EIO) { return -ENOTTY; } if (retval) { return retval; } if (!current->signal->tty || (current->si...
static int tiocspgrp(struct tty_struct *tty, struct tty_struct *real_tty, pid_t *p) { struct pid *pgrp; pid_t pgrp_nr; int retval = tty_check_change(real_tty); if (retval == -EIO) { return -ENOTTY; } if (retval) { return retval; } if (get_user(pgrp_nr, p)) { retur...
static int tiocspgrp(struct tty_struct *tty, struct tty_struct *real_tty, pid_t *p) { struct pid *pgrp; pid_t pgrp_nr; int retval = tty_check_change(real_tty); if (retval == -EIO) { return -ENOTTY; } if (retval) { return retval; } if (!current->signal->tty || (current->si...
static int tiocspgrp(struct tty_struct *tty, struct tty_struct *real_tty, pid_t *p) { struct pid *pgrp; pid_t pgrp_nr; int retval = tty_check_change(real_tty); if (retval == -EIO) { return -ENOTTY; } if (retval) { return retval; } if (get_user(pgrp_nr, p)) { retur...
static int tiocspgrp(struct tty_struct *tty, struct tty_struct *real_tty, pid_t *p) { int retval = tty_check_change(real_tty); if (retval) { return retval; } if (!current->signal->tty || (current->signal->tty != real_tty) || (real_tty->session != task_session(current))) { return -ENOTTY;...
static int tiocspgrp(struct tty_struct *tty, struct tty_struct *real_tty, pid_t *p) { int retval = tty_check_change(real_tty); if (retval) { return retval; } if (get_user(pgrp_nr, p)) { return -EFAULT; } if (pgrp_nr < 0) { return -EVAL; } spin_lock_irq(&real_tty->...
static int tiocspgrp(struct tty_struct *tty, struct tty_struct *real_tty, pid_t *p) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int retval = tty_check_change(real_tty); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (retval) { return retval; } if (!current->signal->tty || (current-...
static int tiocspgrp(struct tty_struct *tty, struct tty_struct *real_tty, pid_t *p) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int retval = tty_check_change(real_tty); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (retval) { return retval; } if (get_user(pgrp_nr, p)) { re...
static int tiocspgrp(struct tty_struct *tty, struct tty_struct *real_tty, pid_t *p) { int retval = tty_check_change(real_tty); if (retval) { return retval; - } - if (!current->signal->tty || (current->signal->tty != real_tty) || (real_tty->session != task_session(current))) { - return -...
CVE-2020-29661
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/tty/tty_jobctrl.c
tiocspgrp
static int tiocspgrp(struct tty_struct *tty, struct tty_struct *real_tty, pid_t *p) { struct pid *pgrp; pid_t pgrp_nr; int retval = tty_check_change(real_tty); if (retval == -EIO) { return -ENOTTY; } if (retval) { return retval; } if (!current->signal->tty || (current->si...
static int tiocspgrp(struct tty_struct *tty, struct tty_struct *real_tty, pid_t *p) { struct pid *pgrp; pid_t pgrp_nr; int retval = tty_check_change(real_tty); if (retval == -EIO) { return -ENOTTY; } if (retval) { return retval; } if (!current->signal->tty || (current->si...
static int tiocspgrp(struct tty_struct *tty, struct tty_struct *real_tty, pid_t *p) { struct pid *pgrp; pid_t pgrp_nr; int retval = tty_check_change(real_tty); if (retval == -EIO) { return -ENOTTY; } if (retval) { return retval; } if (!current->signal->tty || (current->si...
static int tiocspgrp(struct tty_struct *tty, struct tty_struct *real_tty, pid_t *p) { struct pid *pgrp; pid_t pgrp_nr; int retval = tty_check_change(real_tty); if (retval == -EIO) { return -ENOTTY; } if (retval) { return retval; } if (!current->signal->tty || (current->si...
static int tiocspgrp(struct tty_struct *tty, struct tty_struct *real_tty, pid_t *p) { int retval = tty_check_change(real_tty); if (!current->signal->tty || (current->signal->tty != real_tty) || (real_tty->session != task_session(current))) { return -ENOTTY; } retval = 0; spin_lock_irq(&tty->...
static int tiocspgrp(struct tty_struct *tty, struct tty_struct *real_tty, pid_t *p) { int retval = tty_check_change(real_tty); if (!current->signal->tty || (current->signal->tty != real_tty) || (real_tty->session != task_session(current))) { return -ENOTTY; } retval = 0; spin_lock_irq(&real_...
static int tiocspgrp(struct tty_struct *tty, struct tty_struct *real_tty, pid_t *p) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int retval = tty_check_change(real_tty); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!current->signal->tty || (current->signal->tty != real_tty) || (real_tty->session...
static int tiocspgrp(struct tty_struct *tty, struct tty_struct *real_tty, pid_t *p) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int retval = tty_check_change(real_tty); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!current->signal->tty || (current->signal->tty != real_tty) || (real_tty->session...
static int tiocspgrp(struct tty_struct *tty, struct tty_struct *real_tty, pid_t *p) { int retval = tty_check_change(real_tty); if (!current->signal->tty || (current->signal->tty != real_tty) || (real_tty->session != task_session(current))) { return -ENOTTY; } retval = 0; - spin_lock_irq...
CVE-2020-35513
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/nfsd/nfs4proc.c
do_open_lookup
static __be32 do_open_lookup(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *open, struct svc_fh **resfh) { struct svc_fh *current_fh = &cstate->current_fh; int accmode; __be32 status; *resfh = kmalloc(sizeof(struct svc_fh), GFP_KERNEL); if (!*resfh) { return ...
static __be32 do_open_lookup(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *open, struct svc_fh **resfh) { struct svc_fh *current_fh = &cstate->current_fh; int accmode; __be32 status; *resfh = kmalloc(sizeof(struct svc_fh), GFP_KERNEL); if (!*resfh) { return ...
static __be32 do_open_lookup(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *open, struct svc_fh **resfh) { struct svc_fh *current_fh = &cstate->current_fh; int accmode; __be32 status; *resfh = kmalloc(sizeof(struct svc_fh), GFP_KERNEL); if (!*resfh) { return ...
static __be32 do_open_lookup(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *open, struct svc_fh **resfh) { struct svc_fh *current_fh = &cstate->current_fh; int accmode; __be32 status; *resfh = kmalloc(sizeof(struct svc_fh), GFP_KERNEL); if (!*resfh) { return ...
static __be32 do_open_lookup(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *open, struct svc_fh **resfh) { if (open->op_create) { status = do_nfsd_create(rqstp, current_fh, open->op_fname.data, open->op_fname.len, &open->op_iattr, *resfh, open->op_createmode, (u32 *)open->op...
static __be32 do_open_lookup(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *open, struct svc_fh **resfh) { if (open->op_create) { current->fs->umask = open->op_umask; status = do_nfsd_create(rqstp, current_fh, open->op_fname.data, open->op_fname.len, &open->op_iattr,...
static __be32 do_open_lookup(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *open, struct svc_fh **resfh) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (open->op_create) { status = do_nfsd_create(rqstp, current_fh, open->op_fname.data, open->op_fname.len, &open->op_i...
static __be32 do_open_lookup(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *open, struct svc_fh **resfh) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (open->op_create) { current->fs->umask = open->op_umask; status = do_nfsd_create(rqstp, current_fh, open->o...
static __be32 do_open_lookup(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *open, struct svc_fh **resfh) { if (open->op_create) { + current->fs->umask = open->op_umask; status = do_nfsd_create(rqstp, current_fh, open->op_fname.data, open->op_fname.len, &open->op_ia...
CVE-2020-35513
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/nfsd/nfs4proc.c
nfsd4_create
static __be32 nfsd4_create(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, union nfsd4_op_u *u) { struct nfsd4_create *create = &u->create; struct svc_fh resfh; __be32 status; dev_t rdev; fh_init(&resfh, NFS4_FHSIZE); status = fh_verify(rqstp, &cstate->current_fh, S_IFDIR, NFSD_MAY_...
static __be32 nfsd4_create(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, union nfsd4_op_u *u) { struct nfsd4_create *create = &u->create; struct svc_fh resfh; __be32 status; dev_t rdev; fh_init(&resfh, NFS4_FHSIZE); status = fh_verify(rqstp, &cstate->current_fh, S_IFDIR, NFSD_MAY_...
static __be32 nfsd4_create(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, union nfsd4_op_u *u) { struct nfsd4_create *create = &u->create; struct svc_fh resfh; __be32 status; dev_t rdev; fh_init(&resfh, NFS4_FHSIZE); status = fh_verify(rqstp, &cstate->current_fh, S_IFDIR, NFSD_MAY_...
static __be32 nfsd4_create(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, union nfsd4_op_u *u) { struct nfsd4_create *create = &u->create; struct svc_fh resfh; __be32 status; dev_t rdev; fh_init(&resfh, NFS4_FHSIZE); status = fh_verify(rqstp, &cstate->current_fh, S_IFDIR, NFSD_MAY_...
static __be32 nfsd4_create(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, union nfsd4_op_u *u) { struct nfsd4_create *create = &u->create; if (status) { return status; } switch (create->cr_type) { case NF4BLK: rdev = MKDEV(create->cr_specdata1, create->cr_specdata2); ...
static __be32 nfsd4_create(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, union nfsd4_op_u *u) { struct nfsd4_create *create = &u->create; if (status) { return status; } current->fs->umask = create->cr_umask; switch (create->cr_type) { case NF4BLK: status = nfserr_i...
static __be32 nfsd4_create(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, union nfsd4_op_u *u) { struct nfsd4_create *create = &u->create; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (status) { return status; } switch (create->cr_type) { /* PLACEHOLDER: DO NOT DELETE T...
static __be32 nfsd4_create(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, union nfsd4_op_u *u) { struct nfsd4_create *create = &u->create; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (status) { return status; } current->fs->umask = create->cr_umask; switch (create->cr_...
static __be32 nfsd4_create(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, union nfsd4_op_u *u) { struct nfsd4_create *create = &u->create; if (status) { return status; } + current->fs->umask = create->cr_umask; switch (create->cr_type) { case NF4BLK: + status =...
CVE-2020-35513
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/nfsd/nfs4xdr.c
nfsd4_decode_create
static __be32 nfsd4_decode_create(struct nfsd4_compoundargs *argp, struct nfsd4_create *create) { DECODE_HEAD; READ_BUF(4); create->cr_type = be32_to_cpup(p++); switch (create->cr_type) { case NF4LNK: READ_BUF(4); create->cr_datalen = be32_to_cpup(p++); READ_BUF(create->cr_da...
static __be32 nfsd4_decode_create(struct nfsd4_compoundargs *argp, struct nfsd4_create *create) { DECODE_HEAD; READ_BUF(4); create->cr_type = be32_to_cpup(p++); switch (create->cr_type) { case NF4LNK: READ_BUF(4); create->cr_datalen = be32_to_cpup(p++); READ_BUF(create->cr_da...
static __be32 nfsd4_decode_create(struct nfsd4_compoundargs *argp, struct nfsd4_create *create) { DECODE_HEAD; READ_BUF(4); create->cr_type = be32_to_cpup(p++); switch (create->cr_type) { case NF4LNK: READ_BUF(4); create->cr_datalen = be32_to_cpup(p++); READ_BUF(create->cr_da...
static __be32 nfsd4_decode_create(struct nfsd4_compoundargs *argp, struct nfsd4_create *create) { DECODE_HEAD; READ_BUF(4); create->cr_type = be32_to_cpup(p++); switch (create->cr_type) { case NF4LNK: READ_BUF(4); create->cr_datalen = be32_to_cpup(p++); READ_BUF(create->cr_da...
static __be32 nfsd4_decode_create(struct nfsd4_compoundargs *argp, struct nfsd4_create *create) { create->cr_type = be32_to_cpup(p++); switch (create->cr_type) { case NF4LNK: create->cr_datalen = be32_to_cpup(p++); READ_BUF(create->cr_datalen); create->cr_data = svcxdr_dupstr(argp, p...
static __be32 nfsd4_decode_create(struct nfsd4_compoundargs *argp, struct nfsd4_create *create) { create->cr_type = be32_to_cpup(p++); switch (create->cr_type) { case NF4LNK: create->cr_datalen = be32_to_cpup(p++); READ_BUF(create->cr_datalen); create->cr_data = svcxdr_dupstr(argp, p...
static __be32 nfsd4_decode_create(struct nfsd4_compoundargs *argp, struct nfsd4_create *create) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ create->cr_type = be32_to_cpup(p++); switch (create->cr_type) { case NF4LNK: /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ create->cr_datalen = be32...
static __be32 nfsd4_decode_create(struct nfsd4_compoundargs *argp, struct nfsd4_create *create) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ create->cr_type = be32_to_cpup(p++); switch (create->cr_type) { case NF4LNK: /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ create->cr_datalen = be32...
static __be32 nfsd4_decode_create(struct nfsd4_compoundargs *argp, struct nfsd4_create *create) { create->cr_type = be32_to_cpup(p++); switch (create->cr_type) { case NF4LNK: create->cr_datalen = be32_to_cpup(p++); READ_BUF(create->cr_datalen); create->cr_data = svcxdr_dupstr(...
CVE-2020-35513
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/nfsd/nfs4xdr.c
nfsd4_decode_open
static __be32 nfsd4_decode_open(struct nfsd4_compoundargs *argp, struct nfsd4_open *open) { DECODE_HEAD; u32 dummy; memset(open->op_bmval, 0, sizeof(open->op_bmval)); open->op_iattr.ia_valid = 0; open->op_openowner = NULL; open->op_xdr_error = 0; READ_BUF(4); open->op_seqid = be32_to_cpu...
static __be32 nfsd4_decode_open(struct nfsd4_compoundargs *argp, struct nfsd4_open *open) { DECODE_HEAD; u32 dummy; memset(open->op_bmval, 0, sizeof(open->op_bmval)); open->op_iattr.ia_valid = 0; open->op_openowner = NULL; open->op_xdr_error = 0; READ_BUF(4); open->op_seqid = be32_to_cpu...
static __be32 nfsd4_decode_open(struct nfsd4_compoundargs *argp, struct nfsd4_open *open) { DECODE_HEAD; u32 dummy; memset(open->op_bmval, 0, sizeof(open->op_bmval)); open->op_iattr.ia_valid = 0; open->op_openowner = NULL; open->op_xdr_error = 0; READ_BUF(4); open->op_seqid = be32_to_cpu...
static __be32 nfsd4_decode_open(struct nfsd4_compoundargs *argp, struct nfsd4_open *open) { DECODE_HEAD; u32 dummy; memset(open->op_bmval, 0, sizeof(open->op_bmval)); open->op_iattr.ia_valid = 0; open->op_openowner = NULL; open->op_xdr_error = 0; READ_BUF(4); open->op_seqid = be32_to_cpu...
static __be32 nfsd4_decode_open(struct nfsd4_compoundargs *argp, struct nfsd4_open *open) { memset(open->op_bmval, 0, sizeof(open->op_bmval)); status = nfsd4_decode_share_access(argp, &open->op_share_access, &open->op_deleg_want, &dummy); status = nfsd4_decode_share_deny(argp, &open->op_share_deny); sta...
static __be32 nfsd4_decode_open(struct nfsd4_compoundargs *argp, struct nfsd4_open *open) { memset(open->op_bmval, 0, sizeof(open->op_bmval)); status = nfsd4_decode_share_access(argp, &open->op_share_access, &open->op_deleg_want, &dummy); status = nfsd4_decode_share_deny(argp, &open->op_share_deny); sta...
static __be32 nfsd4_decode_open(struct nfsd4_compoundargs *argp, struct nfsd4_open *open) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ memset(open->op_bmval, 0, sizeof(open->op_bmval)); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ status = nfsd4_decode_share_access(argp, &open->op_share_access, &ope...
static __be32 nfsd4_decode_open(struct nfsd4_compoundargs *argp, struct nfsd4_open *open) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ memset(open->op_bmval, 0, sizeof(open->op_bmval)); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ status = nfsd4_decode_share_access(argp, &open->op_share_access, &ope...
static __be32 nfsd4_decode_open(struct nfsd4_compoundargs *argp, struct nfsd4_open *open) { memset(open->op_bmval, 0, sizeof(open->op_bmval)); status = nfsd4_decode_share_access(argp, &open->op_share_access, &open->op_deleg_want, &dummy); status = nfsd4_decode_share_deny(argp, &open->op_share_deny); ...
CVE-2020-35519
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/x25/af_x25.c
x25_bind
static int x25_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) { struct sock *sk = sock->sk; struct sockaddr_x25 *addr = (struct sockaddr_x25 *)uaddr; int len, i, rc = 0; if (addr_len != sizeof(struct sockaddr_x25) || addr->sx25_family != AF_X25) { rc = -EVAL; goto out; ...
static int x25_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) { struct sock *sk = sock->sk; struct sockaddr_x25 *addr = (struct sockaddr_x25 *)uaddr; int len, i, rc = 0; if (addr_len != sizeof(struct sockaddr_x25) || addr->sx25_family != AF_X25 || strnlen(addr->sx25_addr.x25_addr, X25_A...
static int x25_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) { struct sock *sk = sock->sk; struct sockaddr_x25 *addr = (struct sockaddr_x25 *)uaddr; int len, i, rc = 0; if (addr_len != sizeof(struct sockaddr_x25) || addr->sx25_family != AF_X25) { rc = -EVAL; goto out; ...
static int x25_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) { struct sock *sk = sock->sk; struct sockaddr_x25 *addr = (struct sockaddr_x25 *)uaddr; int len, i, rc = 0; if (addr_len != sizeof(struct sockaddr_x25) || addr->sx25_family != AF_X25 || strnlen(addr->sx25_addr.x25_addr, X25_A...
static int x25_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) { struct sockaddr_x25 *addr = (struct sockaddr_x25 *)uaddr; int len, i, rc = 0; if (addr_len != sizeof(struct sockaddr_x25) || addr->sx25_family != AF_X25) { rc = -EVAL; goto out; } if (strcmp(addr->sx25_a...
static int x25_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) { struct sockaddr_x25 *addr = (struct sockaddr_x25 *)uaddr; int len, i, rc = 0; if (addr_len != sizeof(struct sockaddr_x25) || addr->sx25_family != AF_X25 || strnlen(addr->sx25_addr.x25_addr, X25_ADDR_LEN) == X25_ADDR_LEN) { ...
static int x25_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct sockaddr_x25 *addr = (struct sockaddr_x25 *)uaddr; int len, i, rc = 0; if (addr_len != sizeof(struct sockaddr_x25) || addr->sx25_family != AF_X25) { rc = -EVAL; ...
static int x25_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct sockaddr_x25 *addr = (struct sockaddr_x25 *)uaddr; int len, i, rc = 0; if (addr_len != sizeof(struct sockaddr_x25) || addr->sx25_family != AF_X25 || strnlen(addr->sx25_ad...
static int x25_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) { struct sockaddr_x25 *addr = (struct sockaddr_x25 *)uaddr; int len, i, rc = 0; - if (addr_len != sizeof(struct sockaddr_x25) || addr->sx25_family != AF_X25) { + if (addr_len != sizeof(struct sockaddr_x25) || addr->sx25_fami...
CVE-2020-35519
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/x25/af_x25.c
x25_connect
static int x25_connect(struct socket *sock, struct sockaddr *uaddr, int addr_len, int flags) { struct sock *sk = sock->sk; struct x25_sock *x25 = x25_sk(sk); struct sockaddr_x25 *addr = (struct sockaddr_x25 *)uaddr; struct x25_route *rt; int rc = 0; lock_sock(sk); if (sk->sk_state == TCP_EST...
static int x25_connect(struct socket *sock, struct sockaddr *uaddr, int addr_len, int flags) { struct sock *sk = sock->sk; struct x25_sock *x25 = x25_sk(sk); struct sockaddr_x25 *addr = (struct sockaddr_x25 *)uaddr; struct x25_route *rt; int rc = 0; lock_sock(sk); if (sk->sk_state == TCP_EST...
static int x25_connect(struct socket *sock, struct sockaddr *uaddr, int addr_len, int flags) { struct sock *sk = sock->sk; struct x25_sock *x25 = x25_sk(sk); struct sockaddr_x25 *addr = (struct sockaddr_x25 *)uaddr; struct x25_route *rt; int rc = 0; lock_sock(sk); if (sk->sk_state == TCP_EST...
static int x25_connect(struct socket *sock, struct sockaddr *uaddr, int addr_len, int flags) { struct sock *sk = sock->sk; struct x25_sock *x25 = x25_sk(sk); struct sockaddr_x25 *addr = (struct sockaddr_x25 *)uaddr; struct x25_route *rt; int rc = 0; lock_sock(sk); if (sk->sk_state == TCP_EST...
static int x25_connect(struct socket *sock, struct sockaddr *uaddr, int addr_len, int flags) { struct sockaddr_x25 *addr = (struct sockaddr_x25 *)uaddr; rc = -EVAL; if (addr_len != sizeof(struct sockaddr_x25) || addr->sx25_family != AF_X25) { goto out; } rc = -ENETUNREACH; rt = x25_get_r...
static int x25_connect(struct socket *sock, struct sockaddr *uaddr, int addr_len, int flags) { struct sockaddr_x25 *addr = (struct sockaddr_x25 *)uaddr; rc = -EVAL; if (addr_len != sizeof(struct sockaddr_x25) || addr->sx25_family != AF_X25 || strnlen(addr->sx25_addr.x25_addr, X25_ADDR_LEN) == X25_ADDR_LEN) ...
static int x25_connect(struct socket *sock, struct sockaddr *uaddr, int addr_len, int flags) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct sockaddr_x25 *addr = (struct sockaddr_x25 *)uaddr; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ rc = -EVAL; if (addr_len != sizeof(struct sockaddr_x25)...
static int x25_connect(struct socket *sock, struct sockaddr *uaddr, int addr_len, int flags) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct sockaddr_x25 *addr = (struct sockaddr_x25 *)uaddr; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ rc = -EVAL; if (addr_len != sizeof(struct sockaddr_x25)...
static int x25_connect(struct socket *sock, struct sockaddr *uaddr, int addr_len, int flags) { struct sockaddr_x25 *addr = (struct sockaddr_x25 *)uaddr; rc = -EVAL; - if (addr_len != sizeof(struct sockaddr_x25) || addr->sx25_family != AF_X25) { + if (addr_len != sizeof(struct sockaddr_x25) || addr->sx2...
CVE-2020-36158
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/net/wireless/marvell/mwifiex/join.c
mwifiex_cmd_802_11_ad_hoc_start
int mwifiex_cmd_802_11_ad_hoc_start(struct mwifiex_private *priv, struct host_cmd_ds_command *cmd, struct cfg80211_ssid *req_ssid) { int rsn_ie_len = 0; struct mwifiex_adapter *adapter = priv->adapter; struct host_cmd_ds_802_11_ad_hoc_start *adhoc_start = &cmd->params.adhoc_start; struct mwifiex_bssdesc...
int mwifiex_cmd_802_11_ad_hoc_start(struct mwifiex_private *priv, struct host_cmd_ds_command *cmd, struct cfg80211_ssid *req_ssid) { int rsn_ie_len = 0; struct mwifiex_adapter *adapter = priv->adapter; struct host_cmd_ds_802_11_ad_hoc_start *adhoc_start = &cmd->params.adhoc_start; struct mwifiex_bssdesc...
int mwifiex_cmd_802_11_ad_hoc_start(struct mwifiex_private *priv, struct host_cmd_ds_command *cmd, struct cfg80211_ssid *req_ssid) { int rsn_ie_len = 0; struct mwifiex_adapter *adapter = priv->adapter; struct host_cmd_ds_802_11_ad_hoc_start *adhoc_start = &cmd->params.adhoc_start; struct mwifiex_bssdesc...
int mwifiex_cmd_802_11_ad_hoc_start(struct mwifiex_private *priv, struct host_cmd_ds_command *cmd, struct cfg80211_ssid *req_ssid) { int rsn_ie_len = 0; struct mwifiex_adapter *adapter = priv->adapter; struct host_cmd_ds_802_11_ad_hoc_start *adhoc_start = &cmd->params.adhoc_start; struct mwifiex_bssdesc...
int mwifiex_cmd_802_11_ad_hoc_start(struct mwifiex_private *priv, struct host_cmd_ds_command *cmd, struct cfg80211_ssid *req_ssid) { struct host_cmd_ds_802_11_ad_hoc_start *adhoc_start = &cmd->params.adhoc_start; memset(adhoc_start->ssid, 0, IEEE80211_MAX_SSID_LEN); memcpy(adhoc_start->ssid, req_ssid->ssid,...
int mwifiex_cmd_802_11_ad_hoc_start(struct mwifiex_private *priv, struct host_cmd_ds_command *cmd, struct cfg80211_ssid *req_ssid) { struct host_cmd_ds_802_11_ad_hoc_start *adhoc_start = &cmd->params.adhoc_start; memset(adhoc_start->ssid, 0, IEEE80211_MAX_SSID_LEN); if (req_ssid->ssid_len > IEEE80211_MAX_SS...
int mwifiex_cmd_802_11_ad_hoc_start(struct mwifiex_private *priv, struct host_cmd_ds_command *cmd, struct cfg80211_ssid *req_ssid) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct host_cmd_ds_802_11_ad_hoc_start *adhoc_start = &cmd->params.adhoc_start; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ...
int mwifiex_cmd_802_11_ad_hoc_start(struct mwifiex_private *priv, struct host_cmd_ds_command *cmd, struct cfg80211_ssid *req_ssid) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct host_cmd_ds_802_11_ad_hoc_start *adhoc_start = &cmd->params.adhoc_start; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ...
int mwifiex_cmd_802_11_ad_hoc_start(struct mwifiex_private *priv, struct host_cmd_ds_command *cmd, struct cfg80211_ssid *req_ssid) { struct host_cmd_ds_802_11_ad_hoc_start *adhoc_start = &cmd->params.adhoc_start; memset(adhoc_start->ssid, 0, IEEE80211_MAX_SSID_LEN); + if (req_ssid->ssid_len > IEEE80211_MA...
CVE-2020-36311
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
arch/x86/kvm/svm.c
sev_vm_destroy
static void sev_vm_destroy(struct kvm *kvm) { struct kvm_sev_info *sev = &to_kvm_svm(kvm)->sev_info; struct list_head *head = &sev->regions_list; struct list_head *pos, *q; if (!sev_guest(kvm)) { return; } mutex_lock(&kvm->lock); if (!list_empty(head)) { list_for_each_safe(po...
static void sev_vm_destroy(struct kvm *kvm) { struct kvm_sev_info *sev = &to_kvm_svm(kvm)->sev_info; struct list_head *head = &sev->regions_list; struct list_head *pos, *q; if (!sev_guest(kvm)) { return; } mutex_lock(&kvm->lock); if (!list_empty(head)) { list_for_each_safe(po...
static void sev_vm_destroy(struct kvm *kvm) { struct kvm_sev_info *sev = &to_kvm_svm(kvm)->sev_info; struct list_head *head = &sev->regions_list; struct list_head *pos, *q; if (!sev_guest(kvm)) { return; } mutex_lock(&kvm->lock); if (!list_empty(head)) { list_for_each_safe(po...
static void sev_vm_destroy(struct kvm *kvm) { struct kvm_sev_info *sev = &to_kvm_svm(kvm)->sev_info; struct list_head *head = &sev->regions_list; struct list_head *pos, *q; if (!sev_guest(kvm)) { return; } mutex_lock(&kvm->lock); if (!list_empty(head)) { list_for_each_safe(po...
static void sev_vm_destroy(struct kvm *kvm) { if (!list_empty(head)) { list_for_each_safe(pos, q, head) { __unregister_enc_region_locked(kvm, list_entry(pos, struct enc_region, list)); } } mutex_unlock(&kvm->lock); }
static void sev_vm_destroy(struct kvm *kvm) { if (!list_empty(head)) { list_for_each_safe(pos, q, head) { __unregister_enc_region_locked(kvm, list_entry(pos, struct enc_region, list)); cond_resched(); } } mutex_unlock(&kvm->lock); }
static void sev_vm_destroy(struct kvm *kvm) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!list_empty(head)) { list_for_each_safe(pos, q, head) { __unregister_enc_region_locked(kvm, list_entry(pos, struct enc_region, list)); } } mutex_unlock(&kvm->lock); /* PLACEHOL...
static void sev_vm_destroy(struct kvm *kvm) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!list_empty(head)) { list_for_each_safe(pos, q, head) { __unregister_enc_region_locked(kvm, list_entry(pos, struct enc_region, list)); cond_resched(); } } mutex_unlock(...
static void sev_vm_destroy(struct kvm *kvm) { if (!list_empty(head)) { list_for_each_safe(pos, q, head) { __unregister_enc_region_locked(kvm, list_entry(pos, struct enc_region, list)); + cond_resched(); } } mutex_unlock(&kvm->lock); }
CVE-2020-36312
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
virt/kvm/kvm_main.c
kvm_io_bus_unregister_dev
void kvm_io_bus_unregister_dev(struct kvm *kvm, enum kvm_bus bus_idx, struct kvm_io_device *dev) { int i; struct kvm_io_bus *new_bus, *bus; bus = kvm_get_bus(kvm, bus_idx); if (!bus) { return; } for (i = 0; i < bus->dev_count; i++) if (bus->range[i].dev == dev) { brea...
void kvm_io_bus_unregister_dev(struct kvm *kvm, enum kvm_bus bus_idx, struct kvm_io_device *dev) { int i, j; struct kvm_io_bus *new_bus, *bus; bus = kvm_get_bus(kvm, bus_idx); if (!bus) { return; } for (i = 0; i < bus->dev_count; i++) if (bus->range[i].dev == dev) { b...
void kvm_io_bus_unregister_dev(struct kvm *kvm, enum kvm_bus bus_idx, struct kvm_io_device *dev) { int i; struct kvm_io_bus *new_bus, *bus; bus = kvm_get_bus(kvm, bus_idx); if (!bus) { return; } for (i = 0; i < bus->dev_count; i++) if (bus->range[i].dev == dev) { brea...
void kvm_io_bus_unregister_dev(struct kvm *kvm, enum kvm_bus bus_idx, struct kvm_io_device *dev) { int i, j; struct kvm_io_bus *new_bus, *bus; bus = kvm_get_bus(kvm, bus_idx); if (!bus) { return; } for (i = 0; i < bus->dev_count; i++) if (bus->range[i].dev == dev) { b...
void kvm_io_bus_unregister_dev(struct kvm *kvm, enum kvm_bus bus_idx, struct kvm_io_device *dev) { int i; struct kvm_io_bus *new_bus, *bus; bus = kvm_get_bus(kvm, bus_idx); if (!bus) { return; } for (i = 0; i < bus->dev_count; i++) if (bus->range[i].dev == dev) { } if...
void kvm_io_bus_unregister_dev(struct kvm *kvm, enum kvm_bus bus_idx, struct kvm_io_device *dev) { int i, j; struct kvm_io_bus *new_bus, *bus; bus = kvm_get_bus(kvm, bus_idx); if (!bus) { return; } for (i = 0; i < bus->dev_count; i++) if (bus->range[i].dev == dev) { } ...
void kvm_io_bus_unregister_dev(struct kvm *kvm, enum kvm_bus bus_idx, struct kvm_io_device *dev) { int i; struct kvm_io_bus *new_bus, *bus; bus = kvm_get_bus(kvm, bus_idx); if (!bus) { return; } for (i = 0; i < bus->dev_count; i++) if (bus->range[i].dev == dev) { /* PLACEHOLD...
void kvm_io_bus_unregister_dev(struct kvm *kvm, enum kvm_bus bus_idx, struct kvm_io_device *dev) { int i, j; struct kvm_io_bus *new_bus, *bus; bus = kvm_get_bus(kvm, bus_idx); if (!bus) { return; } for (i = 0; i < bus->dev_count; i++) if (bus->range[i].dev == dev) { /* PLACEH...
void kvm_io_bus_unregister_dev(struct kvm *kvm, enum kvm_bus bus_idx, struct kvm_io_device *dev) { - int i; + int i, j; struct kvm_io_bus *new_bus, *bus; bus = kvm_get_bus(kvm, bus_idx); if (!bus) { return; } for (i = 0; i < bus->dev_count; i++) if (bus->range[i].dev ==...
CVE-2020-36386
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/bluetooth/hci_event.c
hci_extended_inquiry_result_evt
static void hci_extended_inquiry_result_evt(struct hci_dev *hdev, struct sk_buff *skb) { struct inquiry_data data; struct extended_inquiry_info *info = (void *) (skb->data + 1); int num_rsp = *((__u8 *) skb->data); size_t eir_len; BT_DBG("%s num_rsp %d", hdev->name, num_rsp); if (!num_rsp) { ...
static void hci_extended_inquiry_result_evt(struct hci_dev *hdev, struct sk_buff *skb) { struct inquiry_data data; struct extended_inquiry_info *info = (void *) (skb->data + 1); int num_rsp = *((__u8 *) skb->data); size_t eir_len; BT_DBG("%s num_rsp %d", hdev->name, num_rsp); if (!num_rsp || skb...
static void hci_extended_inquiry_result_evt(struct hci_dev *hdev, struct sk_buff *skb) { struct inquiry_data data; struct extended_inquiry_info *info = (void *) (skb->data + 1); int num_rsp = *((__u8 *) skb->data); size_t eir_len; BT_DBG("%s num_rsp %d", hdev->name, num_rsp); if (!num_rsp) { ...
static void hci_extended_inquiry_result_evt(struct hci_dev *hdev, struct sk_buff *skb) { struct inquiry_data data; struct extended_inquiry_info *info = (void *) (skb->data + 1); int num_rsp = *((__u8 *) skb->data); size_t eir_len; BT_DBG("%s num_rsp %d", hdev->name, num_rsp); if (!num_rsp || skb...
static void hci_extended_inquiry_result_evt(struct hci_dev *hdev, struct sk_buff *skb) { int num_rsp = *((__u8 *) skb->data); BT_DBG("%s num_rsp %d", hdev->name, num_rsp); if (!num_rsp) { return; } if (hci_dev_test_flag(hdev, HCI_PERIODIC_Q)) { return; } for (; num_rsp; num_r...
static void hci_extended_inquiry_result_evt(struct hci_dev *hdev, struct sk_buff *skb) { int num_rsp = *((__u8 *) skb->data); BT_DBG("%s num_rsp %d", hdev->name, num_rsp); if (!num_rsp || skb->len < num_rsp * sizeof(*info) + 1) { return; } if (hci_dev_test_flag(hdev, HCI_PERIODIC_Q)) { ...
static void hci_extended_inquiry_result_evt(struct hci_dev *hdev, struct sk_buff *skb) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int num_rsp = *((__u8 *) skb->data); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ BT_DBG("%s num_rsp %d", hdev->name, num_rsp); if (!num_rsp) { return; ...
static void hci_extended_inquiry_result_evt(struct hci_dev *hdev, struct sk_buff *skb) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int num_rsp = *((__u8 *) skb->data); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ BT_DBG("%s num_rsp %d", hdev->name, num_rsp); if (!num_rsp || skb->len < num_rsp *...
static void hci_extended_inquiry_result_evt(struct hci_dev *hdev, struct sk_buff *skb) { int num_rsp = *((__u8 *) skb->data); BT_DBG("%s num_rsp %d", hdev->name, num_rsp); - if (!num_rsp) { + if (!num_rsp || skb->len < num_rsp * sizeof(*info) + 1) { return; } if (hci_dev_test_flag(hd...
CVE-2020-36387
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/io_uring.c
__io_async_wake
static int __io_async_wake(struct io_kiocb *req, struct io_poll_iocb *poll, __poll_t mask, task_work_func_t func) { struct task_struct *tsk; int ret; if (mask && !(mask & poll->events)) { return 0; } trace_io_uring_task_add(req->ctx, req->opcode, req->user_data, mask); list_del_init(&pol...
static int __io_async_wake(struct io_kiocb *req, struct io_poll_iocb *poll, __poll_t mask, task_work_func_t func) { struct task_struct *tsk; int ret; if (mask && !(mask & poll->events)) { return 0; } trace_io_uring_task_add(req->ctx, req->opcode, req->user_data, mask); list_del_init(&pol...
static int __io_async_wake(struct io_kiocb *req, struct io_poll_iocb *poll, __poll_t mask, task_work_func_t func) { struct task_struct *tsk; int ret; if (mask && !(mask & poll->events)) { return 0; } trace_io_uring_task_add(req->ctx, req->opcode, req->user_data, mask); list_del_init(&pol...
static int __io_async_wake(struct io_kiocb *req, struct io_poll_iocb *poll, __poll_t mask, task_work_func_t func) { struct task_struct *tsk; int ret; if (mask && !(mask & poll->events)) { return 0; } trace_io_uring_task_add(req->ctx, req->opcode, req->user_data, mask); list_del_init(&pol...
static int __io_async_wake(struct io_kiocb *req, struct io_poll_iocb *poll, __poll_t mask, task_work_func_t func) { init_task_work(&req->task_work, func); ret = io_req_task_work_add(req, &req->task_work); }
static int __io_async_wake(struct io_kiocb *req, struct io_poll_iocb *poll, __poll_t mask, task_work_func_t func) { init_task_work(&req->task_work, func); percpu_ref_get(&req->ctx->refs); ret = io_req_task_work_add(req, &req->task_work); }
static int __io_async_wake(struct io_kiocb *req, struct io_poll_iocb *poll, __poll_t mask, task_work_func_t func) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ init_task_work(&req->task_work, func); ret = io_req_task_work_add(req, &req->task_work); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static int __io_async_wake(struct io_kiocb *req, struct io_poll_iocb *poll, __poll_t mask, task_work_func_t func) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ init_task_work(&req->task_work, func); percpu_ref_get(&req->ctx->refs); ret = io_req_task_work_add(req, &req->task_work); /* PLACEHOLDER: ...
static int __io_async_wake(struct io_kiocb *req, struct io_poll_iocb *poll, __poll_t mask, task_work_func_t func) { init_task_work(&req->task_work, func); + percpu_ref_get(&req->ctx->refs); ret = io_req_task_work_add(req, &req->task_work); }
CVE-2020-36387
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/io_uring.c
io_async_task_func
static void io_async_task_func(struct callback_head *cb) { struct io_kiocb *req = container_of(cb, struct io_kiocb, task_work); struct async_poll *apoll = req->apoll; struct io_ring_ctx *ctx = req->ctx; bool canceled; trace_io_uring_task_run(req->ctx, req->opcode, req->user_data); if (io_poll_re...
static void io_async_task_func(struct callback_head *cb) { struct io_kiocb *req = container_of(cb, struct io_kiocb, task_work); struct async_poll *apoll = req->apoll; struct io_ring_ctx *ctx = req->ctx; bool canceled; trace_io_uring_task_run(req->ctx, req->opcode, req->user_data); if (io_poll_re...
static void io_async_task_func(struct callback_head *cb) { struct io_kiocb *req = container_of(cb, struct io_kiocb, task_work); struct async_poll *apoll = req->apoll; struct io_ring_ctx *ctx = req->ctx; bool canceled = false; trace_io_uring_task_run(req->ctx, req->opcode, req->user_data); if (io...
static void io_async_task_func(struct callback_head *cb) { struct io_kiocb *req = container_of(cb, struct io_kiocb, task_work); struct async_poll *apoll = req->apoll; struct io_ring_ctx *ctx = req->ctx; bool canceled = false; trace_io_uring_task_run(req->ctx, req->opcode, req->user_data); if (io...
static void io_async_task_func(struct callback_head *cb) { struct async_poll *apoll = req->apoll; struct io_ring_ctx *ctx = req->ctx; if (io_poll_rewait(req, &apoll->poll)) { spin_unlock_irq(&ctx->completion_lock); return; } if (canceled) { io_cqring_fill_event(req, -ECANCELE...
static void io_async_task_func(struct callback_head *cb) { struct async_poll *apoll = req->apoll; struct io_ring_ctx *ctx = req->ctx; if (io_poll_rewait(req, &apoll->poll)) { spin_unlock_irq(&ctx->completion_lock); percpu_ref_put(&ctx->refs); return; } if (canceled) { ...
static void io_async_task_func(struct callback_head *cb) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct async_poll *apoll = req->apoll; struct io_ring_ctx *ctx = req->ctx; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (io_poll_rewait(req, &apoll->poll)) { spin_unlock_irq(&ctx->com...
static void io_async_task_func(struct callback_head *cb) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct async_poll *apoll = req->apoll; struct io_ring_ctx *ctx = req->ctx; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (io_poll_rewait(req, &apoll->poll)) { spin_unlock_irq(&ctx->com...
static void io_async_task_func(struct callback_head *cb) { struct async_poll *apoll = req->apoll; struct io_ring_ctx *ctx = req->ctx; if (io_poll_rewait(req, &apoll->poll)) { spin_unlock_irq(&ctx->completion_lock); + percpu_ref_put(&ctx->refs); return; } if (canceled) ...
CVE-2020-36387
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/io_uring.c
io_poll_task_func
static void io_poll_task_func(struct callback_head *cb) { struct io_kiocb *req = container_of(cb, struct io_kiocb, task_work); struct io_kiocb *nxt = NULL; io_poll_task_handler(req, &nxt); if (nxt) { struct io_ring_ctx *ctx = nxt->ctx; mutex_lock(&ctx->uring_lock); __io_queue_sqe...
static void io_poll_task_func(struct callback_head *cb) { struct io_kiocb *req = container_of(cb, struct io_kiocb, task_work); struct io_ring_ctx *ctx = req->ctx; struct io_kiocb *nxt = NULL; io_poll_task_handler(req, &nxt); if (nxt) { struct io_ring_ctx *ctx = nxt->ctx; mutex_lock(&...
static void io_poll_task_func(struct callback_head *cb) { struct io_kiocb *req = container_of(cb, struct io_kiocb, task_work); struct io_kiocb *nxt = NULL; io_poll_task_handler(req, &nxt); if (nxt) { struct io_ring_ctx *ctx = nxt->ctx; mutex_lock(&ctx->uring_lock); __io_queue_sqe...
static void io_poll_task_func(struct callback_head *cb) { struct io_kiocb *req = container_of(cb, struct io_kiocb, task_work); struct io_ring_ctx *ctx = req->ctx; struct io_kiocb *nxt = NULL; io_poll_task_handler(req, &nxt); if (nxt) { struct io_ring_ctx *ctx = nxt->ctx; mutex_lock(&...
static void io_poll_task_func(struct callback_head *cb) { struct io_kiocb *req = container_of(cb, struct io_kiocb, task_work); struct io_kiocb *nxt = NULL; if (nxt) { struct io_ring_ctx *ctx = nxt->ctx; mutex_unlock(&ctx->uring_lock); } }
static void io_poll_task_func(struct callback_head *cb) { struct io_kiocb *req = container_of(cb, struct io_kiocb, task_work); struct io_ring_ctx *ctx = req->ctx; struct io_kiocb *nxt = NULL; if (nxt) { struct io_ring_ctx *ctx = nxt->ctx; mutex_unlock(&ctx->uring_lock); } percpu_...
static void io_poll_task_func(struct callback_head *cb) { struct io_kiocb *req = container_of(cb, struct io_kiocb, task_work); struct io_kiocb *nxt = NULL; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (nxt) { struct io_ring_ctx *ctx = nxt->ctx; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT ...
static void io_poll_task_func(struct callback_head *cb) { struct io_kiocb *req = container_of(cb, struct io_kiocb, task_work); struct io_ring_ctx *ctx = req->ctx; struct io_kiocb *nxt = NULL; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (nxt) { struct io_ring_ctx *ctx = nxt->ctx; /* ...
static void io_poll_task_func(struct callback_head *cb) { struct io_kiocb *req = container_of(cb, struct io_kiocb, task_work); + struct io_ring_ctx *ctx = req->ctx; struct io_kiocb *nxt = NULL; if (nxt) { struct io_ring_ctx *ctx = nxt->ctx; mutex_unlock(&ctx->uring_lock); } + ...
CVE-2020-36516
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
include/net/ip.h
ip_select_ident_segs
static inline void ip_select_ident_segs(struct net *net, struct sk_buff *skb, struct sock *sk, int segs) { struct iphdr *iph = ip_hdr(skb); if ((iph->frag_off & htons(IP_DF)) && !skb->ignore_df) { if (sk && inet_sk(sk)->inet_daddr) { iph->id = htons(inet_sk(sk)->inet_id); inet_sk...
static inline void ip_select_ident_segs(struct net *net, struct sk_buff *skb, struct sock *sk, int segs) { struct iphdr *iph = ip_hdr(skb); if (sk && inet_sk(sk)->inet_daddr) { iph->id = htons(inet_sk(sk)->inet_id); inet_sk(sk)->inet_id += segs; return; } if ((iph->frag_off & hto...
static inline void ip_select_ident_segs(struct net *net, struct sk_buff *skb, struct sock *sk, int segs) { struct iphdr *iph = ip_hdr(skb); if ((iph->frag_off & htons(IP_DF)) && !skb->ignore_df) { if (sk && inet_sk(sk)->inet_daddr) { iph->id = htons(inet_sk(sk)->inet_id); inet_sk...
static inline void ip_select_ident_segs(struct net *net, struct sk_buff *skb, struct sock *sk, int segs) { struct iphdr *iph = ip_hdr(skb); if (sk && inet_sk(sk)->inet_daddr) { iph->id = htons(inet_sk(sk)->inet_id); inet_sk(sk)->inet_id += segs; return; } if ((iph->frag_off & hto...
static inline void ip_select_ident_segs(struct net *net, struct sk_buff *skb, struct sock *sk, int segs) { struct iphdr *iph = ip_hdr(skb); if ((iph->frag_off & htons(IP_DF)) && !skb->ignore_df) { if (sk && inet_sk(sk)->inet_daddr) { inet_sk(sk)->inet_id += segs; } else { ...
static inline void ip_select_ident_segs(struct net *net, struct sk_buff *skb, struct sock *sk, int segs) { struct iphdr *iph = ip_hdr(skb); if (sk && inet_sk(sk)->inet_daddr) { inet_sk(sk)->inet_id += segs; return; } if ((iph->frag_off & htons(IP_DF)) && !skb->ignore_df) { iph->i...
static inline void ip_select_ident_segs(struct net *net, struct sk_buff *skb, struct sock *sk, int segs) { struct iphdr *iph = ip_hdr(skb); if ((iph->frag_off & htons(IP_DF)) && !skb->ignore_df) { if (sk && inet_sk(sk)->inet_daddr) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ inet_sk(...
static inline void ip_select_ident_segs(struct net *net, struct sk_buff *skb, struct sock *sk, int segs) { struct iphdr *iph = ip_hdr(skb); if (sk && inet_sk(sk)->inet_daddr) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ inet_sk(sk)->inet_id += segs; return; } if ((iph->frag_off & ...
static inline void ip_select_ident_segs(struct net *net, struct sk_buff *skb, struct sock *sk, int segs) { struct iphdr *iph = ip_hdr(skb); + if (sk && inet_sk(sk)->inet_daddr) { + inet_sk(sk)->inet_id += segs; + return; + } if ((iph->frag_off & htons(IP_DF)) && !skb->ignore_df) { - ...
CVE-2020-36557
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/tty/vt/vt.c
con_install
static int con_install(struct tty_driver *driver, struct tty_struct *tty) { unsigned int currcons = tty->index; struct vc_data *vc; int ret; console_lock(); ret = vc_allocate(currcons); if (ret) { goto unlock; } vc = vc_cons[currcons].d; if (vc->port.tty) { ret = -ERE...
static int con_install(struct tty_driver *driver, struct tty_struct *tty) { unsigned int currcons = tty->index; struct vc_data *vc; int ret; console_lock(); ret = vc_allocate(currcons); if (ret) { goto unlock; } vc = vc_cons[currcons].d; if (vc->port.tty) { ret = -ERE...
static int con_install(struct tty_driver *driver, struct tty_struct *tty) { unsigned int currcons = tty->index; struct vc_data *vc; int ret; console_lock(); ret = vc_allocate(currcons); if (ret) { goto unlock; } vc = vc_cons[currcons].d; if (vc->port.tty) { ret = -ERE...
static int con_install(struct tty_driver *driver, struct tty_struct *tty) { unsigned int currcons = tty->index; struct vc_data *vc; int ret; console_lock(); ret = vc_allocate(currcons); if (ret) { goto unlock; } vc = vc_cons[currcons].d; if (vc->port.tty) { ret = -ERE...
static int con_install(struct tty_driver *driver, struct tty_struct *tty) { vc = vc_cons[currcons].d; vc->port.tty = tty; }
static int con_install(struct tty_driver *driver, struct tty_struct *tty) { vc = vc_cons[currcons].d; vc->port.tty = tty; tty_port_get(&vc->port); }
static int con_install(struct tty_driver *driver, struct tty_struct *tty) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ vc = vc_cons[currcons].d; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ vc->port.tty = tty; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static int con_install(struct tty_driver *driver, struct tty_struct *tty) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ vc = vc_cons[currcons].d; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ vc->port.tty = tty; tty_port_get(&vc->port); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static int con_install(struct tty_driver *driver, struct tty_struct *tty) { vc = vc_cons[currcons].d; vc->port.tty = tty; + tty_port_get(&vc->port); }
CVE-2020-36557
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/tty/vt/vt.c
vc_allocate
int vc_allocate(unsigned int currcons) { struct vt_notifier_param param; struct vc_data *vc; WARN_CONSOLE_UNLOCKED(); if (currcons >= MAX_NR_CONSOLES) { return -ENXIO; } if (vc_cons[currcons].d) { return 0; } param.vc = vc = kzalloc(sizeof(struct vc_data), GFP_KERNEL); ...
int vc_allocate(unsigned int currcons) { struct vt_notifier_param param; struct vc_data *vc; WARN_CONSOLE_UNLOCKED(); if (currcons >= MAX_NR_CONSOLES) { return -ENXIO; } if (vc_cons[currcons].d) { return 0; } param.vc = vc = kzalloc(sizeof(struct vc_data), GFP_KERNEL); ...
int vc_allocate(unsigned int currcons) { WARN_CONSOLE_UNLOCKED(); if (currcons >= MAX_NR_CONSOLES) { return -ENXIO; } if (!vc_cons[currcons].d) { struct vc_data *vc; struct vt_notifier_param param; if (currcons >= MAX_NR_USER_CONSOLES && !capable(CAP_SYS_RESOURCE)) { ...
int vc_allocate(unsigned int currcons) { WARN_CONSOLE_UNLOCKED(); if (currcons >= MAX_NR_CONSOLES) { return -ENXIO; } if (!vc_cons[currcons].d) { struct vc_data *vc; struct vt_notifier_param param; if (currcons >= MAX_NR_USER_CONSOLES && !capable(CAP_SYS_RESOURCE)) { ...
int vc_allocate(unsigned int currcons) { tty_port_init(&vc->port); IT_WORK(&vc_cons[currcons].SAK_work, vc_SAK); }
int vc_allocate(unsigned int currcons) { tty_port_init(&vc->port); vc->port.ops = &vc_port_ops; IT_WORK(&vc_cons[currcons].SAK_work, vc_SAK); }
int vc_allocate(unsigned int currcons) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!vc_cons[currcons].d) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ tty_port_init(&vc->port); IT_WORK(&vc_cons[currcons].SAK_work, vc_SAK); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } ...
int vc_allocate(unsigned int currcons) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!vc_cons[currcons].d) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ tty_port_init(&vc->port); vc->port.ops = &vc_port_ops; IT_WORK(&vc_cons[currcons].SAK_work, vc_SAK); /* PLACEHOLDER: DO...
int vc_allocate(unsigned int currcons) { tty_port_init(&vc->port); + vc->port.ops = &vc_port_ops; IT_WORK(&vc_cons[currcons].SAK_work, vc_SAK); }
CVE-2020-36557
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/tty/vt/vt_ioctl.c
vt_disallocate
static int vt_disallocate(unsigned int vc_num) { struct vc_data *vc = NULL; int ret = 0; console_lock(); if (vt_busy(vc_num)) { ret = -EBUSY; } else if (vc_num) { vc = vc_deallocate(vc_num); } console_unlock(); if (vc && vc_num >= M_NR_CONSOLES) { tty_port_destroy...
static int vt_disallocate(unsigned int vc_num) { struct vc_data *vc = NULL; int ret = 0; console_lock(); if (vt_busy(vc_num)) { ret = -EBUSY; } else if (vc_num) { vc = vc_deallocate(vc_num); } console_unlock(); if (vc && vc_num >= M_NR_CONSOLES) { tty_port_put(&vc...
static int vt_disallocate(unsigned int vc_num) { struct vc_data *vc = NULL; int ret = 0; console_lock(); if (vt_busy(vc_num)) { ret = -EBUSY; } else if (vc_num) { vc = vc_deallocate(vc_num); } console_unlock(); if (vc && vc_num >= M_NR_CONSOLES) { tty_port_destroy...
static int vt_disallocate(unsigned int vc_num) { struct vc_data *vc = NULL; int ret = 0; console_lock(); if (vt_busy(vc_num)) { ret = -EBUSY; } else if (vc_num) { vc = vc_deallocate(vc_num); } console_unlock(); if (vc && vc_num >= M_NR_CONSOLES) { tty_port_put(&vc...
static int vt_disallocate(unsigned int vc_num) { struct vc_data *vc = NULL; if (vt_busy(vc_num)) { } else if (vc_num) { vc = vc_deallocate(vc_num); } if (vc && vc_num >= M_NR_CONSOLES) { tty_port_destroy(&vc->port); kfree(vc); } return ret; }
static int vt_disallocate(unsigned int vc_num) { struct vc_data *vc = NULL; if (vt_busy(vc_num)) { } else if (vc_num) { vc = vc_deallocate(vc_num); } if (vc && vc_num >= M_NR_CONSOLES) { tty_port_put(&vc->port); } return ret; }
static int vt_disallocate(unsigned int vc_num) { struct vc_data *vc = NULL; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (vt_busy(vc_num)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } else if (vc_num) { vc = vc_deallocate(vc_num); } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT...
static int vt_disallocate(unsigned int vc_num) { struct vc_data *vc = NULL; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (vt_busy(vc_num)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } else if (vc_num) { vc = vc_deallocate(vc_num); } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT...
static int vt_disallocate(unsigned int vc_num) { struct vc_data *vc = NULL; if (vt_busy(vc_num)) { } else if (vc_num) { vc = vc_deallocate(vc_num); } if (vc && vc_num >= M_NR_CONSOLES) { - tty_port_destroy(&vc->port); - kfree(vc); + tty_port_put(&vc->port); }...
CVE-2020-36557
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/tty/vt/vt_ioctl.c
vt_disallocate_all
static void vt_disallocate_all(void) { struct vc_data *vc[MAX_NR_CONSOLES]; int i; console_lock(); for (i = 1; i < MAX_NR_CONSOLES; i++) if (!vt_busy(i)) { vc[i] = vc_deallocate(i); } else { vc[i] = NULL; } console_unlock(); for (i = 1; i < MAX_NR_...
static void vt_disallocate_all(void) { struct vc_data *vc[MAX_NR_CONSOLES]; int i; console_lock(); for (i = 1; i < MAX_NR_CONSOLES; i++) if (!vt_busy(i)) { vc[i] = vc_deallocate(i); } else { vc[i] = NULL; } console_unlock(); for (i = 1; i < MAX_NR_...
static void vt_disallocate_all(void) { struct vc_data *vc[MAX_NR_CONSOLES]; int i; console_lock(); for (i = 1; i < MAX_NR_CONSOLES; i++) if (!vt_busy(i)) { vc[i] = vc_deallocate(i); } else { vc[i] = NULL; } console_unlock(); for (i = 1; i < MAX_NR_...
static void vt_disallocate_all(void) { struct vc_data *vc[MAX_NR_CONSOLES]; int i; console_lock(); for (i = 1; i < MAX_NR_CONSOLES; i++) if (!vt_busy(i)) { vc[i] = vc_deallocate(i); } else { vc[i] = NULL; } console_unlock(); for (i = 1; i < MAX_NR_...
static void vt_disallocate_all(void) { for (i = 1; i < MAX_NR_CONSOLES; i++) if (!vt_busy(i)) { vc[i] = vc_deallocate(i); } else { vc[i] = NULL; } for (i = 1; i < MAX_NR_CONSOLES; i++) { if (vc[i] && i >= M_NR_CONSOLES) { tty_port_destroy(&vc[i...
static void vt_disallocate_all(void) { for (i = 1; i < MAX_NR_CONSOLES; i++) if (!vt_busy(i)) { vc[i] = vc_deallocate(i); } else { vc[i] = NULL; } for (i = 1; i < MAX_NR_CONSOLES; i++) { if (vc[i] && i >= M_NR_CONSOLES) { tty_port_put(&vc[i]->p...
static void vt_disallocate_all(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (i = 1; i < MAX_NR_CONSOLES; i++) if (!vt_busy(i)) { vc[i] = vc_deallocate(i); } else { vc[i] = NULL; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (i = 1; i < M...
static void vt_disallocate_all(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (i = 1; i < MAX_NR_CONSOLES; i++) if (!vt_busy(i)) { vc[i] = vc_deallocate(i); } else { vc[i] = NULL; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (i = 1; i < M...
static void vt_disallocate_all(void) { for (i = 1; i < MAX_NR_CONSOLES; i++) if (!vt_busy(i)) { vc[i] = vc_deallocate(i); } else { vc[i] = NULL; } for (i = 1; i < MAX_NR_CONSOLES; i++) { if (vc[i] && i >= M_NR_CONSOLES) { - tty_port_des...
CVE-2020-36558
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/tty/vt/vt_ioctl.c
vt_ioctl
int vt_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) { struct vc_data *vc = tty->driver_data; struct console_font_op op; unsigned int console; unsigned char ucval; unsigned int uival; void *up = (void *)arg; int i, perm; int ret = 0; console = vc->vc_num; if ...
int vt_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) { struct vc_data *vc = tty->driver_data; struct console_font_op op; unsigned int console; unsigned char ucval; unsigned int uival; void *up = (void *)arg; int i, perm; int ret = 0; console = vc->vc_num; if ...
int vt_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) { struct vc_data *vc = tty->driver_data; struct console_font_op op; unsigned int console; unsigned char ucval; unsigned int uival; void *up = (void *)arg; int i, perm; int ret = 0; console = vc->vc_num; if ...
int vt_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) { struct vc_data *vc = tty->driver_data; struct console_font_op op; unsigned int console; unsigned char ucval; unsigned int uival; void *up = (void *)arg; int i, perm; int ret = 0; console = vc->vc_num; if ...
int vt_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) { struct vc_data *vc = tty->driver_data; switch (cmd) { case VT_RESIZEX: { if (!v.v_vlin) { v.v_vlin = vc->vc_scan_lines; } if (v.v_clin) { int rows = v.v_vlin/v.v_clin; if (...
int vt_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) { struct vc_data *vc = tty->driver_data; switch (cmd) { case VT_RESIZEX: { if (!v.v_vlin) { v.v_vlin = vc->vc_scan_lines; } if (v.v_clin) { int rows = v.v_vlin/v.v_clin; if (...
int vt_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) { struct vc_data *vc = tty->driver_data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ switch (cmd) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ case VT_RESIZEX: { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ i...
int vt_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) { struct vc_data *vc = tty->driver_data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ switch (cmd) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ case VT_RESIZEX: { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ i...
int vt_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) { struct vc_data *vc = tty->driver_data; switch (cmd) { case VT_RESIZEX: { if (!v.v_vlin) { v.v_vlin = vc->vc_scan_lines; } if (v.v_clin) { int rows = v.v_vlin/v.v_clin; ...
CVE-2020-36694
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv4/netfilter/arp_tables.c
alloc_counters
static struct xt_counters *alloc_counters(const struct xt_table *table) { unsigned int countersize; struct xt_counters *counters; const struct xt_table_info *private = table->private; countersize = sizeof(struct xt_counters) * private->number; counters = vzalloc(countersize); if (counters == NUL...
static struct xt_counters *alloc_counters(const struct xt_table *table) { unsigned int countersize; struct xt_counters *counters; const struct xt_table_info *private = xt_table_get_private_protected(table); countersize = sizeof(struct xt_counters) * private->number; counters = vzalloc(countersize); ...
static struct xt_counters *alloc_counters(const struct xt_table *table) { unsigned int countersize; struct xt_counters *counters; const struct xt_table_info *private = table->private; countersize = sizeof(struct xt_counters) * private->number; counters = vzalloc(countersize); if (counters == NUL...
static struct xt_counters *alloc_counters(const struct xt_table *table) { unsigned int countersize; struct xt_counters *counters; const struct xt_table_info *private = xt_table_get_private_protected(table); countersize = sizeof(struct xt_counters) * private->number; counters = vzalloc(countersize); ...
static struct xt_counters *alloc_counters(const struct xt_table *table) { struct xt_counters *counters; const struct xt_table_info *private = table->private; countersize = sizeof(struct xt_counters) * private->number; counters = vzalloc(countersize); if (counters == NULL) { return ERR_PTR(-E...
static struct xt_counters *alloc_counters(const struct xt_table *table) { struct xt_counters *counters; const struct xt_table_info *private = xt_table_get_private_protected(table); countersize = sizeof(struct xt_counters) * private->number; counters = vzalloc(countersize); if (counters == NULL) { ...
static struct xt_counters *alloc_counters(const struct xt_table *table) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct xt_counters *counters; const struct xt_table_info *private = table->private; countersize = sizeof(struct xt_counters) * private->number; counters = vzalloc(countersize); ...
static struct xt_counters *alloc_counters(const struct xt_table *table) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct xt_counters *counters; const struct xt_table_info *private = xt_table_get_private_protected(table); countersize = sizeof(struct xt_counters) * private->number; counters = vz...
static struct xt_counters *alloc_counters(const struct xt_table *table) { struct xt_counters *counters; - const struct xt_table_info *private = table->private; + const struct xt_table_info *private = xt_table_get_private_protected(table); countersize = sizeof(struct xt_counters) * private->number; ...
CVE-2020-36694
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv4/netfilter/arp_tables.c
arpt_do_table
unsigned int arpt_do_table(struct sk_buff *skb, const struct nf_hook_state *state, struct xt_table *table) { unsigned int hook = state->hook; static const char nulldevname[IFNAMSIZ] __attribute__((aligned(sizeof(long)))); unsigned int verdict = NF_DROP; const struct arphdr *arp; struct arpt_entry *e...
unsigned int arpt_do_table(struct sk_buff *skb, const struct nf_hook_state *state, struct xt_table *table) { unsigned int hook = state->hook; static const char nulldevname[IFNAMSIZ] __attribute__((aligned(sizeof(long)))); unsigned int verdict = NF_DROP; const struct arphdr *arp; struct arpt_entry *e...
unsigned int arpt_do_table(struct sk_buff *skb, const struct nf_hook_state *state, struct xt_table *table) { unsigned int hook = state->hook; static const char nulldevname[IFNAMSIZ] __attribute__((aligned(sizeof(long)))); unsigned int verdict = NF_DROP; const struct arphdr *arp; struct arpt_entry *e...
unsigned int arpt_do_table(struct sk_buff *skb, const struct nf_hook_state *state, struct xt_table *table) { unsigned int hook = state->hook; static const char nulldevname[IFNAMSIZ] __attribute__((aligned(sizeof(long)))); unsigned int verdict = NF_DROP; const struct arphdr *arp; struct arpt_entry *e...
unsigned int arpt_do_table(struct sk_buff *skb, const struct nf_hook_state *state, struct xt_table *table) { addend = xt_write_recseq_begin(); private = READ_ONCE(table->private); cpu = smp_processor_id(); table_base = private->entries; e = get_entry(table_base, private->hook_entry[hook]); do { ...
unsigned int arpt_do_table(struct sk_buff *skb, const struct nf_hook_state *state, struct xt_table *table) { addend = xt_write_recseq_begin(); private = rcu_access_pointer(table->private); cpu = smp_processor_id(); table_base = private->entries; e = get_entry(table_base, private->hook_entry[hook]); ...
unsigned int arpt_do_table(struct sk_buff *skb, const struct nf_hook_state *state, struct xt_table *table) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ addend = xt_write_recseq_begin(); private = READ_ONCE(table->private); cpu = smp_processor_id(); table_base = private->entries; /* PLACEHOLDE...
unsigned int arpt_do_table(struct sk_buff *skb, const struct nf_hook_state *state, struct xt_table *table) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ addend = xt_write_recseq_begin(); private = rcu_access_pointer(table->private); cpu = smp_processor_id(); table_base = private->entries; /* P...
unsigned int arpt_do_table(struct sk_buff *skb, const struct nf_hook_state *state, struct xt_table *table) { addend = xt_write_recseq_begin(); - private = READ_ONCE(table->private); + private = rcu_access_pointer(table->private); cpu = smp_processor_id(); table_base = private->entries; e = ge...
CVE-2020-36694
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv4/netfilter/arp_tables.c
compat_copy_entries_to_user
static int compat_copy_entries_to_user(unsigned int total_size, struct xt_table *table, void *userptr) { struct xt_counters *counters; const struct xt_table_info *private = table->private; void *pos; unsigned int size; int ret = 0; unsigned int i = 0; struct arpt_entry *iter; counters = ...
static int compat_copy_entries_to_user(unsigned int total_size, struct xt_table *table, void *userptr) { struct xt_counters *counters; const struct xt_table_info *private = xt_table_get_private_protected(table); void *pos; unsigned int size; int ret = 0; unsigned int i = 0; struct arpt_entry...
static int compat_copy_entries_to_user(unsigned int total_size, struct xt_table *table, void *userptr) { struct xt_counters *counters; const struct xt_table_info *private = table->private; void *pos; unsigned int size; int ret = 0; unsigned int i = 0; struct arpt_entry *iter; counters = ...
static int compat_copy_entries_to_user(unsigned int total_size, struct xt_table *table, void *userptr) { struct xt_counters *counters; const struct xt_table_info *private = xt_table_get_private_protected(table); void *pos; unsigned int size; int ret = 0; unsigned int i = 0; struct arpt_entry...
static int compat_copy_entries_to_user(unsigned int total_size, struct xt_table *table, void *userptr) { struct xt_counters *counters; const struct xt_table_info *private = table->private; void *pos; int ret = 0; counters = alloc_counters(table); if (IS_ERR(counters)) { return PTR_ERR(co...
static int compat_copy_entries_to_user(unsigned int total_size, struct xt_table *table, void *userptr) { struct xt_counters *counters; const struct xt_table_info *private = xt_table_get_private_protected(table); void *pos; int ret = 0; counters = alloc_counters(table); if (IS_ERR(counters)) { ...
static int compat_copy_entries_to_user(unsigned int total_size, struct xt_table *table, void *userptr) { struct xt_counters *counters; const struct xt_table_info *private = table->private; void *pos; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int ret = 0; /* PLACEHOLDER: DO NOT DELETE THIS CO...
static int compat_copy_entries_to_user(unsigned int total_size, struct xt_table *table, void *userptr) { struct xt_counters *counters; const struct xt_table_info *private = xt_table_get_private_protected(table); void *pos; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int ret = 0; /* PLACEHOLDER...
static int compat_copy_entries_to_user(unsigned int total_size, struct xt_table *table, void *userptr) { struct xt_counters *counters; - const struct xt_table_info *private = table->private; + const struct xt_table_info *private = xt_table_get_private_protected(table); void *pos; int ret = 0; ...
CVE-2020-36694
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv4/netfilter/arp_tables.c
copy_entries_to_user
static int copy_entries_to_user(unsigned int total_size, const struct xt_table *table, void *userptr) { unsigned int off, num; const struct arpt_entry *e; struct xt_counters *counters; struct xt_table_info *private = table->private; int ret = 0; void *loc_cpu_entry; counters = alloc_counters...
static int copy_entries_to_user(unsigned int total_size, const struct xt_table *table, void *userptr) { unsigned int off, num; const struct arpt_entry *e; struct xt_counters *counters; struct xt_table_info *private = xt_table_get_private_protected(table); int ret = 0; void *loc_cpu_entry; co...
static int copy_entries_to_user(unsigned int total_size, const struct xt_table *table, void *userptr) { unsigned int off, num; const struct arpt_entry *e; struct xt_counters *counters; struct xt_table_info *private = table->private; int ret = 0; void *loc_cpu_entry; counters = alloc_counters...
static int copy_entries_to_user(unsigned int total_size, const struct xt_table *table, void *userptr) { unsigned int off, num; const struct arpt_entry *e; struct xt_counters *counters; struct xt_table_info *private = xt_table_get_private_protected(table); int ret = 0; void *loc_cpu_entry; co...
static int copy_entries_to_user(unsigned int total_size, const struct xt_table *table, void *userptr) { struct xt_counters *counters; struct xt_table_info *private = table->private; int ret = 0; counters = alloc_counters(table); if (IS_ERR(counters)) { return PTR_ERR(counters); } loc...
static int copy_entries_to_user(unsigned int total_size, const struct xt_table *table, void *userptr) { struct xt_counters *counters; struct xt_table_info *private = xt_table_get_private_protected(table); int ret = 0; counters = alloc_counters(table); if (IS_ERR(counters)) { return PTR_ERR(c...
static int copy_entries_to_user(unsigned int total_size, const struct xt_table *table, void *userptr) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct xt_counters *counters; struct xt_table_info *private = table->private; int ret = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ counters ...
static int copy_entries_to_user(unsigned int total_size, const struct xt_table *table, void *userptr) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct xt_counters *counters; struct xt_table_info *private = xt_table_get_private_protected(table); int ret = 0; /* PLACEHOLDER: DO NOT DELETE THIS C...
static int copy_entries_to_user(unsigned int total_size, const struct xt_table *table, void *userptr) { struct xt_counters *counters; - struct xt_table_info *private = table->private; + struct xt_table_info *private = xt_table_get_private_protected(table); int ret = 0; counters = alloc_counters(ta...
CVE-2020-36694
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv4/netfilter/arp_tables.c
do_add_counters
static int do_add_counters(struct net *net, sockptr_t arg, unsigned int len) { unsigned int i; struct xt_counters_info tmp; struct xt_counters *paddc; struct xt_table *t; const struct xt_table_info *private; int ret = 0; struct arpt_entry *iter; unsigned int addend; paddc = xt_copy_c...
static int do_add_counters(struct net *net, sockptr_t arg, unsigned int len) { unsigned int i; struct xt_counters_info tmp; struct xt_counters *paddc; struct xt_table *t; const struct xt_table_info *private; int ret = 0; struct arpt_entry *iter; unsigned int addend; paddc = xt_copy_c...
static int do_add_counters(struct net *net, const void *user, unsigned int len, int compat) { unsigned int i; struct xt_counters_info tmp; struct xt_counters *paddc; struct xt_table *t; const struct xt_table_info *private; int ret = 0; struct arpt_entry *iter; unsigned int addend; pa...
static int do_add_counters(struct net *net, const void *user, unsigned int len, int compat) { unsigned int i; struct xt_counters_info tmp; struct xt_counters *paddc; struct xt_table *t; const struct xt_table_info *private; int ret = 0; struct arpt_entry *iter; unsigned int addend; pa...
static int do_add_counters(struct net *net, sockptr_t arg, unsigned int len) { t = xt_find_table_lock(net, NFPROTO_ARP, tmp.name); if (IS_ERR(t)) { goto free; } local_bh_disable(); private = t->private; if (private->number != tmp.num_counters) { goto unlock_up_free; } xt_...
static int do_add_counters(struct net *net, sockptr_t arg, unsigned int len) { t = xt_find_table_lock(net, NFPROTO_ARP, tmp.name); if (IS_ERR(t)) { goto free; } local_bh_disable(); private = xt_table_get_private_protected(t); if (private->number != tmp.num_counters) { goto unlock...
static int do_add_counters(struct net *net, const void *user, unsigned int len, int compat) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ t = xt_find_table_lock(net, NFPROTO_ARP, tmp.name); if (IS_ERR(t)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ goto free; } local_bh_disable(); ...
static int do_add_counters(struct net *net, const void *user, unsigned int len, int compat) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ t = xt_find_table_lock(net, NFPROTO_ARP, tmp.name); if (IS_ERR(t)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ goto free; } local_bh_disable(); ...
static int do_add_counters(struct net *net, sockptr_t arg, unsigned int len) { t = xt_find_table_lock(net, NFPROTO_ARP, tmp.name); if (IS_ERR(t)) { goto free; } local_bh_disable(); - private = t->private; + private = xt_table_get_private_protected(t); if (private->number != tmp....
CVE-2020-36694
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv4/netfilter/arp_tables.c
get_entries
static int get_entries(struct net *net, struct arpt_get_entries *uptr, const int *len) { int ret; struct arpt_get_entries get; struct xt_table *t; if (*len < sizeof(get)) { return -EVAL; } if (copy_from_user(&get, uptr, sizeof(get)) != 0) { return -EFAULT; } if (*len != s...
static int get_entries(struct net *net, struct arpt_get_entries *uptr, const int *len) { int ret; struct arpt_get_entries get; struct xt_table *t; if (*len < sizeof(get)) { return -EVAL; } if (copy_from_user(&get, uptr, sizeof(get)) != 0) { return -EFAULT; } if (*len != s...
static int get_entries(struct net *net, struct arpt_get_entries *uptr, const int *len) { int ret; struct arpt_get_entries get; struct xt_table *t; if (*len < sizeof(get)) { return -EVAL; } if (copy_from_user(&get, uptr, sizeof(get)) != 0) { return -EFAULT; } if (*len != s...
static int get_entries(struct net *net, struct arpt_get_entries *uptr, const int *len) { int ret; struct arpt_get_entries get; struct xt_table *t; if (*len < sizeof(get)) { return -EVAL; } if (copy_from_user(&get, uptr, sizeof(get)) != 0) { return -EFAULT; } if (*len != s...
static int get_entries(struct net *net, struct arpt_get_entries *uptr, const int *len) { t = xt_find_table_lock(net, NFPROTO_ARP, get.name); if (!IS_ERR(t)) { const struct xt_table_info *private = t->private; if (get.size == private->size) { ret = copy_entries_to_user(private->size, ...
static int get_entries(struct net *net, struct arpt_get_entries *uptr, const int *len) { t = xt_find_table_lock(net, NFPROTO_ARP, get.name); if (!IS_ERR(t)) { const struct xt_table_info *private = xt_table_get_private_protected(t); if (get.size == private->size) { ret = copy_entries_...
static int get_entries(struct net *net, struct arpt_get_entries *uptr, const int *len) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ t = xt_find_table_lock(net, NFPROTO_ARP, get.name); if (!IS_ERR(t)) { const struct xt_table_info *private = t->private; if (get.size == private->size) { ...
static int get_entries(struct net *net, struct arpt_get_entries *uptr, const int *len) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ t = xt_find_table_lock(net, NFPROTO_ARP, get.name); if (!IS_ERR(t)) { const struct xt_table_info *private = xt_table_get_private_protected(t); if (get.size =...
static int get_entries(struct net *net, struct arpt_get_entries *uptr, const int *len) { t = xt_find_table_lock(net, NFPROTO_ARP, get.name); if (!IS_ERR(t)) { - const struct xt_table_info *private = t->private; + const struct xt_table_info *private = xt_table_get_private_protected(t); ...
CVE-2020-36694
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv4/netfilter/arp_tables.c
get_info
static int get_info(struct net *net, void *user, const int *len) { char name[XT_TABLE_MAXNAMELEN]; struct xt_table *t; int ret; if (*len != sizeof(struct arpt_getinfo)) { return -EVAL; } if (copy_from_user(name, user, sizeof(name)) != 0) { return -EFAULT; } name[XT_TABLE_...
static int get_info(struct net *net, void *user, const int *len) { char name[XT_TABLE_MAXNAMELEN]; struct xt_table *t; int ret; if (*len != sizeof(struct arpt_getinfo)) { return -EVAL; } if (copy_from_user(name, user, sizeof(name)) != 0) { return -EFAULT; } name[XT_TABLE_...
static int get_info(struct net *net, void *user, const int *len, int compat) { char name[XT_TABLE_MAXNAMELEN]; struct xt_table *t; int ret; if (*len != sizeof(struct arpt_getinfo)) { return -EVAL; } if (copy_from_user(name, user, sizeof(name)) != 0) { return -EFAULT; } na...
static int get_info(struct net *net, void *user, const int *len, int compat) { char name[XT_TABLE_MAXNAMELEN]; struct xt_table *t; int ret; if (*len != sizeof(struct arpt_getinfo)) { return -EVAL; } if (copy_from_user(name, user, sizeof(name)) != 0) { return -EFAULT; } na...
static int get_info(struct net *net, void *user, const int *len) { if (copy_from_user(name, user, sizeof(name)) != 0) { return -EFAULT; } if (in_compat_syscall()) { xt_compat_lock(NFPROTO_ARP); } t = xt_request_find_table_lock(net, NFPROTO_ARP, name); if (!IS_ERR(t)) { st...
static int get_info(struct net *net, void *user, const int *len) { if (copy_from_user(name, user, sizeof(name)) != 0) { return -EFAULT; } if (in_compat_syscall()) { xt_compat_lock(NFPROTO_ARP); } t = xt_request_find_table_lock(net, NFPROTO_ARP, name); if (!IS_ERR(t)) { st...
static int get_info(struct net *net, void *user, const int *len, int compat) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (copy_from_user(name, user, sizeof(name)) != 0) { return -EFAULT; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (compat) { xt_compat_lock(NFPROTO_ARP);...
static int get_info(struct net *net, void *user, const int *len, int compat) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (copy_from_user(name, user, sizeof(name)) != 0) { return -EFAULT; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (compat) { xt_compat_lock(NFPROTO_ARP);...
static int get_info(struct net *net, void *user, const int *len) { if (copy_from_user(name, user, sizeof(name)) != 0) { return -EFAULT; } if (in_compat_syscall()) { xt_compat_lock(NFPROTO_ARP); } t = xt_request_find_table_lock(net, NFPROTO_ARP, name); if (!IS_ERR(t)) { ...
CVE-2020-36694
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv4/netfilter/ip_tables.c
alloc_counters
static struct xt_counters *alloc_counters(const struct xt_table *table) { unsigned int countersize; struct xt_counters *counters; const struct xt_table_info *private = table->private; countersize = sizeof(struct xt_counters) * private->number; counters = vzalloc(countersize); if (counters == NUL...
static struct xt_counters *alloc_counters(const struct xt_table *table) { unsigned int countersize; struct xt_counters *counters; const struct xt_table_info *private = xt_table_get_private_protected(table); countersize = sizeof(struct xt_counters) * private->number; counters = vzalloc(countersize); ...
static struct xt_counters *alloc_counters(const struct xt_table *table) { unsigned int countersize; struct xt_counters *counters; const struct xt_table_info *private = table->private; countersize = sizeof(struct xt_counters) * private->number; counters = vzalloc(countersize); if (counters == NUL...
static struct xt_counters *alloc_counters(const struct xt_table *table) { unsigned int countersize; struct xt_counters *counters; const struct xt_table_info *private = xt_table_get_private_protected(table); countersize = sizeof(struct xt_counters) * private->number; counters = vzalloc(countersize); ...
static struct xt_counters *alloc_counters(const struct xt_table *table) { struct xt_counters *counters; const struct xt_table_info *private = table->private; countersize = sizeof(struct xt_counters) * private->number; counters = vzalloc(countersize); if (counters == NULL) { return ERR_PTR(-E...
static struct xt_counters *alloc_counters(const struct xt_table *table) { struct xt_counters *counters; const struct xt_table_info *private = xt_table_get_private_protected(table); countersize = sizeof(struct xt_counters) * private->number; counters = vzalloc(countersize); if (counters == NULL) { ...
static struct xt_counters *alloc_counters(const struct xt_table *table) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct xt_counters *counters; const struct xt_table_info *private = table->private; countersize = sizeof(struct xt_counters) * private->number; counters = vzalloc(countersize); ...
static struct xt_counters *alloc_counters(const struct xt_table *table) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct xt_counters *counters; const struct xt_table_info *private = xt_table_get_private_protected(table); countersize = sizeof(struct xt_counters) * private->number; counters = vz...
static struct xt_counters *alloc_counters(const struct xt_table *table) { struct xt_counters *counters; - const struct xt_table_info *private = table->private; + const struct xt_table_info *private = xt_table_get_private_protected(table); countersize = sizeof(struct xt_counters) * private->number; ...
CVE-2020-36694
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv4/netfilter/ip_tables.c
compat_copy_entries_to_user
static int compat_copy_entries_to_user(unsigned int total_size, struct xt_table *table, void *userptr) { struct xt_counters *counters; const struct xt_table_info *private = table->private; void *pos; unsigned int size; int ret = 0; unsigned int i = 0; struct ipt_entry *iter; counters = a...
static int compat_copy_entries_to_user(unsigned int total_size, struct xt_table *table, void *userptr) { struct xt_counters *counters; const struct xt_table_info *private = xt_table_get_private_protected(table); void *pos; unsigned int size; int ret = 0; unsigned int i = 0; struct ipt_entry ...
static int compat_copy_entries_to_user(unsigned int total_size, struct xt_table *table, void *userptr) { struct xt_counters *counters; const struct xt_table_info *private = table->private; void *pos; unsigned int size; int ret = 0; unsigned int i = 0; struct ipt_entry *iter; counters = a...
static int compat_copy_entries_to_user(unsigned int total_size, struct xt_table *table, void *userptr) { struct xt_counters *counters; const struct xt_table_info *private = xt_table_get_private_protected(table); void *pos; unsigned int size; int ret = 0; unsigned int i = 0; struct ipt_entry ...
static int compat_copy_entries_to_user(unsigned int total_size, struct xt_table *table, void *userptr) { struct xt_counters *counters; const struct xt_table_info *private = table->private; void *pos; int ret = 0; counters = alloc_counters(table); if (IS_ERR(counters)) { return PTR_ERR(co...
static int compat_copy_entries_to_user(unsigned int total_size, struct xt_table *table, void *userptr) { struct xt_counters *counters; const struct xt_table_info *private = xt_table_get_private_protected(table); void *pos; int ret = 0; counters = alloc_counters(table); if (IS_ERR(counters)) { ...
static int compat_copy_entries_to_user(unsigned int total_size, struct xt_table *table, void *userptr) { struct xt_counters *counters; const struct xt_table_info *private = table->private; void *pos; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int ret = 0; /* PLACEHOLDER: DO NOT DELETE THIS CO...
static int compat_copy_entries_to_user(unsigned int total_size, struct xt_table *table, void *userptr) { struct xt_counters *counters; const struct xt_table_info *private = xt_table_get_private_protected(table); void *pos; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int ret = 0; /* PLACEHOLDER...
static int compat_copy_entries_to_user(unsigned int total_size, struct xt_table *table, void *userptr) { struct xt_counters *counters; - const struct xt_table_info *private = table->private; + const struct xt_table_info *private = xt_table_get_private_protected(table); void *pos; int ret = 0; ...
CVE-2020-36694
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv4/netfilter/ip_tables.c
copy_entries_to_user
static int copy_entries_to_user(unsigned int total_size, const struct xt_table *table, void *userptr) { unsigned int off, num; const struct ipt_entry *e; struct xt_counters *counters; const struct xt_table_info *private = table->private; int ret = 0; const void *loc_cpu_entry; counters = all...
static int copy_entries_to_user(unsigned int total_size, const struct xt_table *table, void *userptr) { unsigned int off, num; const struct ipt_entry *e; struct xt_counters *counters; const struct xt_table_info *private = xt_table_get_private_protected(table); int ret = 0; const void *loc_cpu_en...
static int copy_entries_to_user(unsigned int total_size, const struct xt_table *table, void *userptr) { unsigned int off, num; const struct ipt_entry *e; struct xt_counters *counters; const struct xt_table_info *private = table->private; int ret = 0; const void *loc_cpu_entry; counters = all...
static int copy_entries_to_user(unsigned int total_size, const struct xt_table *table, void *userptr) { unsigned int off, num; const struct ipt_entry *e; struct xt_counters *counters; const struct xt_table_info *private = xt_table_get_private_protected(table); int ret = 0; const void *loc_cpu_en...
static int copy_entries_to_user(unsigned int total_size, const struct xt_table *table, void *userptr) { struct xt_counters *counters; const struct xt_table_info *private = table->private; int ret = 0; counters = alloc_counters(table); if (IS_ERR(counters)) { return PTR_ERR(counters); } ...
static int copy_entries_to_user(unsigned int total_size, const struct xt_table *table, void *userptr) { struct xt_counters *counters; const struct xt_table_info *private = xt_table_get_private_protected(table); int ret = 0; counters = alloc_counters(table); if (IS_ERR(counters)) { return PTR...
static int copy_entries_to_user(unsigned int total_size, const struct xt_table *table, void *userptr) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct xt_counters *counters; const struct xt_table_info *private = table->private; int ret = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ cou...
static int copy_entries_to_user(unsigned int total_size, const struct xt_table *table, void *userptr) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct xt_counters *counters; const struct xt_table_info *private = xt_table_get_private_protected(table); int ret = 0; /* PLACEHOLDER: DO NOT DELETE ...
static int copy_entries_to_user(unsigned int total_size, const struct xt_table *table, void *userptr) { struct xt_counters *counters; - const struct xt_table_info *private = table->private; + const struct xt_table_info *private = xt_table_get_private_protected(table); int ret = 0; counters = alloc...
CVE-2020-36694
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv4/netfilter/ip_tables.c
do_add_counters
static int do_add_counters(struct net *net, sockptr_t arg, unsigned int len) { unsigned int i; struct xt_counters_info tmp; struct xt_counters *paddc; struct xt_table *t; const struct xt_table_info *private; int ret = 0; struct ipt_entry *iter; unsigned int addend; paddc = xt_copy_co...
static int do_add_counters(struct net *net, sockptr_t arg, unsigned int len) { unsigned int i; struct xt_counters_info tmp; struct xt_counters *paddc; struct xt_table *t; const struct xt_table_info *private; int ret = 0; struct ipt_entry *iter; unsigned int addend; paddc = xt_copy_co...
static int do_add_counters(struct net *net, const void *user, unsigned int len, int compat) { unsigned int i; struct xt_counters_info tmp; struct xt_counters *paddc; struct xt_table *t; const struct xt_table_info *private; int ret = 0; struct ipt_entry *iter; unsigned int addend; pad...
static int do_add_counters(struct net *net, const void *user, unsigned int len, int compat) { unsigned int i; struct xt_counters_info tmp; struct xt_counters *paddc; struct xt_table *t; const struct xt_table_info *private; int ret = 0; struct ipt_entry *iter; unsigned int addend; pad...
static int do_add_counters(struct net *net, sockptr_t arg, unsigned int len) { t = xt_find_table_lock(net, AF_ET, tmp.name); if (IS_ERR(t)) { goto free; } local_bh_disable(); private = t->private; if (private->number != tmp.num_counters) { goto unlock_up_free; } xt_entry_...
static int do_add_counters(struct net *net, sockptr_t arg, unsigned int len) { t = xt_find_table_lock(net, AF_ET, tmp.name); if (IS_ERR(t)) { goto free; } local_bh_disable(); private = xt_table_get_private_protected(t); if (private->number != tmp.num_counters) { goto unlock_up_fr...
static int do_add_counters(struct net *net, const void *user, unsigned int len, int compat) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ t = xt_find_table_lock(net, AF_ET, tmp.name); if (IS_ERR(t)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ goto free; } local_bh_disable(); pr...
static int do_add_counters(struct net *net, const void *user, unsigned int len, int compat) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ t = xt_find_table_lock(net, AF_ET, tmp.name); if (IS_ERR(t)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ goto free; } local_bh_disable(); pr...
static int do_add_counters(struct net *net, sockptr_t arg, unsigned int len) { t = xt_find_table_lock(net, AF_ET, tmp.name); if (IS_ERR(t)) { goto free; } local_bh_disable(); - private = t->private; + private = xt_table_get_private_protected(t); if (private->number != tmp.num_co...
CVE-2020-36694
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv4/netfilter/ip_tables.c
get_entries
static int get_entries(struct net *net, struct ipt_get_entries *uptr, const int *len) { int ret; struct ipt_get_entries get; struct xt_table *t; if (*len < sizeof(get)) { return -EVAL; } if (copy_from_user(&get, uptr, sizeof(get)) != 0) { return -EFAULT; } if (*len != siz...
static int get_entries(struct net *net, struct ipt_get_entries *uptr, const int *len) { int ret; struct ipt_get_entries get; struct xt_table *t; if (*len < sizeof(get)) { return -EVAL; } if (copy_from_user(&get, uptr, sizeof(get)) != 0) { return -EFAULT; } if (*len != siz...
static int get_entries(struct net *net, struct ipt_get_entries *uptr, const int *len) { int ret; struct ipt_get_entries get; struct xt_table *t; if (*len < sizeof(get)) { return -EVAL; } if (copy_from_user(&get, uptr, sizeof(get)) != 0) { return -EFAULT; } if (*len != siz...
static int get_entries(struct net *net, struct ipt_get_entries *uptr, const int *len) { int ret; struct ipt_get_entries get; struct xt_table *t; if (*len < sizeof(get)) { return -EVAL; } if (copy_from_user(&get, uptr, sizeof(get)) != 0) { return -EFAULT; } if (*len != siz...
static int get_entries(struct net *net, struct ipt_get_entries *uptr, const int *len) { t = xt_find_table_lock(net, AF_ET, get.name); if (!IS_ERR(t)) { const struct xt_table_info *private = t->private; if (get.size == private->size) { ret = copy_entries_to_user(private->size, t, uptr...
static int get_entries(struct net *net, struct ipt_get_entries *uptr, const int *len) { t = xt_find_table_lock(net, AF_ET, get.name); if (!IS_ERR(t)) { const struct xt_table_info *private = xt_table_get_private_protected(t); if (get.size == private->size) { ret = copy_entries_to_user...
static int get_entries(struct net *net, struct ipt_get_entries *uptr, const int *len) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ t = xt_find_table_lock(net, AF_ET, get.name); if (!IS_ERR(t)) { const struct xt_table_info *private = t->private; if (get.size == private->size) { ...
static int get_entries(struct net *net, struct ipt_get_entries *uptr, const int *len) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ t = xt_find_table_lock(net, AF_ET, get.name); if (!IS_ERR(t)) { const struct xt_table_info *private = xt_table_get_private_protected(t); if (get.size == priva...
static int get_entries(struct net *net, struct ipt_get_entries *uptr, const int *len) { t = xt_find_table_lock(net, AF_ET, get.name); if (!IS_ERR(t)) { - const struct xt_table_info *private = t->private; + const struct xt_table_info *private = xt_table_get_private_protected(t); if (get...
CVE-2020-36694
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv4/netfilter/ip_tables.c
get_info
static int get_info(struct net *net, void *user, const int *len) { char name[XT_TABLE_MAXNAMELEN]; struct xt_table *t; int ret; if (*len != sizeof(struct ipt_getinfo)) { return -EVAL; } if (copy_from_user(name, user, sizeof(name)) != 0) { return -EFAULT; } name[XT_TABLE_M...
static int get_info(struct net *net, void *user, const int *len) { char name[XT_TABLE_MAXNAMELEN]; struct xt_table *t; int ret; if (*len != sizeof(struct ipt_getinfo)) { return -EVAL; } if (copy_from_user(name, user, sizeof(name)) != 0) { return -EFAULT; } name[XT_TABLE_M...
static int get_info(struct net *net, void *user, const int *len, int compat) { char name[XT_TABLE_MAXNAMELEN]; struct xt_table *t; int ret; if (*len != sizeof(struct ipt_getinfo)) { return -EVAL; } if (copy_from_user(name, user, sizeof(name)) != 0) { return -EFAULT; } nam...
static int get_info(struct net *net, void *user, const int *len, int compat) { char name[XT_TABLE_MAXNAMELEN]; struct xt_table *t; int ret; if (*len != sizeof(struct ipt_getinfo)) { return -EVAL; } if (copy_from_user(name, user, sizeof(name)) != 0) { return -EFAULT; } nam...
static int get_info(struct net *net, void *user, const int *len) { if (copy_from_user(name, user, sizeof(name)) != 0) { return -EFAULT; } if (in_compat_syscall()) { xt_compat_lock(AF_ET); } t = xt_request_find_table_lock(net, AF_ET, name); if (!IS_ERR(t)) { struct ipt_get...
static int get_info(struct net *net, void *user, const int *len) { if (copy_from_user(name, user, sizeof(name)) != 0) { return -EFAULT; } if (in_compat_syscall()) { xt_compat_lock(AF_ET); } t = xt_request_find_table_lock(net, AF_ET, name); if (!IS_ERR(t)) { struct ipt_get...
static int get_info(struct net *net, void *user, const int *len, int compat) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (copy_from_user(name, user, sizeof(name)) != 0) { return -EFAULT; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (compat) { xt_compat_lock(AF_ET); }...
static int get_info(struct net *net, void *user, const int *len, int compat) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (copy_from_user(name, user, sizeof(name)) != 0) { return -EFAULT; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (compat) { xt_compat_lock(AF_ET); }...
static int get_info(struct net *net, void *user, const int *len) { if (copy_from_user(name, user, sizeof(name)) != 0) { return -EFAULT; } if (in_compat_syscall()) { xt_compat_lock(AF_ET); } t = xt_request_find_table_lock(net, AF_ET, name); if (!IS_ERR(t)) { stru...
CVE-2020-36694
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv4/netfilter/ip_tables.c
ipt_do_table
unsigned int ipt_do_table(struct sk_buff *skb, const struct nf_hook_state *state, struct xt_table *table) { unsigned int hook = state->hook; static const char nulldevname[IFNAMSIZ] __attribute__((aligned(sizeof(long)))); const struct iphdr *ip; unsigned int verdict = NF_DROP; const char *indev, *out...
unsigned int ipt_do_table(struct sk_buff *skb, const struct nf_hook_state *state, struct xt_table *table) { unsigned int hook = state->hook; static const char nulldevname[IFNAMSIZ] __attribute__((aligned(sizeof(long)))); const struct iphdr *ip; unsigned int verdict = NF_DROP; const char *indev, *out...
unsigned int ipt_do_table(struct sk_buff *skb, const struct nf_hook_state *state, struct xt_table *table) { unsigned int hook = state->hook; static const char nulldevname[IFNAMSIZ] __attribute__((aligned(sizeof(long)))); const struct iphdr *ip; unsigned int verdict = NF_DROP; const char *indev, *out...
unsigned int ipt_do_table(struct sk_buff *skb, const struct nf_hook_state *state, struct xt_table *table) { unsigned int hook = state->hook; static const char nulldevname[IFNAMSIZ] __attribute__((aligned(sizeof(long)))); const struct iphdr *ip; unsigned int verdict = NF_DROP; const char *indev, *out...
unsigned int ipt_do_table(struct sk_buff *skb, const struct nf_hook_state *state, struct xt_table *table) { addend = xt_write_recseq_begin(); private = READ_ONCE(table->private); cpu = smp_processor_id(); table_base = private->entries; if (static_key_false(&xt_tee_enabled)) { jumpstack += pr...
unsigned int ipt_do_table(struct sk_buff *skb, const struct nf_hook_state *state, struct xt_table *table) { addend = xt_write_recseq_begin(); private = rcu_access_pointer(table->private); cpu = smp_processor_id(); table_base = private->entries; if (static_key_false(&xt_tee_enabled)) { jumpst...
unsigned int ipt_do_table(struct sk_buff *skb, const struct nf_hook_state *state, struct xt_table *table) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ addend = xt_write_recseq_begin(); private = READ_ONCE(table->private); cpu = smp_processor_id(); table_base = private->entries; /* PLACEHOLDER...
unsigned int ipt_do_table(struct sk_buff *skb, const struct nf_hook_state *state, struct xt_table *table) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ addend = xt_write_recseq_begin(); private = rcu_access_pointer(table->private); cpu = smp_processor_id(); table_base = private->entries; /* PL...
unsigned int ipt_do_table(struct sk_buff *skb, const struct nf_hook_state *state, struct xt_table *table) { addend = xt_write_recseq_begin(); - private = READ_ONCE(table->private); + private = rcu_access_pointer(table->private); cpu = smp_processor_id(); table_base = private->entries; if (sta...
CVE-2020-36694
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv6/netfilter/ip6_tables.c
alloc_counters
static struct xt_counters *alloc_counters(const struct xt_table *table) { unsigned int countersize; struct xt_counters *counters; const struct xt_table_info *private = table->private; countersize = sizeof(struct xt_counters) * private->number; counters = vzalloc(countersize); if (counters == NUL...
static struct xt_counters *alloc_counters(const struct xt_table *table) { unsigned int countersize; struct xt_counters *counters; const struct xt_table_info *private = xt_table_get_private_protected(table); countersize = sizeof(struct xt_counters) * private->number; counters = vzalloc(countersize); ...
static struct xt_counters *alloc_counters(const struct xt_table *table) { unsigned int countersize; struct xt_counters *counters; const struct xt_table_info *private = table->private; countersize = sizeof(struct xt_counters) * private->number; counters = vzalloc(countersize); if (counters == NUL...
static struct xt_counters *alloc_counters(const struct xt_table *table) { unsigned int countersize; struct xt_counters *counters; const struct xt_table_info *private = xt_table_get_private_protected(table); countersize = sizeof(struct xt_counters) * private->number; counters = vzalloc(countersize); ...
static struct xt_counters *alloc_counters(const struct xt_table *table) { struct xt_counters *counters; const struct xt_table_info *private = table->private; countersize = sizeof(struct xt_counters) * private->number; counters = vzalloc(countersize); if (counters == NULL) { return ERR_PTR(-E...
static struct xt_counters *alloc_counters(const struct xt_table *table) { struct xt_counters *counters; const struct xt_table_info *private = xt_table_get_private_protected(table); countersize = sizeof(struct xt_counters) * private->number; counters = vzalloc(countersize); if (counters == NULL) { ...
static struct xt_counters *alloc_counters(const struct xt_table *table) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct xt_counters *counters; const struct xt_table_info *private = table->private; countersize = sizeof(struct xt_counters) * private->number; counters = vzalloc(countersize); ...
static struct xt_counters *alloc_counters(const struct xt_table *table) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct xt_counters *counters; const struct xt_table_info *private = xt_table_get_private_protected(table); countersize = sizeof(struct xt_counters) * private->number; counters = vz...
static struct xt_counters *alloc_counters(const struct xt_table *table) { struct xt_counters *counters; - const struct xt_table_info *private = table->private; + const struct xt_table_info *private = xt_table_get_private_protected(table); countersize = sizeof(struct xt_counters) * private->number; ...
CVE-2020-36694
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv6/netfilter/ip6_tables.c
compat_copy_entries_to_user
static int compat_copy_entries_to_user(unsigned int total_size, struct xt_table *table, void *userptr) { struct xt_counters *counters; const struct xt_table_info *private = table->private; void *pos; unsigned int size; int ret = 0; unsigned int i = 0; struct ip6t_entry *iter; counters = ...
static int compat_copy_entries_to_user(unsigned int total_size, struct xt_table *table, void *userptr) { struct xt_counters *counters; const struct xt_table_info *private = xt_table_get_private_protected(table); void *pos; unsigned int size; int ret = 0; unsigned int i = 0; struct ip6t_entry...
static int compat_copy_entries_to_user(unsigned int total_size, struct xt_table *table, void *userptr) { struct xt_counters *counters; const struct xt_table_info *private = table->private; void *pos; unsigned int size; int ret = 0; unsigned int i = 0; struct ip6t_entry *iter; counters = ...
static int compat_copy_entries_to_user(unsigned int total_size, struct xt_table *table, void *userptr) { struct xt_counters *counters; const struct xt_table_info *private = xt_table_get_private_protected(table); void *pos; unsigned int size; int ret = 0; unsigned int i = 0; struct ip6t_entry...
static int compat_copy_entries_to_user(unsigned int total_size, struct xt_table *table, void *userptr) { struct xt_counters *counters; const struct xt_table_info *private = table->private; void *pos; int ret = 0; counters = alloc_counters(table); if (IS_ERR(counters)) { return PTR_ERR(co...
static int compat_copy_entries_to_user(unsigned int total_size, struct xt_table *table, void *userptr) { struct xt_counters *counters; const struct xt_table_info *private = xt_table_get_private_protected(table); void *pos; int ret = 0; counters = alloc_counters(table); if (IS_ERR(counters)) { ...
static int compat_copy_entries_to_user(unsigned int total_size, struct xt_table *table, void *userptr) { struct xt_counters *counters; const struct xt_table_info *private = table->private; void *pos; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int ret = 0; /* PLACEHOLDER: DO NOT DELETE THIS CO...
static int compat_copy_entries_to_user(unsigned int total_size, struct xt_table *table, void *userptr) { struct xt_counters *counters; const struct xt_table_info *private = xt_table_get_private_protected(table); void *pos; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int ret = 0; /* PLACEHOLDER...
static int compat_copy_entries_to_user(unsigned int total_size, struct xt_table *table, void *userptr) { struct xt_counters *counters; - const struct xt_table_info *private = table->private; + const struct xt_table_info *private = xt_table_get_private_protected(table); void *pos; int ret = 0; ...
CVE-2020-36694
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv6/netfilter/ip6_tables.c
copy_entries_to_user
static int copy_entries_to_user(unsigned int total_size, const struct xt_table *table, void *userptr) { unsigned int off, num; const struct ip6t_entry *e; struct xt_counters *counters; const struct xt_table_info *private = table->private; int ret = 0; const void *loc_cpu_entry; counters = al...
static int copy_entries_to_user(unsigned int total_size, const struct xt_table *table, void *userptr) { unsigned int off, num; const struct ip6t_entry *e; struct xt_counters *counters; const struct xt_table_info *private = xt_table_get_private_protected(table); int ret = 0; const void *loc_cpu_e...
static int copy_entries_to_user(unsigned int total_size, const struct xt_table *table, void *userptr) { unsigned int off, num; const struct ip6t_entry *e; struct xt_counters *counters; const struct xt_table_info *private = table->private; int ret = 0; const void *loc_cpu_entry; counters = al...
static int copy_entries_to_user(unsigned int total_size, const struct xt_table *table, void *userptr) { unsigned int off, num; const struct ip6t_entry *e; struct xt_counters *counters; const struct xt_table_info *private = xt_table_get_private_protected(table); int ret = 0; const void *loc_cpu_e...
static int copy_entries_to_user(unsigned int total_size, const struct xt_table *table, void *userptr) { struct xt_counters *counters; const struct xt_table_info *private = table->private; int ret = 0; counters = alloc_counters(table); if (IS_ERR(counters)) { return PTR_ERR(counters); } ...
static int copy_entries_to_user(unsigned int total_size, const struct xt_table *table, void *userptr) { struct xt_counters *counters; const struct xt_table_info *private = xt_table_get_private_protected(table); int ret = 0; counters = alloc_counters(table); if (IS_ERR(counters)) { return PTR...
static int copy_entries_to_user(unsigned int total_size, const struct xt_table *table, void *userptr) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct xt_counters *counters; const struct xt_table_info *private = table->private; int ret = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ cou...
static int copy_entries_to_user(unsigned int total_size, const struct xt_table *table, void *userptr) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct xt_counters *counters; const struct xt_table_info *private = xt_table_get_private_protected(table); int ret = 0; /* PLACEHOLDER: DO NOT DELETE ...
static int copy_entries_to_user(unsigned int total_size, const struct xt_table *table, void *userptr) { struct xt_counters *counters; - const struct xt_table_info *private = table->private; + const struct xt_table_info *private = xt_table_get_private_protected(table); int ret = 0; counters = alloc...
CVE-2020-36694
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv6/netfilter/ip6_tables.c
do_add_counters
static int do_add_counters(struct net *net, sockptr_t arg, unsigned int len) { unsigned int i; struct xt_counters_info tmp; struct xt_counters *paddc; struct xt_table *t; const struct xt_table_info *private; int ret = 0; struct ip6t_entry *iter; unsigned int addend; paddc = xt_copy_c...
static int do_add_counters(struct net *net, sockptr_t arg, unsigned int len) { unsigned int i; struct xt_counters_info tmp; struct xt_counters *paddc; struct xt_table *t; const struct xt_table_info *private; int ret = 0; struct ip6t_entry *iter; unsigned int addend; paddc = xt_copy_c...
static int do_add_counters(struct net *net, const void *user, unsigned int len, int compat) { unsigned int i; struct xt_counters_info tmp; struct xt_counters *paddc; struct xt_table *t; const struct xt_table_info *private; int ret = 0; struct ip6t_entry *iter; unsigned int addend; pa...
static int do_add_counters(struct net *net, const void *user, unsigned int len, int compat) { unsigned int i; struct xt_counters_info tmp; struct xt_counters *paddc; struct xt_table *t; const struct xt_table_info *private; int ret = 0; struct ip6t_entry *iter; unsigned int addend; pa...
static int do_add_counters(struct net *net, sockptr_t arg, unsigned int len) { t = xt_find_table_lock(net, AF_ET6, tmp.name); if (IS_ERR(t)) { goto free; } local_bh_disable(); private = t->private; if (private->number != tmp.num_counters) { goto unlock_up_free; } xt_entry...
static int do_add_counters(struct net *net, sockptr_t arg, unsigned int len) { t = xt_find_table_lock(net, AF_ET6, tmp.name); if (IS_ERR(t)) { goto free; } local_bh_disable(); private = xt_table_get_private_protected(t); if (private->number != tmp.num_counters) { goto unlock_up_f...
static int do_add_counters(struct net *net, const void *user, unsigned int len, int compat) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ t = xt_find_table_lock(net, AF_ET6, tmp.name); if (IS_ERR(t)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ goto free; } local_bh_disable(); p...
static int do_add_counters(struct net *net, const void *user, unsigned int len, int compat) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ t = xt_find_table_lock(net, AF_ET6, tmp.name); if (IS_ERR(t)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ goto free; } local_bh_disable(); p...
static int do_add_counters(struct net *net, sockptr_t arg, unsigned int len) { t = xt_find_table_lock(net, AF_ET6, tmp.name); if (IS_ERR(t)) { goto free; } local_bh_disable(); - private = t->private; + private = xt_table_get_private_protected(t); if (private->number != tmp.num_c...
CVE-2020-36694
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv6/netfilter/ip6_tables.c
get_entries
static int get_entries(struct net *net, struct ip6t_get_entries *uptr, const int *len) { int ret; struct ip6t_get_entries get; struct xt_table *t; if (*len < sizeof(get)) { return -EVAL; } if (copy_from_user(&get, uptr, sizeof(get)) != 0) { return -EFAULT; } if (*len != s...
static int get_entries(struct net *net, struct ip6t_get_entries *uptr, const int *len) { int ret; struct ip6t_get_entries get; struct xt_table *t; if (*len < sizeof(get)) { return -EVAL; } if (copy_from_user(&get, uptr, sizeof(get)) != 0) { return -EFAULT; } if (*len != s...
static int get_entries(struct net *net, struct ip6t_get_entries *uptr, const int *len) { int ret; struct ip6t_get_entries get; struct xt_table *t; if (*len < sizeof(get)) { return -EVAL; } if (copy_from_user(&get, uptr, sizeof(get)) != 0) { return -EFAULT; } if (*len != s...
static int get_entries(struct net *net, struct ip6t_get_entries *uptr, const int *len) { int ret; struct ip6t_get_entries get; struct xt_table *t; if (*len < sizeof(get)) { return -EVAL; } if (copy_from_user(&get, uptr, sizeof(get)) != 0) { return -EFAULT; } if (*len != s...
static int get_entries(struct net *net, struct ip6t_get_entries *uptr, const int *len) { t = xt_find_table_lock(net, AF_ET6, get.name); if (!IS_ERR(t)) { struct xt_table_info *private = t->private; if (get.size == private->size) { ret = copy_entries_to_user(private->size, t, uptr->en...
static int get_entries(struct net *net, struct ip6t_get_entries *uptr, const int *len) { t = xt_find_table_lock(net, AF_ET6, get.name); if (!IS_ERR(t)) { struct xt_table_info *private = xt_table_get_private_protected(t); if (get.size == private->size) { ret = copy_entries_to_user(pri...
static int get_entries(struct net *net, struct ip6t_get_entries *uptr, const int *len) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ t = xt_find_table_lock(net, AF_ET6, get.name); if (!IS_ERR(t)) { struct xt_table_info *private = t->private; if (get.size == private->size) { ret...
static int get_entries(struct net *net, struct ip6t_get_entries *uptr, const int *len) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ t = xt_find_table_lock(net, AF_ET6, get.name); if (!IS_ERR(t)) { struct xt_table_info *private = xt_table_get_private_protected(t); if (get.size == private->...
static int get_entries(struct net *net, struct ip6t_get_entries *uptr, const int *len) { t = xt_find_table_lock(net, AF_ET6, get.name); if (!IS_ERR(t)) { - struct xt_table_info *private = t->private; + struct xt_table_info *private = xt_table_get_private_protected(t); if (get.size == p...
CVE-2020-36694
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv6/netfilter/ip6_tables.c
get_info
static int get_info(struct net *net, void *user, const int *len) { char name[XT_TABLE_MAXNAMELEN]; struct xt_table *t; int ret; if (*len != sizeof(struct ip6t_getinfo)) { return -EVAL; } if (copy_from_user(name, user, sizeof(name)) != 0) { return -EFAULT; } name[XT_TABLE_...
static int get_info(struct net *net, void *user, const int *len) { char name[XT_TABLE_MAXNAMELEN]; struct xt_table *t; int ret; if (*len != sizeof(struct ip6t_getinfo)) { return -EVAL; } if (copy_from_user(name, user, sizeof(name)) != 0) { return -EFAULT; } name[XT_TABLE_...
static int get_info(struct net *net, void *user, const int *len, int compat) { char name[XT_TABLE_MAXNAMELEN]; struct xt_table *t; int ret; if (*len != sizeof(struct ip6t_getinfo)) { return -EVAL; } if (copy_from_user(name, user, sizeof(name)) != 0) { return -EFAULT; } na...
static int get_info(struct net *net, void *user, const int *len, int compat) { char name[XT_TABLE_MAXNAMELEN]; struct xt_table *t; int ret; if (*len != sizeof(struct ip6t_getinfo)) { return -EVAL; } if (copy_from_user(name, user, sizeof(name)) != 0) { return -EFAULT; } na...
static int get_info(struct net *net, void *user, const int *len) { if (copy_from_user(name, user, sizeof(name)) != 0) { return -EFAULT; } if (in_compat_syscall()) { xt_compat_lock(AF_ET6); } t = xt_request_find_table_lock(net, AF_ET6, name); if (!IS_ERR(t)) { struct ip6t_...
static int get_info(struct net *net, void *user, const int *len) { if (copy_from_user(name, user, sizeof(name)) != 0) { return -EFAULT; } if (in_compat_syscall()) { xt_compat_lock(AF_ET6); } t = xt_request_find_table_lock(net, AF_ET6, name); if (!IS_ERR(t)) { struct ip6t_...
static int get_info(struct net *net, void *user, const int *len, int compat) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (copy_from_user(name, user, sizeof(name)) != 0) { return -EFAULT; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (compat) { xt_compat_lock(AF_ET6); ...
static int get_info(struct net *net, void *user, const int *len, int compat) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (copy_from_user(name, user, sizeof(name)) != 0) { return -EFAULT; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (compat) { xt_compat_lock(AF_ET6); ...
static int get_info(struct net *net, void *user, const int *len) { if (copy_from_user(name, user, sizeof(name)) != 0) { return -EFAULT; } if (in_compat_syscall()) { xt_compat_lock(AF_ET6); } t = xt_request_find_table_lock(net, AF_ET6, name); if (!IS_ERR(t)) { st...
CVE-2020-36694
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/ipv6/netfilter/ip6_tables.c
ip6t_do_table
unsigned int ip6t_do_table(struct sk_buff *skb, const struct nf_hook_state *state, struct xt_table *table) { unsigned int hook = state->hook; static const char nulldevname[IFNAMSIZ] __attribute__((aligned(sizeof(long)))); unsigned int verdict = NF_DROP; const char *indev, *outdev; const void *table_...
unsigned int ip6t_do_table(struct sk_buff *skb, const struct nf_hook_state *state, struct xt_table *table) { unsigned int hook = state->hook; static const char nulldevname[IFNAMSIZ] __attribute__((aligned(sizeof(long)))); unsigned int verdict = NF_DROP; const char *indev, *outdev; const void *table_...
unsigned int ip6t_do_table(struct sk_buff *skb, const struct nf_hook_state *state, struct xt_table *table) { unsigned int hook = state->hook; static const char nulldevname[IFNAMSIZ] __attribute__((aligned(sizeof(long)))); unsigned int verdict = NF_DROP; const char *indev, *outdev; const void *table_...
unsigned int ip6t_do_table(struct sk_buff *skb, const struct nf_hook_state *state, struct xt_table *table) { unsigned int hook = state->hook; static const char nulldevname[IFNAMSIZ] __attribute__((aligned(sizeof(long)))); unsigned int verdict = NF_DROP; const char *indev, *outdev; const void *table_...
unsigned int ip6t_do_table(struct sk_buff *skb, const struct nf_hook_state *state, struct xt_table *table) { addend = xt_write_recseq_begin(); private = READ_ONCE(table->private); cpu = smp_processor_id(); table_base = private->entries; if (static_key_false(&xt_tee_enabled)) { jumpstack += p...
unsigned int ip6t_do_table(struct sk_buff *skb, const struct nf_hook_state *state, struct xt_table *table) { addend = xt_write_recseq_begin(); private = rcu_access_pointer(table->private); cpu = smp_processor_id(); table_base = private->entries; if (static_key_false(&xt_tee_enabled)) { jumps...
unsigned int ip6t_do_table(struct sk_buff *skb, const struct nf_hook_state *state, struct xt_table *table) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ addend = xt_write_recseq_begin(); private = READ_ONCE(table->private); cpu = smp_processor_id(); table_base = private->entries; /* PLACEHOLDE...
unsigned int ip6t_do_table(struct sk_buff *skb, const struct nf_hook_state *state, struct xt_table *table) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ addend = xt_write_recseq_begin(); private = rcu_access_pointer(table->private); cpu = smp_processor_id(); table_base = private->entries; /* P...
unsigned int ip6t_do_table(struct sk_buff *skb, const struct nf_hook_state *state, struct xt_table *table) { addend = xt_write_recseq_begin(); - private = READ_ONCE(table->private); + private = rcu_access_pointer(table->private); cpu = smp_processor_id(); table_base = private->entries; if (st...
CVE-2020-36694
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/netfilter/x_tables.c
xt_register_table
struct xt_table *xt_register_table(struct net *net, const struct xt_table *input_table, struct xt_table_info *bootstrap, struct xt_table_info *newinfo) { int ret; struct xt_table_info *private; struct xt_table *t, *table; table = kmemdup(input_table, sizeof(struct xt_table), GFP_KERNEL); if (!table)...
struct xt_table *xt_register_table(struct net *net, const struct xt_table *input_table, struct xt_table_info *bootstrap, struct xt_table_info *newinfo) { int ret; struct xt_table_info *private; struct xt_table *t, *table; table = kmemdup(input_table, sizeof(struct xt_table), GFP_KERNEL); if (!table)...
struct xt_table *xt_register_table(struct net *net, const struct xt_table *input_table, struct xt_table_info *bootstrap, struct xt_table_info *newinfo) { int ret; struct xt_table_info *private; struct xt_table *t, *table; table = kmemdup(input_table, sizeof(struct xt_table), GFP_KERNEL); if (!table)...
struct xt_table *xt_register_table(struct net *net, const struct xt_table *input_table, struct xt_table_info *bootstrap, struct xt_table_info *newinfo) { int ret; struct xt_table_info *private; struct xt_table *t, *table; table = kmemdup(input_table, sizeof(struct xt_table), GFP_KERNEL); if (!table)...
struct xt_table *xt_register_table(struct net *net, const struct xt_table *input_table, struct xt_table_info *bootstrap, struct xt_table_info *newinfo) { table = kmemdup(input_table, sizeof(struct xt_table), GFP_KERNEL); if (!table) { goto out; } list_for_each_entry(t, &net->xt.tables[table->af]...
struct xt_table *xt_register_table(struct net *net, const struct xt_table *input_table, struct xt_table_info *bootstrap, struct xt_table_info *newinfo) { table = kmemdup(input_table, sizeof(struct xt_table), GFP_KERNEL); if (!table) { goto out; } list_for_each_entry(t, &net->xt.tables[table->af]...
struct xt_table *xt_register_table(struct net *net, const struct xt_table *input_table, struct xt_table_info *bootstrap, struct xt_table_info *newinfo) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ table = kmemdup(input_table, sizeof(struct xt_table), GFP_KERNEL); if (!table) { /* PLACEHOLDER: DO NOT ...
struct xt_table *xt_register_table(struct net *net, const struct xt_table *input_table, struct xt_table_info *bootstrap, struct xt_table_info *newinfo) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ table = kmemdup(input_table, sizeof(struct xt_table), GFP_KERNEL); if (!table) { /* PLACEHOLDER: DO NOT ...
struct xt_table *xt_register_table(struct net *net, const struct xt_table *input_table, struct xt_table_info *bootstrap, struct xt_table_info *newinfo) { table = kmemdup(input_table, sizeof(struct xt_table), GFP_KERNEL); if (!table) { goto out; } list_for_each_entry(t, &net->xt.tables[tabl...
CVE-2020-36694
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/netfilter/x_tables.c
xt_replace_table
struct xt_table_info * xt_replace_table(struct xt_table *table, unsigned int num_counters, struct xt_table_info *newinfo, int *error) { struct xt_table_info *private; unsigned int cpu; int ret; ret = xt_jumpstack_alloc(newinfo); if (ret < 0) { *error = ret; return NULL; } loc...
struct xt_table_info * xt_replace_table(struct xt_table *table, unsigned int num_counters, struct xt_table_info *newinfo, int *error) { struct xt_table_info *private; int ret; ret = xt_jumpstack_alloc(newinfo); if (ret < 0) { *error = ret; return NULL; } private = xt_table_get_pr...
struct xt_table_info * xt_replace_table(struct xt_table *table, unsigned int num_counters, struct xt_table_info *newinfo, int *error) { struct xt_table_info *private; unsigned int cpu; int ret; ret = xt_jumpstack_alloc(newinfo); if (ret < 0) { *error = ret; return NULL; } loc...
struct xt_table_info * xt_replace_table(struct xt_table *table, unsigned int num_counters, struct xt_table_info *newinfo, int *error) { struct xt_table_info *private; int ret; ret = xt_jumpstack_alloc(newinfo); if (ret < 0) { *error = ret; return NULL; } private = xt_table_get_pr...
struct xt_table_info * xt_replace_table(struct xt_table *table, unsigned int num_counters, struct xt_table_info *newinfo, int *error) { struct xt_table_info *private; unsigned int cpu; int ret; ret = xt_jumpstack_alloc(newinfo); if (ret < 0) { return NULL; } local_bh_disable(); p...
struct xt_table_info * xt_replace_table(struct xt_table *table, unsigned int num_counters, struct xt_table_info *newinfo, int *error) { struct xt_table_info *private; int ret; ret = xt_jumpstack_alloc(newinfo); if (ret < 0) { return NULL; } private = xt_table_get_private_protected(table)...
struct xt_table_info * xt_replace_table(struct xt_table *table, unsigned int num_counters, struct xt_table_info *newinfo, int *error) { struct xt_table_info *private; unsigned int cpu; int ret; ret = xt_jumpstack_alloc(newinfo); if (ret < 0) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ...
struct xt_table_info * xt_replace_table(struct xt_table *table, unsigned int num_counters, struct xt_table_info *newinfo, int *error) { struct xt_table_info *private; int ret; ret = xt_jumpstack_alloc(newinfo); if (ret < 0) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ return NULL; } ...
struct xt_table_info * xt_replace_table(struct xt_table *table, unsigned int num_counters, struct xt_table_info *newinfo, int *error) { struct xt_table_info *private; - unsigned int cpu; int ret; ret = xt_jumpstack_alloc(newinfo); if (ret < 0) { return NULL; } - local_bh_disable...
CVE-2020-36694
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/netfilter/x_tables.c
xt_unregister_table
void *xt_unregister_table(struct xt_table *table) { struct xt_table_info *private; mutex_lock(&xt[table->af].mutex); private = table->private; list_del(&table->list); mutex_unlock(&xt[table->af].mutex); audit_log_nfcfg(table->name, table->af, private->number, AUDIT_XT_OP_UNREGISTER, GFP_KERNEL);...
void *xt_unregister_table(struct xt_table *table) { struct xt_table_info *private; mutex_lock(&xt[table->af].mutex); private = xt_table_get_private_protected(table); RCU_IT_POTER(table->private, NULL); list_del(&table->list); mutex_unlock(&xt[table->af].mutex); audit_log_nfcfg(table->name, t...
void *xt_unregister_table(struct xt_table *table) { struct xt_table_info *private; mutex_lock(&xt[table->af].mutex); private = table->private; list_del(&table->list); mutex_unlock(&xt[table->af].mutex); kfree(table); return private; }
void *xt_unregister_table(struct xt_table *table) { struct xt_table_info *private; mutex_lock(&xt[table->af].mutex); private = xt_table_get_private_protected(table); RCU_IT_POTER(table->private, NULL); list_del(&table->list); mutex_unlock(&xt[table->af].mutex); kfree(table); return priva...
void *xt_unregister_table(struct xt_table *table) { mutex_lock(&xt[table->af].mutex); private = table->private; list_del(&table->list); audit_log_nfcfg(table->name, table->af, private->number, AUDIT_XT_OP_UNREGISTER, GFP_KERNEL); kfree(table); return private; }
void *xt_unregister_table(struct xt_table *table) { mutex_lock(&xt[table->af].mutex); private = xt_table_get_private_protected(table); RCU_IT_POTER(table->private, NULL); list_del(&table->list); audit_log_nfcfg(table->name, table->af, private->number, AUDIT_XT_OP_UNREGISTER, GFP_KERNEL); kfree(t...
void *xt_unregister_table(struct xt_table *table) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ mutex_lock(&xt[table->af].mutex); private = table->private; list_del(&table->list); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ kfree(table); return private; }
void *xt_unregister_table(struct xt_table *table) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ mutex_lock(&xt[table->af].mutex); private = xt_table_get_private_protected(table); RCU_IT_POTER(table->private, NULL); list_del(&table->list); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ kfree...
void *xt_unregister_table(struct xt_table *table) { mutex_lock(&xt[table->af].mutex); - private = table->private; + private = xt_table_get_private_protected(table); + RCU_IT_POTER(table->private, NULL); list_del(&table->list); audit_log_nfcfg(table->name, table->af, private->number, AUDIT_XT_OP...
CVE-2020-36766
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/media/cec/core/cec-api.c
cec_adap_g_log_addrs
static long cec_adap_g_log_addrs(struct cec_adapter *adap, struct cec_log_addrs *parg) { struct cec_log_addrs log_addrs; mutex_lock(&adap->lock); log_addrs = adap->log_addrs; if (!adap->is_configured) { memset(log_addrs.log_addr, CEC_LOG_ADDR_VALID, sizeof(log_addrs.log_addr)); } mutex_u...
static long cec_adap_g_log_addrs(struct cec_adapter *adap, struct cec_log_addrs *parg) { struct cec_log_addrs log_addrs; mutex_lock(&adap->lock); memcpy(&log_addrs, &adap->log_addrs, sizeof(log_addrs)); if (!adap->is_configured) { memset(log_addrs.log_addr, CEC_LOG_ADDR_VALID, sizeof(log_addrs.l...
static long cec_adap_g_log_addrs(struct cec_adapter *adap, struct cec_log_addrs *parg) { struct cec_log_addrs log_addrs; mutex_lock(&adap->lock); log_addrs = adap->log_addrs; if (!adap->is_configured) { memset(log_addrs.log_addr, CEC_LOG_ADDR_VALID, sizeof(log_addrs.log_addr)); } mutex_u...
static long cec_adap_g_log_addrs(struct cec_adapter *adap, struct cec_log_addrs *parg) { struct cec_log_addrs log_addrs; mutex_lock(&adap->lock); memcpy(&log_addrs, &adap->log_addrs, sizeof(log_addrs)); if (!adap->is_configured) { memset(log_addrs.log_addr, CEC_LOG_ADDR_VALID, sizeof(log_addrs.l...
static long cec_adap_g_log_addrs(struct cec_adapter *adap, struct cec_log_addrs *parg) { mutex_lock(&adap->lock); log_addrs = adap->log_addrs; if (!adap->is_configured) { memset(log_addrs.log_addr, CEC_LOG_ADDR_VALID, sizeof(log_addrs.log_addr)); } if (copy_to_user(parg, &log_addrs, sizeof(l...
static long cec_adap_g_log_addrs(struct cec_adapter *adap, struct cec_log_addrs *parg) { mutex_lock(&adap->lock); memcpy(&log_addrs, &adap->log_addrs, sizeof(log_addrs)); if (!adap->is_configured) { memset(log_addrs.log_addr, CEC_LOG_ADDR_VALID, sizeof(log_addrs.log_addr)); } if (copy_to_use...
static long cec_adap_g_log_addrs(struct cec_adapter *adap, struct cec_log_addrs *parg) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ mutex_lock(&adap->lock); log_addrs = adap->log_addrs; if (!adap->is_configured) { memset(log_addrs.log_addr, CEC_LOG_ADDR_VALID, sizeof(log_addrs.log_addr)); ...
static long cec_adap_g_log_addrs(struct cec_adapter *adap, struct cec_log_addrs *parg) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ mutex_lock(&adap->lock); memcpy(&log_addrs, &adap->log_addrs, sizeof(log_addrs)); if (!adap->is_configured) { memset(log_addrs.log_addr, CEC_LOG_ADDR_VALID, size...
static long cec_adap_g_log_addrs(struct cec_adapter *adap, struct cec_log_addrs *parg) { mutex_lock(&adap->lock); - log_addrs = adap->log_addrs; + memcpy(&log_addrs, &adap->log_addrs, sizeof(log_addrs)); if (!adap->is_configured) { memset(log_addrs.log_addr, CEC_LOG_ADDR_VALID, sizeof(log_addr...
CVE-2020-36776
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/thermal/cpufreq_cooling.c
cpu_power_to_freq
static u32 cpu_power_to_freq(struct cpufreq_cooling_device *cpufreq_cdev, u32 power) { int i; for (i = cpufreq_cdev->max_level; i >= 0; i--) { if (power >= cpufreq_cdev->em->table[i].power) { break; } } return cpufreq_cdev->em->table[i].frequency; }
static u32 cpu_power_to_freq(struct cpufreq_cooling_device *cpufreq_cdev, u32 power) { int i; for (i = cpufreq_cdev->max_level; i > 0; i--) { if (power >= cpufreq_cdev->em->table[i].power) { break; } } return cpufreq_cdev->em->table[i].frequency; }
static u32 cpu_power_to_freq(struct cpufreq_cooling_device *cpufreq_cdev, u32 power) { int i; for (i = cpufreq_cdev->max_level; i >= 0; i--) { if (power >= cpufreq_cdev->em->table[i].power) { break; } } return cpufreq_cdev->em->table[i].frequency; }
static u32 cpu_power_to_freq(struct cpufreq_cooling_device *cpufreq_cdev, u32 power) { int i; for (i = cpufreq_cdev->max_level; i > 0; i--) { if (power >= cpufreq_cdev->em->table[i].power) { break; } } return cpufreq_cdev->em->table[i].frequency; }
static u32 cpu_power_to_freq(struct cpufreq_cooling_device *cpufreq_cdev, u32 power) { int i; for (i = cpufreq_cdev->max_level; i >= 0; i--) { if (power >= cpufreq_cdev->em->table[i].power) { break; } } return cpufreq_cdev->em->table[i].frequency; }
static u32 cpu_power_to_freq(struct cpufreq_cooling_device *cpufreq_cdev, u32 power) { int i; for (i = cpufreq_cdev->max_level; i > 0; i--) { if (power >= cpufreq_cdev->em->table[i].power) { break; } } return cpufreq_cdev->em->table[i].frequency; }
static u32 cpu_power_to_freq(struct cpufreq_cooling_device *cpufreq_cdev, u32 power) { int i; for (i = cpufreq_cdev->max_level; i >= 0; i--) { if (power >= cpufreq_cdev->em->table[i].power) { break; } } return cpufreq_cdev->em->table[i].frequency; }
static u32 cpu_power_to_freq(struct cpufreq_cooling_device *cpufreq_cdev, u32 power) { int i; for (i = cpufreq_cdev->max_level; i > 0; i--) { if (power >= cpufreq_cdev->em->table[i].power) { break; } } return cpufreq_cdev->em->table[i].frequency; }
static u32 cpu_power_to_freq(struct cpufreq_cooling_device *cpufreq_cdev, u32 power) { int i; - for (i = cpufreq_cdev->max_level; i >= 0; i--) { + for (i = cpufreq_cdev->max_level; i > 0; i--) { if (power >= cpufreq_cdev->em->table[i].power) { break; } } return cpufr...
CVE-2020-36777
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/media/dvb-core/dvbdev.c
dvb_media_device_free
static void dvb_media_device_free(struct dvb_device *dvbdev) { if (dvbdev->entity) { media_device_unregister_entity(dvbdev->entity); kfree(dvbdev->entity); kfree(dvbdev->pads); dvbdev->entity = NULL; dvbdev->pads = NULL; } if (dvbdev->tsout_entity) { int i; ...
static void dvb_media_device_free(struct dvb_device *dvbdev) { if (dvbdev->entity) { media_device_unregister_entity(dvbdev->entity); kfree(dvbdev->entity); kfree(dvbdev->pads); dvbdev->entity = NULL; dvbdev->pads = NULL; } if (dvbdev->tsout_entity) { int i; ...
static void dvb_media_device_free(struct dvb_device *dvbdev) { if (dvbdev->entity) { media_device_unregister_entity(dvbdev->entity); kfree(dvbdev->entity); kfree(dvbdev->pads); dvbdev->entity = NULL; dvbdev->pads = NULL; } if (dvbdev->tsout_entity) { int i; ...
static void dvb_media_device_free(struct dvb_device *dvbdev) { if (dvbdev->entity) { media_device_unregister_entity(dvbdev->entity); kfree(dvbdev->entity); kfree(dvbdev->pads); dvbdev->entity = NULL; dvbdev->pads = NULL; } if (dvbdev->tsout_entity) { int i; ...
static void dvb_media_device_free(struct dvb_device *dvbdev) { if (dvbdev->adapter->conn) { media_device_unregister_entity(dvbdev->adapter->conn); dvbdev->adapter->conn = NULL; } }
static void dvb_media_device_free(struct dvb_device *dvbdev) { if (dvbdev->adapter->conn) { media_device_unregister_entity(dvbdev->adapter->conn); kfree(dvbdev->adapter->conn); dvbdev->adapter->conn = NULL; } }
static void dvb_media_device_free(struct dvb_device *dvbdev) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (dvbdev->adapter->conn) { media_device_unregister_entity(dvbdev->adapter->conn); dvbdev->adapter->conn = NULL; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } }
static void dvb_media_device_free(struct dvb_device *dvbdev) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (dvbdev->adapter->conn) { media_device_unregister_entity(dvbdev->adapter->conn); kfree(dvbdev->adapter->conn); dvbdev->adapter->conn = NULL; /* PLACEHOLDER: DO NOT DELETE T...
static void dvb_media_device_free(struct dvb_device *dvbdev) { if (dvbdev->adapter->conn) { media_device_unregister_entity(dvbdev->adapter->conn); + kfree(dvbdev->adapter->conn); dvbdev->adapter->conn = NULL; } }
CVE-2020-36778
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/i2c/busses/i2c-xiic.c
xiic_i2c_remove
static int xiic_i2c_remove(struct platform_device *pdev) { struct xiic_i2c *i2c = platform_get_drvdata(pdev); int ret; i2c_del_adapter(&i2c->adap); ret = pm_runtime_get_sync(i2c->dev); if (ret < 0) { return ret; } xiic_deinit(i2c); pm_runtime_put_sync(i2c->dev); clk_disable_u...
static int xiic_i2c_remove(struct platform_device *pdev) { struct xiic_i2c *i2c = platform_get_drvdata(pdev); int ret; i2c_del_adapter(&i2c->adap); ret = pm_runtime_resume_and_get(i2c->dev); if (ret < 0) { return ret; } xiic_deinit(i2c); pm_runtime_put_sync(i2c->dev); clk_dis...
static int xiic_i2c_remove(struct platform_device *pdev) { struct xiic_i2c *i2c = platform_get_drvdata(pdev); int ret; i2c_del_adapter(&i2c->adap); ret = pm_runtime_get_sync(i2c->dev); if (ret < 0) { return ret; } xiic_deinit(i2c); pm_runtime_put_sync(i2c->dev); clk_disable_u...
static int xiic_i2c_remove(struct platform_device *pdev) { struct xiic_i2c *i2c = platform_get_drvdata(pdev); int ret; i2c_del_adapter(&i2c->adap); ret = pm_runtime_resume_and_get(i2c->dev); if (ret < 0) { return ret; } xiic_deinit(i2c); pm_runtime_put_sync(i2c->dev); clk_dis...
static int xiic_i2c_remove(struct platform_device *pdev) { struct xiic_i2c *i2c = platform_get_drvdata(pdev); i2c_del_adapter(&i2c->adap); ret = pm_runtime_get_sync(i2c->dev); if (ret < 0) { return ret; } xiic_deinit(i2c); pm_runtime_put_sync(i2c->dev); clk_disable_unprepare(i2c-...
static int xiic_i2c_remove(struct platform_device *pdev) { struct xiic_i2c *i2c = platform_get_drvdata(pdev); i2c_del_adapter(&i2c->adap); ret = pm_runtime_resume_and_get(i2c->dev); if (ret < 0) { return ret; } xiic_deinit(i2c); pm_runtime_put_sync(i2c->dev); clk_disable_unprepar...
static int xiic_i2c_remove(struct platform_device *pdev) { struct xiic_i2c *i2c = platform_get_drvdata(pdev); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ i2c_del_adapter(&i2c->adap); ret = pm_runtime_get_sync(i2c->dev); if (ret < 0) { return ret; } xiic_deinit(i2c); pm_runtime_...
static int xiic_i2c_remove(struct platform_device *pdev) { struct xiic_i2c *i2c = platform_get_drvdata(pdev); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ i2c_del_adapter(&i2c->adap); ret = pm_runtime_resume_and_get(i2c->dev); if (ret < 0) { return ret; } xiic_deinit(i2c); pm_ru...
static int xiic_i2c_remove(struct platform_device *pdev) { struct xiic_i2c *i2c = platform_get_drvdata(pdev); i2c_del_adapter(&i2c->adap); - ret = pm_runtime_get_sync(i2c->dev); + ret = pm_runtime_resume_and_get(i2c->dev); if (ret < 0) { return ret; } xiic_deinit(i2c); pm_r...
CVE-2020-36778
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/i2c/busses/i2c-xiic.c
xiic_xfer
static int xiic_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) { struct xiic_i2c *i2c = i2c_get_adapdata(adap); int err; dev_dbg(adap->dev.parent, "%s entry SR: 0x%x\n", __func__, xiic_getreg8(i2c, XIIC_SR_REG_OFFSET)); err = pm_runtime_get_sync(i2c->dev); if (err < 0) { retur...
static int xiic_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) { struct xiic_i2c *i2c = i2c_get_adapdata(adap); int err; dev_dbg(adap->dev.parent, "%s entry SR: 0x%x\n", __func__, xiic_getreg8(i2c, XIIC_SR_REG_OFFSET)); err = pm_runtime_resume_and_get(i2c->dev); if (err < 0) { ...
static int xiic_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) { struct xiic_i2c *i2c = i2c_get_adapdata(adap); int err; dev_dbg(adap->dev.parent, "%s entry SR: 0x%x\n", __func__, xiic_getreg8(i2c, XIIC_SR_REG_OFFSET)); err = pm_runtime_get_sync(i2c->dev); if (err < 0) { retur...
static int xiic_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) { struct xiic_i2c *i2c = i2c_get_adapdata(adap); int err; dev_dbg(adap->dev.parent, "%s entry SR: 0x%x\n", __func__, xiic_getreg8(i2c, XIIC_SR_REG_OFFSET)); err = pm_runtime_resume_and_get(i2c->dev); if (err < 0) { ...
static int xiic_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) { struct xiic_i2c *i2c = i2c_get_adapdata(adap); dev_dbg(adap->dev.parent, "%s entry SR: 0x%x\n", __func__, xiic_getreg8(i2c, XIIC_SR_REG_OFFSET)); err = pm_runtime_get_sync(i2c->dev); if (err < 0) { return err; } ...
static int xiic_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) { struct xiic_i2c *i2c = i2c_get_adapdata(adap); dev_dbg(adap->dev.parent, "%s entry SR: 0x%x\n", __func__, xiic_getreg8(i2c, XIIC_SR_REG_OFFSET)); err = pm_runtime_resume_and_get(i2c->dev); if (err < 0) { return err; ...
static int xiic_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) { struct xiic_i2c *i2c = i2c_get_adapdata(adap); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ dev_dbg(adap->dev.parent, "%s entry SR: 0x%x\n", __func__, xiic_getreg8(i2c, XIIC_SR_REG_OFFSET)); err = pm_runtime_get_sync(i2c->d...
static int xiic_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) { struct xiic_i2c *i2c = i2c_get_adapdata(adap); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ dev_dbg(adap->dev.parent, "%s entry SR: 0x%x\n", __func__, xiic_getreg8(i2c, XIIC_SR_REG_OFFSET)); err = pm_runtime_resume_and_get(...
static int xiic_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) { struct xiic_i2c *i2c = i2c_get_adapdata(adap); dev_dbg(adap->dev.parent, "%s entry SR: 0x%x\n", __func__, xiic_getreg8(i2c, XIIC_SR_REG_OFFSET)); - err = pm_runtime_get_sync(i2c->dev); + err = pm_runtime_resume_and_get(i2c-...
CVE-2020-36779
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/i2c/busses/i2c-stm32f7.c
stm32f7_i2c_reg_slave
static int stm32f7_i2c_reg_slave(struct i2c_client *slave) { struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(slave->adapter); void __iomem *base = i2c_dev->base; struct device *dev = i2c_dev->dev; u32 oar1, oar2, mask; int id, ret; if (slave->flags & I2C_CLIENT_PEC) { dev_err(dev, "SM...
static int stm32f7_i2c_reg_slave(struct i2c_client *slave) { struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(slave->adapter); void __iomem *base = i2c_dev->base; struct device *dev = i2c_dev->dev; u32 oar1, oar2, mask; int id, ret; if (slave->flags & I2C_CLIENT_PEC) { dev_err(dev, "SM...
static int stm32f7_i2c_reg_slave(struct i2c_client *slave) { struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(slave->adapter); void __iomem *base = i2c_dev->base; struct device *dev = i2c_dev->dev; u32 oar1, oar2, mask; int id, ret; if (slave->flags & I2C_CLIENT_PEC) { dev_err(dev, "SM...
static int stm32f7_i2c_reg_slave(struct i2c_client *slave) { struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(slave->adapter); void __iomem *base = i2c_dev->base; struct device *dev = i2c_dev->dev; u32 oar1, oar2, mask; int id, ret; if (slave->flags & I2C_CLIENT_PEC) { dev_err(dev, "SM...
static int stm32f7_i2c_reg_slave(struct i2c_client *slave) { struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(slave->adapter); struct device *dev = i2c_dev->dev; if (ret) { return ret; } ret = pm_runtime_get_sync(dev); if (ret < 0) { return ret; } switch (id) { defa...
static int stm32f7_i2c_reg_slave(struct i2c_client *slave) { struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(slave->adapter); struct device *dev = i2c_dev->dev; if (ret) { return ret; } ret = pm_runtime_resume_and_get(dev); if (ret < 0) { return ret; } switch (id) { ...
static int stm32f7_i2c_reg_slave(struct i2c_client *slave) { struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(slave->adapter); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct device *dev = i2c_dev->dev; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (ret) { return ret; } ret...
static int stm32f7_i2c_reg_slave(struct i2c_client *slave) { struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(slave->adapter); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct device *dev = i2c_dev->dev; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (ret) { return ret; } ret...
static int stm32f7_i2c_reg_slave(struct i2c_client *slave) { struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(slave->adapter); struct device *dev = i2c_dev->dev; if (ret) { return ret; } - ret = pm_runtime_get_sync(dev); + ret = pm_runtime_resume_and_get(dev); if (ret < 0) { ...
CVE-2020-36779
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/i2c/busses/i2c-stm32f7.c
stm32f7_i2c_regs_backup
static int stm32f7_i2c_regs_backup(struct stm32f7_i2c_dev *i2c_dev) { int ret; struct stm32f7_i2c_regs *backup_regs = &i2c_dev->backup_regs; ret = pm_runtime_get_sync(i2c_dev->dev); if (ret < 0) { return ret; } backup_regs->cr1 = readl_relaxed(i2c_dev->base + STM32F7_I2C_CR1); backup...
static int stm32f7_i2c_regs_backup(struct stm32f7_i2c_dev *i2c_dev) { int ret; struct stm32f7_i2c_regs *backup_regs = &i2c_dev->backup_regs; ret = pm_runtime_resume_and_get(i2c_dev->dev); if (ret < 0) { return ret; } backup_regs->cr1 = readl_relaxed(i2c_dev->base + STM32F7_I2C_CR1); ...
static int stm32f7_i2c_regs_backup(struct stm32f7_i2c_dev *i2c_dev) { int ret; struct stm32f7_i2c_regs *backup_regs = &i2c_dev->backup_regs; ret = pm_runtime_get_sync(i2c_dev->dev); if (ret < 0) { return ret; } backup_regs->cr1 = readl_relaxed(i2c_dev->base + STM32F7_I2C_CR1); backup...
static int stm32f7_i2c_regs_backup(struct stm32f7_i2c_dev *i2c_dev) { int ret; struct stm32f7_i2c_regs *backup_regs = &i2c_dev->backup_regs; ret = pm_runtime_resume_and_get(i2c_dev->dev); if (ret < 0) { return ret; } backup_regs->cr1 = readl_relaxed(i2c_dev->base + STM32F7_I2C_CR1); ...
static int stm32f7_i2c_regs_backup(struct stm32f7_i2c_dev *i2c_dev) { struct stm32f7_i2c_regs *backup_regs = &i2c_dev->backup_regs; ret = pm_runtime_get_sync(i2c_dev->dev); if (ret < 0) { return ret; } stm32f7_i2c_write_fm_plus_bits(i2c_dev, false); pm_runtime_put_sync(i2c_dev->dev); ...
static int stm32f7_i2c_regs_backup(struct stm32f7_i2c_dev *i2c_dev) { struct stm32f7_i2c_regs *backup_regs = &i2c_dev->backup_regs; ret = pm_runtime_resume_and_get(i2c_dev->dev); if (ret < 0) { return ret; } stm32f7_i2c_write_fm_plus_bits(i2c_dev, false); pm_runtime_put_sync(i2c_dev->dev...
static int stm32f7_i2c_regs_backup(struct stm32f7_i2c_dev *i2c_dev) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct stm32f7_i2c_regs *backup_regs = &i2c_dev->backup_regs; ret = pm_runtime_get_sync(i2c_dev->dev); if (ret < 0) { return ret; } /* PLACEHOLDER: DO NOT DELETE THIS COMME...
static int stm32f7_i2c_regs_backup(struct stm32f7_i2c_dev *i2c_dev) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct stm32f7_i2c_regs *backup_regs = &i2c_dev->backup_regs; ret = pm_runtime_resume_and_get(i2c_dev->dev); if (ret < 0) { return ret; } /* PLACEHOLDER: DO NOT DELETE THIS...
static int stm32f7_i2c_regs_backup(struct stm32f7_i2c_dev *i2c_dev) { struct stm32f7_i2c_regs *backup_regs = &i2c_dev->backup_regs; - ret = pm_runtime_get_sync(i2c_dev->dev); + ret = pm_runtime_resume_and_get(i2c_dev->dev); if (ret < 0) { return ret; } stm32f7_i2c_write_fm_plus_bits(...
CVE-2020-36779
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/i2c/busses/i2c-stm32f7.c
stm32f7_i2c_regs_restore
static int stm32f7_i2c_regs_restore(struct stm32f7_i2c_dev *i2c_dev) { u32 cr1; int ret; struct stm32f7_i2c_regs *backup_regs = &i2c_dev->backup_regs; ret = pm_runtime_get_sync(i2c_dev->dev); if (ret < 0) { return ret; } cr1 = readl_relaxed(i2c_dev->base + STM32F7_I2C_CR1); if (c...
static int stm32f7_i2c_regs_restore(struct stm32f7_i2c_dev *i2c_dev) { u32 cr1; int ret; struct stm32f7_i2c_regs *backup_regs = &i2c_dev->backup_regs; ret = pm_runtime_resume_and_get(i2c_dev->dev); if (ret < 0) { return ret; } cr1 = readl_relaxed(i2c_dev->base + STM32F7_I2C_CR1); ...
static int stm32f7_i2c_regs_restore(struct stm32f7_i2c_dev *i2c_dev) { u32 cr1; int ret; struct stm32f7_i2c_regs *backup_regs = &i2c_dev->backup_regs; ret = pm_runtime_get_sync(i2c_dev->dev); if (ret < 0) { return ret; } cr1 = readl_relaxed(i2c_dev->base + STM32F7_I2C_CR1); if (c...
static int stm32f7_i2c_regs_restore(struct stm32f7_i2c_dev *i2c_dev) { u32 cr1; int ret; struct stm32f7_i2c_regs *backup_regs = &i2c_dev->backup_regs; ret = pm_runtime_resume_and_get(i2c_dev->dev); if (ret < 0) { return ret; } cr1 = readl_relaxed(i2c_dev->base + STM32F7_I2C_CR1); ...
static int stm32f7_i2c_regs_restore(struct stm32f7_i2c_dev *i2c_dev) { struct stm32f7_i2c_regs *backup_regs = &i2c_dev->backup_regs; ret = pm_runtime_get_sync(i2c_dev->dev); if (ret < 0) { return ret; } stm32f7_i2c_write_fm_plus_bits(i2c_dev, true); pm_runtime_put_sync(i2c_dev->dev); ...
static int stm32f7_i2c_regs_restore(struct stm32f7_i2c_dev *i2c_dev) { struct stm32f7_i2c_regs *backup_regs = &i2c_dev->backup_regs; ret = pm_runtime_resume_and_get(i2c_dev->dev); if (ret < 0) { return ret; } stm32f7_i2c_write_fm_plus_bits(i2c_dev, true); pm_runtime_put_sync(i2c_dev->dev...
static int stm32f7_i2c_regs_restore(struct stm32f7_i2c_dev *i2c_dev) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct stm32f7_i2c_regs *backup_regs = &i2c_dev->backup_regs; ret = pm_runtime_get_sync(i2c_dev->dev); if (ret < 0) { return ret; } /* PLACEHOLDER: DO NOT DELETE THIS COMM...
static int stm32f7_i2c_regs_restore(struct stm32f7_i2c_dev *i2c_dev) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct stm32f7_i2c_regs *backup_regs = &i2c_dev->backup_regs; ret = pm_runtime_resume_and_get(i2c_dev->dev); if (ret < 0) { return ret; } /* PLACEHOLDER: DO NOT DELETE THI...
static int stm32f7_i2c_regs_restore(struct stm32f7_i2c_dev *i2c_dev) { struct stm32f7_i2c_regs *backup_regs = &i2c_dev->backup_regs; - ret = pm_runtime_get_sync(i2c_dev->dev); + ret = pm_runtime_resume_and_get(i2c_dev->dev); if (ret < 0) { return ret; } stm32f7_i2c_write_fm_plus_bits...
CVE-2020-36779
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/i2c/busses/i2c-stm32f7.c
stm32f7_i2c_smbus_xfer
static int stm32f7_i2c_smbus_xfer(struct i2c_adapter *adapter, u16 addr, unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data) { struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(adapter); struct stm32f7_i2c_msg *f7_msg = &i2c_dev->f7_msg; struct stm32_i2c_dma *dma = i2c_...
static int stm32f7_i2c_smbus_xfer(struct i2c_adapter *adapter, u16 addr, unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data) { struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(adapter); struct stm32f7_i2c_msg *f7_msg = &i2c_dev->f7_msg; struct stm32_i2c_dma *dma = i2c_...
static int stm32f7_i2c_smbus_xfer(struct i2c_adapter *adapter, u16 addr, unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data) { struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(adapter); struct stm32f7_i2c_msg *f7_msg = &i2c_dev->f7_msg; struct stm32_i2c_dma *dma = i2c_...
static int stm32f7_i2c_smbus_xfer(struct i2c_adapter *adapter, u16 addr, unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data) { struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(adapter); struct stm32f7_i2c_msg *f7_msg = &i2c_dev->f7_msg; struct stm32_i2c_dma *dma = i2c_...
static int stm32f7_i2c_smbus_xfer(struct i2c_adapter *adapter, u16 addr, unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data) { struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(adapter); struct device *dev = i2c_dev->dev; f7_msg->smbus = true; ret = pm_runtime_get_s...
static int stm32f7_i2c_smbus_xfer(struct i2c_adapter *adapter, u16 addr, unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data) { struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(adapter); struct device *dev = i2c_dev->dev; f7_msg->smbus = true; ret = pm_runtime_resum...
static int stm32f7_i2c_smbus_xfer(struct i2c_adapter *adapter, u16 addr, unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data) { struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(adapter); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct device *dev = i2c_dev->dev; ...
static int stm32f7_i2c_smbus_xfer(struct i2c_adapter *adapter, u16 addr, unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data) { struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(adapter); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct device *dev = i2c_dev->dev; ...
static int stm32f7_i2c_smbus_xfer(struct i2c_adapter *adapter, u16 addr, unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data) { struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(adapter); struct device *dev = i2c_dev->dev; f7_msg->smbus = true; - ret = pm_runtime_...
CVE-2020-36779
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/i2c/busses/i2c-stm32f7.c
stm32f7_i2c_unreg_slave
static int stm32f7_i2c_unreg_slave(struct i2c_client *slave) { struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(slave->adapter); void __iomem *base = i2c_dev->base; u32 mask; int id, ret; ret = stm32f7_i2c_get_slave_id(i2c_dev, slave, &id); if (ret) { return ret; } WARN_ON(!i2c...
static int stm32f7_i2c_unreg_slave(struct i2c_client *slave) { struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(slave->adapter); void __iomem *base = i2c_dev->base; u32 mask; int id, ret; ret = stm32f7_i2c_get_slave_id(i2c_dev, slave, &id); if (ret) { return ret; } WARN_ON(!i2c...
static int stm32f7_i2c_unreg_slave(struct i2c_client *slave) { struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(slave->adapter); void __iomem *base = i2c_dev->base; u32 mask; int id, ret; ret = stm32f7_i2c_get_slave_id(i2c_dev, slave, &id); if (ret) { return ret; } WARN_ON(!i2c...
static int stm32f7_i2c_unreg_slave(struct i2c_client *slave) { struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(slave->adapter); void __iomem *base = i2c_dev->base; u32 mask; int id, ret; ret = stm32f7_i2c_get_slave_id(i2c_dev, slave, &id); if (ret) { return ret; } WARN_ON(!i2c...
static int stm32f7_i2c_unreg_slave(struct i2c_client *slave) { struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(slave->adapter); ret = stm32f7_i2c_get_slave_id(i2c_dev, slave, &id); WARN_ON(!i2c_dev->slave[id]); ret = pm_runtime_get_sync(i2c_dev->dev); if (ret < 0) { return ret; } ...
static int stm32f7_i2c_unreg_slave(struct i2c_client *slave) { struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(slave->adapter); ret = stm32f7_i2c_get_slave_id(i2c_dev, slave, &id); WARN_ON(!i2c_dev->slave[id]); ret = pm_runtime_resume_and_get(i2c_dev->dev); if (ret < 0) { return ret; ...
static int stm32f7_i2c_unreg_slave(struct i2c_client *slave) { struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(slave->adapter); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ret = stm32f7_i2c_get_slave_id(i2c_dev, slave, &id); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ WARN_ON(!i2c_dev->slave[...
static int stm32f7_i2c_unreg_slave(struct i2c_client *slave) { struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(slave->adapter); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ret = stm32f7_i2c_get_slave_id(i2c_dev, slave, &id); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ WARN_ON(!i2c_dev->slave[...
static int stm32f7_i2c_unreg_slave(struct i2c_client *slave) { struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(slave->adapter); ret = stm32f7_i2c_get_slave_id(i2c_dev, slave, &id); WARN_ON(!i2c_dev->slave[id]); - ret = pm_runtime_get_sync(i2c_dev->dev); + ret = pm_runtime_resume_and_get(i2c_dev...
CVE-2020-36779
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/i2c/busses/i2c-stm32f7.c
stm32f7_i2c_xfer
static int stm32f7_i2c_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg msgs[], int num) { struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(i2c_adap); struct stm32f7_i2c_msg *f7_msg = &i2c_dev->f7_msg; struct stm32_i2c_dma *dma = i2c_dev->dma; unsigned long time_left; int ret; i2c_dev->msg = ...
static int stm32f7_i2c_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg msgs[], int num) { struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(i2c_adap); struct stm32f7_i2c_msg *f7_msg = &i2c_dev->f7_msg; struct stm32_i2c_dma *dma = i2c_dev->dma; unsigned long time_left; int ret; i2c_dev->msg = ...
static int stm32f7_i2c_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg msgs[], int num) { struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(i2c_adap); struct stm32f7_i2c_msg *f7_msg = &i2c_dev->f7_msg; struct stm32_i2c_dma *dma = i2c_dev->dma; unsigned long time_left; int ret; i2c_dev->msg = ...
static int stm32f7_i2c_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg msgs[], int num) { struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(i2c_adap); struct stm32f7_i2c_msg *f7_msg = &i2c_dev->f7_msg; struct stm32_i2c_dma *dma = i2c_dev->dma; unsigned long time_left; int ret; i2c_dev->msg = ...
static int stm32f7_i2c_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg msgs[], int num) { struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(i2c_adap); f7_msg->smbus = false; ret = pm_runtime_get_sync(i2c_dev->dev); if (ret < 0) { return ret; } ret = stm32f7_i2c_wait_free_bus(i2c_dev);...
static int stm32f7_i2c_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg msgs[], int num) { struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(i2c_adap); f7_msg->smbus = false; ret = pm_runtime_resume_and_get(i2c_dev->dev); if (ret < 0) { return ret; } ret = stm32f7_i2c_wait_free_bus(i2c...
static int stm32f7_i2c_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg msgs[], int num) { struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(i2c_adap); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ f7_msg->smbus = false; ret = pm_runtime_get_sync(i2c_dev->dev); if (ret < 0) { return ret; ...
static int stm32f7_i2c_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg msgs[], int num) { struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(i2c_adap); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ f7_msg->smbus = false; ret = pm_runtime_resume_and_get(i2c_dev->dev); if (ret < 0) { return ...
static int stm32f7_i2c_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg msgs[], int num) { struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(i2c_adap); f7_msg->smbus = false; - ret = pm_runtime_get_sync(i2c_dev->dev); + ret = pm_runtime_resume_and_get(i2c_dev->dev); if (ret < 0) { retur...
CVE-2020-36780
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/i2c/busses/i2c-sprd.c
sprd_i2c_master_xfer
static int sprd_i2c_master_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, int num) { struct sprd_i2c *i2c_dev = i2c_adap->algo_data; int im, ret; ret = pm_runtime_get_sync(i2c_dev->dev); if (ret < 0) { return ret; } for (im = 0; im < num - 1; im++) { ret = sprd_i2c_hand...
static int sprd_i2c_master_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, int num) { struct sprd_i2c *i2c_dev = i2c_adap->algo_data; int im, ret; ret = pm_runtime_resume_and_get(i2c_dev->dev); if (ret < 0) { return ret; } for (im = 0; im < num - 1; im++) { ret = sprd_i2...
static int sprd_i2c_master_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, int num) { struct sprd_i2c *i2c_dev = i2c_adap->algo_data; int im, ret; ret = pm_runtime_get_sync(i2c_dev->dev); if (ret < 0) { return ret; } for (im = 0; im < num - 1; im++) { ret = sprd_i2c_hand...
static int sprd_i2c_master_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, int num) { struct sprd_i2c *i2c_dev = i2c_adap->algo_data; int im, ret; ret = pm_runtime_resume_and_get(i2c_dev->dev); if (ret < 0) { return ret; } for (im = 0; im < num - 1; im++) { ret = sprd_i2...
static int sprd_i2c_master_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, int num) { struct sprd_i2c *i2c_dev = i2c_adap->algo_data; int im, ret; ret = pm_runtime_get_sync(i2c_dev->dev); if (ret < 0) { return ret; } err_msg: pm_runtime_mark_last_busy(i2c_dev->dev); pm_runti...
static int sprd_i2c_master_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, int num) { struct sprd_i2c *i2c_dev = i2c_adap->algo_data; int im, ret; ret = pm_runtime_resume_and_get(i2c_dev->dev); if (ret < 0) { return ret; } err_msg: pm_runtime_mark_last_busy(i2c_dev->dev); pm...
static int sprd_i2c_master_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, int num) { struct sprd_i2c *i2c_dev = i2c_adap->algo_data; int im, ret; ret = pm_runtime_get_sync(i2c_dev->dev); if (ret < 0) { return ret; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ err_msg: pm_...
static int sprd_i2c_master_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, int num) { struct sprd_i2c *i2c_dev = i2c_adap->algo_data; int im, ret; ret = pm_runtime_resume_and_get(i2c_dev->dev); if (ret < 0) { return ret; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ err_msg: ...
static int sprd_i2c_master_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, int num) { struct sprd_i2c *i2c_dev = i2c_adap->algo_data; int im, ret; - ret = pm_runtime_get_sync(i2c_dev->dev); + ret = pm_runtime_resume_and_get(i2c_dev->dev); if (ret < 0) { return ret; } err_ms...
CVE-2020-36780
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/i2c/busses/i2c-sprd.c
sprd_i2c_remove
static int sprd_i2c_remove(struct platform_device *pdev) { struct sprd_i2c *i2c_dev = platform_get_drvdata(pdev); int ret; ret = pm_runtime_get_sync(i2c_dev->dev); if (ret < 0) { return ret; } i2c_del_adapter(&i2c_dev->adap); clk_disable_unprepare(i2c_dev->clk); pm_runtime_put_no...
static int sprd_i2c_remove(struct platform_device *pdev) { struct sprd_i2c *i2c_dev = platform_get_drvdata(pdev); int ret; ret = pm_runtime_resume_and_get(i2c_dev->dev); if (ret < 0) { return ret; } i2c_del_adapter(&i2c_dev->adap); clk_disable_unprepare(i2c_dev->clk); pm_runtime_...
static int sprd_i2c_remove(struct platform_device *pdev) { struct sprd_i2c *i2c_dev = platform_get_drvdata(pdev); int ret; ret = pm_runtime_get_sync(i2c_dev->dev); if (ret < 0) { return ret; } i2c_del_adapter(&i2c_dev->adap); clk_disable_unprepare(i2c_dev->clk); pm_runtime_put_no...
static int sprd_i2c_remove(struct platform_device *pdev) { struct sprd_i2c *i2c_dev = platform_get_drvdata(pdev); int ret; ret = pm_runtime_resume_and_get(i2c_dev->dev); if (ret < 0) { return ret; } i2c_del_adapter(&i2c_dev->adap); clk_disable_unprepare(i2c_dev->clk); pm_runtime_...
static int sprd_i2c_remove(struct platform_device *pdev) { struct sprd_i2c *i2c_dev = platform_get_drvdata(pdev); int ret; ret = pm_runtime_get_sync(i2c_dev->dev); if (ret < 0) { return ret; } pm_runtime_put_noidle(i2c_dev->dev); pm_runtime_disable(i2c_dev->dev); }
static int sprd_i2c_remove(struct platform_device *pdev) { struct sprd_i2c *i2c_dev = platform_get_drvdata(pdev); int ret; ret = pm_runtime_resume_and_get(i2c_dev->dev); if (ret < 0) { return ret; } pm_runtime_put_noidle(i2c_dev->dev); pm_runtime_disable(i2c_dev->dev); }
static int sprd_i2c_remove(struct platform_device *pdev) { struct sprd_i2c *i2c_dev = platform_get_drvdata(pdev); int ret; ret = pm_runtime_get_sync(i2c_dev->dev); if (ret < 0) { return ret; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ pm_runtime_put_noidle(i2c_dev->dev); pm_r...
static int sprd_i2c_remove(struct platform_device *pdev) { struct sprd_i2c *i2c_dev = platform_get_drvdata(pdev); int ret; ret = pm_runtime_resume_and_get(i2c_dev->dev); if (ret < 0) { return ret; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ pm_runtime_put_noidle(i2c_dev->dev); ...
static int sprd_i2c_remove(struct platform_device *pdev) { struct sprd_i2c *i2c_dev = platform_get_drvdata(pdev); int ret; - ret = pm_runtime_get_sync(i2c_dev->dev); + ret = pm_runtime_resume_and_get(i2c_dev->dev); if (ret < 0) { return ret; } pm_runtime_put_noidle(i2c_dev->dev)...
CVE-2020-36781
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/i2c/busses/i2c-imx.c
i2c_imx_remove
static int i2c_imx_remove(struct platform_device *pdev) { struct imx_i2c_struct *i2c_imx = platform_get_drvdata(pdev); int irq, ret; ret = pm_runtime_get_sync(&pdev->dev); if (ret < 0) { return ret; } dev_dbg(&i2c_imx->adapter.dev, "adapter removed\n"); i2c_del_adapter(&i2c_imx->adap...
static int i2c_imx_remove(struct platform_device *pdev) { struct imx_i2c_struct *i2c_imx = platform_get_drvdata(pdev); int irq, ret; ret = pm_runtime_resume_and_get(&pdev->dev); if (ret < 0) { return ret; } dev_dbg(&i2c_imx->adapter.dev, "adapter removed\n"); i2c_del_adapter(&i2c_imx...
static int i2c_imx_remove(struct platform_device *pdev) { struct imx_i2c_struct *i2c_imx = platform_get_drvdata(pdev); int irq, ret; ret = pm_runtime_get_sync(&pdev->dev); if (ret < 0) { return ret; } dev_dbg(&i2c_imx->adapter.dev, "adapter removed\n"); i2c_del_adapter(&i2c_imx->adap...
static int i2c_imx_remove(struct platform_device *pdev) { struct imx_i2c_struct *i2c_imx = platform_get_drvdata(pdev); int irq, ret; ret = pm_runtime_resume_and_get(&pdev->dev); if (ret < 0) { return ret; } dev_dbg(&i2c_imx->adapter.dev, "adapter removed\n"); i2c_del_adapter(&i2c_imx...
static int i2c_imx_remove(struct platform_device *pdev) { struct imx_i2c_struct *i2c_imx = platform_get_drvdata(pdev); int irq, ret; ret = pm_runtime_get_sync(&pdev->dev); if (ret < 0) { return ret; } }
static int i2c_imx_remove(struct platform_device *pdev) { struct imx_i2c_struct *i2c_imx = platform_get_drvdata(pdev); int irq, ret; ret = pm_runtime_resume_and_get(&pdev->dev); if (ret < 0) { return ret; } }
static int i2c_imx_remove(struct platform_device *pdev) { struct imx_i2c_struct *i2c_imx = platform_get_drvdata(pdev); int irq, ret; ret = pm_runtime_get_sync(&pdev->dev); if (ret < 0) { return ret; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static int i2c_imx_remove(struct platform_device *pdev) { struct imx_i2c_struct *i2c_imx = platform_get_drvdata(pdev); int irq, ret; ret = pm_runtime_resume_and_get(&pdev->dev); if (ret < 0) { return ret; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static int i2c_imx_remove(struct platform_device *pdev) { struct imx_i2c_struct *i2c_imx = platform_get_drvdata(pdev); int irq, ret; - ret = pm_runtime_get_sync(&pdev->dev); + ret = pm_runtime_resume_and_get(&pdev->dev); if (ret < 0) { return ret; } }
CVE-2020-36781
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/i2c/busses/i2c-imx.c
i2c_imx_xfer
static int i2c_imx_xfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int num) { struct imx_i2c_struct *i2c_imx = i2c_get_adapdata(adapter); int result; result = pm_runtime_get_sync(i2c_imx->adapter.dev.parent); if (result < 0) { return result; } result = i2c_imx_xfer_common(adapter...
static int i2c_imx_xfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int num) { struct imx_i2c_struct *i2c_imx = i2c_get_adapdata(adapter); int result; result = pm_runtime_resume_and_get(i2c_imx->adapter.dev.parent); if (result < 0) { return result; } result = i2c_imx_xfer_common(a...
static int i2c_imx_xfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int num) { struct imx_i2c_struct *i2c_imx = i2c_get_adapdata(adapter); int result; result = pm_runtime_get_sync(i2c_imx->adapter.dev.parent); if (result < 0) { return result; } result = i2c_imx_xfer_common(adapter...
static int i2c_imx_xfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int num) { struct imx_i2c_struct *i2c_imx = i2c_get_adapdata(adapter); int result; result = pm_runtime_resume_and_get(i2c_imx->adapter.dev.parent); if (result < 0) { return result; } result = i2c_imx_xfer_common(a...
static int i2c_imx_xfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int num) { struct imx_i2c_struct *i2c_imx = i2c_get_adapdata(adapter); int result; result = pm_runtime_get_sync(i2c_imx->adapter.dev.parent); if (result < 0) { return result; } pm_runtime_mark_last_busy(i2c_imx->a...
static int i2c_imx_xfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int num) { struct imx_i2c_struct *i2c_imx = i2c_get_adapdata(adapter); int result; result = pm_runtime_resume_and_get(i2c_imx->adapter.dev.parent); if (result < 0) { return result; } pm_runtime_mark_last_busy(i2c_...
static int i2c_imx_xfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int num) { struct imx_i2c_struct *i2c_imx = i2c_get_adapdata(adapter); int result; result = pm_runtime_get_sync(i2c_imx->adapter.dev.parent); if (result < 0) { return result; } /* PLACEHOLDER: DO NOT DELETE THIS C...
static int i2c_imx_xfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int num) { struct imx_i2c_struct *i2c_imx = i2c_get_adapdata(adapter); int result; result = pm_runtime_resume_and_get(i2c_imx->adapter.dev.parent); if (result < 0) { return result; } /* PLACEHOLDER: DO NOT DELETE ...
static int i2c_imx_xfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int num) { struct imx_i2c_struct *i2c_imx = i2c_get_adapdata(adapter); int result; - result = pm_runtime_get_sync(i2c_imx->adapter.dev.parent); + result = pm_runtime_resume_and_get(i2c_imx->adapter.dev.parent); if (result <...
CVE-2020-36782
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/i2c/busses/i2c-imx-lpi2c.c
lpi2c_imx_master_enable
static int lpi2c_imx_master_enable(struct lpi2c_imx_struct *lpi2c_imx) { unsigned int temp; int ret; ret = pm_runtime_get_sync(lpi2c_imx->adapter.dev.parent); if (ret < 0) { return ret; } temp = MCR_RST; writel(temp, lpi2c_imx->base + LPI2C_MCR); writel(0, lpi2c_imx->base + LPI2C...
static int lpi2c_imx_master_enable(struct lpi2c_imx_struct *lpi2c_imx) { unsigned int temp; int ret; ret = pm_runtime_resume_and_get(lpi2c_imx->adapter.dev.parent); if (ret < 0) { return ret; } temp = MCR_RST; writel(temp, lpi2c_imx->base + LPI2C_MCR); writel(0, lpi2c_imx->base +...
static int lpi2c_imx_master_enable(struct lpi2c_imx_struct *lpi2c_imx) { unsigned int temp; int ret; ret = pm_runtime_get_sync(lpi2c_imx->adapter.dev.parent); if (ret < 0) { return ret; } temp = MCR_RST; writel(temp, lpi2c_imx->base + LPI2C_MCR); writel(0, lpi2c_imx->base + LPI2C...
static int lpi2c_imx_master_enable(struct lpi2c_imx_struct *lpi2c_imx) { unsigned int temp; int ret; ret = pm_runtime_resume_and_get(lpi2c_imx->adapter.dev.parent); if (ret < 0) { return ret; } temp = MCR_RST; writel(temp, lpi2c_imx->base + LPI2C_MCR); writel(0, lpi2c_imx->base +...
static int lpi2c_imx_master_enable(struct lpi2c_imx_struct *lpi2c_imx) { int ret; ret = pm_runtime_get_sync(lpi2c_imx->adapter.dev.parent); if (ret < 0) { return ret; } }
static int lpi2c_imx_master_enable(struct lpi2c_imx_struct *lpi2c_imx) { int ret; ret = pm_runtime_resume_and_get(lpi2c_imx->adapter.dev.parent); if (ret < 0) { return ret; } }
static int lpi2c_imx_master_enable(struct lpi2c_imx_struct *lpi2c_imx) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int ret; ret = pm_runtime_get_sync(lpi2c_imx->adapter.dev.parent); if (ret < 0) { return ret; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static int lpi2c_imx_master_enable(struct lpi2c_imx_struct *lpi2c_imx) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int ret; ret = pm_runtime_resume_and_get(lpi2c_imx->adapter.dev.parent); if (ret < 0) { return ret; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static int lpi2c_imx_master_enable(struct lpi2c_imx_struct *lpi2c_imx) { int ret; - ret = pm_runtime_get_sync(lpi2c_imx->adapter.dev.parent); + ret = pm_runtime_resume_and_get(lpi2c_imx->adapter.dev.parent); if (ret < 0) { return ret; } }
CVE-2020-36783
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/i2c/busses/i2c-img-scb.c
img_i2c_init
static int img_i2c_init(struct img_i2c *i2c) { unsigned int clk_khz, bitrate_khz, clk_period, tckh, tckl, tsdh; unsigned int i, data, prescale, inc, int_bitrate, filt; struct img_i2c_timings timing; u32 rev; int ret; ret = pm_runtime_get_sync(i2c->adap.dev.parent); if (ret < 0) { ret...
static int img_i2c_init(struct img_i2c *i2c) { unsigned int clk_khz, bitrate_khz, clk_period, tckh, tckl, tsdh; unsigned int i, data, prescale, inc, int_bitrate, filt; struct img_i2c_timings timing; u32 rev; int ret; ret = pm_runtime_resume_and_get(i2c->adap.dev.parent); if (ret < 0) { ...
static int img_i2c_init(struct img_i2c *i2c) { unsigned int clk_khz, bitrate_khz, clk_period, tckh, tckl, tsdh; unsigned int i, data, prescale, inc, int_bitrate, filt; struct img_i2c_timings timing; u32 rev; int ret; ret = pm_runtime_get_sync(i2c->adap.dev.parent); if (ret < 0) { ret...
static int img_i2c_init(struct img_i2c *i2c) { unsigned int clk_khz, bitrate_khz, clk_period, tckh, tckl, tsdh; unsigned int i, data, prescale, inc, int_bitrate, filt; struct img_i2c_timings timing; u32 rev; int ret; ret = pm_runtime_resume_and_get(i2c->adap.dev.parent); if (ret < 0) { ...
static int img_i2c_init(struct img_i2c *i2c) { int ret; ret = pm_runtime_get_sync(i2c->adap.dev.parent); if (ret < 0) { return ret; } }
static int img_i2c_init(struct img_i2c *i2c) { int ret; ret = pm_runtime_resume_and_get(i2c->adap.dev.parent); if (ret < 0) { return ret; } }
static int img_i2c_init(struct img_i2c *i2c) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int ret; ret = pm_runtime_get_sync(i2c->adap.dev.parent); if (ret < 0) { return ret; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static int img_i2c_init(struct img_i2c *i2c) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int ret; ret = pm_runtime_resume_and_get(i2c->adap.dev.parent); if (ret < 0) { return ret; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static int img_i2c_init(struct img_i2c *i2c) { int ret; - ret = pm_runtime_get_sync(i2c->adap.dev.parent); + ret = pm_runtime_resume_and_get(i2c->adap.dev.parent); if (ret < 0) { return ret; } }
CVE-2020-36783
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/i2c/busses/i2c-img-scb.c
img_i2c_xfer
static int img_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) { struct img_i2c *i2c = i2c_get_adapdata(adap); bool atomic = false; int i, ret; unsigned long time_left; if (i2c->mode == MODE_SUSPEND) { WARN(1, "refusing to service transaction in suspended state\n"); ...
static int img_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) { struct img_i2c *i2c = i2c_get_adapdata(adap); bool atomic = false; int i, ret; unsigned long time_left; if (i2c->mode == MODE_SUSPEND) { WARN(1, "refusing to service transaction in suspended state\n"); ...
static int img_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) { struct img_i2c *i2c = i2c_get_adapdata(adap); bool atomic = false; int i, ret; unsigned long time_left; if (i2c->mode == MODE_SUSPEND) { WARN(1, "refusing to service transaction in suspended state\n"); ...
static int img_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) { struct img_i2c *i2c = i2c_get_adapdata(adap); bool atomic = false; int i, ret; unsigned long time_left; if (i2c->mode == MODE_SUSPEND) { WARN(1, "refusing to service transaction in suspended state\n"); ...
static int img_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) { for (i = 0; i < num; i++) { } ret = pm_runtime_get_sync(adap->dev.parent); if (ret < 0) { return ret; } for (i = 0; i < num; i++) { if (time_left == 0) { dev_err(adap->dev.parent, "i2c ...
static int img_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) { for (i = 0; i < num; i++) { } ret = pm_runtime_resume_and_get(adap->dev.parent); if (ret < 0) { return ret; } for (i = 0; i < num; i++) { if (time_left == 0) { dev_err(adap->dev.parent,...
static int img_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (i = 0; i < num; i++) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } ret = pm_runtime_get_sync(adap->dev.parent); if (ret < 0) { return ret; } f...
static int img_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (i = 0; i < num; i++) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } ret = pm_runtime_resume_and_get(adap->dev.parent); if (ret < 0) { return ret; }...
static int img_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) { for (i = 0; i < num; i++) { } - ret = pm_runtime_get_sync(adap->dev.parent); + ret = pm_runtime_resume_and_get(adap->dev.parent); if (ret < 0) { return ret; } for (i = 0; i < num; i++) { ...
CVE-2020-36784
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/i2c/busses/i2c-cadence.c
cdns_i2c_master_xfer
static int cdns_i2c_master_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) { int ret, count; u32 reg; struct cdns_i2c *id = adap->algo_data; bool hold_quirk; bool change_role = false; ret = pm_runtime_get_sync(id->dev); if (ret < 0) { return ret; } if (id->dev_m...
static int cdns_i2c_master_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) { int ret, count; u32 reg; struct cdns_i2c *id = adap->algo_data; bool hold_quirk; bool change_role = false; ret = pm_runtime_resume_and_get(id->dev); if (ret < 0) { return ret; } if (id-...
static int cdns_i2c_master_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) { int ret, count; u32 reg; struct cdns_i2c *id = adap->algo_data; bool hold_quirk; bool change_role = false; ret = pm_runtime_get_sync(id->dev); if (ret < 0) { return ret; } if (id->dev_m...
static int cdns_i2c_master_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) { int ret, count; u32 reg; struct cdns_i2c *id = adap->algo_data; bool hold_quirk; bool change_role = false; ret = pm_runtime_resume_and_get(id->dev); if (ret < 0) { return ret; } if (id-...
static int cdns_i2c_master_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) { struct cdns_i2c *id = adap->algo_data; bool change_role = false; ret = pm_runtime_get_sync(id->dev); if (ret < 0) { return ret; } if (id->dev_mode == CDNS_I2C_MODE_SLAVE) { cdns_i2c_set_mod...
static int cdns_i2c_master_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) { struct cdns_i2c *id = adap->algo_data; bool change_role = false; ret = pm_runtime_resume_and_get(id->dev); if (ret < 0) { return ret; } if (id->dev_mode == CDNS_I2C_MODE_SLAVE) { cdns_i2c_s...
static int cdns_i2c_master_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct cdns_i2c *id = adap->algo_data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ bool change_role = false; ret = pm_runtime_get_sync(id->dev); if (ret < 0)...
static int cdns_i2c_master_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct cdns_i2c *id = adap->algo_data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ bool change_role = false; ret = pm_runtime_resume_and_get(id->dev); if (re...
static int cdns_i2c_master_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) { struct cdns_i2c *id = adap->algo_data; bool change_role = false; - ret = pm_runtime_get_sync(id->dev); + ret = pm_runtime_resume_and_get(id->dev); if (ret < 0) { return ret; } if (id->dev_...
CVE-2020-36784
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/i2c/busses/i2c-cadence.c
cdns_reg_slave
static int cdns_reg_slave(struct i2c_client *slave) { int ret; struct cdns_i2c *id = container_of(slave->adapter, struct cdns_i2c, adap); if (id->slave) { return -EBUSY; } if (slave->flags & I2C_CLIENT_TEN) { return -EAFNOSUPPORT; } ret = pm_runtime_get_sync(id->dev); if ...
static int cdns_reg_slave(struct i2c_client *slave) { int ret; struct cdns_i2c *id = container_of(slave->adapter, struct cdns_i2c, adap); if (id->slave) { return -EBUSY; } if (slave->flags & I2C_CLIENT_TEN) { return -EAFNOSUPPORT; } ret = pm_runtime_resume_and_get(id->dev); ...
static int cdns_reg_slave(struct i2c_client *slave) { int ret; struct cdns_i2c *id = container_of(slave->adapter, struct cdns_i2c, adap); if (id->slave) { return -EBUSY; } if (slave->flags & I2C_CLIENT_TEN) { return -EAFNOSUPPORT; } ret = pm_runtime_get_sync(id->dev); if ...
static int cdns_reg_slave(struct i2c_client *slave) { int ret; struct cdns_i2c *id = container_of(slave->adapter, struct cdns_i2c, adap); if (id->slave) { return -EBUSY; } if (slave->flags & I2C_CLIENT_TEN) { return -EAFNOSUPPORT; } ret = pm_runtime_resume_and_get(id->dev); ...
static int cdns_reg_slave(struct i2c_client *slave) { if (slave->flags & I2C_CLIENT_TEN) { return -EAFNOSUPPORT; } ret = pm_runtime_get_sync(id->dev); if (ret < 0) { return ret; } cdns_i2c_set_mode(CDNS_I2C_MODE_SLAVE, id); }
static int cdns_reg_slave(struct i2c_client *slave) { if (slave->flags & I2C_CLIENT_TEN) { return -EAFNOSUPPORT; } ret = pm_runtime_resume_and_get(id->dev); if (ret < 0) { return ret; } cdns_i2c_set_mode(CDNS_I2C_MODE_SLAVE, id); }
static int cdns_reg_slave(struct i2c_client *slave) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (slave->flags & I2C_CLIENT_TEN) { return -EAFNOSUPPORT; } ret = pm_runtime_get_sync(id->dev); if (ret < 0) { return ret; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ...
static int cdns_reg_slave(struct i2c_client *slave) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (slave->flags & I2C_CLIENT_TEN) { return -EAFNOSUPPORT; } ret = pm_runtime_resume_and_get(id->dev); if (ret < 0) { return ret; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT *...
static int cdns_reg_slave(struct i2c_client *slave) { if (slave->flags & I2C_CLIENT_TEN) { return -EAFNOSUPPORT; } - ret = pm_runtime_get_sync(id->dev); + ret = pm_runtime_resume_and_get(id->dev); if (ret < 0) { return ret; } cdns_i2c_set_mode(CDNS_I2C_MODE_SLAVE, id); ...
CVE-2020-36785
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/staging/media/atomisp/pci/atomisp_ioctl.c
atomisp_alloc_css_stat_bufs
int atomisp_alloc_css_stat_bufs(struct atomisp_sub_device *asd, uint16_t stream_id) { struct atomisp_device *isp = asd->isp; struct atomisp_s3a_buf *s3a_buf = NULL, *_s3a_buf; struct atomisp_dis_buf *dis_buf = NULL, *_dis_buf; struct atomisp_metadata_buf *md_buf = NULL, *_md_buf; int count; stru...
int atomisp_alloc_css_stat_bufs(struct atomisp_sub_device *asd, uint16_t stream_id) { struct atomisp_device *isp = asd->isp; struct atomisp_s3a_buf *s3a_buf = NULL, *_s3a_buf; struct atomisp_dis_buf *dis_buf = NULL, *_dis_buf; struct atomisp_metadata_buf *md_buf = NULL, *_md_buf; int count; stru...
int atomisp_alloc_css_stat_bufs(struct atomisp_sub_device *asd, uint16_t stream_id) { struct atomisp_device *isp = asd->isp; struct atomisp_s3a_buf *s3a_buf = NULL, *_s3a_buf; struct atomisp_dis_buf *dis_buf = NULL, *_dis_buf; struct atomisp_metadata_buf *md_buf = NULL, *_md_buf; int count; stru...
int atomisp_alloc_css_stat_bufs(struct atomisp_sub_device *asd, uint16_t stream_id) { struct atomisp_device *isp = asd->isp; struct atomisp_s3a_buf *s3a_buf = NULL, *_s3a_buf; struct atomisp_dis_buf *dis_buf = NULL, *_dis_buf; struct atomisp_metadata_buf *md_buf = NULL, *_md_buf; int count; stru...
int atomisp_alloc_css_stat_bufs(struct atomisp_sub_device *asd, uint16_t stream_id) { struct atomisp_s3a_buf *s3a_buf = NULL, *_s3a_buf; if (list_empty(&asd->s3a_stats) && asd->params.curr_grid_info.s3a_grid.enable) { while (count--) { s3a_buf = kzalloc(sizeof(struct atomisp_s3a_buf), GFP_KE...
int atomisp_alloc_css_stat_bufs(struct atomisp_sub_device *asd, uint16_t stream_id) { struct atomisp_s3a_buf *s3a_buf = NULL, *_s3a_buf; if (list_empty(&asd->s3a_stats) && asd->params.curr_grid_info.s3a_grid.enable) { while (count--) { s3a_buf = kzalloc(sizeof(struct atomisp_s3a_buf), GFP_KE...
int atomisp_alloc_css_stat_bufs(struct atomisp_sub_device *asd, uint16_t stream_id) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct atomisp_s3a_buf *s3a_buf = NULL, *_s3a_buf; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (list_empty(&asd->s3a_stats) && asd->params.curr_grid_info.s3a_grid.enab...
int atomisp_alloc_css_stat_bufs(struct atomisp_sub_device *asd, uint16_t stream_id) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct atomisp_s3a_buf *s3a_buf = NULL, *_s3a_buf; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (list_empty(&asd->s3a_stats) && asd->params.curr_grid_info.s3a_grid.enab...
int atomisp_alloc_css_stat_bufs(struct atomisp_sub_device *asd, uint16_t stream_id) { struct atomisp_s3a_buf *s3a_buf = NULL, *_s3a_buf; if (list_empty(&asd->s3a_stats) && asd->params.curr_grid_info.s3a_grid.enable) { while (count--) { s3a_buf = kzalloc(sizeof(struct atomisp_s3a_buf), G...
CVE-2020-36786
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/staging/media/atomisp/i2c/atomisp-lm3554.c
lm3554_probe
static int lm3554_probe(struct i2c_client *client) { int err = 0; struct lm3554 *flash; unsigned int i; int ret; flash = kzalloc(sizeof(*flash), GFP_KERNEL); if (!flash) { return -ENOMEM; } flash->pdata = lm3554_platform_data_func(client); if (IS_ERR(flash->pdata)) { ...
static int lm3554_probe(struct i2c_client *client) { int err = 0; struct lm3554 *flash; unsigned int i; int ret; flash = kzalloc(sizeof(*flash), GFP_KERNEL); if (!flash) { return -ENOMEM; } flash->pdata = lm3554_platform_data_func(client); if (IS_ERR(flash->pdata)) { ...
static int lm3554_probe(struct i2c_client *client) { int err = 0; struct lm3554 *flash; unsigned int i; int ret; flash = kzalloc(sizeof(*flash), GFP_KERNEL); if (!flash) { return -ENOMEM; } flash->pdata = lm3554_platform_data_func(client); if (IS_ERR(flash->pdata)) { ...
static int lm3554_probe(struct i2c_client *client) { int err = 0; struct lm3554 *flash; unsigned int i; int ret; flash = kzalloc(sizeof(*flash), GFP_KERNEL); if (!flash) { return -ENOMEM; } flash->pdata = lm3554_platform_data_func(client); if (IS_ERR(flash->pdata)) { ...
static int lm3554_probe(struct i2c_client *client) { flash = kzalloc(sizeof(*flash), GFP_KERNEL); if (!flash) { return -ENOMEM; } flash->pdata = lm3554_platform_data_func(client); if (IS_ERR(flash->pdata)) { return PTR_ERR(flash->pdata); } if (ret) { dev_err(&client->...
static int lm3554_probe(struct i2c_client *client) { flash = kzalloc(sizeof(*flash), GFP_KERNEL); if (!flash) { return -ENOMEM; } flash->pdata = lm3554_platform_data_func(client); if (IS_ERR(flash->pdata)) { err = PTR_ERR(flash->pdata); goto fail1; } if (ret) { ...
static int lm3554_probe(struct i2c_client *client) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ flash = kzalloc(sizeof(*flash), GFP_KERNEL); if (!flash) { return -ENOMEM; } flash->pdata = lm3554_platform_data_func(client); if (IS_ERR(flash->pdata)) { return PTR_ERR(flash->pdat...
static int lm3554_probe(struct i2c_client *client) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ flash = kzalloc(sizeof(*flash), GFP_KERNEL); if (!flash) { return -ENOMEM; } flash->pdata = lm3554_platform_data_func(client); if (IS_ERR(flash->pdata)) { err = PTR_ERR(flash->pdata...
static int lm3554_probe(struct i2c_client *client) { flash = kzalloc(sizeof(*flash), GFP_KERNEL); if (!flash) { return -ENOMEM; } flash->pdata = lm3554_platform_data_func(client); if (IS_ERR(flash->pdata)) { - return PTR_ERR(flash->pdata); + err = PTR_ERR(flash->pdata); ...
CVE-2020-36787
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/media/platform/aspeed-video.c
aspeed_video_off
static void aspeed_video_off(struct aspeed_video *video) { if (!test_bit(VIDEO_CLOCKS_ON, &video->flags)) { return; } aspeed_video_write(video, VE_TERRUPT_CTRL, 0); aspeed_video_write(video, VE_TERRUPT_STATUS, 0xffffffff); clk_disable(video->vclk); clk_disable(video->eclk); clear_bit...
static void aspeed_video_off(struct aspeed_video *video) { if (!test_bit(VIDEO_CLOCKS_ON, &video->flags)) { return; } aspeed_video_write(video, VE_TERRUPT_CTRL, 0); aspeed_video_write(video, VE_TERRUPT_STATUS, 0xffffffff); clk_disable(video->eclk); clk_disable(video->vclk); clear_bit...
static void aspeed_video_off(struct aspeed_video *video) { if (!test_bit(VIDEO_CLOCKS_ON, &video->flags)) { return; } aspeed_video_write(video, VE_TERRUPT_CTRL, 0); aspeed_video_write(video, VE_TERRUPT_STATUS, 0xffffffff); clk_disable(video->vclk); clk_disable(video->eclk); clear_bit...
static void aspeed_video_off(struct aspeed_video *video) { if (!test_bit(VIDEO_CLOCKS_ON, &video->flags)) { return; } aspeed_video_write(video, VE_TERRUPT_CTRL, 0); aspeed_video_write(video, VE_TERRUPT_STATUS, 0xffffffff); clk_disable(video->eclk); clk_disable(video->vclk); clear_bit...
static void aspeed_video_off(struct aspeed_video *video) { aspeed_video_write(video, VE_TERRUPT_CTRL, 0); aspeed_video_write(video, VE_TERRUPT_STATUS, 0xffffffff); clk_disable(video->vclk); clk_disable(video->eclk); }
static void aspeed_video_off(struct aspeed_video *video) { aspeed_video_write(video, VE_TERRUPT_CTRL, 0); aspeed_video_write(video, VE_TERRUPT_STATUS, 0xffffffff); clk_disable(video->eclk); clk_disable(video->vclk); }
static void aspeed_video_off(struct aspeed_video *video) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ aspeed_video_write(video, VE_TERRUPT_CTRL, 0); aspeed_video_write(video, VE_TERRUPT_STATUS, 0xffffffff); clk_disable(video->vclk); clk_disable(video->eclk); /* PLACEHOLDER: DO NOT DELETE THIS...
static void aspeed_video_off(struct aspeed_video *video) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ aspeed_video_write(video, VE_TERRUPT_CTRL, 0); aspeed_video_write(video, VE_TERRUPT_STATUS, 0xffffffff); clk_disable(video->eclk); clk_disable(video->vclk); /* PLACEHOLDER: DO NOT DELETE THIS...
static void aspeed_video_off(struct aspeed_video *video) { aspeed_video_write(video, VE_TERRUPT_CTRL, 0); aspeed_video_write(video, VE_TERRUPT_STATUS, 0xffffffff); + clk_disable(video->eclk); clk_disable(video->vclk); - clk_disable(video->eclk); }
CVE-2020-36787
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/media/platform/aspeed-video.c
aspeed_video_on
static void aspeed_video_on(struct aspeed_video *video) { if (test_bit(VIDEO_CLOCKS_ON, &video->flags)) { return; } clk_enable(video->eclk); clk_enable(video->vclk); set_bit(VIDEO_CLOCKS_ON, &video->flags); }
static void aspeed_video_on(struct aspeed_video *video) { if (test_bit(VIDEO_CLOCKS_ON, &video->flags)) { return; } clk_enable(video->vclk); clk_enable(video->eclk); set_bit(VIDEO_CLOCKS_ON, &video->flags); }
static void aspeed_video_on(struct aspeed_video *video) { if (test_bit(VIDEO_CLOCKS_ON, &video->flags)) { return; } clk_enable(video->eclk); clk_enable(video->vclk); set_bit(VIDEO_CLOCKS_ON, &video->flags); }
static void aspeed_video_on(struct aspeed_video *video) { if (test_bit(VIDEO_CLOCKS_ON, &video->flags)) { return; } clk_enable(video->vclk); clk_enable(video->eclk); set_bit(VIDEO_CLOCKS_ON, &video->flags); }
static void aspeed_video_on(struct aspeed_video *video) { if (test_bit(VIDEO_CLOCKS_ON, &video->flags)) { return; } clk_enable(video->eclk); clk_enable(video->vclk); set_bit(VIDEO_CLOCKS_ON, &video->flags); }
static void aspeed_video_on(struct aspeed_video *video) { if (test_bit(VIDEO_CLOCKS_ON, &video->flags)) { return; } clk_enable(video->vclk); clk_enable(video->eclk); set_bit(VIDEO_CLOCKS_ON, &video->flags); }
static void aspeed_video_on(struct aspeed_video *video) { if (test_bit(VIDEO_CLOCKS_ON, &video->flags)) { return; } clk_enable(video->eclk); clk_enable(video->vclk); set_bit(VIDEO_CLOCKS_ON, &video->flags); }
static void aspeed_video_on(struct aspeed_video *video) { if (test_bit(VIDEO_CLOCKS_ON, &video->flags)) { return; } clk_enable(video->vclk); clk_enable(video->eclk); set_bit(VIDEO_CLOCKS_ON, &video->flags); }
static void aspeed_video_on(struct aspeed_video *video) { if (test_bit(VIDEO_CLOCKS_ON, &video->flags)) { return; } + clk_enable(video->vclk); clk_enable(video->eclk); - clk_enable(video->vclk); set_bit(VIDEO_CLOCKS_ON, &video->flags); }
CVE-2020-36787
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/media/platform/aspeed-video.c
aspeed_video_probe
static int aspeed_video_probe(struct platform_device *pdev) { int rc; struct resource *res; struct aspeed_video *video = devm_kzalloc(&pdev->dev, sizeof(*video), GFP_KERNEL); if (!video) { return -ENOMEM; } video->frame_rate = 30; video->dev = &pdev->dev; spin_lock_init(&video->l...
static int aspeed_video_probe(struct platform_device *pdev) { int rc; struct resource *res; struct aspeed_video *video = devm_kzalloc(&pdev->dev, sizeof(*video), GFP_KERNEL); if (!video) { return -ENOMEM; } video->frame_rate = 30; video->dev = &pdev->dev; spin_lock_init(&video->l...
static int aspeed_video_probe(struct platform_device *pdev) { const struct aspeed_video_config *config; const struct of_device_id *match; struct aspeed_video *video; int rc; video = devm_kzalloc(&pdev->dev, sizeof(*video), GFP_KERNEL); if (!video) { return -ENOMEM; } video->base ...
static int aspeed_video_probe(struct platform_device *pdev) { const struct aspeed_video_config *config; const struct of_device_id *match; struct aspeed_video *video; int rc; video = devm_kzalloc(&pdev->dev, sizeof(*video), GFP_KERNEL); if (!video) { return -ENOMEM; } video->base ...
static int aspeed_video_probe(struct platform_device *pdev) { struct aspeed_video *video = devm_kzalloc(&pdev->dev, sizeof(*video), GFP_KERNEL); if (!video) { return -ENOMEM; } rc = aspeed_video_init(video); rc = aspeed_video_setup_video(video); if (rc) { return rc; } }
static int aspeed_video_probe(struct platform_device *pdev) { struct aspeed_video *video = devm_kzalloc(&pdev->dev, sizeof(*video), GFP_KERNEL); if (!video) { return -ENOMEM; } rc = aspeed_video_init(video); rc = aspeed_video_setup_video(video); if (rc) { clk_unprepare(video->vcl...
static int aspeed_video_probe(struct platform_device *pdev) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ video = devm_kzalloc(&pdev->dev, sizeof(*video), GFP_KERNEL); if (!video) { return -ENOMEM; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ rc = aspeed_video_init(video); /* PL...
static int aspeed_video_probe(struct platform_device *pdev) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ video = devm_kzalloc(&pdev->dev, sizeof(*video), GFP_KERNEL); if (!video) { return -ENOMEM; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ rc = aspeed_video_init(video); /* PL...
static int aspeed_video_probe(struct platform_device *pdev) { struct aspeed_video *video = devm_kzalloc(&pdev->dev, sizeof(*video), GFP_KERNEL); if (!video) { return -ENOMEM; } rc = aspeed_video_init(video); rc = aspeed_video_setup_video(video); if (rc) { + clk_unprepare(v...
CVE-2020-3702
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/net/wireless/ath/key.c
ath_key_delete
void ath_key_delete(struct ath_common *common, struct ieee80211_key_conf *key) { ath_hw_keyreset(common, key->hw_key_idx); if (key->hw_key_idx < IEEE80211_WEP_NKID) { return; } clear_bit(key->hw_key_idx, common->keymap); clear_bit(key->hw_key_idx, common->ccmp_keymap); if (key->cipher !=...
void ath_key_delete(struct ath_common *common, struct ieee80211_key_conf *key) { if (test_bit(key->hw_key_idx, common->ccmp_keymap) || test_bit(key->hw_key_idx, common->tkip_keymap)) { ath_hw_keysetmac(common, key->hw_key_idx, NULL); } else { ath_hw_keyreset(common, key->hw_key_idx); } i...
void ath_key_delete(struct ath_common *common, struct ieee80211_key_conf *key) { ath_hw_keyreset(common, key->hw_key_idx); if (key->hw_key_idx < IEEE80211_WEP_NKID) { return; } clear_bit(key->hw_key_idx, common->keymap); clear_bit(key->hw_key_idx, common->ccmp_keymap); if (key->cipher !=...
void ath_key_delete(struct ath_common *common, struct ieee80211_key_conf *key) { if (test_bit(key->hw_key_idx, common->ccmp_keymap) || test_bit(key->hw_key_idx, common->tkip_keymap)) { ath_hw_keysetmac(common, key->hw_key_idx, NULL); } else { ath_hw_keyreset(common, key->hw_key_idx); } i...
void ath_key_delete(struct ath_common *common, struct ieee80211_key_conf *key) { ath_hw_keyreset(common, key->hw_key_idx); if (key->hw_key_idx < IEEE80211_WEP_NKID) { return; } clear_bit(key->hw_key_idx, common->keymap); clear_bit(key->hw_key_idx, common->ccmp_keymap); clear_bit(key->hw_...
void ath_key_delete(struct ath_common *common, struct ieee80211_key_conf *key) { if (test_bit(key->hw_key_idx, common->ccmp_keymap) || test_bit(key->hw_key_idx, common->tkip_keymap)) { ath_hw_keysetmac(common, key->hw_key_idx, NULL); } else { ath_hw_keyreset(common, key->hw_key_idx); } i...
void ath_key_delete(struct ath_common *common, struct ieee80211_key_conf *key) { ath_hw_keyreset(common, key->hw_key_idx); if (key->hw_key_idx < IEEE80211_WEP_NKID) { return; } clear_bit(key->hw_key_idx, common->keymap); clear_bit(key->hw_key_idx, common->ccmp_keymap); /* PLACEHOLDER: DO...
void ath_key_delete(struct ath_common *common, struct ieee80211_key_conf *key) { if (test_bit(key->hw_key_idx, common->ccmp_keymap) || test_bit(key->hw_key_idx, common->tkip_keymap)) { ath_hw_keysetmac(common, key->hw_key_idx, NULL); } else { ath_hw_keyreset(common, key->hw_key_idx); } i...
void ath_key_delete(struct ath_common *common, struct ieee80211_key_conf *key) { - ath_hw_keyreset(common, key->hw_key_idx); + if (test_bit(key->hw_key_idx, common->ccmp_keymap) || test_bit(key->hw_key_idx, common->tkip_keymap)) { + ath_hw_keysetmac(common, key->hw_key_idx, NULL); + } else { + a...
CVE-2020-8428
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/namei.c
do_last
static int do_last(struct nameidata *nd, struct file *file, const struct open_flags *op) { struct dentry *dir = nd->path.dentry; int open_flag = op->open_flag; bool will_truncate = (open_flag & O_TRUNC) != 0; bool got_write = false; int acc_mode = op->acc_mode; unsigned seq; struct inode *in...
static int do_last(struct nameidata *nd, struct file *file, const struct open_flags *op) { struct dentry *dir = nd->path.dentry; kuid_t dir_uid = dir->d_inode->i_uid; umode_t dir_mode = dir->d_inode->i_mode; int open_flag = op->open_flag; bool will_truncate = (open_flag & O_TRUNC) != 0; bool got...
static int do_last(struct nameidata *nd, struct file *file, const struct open_flags *op) { struct dentry *dir = nd->path.dentry; int open_flag = op->open_flag; bool will_truncate = (open_flag & O_TRUNC) != 0; bool got_write = false; int acc_mode = op->acc_mode; unsigned seq; struct inode *in...
static int do_last(struct nameidata *nd, struct file *file, const struct open_flags *op) { struct dentry *dir = nd->path.dentry; kuid_t dir_uid = dir->d_inode->i_uid; umode_t dir_mode = dir->d_inode->i_mode; int open_flag = op->open_flag; bool will_truncate = (open_flag & O_TRUNC) != 0; bool got...
static int do_last(struct nameidata *nd, struct file *file, const struct open_flags *op) { struct dentry *dir = nd->path.dentry; int open_flag = op->open_flag; bool got_write = false; if (nd->last_type != LAST_NORM) { error = handle_dots(nd, nd->last_type); if (unlikely(error)) { ...
static int do_last(struct nameidata *nd, struct file *file, const struct open_flags *op) { struct dentry *dir = nd->path.dentry; kuid_t dir_uid = dir->d_inode->i_uid; umode_t dir_mode = dir->d_inode->i_mode; int open_flag = op->open_flag; bool got_write = false; if (nd->last_type != LAST_NORM) {...
static int do_last(struct nameidata *nd, struct file *file, const struct open_flags *op) { struct dentry *dir = nd->path.dentry; int open_flag = op->open_flag; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ bool got_write = false; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (nd->last_type !=...
static int do_last(struct nameidata *nd, struct file *file, const struct open_flags *op) { struct dentry *dir = nd->path.dentry; kuid_t dir_uid = dir->d_inode->i_uid; umode_t dir_mode = dir->d_inode->i_mode; int open_flag = op->open_flag; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ bool got_wr...
static int do_last(struct nameidata *nd, struct file *file, const struct open_flags *op) { struct dentry *dir = nd->path.dentry; + kuid_t dir_uid = dir->d_inode->i_uid; + umode_t dir_mode = dir->d_inode->i_mode; int open_flag = op->open_flag; bool got_write = false; if (nd->last_type != LAST_...
CVE-2020-8428
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/namei.c
may_create_in_sticky
static int may_create_in_sticky(struct dentry * const dir, struct inode * const inode) { if ((!sysctl_protected_fifos && S_ISFIFO(inode->i_mode)) || (!sysctl_protected_regular && S_ISREG(inode->i_mode)) || likely(!(dir->d_inode->i_mode & S_ISVTX)) || uid_eq(inode->i_uid, dir->d_inode->i_uid) || uid_eq(c...
static int may_create_in_sticky(umode_t dir_mode, kuid_t dir_uid, struct inode * const inode) { if ((!sysctl_protected_fifos && S_ISFIFO(inode->i_mode)) || (!sysctl_protected_regular && S_ISREG(inode->i_mode)) || likely(!(dir_mode & S_ISVTX)) || uid_eq(inode->i_uid, dir_uid) || uid_eq(current_fsuid(), i...
static int may_create_in_sticky(struct dentry * const dir, struct inode * const inode) { if ((!sysctl_protected_fifos && S_ISFIFO(inode->i_mode)) || (!sysctl_protected_regular && S_ISREG(inode->i_mode)) || likely(!(dir->d_inode->i_mode & S_ISVTX)) || uid_eq(inode->i_uid, dir->d_inode->i_uid) || uid_eq(c...
static int may_create_in_sticky(umode_t dir_mode, kuid_t dir_uid, struct inode * const inode) { if ((!sysctl_protected_fifos && S_ISFIFO(inode->i_mode)) || (!sysctl_protected_regular && S_ISREG(inode->i_mode)) || likely(!(dir_mode & S_ISVTX)) || uid_eq(inode->i_uid, dir_uid) || uid_eq(current_fsuid(), i...
static int may_create_in_sticky(struct dentry * const dir, struct inode * const inode) { if ((!sysctl_protected_fifos && S_ISFIFO(inode->i_mode)) || (!sysctl_protected_regular && S_ISREG(inode->i_mode)) || likely(!(dir->d_inode->i_mode & S_ISVTX)) || uid_eq(inode->i_uid, dir->d_inode->i_uid) || uid_eq(c...
static int may_create_in_sticky(umode_t dir_mode, kuid_t dir_uid, struct inode * const inode) { if ((!sysctl_protected_fifos && S_ISFIFO(inode->i_mode)) || (!sysctl_protected_regular && S_ISREG(inode->i_mode)) || likely(!(dir_mode & S_ISVTX)) || uid_eq(inode->i_uid, dir_uid) || uid_eq(current_fsuid(), i...
static int may_create_in_sticky(struct dentry * const dir, struct inode * const inode) { if ((!sysctl_protected_fifos && S_ISFIFO(inode->i_mode)) || (!sysctl_protected_regular && S_ISREG(inode->i_mode)) || likely(!(dir->d_inode->i_mode & S_ISVTX)) || uid_eq(inode->i_uid, dir->d_inode->i_uid) || uid_eq(c...
static int may_create_in_sticky(umode_t dir_mode, kuid_t dir_uid, struct inode * const inode) { if ((!sysctl_protected_fifos && S_ISFIFO(inode->i_mode)) || (!sysctl_protected_regular && S_ISREG(inode->i_mode)) || likely(!(dir_mode & S_ISVTX)) || uid_eq(inode->i_uid, dir_uid) || uid_eq(current_fsuid(), i...
-static int may_create_in_sticky(struct dentry * const dir, struct inode * const inode) { - if ((!sysctl_protected_fifos && S_ISFIFO(inode->i_mode)) || (!sysctl_protected_regular && S_ISREG(inode->i_mode)) || likely(!(dir->d_inode->i_mode & S_ISVTX)) - || uid_eq(inode->i_uid, dir->d_inode->i_uid) || uid_e...
CVE-2020-8647
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/video/console/vgacon.c
vgacon_resize
static int vgacon_resize(struct vc_data *c, unsigned int width, unsigned int height, unsigned int user) { if (width % 2 || width > screen_info.orig_video_cols || height > (screen_info.orig_video_lines * vga_default_font_height)/ c->vc_font.height) { return (user) ? 0 : -EVAL; } if (CON_IS_VISIBLE(c)...
static int vgacon_resize(struct vc_data *c, unsigned int width, unsigned int height, unsigned int user) { if ((width << 1) * height > vga_vram_size) { return -EVAL; } if (width % 2 || width > screen_info.orig_video_cols || height > (screen_info.orig_video_lines * vga_default_font_height)/ c->vc_font...
static int vgacon_resize(struct vc_data *c, unsigned int width, unsigned int height, unsigned int user) { if (width % 2 || width > screen_info.orig_video_cols || height > (screen_info.orig_video_lines * vga_default_font_height)/ c->vc_font.height) { return (user) ? 0 : -EVAL; } if (CON_IS_VISIBLE(c)...
static int vgacon_resize(struct vc_data *c, unsigned int width, unsigned int height, unsigned int user) { if ((width << 1) * height > vga_vram_size) { return -EVAL; } if (width % 2 || width > screen_info.orig_video_cols || height > (screen_info.orig_video_lines * vga_default_font_height)/ c->vc_font...
static int vgacon_resize(struct vc_data *c, unsigned int width, unsigned int height, unsigned int user) { if (width % 2 || width > screen_info.orig_video_cols || height > (screen_info.orig_video_lines * vga_default_font_height)/ c->vc_font.height) { return (user) ? 0 : -EVAL; } if (CON_IS_VISIBLE(c)...
static int vgacon_resize(struct vc_data *c, unsigned int width, unsigned int height, unsigned int user) { if ((width << 1) * height > vga_vram_size) { return -EVAL; } if (width % 2 || width > screen_info.orig_video_cols || height > (screen_info.orig_video_lines * vga_default_font_height)/ c->vc_font...
static int vgacon_resize(struct vc_data *c, unsigned int width, unsigned int height, unsigned int user) { if (width % 2 || width > screen_info.orig_video_cols || height > (screen_info.orig_video_lines * vga_default_font_height)/ c->vc_font.height) { return (user) ? 0 : -EVAL; } if (CON_IS_VISIBLE(c)...
static int vgacon_resize(struct vc_data *c, unsigned int width, unsigned int height, unsigned int user) { if ((width << 1) * height > vga_vram_size) { return -EVAL; } if (width % 2 || width > screen_info.orig_video_cols || height > (screen_info.orig_video_lines * vga_default_font_height)/ c->vc_font...
static int vgacon_resize(struct vc_data *c, unsigned int width, unsigned int height, unsigned int user) { + if ((width << 1) * height > vga_vram_size) { + return -EVAL; + } if (width % 2 || width > screen_info.orig_video_cols || height > (screen_info.orig_video_lines * vga_default_font_height)/ c->vc...