History

y2038: rename old time and utime syscalls

The time, stime, utime, utimes, and futimesat system calls are only used on older architectures, and we do not provide y2038 safe variants of them, as they are replaced by clock_gettime64, clock_settime64, and utimensat_time64. However, for consistency it seems better to have the 32-bit architectures that still use them call the "time32" entry points (leaving the traditional handlers for the 64-bit architectures), like we do for system calls that now require two versions. Note: We used to always define __ARCH_WANT_SYS_TIME and __ARCH_WANT_SYS_UTIME and only set __ARCH_WANT_COMPAT_SYS_TIME and __ARCH_WANT_SYS_UTIME32 for compat mode on 64-bit kernels. Now this is reversed: only 64-bit architectures set __ARCH_WANT_SYS_TIME/UTIME, while we need __ARCH_WANT_SYS_TIME32/UTIME32 for 32-bit architectures and compat mode. The resulting asm/unistd.h changes look a bit counterintuitive. This is only a cleanup patch and it should not change any behavior.

Arnd Bergmann committed 7 years ago

Commit d33c5771 parent c70a77222 files · +98 −77Browse files

Unified · Split

22 files
  1. arch/arm/include/asm/unistd.h +2 −2
  2. arch/arm/tools/syscall.tbl +5 −5
  3. arch/m68k/include/asm/unistd.h +2 −2
  4. arch/m68k/kernel/syscalls/syscall.tbl +5 −5
  5. arch/microblaze/include/asm/unistd.h +2 −2
  6. arch/microblaze/kernel/syscalls/syscall.tbl +5 −5
  7. arch/mips/include/asm/unistd.h +2 −2
  8. arch/mips/kernel/syscalls/syscall_o32.tbl +5 −5
  9. arch/parisc/include/asm/unistd.h +6 −3
  10. arch/parisc/kernel/syscalls/syscall.tbl +10 −5
  11. arch/powerpc/include/asm/unistd.h +4 −4
  12. arch/powerpc/kernel/syscalls/syscall.tbl +14 −5
  13. arch/s390/include/asm/unistd.h +1 −1
  14. arch/sh/include/asm/unistd.h +2 −2
  15. arch/sh/kernel/syscalls/syscall.tbl +5 −5
  16. arch/sparc/include/asm/unistd.h +4 −4
  17. arch/sparc/kernel/syscalls/syscall.tbl +9 −5
  18. arch/x86/entry/syscalls/syscall_32.tbl +5 −5
  19. arch/x86/include/asm/unistd.h +4 −4
  20. arch/xtensa/include/asm/unistd.h +1 −1
  21. arch/xtensa/kernel/syscalls/syscall.tbl +3 −3
  22. kernel/time/time.c +2 −2
arch/arm/include/asm/unistd.h+2−2
@@ -26,10 +26,10 @@ · 25 unmodified lines
2626 #define __ARCH_WANT_SYS_SIGPROCMASK
2727 #define __ARCH_WANT_SYS_OLD_MMAP
2828 #define __ARCH_WANT_SYS_OLD_SELECT
29−#define __ARCH_WANT_SYS_UTIME
29+#define __ARCH_WANT_SYS_UTIME32
3030
3131 #if !defined(CONFIG_AEABI) || defined(CONFIG_OABI_COMPAT)
32−#define __ARCH_WANT_SYS_TIME
32+#define __ARCH_WANT_SYS_TIME32
3333 #define __ARCH_WANT_SYS_IPC
3434 #define __ARCH_WANT_SYS_OLDUMOUNT
3535 #define __ARCH_WANT_SYS_ALARM
arch/arm/tools/syscall.tbl+5−5
@@ -24,7 +24,7 @@ · 23 unmodified lines
2424 10 common unlink sys_unlink
2525 11 common execve sys_execve
2626 12 common chdir sys_chdir
27−13 oabi time sys_time
27+13 oabi time sys_time32
2828 14 common mknod sys_mknod
2929 15 common chmod sys_chmod
3030 16 common lchown sys_lchown16
@@ -36,12 +36,12 @@ · 5 unmodified lines
3636 22 oabi umount sys_oldumount
3737 23 common setuid sys_setuid16
3838 24 common getuid sys_getuid16
39−25 oabi stime sys_stime
39+25 oabi stime sys_stime32
4040 26 common ptrace sys_ptrace
4141 27 oabi alarm sys_alarm
4242 # 28 was sys_fstat
4343 29 common pause sys_pause
44−30 oabi utime sys_utime
44+30 oabi utime sys_utime32
4545 # 31 was sys_stty
4646 # 32 was sys_gtty
4747 33 common access sys_access
@@ -283,7 +283,7 @@ · 235 unmodified lines
283283 266 common statfs64 sys_statfs64_wrapper
284284 267 common fstatfs64 sys_fstatfs64_wrapper
285285 268 common tgkill sys_tgkill
286−269 common utimes sys_utimes
286+269 common utimes sys_utimes_time32
287287 270 common arm_fadvise64_64 sys_arm_fadvise64_64
288288 271 common pciconfig_iobase sys_pciconfig_iobase
289289 272 common pciconfig_read sys_pciconfig_read
@@ -340,7 +340,7 @@ · 50 unmodified lines
340340 323 common mkdirat sys_mkdirat
341341 324 common mknodat sys_mknodat
342342 325 common fchownat sys_fchownat
343−326 common futimesat sys_futimesat
343+326 common futimesat sys_futimesat_time32
344344 327 common fstatat64 sys_fstatat64 sys_oabi_fstatat64
345345 328 common unlinkat sys_unlinkat
346346 329 common renameat sys_renameat
arch/m68k/include/asm/unistd.h+2−2
@@ -15,8 +15,8 @@ · 14 unmodified lines
1515 #define __ARCH_WANT_SYS_IPC
1616 #define __ARCH_WANT_SYS_PAUSE
1717 #define __ARCH_WANT_SYS_SIGNAL
18−#define __ARCH_WANT_SYS_TIME
19−#define __ARCH_WANT_SYS_UTIME
18+#define __ARCH_WANT_SYS_TIME32
19+#define __ARCH_WANT_SYS_UTIME32
2020 #define __ARCH_WANT_SYS_WAITPID
2121 #define __ARCH_WANT_SYS_SOCKETCALL
2222 #define __ARCH_WANT_SYS_FADVISE64
arch/m68k/kernel/syscalls/syscall.tbl+5−5
@@ -20,7 +20,7 @@ · 19 unmodified lines
2020 10 common unlink sys_unlink
2121 11 common execve sys_execve
2222 12 common chdir sys_chdir
23−13 common time sys_time
23+13 common time sys_time32
2424 14 common mknod sys_mknod
2525 15 common chmod sys_chmod
2626 16 common chown sys_chown16
@@ -32,12 +32,12 @@ · 5 unmodified lines
3232 22 common umount sys_oldumount
3333 23 common setuid sys_setuid16
3434 24 common getuid sys_getuid16
35−25 common stime sys_stime
35+25 common stime sys_stime32
3636 26 common ptrace sys_ptrace
3737 27 common alarm sys_alarm
3838 28 common oldfstat sys_fstat
3939 29 common pause sys_pause
40−30 common utime sys_utime
40+30 common utime sys_utime32
4141 # 31 was stty
4242 # 32 was gtty
4343 33 common access sys_access
@@ -273,7 +273,7 @@ · 229 unmodified lines
273273 263 common statfs64 sys_statfs64
274274 264 common fstatfs64 sys_fstatfs64
275275 265 common tgkill sys_tgkill
276−266 common utimes sys_utimes
276+266 common utimes sys_utimes_time32
277277 267 common fadvise64_64 sys_fadvise64_64
278278 268 common mbind sys_mbind
279279 269 common get_mempolicy sys_get_mempolicy
@@ -299,7 +299,7 @@ · 19 unmodified lines
299299 289 common mkdirat sys_mkdirat
300300 290 common mknodat sys_mknodat
301301 291 common fchownat sys_fchownat
302−292 common futimesat sys_futimesat
302+292 common futimesat sys_futimesat_time32
303303 293 common fstatat64 sys_fstatat64
304304 294 common unlinkat sys_unlinkat
305305 295 common renameat sys_renameat
arch/microblaze/include/asm/unistd.h+2−2
@@ -21,8 +21,8 @@ · 20 unmodified lines
2121 #define __ARCH_WANT_SYS_GETHOSTNAME
2222 #define __ARCH_WANT_SYS_PAUSE
2323 #define __ARCH_WANT_SYS_SIGNAL
24−#define __ARCH_WANT_SYS_TIME
25−#define __ARCH_WANT_SYS_UTIME
24+#define __ARCH_WANT_SYS_TIME32
25+#define __ARCH_WANT_SYS_UTIME32
2626 #define __ARCH_WANT_SYS_WAITPID
2727 #define __ARCH_WANT_SYS_SOCKETCALL
2828 #define __ARCH_WANT_SYS_FADVISE64
arch/microblaze/kernel/syscalls/syscall.tbl+5−5
@@ -20,7 +20,7 @@ · 19 unmodified lines
2020 10 common unlink sys_unlink
2121 11 common execve sys_execve
2222 12 common chdir sys_chdir
23−13 common time sys_time
23+13 common time sys_time32
2424 14 common mknod sys_mknod
2525 15 common chmod sys_chmod
2626 16 common lchown sys_lchown
@@ -32,12 +32,12 @@ · 5 unmodified lines
3232 22 common umount sys_oldumount
3333 23 common setuid sys_setuid
3434 24 common getuid sys_getuid
35−25 common stime sys_stime
35+25 common stime sys_stime32
3636 26 common ptrace sys_ptrace
3737 27 common alarm sys_alarm
3838 28 common oldfstat sys_ni_syscall
3939 29 common pause sys_pause
40−30 common utime sys_utime
40+30 common utime sys_utime32
4141 31 common stty sys_ni_syscall
4242 32 common gtty sys_ni_syscall
4343 33 common access sys_access
@@ -278,7 +278,7 @@ · 234 unmodified lines
278278 268 common statfs64 sys_statfs64
279279 269 common fstatfs64 sys_fstatfs64
280280 270 common tgkill sys_tgkill
281−271 common utimes sys_utimes
281+271 common utimes sys_utimes_time32
282282 272 common fadvise64_64 sys_fadvise64_64
283283 273 common vserver sys_ni_syscall
284284 274 common mbind sys_mbind
@@ -306,7 +306,7 @@ · 21 unmodified lines
306306 296 common mkdirat sys_mkdirat
307307 297 common mknodat sys_mknodat
308308 298 common fchownat sys_fchownat
309−299 common futimesat sys_futimesat
309+299 common futimesat sys_futimesat_time32
310310 300 common fstatat64 sys_fstatat64
311311 301 common unlinkat sys_unlinkat
312312 302 common renameat sys_renameat
arch/mips/include/asm/unistd.h+2−2
@@ -45,10 +45,10 @@ · 44 unmodified lines
4545 #define __ARCH_WANT_SYS_SIGPROCMASK
4646 # ifdef CONFIG_32BIT
4747 # define __ARCH_WANT_STAT64
48−# define __ARCH_WANT_SYS_TIME
48+# define __ARCH_WANT_SYS_TIME32
4949 # endif
5050 # ifdef CONFIG_MIPS32_O32
51−# define __ARCH_WANT_COMPAT_SYS_TIME
51+# define __ARCH_WANT_SYS_TIME32
5252 # endif
5353 #define __ARCH_WANT_SYS_FORK
5454 #define __ARCH_WANT_SYS_CLONE
arch/mips/kernel/syscalls/syscall_o32.tbl+5−5
@@ -20,7 +20,7 @@ · 19 unmodified lines
2020 10 o32 unlink sys_unlink
2121 11 o32 execve sys_execve compat_sys_execve
2222 12 o32 chdir sys_chdir
23−13 o32 time sys_time sys_time32
23+13 o32 time sys_time32
2424 14 o32 mknod sys_mknod
2525 15 o32 chmod sys_chmod
2626 16 o32 lchown sys_lchown
@@ -33,13 +33,13 @@ · 6 unmodified lines
3333 22 o32 umount sys_oldumount
3434 23 o32 setuid sys_setuid
3535 24 o32 getuid sys_getuid
36−25 o32 stime sys_stime sys_stime32
36+25 o32 stime sys_stime32
3737 26 o32 ptrace sys_ptrace compat_sys_ptrace
3838 27 o32 alarm sys_alarm
3939 # 28 was sys_fstat
4040 28 o32 unused28 sys_ni_syscall
4141 29 o32 pause sys_pause
42−30 o32 utime sys_utime sys_utime32
42+30 o32 utime sys_utime32
4343 31 o32 stty sys_ni_syscall
4444 32 o32 gtty sys_ni_syscall
4545 33 o32 access sys_access
@@ -278,7 +278,7 @@ · 232 unmodified lines
278278 264 o32 clock_getres sys_clock_getres_time32
279279 265 o32 clock_nanosleep sys_clock_nanosleep_time32
280280 266 o32 tgkill sys_tgkill
281−267 o32 utimes sys_utimes sys_utimes_time32
281+267 o32 utimes sys_utimes_time32
282282 268 o32 mbind sys_mbind compat_sys_mbind
283283 269 o32 get_mempolicy sys_get_mempolicy compat_sys_get_mempolicy
284284 270 o32 set_mempolicy sys_set_mempolicy compat_sys_set_mempolicy
@@ -303,7 +303,7 @@ · 18 unmodified lines
303303 289 o32 mkdirat sys_mkdirat
304304 290 o32 mknodat sys_mknodat
305305 291 o32 fchownat sys_fchownat
306−292 o32 futimesat sys_futimesat sys_futimesat_time32
306+292 o32 futimesat sys_futimesat_time32
307307 293 o32 fstatat64 sys_fstatat64 sys_newfstatat
308308 294 o32 unlinkat sys_unlinkat
309309 295 o32 renameat sys_renameat
arch/parisc/include/asm/unistd.h+6−3
@@ -152,10 +152,8 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5) \ · 151 unmodified lines
152152 #define __ARCH_WANT_SYS_GETHOSTNAME
153153 #define __ARCH_WANT_SYS_PAUSE
154154 #define __ARCH_WANT_SYS_SIGNAL
155−#define __ARCH_WANT_SYS_TIME
156−#define __ARCH_WANT_COMPAT_SYS_TIME
155+#define __ARCH_WANT_SYS_TIME32
157156 #define __ARCH_WANT_COMPAT_SYS_SCHED_RR_GET_INTERVAL
158−#define __ARCH_WANT_SYS_UTIME
159157 #define __ARCH_WANT_SYS_UTIME32
160158 #define __ARCH_WANT_SYS_WAITPID
161159 #define __ARCH_WANT_SYS_SOCKETCALL
@@ -170,6 +168,11 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5) \ · 8 unmodified lines
170168 #define __ARCH_WANT_SYS_CLONE
171169 #define __ARCH_WANT_COMPAT_SYS_SENDFILE
172170
171+#ifdef CONFIG_64BIT
172+#define __ARCH_WANT_SYS_TIME
173+#define __ARCH_WANT_SYS_UTIME
174+#endif
175+
173176 #endif /* __ASSEMBLY__ */
174177
175178 #undef STR
arch/parisc/kernel/syscalls/syscall.tbl+10−5
@@ -20,7 +20,8 @@ · 19 unmodified lines
2020 10 common unlink sys_unlink
2121 11 common execve sys_execve compat_sys_execve
2222 12 common chdir sys_chdir
23−13 common time sys_time sys_time32
23+13 32 time sys_time32
24+13 64 time sys_time
2425 14 common mknod sys_mknod
2526 15 common chmod sys_chmod
2627 16 common lchown sys_lchown
@@ -32,12 +33,14 @@ · 5 unmodified lines
3233 22 common bind sys_bind
3334 23 common setuid sys_setuid
3435 24 common getuid sys_getuid
35−25 common stime sys_stime sys_stime32
36+25 32 stime sys_stime32
37+25 64 stime sys_stime
3638 26 common ptrace sys_ptrace compat_sys_ptrace
3739 27 common alarm sys_alarm
3840 28 common fstat sys_newfstat compat_sys_newfstat
3941 29 common pause sys_pause
40−30 common utime sys_utime sys_utime32
42+30 32 utime sys_utime32
43+30 64 utime sys_utime
4144 31 common connect sys_connect
4245 32 common listen sys_listen
4346 33 common access sys_access
@@ -310,7 +313,8 @@ · 266 unmodified lines
310313 276 common mkdirat sys_mkdirat
311314 277 common mknodat sys_mknodat
312315 278 common fchownat sys_fchownat
313−279 common futimesat sys_futimesat sys_futimesat_time32
316+279 32 futimesat sys_futimesat_time32
317+279 64 futimesat sys_futimesat
314318 280 common fstatat64 sys_fstatat64
315319 281 common unlinkat sys_unlinkat
316320 282 common renameat sys_renameat
@@ -374,7 +378,8 @@ · 57 unmodified lines
374378 333 common finit_module sys_finit_module
375379 334 common sched_setattr sys_sched_setattr
376380 335 common sched_getattr sys_sched_getattr
377−336 common utimes sys_utimes sys_utimes_time32
381+336 32 utimes sys_utimes_time32
382+336 64 utimes sys_utimes
378383 337 common renameat2 sys_renameat2
379384 338 common seccomp sys_seccomp
380385 339 common getrandom sys_getrandom
arch/powerpc/include/asm/unistd.h+4−4
@@ -29,8 +29,8 @@ · 28 unmodified lines
2929 #define __ARCH_WANT_SYS_IPC
3030 #define __ARCH_WANT_SYS_PAUSE
3131 #define __ARCH_WANT_SYS_SIGNAL
32−#define __ARCH_WANT_SYS_TIME
33−#define __ARCH_WANT_SYS_UTIME
32+#define __ARCH_WANT_SYS_TIME32
33+#define __ARCH_WANT_SYS_UTIME32
3434 #define __ARCH_WANT_SYS_WAITPID
3535 #define __ARCH_WANT_SYS_SOCKETCALL
3636 #define __ARCH_WANT_SYS_FADVISE64
@@ -45,8 +45,8 @@ · 8 unmodified lines
4545 #define __ARCH_WANT_OLD_STAT
4646 #endif
4747 #ifdef CONFIG_PPC64
48−#define __ARCH_WANT_COMPAT_SYS_TIME
49−#define __ARCH_WANT_SYS_UTIME32
48+#define __ARCH_WANT_SYS_TIME
49+#define __ARCH_WANT_SYS_UTIME
5050 #define __ARCH_WANT_SYS_NEWFSTATAT
5151 #define __ARCH_WANT_COMPAT_SYS_SENDFILE
5252 #endif
arch/powerpc/kernel/syscalls/syscall.tbl+14−5
@@ -20,7 +20,9 @@ · 19 unmodified lines
2020 10 common unlink sys_unlink
2121 11 nospu execve sys_execve compat_sys_execve
2222 12 common chdir sys_chdir
23−13 common time sys_time sys_time32
23+13 32 time sys_time32
24+13 64 time sys_time
25+13 spu time sys_time
2426 14 common mknod sys_mknod
2527 15 common chmod sys_chmod
2628 16 common lchown sys_lchown
@@ -36,14 +38,17 @@ · 9 unmodified lines
3638 22 spu umount sys_ni_syscall
3739 23 common setuid sys_setuid
3840 24 common getuid sys_getuid
39−25 common stime sys_stime sys_stime32
41+25 32 stime sys_stime32
42+25 64 stime sys_stime
43+25 spu stime sys_stime
4044 26 nospu ptrace sys_ptrace compat_sys_ptrace
4145 27 common alarm sys_alarm
4246 28 32 oldfstat sys_fstat sys_ni_syscall
4347 28 64 oldfstat sys_ni_syscall
4448 28 spu oldfstat sys_ni_syscall
4549 29 nospu pause sys_pause
46−30 nospu utime sys_utime sys_utime32
50+30 32 utime sys_utime32
51+30 64 utime sys_utime
4752 31 common stty sys_ni_syscall
4853 32 common gtty sys_ni_syscall
4954 33 common access sys_access
@@ -315,7 +320,9 @@ · 265 unmodified lines
315320 249 64 swapcontext ppc64_swapcontext
316321 249 spu swapcontext sys_ni_syscall
317322 250 common tgkill sys_tgkill
318−251 common utimes sys_utimes sys_utimes_time32
323+251 32 utimes sys_utimes_time32
324+251 64 utimes sys_utimes
325+251 spu utimes sys_utimes
319326 252 common statfs64 sys_statfs64 compat_sys_statfs64
320327 253 common fstatfs64 sys_fstatfs64 compat_sys_fstatfs64
321328 254 32 fadvise64_64 ppc_fadvise64_64
@@ -361,7 +368,9 @@ · 39 unmodified lines
361368 287 common mkdirat sys_mkdirat
362369 288 common mknodat sys_mknodat
363370 289 common fchownat sys_fchownat
364−290 common futimesat sys_futimesat sys_futimesat_time32
371+290 32 futimesat sys_futimesat_time32
372+290 64 futimesat sys_futimesat
373+290 spu utimesat sys_futimesat
365374 291 32 fstatat64 sys_fstatat64
366375 291 64 newfstatat sys_newfstatat
367376 291 spu newfstatat sys_newfstatat
arch/s390/include/asm/unistd.h+1−1
@@ -28,7 +28,7 @@ · 27 unmodified lines
2828 #define __ARCH_WANT_SYS_SIGPENDING
2929 #define __ARCH_WANT_SYS_SIGPROCMASK
3030 # ifdef CONFIG_COMPAT
31−# define __ARCH_WANT_COMPAT_SYS_TIME
31+# define __ARCH_WANT_SYS_TIME32
3232 # define __ARCH_WANT_SYS_UTIME32
3333 # endif
3434 #define __ARCH_WANT_SYS_FORK
arch/sh/include/asm/unistd.h+2−2
@@ -16,8 +16,8 @@ · 15 unmodified lines
1616 # define __ARCH_WANT_SYS_IPC
1717 # define __ARCH_WANT_SYS_PAUSE
1818 # define __ARCH_WANT_SYS_SIGNAL
19−# define __ARCH_WANT_SYS_TIME
20−# define __ARCH_WANT_SYS_UTIME
19+# define __ARCH_WANT_SYS_TIME32
20+# define __ARCH_WANT_SYS_UTIME32
2121 # define __ARCH_WANT_SYS_WAITPID
2222 # define __ARCH_WANT_SYS_SOCKETCALL
2323 # define __ARCH_WANT_SYS_FADVISE64
arch/sh/kernel/syscalls/syscall.tbl+5−5
@@ -20,7 +20,7 @@ · 19 unmodified lines
2020 10 common unlink sys_unlink
2121 11 common execve sys_execve
2222 12 common chdir sys_chdir
23−13 common time sys_time
23+13 common time sys_time32
2424 14 common mknod sys_mknod
2525 15 common chmod sys_chmod
2626 16 common lchown sys_lchown16
@@ -32,12 +32,12 @@ · 5 unmodified lines
3232 22 common umount sys_oldumount
3333 23 common setuid sys_setuid16
3434 24 common getuid sys_getuid16
35−25 common stime sys_stime
35+25 common stime sys_stime32
3636 26 common ptrace sys_ptrace
3737 27 common alarm sys_alarm
3838 28 common oldfstat sys_fstat
3939 29 common pause sys_pause
40−30 common utime sys_utime
40+30 common utime sys_utime32
4141 # 31 was stty
4242 # 32 was gtty
4343 33 common access sys_access
@@ -278,7 +278,7 @@ · 234 unmodified lines
278278 268 common statfs64 sys_statfs64
279279 269 common fstatfs64 sys_fstatfs64
280280 270 common tgkill sys_tgkill
281−271 common utimes sys_utimes
281+271 common utimes sys_utimes_time32
282282 272 common fadvise64_64 sys_fadvise64_64_wrapper
283283 # 273 is reserved for vserver
284284 274 common mbind sys_mbind
@@ -306,7 +306,7 @@ · 21 unmodified lines
306306 296 common mkdirat sys_mkdirat
307307 297 common mknodat sys_mknodat
308308 298 common fchownat sys_fchownat
309−299 common futimesat sys_futimesat
309+299 common futimesat sys_futimesat_time32
310310 300 common fstatat64 sys_fstatat64
311311 301 common unlinkat sys_unlinkat
312312 302 common renameat sys_renameat
arch/sparc/include/asm/unistd.h+4−4
@@ -30,8 +30,8 @@ · 29 unmodified lines
3030 #define __ARCH_WANT_SYS_GETHOSTNAME
3131 #define __ARCH_WANT_SYS_PAUSE
3232 #define __ARCH_WANT_SYS_SIGNAL
33−#define __ARCH_WANT_SYS_TIME
34−#define __ARCH_WANT_SYS_UTIME
33+#define __ARCH_WANT_SYS_TIME32
34+#define __ARCH_WANT_SYS_UTIME32
3535 #define __ARCH_WANT_SYS_WAITPID
3636 #define __ARCH_WANT_SYS_SOCKETCALL
3737 #define __ARCH_WANT_SYS_FADVISE64
@@ -43,8 +43,8 @@ · 5 unmodified lines
4343 #ifdef __32bit_syscall_numbers__
4444 #define __ARCH_WANT_SYS_IPC
4545 #else
46−#define __ARCH_WANT_COMPAT_SYS_TIME
47−#define __ARCH_WANT_SYS_UTIME32
46+#define __ARCH_WANT_SYS_TIME
47+#define __ARCH_WANT_SYS_UTIME
4848 #define __ARCH_WANT_COMPAT_SYS_SENDFILE
4949 #endif
5050
arch/sparc/kernel/syscalls/syscall.tbl+9−5
@@ -44,7 +44,8 @@ · 43 unmodified lines
4444 28 common sigaltstack sys_sigaltstack compat_sys_sigaltstack
4545 29 32 pause sys_pause
4646 29 64 pause sys_nis_syscall
47−30 common utime sys_utime sys_utime32
47+30 32 utime sys_utime32
48+30 64 utime sys_utime
4849 31 32 lchown32 sys_lchown
4950 32 32 fchown32 sys_fchown
5051 33 common access sys_access
@@ -169,7 +170,8 @@ · 118 unmodified lines
169170 135 common socketpair sys_socketpair
170171 136 common mkdir sys_mkdir
171172 137 common rmdir sys_rmdir
172−138 common utimes sys_utimes sys_utimes_time32
173+138 32 utimes sys_utimes_time32
174+138 64 utimes sys_utimes
173175 139 common stat64 sys_stat64 compat_sys_stat64
174176 140 common sendfile64 sys_sendfile64
175177 141 common getpeername sys_getpeername
@@ -274,9 +276,10 @@ · 98 unmodified lines
274276 228 common setfsuid sys_setfsuid16
275277 229 common setfsgid sys_setfsgid16
276278 230 common _newselect sys_select compat_sys_select
277−231 32 time sys_time sys_time32
279+231 32 time sys_time32
278280 232 common splice sys_splice
279−233 common stime sys_stime sys_stime32
281+233 32 stime sys_stime32
282+233 64 stime sys_stime
280283 234 common statfs64 sys_statfs64 compat_sys_statfs64
281284 235 common fstatfs64 sys_fstatfs64 compat_sys_fstatfs64
282285 236 common _llseek sys_llseek
@@ -345,7 +348,8 @@ · 62 unmodified lines
345348 285 common mkdirat sys_mkdirat
346349 286 common mknodat sys_mknodat
347350 287 common fchownat sys_fchownat
348−288 common futimesat sys_futimesat sys_futimesat_time32
351+288 32 futimesat sys_futimesat_time32
352+288 64 futimesat sys_futimesat
349353 289 common fstatat64 sys_fstatat64 compat_sys_fstatat64
350354 290 common unlinkat sys_unlinkat
351355 291 common renameat sys_renameat
arch/x86/entry/syscalls/syscall_32.tbl+5−5
@@ -24,7 +24,7 @@ · 23 unmodified lines
2424 10 i386 unlink sys_unlink __ia32_sys_unlink
2525 11 i386 execve sys_execve __ia32_compat_sys_execve
2626 12 i386 chdir sys_chdir __ia32_sys_chdir
27−13 i386 time sys_time __ia32_sys_time32
27+13 i386 time sys_time32 __ia32_sys_time32
2828 14 i386 mknod sys_mknod __ia32_sys_mknod
2929 15 i386 chmod sys_chmod __ia32_sys_chmod
3030 16 i386 lchown sys_lchown16 __ia32_sys_lchown16
@@ -36,12 +36,12 @@ · 5 unmodified lines
3636 22 i386 umount sys_oldumount __ia32_sys_oldumount
3737 23 i386 setuid sys_setuid16 __ia32_sys_setuid16
3838 24 i386 getuid sys_getuid16 __ia32_sys_getuid16
39−25 i386 stime sys_stime __ia32_sys_stime32
39+25 i386 stime sys_stime32 __ia32_sys_stime32
4040 26 i386 ptrace sys_ptrace __ia32_compat_sys_ptrace
4141 27 i386 alarm sys_alarm __ia32_sys_alarm
4242 28 i386 oldfstat sys_fstat __ia32_sys_fstat
4343 29 i386 pause sys_pause __ia32_sys_pause
44−30 i386 utime sys_utime __ia32_sys_utime32
44+30 i386 utime sys_utime32 __ia32_sys_utime32
4545 31 i386 stty
4646 32 i386 gtty
4747 33 i386 access sys_access __ia32_sys_access
@@ -282,7 +282,7 @@ · 234 unmodified lines
282282 268 i386 statfs64 sys_statfs64 __ia32_compat_sys_statfs64
283283 269 i386 fstatfs64 sys_fstatfs64 __ia32_compat_sys_fstatfs64
284284 270 i386 tgkill sys_tgkill __ia32_sys_tgkill
285−271 i386 utimes sys_utimes __ia32_sys_utimes_time32
285+271 i386 utimes sys_utimes_time32 __ia32_sys_utimes_time32
286286 272 i386 fadvise64_64 sys_fadvise64_64 __ia32_compat_sys_x86_fadvise64_64
287287 273 i386 vserver
288288 274 i386 mbind sys_mbind __ia32_sys_mbind
@@ -310,7 +310,7 @@ · 21 unmodified lines
310310 296 i386 mkdirat sys_mkdirat __ia32_sys_mkdirat
311311 297 i386 mknodat sys_mknodat __ia32_sys_mknodat
312312 298 i386 fchownat sys_fchownat __ia32_sys_fchownat
313−299 i386 futimesat sys_futimesat __ia32_sys_futimesat_time32
313+299 i386 futimesat sys_futimesat_time32 __ia32_sys_futimesat_time32
314314 300 i386 fstatat64 sys_fstatat64 __ia32_compat_sys_x86_fstatat
315315 301 i386 unlinkat sys_unlinkat __ia32_sys_unlinkat
316316 302 i386 renameat sys_renameat __ia32_sys_renameat
arch/x86/include/asm/unistd.h+4−4
@@ -23,8 +23,8 @@ · 22 unmodified lines
2323
2424 # include <asm/unistd_64.h>
2525 # include <asm/unistd_64_x32.h>
26−# define __ARCH_WANT_COMPAT_SYS_TIME
27−# define __ARCH_WANT_SYS_UTIME32
26+# define __ARCH_WANT_SYS_TIME
27+# define __ARCH_WANT_SYS_UTIME
2828 # define __ARCH_WANT_COMPAT_SYS_PREADV64
2929 # define __ARCH_WANT_COMPAT_SYS_PWRITEV64
3030 # define __ARCH_WANT_COMPAT_SYS_PREADV64V2
@@ -48,8 +48,8 @@ · 17 unmodified lines
4848 # define __ARCH_WANT_SYS_SIGPENDING
4949 # define __ARCH_WANT_SYS_SIGPROCMASK
5050 # define __ARCH_WANT_SYS_SOCKETCALL
51−# define __ARCH_WANT_SYS_TIME
52−# define __ARCH_WANT_SYS_UTIME
51+# define __ARCH_WANT_SYS_TIME32
52+# define __ARCH_WANT_SYS_UTIME32
5353 # define __ARCH_WANT_SYS_WAITPID
5454 # define __ARCH_WANT_SYS_FORK
5555 # define __ARCH_WANT_SYS_VFORK
arch/xtensa/include/asm/unistd.h+1−1
@@ -7,7 +7,7 @@ · 6 unmodified lines
77
88 #define __ARCH_WANT_NEW_STAT
99 #define __ARCH_WANT_STAT64
10−#define __ARCH_WANT_SYS_UTIME
10+#define __ARCH_WANT_SYS_UTIME32
1111 #define __ARCH_WANT_SYS_GETPGRP
1212
1313 #define NR_syscalls __NR_syscalls
arch/xtensa/kernel/syscalls/syscall.tbl+3−3
@@ -72,8 +72,8 @@ · 71 unmodified lines
7272 61 common fcntl64 sys_fcntl64
7373 62 common fallocate sys_fallocate
7474 63 common fadvise64_64 xtensa_fadvise64_64
75−64 common utime sys_utime
76−65 common utimes sys_utimes
75+64 common utime sys_utime32
76+65 common utimes sys_utimes_time32
7777 66 common ioctl sys_ioctl
7878 67 common fcntl sys_fcntl
7979 68 common setxattr sys_setxattr
@@ -318,7 +318,7 @@ · 238 unmodified lines
318318 295 common readlinkat sys_readlinkat
319319 296 common utimensat sys_utimensat_time32
320320 297 common fchownat sys_fchownat
321−298 common futimesat sys_futimesat
321+298 common futimesat sys_futimesat_time32
322322 299 common fstatat64 sys_fstatat64
323323 300 common fchmodat sys_fchmodat
324324 301 common faccessat sys_faccessat
kernel/time/time.c+2−2
@@ -99,7 +99,7 @@ SYSCALL_DEFINE1(stime, time_t __user *, tptr) · 98 unmodified lines
9999 #endif /* __ARCH_WANT_SYS_TIME */
100100
101101 #ifdef CONFIG_COMPAT_32BIT_TIME
102−#ifdef __ARCH_WANT_COMPAT_SYS_TIME
102+#ifdef __ARCH_WANT_SYS_TIME32
103103
104104 /* old_time32_t is a 32 bit "long" and needs to get converted. */
105105 SYSCALL_DEFINE1(time32, old_time32_t __user *, tloc)
@@ -134,7 +134,7 @@ SYSCALL_DEFINE1(stime32, old_time32_t __user *, tptr) · 28 unmodified lines
134134 return 0;
135135 }
136136
137−#endif /* __ARCH_WANT_COMPAT_SYS_TIME */
137+#endif /* __ARCH_WANT_SYS_TIME32 */
138138 #endif
139139
140140 SYSCALL_DEFINE2(gettimeofday, struct timeval __user *, tv,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t