aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/futex.c
diff options
context:
space:
mode:
authorKyle McMartin <kyle@parisc-linux.org>2005-11-18 16:21:12 -0500
committerKyle McMartin <kyle@parisc-linux.org>2005-11-18 16:21:12 -0500
commite670dfb9a4f9e136da44db167da75b2365f7cebb (patch)
tree843e28bda366c93669679b4e449935c54942d830 /kernel/futex.c
parent21b3d1d792af367854e61ee05dd9b2c931b60fed (diff)
[PARISC] Update CREDITS entries
Update Randolph Chung's location, and add Thibaut Varene. Signed-off-by: Randolph Chung <tausq@parisc-linux.org> Signed-off-by: Thibaut Varene <varenet@parisc-linux.org> Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
Diffstat (limited to 'kernel/futex.c')
0 files changed, 0 insertions, 0 deletions
-0400 Linux-2.6.12-rc2' href='/cgit/cgit.cgi/litmus-rt-pandaboard.git/commit/kernel/exit.c?h=pandaboard-litmus-mc&id=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2'>1da177e4c3f
7ed20e1ad52
6a14c5c9da0
9f46080c41d
de5097c2e73
0771dfefc9e
b92ce558937
fa84cb935d4
83cc5ed3c4c
0d67a46df01
6eaeeaba39e
30199f5a46a
5ad4e53bd54
d84f4f992cb
cdd6c482c9f
ad8d75fff81
24f1e32c60c
3d5992d2ac7
1da177e4c3f





408b664a7d3

d40e48e02f3
1da177e4c3f


d40e48e02f3
1da177e4c3f

c97d98931ac
5e85d4abe3f
9cd80bbb07f
73b9ebfe126
1da177e4c3f
47e65328a7b
1da177e4c3f

6a14c5c9da0





d40e48e02f3
6a14c5c9da0
4ada856fb0e
6a14c5c9da0
d11c563dd20

db1466b3e1b
6a14c5c9da0


d40e48e02f3
6a14c5c9da0
4ada856fb0e

4a599942973
6a14c5c9da0
e0a70217107







6a14c5c9da0


d344193a05d
6a14c5c9da0
6db840fa788
6a14c5c9da0











0cf55e1ec08

d5b7c78e975
6a14c5c9da0



6eaeeaba39e

5995477ab7f
32bd671d6cb
6a14c5c9da0

b3ac022cb9d
d40e48e02f3
5876700cd39
da7978b0348




a7e5328a06a
6a14c5c9da0
6a14c5c9da0
a7e5328a06a
6a14c5c9da0
d40e48e02f3
6a14c5c9da0
4ada856fb0e
6a14c5c9da0


8c7904a00b0

0a16b607584

4e231c7962c
0a16b607584

8c7904a00b0

f470021adb9
1da177e4c3f

36c8b586896
1da177e4c3f
1f09f9749cd
dae33574dcf
c69e8d9c01d
d11c563dd20

c69e8d9c01d
d11c563dd20
c69e8d9c01d
60347f6716a
0203026b58b
1da177e4c3f
dae33574dcf
1da177e4c3f
35f5cad8c4b
1da177e4c3f







d839fd4d2e9
1da177e4c3f








d839fd4d2e9
dae33574dcf






1da177e4c3f

1da177e4c3f
1da177e4c3f
8c7904a00b0
1da177e4c3f





1da177e4c3f



04a2e6a5cbf

1da177e4c3f
04a2e6a5cbf
1da177e4c3f

04a2e6a5cbf
62dfb5541a0
04a2e6a5cbf
62dfb5541a0
04a2e6a5cbf
62dfb5541a0
04a2e6a5cbf
62dfb5541a0
1da177e4c3f










0475ac0845f
1da177e4c3f

1da177e4c3f
0475ac0845f
05e83df624f


1da177e4c3f
05e83df624f
0475ac0845f
05e83df624f

0475ac0845f
05e83df624f

1da177e4c3f

3e7cd6c413c
1da177e4c3f



3e7cd6c413c
1da177e4c3f




0475ac0845f
1da177e4c3f



0475ac0845f
338077e54e1
1da177e4c3f
1da177e4c3f

0475ac0845f
1da177e4c3f


f49ee505b1e






























1da177e4c3f
49d769d52e1
1da177e4c3f

