History log of /src/tests/lib/libpthread/t_stack.c |
Revision | | Date | Author | Comments |
1.6 |
| 28-Nov-2023 |
riastradh | branches: 1.6.2; 1.6.4; 1.6.6; pthread: Don't adjust user-allocated stack addresses by guardsize.
PR lib/57721
XXX pullup-10 XXX pullup-9 XXX pullup-8
|
1.5 |
| 28-Nov-2023 |
riastradh | libpthread/t_stack: Fix format string for size_t.
Tested this on i386 since that had been crashing before, but i386 doesn't see %zu for unsigned int as a problem.
PR lib/57721
XXX pullup-10 XXX pullup-9 XXX pullup-8
|
1.4 |
| 27-Nov-2023 |
riastradh | libpthread/t_stack: Appease gcc12 maybe-uninitialized warning.
The jmp_buf is not, in fact, uninitialized at the point of use, but it doesn't hurt to narrow the scope a bit to between when the jmp_buf is initialized by setjmp, and when the signal handler might be called after sigaction.
Noted by prlw1.
PR lib/57721
XXX pullup-10 XXX pullup-9 XXX pullup-8
|
1.3 |
| 27-Nov-2023 |
riastradh | libpthread/t_stack: Omit needless cast in previous.
Arose from an earlier draft of the change.
PR lib/57721
XXX pullup-10 XXX pullup-9 XXX pullup-8
|
1.2 |
| 27-Nov-2023 |
riastradh | libpthread/t_stack: Make this more robust to the guard size bug.
Make sure to allocate enough space for the thread's stack for a guard even though there shouldn't be one, so that when we run the thread, it doesn't start with the stack pointer pointing into someone else's allocation (like malloc) causing stack frames to trash another data structure -- or causing the user of that data structure to trash the stack frames.
PR lib/57721
XXX pullup-10 XXX pullup-9 XXX pullup-8
|
1.1 |
| 24-Nov-2023 |
riastradh | pthread: Add tests for pthread user stack allocation.
PR lib/57721
XXX pullup-10 XXX pullup-9 XXX pullup-8
|
1.6.6.2 |
| 09-Dec-2023 |
martin | Pull up following revision(s) (requested by riastradh in ticket #1924):
tests/lib/libpthread/Makefile: revision 1.16 lib/libpthread/pthread.c: revision 1.184 distrib/sets/lists/debug/mi: revision 1.424 distrib/sets/lists/tests/mi: revision 1.1297 tests/lib/libpthread/t_stack.c: revision 1.1 tests/lib/libpthread/t_stack.c: revision 1.2 tests/lib/libpthread/t_stack.c: revision 1.3 tests/lib/libpthread/t_stack.c: revision 1.4 tests/lib/libpthread/t_stack.c: revision 1.5 tests/lib/libpthread/t_stack.c: revision 1.6
pthread: Add tests for pthread user stack allocation. PR lib/57721
libpthread/t_stack: Make this more robust to the guard size bug. Make sure to allocate enough space for the thread's stack for a guard even though there shouldn't be one, so that when we run the thread, it doesn't start with the stack pointer pointing into someone else's allocation (like malloc) causing stack frames to trash another data structure -- or causing the user of that data structure to trash the stack frames. PR lib/57721
libpthread/t_stack: Omit needless cast in previous. Arose from an earlier draft of the change. PR lib/57721
libpthread/t_stack: Appease gcc12 maybe-uninitialized warning. The jmp_buf is not, in fact, uninitialized at the point of use, but it doesn't hurt to narrow the scope a bit to between when the jmp_buf is initialized by setjmp, and when the signal handler might be called after sigaction. Noted by prlw1. PR lib/57721
libpthread/t_stack: Fix format string for size_t. Tested this on i386 since that had been crashing before, but i386 doesn't see %zu for unsigned int as a problem. PR lib/57721
pthread: Don't adjust user-allocated stack addresses by guardsize. PR lib/57721
|
1.6.6.1 |
| 28-Nov-2023 |
martin | file t_stack.c was added on branch netbsd-8 on 2023-12-09 13:36:02 +0000
|
1.6.4.2 |
| 09-Dec-2023 |
martin | Pull up following revision(s) (requested by riastradh in ticket #1775):
tests/lib/libpthread/Makefile: revision 1.16 lib/libpthread/pthread.c: revision 1.184 distrib/sets/lists/debug/mi: revision 1.424 distrib/sets/lists/tests/mi: revision 1.1297 tests/lib/libpthread/t_stack.c: revision 1.1 tests/lib/libpthread/t_stack.c: revision 1.2 tests/lib/libpthread/t_stack.c: revision 1.3 tests/lib/libpthread/t_stack.c: revision 1.4 tests/lib/libpthread/t_stack.c: revision 1.5 tests/lib/libpthread/t_stack.c: revision 1.6
pthread: Add tests for pthread user stack allocation. PR lib/57721
libpthread/t_stack: Make this more robust to the guard size bug. Make sure to allocate enough space for the thread's stack for a guard even though there shouldn't be one, so that when we run the thread, it doesn't start with the stack pointer pointing into someone else's allocation (like malloc) causing stack frames to trash another data structure -- or causing the user of that data structure to trash the stack frames. PR lib/57721
libpthread/t_stack: Omit needless cast in previous. Arose from an earlier draft of the change. PR lib/57721
libpthread/t_stack: Appease gcc12 maybe-uninitialized warning. The jmp_buf is not, in fact, uninitialized at the point of use, but it doesn't hurt to narrow the scope a bit to between when the jmp_buf is initialized by setjmp, and when the signal handler might be called after sigaction. Noted by prlw1. PR lib/57721
libpthread/t_stack: Fix format string for size_t. Tested this on i386 since that had been crashing before, but i386 doesn't see %zu for unsigned int as a problem. PR lib/57721
pthread: Don't adjust user-allocated stack addresses by guardsize. PR lib/57721
|
1.6.4.1 |
| 28-Nov-2023 |
martin | file t_stack.c was added on branch netbsd-9 on 2023-12-09 13:24:23 +0000
|
1.6.2.2 |
| 28-Nov-2023 |
martin | Pull up following revision(s) (requested by riastradh in ticket #478):
tests/lib/libpthread/Makefile: revision 1.16 lib/libpthread/pthread.c: revision 1.184 distrib/sets/lists/debug/mi: revision 1.424 distrib/sets/lists/tests/mi: revision 1.1297 tests/lib/libpthread/t_stack.c: revision 1.1 tests/lib/libpthread/t_stack.c: revision 1.2 tests/lib/libpthread/t_stack.c: revision 1.3 tests/lib/libpthread/t_stack.c: revision 1.4 tests/lib/libpthread/t_stack.c: revision 1.5 tests/lib/libpthread/t_stack.c: revision 1.6
pthread: Add tests for pthread user stack allocation. PR lib/57721
libpthread/t_stack: Make this more robust to the guard size bug. Make sure to allocate enough space for the thread's stack for a guard even though there shouldn't be one, so that when we run the thread, it doesn't start with the stack pointer pointing into someone else's allocation (like malloc) causing stack frames to trash another data structure -- or causing the user of that data structure to trash the stack frames. PR lib/57721
libpthread/t_stack: Omit needless cast in previous. Arose from an earlier draft of the change. PR lib/57721
libpthread/t_stack: Appease gcc12 maybe-uninitialized warning. The jmp_buf is not, in fact, uninitialized at the point of use, but it doesn't hurt to narrow the scope a bit to between when the jmp_buf is initialized by setjmp, and when the signal handler might be called after sigaction. Noted by prlw1. PR lib/57721
libpthread/t_stack: Fix format string for size_t. Tested this on i386 since that had been crashing before, but i386 doesn't see %zu for unsigned int as a problem. PR lib/57721
pthread: Don't adjust user-allocated stack addresses by guardsize. PR lib/57721
|
1.6.2.1 |
| 28-Nov-2023 |
martin | file t_stack.c was added on branch netbsd-10 on 2023-11-28 13:17:11 +0000
|