Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

compat_ioctl: pass compat pointer directly to handlers

Instead of having each handler call compat_ptr, we can now
convert the pointer once and pass that to each handler.
This saves a little bit of both source and object code size.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>

+83 -128
+83 -128
fs/compat_ioctl.c
··· 117 117 #include <asm/fbio.h> 118 118 #endif 119 119 120 - static int w_long(unsigned int fd, unsigned int cmd, unsigned long arg) 120 + static int w_long(unsigned int fd, unsigned int cmd, 121 + compat_ulong_t __user *argp) 121 122 { 122 123 mm_segment_t old_fs = get_fs(); 123 124 int err; 124 125 unsigned long val; 125 - 126 + 126 127 set_fs (KERNEL_DS); 127 128 err = sys_ioctl(fd, cmd, (unsigned long)&val); 128 129 set_fs (old_fs); 129 - if (!err && put_user(val, (u32 __user *)compat_ptr(arg))) 130 + if (!err && put_user(val, argp)) 130 131 return -EFAULT; 131 132 return err; 132 133 } 133 - 134 - static int rw_long(unsigned int fd, unsigned int cmd, unsigned long arg) 134 + 135 + static int rw_long(unsigned int fd, unsigned int cmd, 136 + compat_ulong_t __user *argp) 135 137 { 136 138 mm_segment_t old_fs = get_fs(); 137 - u32 __user *argptr = compat_ptr(arg); 138 139 int err; 139 140 unsigned long val; 140 - 141 - if(get_user(val, argptr)) 141 + 142 + if(get_user(val, argp)) 142 143 return -EFAULT; 143 144 set_fs (KERNEL_DS); 144 145 err = sys_ioctl(fd, cmd, (unsigned long)&val); 145 146 set_fs (old_fs); 146 - if (!err && put_user(val, argptr)) 147 + if (!err && put_user(val, argp)) 147 148 return -EFAULT; 148 149 return err; 149 150 } ··· 158 157 } u; 159 158 }; 160 159 161 - static int do_video_get_event(unsigned int fd, unsigned int cmd, unsigned long arg) 160 + static int do_video_get_event(unsigned int fd, unsigned int cmd, 161 + struct compat_video_event __user *up) 162 162 { 163 163 struct video_event kevent; 164 164 mm_segment_t old_fs = get_fs(); ··· 170 168 set_fs(old_fs); 171 169 172 170 if (!err) { 173 - struct compat_video_event __user *up = compat_ptr(arg); 174 - 175 171 err = put_user(kevent.type, &up->type); 176 172 err |= put_user(kevent.timestamp, &up->timestamp); 177 173 err |= put_user(kevent.u.size.w, &up->u.size.w); ··· 188 188 int32_t size; 189 189 }; 190 190 191 - static int do_video_stillpicture(unsigned int fd, unsigned int cmd, unsigned long arg) 191 + static int do_video_stillpicture(unsigned int fd, unsigned int cmd, 192 + struct compat_video_still_picture __user *up) 192 193 { 193 - struct compat_video_still_picture __user *up; 194 194 struct video_still_picture __user *up_native; 195 195 compat_uptr_t fp; 196 196 int32_t size; 197 197 int err; 198 198 199 - up = (struct compat_video_still_picture __user *) arg; 200 199 err = get_user(fp, &up->iFrame); 201 200 err |= get_user(size, &up->size); 202 201 if (err) ··· 219 220 compat_uptr_t palette; 220 221 }; 221 222 222 - static int do_video_set_spu_palette(unsigned int fd, unsigned int cmd, unsigned long arg) 223 + static int do_video_set_spu_palette(unsigned int fd, unsigned int cmd, 224 + struct compat_video_spu_palette __user *up) 223 225 { 224 - struct compat_video_spu_palette __user *up; 225 226 struct video_spu_palette __user *up_native; 226 227 compat_uptr_t palp; 227 228 int length, err; 228 229 229 - up = (struct compat_video_spu_palette __user *) arg; 230 230 err = get_user(palp, &up->palette); 231 231 err |= get_user(length, &up->length); 232 232 ··· 293 295 return 0; 294 296 } 295 297 296 - static int sg_ioctl_trans(unsigned int fd, unsigned int cmd, unsigned long arg) 298 + static int sg_ioctl_trans(unsigned int fd, unsigned int cmd, 299 + sg_io_hdr32_t __user *sgio32) 297 300 { 298 301 sg_io_hdr_t __user *sgio; 299 - sg_io_hdr32_t __user *sgio32; 300 302 u16 iovec_count; 301 303 u32 data; 302 304 void __user *dxferp; 303 305 int err; 304 306 305 - sgio32 = compat_ptr(arg); 306 307 if (get_user(iovec_count, &sgio32->iovec_count)) 307 308 return -EFAULT; 308 309 ··· 391 394 int unused; 392 395 }; 393 396 394 - static int sg_grt_trans(unsigned int fd, unsigned int cmd, unsigned long arg) 397 + static int sg_grt_trans(unsigned int fd, unsigned int cmd, struct 398 + compat_sg_req_info __user *o) 395 399 { 396 400 int err, i; 397 401 sg_req_info_t __user *r; 398 - struct compat_sg_req_info __user *o = (void __user *)arg; 399 402 r = compat_alloc_user_space(sizeof(sg_req_info_t)*SG_MAX_QUEUE); 400 403 err = sys_ioctl(fd,cmd,(unsigned long)r); 401 404 if (err < 0) ··· 423 426 #define PPPIOCSPASS32 _IOW('t', 71, struct sock_fprog32) 424 427 #define PPPIOCSACTIVE32 _IOW('t', 70, struct sock_fprog32) 425 428 426 - static int ppp_sock_fprog_ioctl_trans(unsigned int fd, unsigned int cmd, unsigned long arg) 429 + static int ppp_sock_fprog_ioctl_trans(unsigned int fd, unsigned int cmd, 430 + struct sock_fprog32 __user *u_fprog32) 427 431 { 428 - struct sock_fprog32 __user *u_fprog32 = compat_ptr(arg); 429 432 struct sock_fprog __user *u_fprog64 = compat_alloc_user_space(sizeof(struct sock_fprog)); 430 433 void __user *fptr64; 431 434 u32 fptr32; ··· 462 465 }; 463 466 #define PPPIOCGIDLE32 _IOR('t', 63, struct ppp_idle32) 464 467 465 - static int ppp_gidle(unsigned int fd, unsigned int cmd, unsigned long arg) 468 + static int ppp_gidle(unsigned int fd, unsigned int cmd, 469 + struct ppp_idle32 __user *idle32) 466 470 { 467 471 struct ppp_idle __user *idle; 468 - struct ppp_idle32 __user *idle32; 469 472 __kernel_time_t xmit, recv; 470 473 int err; 471 474 472 475 idle = compat_alloc_user_space(sizeof(*idle)); 473 - idle32 = compat_ptr(arg); 474 476 475 477 err = sys_ioctl(fd, PPPIOCGIDLE, (unsigned long) idle); 476 478 ··· 483 487 return err; 484 488 } 485 489 486 - static int ppp_scompress(unsigned int fd, unsigned int cmd, unsigned long arg) 490 + static int ppp_scompress(unsigned int fd, unsigned int cmd, 491 + struct ppp_option_data32 __user *odata32) 487 492 { 488 493 struct ppp_option_data __user *odata; 489 - struct ppp_option_data32 __user *odata32; 490 494 __u32 data; 491 495 void __user *datap; 492 496 493 497 odata = compat_alloc_user_space(sizeof(*odata)); 494 - odata32 = compat_ptr(arg); 495 498 496 499 if (get_user(data, &odata32->ptr)) 497 500 return -EFAULT; ··· 505 510 506 511 return sys_ioctl(fd, PPPIOCSCOMPRESS, (unsigned long) odata); 507 512 } 508 - 509 - static int ppp_ioctl_trans(unsigned int fd, unsigned int cmd, unsigned long arg) 510 - { 511 - int err; 512 - 513 - switch (cmd) { 514 - case PPPIOCGIDLE32: 515 - err = ppp_gidle(fd, cmd, arg); 516 - break; 517 - 518 - case PPPIOCSCOMPRESS32: 519 - err = ppp_scompress(fd, cmd, arg); 520 - break; 521 - 522 - default: 523 - do { 524 - static int count; 525 - if (++count <= 20) 526 - printk("ppp_ioctl: Unknown cmd fd(%d) " 527 - "cmd(%08x) arg(%08x)\n", 528 - (int)fd, (unsigned int)cmd, (unsigned int)arg); 529 - } while(0); 530 - err = -EINVAL; 531 - break; 532 - }; 533 - 534 - return err; 535 - } 536 - 537 513 538 514 #ifdef CONFIG_BLOCK 539 515 struct mtget32 { ··· 523 557 }; 524 558 #define MTIOCPOS32 _IOR('m', 3, struct mtpos32) 525 559 526 - static int mt_ioctl_trans(unsigned int fd, unsigned int cmd, unsigned long arg) 560 + static int mt_ioctl_trans(unsigned int fd, unsigned int cmd, void __user *argp) 527 561 { 528 562 mm_segment_t old_fs = get_fs(); 529 563 struct mtget get; ··· 543 577 kcmd = MTIOCGET; 544 578 karg = &get; 545 579 break; 546 - default: 547 - do { 548 - static int count; 549 - if (++count <= 20) 550 - printk("mt_ioctl: Unknown cmd fd(%d) " 551 - "cmd(%08x) arg(%08x)\n", 552 - (int)fd, (unsigned int)cmd, (unsigned int)arg); 553 - } while(0); 554 - return -EINVAL; 555 580 } 556 581 set_fs (KERNEL_DS); 557 582 err = sys_ioctl (fd, kcmd, (unsigned long)karg); ··· 551 594 return err; 552 595 switch (cmd) { 553 596 case MTIOCPOS32: 554 - upos32 = compat_ptr(arg); 597 + upos32 = argp; 555 598 err = __put_user(pos.mt_blkno, &upos32->mt_blkno); 556 599 break; 557 600 case MTIOCGET32: 558 - umget32 = compat_ptr(arg); 601 + umget32 = argp; 559 602 err = __put_user(get.mt_type, &umget32->mt_type); 560 603 err |= __put_user(get.mt_resid, &umget32->mt_resid); 561 604 err |= __put_user(get.mt_dsreg, &umget32->mt_dsreg); ··· 570 613 571 614 #endif /* CONFIG_BLOCK */ 572 615 573 - static int do_smb_getmountuid(unsigned int fd, unsigned int cmd, unsigned long arg) 616 + static int do_smb_getmountuid(unsigned int fd, unsigned int cmd, 617 + compat_uid_t __user *argp) 574 618 { 575 619 mm_segment_t old_fs = get_fs(); 576 620 __kernel_uid_t kuid; ··· 584 626 set_fs(old_fs); 585 627 586 628 if (err >= 0) 587 - err = put_user(kuid, (compat_uid_t __user *)compat_ptr(arg)); 629 + err = put_user(kuid, argp); 588 630 589 631 return err; 590 632 } 591 633 592 - static int ioc_settimeout(unsigned int fd, unsigned int cmd, unsigned long arg) 634 + static int ioc_settimeout(unsigned int fd, unsigned int cmd, 635 + compat_ulong_t __user *argp) 593 636 { 594 - return rw_long(fd, AUTOFS_IOC_SETTIMEOUT, arg); 637 + return rw_long(fd, AUTOFS_IOC_SETTIMEOUT, argp); 595 638 } 596 639 597 640 /* Bluetooth ioctls */ ··· 650 691 return ret ? -EFAULT : 0; 651 692 } 652 693 653 - static int raw_ioctl(unsigned fd, unsigned cmd, unsigned long arg) 694 + static int raw_ioctl(unsigned fd, unsigned cmd, 695 + struct raw32_config_request __user *user_req) 654 696 { 655 697 int ret; 656 698 ··· 659 699 case RAW_SETBIND: 660 700 case RAW_GETBIND: { 661 701 struct raw_config_request req; 662 - struct raw32_config_request __user *user_req = compat_ptr(arg); 663 702 mm_segment_t oldfs = get_fs(); 664 703 665 704 if ((ret = get_raw32_request(&req, user_req))) ··· 673 714 } 674 715 break; 675 716 } 676 - default: 677 - ret = sys_ioctl(fd, cmd, arg); 678 - break; 679 717 } 680 718 return ret; 681 719 } ··· 700 744 compat_int_t reserved[1]; 701 745 }; 702 746 703 - static int serial_struct_ioctl(unsigned fd, unsigned cmd, unsigned long arg) 747 + static int serial_struct_ioctl(unsigned fd, unsigned cmd, 748 + struct serial_struct32 __user *ss32) 704 749 { 705 750 typedef struct serial_struct SS; 706 751 typedef struct serial_struct32 SS32; 707 - struct serial_struct32 __user *ss32 = compat_ptr(arg); 708 752 int err; 709 753 struct serial_struct ss; 710 754 mm_segment_t oldseg = get_fs(); ··· 754 798 755 799 #define USBDEVFS_CONTROL32 _IOWR('U', 0, struct usbdevfs_ctrltransfer32) 756 800 757 - static int do_usbdevfs_control(unsigned int fd, unsigned int cmd, unsigned long arg) 801 + static int do_usbdevfs_control(unsigned int fd, unsigned int cmd, 802 + struct usbdevfs_ctrltransfer32 __user *p32) 758 803 { 759 - struct usbdevfs_ctrltransfer32 __user *p32 = compat_ptr(arg); 760 804 struct usbdevfs_ctrltransfer __user *p; 761 805 __u32 udata; 762 806 p = compat_alloc_user_space(sizeof(*p)); ··· 777 821 778 822 #define USBDEVFS_BULK32 _IOWR('U', 2, struct usbdevfs_bulktransfer32) 779 823 780 - static int do_usbdevfs_bulk(unsigned int fd, unsigned int cmd, unsigned long arg) 824 + static int do_usbdevfs_bulk(unsigned int fd, unsigned int cmd, 825 + struct usbdevfs_bulktransfer32 __user *p32) 781 826 { 782 - struct usbdevfs_bulktransfer32 __user *p32 = compat_ptr(arg); 783 827 struct usbdevfs_bulktransfer __user *p; 784 828 compat_uint_t n; 785 829 compat_caddr_t addr; ··· 808 852 809 853 #define USBDEVFS_DISCSIGNAL32 _IOR('U', 14, struct usbdevfs_disconnectsignal32) 810 854 811 - static int do_usbdevfs_discsignal(unsigned int fd, unsigned int cmd, unsigned long arg) 855 + static int do_usbdevfs_discsignal(unsigned int fd, unsigned int cmd, 856 + struct usbdevfs_disconnectsignal32 __user *udis) 812 857 { 813 858 struct usbdevfs_disconnectsignal kdis; 814 - struct usbdevfs_disconnectsignal32 __user *udis; 815 859 mm_segment_t old_fs; 816 860 u32 uctx; 817 861 int err; 818 - 819 - udis = compat_ptr(arg); 820 862 821 863 if (get_user(kdis.signr, &udis->signr) || 822 864 __get_user(uctx, &udis->context)) ··· 858 904 struct i2c_msg msgs[0]; 859 905 }; 860 906 861 - static int do_i2c_rdwr_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg) 907 + static int do_i2c_rdwr_ioctl(unsigned int fd, unsigned int cmd, 908 + struct i2c_rdwr_ioctl_data32 __user *udata) 862 909 { 863 - struct i2c_rdwr_ioctl_data32 __user *udata = compat_ptr(arg); 864 910 struct i2c_rdwr_aligned __user *tdata; 865 911 struct i2c_msg __user *tmsgs; 866 912 struct i2c_msg32 __user *umsgs; ··· 894 940 return sys_ioctl(fd, cmd, (unsigned long)tdata); 895 941 } 896 942 897 - static int do_i2c_smbus_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg) 943 + static int do_i2c_smbus_ioctl(unsigned int fd, unsigned int cmd, 944 + struct i2c_smbus_ioctl_data32 __user *udata) 898 945 { 899 946 struct i2c_smbus_ioctl_data __user *tdata; 900 - struct i2c_smbus_ioctl_data32 __user *udata; 901 947 compat_caddr_t datap; 902 948 903 949 tdata = compat_alloc_user_space(sizeof(*tdata)); ··· 906 952 if (!access_ok(VERIFY_WRITE, tdata, sizeof(*tdata))) 907 953 return -EFAULT; 908 954 909 - udata = compat_ptr(arg); 910 955 if (!access_ok(VERIFY_READ, udata, sizeof(*udata))) 911 956 return -EFAULT; 912 957 ··· 925 972 #define RTC_EPOCH_READ32 _IOR('p', 0x0d, compat_ulong_t) 926 973 #define RTC_EPOCH_SET32 _IOW('p', 0x0e, compat_ulong_t) 927 974 928 - static int rtc_ioctl(unsigned fd, unsigned cmd, unsigned long arg) 975 + static int rtc_ioctl(unsigned fd, unsigned cmd, void __user *argp) 929 976 { 930 977 mm_segment_t oldfs = get_fs(); 931 978 compat_ulong_t val32; ··· 943 990 if (ret) 944 991 return ret; 945 992 val32 = kval; 946 - return put_user(val32, (unsigned int __user *)arg); 993 + return put_user(val32, (unsigned int __user *)argp); 947 994 case RTC_IRQP_SET32: 948 - return sys_ioctl(fd, RTC_IRQP_SET, arg); 995 + return sys_ioctl(fd, RTC_IRQP_SET, (unsigned long)argp); 949 996 case RTC_EPOCH_SET32: 950 - return sys_ioctl(fd, RTC_EPOCH_SET, arg); 951 - default: 952 - /* unreached */ 953 - return -ENOIOCTLCMD; 997 + return sys_ioctl(fd, RTC_EPOCH_SET, (unsigned long)argp); 954 998 } 999 + 1000 + return -ENOIOCTLCMD; 955 1001 } 956 1002 957 1003 static int 958 - lp_timeout_trans(unsigned int fd, unsigned int cmd, unsigned long arg) 1004 + lp_timeout_trans(unsigned int fd, unsigned int cmd, 1005 + struct compat_timeval __user *tc) 959 1006 { 960 - struct compat_timeval __user *tc = (struct compat_timeval __user *)arg; 961 1007 struct timeval __user *tn = compat_alloc_user_space(sizeof(struct timeval)); 962 1008 struct timeval ts; 963 1009 if (get_user(ts.tv_sec, &tc->tv_sec) || ··· 984 1032 #define FS_IOC_RESVSP64_32 _IOW ('X', 42, struct space_resv_32) 985 1033 986 1034 /* just account for different alignment */ 987 - static int compat_ioctl_preallocate(struct file *file, unsigned long arg) 1035 + static int compat_ioctl_preallocate(struct file *file, 1036 + struct space_resv_32 __user *p32) 988 1037 { 989 - struct space_resv_32 __user *p32 = compat_ptr(arg); 990 1038 struct space_resv __user *p = compat_alloc_user_space(sizeof(*p)); 991 1039 992 1040 if (copy_in_user(&p->l_type, &p32->l_type, sizeof(s16)) || ··· 1672 1720 static long do_ioctl_trans(int fd, unsigned int cmd, 1673 1721 unsigned long arg, struct file *file) 1674 1722 { 1723 + void __user *argp = compat_ptr(arg); 1724 + 1675 1725 switch (cmd) { 1676 1726 case PPPIOCGIDLE32: 1727 + return ppp_gidle(fd, cmd, argp); 1677 1728 case PPPIOCSCOMPRESS32: 1678 - return ppp_ioctl_trans(fd, cmd, arg); 1729 + return ppp_scompress(fd, cmd, argp); 1679 1730 case PPPIOCSPASS32: 1680 1731 case PPPIOCSACTIVE32: 1681 - return ppp_sock_fprog_ioctl_trans(fd, cmd, arg); 1732 + return ppp_sock_fprog_ioctl_trans(fd, cmd, argp); 1682 1733 #ifdef CONFIG_BLOCK 1683 1734 case SG_IO: 1684 - return sg_ioctl_trans(fd, cmd, arg); 1735 + return sg_ioctl_trans(fd, cmd, argp); 1685 1736 case SG_GET_REQUEST_TABLE: 1686 - return sg_grt_trans(fd, cmd, arg); 1737 + return sg_grt_trans(fd, cmd, argp); 1687 1738 case MTIOCGET32: 1688 1739 case MTIOCPOS32: 1689 - return mt_ioctl_trans(fd, cmd, arg); 1740 + return mt_ioctl_trans(fd, cmd, argp); 1690 1741 /* Raw devices */ 1691 1742 case RAW_SETBIND: 1692 1743 case RAW_GETBIND: 1693 - return raw_ioctl(fd, cmd, arg); 1744 + return raw_ioctl(fd, cmd, argp); 1694 1745 #endif 1695 1746 #define AUTOFS_IOC_SETTIMEOUT32 _IOWR(0x93,0x64,unsigned int) 1696 1747 case AUTOFS_IOC_SETTIMEOUT32: 1697 - return ioc_settimeout(fd, cmd, arg); 1748 + return ioc_settimeout(fd, cmd, argp); 1698 1749 /* One SMB ioctl needs translations. */ 1699 1750 #define SMB_IOC_GETMOUNTUID_32 _IOR('u', 1, compat_uid_t) 1700 1751 case SMB_IOC_GETMOUNTUID_32: 1701 - return do_smb_getmountuid(fd, cmd, arg); 1752 + return do_smb_getmountuid(fd, cmd, argp); 1702 1753 /* Serial */ 1703 1754 case TIOCGSERIAL: 1704 1755 case TIOCSSERIAL: 1705 - return serial_struct_ioctl(fd, cmd, arg); 1756 + return serial_struct_ioctl(fd, cmd, argp); 1706 1757 /* Usbdevfs */ 1707 1758 case USBDEVFS_CONTROL32: 1708 - return do_usbdevfs_control(fd, cmd, arg); 1759 + return do_usbdevfs_control(fd, cmd, argp); 1709 1760 case USBDEVFS_BULK32: 1710 - return do_usbdevfs_bulk(fd, cmd, arg); 1761 + return do_usbdevfs_bulk(fd, cmd, argp); 1711 1762 case USBDEVFS_DISCSIGNAL32: 1712 - return do_usbdevfs_discsignal(fd, cmd, arg); 1763 + return do_usbdevfs_discsignal(fd, cmd, argp); 1713 1764 /* i2c */ 1714 1765 case I2C_FUNCS: 1715 - return w_long(fd, cmd, arg); 1766 + return w_long(fd, cmd, argp); 1716 1767 case I2C_RDWR: 1717 - return do_i2c_rdwr_ioctl(fd, cmd, arg); 1768 + return do_i2c_rdwr_ioctl(fd, cmd, argp); 1718 1769 case I2C_SMBUS: 1719 - return do_i2c_smbus_ioctl(fd, cmd, arg); 1770 + return do_i2c_smbus_ioctl(fd, cmd, argp); 1720 1771 /* Not implemented in the native kernel */ 1721 1772 case RTC_IRQP_READ32: 1722 1773 case RTC_IRQP_SET32: 1723 1774 case RTC_EPOCH_READ32: 1724 1775 case RTC_EPOCH_SET32: 1725 - return rtc_ioctl(fd, cmd, arg); 1776 + return rtc_ioctl(fd, cmd, argp); 1726 1777 1727 1778 /* dvb */ 1728 1779 case VIDEO_GET_EVENT: 1729 - return do_video_get_event(fd, cmd, arg); 1780 + return do_video_get_event(fd, cmd, argp); 1730 1781 case VIDEO_STILLPICTURE: 1731 - return do_video_stillpicture(fd, cmd, arg); 1782 + return do_video_stillpicture(fd, cmd, argp); 1732 1783 case VIDEO_SET_SPU_PALETTE: 1733 - return do_video_set_spu_palette(fd, cmd, arg); 1784 + return do_video_set_spu_palette(fd, cmd, argp); 1734 1785 1735 1786 /* lp */ 1736 1787 case LPSETTIMEOUT: 1737 - return lp_timeout_trans(fd, cmd, arg); 1788 + return lp_timeout_trans(fd, cmd, argp); 1738 1789 } 1739 1790 1740 1791 /* ··· 1862 1907 #if defined(CONFIG_IA64) || defined(CONFIG_X86_64) 1863 1908 case FS_IOC_RESVSP_32: 1864 1909 case FS_IOC_RESVSP64_32: 1865 - error = compat_ioctl_preallocate(filp, arg); 1910 + error = compat_ioctl_preallocate(filp, compat_ptr(arg)); 1866 1911 goto out_fput; 1867 1912 #else 1868 1913 case FS_IOC_RESVSP: