profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/ldv-alt/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

strace/strace 1207

strace is a diagnostic, debugging and instructional userspace utility for Linux

besser82/libxcrypt 63

Extended crypt library for descrypt, md5crypt, bcrypt, and others

altlinux/girar 1

ALT build service

altlinux/libutempter 1

A library for utmp/wtmp updates

altlinux/gear 0

Get Every Archive from git package Repository

altlinux/gitery 0

SSH interface for a git hosting

altlinux/hasher 0

Safe package building technology

ldv-alt/flex 0

The Fast Lexical Analyzer - scanner generator for lexing in C and C++

ldv-alt/FreeGLUT 0

Copy of FreeGLUT's svn repo on sourceforge, for easy contribution

issue commentlinux-pam/linux-pam

Incompatibility with systemd 249

On Fri, Jul 23, 2021 at 01:17:00PM -0700, Mike Gilbert wrote:

Commit f220cace205332a3dc34e7b37a85e7627e097e7d changed pam_unix so that it only executes unix_chkpwd if getspnam sets errno to EACCES.

This relies on libnss_files setting errno to EACCES when /etc/shadow cannot be opened.

If libnss_files is not the last NSS module listed for the shadow database, subsequent NSS modules (like libnss_systemd) may overwrite errno with some other value (like 0).

nss modules are not permitted to do that because such behaviour would violate the getspnam(3) contract. Please file a bug report to the incompatible nss module.

Arfrever

comment created time in 2 minutes

issue commentlinux-pam/linux-pam

Documentation needs updated for pam_set_item

On Sat, Jul 24, 2021 at 07:39:01PM -0700, MLouden wrote:

Using pam_set_item() for setting items: PAM_RHOST PAM_AUTHTOK PAM_OLDAUTHTOK PAM_RUSER PAM_USER_PROMPT

returns op-code 29 (PAM_DOMAIN_UNKNOWN).

In linux-pam, return value 29 means PAM_BAD_ITEM, see https://github.com/linux-pam/linux-pam/blob/master/libpam/include/security/_pam_types.h

PAM_DOMAIN_UNKNOWN is provided by an alternative PAM implementation, see https://www.openpam.org/browser/openpam/trunk/include/security/pam_constants.h

mllegoman

comment created time in 13 minutes

push eventlinux-pam/linux-pam

simmon

commit sha 3ec603ed0b4ab05aa248b9be0e45e9e7ec86f785

po: update translations using Weblate (Korean) Currently translated at 100.0% (100 of 100 strings). Translate-URL: https://translate.fedoraproject.org/projects/linux-pam/master/ko/

view details

push time in 10 hours

push eventstrace/strace

Eugene Syromyatnikov

commit sha 383e50a3bafbfd1863694a4c1924aa214ced2ae1

tests: additional diagnostics in sockopt-timestamp As of now, it prints only the actual cmsg_level/cmsg_type (that are also likely to be print by strace itself) and not the expected ones; since it is the purposely incorrect output that is not supposed to match, add the expected cmsg_level/cmsg_type as well to aid debugging. * tests/sockopt-timestamp.c (test_sockopt): Print expected cmsg_level and cmsg_type in an "expected ..." comment.

view details

Dmitry V. Levin

commit sha 0211fdc31381fde93f9a561fbcfab5b17efbe850

tests: change sockopt-timestamp test to use syscall(__NR_recvmsg) Since the glibc recvmsg wrapper became unsuitable for our needs, invoke __NR_recvmsg syscall directly. * tests/sockopt-timestamp.c: Include "scno.h" and <errno.h>, conditionalize on __NR_recvmsg. (TEST_OLD_SCM_TIMESTAMPS): Remove. (k_recvmsg): New function. (test_sockopt): Use it instead of recvmsg.

view details

push time in 14 hours

push eventstrace/strace

Dmitry V. Levin

commit sha 0211fdc31381fde93f9a561fbcfab5b17efbe850

tests: change sockopt-timestamp test to use syscall(__NR_recvmsg) Since the glibc recvmsg wrapper became unsuitable for our needs, invoke __NR_recvmsg syscall directly. * tests/sockopt-timestamp.c: Include "scno.h" and <errno.h>, conditionalize on __NR_recvmsg. (TEST_OLD_SCM_TIMESTAMPS): Remove. (k_recvmsg): New function. (test_sockopt): Use it instead of recvmsg.

view details

push time in 19 hours

push eventstrace/strace

Eugene Syromyatnikov

commit sha 383e50a3bafbfd1863694a4c1924aa214ced2ae1

tests: additional diagnostics in sockopt-timestamp As of now, it prints only the actual cmsg_level/cmsg_type (that are also likely to be print by strace itself) and not the expected ones; since it is the purposely incorrect output that is not supposed to match, add the expected cmsg_level/cmsg_type as well to aid debugging. * tests/sockopt-timestamp.c (test_sockopt): Print expected cmsg_level and cmsg_type in an "expected ..." comment.

view details

Dmitry V. Levin

commit sha 020f25b47b39b89c771bcf3b1a394a5b6407ccfc

tests: change sockopt-timestamp test to use syscall(__NR_recvmsg) Since the glibc recvmsg wrapper became unsuitable for our needs, invoke __NR_recvmsg syscall directly. * tests/sockopt-timestamp.c: Include "scno.h" and <errno.h>, conditionalize on __NR_recvmsg. (TEST_OLD_SCM_TIMESTAMPS): Remove. (k_recvmsg): New function. (test_sockopt): Use it instead of recvmsg.

view details

push time in 2 days

push eventstrace/strace

Dmitry V. Levin

commit sha dd2b0a7369cd0b9bae946bce601544569e83fce4

tests: skip pidns tests when NS_GET_USERNS ioctl is not permitted Treat EPERM as a valid error code for NS_GET_USERNS ioctl. * tests/pidns.c (check_ns_ioctl): Skip if NS_GET_USERNS ioctl fails with EPERM. Resolves: https://github.com/strace/strace/issues/190

view details

push time in 2 days

PR closed strace/strace

tests/pidns.c: skip some namespace tests in chroot

ioctl(NS_GET_USERNS) fails when run in a chrooted environment, which is a common way to build with distributions these days.

Handling EPERM allows these tests to be skipped when the the tests are run in the same environment.

+13 -4

6 comments

1 changed file

chexum

pr closed time in 2 days

push eventstrace/strace

Dmitry V. Levin

commit sha b8f6590436d7f5e51fffb30c7b3547b85ff3de02

ax_code_coverage.m4: simplify CODE_COVERAGE_OUTPUT_* This is going to be used by the follow-up commit. * m4/ax_code_coverage.m4 (CODE_COVERAGE_RULES_CAPTURE): Create directory part of CODE_COVERAGE_OUTPUT_FILE and CODE_COVERAGE_OUTPUT_DIRECTORY. (CODE_COVERAGE_OUTPUT_FILE): Change to coverage/coverage-info. (CODE_COVERAGE_OUTPUT_DIRECTORY): Change to coverage/coverage-report. . gitignore: Add /coverage.

view details

Dmitry V. Levin

commit sha d58a0b38b268b3ed1ab0d018147be6dd0e802911

ci: upload coverage using codecov/codecov-action@v2 According to https://github.com/codecov/codecov-bash/#readme, https://codecov.io/bash is deprecated and will cease to function. * .github/workflows/ci.yml (coverage): Upload coverage using codecov/codecov-action@v2. * ci/install-dependencies.sh [CHECK == coverage]: Install lcov instead of downloading codecov.bash. * ci/run-build-and-tests.sh [CHECK == coverage]: Collect coverage info using "make code-coverage-capture" instead of codecov.bash.

view details

push time in 2 days

push eventstrace/strace

Dmitry V. Levin

commit sha 608a6bb7181287240c1c2b0450ef109daa282793

ax_code_coverage.m4: simplify CODE_COVERAGE_OUTPUT_* This is going to be used by the follow-up commit. * m4/ax_code_coverage.m4 (CODE_COVERAGE_RULES_CAPTURE): Create directory part of CODE_COVERAGE_OUTPUT_FILE and CODE_COVERAGE_OUTPUT_DIRECTORY. (CODE_COVERAGE_OUTPUT_FILE): Change to coverage/coverage-info. (CODE_COVERAGE_OUTPUT_DIRECTORY): Change to coverage/coverage-report. . gitignore: Add /coverage.

view details

Dmitry V. Levin

commit sha aea29226f3e78094c8eec57fa346b67e295edf75

ci: upload coverage using codecov/codecov-action@v2 According to https://github.com/codecov/codecov-bash/#readme, https://codecov.io/bash is deprecated and will cease to function. * .github/workflows/ci.yml (coverage): Upload coverage using codecov/codecov-action@v2. * ci/install-dependencies.sh [CHECK == coverage]: Install lcov instead of downloading codecov.bash. * ci/run-build-and-tests.sh [CHECK == coverage]: Collect coverage info using "make code-coverage-capture" instead of codecov.bash.

view details

push time in 2 days

push eventstrace/strace

Dmitry V. Levin

commit sha dd2b0a7369cd0b9bae946bce601544569e83fce4

tests: skip pidns tests when NS_GET_USERNS ioctl is not permitted Treat EPERM as a valid error code for NS_GET_USERNS ioctl. * tests/pidns.c (check_ns_ioctl): Skip if NS_GET_USERNS ioctl fails with EPERM. Resolves: https://github.com/strace/strace/issues/190

view details

push time in 2 days

push eventstrace/strace

Eugene Syromyatnikov

commit sha e4feb6b8508d425942f7ae1013072e808ba30a53

tests: move DIAG_PUSH_IGNORE_NONNULL/DIAG_POP_IGNORE_NONNULL outside main Otherwise, gcc-4.4.7 (at least) complains: preadv.c:69: error: #pragma GCC diagnostic not allowed inside functions preadv.c:72: error: #pragma GCC diagnostic not allowed inside functions pwritev.c:112: error: #pragma GCC diagnostic not allowed inside functions pwritev.c:114: error: #pragma GCC diagnostic not allowed inside functions * tests/preadv.c: Move DIAG_PUSH_IGNORE_NONNULL/DIAG_POP_IGNORE_NONNULL outside main(). * tests/pwritev.c: Likewise. Complements: v5.13~20 "tests: ignore -Wnonnull in preadv/pwritev tests"

view details

Eugene Syromyatnikov

commit sha ba1ca1e1fc8ca7bafc39a6d6f62c309f75e2be30

tests: relax -a check in prlimit64 test The initial "-a48" check was too strict as it has hit some false positives on 32-bit arches: -prlimit64(15083, RLIMIT_AS, NULL, 0xf7ff4ff0) = -1 ENOSYS (Function not implemented) +prlimit64(15083, RLIMIT_AS, NULL, 0xf7ff4ff0) = -1 ENOSYS (Function not implemented)l Reduce it to the theoretical limit - the width of "prlimit64(0, RLIMIT_AS, NULL, NULL) " string. Also, add the same check to prlimit64--pidns-translation. * tests/gen_tests.in (prlimit64, prlimit64--pidns-translation): Set alignment check to -a36. Fixes: v5.13~13 "tests: use QUIRK:START-OF-TEST-OUTPUT for prlimit64"

view details

Eugene Syromyatnikov

commit sha 3915c41f653c398a8c27cecf1fc2e8ffd7a79cc7

tests/syslog-success.test: remove run_prog call It has no use, as syslog-success never skips (and run_strace is called directly, so there is no need in $args variable initialisation), and it is actuall harmful, as the test program tries to perform various syslog() calls with side effects (those that have been disabled in the non-injected test program version). * tests/syslog-success.test: Remove run_prog call. Reported-by: Anatoly Pugachev <matorola@gmail.com> Complements: v5.13~17 "tests: do not call syslog operations with side effects without -e inject" Resolves: https://github.com/strace/strace/issues/185

view details

push time in 2 days

push eventstrace/strace

push time in 3 days

issue openedcodecov/codecov-action

codecov-action@v2 fails when encounters an existing file with an unprintable name

When we tried to migrate a project from https://codecov.io/bash to codecov-action@v2, we got the following codecov uploader failure:

Error!: Error: Error getting file listing: Error: ENOENT: no such file or directory, stat '/home/runner/work/strace/strace/tests/fsync-y.dir/078	9
1
78 \'"<<0::0>>1~��'
Error: Codecov: Failed to properly upload: The process '/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov' failed with exit code 255

For more details see the end of log at https://github.com/strace/strace/runs/3132678655

created time in 3 days

push eventstrace/strace

Dmitry V. Levin

commit sha 11346b487a960e21c8ef7229c935bafad60f7e69

ci: upload coverage using codecov/codecov-action@v2 According to https://github.com/codecov/codecov-bash/#readme, https://codecov.io/bash is deprecated and will cease to function. * .github/workflows/ci.yml (coverage): Upload coverage using codecov/codecov-action@v2. * ci/install-dependencies.sh [CHECK == coverage]: Install lcov instead of downloading codecov.bash. * ci/run-build-and-tests.sh [CHECK == coverage]: Collect coverage info using "make code-coverage-capture" instead of codecov.bash.

view details

push time in 3 days

push eventstrace/strace

Eugene Syromyatnikov

commit sha e4feb6b8508d425942f7ae1013072e808ba30a53

tests: move DIAG_PUSH_IGNORE_NONNULL/DIAG_POP_IGNORE_NONNULL outside main Otherwise, gcc-4.4.7 (at least) complains: preadv.c:69: error: #pragma GCC diagnostic not allowed inside functions preadv.c:72: error: #pragma GCC diagnostic not allowed inside functions pwritev.c:112: error: #pragma GCC diagnostic not allowed inside functions pwritev.c:114: error: #pragma GCC diagnostic not allowed inside functions * tests/preadv.c: Move DIAG_PUSH_IGNORE_NONNULL/DIAG_POP_IGNORE_NONNULL outside main(). * tests/pwritev.c: Likewise. Complements: v5.13~20 "tests: ignore -Wnonnull in preadv/pwritev tests"

view details

Eugene Syromyatnikov

commit sha ba1ca1e1fc8ca7bafc39a6d6f62c309f75e2be30

tests: relax -a check in prlimit64 test The initial "-a48" check was too strict as it has hit some false positives on 32-bit arches: -prlimit64(15083, RLIMIT_AS, NULL, 0xf7ff4ff0) = -1 ENOSYS (Function not implemented) +prlimit64(15083, RLIMIT_AS, NULL, 0xf7ff4ff0) = -1 ENOSYS (Function not implemented)l Reduce it to the theoretical limit - the width of "prlimit64(0, RLIMIT_AS, NULL, NULL) " string. Also, add the same check to prlimit64--pidns-translation. * tests/gen_tests.in (prlimit64, prlimit64--pidns-translation): Set alignment check to -a36. Fixes: v5.13~13 "tests: use QUIRK:START-OF-TEST-OUTPUT for prlimit64"

view details

Eugene Syromyatnikov

commit sha 3915c41f653c398a8c27cecf1fc2e8ffd7a79cc7

tests/syslog-success.test: remove run_prog call It has no use, as syslog-success never skips (and run_strace is called directly, so there is no need in $args variable initialisation), and it is actuall harmful, as the test program tries to perform various syslog() calls with side effects (those that have been disabled in the non-injected test program version). * tests/syslog-success.test: Remove run_prog call. Reported-by: Anatoly Pugachev <matorola@gmail.com> Complements: v5.13~17 "tests: do not call syslog operations with side effects without -e inject" Resolves: https://github.com/strace/strace/issues/185

view details

Dmitry V. Levin

commit sha 5de4fd1fe2662e3eacdb4585031b3a4470bc1ca4

ax_code_coverage.m4: simplify CODE_COVERAGE_OUTPUT_* This is going to be used by the follow-up commit. * m4/ax_code_coverage.m4 (CODE_COVERAGE_OUTPUT_FILE): Change to coverage.info. (CODE_COVERAGE_OUTPUT_DIRECTORY): Change to coverage. . gitignore: Add /coverage and /coverage.info.

view details

Dmitry V. Levin

commit sha 5d70193d68d00d5782733a952708e8c983d5264a

ci: upload coverage using codecov/codecov-action@v2 According to https://github.com/codecov/codecov-bash/#readme, https://codecov.io/bash is deprecated and will cease to function. * .github/workflows/ci.yml (coverage): Upload coverage using codecov/codecov-action@v2. * ci/install-dependencies.sh [CHECK == coverage]: Install lcov instead of downloading codecov.bash. * ci/run-build-and-tests.sh [CHECK == coverage]: Collect coverage info using "make code-coverage-capture" instead of codecov.bash.

view details

push time in 3 days

push eventstrace/strace

Dmitry V. Levin

commit sha f378e7a1110d2ce9c86ea4aca8d37dfb50b3a8ec

ax_code_coverage.m4: simplify CODE_COVERAGE_OUTPUT_* This is going to be used by the follow-up commit. * m4/ax_code_coverage.m4 (CODE_COVERAGE_OUTPUT_FILE): Change to coverage.info. (CODE_COVERAGE_OUTPUT_DIRECTORY): Change to coverage.

view details

Dmitry V. Levin

commit sha f911c34119c24c6bd5c1206f5a8cba83e8ce66a2

ci: upload coverage using codecov/codecov-action@v2 According to https://github.com/codecov/codecov-bash/#readme, https://codecov.io/bash is deprecated and will cease to function. * .github/workflows/ci.yml (coverage): Upload coverage using codecov/codecov-action@v2. * ci/install-dependencies.sh [CHECK == coverage]: Install lcov instead of downloading codecov.bash. * ci/run-build-and-tests.sh [CHECK == coverage]: Collect coverage info using "make code-coverage-capture" instead of codecov.bash.

view details

push time in 3 days

push eventstrace/strace

Dmitry V. Levin

commit sha c4a0a0d9e402c65e1bd2eac5bd46b06df230c244

ax_code_coverage.m4: simplify CODE_COVERAGE_OUTPUT_* This is going to be used by the follow-up commit. * m4/ax_code_coverage.m4 (CODE_COVERAGE_OUTPUT_FILE): Change to coverage.info. (CODE_COVERAGE_OUTPUT_DIRECTORY): Change to coverage.

view details

Dmitry V. Levin

commit sha f08a029abc98dae84397b21f023c13ec9f72d012

ci: upload coverage using codecov/codecov-action@v2 According to https://github.com/codecov/codecov-bash/#readme, https://codecov.io/bash is deprecated and will cease to function. * .github/workflows/ci.yml (coverage): Upload coverage using codecov/codecov-action@v2. * ci/install-dependencies.sh [CHECK == coverage]: Remove. * ci/run-build-and-tests.sh [CHECK == coverage]: Collect coverage info using "make code-coverage-capture".

view details

push time in 3 days

push eventlinux-pam/linux-pam

Dmitry V. Levin

commit sha 74c6f073a6298d002afb762ee2707bd756bdb255

po: update translations using Weblate (Catalan) Currently translated at 100.0% (100 of 100 strings). Translate-URL: https://translate.fedoraproject.org/projects/linux-pam/master/ca/

view details

Dmitry V. Levin

commit sha b5e64c017270a30c11b8f925769aafba45a6ee5b

po: update translations using Weblate (Danish) Currently translated at 100.0% (100 of 100 strings). Translate-URL: https://translate.fedoraproject.org/projects/linux-pam/master/da/

view details

Dmitry V. Levin

commit sha c34d12f50b9afe6fd6910e35c3586b7c56477d30

po: update translations using Weblate (Finnish) Currently translated at 100.0% (100 of 100 strings). Translate-URL: https://translate.fedoraproject.org/projects/linux-pam/master/fi/

view details

Dmitry V. Levin

commit sha bfbc1f1d713a8a9364b122b684d287b13619f56d

po: update translations using Weblate (Hebrew) Currently translated at 100.0% (100 of 100 strings). Translate-URL: https://translate.fedoraproject.org/projects/linux-pam/master/he/

view details

Dmitry V. Levin

commit sha adef1cb92547324b3c1e9f09cee0ae8da765d47d

po: update translations using Weblate (Italian) Currently translated at 100.0% (100 of 100 strings). Translate-URL: https://translate.fedoraproject.org/projects/linux-pam/master/it/

view details

Dmitry V. Levin

commit sha eec93ce98fb19b8913620b0e4cb0288dc94aa211

po: update translations using Weblate (Dutch) Currently translated at 100.0% (100 of 100 strings). Translate-URL: https://translate.fedoraproject.org/projects/linux-pam/master/nl/

view details

Dmitry V. Levin

commit sha 59d4f7453512e623d0d894e2822b801abbc664c6

po: update translations using Weblate (Portuguese (Brazil)) Currently translated at 100.0% (100 of 100 strings). Translate-URL: https://translate.fedoraproject.org/projects/linux-pam/master/pt/

view details

Dmitry V. Levin

commit sha ce0c17418f2c3ed2bc640e0f9dee2d3f7915a8b8

po: update translations using Weblate (Portuguese (Brazil)) Currently translated at 100.0% (100 of 100 strings). Translate-URL: https://translate.fedoraproject.org/projects/linux-pam/master/pt_BR/

view details

Dmitry V. Levin

commit sha 9b816974ac4106b63e5fa70cb9658ed56813adb1

po: update translations using Weblate (Swedish) Currently translated at 100.0% (100 of 100 strings). Translate-URL: https://translate.fedoraproject.org/projects/linux-pam/master/sv/

view details

push time in 3 days

push eventlinux-pam/linux-pam

Oğuz Ersen

commit sha 7038d1aa8c05504f4fba7bbb063d9e7f4109fd2f

po: update translations using Weblate (Turkish) Currently translated at 100.0% (100 of 100 strings). Translate-URL: https://translate.fedoraproject.org/projects/linux-pam/master/tr/

view details

Yuri Chornoivan

commit sha 72fca2db2b6c2a1aaabac8b69c4ce7a25a8d0b59

po: update translations using Weblate (Ukrainian) Currently translated at 100.0% (100 of 100 strings). Translate-URL: https://translate.fedoraproject.org/projects/linux-pam/master/uk/

view details

push time in 3 days

push eventlinux-pam/linux-pam

Piotr Drąg

commit sha 034408b7afa9864784d2878a44c170bd8420d140

po: update translations using Weblate (Polish) Currently translated at 100.0% (100 of 100 strings). Translate-URL: https://translate.fedoraproject.org/projects/linux-pam/master/pl/

view details

push time in 3 days

push eventstrace/strace

Dmitry V. Levin

commit sha 6601a853d8d9a1d6bc85fdf403f3b752987f682b

configure: fix formatting of error diagnostics in enable-mpers and enable-stacktrace options * configure.ac (AC_ARG_ENABLE([mpers])): Fix AC_MSG_ERROR formatting. * m4/st_stacktrace.m4 (AC_ARG_ENABLE([stacktrace])): Likewise.

view details

Dmitry V. Levin

commit sha d2b1a5d79476f1df2adc1465ac53eefb85a52f50

prctl: fix build using bionic libc * src/prctl.c [__ANDROID__ && !PR_SET_VMA] (PR_SET_VMA): Define. * NEWS: Mention this. Resolves: https://github.com/strace/strace/issues/189

view details

push time in 3 days

issue closedstrace/strace

Bundled linux/prctl.h missing the PR_SET_VMA macro needed for Android

Bundled linux/prctl.h in version 5.13 is missing the PR_SET_VMA macro needed for Android, and thus building strace for Android is broken.

aarch64-linux-android21-clang -DHAVE_CONFIG_H   -I./linux/aarch64 -I./linux/aarch64 -I./linux/generic -I./linux/generic -I. -I. -I../bundled/linux/arch/arm64/include/uapi -I ../bundled/linux/include/uapi -DIN_STRACE=1      -Isrc/linux/generic  -I./bundled/linux/arch/arm64/include/uapi -I./bundled/linux/include/uapi -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -Wdate-time -Wformat-security -Winit-self -Winitializer-overrides -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wundef -Wwrite-strings   -g -O2 -MT libstrace_a-prctl.o -MD -MP -MF .deps/libstrace_a-prctl.Tpo -c -o libstrace_a-prctl.o `test -f 'prctl.c' || echo './'`prctl.c
In file included from prctl.c:18:
./xlat/prctl_options.h:190:7: error: use of undeclared identifier 'PR_SET_VMA'
 XLAT(PR_SET_VMA),
      ^
./xlat/prctl_options.h:201:10: error: invalid application of 'sizeof' to an incomplete type 'const struct xlat_data []'
 .size = ARRAY_SIZE(prctl_options_xdata),
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./macros.h:17:32: note: expanded from macro 'ARRAY_SIZE'
# define ARRAY_SIZE(a_) (sizeof(a_) / sizeof((a_)[0]) + MUST_BE_ARRAY(a_))
                               ^~~~

The steps to reproduce are the same as #174, just with strace 5.13 instead of 5.11. This issue exists on both aarch64 and x86_64. Full logs can be found at https://build.archlinuxcn.org/~imlonghao/log/android-aarch64-strace/2021-07-19T12%3A17%3A02.html and https://build.archlinuxcn.org/~imlonghao/log/android-x86-64-strace/2021-07-19T12%3A17%3A02.html, respectively.

If I add that macro from Google's kernel sources to the bundled one, building is fine. Here is my test:

diff --git a/bundled/linux/include/uapi/linux/prctl.h b/bundled/linux/include/uapi/linux/prctl.h
index 18a9f59dc..763a7dcd6 100644
--- a/bundled/linux/include/uapi/linux/prctl.h
+++ b/bundled/linux/include/uapi/linux/prctl.h
@@ -255,6 +255,9 @@ struct prctl_mm_map {
 # define SYSCALL_DISPATCH_FILTER_ALLOW	0
 # define SYSCALL_DISPATCH_FILTER_BLOCK	1
 
+#define PR_SET_VMA		0x53564d41
+# define PR_SET_VMA_ANON_NAME		0
+
 /* Set/get enabled arm64 pointer authentication keys */
 #define PR_PAC_SET_ENABLED_KEYS		60
 #define PR_PAC_GET_ENABLED_KEYS		61

Running seems fine, too:

$ ./strace ./strace 2>&1 | grep PR_SET_VMA | head
prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, 0x72d6943000, 20480, "bionic TLS guard") = 0
prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, 0x72d6944000, 12288, "bionic TLS") = 0
prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, 0x72d6942000, 1104, "arc4random data") = 0
prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, 0x72d693e000, 16384, "thread signal stack") = 0
prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, 0x72d693d000, 4096, "thread signal stack guard") = 0
prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, 0x72d693c000, 4096, "atexit handlers") = 0
prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, 0x72d693b000, 4096, "linker_alloc_small_objects") = 0
prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, 0x72d693a000, 24, "linker_alloc_vector") = 0
prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, 0x72d6939000, 4096, "linker_alloc_small_objects") = 0
prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, 0x72d6938000, 24, "linker_alloc_vector") = 0

closed time in 3 days

yan12125

push eventstrace/strace

Dmitry V. Levin

commit sha 6601a853d8d9a1d6bc85fdf403f3b752987f682b

configure: fix formatting of error diagnostics in enable-mpers and enable-stacktrace options * configure.ac (AC_ARG_ENABLE([mpers])): Fix AC_MSG_ERROR formatting. * m4/st_stacktrace.m4 (AC_ARG_ENABLE([stacktrace])): Likewise.

view details

Dmitry V. Levin

commit sha d2b1a5d79476f1df2adc1465ac53eefb85a52f50

prctl: fix build using bionic libc * src/prctl.c [__ANDROID__ && !PR_SET_VMA] (PR_SET_VMA): Define. * NEWS: Mention this. Resolves: https://github.com/strace/strace/issues/189

view details

push time in 4 days

push eventlinux-pam/linux-pam

Dmitry V. Levin

commit sha f12fcedb922eea238712a0b6fbe74a235013d095

po: update translations using Weblate (German) Currently translated at 100.0% (100 of 100 strings). Translate-URL: https://translate.fedoraproject.org/projects/linux-pam/master/de/

view details

push time in 4 days

push eventlinux-pam/linux-pam

Dmitry V. Levin

commit sha 542463c54690789813058dd88e4fc98f1d0907fc

po: update translations using Weblate (Russian) Currently translated at 100.0% (100 of 100 strings). Translate-URL: https://translate.fedoraproject.org/projects/linux-pam/master/ru/

view details

push time in 4 days

push eventlinux-pam/linux-pam

Seong-ho Cho

commit sha 9cdca869e8b81077eb35887d1e723a04a4a8180d

po: update translations using Weblate (Korean) Currently translated at 100.0% (99 of 99 strings). Translate-URL: https://translate.fedoraproject.org/projects/linux-pam/master/ko/

view details

push time in 4 days

pull request commentlinux-pam/linux-pam

Prepare for 1.5.2 release

On Wed, Jul 21, 2021 at 12:26:10AM -0700, Tomáš Mráz wrote:

Should we merge this and then wait for a few weeks to give chance to translators to translate the new message before we actually do the release?

Yes, this makes sense.

ldv-alt

comment created time in 4 days

PR merged linux-pam/linux-pam

Prepare for 1.5.2 release
+2031 -1263

1 comment

86 changed files

ldv-alt

pr closed time in 4 days

push eventlinux-pam/linux-pam

Dmitry V. Levin

commit sha c6b49dad06d57c3ee3dddde46f514cfb04c930ae

pam_faillock: remove confusing comment * modules/pam_faillock/pam_faillock.c (faillock_message): Remove the comment that meant to help translators but actually confused xgettext.

view details

Dmitry V. Levin

commit sha 8d78fbf45e2fd73184a0152aa93db26fb384598a

Prepare for 1.5.2 release * configure.ac (AC_INIT): Raise version to 1.5.2. * NEWS: Update.

view details

Dmitry V. Levin

commit sha 727660237b99d5f1617c247fc6cad4f71a8516e3

po: update .pot and .po files Regenerate po/Linux-PAM.pot and po/*.po using "make -C po update-po" command.

view details

push time in 4 days