search for: file_ioctl

Displaying 15 results from an estimated 15 matches for "file_ioctl".

2019 Jun 13
2
memory leak in vhost_net_ioctl
...vers/vhost/net.c:241 [inline] [<0000000079ebab38>] vhost_net_set_backend drivers/vhost/net.c:1534 [inline] [<0000000079ebab38>] vhost_net_ioctl+0xb43/0xc10 drivers/vhost/net.c:1716 [<000000009f6204a2>] vfs_ioctl fs/ioctl.c:46 [inline] [<000000009f6204a2>] file_ioctl fs/ioctl.c:509 [inline] [<000000009f6204a2>] do_vfs_ioctl+0x62a/0x810 fs/ioctl.c:696 [<00000000b45866de>] ksys_ioctl+0x86/0xb0 fs/ioctl.c:713 [<00000000dfb41eb8>] __do_sys_ioctl fs/ioctl.c:720 [inline] [<00000000dfb41eb8>] __se_sys_ioctl fs/ioctl.c:718 [i...
2019 Jun 13
2
memory leak in vhost_net_ioctl
...vers/vhost/net.c:241 [inline] [<0000000079ebab38>] vhost_net_set_backend drivers/vhost/net.c:1534 [inline] [<0000000079ebab38>] vhost_net_ioctl+0xb43/0xc10 drivers/vhost/net.c:1716 [<000000009f6204a2>] vfs_ioctl fs/ioctl.c:46 [inline] [<000000009f6204a2>] file_ioctl fs/ioctl.c:509 [inline] [<000000009f6204a2>] do_vfs_ioctl+0x62a/0x810 fs/ioctl.c:696 [<00000000b45866de>] ksys_ioctl+0x86/0xb0 fs/ioctl.c:713 [<00000000dfb41eb8>] __do_sys_ioctl fs/ioctl.c:720 [inline] [<00000000dfb41eb8>] __se_sys_ioctl fs/ioctl.c:718 [i...
2019 Jun 14
2
memory leak in vhost_net_ioctl
...[inline] > [<00000000b3825d52>] vhost_net_set_backend drivers/vhost/net.c:1535 [inline] > [<00000000b3825d52>] vhost_net_ioctl+0xb43/0xc10 drivers/vhost/net.c:1717 > [<00000000700f02d7>] vfs_ioctl fs/ioctl.c:46 [inline] > [<00000000700f02d7>] file_ioctl fs/ioctl.c:509 [inline] > [<00000000700f02d7>] do_vfs_ioctl+0x62a/0x810 fs/ioctl.c:696 > [<000000009a0ec0a7>] ksys_ioctl+0x86/0xb0 fs/ioctl.c:713 > [<00000000d9416323>] __do_sys_ioctl fs/ioctl.c:720 [inline] > [<00000000d9416323>] __se_sys_ioc...
2019 Jun 14
2
memory leak in vhost_net_ioctl
...[inline] > [<00000000b3825d52>] vhost_net_set_backend drivers/vhost/net.c:1535 [inline] > [<00000000b3825d52>] vhost_net_ioctl+0xb43/0xc10 drivers/vhost/net.c:1717 > [<00000000700f02d7>] vfs_ioctl fs/ioctl.c:46 [inline] > [<00000000700f02d7>] file_ioctl fs/ioctl.c:509 [inline] > [<00000000700f02d7>] do_vfs_ioctl+0x62a/0x810 fs/ioctl.c:696 > [<000000009a0ec0a7>] ksys_ioctl+0x86/0xb0 fs/ioctl.c:713 > [<00000000d9416323>] __do_sys_ioctl fs/ioctl.c:720 [inline] > [<00000000d9416323>] __se_sys_ioc...
2011 Mar 31
3
[PATCH 1/3] VFS/ioctl: Add punching-hole support to ioctl().
We're currently support two paths from VFS to preallocate unwritten extents(from FS_IOC_RESVSP, or fallocate()), likewise, behavior of punching-hole should be treated as the same, this patch tries to teach file_ioctl() to handle FS_IOC_UNRESVSP, underlying filesystem like ocfs2 is wise enough to do the rest of work;-) Signed-off-by: Tristan Ye <tristan.ye at oracle.com> --- fs/ioctl.c | 10 +++++++--- include/linux/falloc.h | 2 ++ 2 files changed, 9 insertions(+), 3 deletions(-) diff...
2011 Mar 31
3
[PATCH 1/3] VFS/ioctl: Add punching-hole support to ioctl().
We're currently support two paths from VFS to preallocate unwritten extents(from FS_IOC_RESVSP, or fallocate()), likewise, behavior of punching-hole should be treated as the same, this patch tries to teach file_ioctl() to handle FS_IOC_UNRESVSP, underlying filesystem like ocfs2 is wise enough to do the rest of work;-) Signed-off-by: Tristan Ye <tristan.ye at oracle.com> --- fs/ioctl.c | 10 +++++++--- include/linux/falloc.h | 2 ++ 2 files changed, 9 insertions(+), 3 deletions(-) diff...
2019 Jun 06
1
memory leak in vhost_net_ioctl
...[inline] > [<0000000079ebab38>] vhost_net_set_backend drivers/vhost/net.c:1534 [inline] > [<0000000079ebab38>] vhost_net_ioctl+0xb43/0xc10 drivers/vhost/net.c:1716 > [<000000009f6204a2>] vfs_ioctl fs/ioctl.c:46 [inline] > [<000000009f6204a2>] file_ioctl fs/ioctl.c:509 [inline] > [<000000009f6204a2>] do_vfs_ioctl+0x62a/0x810 fs/ioctl.c:696 > [<00000000b45866de>] ksys_ioctl+0x86/0xb0 fs/ioctl.c:713 > [<00000000dfb41eb8>] __do_sys_ioctl fs/ioctl.c:720 [inline] > [<00000000dfb41eb8>] __se_sys_ioc...
2019 Jun 06
1
memory leak in vhost_net_ioctl
...[inline] > [<0000000079ebab38>] vhost_net_set_backend drivers/vhost/net.c:1534 [inline] > [<0000000079ebab38>] vhost_net_ioctl+0xb43/0xc10 drivers/vhost/net.c:1716 > [<000000009f6204a2>] vfs_ioctl fs/ioctl.c:46 [inline] > [<000000009f6204a2>] file_ioctl fs/ioctl.c:509 [inline] > [<000000009f6204a2>] do_vfs_ioctl+0x62a/0x810 fs/ioctl.c:696 > [<00000000b45866de>] ksys_ioctl+0x86/0xb0 fs/ioctl.c:713 > [<00000000dfb41eb8>] __do_sys_ioctl fs/ioctl.c:720 [inline] > [<00000000dfb41eb8>] __se_sys_ioc...
2019 Jun 05
0
memory leak in vhost_net_ioctl
...host/net.c:241 [inline] [<0000000079ebab38>] vhost_net_set_backend drivers/vhost/net.c:1534 [inline] [<0000000079ebab38>] vhost_net_ioctl+0xb43/0xc10 drivers/vhost/net.c:1716 [<000000009f6204a2>] vfs_ioctl fs/ioctl.c:46 [inline] [<000000009f6204a2>] file_ioctl fs/ioctl.c:509 [inline] [<000000009f6204a2>] do_vfs_ioctl+0x62a/0x810 fs/ioctl.c:696 [<00000000b45866de>] ksys_ioctl+0x86/0xb0 fs/ioctl.c:713 [<00000000dfb41eb8>] __do_sys_ioctl fs/ioctl.c:720 [inline] [<00000000dfb41eb8>] __se_sys_ioctl fs/ioctl.c:718 [i...
2019 Jun 13
0
memory leak in vhost_net_ioctl
...079ebab38>] vhost_net_set_backend >> drivers/vhost/net.c:1534 [inline] >> ???? [<0000000079ebab38>] vhost_net_ioctl+0xb43/0xc10 >> drivers/vhost/net.c:1716 >> ???? [<000000009f6204a2>] vfs_ioctl fs/ioctl.c:46 [inline] >> ???? [<000000009f6204a2>] file_ioctl fs/ioctl.c:509 [inline] >> ???? [<000000009f6204a2>] do_vfs_ioctl+0x62a/0x810 fs/ioctl.c:696 >> ???? [<00000000b45866de>] ksys_ioctl+0x86/0xb0 fs/ioctl.c:713 >> ???? [<00000000dfb41eb8>] __do_sys_ioctl fs/ioctl.c:720 [inline] >> ???? [<00000000dfb41eb8&g...
2019 Jun 13
0
memory leak in vhost_net_ioctl
...[inline] > [<0000000079ebab38>] vhost_net_set_backend drivers/vhost/net.c:1534 [inline] > [<0000000079ebab38>] vhost_net_ioctl+0xb43/0xc10 drivers/vhost/net.c:1716 > [<000000009f6204a2>] vfs_ioctl fs/ioctl.c:46 [inline] > [<000000009f6204a2>] file_ioctl fs/ioctl.c:509 [inline] > [<000000009f6204a2>] do_vfs_ioctl+0x62a/0x810 fs/ioctl.c:696 > [<00000000b45866de>] ksys_ioctl+0x86/0xb0 fs/ioctl.c:713 > [<00000000dfb41eb8>] __do_sys_ioctl fs/ioctl.c:720 [inline] > [<00000000dfb41eb8>] __se_sys_ioc...
2018 Aug 08
0
KASAN: use-after-free Read in iotlb_access_ok
...576 > ?vhost_umem_clean+0x83/0xf0 drivers/vhost/vhost.c:588 > ?vhost_init_device_iotlb+0x1d7/0x290 drivers/vhost/vhost.c:1568 > ?vhost_net_set_features drivers/vhost/net.c:1292 [inline] > ?vhost_net_ioctl+0xff3/0x1a80 drivers/vhost/net.c:1357 > ?vfs_ioctl fs/ioctl.c:46 [inline] > ?file_ioctl fs/ioctl.c:500 [inline] > ?do_vfs_ioctl+0x1de/0x1720 fs/ioctl.c:684 > ?ksys_ioctl+0xa9/0xd0 fs/ioctl.c:701 > ?__do_sys_ioctl fs/ioctl.c:708 [inline] > ?__se_sys_ioctl fs/ioctl.c:706 [inline] > ?__x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:706 > ?do_syscall_64+0x1b9/0x820 arch/x86/entry/co...
2009 Jan 28
2
[PATCH] fs: Add new pre-allocation ioctls to vfs for compatibility with legacy xfs ioctls
...switch (sr.l_whence) { + case SEEK_SET: + break; + case SEEK_CUR: + sr.l_start += filp->f_pos; + break; + case SEEK_END: + sr.l_start += i_size_read(inode); + break; + default: + return -EINVAL; + } + + return do_fallocate(filp, FALLOC_FL_KEEP_SIZE, sr.l_start, sr.l_len); +} + static int file_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) { @@ -385,6 +417,9 @@ static int file_ioctl(struct file *filp, return put_user(inode->i_sb->s_blocksize, p); case FIONREAD: return put_user(i_size_read(inode) - filp->f_pos, p); + case F_IOC_RESVSP: + case F_IOC_RESVSP64:...
2018 Apr 09
2
kernel BUG at drivers/vhost/vhost.c:LINE! (2)
...vhost_update_used_flags+0x3af/0x4a0 drivers/vhost/vhost.c:1723 > vhost_vq_init_access+0x117/0x590 drivers/vhost/vhost.c:1763 > vhost_vsock_start drivers/vhost/vsock.c:446 [inline] > vhost_vsock_dev_ioctl+0x751/0x920 drivers/vhost/vsock.c:678 > vfs_ioctl fs/ioctl.c:46 [inline] > file_ioctl fs/ioctl.c:500 [inline] > do_vfs_ioctl+0x1cf/0x1650 fs/ioctl.c:684 > ksys_ioctl+0xa9/0xd0 fs/ioctl.c:701 > SYSC_ioctl fs/ioctl.c:708 [inline] > SyS_ioctl+0x24/0x30 fs/ioctl.c:706 > do_syscall_64+0x29e/0x9d0 arch/x86/entry/common.c:287 > entry_SYSCALL_64_after_hwframe+0x42/0x...
2018 Apr 09
2
kernel BUG at drivers/vhost/vhost.c:LINE! (2)
...vhost_update_used_flags+0x3af/0x4a0 drivers/vhost/vhost.c:1723 > vhost_vq_init_access+0x117/0x590 drivers/vhost/vhost.c:1763 > vhost_vsock_start drivers/vhost/vsock.c:446 [inline] > vhost_vsock_dev_ioctl+0x751/0x920 drivers/vhost/vsock.c:678 > vfs_ioctl fs/ioctl.c:46 [inline] > file_ioctl fs/ioctl.c:500 [inline] > do_vfs_ioctl+0x1cf/0x1650 fs/ioctl.c:684 > ksys_ioctl+0xa9/0xd0 fs/ioctl.c:701 > SYSC_ioctl fs/ioctl.c:708 [inline] > SyS_ioctl+0x24/0x30 fs/ioctl.c:706 > do_syscall_64+0x29e/0x9d0 arch/x86/entry/common.c:287 > entry_SYSCALL_64_after_hwframe+0x42/0x...