49d769d52e1

1da177e4c3f



49d769d52e1
1da177e4c3f
49d769d52e1
1da177e4c3f




49d769d52e1
f470021adb9
1da177e4c3f



e05606d3301
1da177e4c3f



1da177e4c3f

d84f4f992cb


1da177e4c3f
1da177e4c3f

8520d7c7f86
1da177e4c3f
e19f247a3db
1da177e4c3f
0d0df599f1f
7d8da0962ea
1b0f7ffd0ea

7d8da0962ea
1da177e4c3f

8520d7c7f86
1da177e4c3f

8520d7c7f86
1da177e4c3f



87245135d50

1da177e4c3f


7ed20e1ad52
1da177e4c3f


87245135d50
1da177e4c3f
87245135d50





1da177e4c3f








7ed20e1ad52
1da177e4c3f


10ab825bdef
1da177e4c3f














1da177e4c3f











83144186295



7b34e4283c6
1da177e4c3f
8520d7c7f86



297bd42b15d
24ec839c431
1da177e4c3f







3e93cd67181
d4c5e41f3f1
1da177e4c3f


49d769d52e1
1da177e4c3f



858119e1593
1da177e4c3f

badf16621c1
1da177e4c3f

4fb3a53860c



d11c563dd20
4fb3a53860c
d11c563dd20
badf16621c1
d11c563dd20
1da177e4c3f


bbea9f69668
1da177e4c3f
badf16621c1
1da177e4c3f

badf16621c1
944be0b2247
1da177e4c3f
944be0b2247

1da177e4c3f



















7ad5b3a505e
1da177e4c3f
badf16621c1

1da177e4c3f



ab2af1f5005


1da177e4c3f
d11c563dd20
badf16621c1
4fd45812cbe
ab2af1f5005
01b2d93ca4c
d11c563dd20
1da177e4c3f


3b1253880b7
3b9b8ab65d8
3b1253880b7
3b9b8ab65d8







3b9b8ab65d8
1ec7f1ddbe5
1da177e4c3f










cf475ad28ac










cf475ad28ac


























dea33cfd990
cf475ad28ac













31a78f23bac


e5991371ee0
31a78f23bac
31a78f23bac
cf475ad28ac









e5991371ee0




cf475ad28ac




cf475ad28ac





1da177e4c3f



408b664a7d3
1da177e4c3f

b564daf806d
1da177e4c3f





999d9fc1670
1da177e4c3f
999d9fc1670
1da177e4c3f


b564daf806d


1da177e4c3f
1da177e4c3f
b564daf806d







1da177e4c3f
a94e2d408ea






1da177e4c3f


125e18745f1
1da177e4c3f




0c1eecfb345

3d5992d2ac7

1da177e4c3f
cf475ad28ac
1da177e4c3f


1da177e4c3f



84d737866e2

1da177e4c3f
950bbabb5a8
d16e15f5b02

1da177e4c3f
950bbabb5a8

1da177e4c3f
950bbabb5a8







1da177e4c3f
950bbabb5a8



1da177e4c3f
950bbabb5a8

1da177e4c3f
950bbabb5a8


1da177e4c3f
950bbabb5a8
1da177e4c3f
762a24beed3
950bbabb5a8


5dfc80be73d


9cd80bbb07f
5dfc80be73d

5dfc80be73d














5cb11446892
5dfc80be73d










762a24beed3
1da177e4c3f
950bbabb5a8
5dfc80be73d
762a24beed3

c7e49c1488a




950bbabb5a8
f470021adb9
03ff17979c5
9cd80bbb07f











1da177e4c3f
762a24beed3
5dfc80be73d
762a24beed3
762a24beed3
5dfc80be73d

39c626ae47c

1da177e4c3f





821c7de7194
1da177e4c3f
2b2a1ff64af

1da177e4c3f
1da177e4c3f







762a24beed3
2e4a707269a
1da177e4c3f
762a24beed3
821c7de7194

1da177e4c3f
247284481ca
1da177e4c3f

d4c5e41f3f1
1da177e4c3f








1da177e4c3f
d839fd4d2e9
f49ee505b1e
432870dab85
1da177e4c3f

2b2a1ff64af
5c7edcd7ee6
2b2a1ff64af
1da177e4c3f
5c7edcd7ee6
1da177e4c3f
9c339168441

6db840fa788
1da177e4c3f

2b2a1ff64af

1da177e4c3f
5c7edcd7ee6
1da177e4c3f
1da177e4c3f

e18eecb8b35




e18eecb8b35

7c9f8861e6c
e18eecb8b35
















7ad5b3a505e
1da177e4c3f





22e2c507c30

1da177e4c3f



1da177e4c3f
30199f5a46a
1da177e4c3f
e0e817392b9

df164db5fd1






778e9a9c3e7









df164db5fd1



3aa551c9b4c

d12619b5ff5
778e9a9c3e7



d2ee7198cc2
1d615482547
1da177e4c3f
1da177e4c3f

ba25f9dcc4e
1da177e4c3f


34e55232e59
a3a2e76c77f

1da177e4c3f
c306895167c
778e9a9c3e7
25f407f0b66
1f10206cf8e

c306895167c
f6ec29a42d7
522ed7767e8

fa84cb935d4

115085ea079
f2ab6d88894
115085ea079
c757249af15
1da177e4c3f

0e4648141af
f6ec29a42d7
0a16b607584

1da177e4c3f
1ec7f1ddbe5

e18eecb8b35
1da177e4c3f
b4f48b6363c
1da177e4c3f
5ec93d1154f
1da177e4c3f

a1261f54611
1da177e4c3f
9f46080c41d
33b2fb303fe

24f1e32c60c



33b2fb303fe


cdd6c482c9f
33b2fb303fe
821c7de7194
1da177e4c3f
c0ff7453bb5
f0be3d32b05
1da177e4c3f
c0ff7453bb5
1da177e4c3f
42b2dd0a02c
c87e2837be8

42b2dd0a02c
c87e2837be8
9a11b49a805
de5097c2e73
9a11b49a805
778e9a9c3e7





1da177e4c3f
afc847b7ddc
b69f2292063
afc847b7ddc
b92ce558937


e0e817392b9

7407251a0e2
f41d911f8c4
55a101f8f71
c394cc9fbb3
1da177e4c3f


54306cf04c0

1da177e4c3f

012914dad25

1da177e4c3f



55a101f8f71
1da177e4c3f




754fe8d297b
1da177e4c3f



1da177e4c3f






bfc4b0890af

1da177e4c3f

bfc4b0890af

1da177e4c3f
1da177e4c3f
1da177e4c3f
ed5d2cac114
1da177e4c3f


1da177e4c3f
ed5d2cac114
1da177e4c3f


1da177e4c3f










754fe8d297b
1da177e4c3f

2ed7c03ec17

1da177e4c3f

9e8ae01d1c8

9e8ae01d1c8
e1eb1ebcca8
9e8ae01d1c8




0b7570e77f7
9e8ae01d1c8


989264f4645

161550d74c0
989264f4645


161550d74c0

989264f4645
1da177e4c3f
5c01ba49e66


1da177e4c3f
5c01ba49e66



1da177e4c3f




9e8ae01d1c8

1da177e4c3f
1da177e4c3f
14dd0b81414
1da177e4c3f

9e8ae01d1c8

1da177e4c3f
9e8ae01d1c8


36c8b586896
1da177e4c3f
9e8ae01d1c8
b6fe2d117e9













1da177e4c3f










9e8ae01d1c8
1da177e4c3f

2f4e6e2a814
6c5f3e7b433
c69e8d9c01d
9e8ae01d1c8
1da177e4c3f
9e8ae01d1c8
98abed02007

9e8ae01d1c8
1da177e4c3f
f3abd4f9531
1da177e4c3f
1da177e4c3f








9e8ae01d1c8
1da177e4c3f










1da177e4c3f
53b6f9fbd3b
befca96779b




3795e1616f1

1f10206cf8e
0cf55e1ec08
3795e1616f1
1da177e4c3f










d1e98f429aa
1da177e4c3f

0cf55e1ec08



1da177e4c3f
0cf55e1ec08
d1e98f429aa

3795e1616f1


0cf55e1ec08

3795e1616f1

0cf55e1ec08

9ac52315d4c




3795e1616f1







6eaeeaba39e





1f10206cf8e


5995477ab7f

d1e98f429aa
1da177e4c3f







9e8ae01d1c8

1da177e4c3f

9e8ae01d1c8



1da177e4c3f


















3a515e4a62d
1da177e4c3f
c69e8d9c01d
2f4e6e2a814
3a515e4a62d
2f4e6e2a814

1da177e4c3f
2f4e6e2a814






d839fd4d2e9
2f4e6e2a814
d839fd4d2e9
2f4e6e2a814

1da177e4c3f





2f4e6e2a814
1da177e4c3f


90bc8d8b1a3











1da177e4c3f





9e8ae01d1c8

1da177e4c3f
9e8ae01d1c8
90bc8d8b1a3
ee7c82da830
c895078355b
1da177e4c3f
47918025efd


9e8ae01d1c8
98abed02007

ee7c82da830


90bc8d8b1a3

ee7c82da830

90bc8d8b1a3
ee7c82da830


9e8ae01d1c8
90bc8d8b1a3
ee7c82da830
f362b73244f
ee7c82da830


1da177e4c3f









6c5f3e7b433
f470021adb9
1da177e4c3f

9e8ae01d1c8






1da177e4c3f
9e8ae01d1c8
1da177e4c3f




6efcae46018
1da177e4c3f


c895078355b
1da177e4c3f
ee7c82da830
1da177e4c3f
c895078355b
1da177e4c3f











9e8ae01d1c8
1da177e4c3f




9e8ae01d1c8
98abed02007

1da177e4c3f








9e8ae01d1c8
1da177e4c3f
f362b73244f
1da177e4c3f

6c5f3e7b433
1da177e4c3f


9e8ae01d1c8


1da177e4c3f
9e8ae01d1c8

1da177e4c3f
3a515e4a62d
1da177e4c3f
9e8ae01d1c8

1da177e4c3f





98abed02007


9e8ae01d1c8
98abed02007

9e8ae01d1c8
14dd0b81414
98abed02007
b6e763f07fb

98abed02007
9e8ae01d1c8
14dd0b81414
98abed02007

a2322e1d272
14dd0b81414







9e8ae01d1c8

78a3d9d5654
14dd0b81414

5cb11446892
f470021adb9



9e8ae01d1c8
f470021adb9


98abed02007






9e8ae01d1c8
98abed02007




9e8ae01d1c8
98abed02007
90bc8d8b1a3
9e8ae01d1c8
98abed02007
9e8ae01d1c8
98abed02007




9e8ae01d1c8
98abed02007

9e8ae01d1c8
14dd0b81414
98abed02007
9e8ae01d1c8
98abed02007



9cd80bbb07f


98abed02007




9e8ae01d1c8
98abed02007


f470021adb9
b6e763f07fb
f470021adb9
98abed02007
98abed02007




0b7570e77f7






5c01ba49e66
0b7570e77f7

b4fe51823d7


0b7570e77f7


a7f0765edfd

0b7570e77f7

a7f0765edfd

9e8ae01d1c8
1da177e4c3f
1da177e4c3f
98abed02007
1da177e4c3f
9e8ae01d1c8
0a16b607584
0b7570e77f7


1da177e4c3f
98abed02007

9e8ae01d1c8


98abed02007
64a16caf5e3
9e8ae01d1c8

64a16caf5e3
161550d74c0
f95d39d10fe
1da177e4c3f


64a16caf5e3


9e8ae01d1c8
64a16caf5e3

98abed02007
98abed02007
9e8ae01d1c8
1da177e4c3f
a3f6dfb7295
1da177e4c3f
f2cc3eb133b
64a16caf5e3
9e8ae01d1c8

1da177e4c3f
98abed02007



1da177e4c3f
1da177e4c3f
f95d39d10fe
0b7570e77f7
1da177e4c3f


17da2bd90ab

1da177e4c3f
9e8ae01d1c8
161550d74c0

1da177e4c3f








161550d74c0
1da177e4c3f

161550d74c0

1da177e4c3f


161550d74c0

1da177e4c3f
1da177e4c3f




161550d74c0

9e8ae01d1c8







dfe16dfa4ac






















161550d74c0
1da177e4c3f

54a01510413
1da177e4c3f


754fe8d297b

1da177e4c3f
9e8ae01d1c8
161550d74c0

1da177e4c3f




161550d74c0







2ae448efc87
161550d74c0




9e8ae01d1c8






161550d74c0
1da177e4c3f

54a01510413
1da177e4c3f








17da2bd90ab
1da177e4c3f




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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789





                                            


                            
                         
                             


                              
                            



                           
                              
                       
                          
                          
                          
                                



                          
                          
                            
                                 
                            
                          
                         
                           
                         
                               
                          
                        
                        
                            
                                               
                           
                         
                                         
                            
                            
                            
                             
                               
                                
                      





                            

                                              
                                                                    


                                   
                         

                                            
 
                                        
                                           
                                                
         
                                       

 





                                                        
                                                   
                                       
                                                  
 

                                                               
                                                                         


                                     
                         
                                                 

                                
                
                  







                                                                     


                                                                  
                                                                  
                                                              
 











                                                                          

                                                                 
                                                                 



                                             

                                                         
                                                               
                                                                   

         
                          
                                          
 




                                                                      
                            
                                       
 
                                   
                                                  
                         
                                                     
                                  


         

                                                         

                                                                             
                                    

                                      

 
 

                                         
                                   
                       
       
                                          
                                                                            

                                                                             
                                                     
                          
 
                           
 
                                       
                                         
                         
 







                                                                                             
                                              








                                                                           
                                                   






                                                                     

         
                                         
                          
                                                   





                                 



                                                                   

                                                      
   
                                             

                              
                               
 
                                         
                      
                                                
                      
                                      
 










                                                                          
                                                                                        

                              
 
                                                 


                                                               
                                 
 
                                                        

                                                                    
                                                     

                 

 
                                  



                                  
                                                                     




                                    
                                             



                              
                                                 
                                        
                                 

                           
                                                     


                      






























                                                                       
   
                                                                        

                                                                     

                                                                           



                                                                            
                                                                       
   
                                      




                                       
                                                               
                                                                           



                                                                      
                                   



                                          

                                                             


                                     
                                         

 
                                        
 
                                                         
 
                                      
                                                   

                                   
                                                    

 
                                             

                                       
                                



                                         

                                                                       


                         
                                          


                                                  
                                                             
                                          





                                                                           








                                                    
                                          


                                                  
                                                                  














                                                                    











                                                                             



                                                                              
                                                     
 



                                                               
                                           
                                







                                               
                              
                            


                                           
                               



                         
                                                    

                 
                            

              



                                                                
                                                                
           
                        
                                   
                          


                                  
                                      
                              
                                                   

                                      
                                                                             
                                           
                                                                

                                                       



















                                                               
                                                 
 

                            



                                                                    


                                                                      
                   
                                
                                           
                                         
                                                             
                                  
                                  


         
                                                   
 
                                          







                                 
 
                                        










                                                 










                                                                           


























                                                       
                                                                    













                                                            


                                                                       
                                                                         
           
                         









                                                      




                                                            




                                   





                            



                                        
                                             

                                       
                                      





                                                        
                                                           
                                                          
                                                             


                                   


                                        
                                       
 







                                                                     
 






                                                                   


                                         
                                     




                                                    

                                                              

                                                            
                         
                                 


                  



                                                   

                                                  
   
                                                                      

                                  
 

                                                                  
 







                                                             
 



                                                         
 

                                               
                  


                                                                      
                   
                                                                
         
 


                                    


                                                               
                                                                              

                                                       














                                                                              
                              










                                                                    
                                                              
 
                                           
                                 

                                       




                                                              
                                         
 
                                                                    











                                                                        
         
                                         
 
                                               
 

                                                                 

                                





                                                              
                                                                
 

                     
 







                                                                             
                                    
                                  
 
                                       

                                                            
 
                                  

                                                                       
                                                      








                                                                       
           
                                                                 
                                                                     
                                                       

                                           
                                                                  
                        
                                                       
 
                                                                         
 

                                                              
                                                              

                                         

                                                                
                                                                          
                                 
                                  

 




                                                

                           
                                       
















                                                                              
                                  





                                          

                                            



                                                          
 
                                     
 

                                        






                                                                           









                                                                      



                                                        

                          
                                                 



                                                                      
                 
                                            
 

                                                                               
                                                                    


                                                 
                                                            

                                          
                                                             
                         
                                                         
                                          

                                                                             
         
                                       

                                 

                                         
 
                              
                                        
 

                     
                       
                               

                                      
                      

                        
                            
                      
                            
 
                       

                                     
                                                               
 
                                 

          



                                                                       


                                                                     
                                  
 
                                     
                  
                       
                                 
                              
                         
      
                   

                                               
      
          
                                             
           
                                       





                                                                      
 
                            
                                     
 


                                                   

                                        
                          
                   
                                                                   
                               


                                                     

                                                          

 

                           



                                                                     
 




                                 
                                      



                                      






                                                                        

                                                    

                                                                 

                                                 
                                                
                                                                        
                                                 
                                           


                                                                               
                                                         
                                                       


                                                   










                                                                        
                                            

                                                

                        

 

                                        
                                         
                                        




                                           
                                           


                                             

                                                                       
 


                                          

 
                                                                    
 


                                                            
 



                                                                      




                                                                      

                                                                       
                         
 
                 

 

                                                                           
 


                                                               
 
                           
                            













                                                                       










                                                                          
                                                                        

                            
                                   
                                    
                                        
                                     
 
                                            

                         
                                               
                                             
                        
 








                                                                           
                                                                         










                                                 
 
                                      




                                                           

                                           
                                     
                                           
 










                                                                        
                                                                       

                                                                    



                                                                          
                   
                                                          

                                                                 


                                                 

                                                  

                                                 

                                                  




                                                   







                                                                  





                                                     


                                                        

                                                                
                                                                   







                                                                    

                                                               

                                                            



                                                       


















                                                                        
                                                       
                             
                                                       
                    
                             

                     
                                               






                                                                        
                                        
                                                            
                                                

                                                            





                                                 
 


                      











                                                                 





                                                                          

                                                                  
 
                                     
                                            
                                                           
                  
 


                                                                             
                                                   

                         


                                            

                                              

                                
                            


                                
                                              
                            
 
                          


                                              









                                                                          
                              
                                                 

                                    






                                                                            
 
                            




                                                             
                                                               


                                                                
                                                       
                             
                                                       
                    
                             











                                                                          
                                                                           




                   
                                                 

                         








                                                          
                                              
                                                           
                          

                                              
                              


                                    


                                                                       
                                   

                                                               
                            
                                     
                

                                                                     





                                    


                                     
                                                             

                                                                           
                                                       
                                                                
   

                                                               
 
                                        
                 

                           
                                    







                                                               

                                               
                         

         
                                                          



                                                                           
                                     


                         






                                                                   
                                               




                                                   
                             
 
                                         
                                                        
 
                                          




                                                              
                                                             

                                                                           
                                                           
                                                                
   
                                                                        



                                                         


                                                       




                 
                                                                        


                              
                                                             
                                                       
                        
                                   




                 






                                                                   
                                 

                         


                                                                       


                                                            

                                                                        

                                                          

 
                                         
 
                                
                   
 
                                             
 


                                                                         
       

                                                                        


                                                                          
           
                                   

                                                                         
                            
 
                                              


                                  


                                                 
 

                                                 
                                 
 
                                               
                              
                                          
                                    
 
       

                                                   
                                      



                                               
         
    
                                          
                                                                            


                      

                                                                         
 
                            

                               








                                                                     
                                   

                      

                                   


                                       

                                    
                                       




                               

                                         







                                  






















                                                                 
                     

                                            
                                                                    


                   

                                                            
 
                            

                               




                                                     







                                          
                                                          




                                         






                                            
                     

                                            
                                                                 








                                                               
                                                                           




                                                        
/*
 *  linux/kernel/exit.c
 *
 *  Copyright (C) 1991, 1992  Linus Torvalds
 */

