Skip to content

Commit 6b7b3f1

Browse files
author
Allan Sandfeld Jensen
committed
[Backport] Linux sandbox: update syscalls numbers on 32-bit platforms
Many *time64 syscalls are being introduced, this CL updates the system call numbers on 32-bit systems to include them. Change-Id: Ia22b2b7c92fbd3001d44cb9cc547431d0d6988bf Reviewed-by: Robert Sesek <rsesek@chromium.org> Commit-Queue: Matthew Denton <mpdenton@chromium.org> Cr-Commit-Position: refs/heads/master@{#863096} Reviewed-by: Michal Klocek <michal.klocek@qt.io>
1 parent faae106 commit 6b7b3f1

File tree

3 files changed

+430
-2
lines changed

3 files changed

+430
-2
lines changed

chromium/sandbox/linux/system_headers/arm_linux_syscalls.h

Lines changed: 158 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1453,12 +1453,168 @@
14531453
#define __NR_landlock_restrict_self (__NR_SYSCALL_BASE + 446)
14541454
#endif
14551455

1456+
#if !defined(__NR_migrate_pages)
1457+
#define __NR_migrate_pages (__NR_SYSCALL_BASE + 400)
1458+
#endif
1459+
1460+
#if !defined(__NR_kexec_file_load)
1461+
#define __NR_kexec_file_load (__NR_SYSCALL_BASE + 401)
1462+
#endif
1463+
14561464
#if !defined(__NR_clock_gettime64)
1457-
#define __NR_clock_gettime64 (__NR_SYSCALL_BASE+403)
1465+
#define __NR_clock_gettime64 (__NR_SYSCALL_BASE + 403)
1466+
#endif
1467+
1468+
#if !defined(__NR_clock_settime64)
1469+
#define __NR_clock_settime64 (__NR_SYSCALL_BASE + 404)
1470+
#endif
1471+
1472+
#if !defined(__NR_clock_adjtime64)
1473+
#define __NR_clock_adjtime64 (__NR_SYSCALL_BASE + 405)
1474+
#endif
1475+
1476+
#if !defined(__NR_clock_getres_time64)
1477+
#define __NR_clock_getres_time64 (__NR_SYSCALL_BASE + 406)
14581478
#endif
14591479

14601480
#if !defined(__NR_clock_nanosleep_time64)
1461-
#define __NR_clock_nanosleep_time64 (__NR_SYSCALL_BASE+407)
1481+
#define __NR_clock_nanosleep_time64 (__NR_SYSCALL_BASE + 407)
1482+
#endif
1483+
1484+
#if !defined(__NR_timer_gettime64)
1485+
#define __NR_timer_gettime64 (__NR_SYSCALL_BASE + 408)
1486+
#endif
1487+
1488+
#if !defined(__NR_timer_settime64)
1489+
#define __NR_timer_settime64 (__NR_SYSCALL_BASE + 409)
1490+
#endif
1491+
1492+
#if !defined(__NR_timerfd_gettime64)
1493+
#define __NR_timerfd_gettime64 (__NR_SYSCALL_BASE + 410)
1494+
#endif
1495+
1496+
#if !defined(__NR_timerfd_settime64)
1497+
#define __NR_timerfd_settime64 (__NR_SYSCALL_BASE + 411)
1498+
#endif
1499+
1500+
#if !defined(__NR_utimensat_time64)
1501+
#define __NR_utimensat_time64 (__NR_SYSCALL_BASE + 412)
1502+
#endif
1503+
1504+
#if !defined(__NR_pselect6_time64)
1505+
#define __NR_pselect6_time64 (__NR_SYSCALL_BASE + 413)
1506+
#endif
1507+
1508+
#if !defined(__NR_ppoll_time64)
1509+
#define __NR_ppoll_time64 (__NR_SYSCALL_BASE + 414)
1510+
#endif
1511+
1512+
#if !defined(__NR_io_pgetevents_time64)
1513+
#define __NR_io_pgetevents_time64 (__NR_SYSCALL_BASE + 416)
1514+
#endif
1515+
1516+
#if !defined(__NR_recvmmsg_time64)
1517+
#define __NR_recvmmsg_time64 (__NR_SYSCALL_BASE + 417)
1518+
#endif
1519+
1520+
#if !defined(__NR_mq_timedsend_time64)
1521+
#define __NR_mq_timedsend_time64 (__NR_SYSCALL_BASE + 418)
1522+
#endif
1523+
1524+
#if !defined(__NR_mq_timedreceive_time64)
1525+
#define __NR_mq_timedreceive_time64 (__NR_SYSCALL_BASE + 419)
1526+
#endif
1527+
1528+
#if !defined(__NR_semtimedop_time64)
1529+
#define __NR_semtimedop_time64 (__NR_SYSCALL_BASE + 420)
1530+
#endif
1531+
1532+
#if !defined(__NR_rt_sigtimedwait_time64)
1533+
#define __NR_rt_sigtimedwait_time64 (__NR_SYSCALL_BASE + 421)
1534+
#endif
1535+
1536+
#if !defined(__NR_futex_time64)
1537+
#define __NR_futex_time64 (__NR_SYSCALL_BASE + 422)
1538+
#endif
1539+
1540+
#if !defined(__NR_sched_rr_get_interval_time64)
1541+
#define __NR_sched_rr_get_interval_time64 (__NR_SYSCALL_BASE + 423)
1542+
#endif
1543+
1544+
#if !defined(__NR_pidfd_send_signal)
1545+
#define __NR_pidfd_send_signal (__NR_SYSCALL_BASE + 424)
1546+
#endif
1547+
1548+
#if !defined(__NR_io_uring_setup)
1549+
#define __NR_io_uring_setup (__NR_SYSCALL_BASE + 425)
1550+
#endif
1551+
1552+
#if !defined(__NR_io_uring_enter)
1553+
#define __NR_io_uring_enter (__NR_SYSCALL_BASE + 426)
1554+
#endif
1555+
1556+
#if !defined(__NR_io_uring_register)
1557+
#define __NR_io_uring_register (__NR_SYSCALL_BASE + 427)
1558+
#endif
1559+
1560+
#if !defined(__NR_open_tree)
1561+
#define __NR_open_tree (__NR_SYSCALL_BASE + 428)
1562+
#endif
1563+
1564+
#if !defined(__NR_move_mount)
1565+
#define __NR_move_mount (__NR_SYSCALL_BASE + 429)
1566+
#endif
1567+
1568+
#if !defined(__NR_fsopen)
1569+
#define __NR_fsopen (__NR_SYSCALL_BASE + 430)
1570+
#endif
1571+
1572+
#if !defined(__NR_fsconfig)
1573+
#define __NR_fsconfig (__NR_SYSCALL_BASE + 431)
1574+
#endif
1575+
1576+
#if !defined(__NR_fsmount)
1577+
#define __NR_fsmount (__NR_SYSCALL_BASE + 432)
1578+
#endif
1579+
1580+
#if !defined(__NR_fspick)
1581+
#define __NR_fspick (__NR_SYSCALL_BASE + 433)
1582+
#endif
1583+
1584+
#if !defined(__NR_pidfd_open)
1585+
#define __NR_pidfd_open (__NR_SYSCALL_BASE + 434)
1586+
#endif
1587+
1588+
#if !defined(__NR_clone3)
1589+
#define __NR_clone3 (__NR_SYSCALL_BASE + 435)
1590+
#endif
1591+
1592+
#if !defined(__NR_close_range)
1593+
#define __NR_close_range (__NR_SYSCALL_BASE + 436)
1594+
#endif
1595+
1596+
#if !defined(__NR_openat2)
1597+
#define __NR_openat2 (__NR_SYSCALL_BASE + 437)
1598+
#endif
1599+
1600+
#if !defined(__NR_pidfd_getfd)
1601+
#define __NR_pidfd_getfd (__NR_SYSCALL_BASE + 438)
1602+
#endif
1603+
1604+
#if !defined(__NR_faccessat2)
1605+
#define __NR_faccessat2 (__NR_SYSCALL_BASE + 439)
1606+
#endif
1607+
1608+
#if !defined(__NR_process_madvise)
1609+
#define __NR_process_madvise (__NR_SYSCALL_BASE + 440)
1610+
#endif
1611+
1612+
#if !defined(__NR_epoll_pwait2)
1613+
#define __NR_epoll_pwait2 (__NR_SYSCALL_BASE + 441)
1614+
#endif
1615+
1616+
#if !defined(__NR_mount_setattr)
1617+
#define __NR_mount_setattr (__NR_SYSCALL_BASE + 442)
14621618
#endif
14631619

14641620
// ARM private syscalls.

0 commit comments

Comments
 (0)