-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChangeLog
3613 lines (2654 loc) · 129 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2005-06-09 Roland McGrath <[email protected]>
* configure.ac, NEWS: Version 4.5.12.
* debian/changelog, strace.spec: 4.5.12-1.
2005-06-08 Dmitry V. Levin <[email protected]>
Minor namespace cleanup.
* defs.h (string_quote): Remove declaration.
* file.c (openmodessol) [LINUXSPARC]: Make static.
(fileflags): Likewise.
(aclcmds, aclipc) [HAVE_SYS_ACL_H]: Likewise.
(direnttypes) [FREEBSD || LINUX]: Likewise.
(xattrflags): Likewise.
* process.c (unalignctl_string): Make static.
(setarg): Disable.
* syscall.c (subcalls_table): Make static.
(socket_map) [!(LINUX && (ALPHA || MIPS))]: Likewise.
(sparc_socket_decode): Make static, define for [SPARC || SPARC64] only.
(decode_subcall): Make static.
(syscall_fixup): Likewise.
(get_error): Likewise.
(syscall_enter): Likewise.
* util.c (tv_tv): Disable.
(getpc): Likewise.
(string_quote): Make static.
Fixes RH#159688.
2005-05-12 Philippe De Muyter <[email protected]>
* util.c (getpc, printcall): Check #if defined(M68K), not M68k.
Enables `-i' on m68k machines.
2005-06-06 Roland McGrath <[email protected]>
* process.c (struct_user_offsets) [X86_64]: Reorder elements so
matching works right.
Fixes RH#159787.
* linux/syscall.h (SYS_socket, SYS_bind, SYS_connect, SYS_listen)
(SYS_accept, SYS_getsockname, SYS_getpeername, SYS_socketpair)
(SYS_send, SYS_recv, SYS_sendto, SYS_recvfrom, SYS_shutdown)
(SYS_setsockopt, SYS_getsockopt, SYS_sendmsg, SYS_recvmsg)
(SYS_getsockname, SYS_semop, SYS_semgsub_et, SYS_semget, SYS_semctl)
(SYS_semtimedop, SYS_msgsnd, SYS_msgrcv, SYS_msgget)
(SYS_msgctl, SYS_shmat, SYS_shmdt, SYS_shmget)
(SYS_shmctl): Macros renamed to SYS_sub_*.
* syscall.c (dumpio): Match SYS_sub_* if defined instead of SYS_*.
* linux/syscall.h (SYS_waitid): Define if not defined.
* linux/syscallent.h: Fix pread/pwrite names to pread64/pwrite64.
* defs.h (struct sysent): New member `native_scno'.
(known_scno): Declare new function.
* linux/syscallent.h: Add new final field to interesting syscalls.
* syscall.c (known_scno): New function.
(dumpio, internal_syscall, syscall_fixup, trace_syscall): Use it.
* process.c (internal_fork, internal_exit): Likewise.
[IA64] (ARG_STACKSIZE, ARG_PTID, ARG_CTID, ARG_TLS): Likewise.
* strace.c (proc_open): Likewise.
* util.c [LINUX] (setbpt): Likewise.
* linux/syscall.h: Remove [!defined(X86_64)] from conditional
for defining SYS_socket_subcall et al.
* linux/syscallent.h: Likewise for #error check.
* syscall.c (trace_syscall): Likewise for SYS_{socketcall,ipc} cases.
Fixes RH#158934.
2005-06-02 Roland McGrath <[email protected]>
* file.c (printstatfs64): Cast values to unsigned long long and use
%llu formats.
Fixes RH#158243.
2005-05-31 Dmitry V. Levin <[email protected]>
Deal with memory management issues.
* defs.h (tprint_iov): Update prototype.
* desc.c (sys_epoll_wait) [HAVE_SYS_EPOLL_H]: Do not allocate
epoll_event array of arbitrary size on the stack, to avoid
stack overflow.
* file.c (print_xattr_val): Check for integer overflow during
malloc size calculation, to avoid heap corruption.
* io.c (tprint_iov) [HAVE_SYS_UIO_H]: Check for integer overflow
during malloc size calculation, to avoid heap corruption.
Change iovec array handling to avoid heap memory allocation.
* mem.c (get_nodes) [LINUX]: Check for integer overflow during
size calculation and do not allocate array of arbitrary size on
the stack, to avoid stack overflow.
* net.c (printcmsghdr) [HAVE_SENDMSG]: Do not allocate array of
arbitrary size on the stack, to avoid stack overflow. Do not
trust cmsg.cmsg_len to avoid read beyond the end of allocated
object.
(printmsghdr) [HAVE_SENDMSG]: Update tprint_iov() usage.
* process.c (sys_setgroups): Check for integer overflow during
malloc size calculation, to avoid heap corruption. Change gid_t
array handling to avoid heap memory allocation.
(sys_getgroups): Likewise.
(sys_setgroups32) [LINUX]: Likewise.
(sys_getgroups32) [LINUX]: Likewise.
* stream.c (sys_poll) [HAVE_SYS_POLL_H]: Check for integer
overflow during malloc size calculation, to avoid heap corruption.
Change pollfd array handling to avoid heap memory allocation.
* system.c (sys_sysctl) [LINUX]: Check for integer overflow
during malloc size calculation, to avoid heap corruption.
* util.c (dumpiov) [HAVE_SYS_UIO_H]: Check for integer overflow
during malloc size calculation, to avoid heap corruption.
Fixes RH#159196.
* util.c (printxval): Change third argument from "char *" to
"const char *".
(printflags): Add third argument, "const char *", with similar
meaning to the third argument of printxval().
* defs.h (printxval): Change third argument from "char *" to
"const char *".
(printflags): Add third argument.
* bjm.c (sys_query_module) [LINUX]: Pass third argument to
printflags().
* desc.c (sys_fcntl): Likewise.
(sys_flock) [LOCK_SH]: Likewise.
(print_epoll_event) [HAVE_SYS_EPOLL_H]: Likewise.
* file.c (sys_open): Likewise.
(solaris_open) [LINUXSPARC]: Likewise.
(sys_access): Likewise.
(sys_chflags, sys_fchflags) [FREEBSD]: Likewise.
(realprintstat) [HAVE_LONG_LONG_OFF_T &&
HAVE_STRUCT_STAT_ST_FLAGS]: Likewise.
(printstat64) [HAVE_STAT64 &&
HAVE_STRUCT_STAT_ST_FLAGS]: Likewise.
(sys_setxattr, sys_fsetxattr): Likewise.
* ipc.c (sys_msgget, sys_msgsnd, sys_msgrcv, sys_semget,
sys_shmget, sys_shmat) [LINUX || SUNOS4 || FREEBSD]: Likewise.
(sys_mq_open) [LINUX]: Likewise.
(printmqattr) [HAVE_MQUEUE_H]: Likewise.
* mem.c (print_mmap) [!HAVE_LONG_LONG_OFF_T]: Likewise.
(sys_mmap64) [_LFS64_LARGEFILE || HAVE_LONG_LONG_OFF_T]: Likewise.
(sys_mprotect): Likewise.
(sys_mremap, sys_madvise, sys_mlockall) [LINUX]: Likewise.
(sys_msync) [MS_ASYNC]: Likewise.
(sys_mctl) [MC_SYNC]: Likewise.
(sys_remap_file_pages, sys_mbind, sys_get_mempolicy) [LINUX]:
Likewise.
* net.c (printmsghdr) [HAVE_STRUCT_MSGHDR_MSG_CONTROL]: Likewise.
(sys_send, sys_sendto): Likewise.
(sys_sendmsg) [HAVE_SENDMSG]: Likewise.
(sys_recv, sys_recvfrom): Likewise.
(sys_recvmsg) [HAVE_SENDMSG]: Likewise.
(printicmpfilter) [ICMP_FILTER]: Likewise.
* proc.c (proc_ioctl) [SVR4 && !HAVE_MP_PROCFS || FREEBSD]: Likewise.
* process.c (sys_clone) [LINUX]: Likewise.
(printwaitn): Likewise.
(sys_waitid) [SVR4 || LINUX]: Likewise.
* signal.c (sys_sigvec) [SUNOS4 || FREEBSD]: Likewise.
(sys_sigaction): Likewise.
(printcontext) [SVR4]: Likewise.
(print_stack_t) [LINUX) || FREEBSD]: Likewise.
(sys_rt_sigaction) [LINUX]: Likewise.
* sock.c (sock_ioctl) [LINUX]: Likewise.
* stream.c (sys_putmsg, sys_getmsg): Likewise.
(sys_putpmsg) [SYS_putpmsg]: Likewise.
(sys_getpmsg) [SYS_getpmsg]: Likewise.
(sys_poll): Likewise.
(print_transport_message) [TI_BIND]: Likewise.
(stream_ioctl): Likewise.
* system.c (sys_mount, sys_reboot): Likewise.
(sys_cacheflush) [LINUX && M68K]: Likewise.
(sys_capget, sys_capset) [SYS_capget]: Likewise.
* term.c (term_ioctl) [TIOCMGET]: Likewise.
* time.c (sys_clock_nanosleep, sys_timer_settime) [LINUX]:
Likewise.
Fixes RH#159310.
* bjm.c (sys_query_module) [LINUX]: Unitize "out of memory"
errors reporting style.
* strace.c (rebuild_pollv) [USE_PROCFS]: Likewise.
* system.c (sys_capget, sys_capset) [SYS_capget]: Likewise.
* util.c (printstr): Likewise.
(dumpiov) [HAVE_SYS_UIO_H]: Likewise.
(fixvfork) [SUNOS4]: Likewise.
* desc.c (decode_select): Continue to decode syscall arguments
in case of OOM condition.
* file.c (sys_getdents): Likewise.
(sys_getdents64) [_LFS64_LARGEFILE]: Likewise.
(sys_getdirentries) [FREEBSD]: Likewise.
* mem.c (sys_mincore): Changed type of variables which deal with
malloc size from int to unsigned long.
Fixes RH#159308.
2005-05-22 Dmitry V. Levin <[email protected]>
* bjm.c [LINUX]: Do not include <linux/linkage.h>. It is not
safe to include kernel headers, and this one is not used anyway.
Fixes RH#158488.
2005-05-26 Roland McGrath <[email protected]>
* system.c (sys_sysctl): Check for errors accessing user pointers.
Use malloc instead of alloca in case size is insane.
2005-05-09 Roland McGrath <[email protected]>
* configure.ac: Check for libaio.h.
* desc.c (sys_io_setup, sys_io_submit, sys_io_cancel,
sys_io_getevents, sys_io_destroy): New functions.
* linux/syscall.h: Declare them.
* linux/syscallent.h: Use those for io_* syscalls.
* linux/alpha/syscallent.h: Likewise.
* linux/hppa/syscallent.h: Likewise.
* linux/ia64/syscallent.h: Likewise.
* linux/mips/syscallent.h: Likewise.
* linux/powerpc/syscallent.h: Likewise.
* linux/s390/syscallent.h: Likewise.
* linux/s390x/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
From Zach Brown <[email protected]>.
Fixes RH#155065.
* debian/control (Architecture): Add ppc64.
Fixes Debian bug #301089.
2005-05-05 Anton Blanchard <[email protected]>
* process.c (ptrace_cmds): Add PTRACE_GETVRREGS and PTRACE_SETVRREGS
if defined.
2005-05-09 Roland McGrath <[email protected]>
* strace.c (main): Refuse negative -s argument value.
Fixes Debian bug #303256.
2005-04-25 Anton Blanchard <[email protected]>
* file.c (openmodes): Add O_NOATIME flag if defined.
2005-04-05 Anton Blanchard <[email protected]>
* linux/powerpc/ioctlent.h: Regenerated.
* signal.c (signame): Don't try and dereference negative index.
* linux/powerpc/syscallent.h: Add debug_setcontext, vserver,
mbind, *_mempolicy, mq_*, sys_kexec_load, add_key, request_key,
keyctl, waitid, sys_semtimedop. Fix various other syscalls.
* ipc.c (shm_resource_flags): New variable, table has SHM_HUGETLB
but not IPC_NOWAIT, which have the same value.
(sys_shmget): Use that instead of resource_flags.
2005-03-22 Roland McGrath <[email protected]>
* desc.c (decode_select): Increase local buffer size.
Fixes RH#151570.
* configure.ac, NEWS: Version 4.5.11.
* debian/changelog, strace.spec: 4.5.11-1.
* linux/arm/syscallent.h: Fix 113 entry (syscall, not vm86old).
2005-03-14 Roland McGrath <[email protected]>
* configure.ac, NEWS: Version 4.5.10.
* debian/changelog, strace.spec: 4.5.10-1.
2005-02-26 GOTO Masanori <[email protected]>
* linux/alpha/syscallent.h: Fix the reversed order of lstat64 and
fstat64. Clean up osf_nrecvmsg and osf_ngetsockname.
2005-02-28 Andreas Schwab <[email protected]>
* syscall.c (getrval2): Move #ifdef IA64 inside #ifdef LINUX.
2005-03-14 Roland McGrath <[email protected]>
* linux/mips/syscallent.h: Update various calls.
From Thiemo Seufer <[email protected]>.
Fixes Debian bug #256684.
* debian/control (Architecture): Add s390.
Fixes Debian bug #294172.
2005-03-06 Roland McGrath <[email protected]>
* strace.c (trace) [PTRACE_GETSIGINFO]: Fetch siginfo_t for SIGSEGV
and SIGBUS signals, use si_addr in output.
2005-03-01 Roland McGrath <[email protected]>
* file.c (print_xattr_val): Add a cast.
2005-02-05 Roland McGrath <[email protected]>
* desc.c (decode_select): Calculate size of passed fd_set vectors and
copy in the user's size rather than the standard sizeof(fd_set).
Fixes Debian bug #65654, #284290.
* util.c (printpath, printpathn): Print NULL and don't try any fetch
when ADDR is zero.
Fixes Debian bug #63093.
* debian/control (Build-Depends): Fix for s390 and sparc.
From Bastian Blank <[email protected]>.
Fixes Debian bug #293564.
2004-12-19 Dmitry V. Levin <[email protected]>
* strace.c (main) [!USE_PROCFS]: In child process, raise SIGSTOP
right before execv() call. Remove fake_execve() call.
* defs.h (fake_execve): Remove unused declaration.
* process.c (fake_execve): Remove unused function.
Fixes RH#143365.
2005-02-04 Roland McGrath <[email protected]>
* configure.ac, NEWS: Version 4.5.9.
* debian/changelog, strace.spec: 4.5.9-2.
* file.c (O_LARGEFILE): Omit when #undef'd because it was zero.
2005-02-02 Roland McGrath <[email protected]>
* debian/control: Add strace-udeb package for installer debugging.
* debian/rules (binary-arch): Build it.
From Joshua Kwan <[email protected]>.
Fixes Debian bug #268294.
* file.c (openmodes) [O_LARGEFILE] [O_LARGEFILE == 0]: Redefine to
known values for Linux.
* util.c (printcall): Print 16 ?s when long is 8 bytes.
Fixes RH#146932.
* linux/sparc/syscall.h: Declare sys_epoll_create, sys_epoll_ctl,
sys_epoll_wait.
* linux/sparc64/syscall.h: Just #include "../sparc/syscall.h" here.
* ioctl.c (nioctlents2): Add const to type.
Fixes Debian bug #278449.
* sock.c (iffflags): New variable, table of IFF_* values.
(print_addr): New function.
(sock_ioctl): Handle SIOCGIFADDR, SIOCGIFDSTADDR, SIOCGIFBRDADDR,
SIOCGIFNETMASK, SIOCGIFFLAGS, SIOCGIFMETRIC, SIOCGIFMTU, SIOCGIFSLAVE,
SIOCGIFHWADDR. Use print_addr for SIOCGIFCONF, SIOCGIFNAME, and
SIOCGIFINDEX, and fix their output.
From Ulrich Drepper <[email protected]>.
Fixes RH#138223.
Fixes Debian bug #192164.
2004-12-20 Dmitry V. Levin <[email protected]>
* configure.ac: Use AC_GNU_SOURCE macro instead of changing CFLAGS.
* defs.h [HAVE_CONFIG_H]: Include config.h first.
* strace.c: Include "defs.h" first.
Fixes RH#143370.
* syscall.c (call_summary): Fix potential NULL dereference.
Fixes RH#143369.
2004-12-19 Dmitry V. Levin <[email protected]>
* syscall.c (qual_signal): Check bounds for numeric signal names.
Fix parser of symbolic signal names.
Fix return code, as required by qualify() function.
* syscall.c (qual_desc): Check bounds for descriptor number.
* syscall.c (qual_syscall): Correct return code, to be consistent
with qualify() and other qual_* functions.
Fixes RH#143362.
2005-02-01 Roland McGrath <[email protected]>
* system.c [LINUX] (MS_MANDLOCK, MS_NOATIME, MS_NODIRATIME, MS_BIND,
MS_MOVE, MS_REC, MS_VERBOSE, MS_POSIXACL, MS_ACTIVE, MS_NOUSER):
New macros.
[LINUX] (mount_flags): Add them.
[LINUX] (sys_mount): If any of (MS_BIND|MS_MOVE|MS_REMOUNT) bits are
set in the flags argument, don't try to fetch the filesystem string.
Fixes RH#141932.
* config.guess: Update from canonical version, timestamp 2004-11-12.
* config.sub: Likewise, timestamp 2004-11-30.
* process.c [LINUX] [X86_64] (sys_arch_prctl): New function.
* linux/syscall.h: Declare it.
* linux/x86_64/syscallent.h: Use it.
Part of RH#142667.
* process.c (sys_sched_setscheduler): Use %#lx format for bad pointer.
(sys_sched_getparam, sys_sched_setparam): Likewise.
Part of RH#142667.
* signal.c [HAVE_SIGACTION] [LINUX && X86_64] (SA_RESTORER): Define
here too.
Part of RH#142667.
* linux/syscallent.h: Use sys_mincore instead of printargs.
* linux/x86_64/syscallent.h: Likewise. Also use sys_getrlimit,
sys_semtimedop, sys_umount2.
Part of RH#142667.
* syscall.c (qual_signal): Fix inverted return value and bogus
argument to qualify_one in the named case.
* file.c (print_xattr_val): Don't use auto array sized by syscall
argument. Use malloc instead, so it can fail for insane values.
Fixes Debian bug #283704.
* net.c (sys_getsockopt): Fix a format %ld -> %d.
* linux/syscall.h [IA64] (SYS_semtimedop): #undef it.
* syscall.c (syscall_enter) [X86_64]: Fix 32-bit argument register map
not to double the middle entry!
Fixes RH#146093.
* linux/x86_64/syscallent.h: Fix exit_group entry.
* util.c (getpc) [S390 || S390X]: Implement it.
Patch by David Wilder <[email protected]>.
* linux/ia64/syscallent.h: Add fadvise64, fstatfs64, statfs64, mbind,
[gs]et_mempolicy, mq_*, sys_kexec_load, vserver, and waitid.
Fixes RH#146245.
2005-01-22 Andreas Schwab <[email protected]>
* net.c (sys_getsockopt): Change type of len to int.
2004-10-19 Roland McGrath <[email protected]>
* configure.ac, NEWS: Version 4.5.8.
* debian/changelog, strace.spec: 4.5.8-1.
* file.c (sys_fadvise64): Conditionalize just on [LINUX].
* configure.ac: Check for sys/epoll.h.
* desc.c: Protect #include <sys/epoll.h> with [HAVE_SYS_EPOLL_H].
(epollctls, epollevents): Protect each entry with #ifdef on its macro.
* strace.c (handle_group_exit): Don't detach leader that wasn't
TCB_ATTACHED. Instead mark it with TCB_GROUP_EXITING.
Remove droptcb loop at end, no longer required since 2.6 reports each
thread death.
Fixes RH#135254.
* strace.c (trace): Use handle_group_exit for non-TCB_ATTACHED child
taking signal when it has nclone_threads > 0.
* strace.c (handle_group_exit, trace): Mark leader with
TCB_GROUP_EXITING and don't be surprised at child deaths when their
leader has it set.
Fixes RH#132150.
* process.c (WCOREFLAG): Define if not defined.
(W_STOPCODE, W_EXITCODE): Likewise.
Reported by Marty Leisner <[email protected]>.
* sock.c [! LINUX]: Include <sys/socket.h> before <sys/sockio.h>.
Reported by Marty Leisner <[email protected]>.
* debian/rules: Make strace64.1.gz symlink to strace.1.gz instead of
strace64.1 to strace.1, which doesn't exist.
Fixes Debian bug #269220.
2004-09-05 Phil Blundell <[email protected]>
* linux/arm/syscallent.h: New file.
2004-10-19 Roland McGrath <[email protected]>
* debian/rules (DEB_BUILD_GNU_TYPE, CONFIG_OPTS): New variables.
[$(DEB_HOST_GNU_TYPE) == s390-linux] (build64, HOST64, CC64): Set them.
(build/Makefile): Use $(CONFIG_OPTS).
(build64/Makefile): Pass --host as well as --build.
From Bastian Blank <[email protected]>.
Fixes Debian bug #271500.
* linux/hppa/syscallent.h: Update for 2.6.9 syscalls.
From Randolph Chung <[email protected]>
Fixes Debian bug #273887.
* file.c (sys_llseek): Revert last change.
2004-09-14 Richard Henderson <[email protected]>
* linux/alpha/syscallent.h: Add tgkill, *stat64, vserver, mbind,
[gs]et_mempolicy, mq_*, waitid.
2004-10-07 Roland McGrath <[email protected]>
* file.c (sys_llssek, sys_readahead, sys_fadvise64, sys_fadvise64_64):
Use LONG_LONG macro.
* io.c (sys_pread, sys_pwrite, sys_sendfile): Likewise.
* linux/x86_64/syscallent.h: Fix botched table entries.
From Ulrich Drepper <[email protected]>.
* mem.c [LINUX] (sys_mbind, sys_set_mempolicy, sys_get_mempolicy):
New functions.
* linux/syscall.h: Declare them.
* linux/x86_64/syscallent.h: Likewise.
From Ulrich Drepper <[email protected]>.
* linux/syscallent.h: Handle mbind, set_mempolicy, get_mempolicy.
From Ulrich Drepper <[email protected]>.
* file.c [LINUX && (I386 || X86_64)] (sys_fadvise64, sys_fadvise64_64):
New functions.
* linux/syscall.h: Declare them.
* linux/syscallent.h: Handle fadvise64 and fadvise64_64 using those.
* linux/x86_64/syscallent.h: Likewise.
From Ulrich Drepper <[email protected]>.
2004-09-13 Dmitry V. Levin <[email protected]>
* linux/ioctlsort.c (main): Omit duplicate lines
(with same name and code) from output.
* linux/ioctlent.sh: Build the list of ioctls defined in
scsi/sg.h (0x22..), scsi/scsi.h and scsi/scsi_ioctl.h (0x53..),
as suggested by Peter Jones <[email protected]>
* linux/ioctlent.h: Regenerated.
Fixes RH#129808.
2004-09-13 Ulrich Drepper <[email protected]>
Dmitry V. Levin <[email protected]>
* time.c [LINUX] (print_rtc): New function, for printing rtc_time
structure.
[LINUX] (rtc_ioctl): New function, for parsing RTC_* ioctls.
* ioctl.c [LINUX] (ioctl_decode): Call rtc_ioctl.
* defs.h [LINUX]: Declare rtc_ioctl.
Fixes RH#58606.
2004-10-06 Roland McGrath <[email protected]>
* desc.c [LINUX] (sys_epoll_create, sys_epoll_ctl, sys_epoll_wait):
New functions.
* linux/syscall.h: Declare them.
* linux/syscallent.h: Use those for epoll_* syscalls.
* linux/alpha/syscallent.h: Likewise.
* linux/hppa/syscallent.h: Likewise.
* linux/ia64/syscallent.h: Likewise.
* linux/powerpc/syscallent.h: Likewise.
* linux/s390/syscallent.h: Likewise.
* linux/s390x/syscallent.h: Likewise.
* linux/sparc/syscallent.h: Likewise.
* linux/sparc64/syscallent.h: Likewise.
* linux/sparc64/syscallent2.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
From Ulrich Drepper <[email protected]>.
Fixes RH#134463.
* resource.c (resources): Add RLIMIT_LOCKS, RLIMIT_SIGPENDING,
and RLIMIT_MSGQUEUE, if defined.
From Ulrich Drepper <[email protected]>.
Fixes RH#133594.
* net.c [HAVE_SENDMSG] (printcmsghdr): New function.
(printmsghdr): Use it.
From Ulrich Drepper <[email protected]>.
Fixes RH#131689.
* file.c (sprintmode): Add const to return type.
(sprintfstype): Likewise.
* signal.c (printsiginfo): Add a const.
2004-09-15 Roland McGrath <[email protected]>
* linux/x86_64/syscallent.h: Use sys_waitid.
* linux/syscallent.h: waitid takes 5 arguments, and is in TP category.
* process.c (sys_waitid): Handle fifth argument (struct rusage *).
2004-09-11 Roland McGrath <[email protected]>
* time.c (sys_clock_nanosleep): Print zero flags arg correctly.
(sys_timer_settime): Likewise.
(printsigevent): Print signals by name for SIGEV_SIGNAL.
(sys_timer_create): Print clock ID symbolically.
From Ulrich Drepper <[email protected]>.
Fixes RH#131420.
2004-09-07 Michal Ludvig <[email protected]>
* defs.h (nioctlents1, nsignals2): Fix typos in decls.
2004-09-03 Roland McGrath <[email protected]>
* syscall.c (qual_options): Add const to defn.
Update all uses.
(call_count, error_count, tv_count): Variables removed.
(struct call_counts, counts): New type and variable.
Update all users of the old three to use the new array of structs.
(trace_syscall): Allocate counts on first use.
(sorted_count): Variable removed.
(call_summary): Allocate locally.
* syscall.c (sysent0, sysent1, sysent2, sysent): Add const to defn.
(nsyscalls0, nsyscalls1, nsyscalls2): Likewise.
(errnoent0, errnoent1, errnoent2, errnoent): Likewise.
(nerrnos0, nerrnos1, nerrnos2): Likewise.
* signal.c (signalent0, signalent1, signalent2): Likewise.
(nsignals0, nsignals1, nsignals2): Likewise.
(signame): LIkewise.
* ioctl.c (ioctlent0, ioctlent1, ioctlent2): Likewise.
(nioctlents0, nioctlents1, nioctlents2): Likewise.
(ioctl_lookup, ioctl_next_match): Likewise.
* defs.h: Update decls.
* io.c (sys_ioctl): Update users.
* util.c (xlookup, printxval, addflags, printflags): Use const for
struct xlat * argument.
* defs.h (xlookup, printxval, addflags, printflags): Update decls.
* bjm.c: Add const to all struct xlat defns.
* desc.c: Likewise.
* file.c: Likewise.
* ipc.c: Likewise.
* mem.c: Likewise.
* net.c: Likewise.
* proc.c: Likewise.
* process.c: Likewise.
* resource.c: Likewise.
* signal.c: Likewise.
* sock.c: Likewise.
* stream.c: Likewise.
* system.c: Likewise.
* term.c: Likewise.
* time.c: Likewise.
* util.c: Likewise.
2004-09-01 Roland McGrath <[email protected]>
* linux/x86_64/syscallent.h: Add new entries for timer_*, clock_*, and
mq_* syscalls, and names only for new calls up to 252.
* linux/syscallent.h: Add waitid.
* linux/x86_64/syscallent.h: Likewise.
* linux/syscall.h: Declare sys_waitid.
* process.c (internal_wait): Take second arg giving index of flags
argument.
* defs.h: Update prototype.
* syscall.c (internal_syscall): Update caller.
Also use internal_wait for SYS_waitid.
* process.c (sys_waitid): Define for [LINUX] as well.
Don't tweak TCB_SUSPENDED--internal_wait does that.
(waitid_types): Conditionalize use of nonstandard P_* macros.
2004-08-31 Roland McGrath <[email protected]>
* configure.ac, NEWS: Version 4.5.7.
* debian/changelog: 4.5.7-1.
* strace.spec: 4.5.7-2.
* debian/rules: Rewrite sparc64 change of 2004-07-12.
Always do each build in a separate build directory.
Fixes Debian bug #254728.
* time.c (clocknames): Use #ifdef around CLOCK_* uses.
* strace.1: Say that -c shows system CPU time, not real time.
Fixes Debian bug #254438.
* syscall.c (dumpio): Match pread and pwrite system calls too.
Fixes Debian bug #239947.
* net.c (sockoptions): Add all SO_* macros known in Linux 2.6.9.
Fixes Debian bug #171653.
2004-07-12 Dmitry V. Levin <[email protected]>
* signal.c [LINUX] (parse_sigset_t): Fix hex strings parser.
Fixes RH#128091.
2004-08-30 Roland McGrath <[email protected]>
* strace.c (main): Don't call fake_execve under -c.
From Ulrich Drepper <[email protected]>.
Fixes RH#129166.
* net.c (sockipoptions): Add some options.
[SOL_IPV6] (sockipv6options): New variable.
(sys_getsockopt, printsockopt): Use it for SOL_IPV6 level.
From Ulrich Drepper <[email protected]>.
Fixes RH#128391.
* time.c (clocknames): New variable, symbolic names for clock_t.
(sys_clock_settime, sys_clock_gettime, sys_clock_nanosleep): Use it.
From Ulrich Drepper <[email protected]>.
Fixes RH#129378.
* system.c (personality_options): Hard-code values here.
Don't #include <linux/personality.h> at all.
Fixes RH#130965 and Debian bug #40588.
* file.c (print_xattr_val): New function to show attribute values.
(sys_setxattr, sys_fsetxattr, sys_getxattr, sys_fgetxattr): Use it.
From Ulrich Drepper <[email protected]>.
Fixes RH#131177.
2004-07-12 Roland McGrath <[email protected]>
* configure.ac, NEWS: Version 4.5.6.
* strace.spec, debian/changelog: 4.5.6-1.
* Makefile.am (EXTRA_DIST): Add linux/sparc64 files.
* debian/rules: On sparc-linux, build strace64 as well.
From Ben Collins <[email protected]>.
Fixes Debian bug #254728.
2004-07-07 David S. Miller <[email protected]>
* linux/sparc/syscallent.h: Sync with reality.
* linux/sparc/syscall.h (sys_sendfile64, sys_futex, sys_gettid,
sys_sched_setaffinity, sys_sched_getaffinity, sys_setxattr,
sys_lsetxattr, sys_fsetxattr, sys_getxattr, sys_lgetxattr,
sys_fgetxattr, sys_listxattr, sys_llistxattr, sys_flistxattr,
sys_removexattr, sys_lremovexattr, sys_fremovexattr,
sys_remap_file_pages, sys_readahead, sys_tgkill, sys_statfs64,
sys_fstatfs64, sys_clock_settime, sys_clock_gettime,
sys_clock_getres, sys_clock_nanosleep, sys_timer_create,
sys_timer_settime, sys_timer_gettime): New declarations.
* linux/sparc64/dummy2.h, linux/sparc64/syscallent2.h,
linux/sparc64/syscall.h, linux/sparc64/errnoent.h,
linux/sparc64/errnoent1.h, linux/sparc64/errnoent2.h,
linux/sparc64/ioctlent.h, linux/sparc64/ioctlent1.h,
linux/sparc64/ioctlent2.h, linux/sparc64/signalent.h,
linux/sparc64/signalent.h, linux/sparc64/signalent.h,
linux/sparc64/signalent1.h, linux/sparc64/signalent2.h,
linux/sparc64/syscall1.h, linux/sparc64/syscallent.h,
linux/sparc64/syscallent1.h: New files.
* defs.h (LINUXSPARC): Define also when SPARC64.
(LINUX && SPARC64): Set SUPPORTED_PERSONALITIES to 3.
Ignore SIGTRAP after execve by defining TCB_WAITEXECVE.
Define possibly missing __NR_exit_group. Declare getrval2.
* configure.ac (sparc64): New architecture case.
* file.c (stat_sparc64): New structure.
(printstat_sparc64): New output routine for that.
(printstat): Call it, if personality is 2.
(printstat64): Likewise.
* util.c: Conditionalize ptrace defines on LINUXSPARC
not LINUX && SPARC.
(SPARC64 && LINUX): Define r_pc to r_tpc, and PTRACE_FOOREGS
to PTRACE_FOOREGS64 so that more sparc code can be shared
between 64-bit and 32-bit.
(_hack_syscall5): Correct trap number when SPARC64.
(PTRACE_WRITE{TEXT,DATA}): Add SPARC64 to ifdef guard.
(getpc): Handle SPARC64 && LINUX.
(printcall): Likewise.
(arg fetching/setting): Use same code for SPARC64 LINUX
as for SPARC.
(setbpt): Handle SPARC64 && LINUX.
(clearbpt): Likewise.
* signal.c: Conditionalize ptrace defines on SPARC and
SPARC64.
(SPARC64 && LINUX): Define r_pc to r_tpc, and PTRACE_FOOREGS
to PTRACE_FOOREGS64 so that more sparc code can be shared
between 64-bit and 32-bit.
(m_siginfo): Use same definition on SPARC64 as SPARC.
(sys_sigreturn): Handle LINUX && SPARC64.
* syscall.c: Conditionalize ptrace defines on SPARC and
SPARC64.
(SPARC64 && LINUX): Define r_pc to r_tpc, and PTRACE_FOOREGS
to PTRACE_FOOREGS64 so that more sparc code can be shared
between 64-bit and 32-bit.
(getscno): Use same static state on SPARC64 as SPARC,
and add SPARC64 handling.
(get_error): Handle LINUX && SPARC64.
(force_result): Likewise.
(syscall_enter): Likewise.
(trace_syscall): Handle sys_socketcall and sys_ipc on SPARC64
just like SPARC.
(getrval2): Handle LINUX && SPARC64.
* process.c: Conditionalize ptrace defines on SPARC and
SPARC64.
(SPARC64 && LINUX): Define r_pc to r_tpc, and PTRACE_FOOREGS
to PTRACE_FOOREGS64 so that more sparc code can be shared
between 64-bit and 32-bit.
(change_syscall): Handle LINUX && SPARC64.
(struct_user_offsets): Ifdef out those which do not exist
on SPARC64.
* net.c (sys_pipe): Handle LINUX && SPARC64.
* ioctl.c: Fix initializer typo for nioctlents2, was
nioctlents1 by accident.
2004-06-28 Andreas Schwab <[email protected]>
* process.c (internal_exec): Move TCB_WAITEXECVE handling here.
(sys_execve): Remove it here.
2004-07-12 Roland McGrath <[email protected]>
* Makefile.am (EXTRA_DIST): Add linux/sh64/syscallent.h.
* debian/control (Section): Move to utils, matching Debian override.
* net.c (addrfams): Make variable global.
* sock.c (sock_ioctl): Decode the arguments for SIOCGIFNAME,
SIOCGIFINDEX, and SIOCGIFCONF.
From Ulrich Drepper <[email protected]>.
Fixes RH#126917.
* linux/ioctlsort.c: Add some #includes.
[POWERPC]: Kludge out high bits.
* linux/ia64/ioctlent.h: Regenerated using RHEL3 headers.
* linux/powerpc/ioctlent.h: Likewise.
2004-07-11 Roland McGrath <[email protected]>
* linux/ioctlent.sh: Replace asm with $asm in all places.
* configure.ac: Add I386 as AM_CONDITIONAL.
* Makefile.am [LINUX]: Add maintainer-mode rules to regenerate
the ioctlent.h file.
2004-07-08 Roland McGrath <[email protected]>
* resource.c (sys_quotactl): Truncate first argument to 32 bits, since
that's what the kernel will do.
2004-07-07 Roland McGrath <[email protected]>
* linux/ioctlent.sh: Take optional second argument to use as directory
name in place of `asm'.
2004-06-27 Roland McGrath <[email protected]>
* configure.ac, NEWS: Version 4.5.5.
* strace.spec, debian/changelog: 4.5.5-1.
2004-06-22 Roland McGrath <[email protected]>
* syscall.c (syscall_fixup) [LINUX && X86_64]: For 32-bit process,
sign extend the low 32 bits of RAX to 64 bits.
Fixes RH#126547.
* syscall.c (force_result): [LINUX && X86_64]: Fix RAX*4 -> RAX*8.
2004-06-03 Roland McGrath <[email protected]>
* configure.ac, NEWS: Version 4.5.4.
* strace.spec, debian/changelog: 4.5.4-1.
* net.c (domains): Add many PF_* values #ifdef PF_*.
(addrfams): Add many AF_* values #ifdef AF_*.
Fixes Debian bug #250506.
2004-05-02 Dmitry V. Levin <[email protected]>
* linux/ioctlsort.c (compare): When ioctl codes equal, compare
names.
(main): Print a note that program output is generated by
ioctlsort.
* linux/ioctlent.sh: Build the list of ioctls defined in
linux/fb.h (0x46..), linux/kd.h (0x4B..), linux/cdrom.h (0x53..),
asm/ioctls.h (0x54..), linux/vt.h (0x56..), linux/videotext.h
(0x71..), linux/videotext.h (0x72..), asm/sockios.h (0x89..),
linux/sockios.h (0x89..), linux/wireless.h (0x8B..).
* linux/ioctlent.h: Regenerated from linux-2.6.5.
Fixes RH#122257.
2004-06-03 Roland McGrath <[email protected]>
* debian/control (Architecture): Add amd64.
Fixes Debian bug #246568.
* strace.c (main) [LINUX]: Expand TCBTAB as necessary for threads
attached. Attach threads only under -f. Set TCB_FOLLOWFORK in them.
(expand_tcbtab): New function, broken out of ...
* process.c (fork_tcb): ... here, call that.
* defs.h: Declare expand_tcbtab.
2004-04-19 Roland McGrath <[email protected]>
* process.c (printstatus): Add a space before | in output.
2004-04-16 Roland McGrath <[email protected]>
* configure.ac: Version 4.5.3.
* strace.spec, debian/changelog: 4.5.3-1.
2004-03-18 Dmitry V. Levin <[email protected]>
* resource.c (sys_quotactl) [LINUX]: Cast arithmetic shift operand
from long to unsigned long, to fix output of the quotactl command
parser.
Fixes RH#118694.
2004-04-16 Roland McGrath <[email protected]>
* linux/s390/ioctlent.h, linux/s390x/ioctlent.h: Update DASD ioctls.
From Maxim Shchetynin <[email protected]>.
* configure.ac: Check for <mqueue.h>.
* ipc.c (sys_mq_open, printmqattr) [! HAVE_MQUEUE_H]: Don't try to
decode struct mq_attr.
* NEWS: Mention mq support.
* linux/syscall.h: Support new mq_* syscalls on Linux.
* linux/syscallent.h: Likewise.
* linux/dummy.h: Likewise.
* ipc.c: Likewise.
* time.c (printsigevent): Handle SIGEV_THREAD.
From Ulrich Drepper <[email protected]>.
Fixes RH#120701.
2004-04-13 Roland McGrath <[email protected]>
* net.c (msg_flags): Grok MSG_FIX, MSG_SYN, MSG_RST, MSG_NOSIGNAL,
MSG_MORE.
From Ulrich Drepper <[email protected]>.
Fixes RH#120541.
* process.c (printstatus): Mask out bits presented symbolically, and
print "| 0xnnn" if the remaining bits are not all zero.
Fixes Debian bug #240062.
* process.c (print_affinitylist): Rewritten to handle indirect values.
(sys_sched_setaffinity, sys_sched_getaffinity): Update callers.
From Ulrich Drepper <[email protected]>.
Fixes RH#118685.
* acinclude.m4: Quote first argument to AC_DEFUN in all cases.
2004-04-08 Roland McGrath <[email protected]>
* strace.c (main) [LINUX]: When attaching for -p, look in
/proc/PID/task for all threads and attach them as presumed
CLONE_THREAD children.
* NEWS: Mention the feature.
Fixes RH#120462.
2004-03-02 Roland McGrath <[email protected]>
* util.c (setbpt): Fix one missed spot to use new arg0_index macro.
From Michael Holzheu <[email protected]>.
* debian/control (Standards-Version): Update to 3.6.1.
2004-03-01 Roland McGrath <[email protected]>
* configure.ac, NEWS: Version 4.5.2.
* strace.spec, debian/changelog: 4.5.2-1.
* strace.c (main): Avoid potential buffer overruns from ludicrous
arguments or PATH values.
* syscall.c (qual_signal): Bail out for too-long string.
* mem.c [LINUX]: <asm/mman.h> -> <linux/mman.h>
Fixes Debian bug #223207.
* linux/sparc/syscall.h: Copy linux/syscall.h decls of sys_sched_*.
* configure.ac: Check for `struct user_desc' in <asm/ldt.h>.
* process.c [HAVE_STRUCT_USER_DESC]: Use struct user_desc in place of
struct modify_ldt_ldt_s.
* mem.c [HAVE_STRUCT_USER_DESC]: Likewise.
* system.c (sysctl_vm): Conditionalize VM_* macro uses, add some more.
From Tim Yamin <[email protected]>.
* process.c (sys_execve): Clear instead of set TCB_WAITEXECVE on
erring syscall.
* configure.ac: Check for `struct pt_all_user_regs'
and `struct ia64_fpreg' in <sys/ptrace.h>.
* util.c, process.c, syscall.c, signal.c: Work around conflicts between
<sys/ptrace.h> and <linux/ptrace.h> for defining those types.
* process.c (struct_user_offsets) [LINUX && IA64]: Conditionalize
PT_AR_CSD and PT_AR_SSD uses in case of older kernel headers.
* util.c [LINUX] (arg0_index, arg1_index): New macros.
[S390 || S390X]: Define them with inverted values.
(setbpt): Use them for u_arg indices.
2004-02-26 Andreas Schwab <[email protected]>
* defs.h [LINUX && IA64]: Declare getrval2 also on IA64.
* net.c (sys_pipe) [LINUX && IA64]: For IA64 use the two return values.
* syscall.c (getrval2) [LINUX && IA64]: Implement for IA64.
2004-03-01 Roland McGrath <[email protected]>
* linux/dummy.h (sys_sched_getscheduler, sys_sched_setparam,
sys_sched_getparam, sys_sched_setscheduler, sys_sched_getscheduler,
sys_sched_get_priority_max, sys_sched_get_priority_min): Remove macros.
* process.c [LINUX] (sys_sched_getscheduler, sys_sched_setparam,
sys_sched_getparam, sys_sched_setscheduler, sys_sched_getscheduler,
sys_sched_get_priority_min): New functions.
From Ulrich Drepper <[email protected]>.
Fixes RH#116990.
2004-02-20 Roland McGrath <[email protected]>
* linux/hppa/syscallent.h: Update some syscalls.
From Randolph Chung <[email protected]>.
Fixes Debian bug #231632.
2003-12-31 David Mosberger <[email protected]>