#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/capability.h>
#include <linux/completion.h>
#include <linux/personality.h>
#include <linux/tty.h>
#include <linux/iocontext.h>
#include <linux/key.h>
#include <linux/security.h>
#include <linux/cpu.h>
#include <linux/acct.h>
#include <linux/tsacct_kern.h>
#include <linux/file.h>
#include <linux/fdtable.h>
#include <linux/binfmts.h>
#include <linux/nsproxy.h>
#include <linux/pid_namespace.h>
#include <linux/ptrace.h>
#include <linux/profile.h>
#include <linux/mount.h>
#include <linux/proc_fs.h>
#include <linux/kthread.h>
#include <linux/mempolicy.h>
#include <linux/taskstats_kern.h>
#include <linux/delayacct.h>
#include <linux/freezer.h>
#include <linux/cgroup.h>
#include <linux/syscalls.h>
#include <linux/signal.h>
#include <linux/posix-timers.h>
#include <linux/cn_proc.h>
#include <linux/mutex.h>
#include <linux/futex.h>
#include <linux/pipe_fs_i.h>
#include <linux/audit.h> /* for audit_free() */
#include <linux/resource.h>
#include <linux/blkdev.h>
#include <linux/task_io_accounting_ops.h>
#include <linux/tracehook.h>
#include <linux/fs_struct.h>
#include <linux/init_task.h>
#include <linux/perf_event.h>
#include <trace/events/sched.h>
#include <linux/hw_breakpoint.h>
#include <linux/oom.h>

