OGAWA Hirofumi
5a7b46b369
[PATCH] Add more prevent_tail_call()
Those also break userland regs like following.
00000000 <sys_chown16>:
0: 0f b7 44 24 0c movzwl 0xc(%esp),%eax
5: 83 ca ff or $0xffffffff,%edx
8: 0f b7 4c 24 08 movzwl 0x8(%esp),%ecx
d: 66 83 f8 ff cmp $0xffffffff,%ax
11: 0f 44 c2 cmove %edx,%eax
14: 66 83 f9 ff cmp $0xffffffff,%cx
18: 0f 45 d1 cmovne %ecx,%edx
1b: 89 44 24 0c mov %eax,0xc(%esp)
1f: 89 54 24 08 mov %edx,0x8(%esp)
23: e9 fc ff ff ff jmp 24 <sys_chown16+0x24>
where the tailcall at the end overwrites the incoming stack-frame.
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
[ I would _really_ like to have a way to tell gcc about calling
conventions. The "prevent_tail_call()" macro is pretty ugly ]
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-04-19 16:27:18 -07:00
..
2006-04-11 06:18:41 -07:00
2006-04-19 09:13:49 -07:00
2006-01-03 11:35:26 +01:00
2006-03-31 12:18:54 -08:00
2006-03-31 12:18:53 -08:00
2006-03-20 14:08:55 -05:00
2006-03-20 14:08:55 -05:00
2006-03-25 09:24:53 -08:00
2006-03-25 08:22:56 -08:00
2006-03-27 08:44:49 -08:00
2006-01-03 13:37:51 +01:00
2006-03-27 08:44:50 -08:00
2006-03-31 12:18:55 -08:00
2006-03-24 07:33:30 -08:00
2006-04-19 09:13:49 -07:00
2006-04-19 09:13:49 -07:00
2006-03-31 12:18:59 -08:00
2006-03-31 12:18:59 -08:00
2006-04-11 06:18:42 -07:00
2006-02-05 11:06:52 -08:00
2006-03-26 08:57:03 -08:00
2005-10-30 17:37:32 -08:00
2005-06-23 09:45:10 -07:00
2005-06-25 16:24:45 -07:00
2006-01-11 18:42:13 -08:00
2005-10-08 15:00:57 -07:00
2006-03-28 18:36:41 -08:00
2006-03-26 08:57:04 -08:00
2006-03-24 07:33:31 -08:00
2006-03-25 08:22:57 -08:00
2006-03-27 08:44:49 -08:00
2006-03-31 12:18:56 -08:00
2006-01-11 08:14:16 -08:00
2006-01-09 15:59:20 -08:00
2006-01-10 14:27:59 -08:00
2006-01-09 15:59:19 -08:00
2006-04-11 06:18:40 -07:00
2006-03-28 09:16:03 -08:00
2006-03-31 12:19:00 -08:00
2006-01-10 08:01:38 -08:00
2006-03-26 08:57:03 -08:00
2006-04-01 01:21:17 +02:00
2006-03-27 08:44:50 -08:00
2006-04-14 08:59:13 -07:00
2006-03-24 07:33:20 -08:00
2006-03-28 09:16:05 -08:00
2006-03-23 19:58:45 +01:00
2006-01-10 08:02:02 -08:00
2006-04-11 06:18:30 -07:00
2006-04-14 08:59:13 -07:00
2006-03-22 07:53:59 -08:00
2006-03-27 08:44:50 -08:00
2006-03-23 07:38:16 -08:00
2006-01-10 08:01:25 -08:00
2006-04-11 06:18:33 -07:00
2006-03-31 12:18:59 -08:00
2006-03-24 07:33:20 -08:00
2006-04-01 01:41:22 +02:00
2006-04-11 06:18:40 -07:00
2006-04-19 16:27:18 -07:00
2006-03-24 07:33:20 -08:00
2006-02-27 23:34:40 -06:00