#include <asm/uaccess.h>
#include <asm/unistd.h>
#include <asm/pgtable.h>
#include <asm/mmu_context.h>

static void exit_mm(struct task_struct * tsk);

static void __unhash_process(struct task_struct *p, bool group_dead)
{
	nr_threads--;
	detach_pid(p, PIDTYPE_PID);
	if (group_dead) {
		detach_pid(p, PIDTYPE_PGID);
		detach_pid(p, PIDTYPE_SID);

		list_del_rcu(&p->tasks);
		list_del_init(&p->sibling);
		__get_cpu_var(process_counts)--;
	}
	list_del_rcu(&p->thread_group);
}

/*
 * This function expects the tasklist_lock write-locked.
 */
static void __exit_signal(struct task_struct *tsk)
{
	struct signal_struct *sig = tsk->signal;
	bool group_dead = thread_group_leader(tsk);
	struct sighand_struct *sighand;
	struct tty_struct *uninitialized_var(tty);

	sighand = rcu_dereference_check(tsk->sighand,
					rcu_read_lock_held() ||
					lockdep_tasklist_lock_is_held());
	spin_lock(&sighand->siglock);

	posix_cpu_timers_exit(tsk);
	if (group_dead) {
		posix_cpu_timers_exit_group(tsk);
		tty = sig->tty;
		sig->tty = NULL;
	} else {
		/*
		 * This can only happen if the caller is de_thread().
		 * FIXME: this is the temporary hack, we should teach
		 * posix-cpu-timers to handle this case correctly.
		 */
		if (unlikely(has_group_leader_pid(tsk)))
			posix_cpu_timers_exit_group(tsk);

		/*
		 * If there is any task waiting for the group exit
		 * then notify it:
		 */
		if (sig->notify_count > 0 && !--sig->notify_count)
			wake_up_process(sig->group_exit_task);

		if (tsk == sig->curr_target)
			sig->curr_target = next_thread(tsk);
		/*
		 * Accumulate here the counters for all threads but the
		 * group leader as they die, so they can be added into
		 * the process-wide totals when those are taken.
		 * The group leader stays around as a zombie as long
		 * as there are other threads.  When it gets reaped,
		 * the exit.c code will add its counts into these totals.
		 * We won't ever get here for the group leader, since it
		 * will have been the last reference on the signal_struct.
		 */
		sig->utime = cputime_add(sig->utime, tsk->utime);
		sig->stime = cputime_add(sig->stime, tsk->stime);
		sig->gtime = cputime_add(sig->gtime, tsk->gtime);
		sig->min_flt += tsk->min_flt;
		sig->maj_flt += tsk->maj_flt;
		sig->nvcsw += tsk->nvcsw;
		sig->nivcsw += tsk->nivcsw;
		sig->inblock += task_io_get_inblock(tsk);
		sig->oublock += task_io_get_oublock(tsk);
		task_io_accounting_add(&sig->ioac, &tsk->ioac);
		sig->sum_sched_runtime += tsk->se.sum_exec_runtime;
	}

	sig->nr_threads--;
	__unhash_process(tsk, group_dead);

	/*
	 * Do this under ->siglock, we can race with another thread
	 * doing sigqueue_free() if we have SIGQUEUE_PREALLOC signals.
	 */
	flush_sigqueue(&tsk->pending);
	tsk->sighand = NULL;
	spin_unlock(&sighand->siglock);

	__cleanup_sighand(sighand);
	clear_tsk_thread_flag(tsk,TIF_SIGPENDING);
	if (group_dead) {
		flush_sigqueue(&sig->shared_pending);
		tty_kref_put(tty);
	}
}

static void delayed_put_task_struct(struct rcu_head *rhp)
{
	struct task_struct *tsk = container_of(rhp, struct task_struct, rcu);

	perf_event_delayed_put(tsk);
	trace_sched_process_free(tsk);
	put_task_struct(tsk);
}


void release_task(struct task_struct * p)
{
	struct task_struct *leader;
	int zap_leader;
repeat:
	tracehook_prepare_release_task(p);
	/* don't need to get the RCU readlock here - the process is dead and
	 * can't be modifying its own credentials. But shut RCU-lockdep up */
	rcu_read_lock();
	atomic_dec(&__task_cred(p)->user->processes);
	rcu_read_unlock();

	proc_flush_task(p);

	write_lock_irq(&tasklist_lock);
	tracehook_finish_release_task(p);
	__exit_signal(p);

	/*
	 * If we are the last non-leader member of the thread
	 * group, and the leader is zombie, then notify the
	 * group leader's parent process. (if it wants notification.)
	 */
	zap_leader = 0;
	leader = p->group_leader;
	if (leader != p && thread_group_empty(leader) && leader->exit_state == EXIT_ZOMBIE) {
		BUG_ON(task_detached(leader));
		do_notify_parent(leader, leader->exit_signal);
		/*
		 * If we were the last child thread and the leader has
		 * exited already, and the leader's parent ignores SIGCHLD,
		 * then we are the one who should release the leader.
		 *
		 * do_notify_parent() will have marked it self-reaping in
		 * that case.
		 */
		zap_leader = task_detached(leader);

		/*
		 * This maintains the invariant that release_task()
		 * only runs on a task in EXIT_DEAD, just for sanity.
		 */
		if (zap_leader)
			leader->exit_state = EXIT_DEAD;
	}

	write_unlock_irq(&tasklist_lock);
	release_thread(p);
	call_rcu(&p->rcu, delayed_put_task_struct);

	p = leader;
	if (unlikely(zap_leader))
		goto repeat;
}

/*
 * This checks not only the pgrp, but falls back on the pid if no
 * satisfactory pgrp is found. I dunno - gdb doesn't work correctly
 * without this...
 *
 * The caller must hold rcu lock or the tasklist lock.
 */
struct pid *session_of_pgrp(struct pid *pgrp)
{
	struct task_struct *p;
	struct pid *sid = NULL;

	p = pid_task(pgrp, PIDTYPE_PGID);
	if (p == NULL)
		p = pid_task(pgrp, PIDTYPE_PID);
	if (p != NULL)
		sid = task_session(p);

	return sid;
}

/*
 * Determine if a process group is "orphaned", according to the POSIX
 * definition in 2.2.2.52.  Orphaned process groups are not to be affected
 * by terminal-generated stop signals.  Newly orphaned process groups are
 * to receive a SIGHUP and a SIGCONT.
 *
 * "I ask you, have you ever known what it is to be an orphan?"
 */
static int will_become_orphaned_pgrp(struct pid *pgrp, struct task_struct *ignored_task)
{
	struct task_struct *p;

	do_each_pid_task(pgrp, PIDTYPE_PGID, p) {
		if ((p == ignored_task) ||
		    (p->exit_state && thread_group_empty(p)) ||
		    is_global_init(p->real_parent))
			continue;

		if (task_pgrp(p->real_parent) != pgrp &&
		    task_session(p->real_parent) == task_session(p))
			return 0;
	} while_each_pid_task(pgrp, PIDTYPE_PGID, p);

	return 1;
}

int is_current_pgrp_orphaned(void)
{
	int retval;

	read_lock(&tasklist_lock);
	retval = will_become_orphaned_pgrp(task_pgrp(current), NULL);
	read_unlock(&tasklist_lock);

	return retval;
}

static int has_stopped_jobs(struct pid *pgrp)
{
	int retval = 0;
	struct task_struct *p;

	do_each_pid_task(pgrp, PIDTYPE_PGID, p) {
		if (!task_is_stopped(p))
			continue;
		retval = 1;
		break;
	} while_each_pid_task(pgrp, PIDTYPE_PGID, p);
	return retval;
}

/*
 * Check to see if any process groups have become orphaned as
 * a result of our exiting, and if they have any stopped jobs,
 * send them a SIGHUP and then a SIGCONT. (POSIX 3.2.2.2)