1 00:00:00,000 --> 00:00:06,660 Hello everyone, I am very happy to be able to share with you some of the research results we have done in the Middle East. 2 00:00:08,140 --> 00:00:12,620 First of all, let me introduce myself. My name is Xingxin Yu. I am the first person in front of the fight number. 3 00:00:14,740 --> 00:00:18,860 And there is Jimmy Su, who is also working on this research together with me. 4 00:00:19,300 --> 00:00:21,900 He may also be at the scene, or he may be on the plane. 5 00:00:23,040 --> 00:00:26,140 We are from the U.S. Gui Gu Institute of Research in the Middle East. 6 00:00:26,140 --> 00:00:28,740 Our main research is secondary intelligence analysis. 7 00:00:28,740 --> 00:00:37,780 In this talk, we mainly want to share with you how to use automation to better analyze software loopholes, 8 00:00:38,360 --> 00:00:41,800 and better find the fundamental reasons for these software loopholes. 9 00:00:43,840 --> 00:00:46,660 I believe everyone here may have written a program. 10 00:00:46,820 --> 00:00:50,380 Of course, some of you may be more interested in security, but you have never written a program. 11 00:00:50,480 --> 00:00:51,780 I believe some of you may have written a program. 12 00:00:52,120 --> 00:00:56,080 I believe if you have written a program, you must have encountered a lot of various problems. 13 00:00:56,460 --> 00:00:58,720 For example, no matter how much time you spend, 14 00:00:58,740 --> 00:01:00,080 even when you go to school, 15 00:01:00,700 --> 00:01:04,400 your teacher left you a homework saying that you will go back today to write a simple program. 16 00:01:04,720 --> 00:01:07,780 I believe you must have the feeling of debugging. 17 00:01:08,000 --> 00:01:10,780 It is impossible for you to write this software once and it will work. 18 00:01:11,100 --> 00:01:16,080 In most cases, you may have written it many, many times, and you will find that this bug is constantly existing. 19 00:01:16,400 --> 00:01:20,140 Then you will find a way to debug it and finally make this software work. 20 00:01:21,280 --> 00:01:24,120 So for a small program like this, for a large program, 21 00:01:24,220 --> 00:01:26,840 you can think of a program like Office, or even a program like the operating system. 22 00:01:26,840 --> 00:01:28,840 This bug is unavoidable. 23 00:01:29,500 --> 00:01:32,540 And in order to eliminate these bugs, 24 00:01:32,700 --> 00:01:35,040 of course, companies, companies, software developers, 25 00:01:35,220 --> 00:01:41,520 often spend a lot of manpower and material to do various tests before releasing software. 26 00:01:41,560 --> 00:01:48,080 The ultimate goal is to ensure that the software is as stable as possible after it is released. 27 00:01:48,160 --> 00:01:52,020 But unfortunately, no matter how much effort you have spent, 28 00:01:52,020 --> 00:01:54,600 how much time you have spent, how much money you have spent, 29 00:01:54,620 --> 00:01:56,580 in the end, your software will not work. 30 00:01:56,580 --> 00:01:58,860 There will be a lot of problems like this or that. 31 00:01:59,540 --> 00:02:01,200 And when these problems are triggered, 32 00:02:01,540 --> 00:02:03,360 it will often lead to very serious consequences. 33 00:02:03,500 --> 00:02:05,180 For example, in the simplest case, 34 00:02:05,540 --> 00:02:06,680 when a bug is triggered, 35 00:02:06,940 --> 00:02:08,680 our software will no longer work. 36 00:02:08,800 --> 00:02:10,640 This will lead to a very bad user experience. 37 00:02:11,800 --> 00:02:14,860 In addition, this is not a big problem for many people. 38 00:02:15,120 --> 00:02:16,640 The worst case scenario is to restart the machine, right? 39 00:02:16,780 --> 00:02:19,600 Or turn off the software and restart it again. 40 00:02:19,600 --> 00:02:21,040 You will find that it may work normally. 41 00:02:22,100 --> 00:02:23,680 If you think this is not a problem, 42 00:02:23,820 --> 00:02:24,620 then I can tell you, 43 00:02:24,640 --> 00:02:25,400 I believe that everyone here 44 00:02:25,400 --> 00:02:27,420 is very interested in security. 45 00:02:28,320 --> 00:02:30,180 So when there are some bugs, 46 00:02:30,320 --> 00:02:32,660 they may even be used by hackers. 47 00:02:33,220 --> 00:02:35,460 In this case, a specific attack can be achieved. 48 00:02:35,460 --> 00:02:36,400 If there is such a bug, 49 00:02:36,520 --> 00:02:37,280 it may be more harmful to you. 50 00:02:39,240 --> 00:02:40,360 So in the real world, 51 00:02:40,820 --> 00:02:42,720 in order to analyze bugs, 52 00:02:43,940 --> 00:02:47,380 there are many methods that have been proposed. 53 00:02:47,780 --> 00:02:49,160 For example, the simplest way is 54 00:02:49,160 --> 00:02:51,260 when you find a bug, 55 00:02:51,460 --> 00:02:52,620 if you use Windows, 56 00:02:53,000 --> 00:02:54,680 it may pop up a window. 57 00:02:54,680 --> 00:02:57,840 Now you can put your crash, 58 00:02:58,100 --> 00:02:58,680 the crash of the software, 59 00:02:59,820 --> 00:03:01,200 return it to Windows, 60 00:03:01,380 --> 00:03:01,980 return it to Microsoft. 61 00:03:02,120 --> 00:03:03,420 Microsoft can analyze it there. 62 00:03:03,720 --> 00:03:06,840 Or you will see that there is a link search method, 63 00:03:06,980 --> 00:03:07,320 and so on. 64 00:03:09,320 --> 00:03:10,360 But unfortunately, 65 00:03:10,800 --> 00:03:15,300 even if you return such a bug to the end, 66 00:03:16,100 --> 00:03:17,480 under many circumstances, 67 00:03:18,120 --> 00:03:19,140 analyzing this bug 68 00:03:19,140 --> 00:03:21,000 will often take a very long time. 69 00:03:21,260 --> 00:03:22,880 Because a simple crash 70 00:03:22,880 --> 00:03:24,660 often does not give you too much information. 71 00:03:24,680 --> 00:03:25,480 So today, 72 00:03:25,980 --> 00:03:27,820 what I want to share with you is 73 00:03:27,820 --> 00:03:28,800 in history, 74 00:03:29,180 --> 00:03:31,420 how do you debug in a company? 75 00:03:31,920 --> 00:03:32,880 How do you debug in a company? 76 00:03:32,880 --> 00:03:34,860 And what is the best way 77 00:03:34,860 --> 00:03:36,880 to achieve this kind of work? 78 00:03:37,760 --> 00:03:40,320 I think I have already talked about this slide. 79 00:03:40,320 --> 00:03:41,320 We can skip it directly. 80 00:03:41,980 --> 00:03:45,300 In order to help the debugging of software, 81 00:03:45,440 --> 00:03:47,540 there are two main methods. 82 00:03:47,540 --> 00:03:49,720 The most common one is called 83 00:03:49,720 --> 00:03:51,100 Recall Replay. 84 00:03:51,240 --> 00:03:52,540 The so-called Recall Replay 85 00:03:52,540 --> 00:03:54,660 means that when you find a bug, 86 00:03:56,260 --> 00:03:56,980 sorry, 87 00:03:57,720 --> 00:03:59,880 when you run the software, 88 00:04:00,140 --> 00:04:01,340 you constantly monitor 89 00:04:01,340 --> 00:04:04,500 and track the entire implementation process of the software. 90 00:04:04,500 --> 00:04:06,100 You record every command that has been executed, 91 00:04:06,100 --> 00:04:07,740 and every change in the memory. 92 00:04:08,340 --> 00:04:09,740 Then you think about it. 93 00:04:09,740 --> 00:04:11,540 You record every time 94 00:04:11,540 --> 00:04:13,580 the events that happened in the program. 95 00:04:14,020 --> 00:04:15,140 When the program is wrong, 96 00:04:15,400 --> 00:04:16,800 the simplest way is that 97 00:04:16,800 --> 00:04:18,860 you can replay every action just now. 98 00:04:18,860 --> 00:04:19,540 In this way, 99 00:04:19,760 --> 00:04:22,520 you can find the fundamental problem 100 00:04:22,520 --> 00:04:23,040 of the software 101 00:04:23,040 --> 00:04:23,940 better and faster. 102 00:04:24,700 --> 00:04:25,220 However, 103 00:04:25,540 --> 00:04:26,880 the biggest problem of such a resolution program 104 00:04:26,880 --> 00:04:28,000 is that 105 00:04:28,820 --> 00:04:31,220 you will pay a lot of calculation costs. 106 00:04:31,380 --> 00:04:32,340 Because in the process of your program operation, 107 00:04:32,920 --> 00:04:34,500 you monitor every command execution, 108 00:04:34,760 --> 00:04:36,240 record any many commands, 109 00:04:36,400 --> 00:04:37,520 record every memory operation. 110 00:04:37,780 --> 00:04:38,320 In this way, 111 00:04:38,400 --> 00:04:38,940 you will imagine 112 00:04:38,940 --> 00:04:40,380 that your operation time 113 00:04:40,380 --> 00:04:41,680 may be one second. 114 00:04:41,840 --> 00:04:43,760 There may be tens of thousands of commands 115 00:04:43,760 --> 00:04:44,340 that have been executed. 116 00:04:44,800 --> 00:04:46,880 And if you want to record a 10-minute, 117 00:04:47,020 --> 00:04:47,900 the situation in the past 10 minutes, 118 00:04:49,480 --> 00:04:51,260 you may not have enough hard drives, 119 00:04:51,340 --> 00:04:52,720 or even you do not have enough resources 120 00:04:52,720 --> 00:04:53,920 to complete this task. 121 00:04:53,920 --> 00:04:54,420 So, 122 00:04:54,520 --> 00:04:56,420 although record-replay is good, 123 00:04:56,780 --> 00:04:57,560 it is beautiful, 124 00:04:57,680 --> 00:04:58,740 but in the real world, 125 00:04:59,060 --> 00:05:00,600 no one really uses it. 126 00:05:01,640 --> 00:05:02,160 So, 127 00:05:02,280 --> 00:05:03,100 for such a problem, 128 00:05:03,420 --> 00:05:04,780 the vast majority of enterprises, 129 00:05:05,060 --> 00:05:05,300 including 130 00:05:05,300 --> 00:05:08,560 the vast majority of enterprises, 131 00:05:08,640 --> 00:05:10,620 even in many experimental environments, 132 00:05:10,900 --> 00:05:12,060 such record-replay methods 133 00:05:12,060 --> 00:05:12,700 are generally not used. 134 00:05:13,980 --> 00:05:14,500 So, 135 00:05:14,560 --> 00:05:15,460 in addition to record-replay, 136 00:05:15,580 --> 00:05:16,380 another method 137 00:05:16,380 --> 00:05:17,340 is also a traditional method 138 00:05:17,340 --> 00:05:18,160 to realize debug. 139 00:05:18,380 --> 00:05:19,100 This is called 140 00:05:19,100 --> 00:05:20,000 log analysis method. 141 00:05:20,340 --> 00:05:20,700 So, 142 00:05:20,780 --> 00:05:22,120 log analysis method means that 143 00:05:22,120 --> 00:05:23,860 if my program suddenly collapses, 144 00:05:23,860 --> 00:05:24,980 if I suddenly make a mistake, 145 00:05:25,160 --> 00:05:26,220 then I will make a fast record 146 00:05:26,220 --> 00:05:26,820 of the current memory 147 00:05:26,820 --> 00:05:28,720 in this state of error, 148 00:05:29,760 --> 00:05:30,200 and also make a fast record 149 00:05:30,200 --> 00:05:31,360 of the current memory value, 150 00:05:32,080 --> 00:05:33,580 and then send all these information 151 00:05:35,240 --> 00:05:36,720 to software developers 152 00:05:36,720 --> 00:05:39,320 to let them do the diagnosis. 153 00:05:39,460 --> 00:05:40,840 One advantage of this is that 154 00:05:40,840 --> 00:05:42,220 you can know very clearly 155 00:05:42,220 --> 00:05:43,500 what the current memory state is like 156 00:05:43,500 --> 00:05:44,660 when the program has a problem, 157 00:05:45,020 --> 00:05:46,140 the current memory state 158 00:05:46,140 --> 00:05:47,520 is in what kind of situation. 159 00:05:47,680 --> 00:05:48,080 So, 160 00:05:48,220 --> 00:05:48,800 with such information, 161 00:05:49,060 --> 00:05:50,060 it can often help you 162 00:05:50,060 --> 00:05:51,460 to better complete the debug. 163 00:05:51,900 --> 00:05:53,000 But this also brings 164 00:05:53,000 --> 00:05:53,480 a problem. 165 00:05:53,480 --> 00:05:56,080 Because in this case, 166 00:05:56,440 --> 00:05:56,940 you only have 167 00:05:56,940 --> 00:05:58,340 a current memory state, 168 00:05:58,540 --> 00:05:59,020 and you don't have 169 00:05:59,020 --> 00:05:59,820 the entire program 170 00:05:59,820 --> 00:06:00,300 running in the past 171 00:06:00,300 --> 00:06:01,600 for a period of time. 172 00:06:01,880 --> 00:06:02,320 So, 173 00:06:02,420 --> 00:06:03,320 your information 174 00:06:03,320 --> 00:06:04,640 will be very, very little. 175 00:06:05,020 --> 00:06:05,460 So, 176 00:06:05,580 --> 00:06:06,400 the problem with very little information 177 00:06:06,400 --> 00:06:07,360 is that 178 00:06:07,360 --> 00:06:07,800 when you are debugging, 179 00:06:08,260 --> 00:06:09,460 you have to do a lot of reasoning, 180 00:06:09,600 --> 00:06:10,420 do a lot of guessing, 181 00:06:10,600 --> 00:06:11,380 and even you may 182 00:06:11,380 --> 00:06:12,780 make a mistake 183 00:06:12,780 --> 00:06:13,100 in reasoning 184 00:06:13,100 --> 00:06:13,900 or guess wrongly, 185 00:06:13,920 --> 00:06:14,960 which makes it difficult for you 186 00:06:14,960 --> 00:06:15,340 to find the fundamental cause 187 00:06:15,340 --> 00:06:15,820 of the software error. 188 00:06:17,320 --> 00:06:17,760 So, 189 00:06:17,860 --> 00:06:18,260 you can see 190 00:06:18,260 --> 00:06:18,940 in this table, 191 00:06:19,280 --> 00:06:20,260 we summed up 192 00:06:20,260 --> 00:06:21,760 the method of record-replay 193 00:06:21,760 --> 00:06:23,260 is very good. 194 00:06:23,480 --> 00:06:24,320 But its disadvantage 195 00:06:24,320 --> 00:06:24,900 is that 196 00:06:24,900 --> 00:06:26,120 its efficiency is not high. 197 00:06:26,300 --> 00:06:26,720 So, 198 00:06:26,820 --> 00:06:27,700 for this kind of 199 00:06:27,700 --> 00:06:28,480 ordinary log method, 200 00:06:28,800 --> 00:06:29,020 for example, 201 00:06:29,120 --> 00:06:29,720 this kind of 202 00:06:29,720 --> 00:06:31,240 core dump analysis method, 203 00:06:31,400 --> 00:06:33,080 it is lightweight 204 00:06:33,080 --> 00:06:34,140 because you no longer need 205 00:06:34,140 --> 00:06:35,120 to monitor this program. 206 00:06:35,320 --> 00:06:35,660 The operating system 207 00:06:35,660 --> 00:06:36,180 can quickly 208 00:06:36,660 --> 00:06:37,580 collect the core dump 209 00:06:37,580 --> 00:06:38,000 for you. 210 00:06:38,220 --> 00:06:39,160 But its disadvantage 211 00:06:39,160 --> 00:06:39,980 is that 212 00:06:39,980 --> 00:06:41,520 its efficiency 213 00:06:41,520 --> 00:06:42,620 may be very poor. 214 00:06:43,600 --> 00:06:44,040 So, 215 00:06:44,140 --> 00:06:44,600 in order to solve 216 00:06:44,600 --> 00:06:45,100 such a problem, 217 00:06:46,220 --> 00:06:48,460 in order to solve 218 00:06:48,460 --> 00:06:48,920 such a problem, 219 00:06:49,640 --> 00:06:50,420 in the past, 220 00:06:50,580 --> 00:06:51,240 in Jindong, 221 00:06:51,700 --> 00:06:52,140 Meiyan, 222 00:06:52,260 --> 00:06:52,740 in the past 223 00:06:52,740 --> 00:06:53,320 three years, 224 00:06:53,480 --> 00:06:53,940 we have done 225 00:06:53,940 --> 00:06:55,100 a lot of such work. 226 00:06:55,260 --> 00:06:56,040 Our goal 227 00:06:56,040 --> 00:06:56,780 is to 228 00:06:57,160 --> 00:07:00,760 help our developers 229 00:07:00,760 --> 00:07:02,260 to analyze 230 00:07:02,260 --> 00:07:03,140 the fundamental cause 231 00:07:03,140 --> 00:07:03,600 of the software error 232 00:07:03,600 --> 00:07:04,220 faster and better. 233 00:07:04,780 --> 00:07:06,360 From 2016 234 00:07:06,360 --> 00:07:08,140 to 2019, 235 00:07:08,780 --> 00:07:09,440 this is 236 00:07:09,440 --> 00:07:10,200 what we have done 237 00:07:10,200 --> 00:07:10,960 in Jindong, 238 00:07:10,980 --> 00:07:11,680 Meiyan. 239 00:07:12,940 --> 00:07:13,620 So, 240 00:07:13,680 --> 00:07:14,060 what I want 241 00:07:14,060 --> 00:07:14,120 to share 242 00:07:14,120 --> 00:07:14,580 with you 243 00:07:14,580 --> 00:07:14,860 today 244 00:07:14,860 --> 00:07:15,420 is 245 00:07:15,420 --> 00:07:17,100 the second 246 00:07:17,100 --> 00:07:18,060 and third 247 00:07:18,060 --> 00:07:18,300 work. 248 00:07:18,760 --> 00:07:19,440 Simply 249 00:07:19,440 --> 00:07:19,720 speaking, 250 00:07:19,900 --> 00:07:20,500 our first work 251 00:07:20,500 --> 00:07:21,120 is to 252 00:07:21,120 --> 00:07:22,300 make a program 253 00:07:22,300 --> 00:07:22,640 code 254 00:07:23,480 --> 00:07:23,800 as an input. 255 00:07:23,920 --> 00:07:24,520 At the same time, 256 00:07:24,580 --> 00:07:25,860 we use the core dump 257 00:07:25,860 --> 00:07:27,080 as an input 258 00:07:27,080 --> 00:07:28,680 for its memory 259 00:07:28,680 --> 00:07:29,520 when the program 260 00:07:30,060 --> 00:07:30,580 Then, 261 00:07:30,660 --> 00:07:31,060 we perform 262 00:07:31,060 --> 00:07:31,800 various analysis 263 00:07:31,800 --> 00:07:32,760 to automatically 264 00:07:32,760 --> 00:07:34,260 find the root cause. 265 00:07:35,040 --> 00:07:35,560 Today, 266 00:07:36,200 --> 00:07:36,520 we will not 267 00:07:36,520 --> 00:07:36,820 share this method 268 00:07:36,820 --> 00:07:37,120 with you. 269 00:07:37,660 --> 00:07:38,580 We want to share 270 00:07:38,580 --> 00:07:39,860 the second and third 271 00:07:39,860 --> 00:07:40,100 with you. 272 00:07:40,140 --> 00:07:40,660 So, 273 00:07:40,740 --> 00:07:41,220 what are its advantages? 274 00:07:41,580 --> 00:07:43,120 The second method 275 00:07:43,120 --> 00:07:43,920 is that 276 00:07:43,920 --> 00:07:45,060 when the program 277 00:07:45,060 --> 00:07:45,320 collapses, 278 00:07:46,040 --> 00:07:47,120 we can quickly 279 00:07:47,120 --> 00:07:48,680 get such a core dump. 280 00:07:48,740 --> 00:07:49,000 At the same time, 281 00:07:49,060 --> 00:07:49,600 we can also use 282 00:07:49,600 --> 00:07:49,780 some of the features 283 00:07:49,780 --> 00:07:50,300 of the existing hardware 284 00:07:50,300 --> 00:07:51,800 to collect 285 00:07:51,800 --> 00:07:52,560 some of the 286 00:07:53,400 --> 00:07:54,160 traces of the program. 287 00:07:54,160 --> 00:07:55,020 I will show you later. 288 00:07:55,700 --> 00:07:56,080 Then, 289 00:07:56,100 --> 00:07:57,560 through reverse execution, 290 00:07:57,780 --> 00:07:58,180 we can find 291 00:07:58,180 --> 00:08:00,020 the starting point 292 00:08:00,020 --> 00:08:00,120 of the program. 293 00:08:00,160 --> 00:08:00,700 Later, 294 00:08:00,880 --> 00:08:01,320 I will show you 295 00:08:01,320 --> 00:08:02,660 how this tool 296 00:08:02,660 --> 00:08:03,320 works. 297 00:08:03,820 --> 00:08:04,640 This tool 298 00:08:04,640 --> 00:08:04,880 is called 299 00:08:04,880 --> 00:08:05,700 PUMP. 300 00:08:05,800 --> 00:08:06,340 But, 301 00:08:06,880 --> 00:08:07,660 in the following 302 00:08:07,660 --> 00:08:08,480 talk, 303 00:08:08,820 --> 00:08:09,700 I can also tell you 304 00:08:09,700 --> 00:08:11,100 why this method 305 00:08:11,100 --> 00:08:11,600 is sometimes 306 00:08:11,600 --> 00:08:12,120 very difficult 307 00:08:12,120 --> 00:08:12,600 in the process 308 00:08:12,600 --> 00:08:13,140 of using 309 00:08:13,140 --> 00:08:13,400 in our companies. 310 00:08:14,340 --> 00:08:14,640 Recently, 311 00:08:16,440 --> 00:08:17,580 how do we use 312 00:08:17,580 --> 00:08:18,320 AI technology 313 00:08:18,320 --> 00:08:19,100 to improve 314 00:08:19,100 --> 00:08:20,200 such analysis methods? 315 00:08:21,620 --> 00:08:23,400 Before I talk about 316 00:08:23,400 --> 00:08:24,520 how to do analysis, 317 00:08:25,140 --> 00:08:25,600 I would like to 318 00:08:25,600 --> 00:08:25,720 introduce you 319 00:08:25,720 --> 00:08:26,860 some background knowledge. 320 00:08:28,100 --> 00:08:28,700 I have already mentioned 321 00:08:28,700 --> 00:08:28,960 the so-called 322 00:08:28,960 --> 00:08:30,440 program analysis. 323 00:08:31,740 --> 00:08:32,700 When the program 324 00:08:32,700 --> 00:08:33,240 collapses, 325 00:08:33,680 --> 00:08:34,500 the network operation system 326 00:08:34,500 --> 00:08:37,680 will make a quick photo 327 00:08:37,680 --> 00:08:37,760 for the program. 328 00:08:37,760 --> 00:08:38,460 In this quick photo, 329 00:08:38,660 --> 00:08:38,960 there is often 330 00:08:38,960 --> 00:08:41,660 an internal storage state 331 00:08:41,660 --> 00:08:41,700 of the program. 332 00:08:41,700 --> 00:08:42,360 At the same time, 333 00:08:42,480 --> 00:08:42,720 there is also 334 00:08:42,720 --> 00:08:43,380 the current storage state 335 00:08:43,380 --> 00:08:44,120 of the program. 336 00:08:44,520 --> 00:08:45,500 The combination of these things 337 00:08:46,080 --> 00:08:46,820 is called 338 00:08:46,820 --> 00:08:47,420 Core Dump. 339 00:08:47,560 --> 00:08:47,900 Basically, 340 00:08:48,160 --> 00:08:49,140 all operating systems 341 00:08:49,140 --> 00:08:50,140 now can provide 342 00:08:50,140 --> 00:08:51,080 such capabilities. 343 00:08:51,220 --> 00:08:51,880 As long as the program 344 00:08:51,880 --> 00:08:52,060 collapses, 345 00:08:52,340 --> 00:08:52,960 we can get 346 00:08:52,960 --> 00:08:54,200 the internal storage state 347 00:08:54,200 --> 00:08:54,380 of the program 348 00:08:54,380 --> 00:08:55,380 that we can see 349 00:08:55,380 --> 00:08:56,880 at the collapse point 350 00:08:56,880 --> 00:08:57,780 and its value 351 00:08:59,160 --> 00:08:59,760 But, 352 00:08:59,860 --> 00:09:00,940 I just mentioned 353 00:09:00,940 --> 00:09:01,840 that the information 354 00:09:01,840 --> 00:09:02,460 in a Core Dump 355 00:09:02,460 --> 00:09:04,020 is very limited. 356 00:09:04,320 --> 00:09:05,020 It only has 357 00:09:05,020 --> 00:09:06,120 some information 358 00:09:06,120 --> 00:09:07,300 because you only know 359 00:09:07,300 --> 00:09:07,540 the internal storage state 360 00:09:07,540 --> 00:09:07,960 when it crashes. 361 00:09:10,020 --> 00:09:11,000 You don't know 362 00:09:11,000 --> 00:09:11,460 the internal storage state 363 00:09:11,460 --> 00:09:12,520 of any point 364 00:09:12,520 --> 00:09:12,860 before it crashes. 365 00:09:13,340 --> 00:09:13,780 So, 366 00:09:13,860 --> 00:09:14,640 its information 367 00:09:14,640 --> 00:09:15,420 is very limited. 368 00:09:15,880 --> 00:09:16,340 So, 369 00:09:16,480 --> 00:09:16,600 it is very difficult 370 00:09:16,600 --> 00:09:18,040 with just Core Dump. 371 00:09:22,840 --> 00:09:23,560 But, 372 00:09:23,660 --> 00:09:23,900 recently, 373 00:09:25,680 --> 00:09:27,100 Intel has 374 00:09:27,100 --> 00:09:27,260 released 375 00:09:27,260 --> 00:09:29,220 a new hardware feature. 376 00:09:29,840 --> 00:09:30,800 It should be 377 00:09:30,800 --> 00:09:32,140 from i7 processor 378 00:09:32,140 --> 00:09:34,280 that all Intel processors 379 00:09:34,280 --> 00:09:34,900 provide 380 00:09:34,900 --> 00:09:35,360 this 381 00:09:35,360 --> 00:09:36,240 processor trace 382 00:09:36,240 --> 00:09:36,520 function. 383 00:09:36,860 --> 00:09:37,580 What is 384 00:09:37,580 --> 00:09:38,000 the processor trace? 385 00:09:38,660 --> 00:09:39,600 When the program 386 00:09:39,600 --> 00:09:39,960 is running, 387 00:09:40,320 --> 00:09:40,980 the CPU 388 00:09:41,000 --> 00:09:41,580 can record 389 00:09:41,580 --> 00:09:42,040 you have executed 390 00:09:42,040 --> 00:09:42,640 in the past 391 00:09:42,640 --> 00:09:46,000 at the lowest cost. 392 00:09:47,860 --> 00:09:48,380 Then, 393 00:09:48,540 --> 00:09:49,200 when the program 394 00:09:49,200 --> 00:09:49,400 crashes, 395 00:09:49,980 --> 00:09:50,660 it can record 396 00:09:50,660 --> 00:09:52,160 all the commands 397 00:09:52,160 --> 00:09:52,440 you have executed 398 00:09:52,860 --> 00:09:54,060 including the current 399 00:09:55,140 --> 00:09:56,440 internal storage state 400 00:09:56,440 --> 00:09:56,580 when the program 401 00:09:56,580 --> 00:09:57,140 and put them 402 00:09:57,140 --> 00:09:58,620 in the Core Dump. 403 00:09:59,080 --> 00:09:59,600 So, 404 00:09:59,640 --> 00:10:00,420 there is an advantage 405 00:10:00,420 --> 00:10:00,660 in doing this. 406 00:10:00,660 --> 00:10:01,140 What is the advantage? 407 00:10:01,400 --> 00:10:02,260 Apart from knowing 408 00:10:02,260 --> 00:10:05,260 the internal storage state 409 00:10:05,260 --> 00:10:05,320 when the program 410 00:10:05,420 --> 00:10:06,220 you can also 411 00:10:06,220 --> 00:10:07,560 quickly understand 412 00:10:07,560 --> 00:10:08,580 the command 413 00:10:08,580 --> 00:10:08,800 executed 414 00:10:08,800 --> 00:10:10,700 before the program 415 00:10:12,000 --> 00:10:12,440 So, 416 00:10:12,520 --> 00:10:13,960 with this command, 417 00:10:14,160 --> 00:10:14,340 including 418 00:10:14,340 --> 00:10:17,940 the internal storage state 419 00:10:17,940 --> 00:10:18,080 when the program 420 00:10:18,080 --> 00:10:19,420 your analysis 421 00:10:19,420 --> 00:10:19,980 will become 422 00:10:19,980 --> 00:10:21,060 relatively simple. 423 00:10:21,240 --> 00:10:21,800 Please pay attention 424 00:10:21,800 --> 00:10:22,180 to my error. 425 00:10:22,360 --> 00:10:22,620 What I am saying 426 00:10:22,620 --> 00:10:23,340 is relatively simple. 427 00:10:23,400 --> 00:10:23,660 It is not 428 00:10:23,660 --> 00:10:24,120 very, 429 00:10:24,920 --> 00:10:25,440 very simple. 430 00:10:25,600 --> 00:10:26,000 Later, 431 00:10:26,100 --> 00:10:26,540 we will see 432 00:10:26,540 --> 00:10:27,320 what is the reason. 433 00:10:28,480 --> 00:10:28,920 So, 434 00:10:29,040 --> 00:10:30,720 in our work, 435 00:10:31,120 --> 00:10:31,700 we take 436 00:10:31,700 --> 00:10:32,240 the method 437 00:10:32,240 --> 00:10:33,200 that we want 438 00:10:33,200 --> 00:10:33,580 to use 439 00:10:33,580 --> 00:10:34,280 Core Dump, 440 00:10:34,360 --> 00:10:34,580 that is, 441 00:10:39,420 --> 00:10:40,680 we can find 442 00:10:41,180 --> 00:10:42,440 the error point 443 00:10:42,440 --> 00:10:42,540 of the program 444 00:10:43,060 --> 00:10:43,540 So, 445 00:10:43,660 --> 00:10:44,380 in the following 446 00:10:44,880 --> 00:10:45,360 talk, 447 00:10:46,520 --> 00:10:47,180 I will share 448 00:10:47,180 --> 00:10:47,460 with you 449 00:10:47,460 --> 00:10:48,060 step by step 450 00:10:48,060 --> 00:10:48,600 how we 451 00:10:48,600 --> 00:10:49,740 do this work. 452 00:10:50,860 --> 00:10:51,340 So, 453 00:10:51,460 --> 00:10:51,940 before I start, 454 00:10:52,240 --> 00:10:52,840 let's take a look 455 00:10:52,840 --> 00:10:53,900 at a simple program. 456 00:10:54,020 --> 00:10:54,380 This program 457 00:10:54,380 --> 00:10:54,620 is very, 458 00:10:54,820 --> 00:10:55,380 very simple. 459 00:10:55,740 --> 00:10:56,220 So, 460 00:10:56,300 --> 00:10:56,680 in this program, 461 00:10:56,820 --> 00:10:57,300 you will find 462 00:10:57,300 --> 00:10:58,100 that it crashes. 463 00:10:58,360 --> 00:10:59,380 It makes a mistake 464 00:10:59,380 --> 00:11:00,520 in the 19th line. 465 00:11:01,400 --> 00:11:02,280 In the 19th line, 466 00:11:02,280 --> 00:11:02,420 it makes a mistake. 467 00:11:02,560 --> 00:11:03,400 If you are 468 00:11:03,400 --> 00:11:04,280 given the wrong program 469 00:11:04,280 --> 00:11:05,360 and you are 470 00:11:05,360 --> 00:11:05,540 asked to do 471 00:11:05,540 --> 00:11:06,100 a diagnosis, 472 00:11:06,300 --> 00:11:07,060 how do you 473 00:11:07,060 --> 00:11:07,440 do the diagnosis? 474 00:11:07,520 --> 00:11:08,260 You will find that 475 00:11:08,260 --> 00:11:09,800 R is a pointer. 476 00:11:09,940 --> 00:11:10,680 This pointer 477 00:11:10,680 --> 00:11:11,120 is transmitted 478 00:11:11,120 --> 00:11:12,720 through this function 3. 479 00:11:14,940 --> 00:11:15,480 Then, 480 00:11:15,620 --> 00:11:16,300 we can see 481 00:11:16,300 --> 00:11:17,020 step by step 482 00:11:17,020 --> 00:11:18,500 who used 483 00:11:18,500 --> 00:11:18,980 3? 484 00:11:18,980 --> 00:11:19,340 It was used 485 00:11:19,340 --> 00:11:20,160 by function 2. 486 00:11:20,840 --> 00:11:21,900 In function 2, 487 00:11:22,120 --> 00:11:23,500 this pointer R 488 00:11:24,050 --> 00:11:24,520 is multiplied 489 00:11:24,520 --> 00:11:26,040 in function 2. 490 00:11:26,380 --> 00:11:26,840 Then, 491 00:11:26,940 --> 00:11:27,380 if we 492 00:11:27,380 --> 00:11:27,680 analyze it further, 493 00:11:28,420 --> 00:11:29,080 we can easily 494 00:11:29,080 --> 00:11:29,820 analyze it 495 00:11:29,820 --> 00:11:30,940 step by step. 496 00:11:31,200 --> 00:11:32,120 We will find that 497 00:11:32,120 --> 00:11:32,500 in function 1, 498 00:11:32,920 --> 00:11:33,160 actually, 499 00:11:33,220 --> 00:11:33,800 this R 500 00:11:33,800 --> 00:11:34,380 is transmitted 501 00:11:34,380 --> 00:11:35,600 from the 8th line. 502 00:11:36,880 --> 00:11:37,400 So, 503 00:11:37,440 --> 00:11:38,600 this is a non-pointer 504 00:11:38,600 --> 00:11:39,180 dereference. 505 00:11:39,720 --> 00:11:40,240 Then, 506 00:11:40,320 --> 00:11:40,960 you will find that 507 00:11:40,960 --> 00:11:42,380 in the debug process 508 00:11:42,380 --> 00:11:42,500 just now, 509 00:11:42,700 --> 00:11:43,080 we move 510 00:11:43,080 --> 00:11:44,380 each sentence 511 00:11:44,380 --> 00:11:44,980 backwards 512 00:11:44,980 --> 00:11:46,380 step by step. 513 00:11:47,280 --> 00:11:48,020 In fact, 514 00:11:48,180 --> 00:11:48,520 this gives us 515 00:11:48,520 --> 00:11:49,100 an idea. 516 00:11:49,400 --> 00:11:50,120 What is it? 517 00:11:50,480 --> 00:11:52,160 When we get 518 00:11:52,160 --> 00:11:52,760 a program, 519 00:11:53,320 --> 00:11:55,340 the memory state 520 00:11:55,340 --> 00:11:55,700 of the error 521 00:11:57,180 --> 00:11:58,220 every instruction 522 00:11:58,220 --> 00:11:58,540 it performed before, 523 00:11:59,820 --> 00:12:01,260 we can take out 524 00:12:01,260 --> 00:12:02,240 the instruction series 525 00:12:02,240 --> 00:12:02,540 first. 526 00:12:02,980 --> 00:12:03,540 Then, 527 00:12:03,720 --> 00:12:04,240 for the 528 00:12:04,680 --> 00:12:05,140 CRUSH point, 529 00:12:05,340 --> 00:12:06,640 this instruction 530 00:12:06,640 --> 00:12:07,080 starts 531 00:12:07,080 --> 00:12:07,860 to be executed 532 00:12:07,860 --> 00:12:08,480 one by one. 533 00:12:10,260 --> 00:12:10,820 Then, 534 00:12:10,940 --> 00:12:11,440 in this process, 535 00:12:11,780 --> 00:12:12,480 we can restore 536 00:12:12,480 --> 00:12:13,260 its data flow. 537 00:12:13,540 --> 00:12:14,040 Then, 538 00:12:14,120 --> 00:12:14,960 according to this data flow, 539 00:12:15,180 --> 00:12:15,860 we go back 540 00:12:15,860 --> 00:12:16,760 step by step 541 00:12:17,340 --> 00:12:18,540 until we find 542 00:12:18,540 --> 00:12:22,380 the specific instruction 543 00:12:22,380 --> 00:12:22,780 for the real 544 00:12:24,320 --> 00:12:24,880 So, 545 00:12:24,980 --> 00:12:25,780 I mentioned 546 00:12:25,780 --> 00:12:26,800 reverse execution just now. 547 00:12:26,800 --> 00:12:27,100 Then, 548 00:12:27,200 --> 00:12:27,700 you will think 549 00:12:27,700 --> 00:12:28,440 that since 550 00:12:28,440 --> 00:12:29,140 reverse execution 551 00:12:29,140 --> 00:12:29,700 looks very 552 00:12:30,280 --> 00:12:31,300 You already have 553 00:12:31,300 --> 00:12:32,140 all the order series. 554 00:12:32,480 --> 00:12:32,840 Then, 555 00:12:32,880 --> 00:12:33,280 I will execute 556 00:12:33,280 --> 00:12:33,820 each order 557 00:12:33,820 --> 00:12:34,880 one by one. 558 00:12:35,040 --> 00:12:36,040 It seems to be 559 00:12:36,040 --> 00:12:36,680 like this. 560 00:12:36,720 --> 00:12:37,120 For example, 561 00:12:37,260 --> 00:12:37,840 you can see 562 00:12:37,840 --> 00:12:39,120 some simple examples 563 00:12:39,120 --> 00:12:39,300 here. 564 00:12:39,460 --> 00:12:40,060 For example, 565 00:12:40,760 --> 00:12:41,200 add 566 00:12:43,100 --> 00:12:43,540 eax10. 567 00:12:43,900 --> 00:12:44,060 Then, 568 00:12:44,160 --> 00:12:44,480 it actually 569 00:12:44,480 --> 00:12:44,940 operates 570 00:12:44,940 --> 00:12:46,720 the memory 571 00:12:47,180 --> 00:12:47,620 eax10. 572 00:12:48,120 --> 00:12:48,560 Then, 573 00:12:48,620 --> 00:12:48,940 the easiest way 574 00:12:48,940 --> 00:12:49,740 this instruction 575 00:12:50,480 --> 00:12:51,100 is to 576 00:12:51,100 --> 00:12:51,320 reduce 577 00:12:51,320 --> 00:12:52,160 eax10. 578 00:12:52,320 --> 00:12:52,660 Then, 579 00:12:52,660 --> 00:12:54,200 the reverse function 580 00:12:54,200 --> 00:12:54,360 of this instruction 581 00:12:54,360 --> 00:12:55,580 can be found immediately. 582 00:12:56,160 --> 00:12:56,580 Similarly, 583 00:12:56,820 --> 00:12:58,660 for sub eax216, 584 00:12:58,780 --> 00:13:00,000 you can reverse it. 585 00:13:00,300 --> 00:13:00,600 You can just 586 00:13:00,600 --> 00:13:01,660 add eax216 587 00:13:02,260 --> 00:13:02,520 when you reverse it. 588 00:13:03,540 --> 00:13:05,000 The first eax is the same. 589 00:13:05,120 --> 00:13:05,740 You can also 590 00:13:05,740 --> 00:13:06,540 add eax1. 591 00:13:07,020 --> 00:13:07,760 Increase eax. 592 00:13:07,920 --> 00:13:08,480 You can do 593 00:13:08,480 --> 00:13:09,840 eax-1 accordingly. 594 00:13:09,860 --> 00:13:10,900 It looks very, 595 00:13:11,020 --> 00:13:11,700 very simple. 596 00:13:11,860 --> 00:13:12,240 We can 597 00:13:12,240 --> 00:13:12,700 reverse 598 00:13:12,700 --> 00:13:14,680 each instruction 599 00:13:14,680 --> 00:13:15,140 step by step 600 00:13:15,140 --> 00:13:15,720 and operate it. 601 00:13:16,820 --> 00:13:17,600 But in fact, 602 00:13:17,620 --> 00:13:18,200 it is not like this. 603 00:13:18,720 --> 00:13:19,420 Because there are 604 00:13:19,420 --> 00:13:20,160 many, many instructions 605 00:13:20,160 --> 00:13:20,940 that cannot be reversed. 606 00:13:20,940 --> 00:13:21,340 For example, 607 00:13:21,440 --> 00:13:21,860 this one. 608 00:13:22,100 --> 00:13:23,320 For XOR 609 00:13:23,780 --> 00:13:24,020 eax, 610 00:13:24,960 --> 00:13:25,500 what it does 611 00:13:25,500 --> 00:13:26,420 is to 612 00:13:26,420 --> 00:13:26,620 clear 613 00:13:26,620 --> 00:13:27,280 eax. 614 00:13:28,240 --> 00:13:28,720 Then, 615 00:13:28,820 --> 00:13:29,500 once this instruction 616 00:13:29,500 --> 00:13:29,840 is finished, 617 00:13:30,320 --> 00:13:31,660 you have no way 618 00:13:31,660 --> 00:13:33,480 to know 619 00:13:33,480 --> 00:13:34,940 how much 620 00:13:35,840 --> 00:13:37,100 this instruction 621 00:13:37,100 --> 00:13:37,720 is executed. 622 00:13:40,040 --> 00:13:40,860 Because this instruction 623 00:13:40,860 --> 00:13:41,380 cannot be reversed. 624 00:13:41,620 --> 00:13:42,100 Similarly, 625 00:13:42,200 --> 00:13:43,020 for the above example, 626 00:13:43,320 --> 00:13:44,660 move eax5, 627 00:13:45,080 --> 00:13:45,500 in fact, 628 00:13:45,540 --> 00:13:46,040 this instruction 629 00:13:46,040 --> 00:13:46,940 is also not reversed. 630 00:13:47,020 --> 00:13:47,660 You don't know 631 00:13:47,660 --> 00:13:49,260 how much 632 00:13:49,260 --> 00:13:49,460 you can assign 633 00:13:52,740 --> 00:13:53,540 eax to this 5. 634 00:13:53,540 --> 00:13:53,940 Before that, 635 00:13:54,320 --> 00:13:54,460 you don't know 636 00:13:54,460 --> 00:13:54,700 how much eax 637 00:13:54,700 --> 00:13:55,400 is equal to. 638 00:13:55,660 --> 00:13:56,040 You don't know 639 00:13:56,040 --> 00:13:56,720 how much eax 640 00:13:56,720 --> 00:13:57,340 You don't know 641 00:13:57,340 --> 00:13:57,740 how to reverse 642 00:13:57,740 --> 00:13:58,000 this instruction. 643 00:13:59,360 --> 00:14:00,300 So, what do we do? 644 00:14:00,460 --> 00:14:01,520 There is a good way. 645 00:14:01,740 --> 00:14:02,360 That is, 646 00:14:02,540 --> 00:14:03,120 we can use 647 00:14:03,120 --> 00:14:03,860 data flow analysis 648 00:14:03,860 --> 00:14:04,900 to guess 649 00:14:04,900 --> 00:14:06,440 the specific 650 00:14:06,440 --> 00:14:07,800 of each instruction 651 00:14:07,800 --> 00:14:10,120 before it is executed. 652 00:14:11,000 --> 00:14:11,720 Let's look at 653 00:14:11,720 --> 00:14:12,460 a simple example. 654 00:14:14,420 --> 00:14:14,900 Here, 655 00:14:15,080 --> 00:14:15,840 we have 656 00:14:16,440 --> 00:14:17,300 five instructions. 657 00:14:17,580 --> 00:14:18,500 Very simple 658 00:14:18,500 --> 00:14:19,100 five instructions. 659 00:14:19,200 --> 00:14:19,240 So, 660 00:14:19,260 --> 00:14:20,180 if 661 00:14:20,180 --> 00:14:22,660 the five instructions 662 00:14:22,660 --> 00:14:23,260 are executed 663 00:14:23,260 --> 00:14:25,000 in the fifth instruction, 664 00:14:25,520 --> 00:14:26,520 this instruction 665 00:14:26,520 --> 00:14:26,900 is crushed. 666 00:14:27,260 --> 00:14:28,100 When it is crushed, 667 00:14:28,240 --> 00:14:28,700 we have 668 00:14:28,700 --> 00:14:29,620 a core dump. 669 00:14:29,780 --> 00:14:30,020 We have 670 00:14:30,020 --> 00:14:31,660 an internal memory 671 00:14:31,660 --> 00:14:31,920 speed. 672 00:14:32,260 --> 00:14:33,000 This speed 673 00:14:33,000 --> 00:14:33,500 grows 674 00:14:34,080 --> 00:14:34,640 like 675 00:14:34,640 --> 00:14:34,960 the table 676 00:14:34,960 --> 00:14:36,040 on our right hand side. 677 00:14:36,720 --> 00:14:37,480 Its value 678 00:14:37,480 --> 00:14:37,960 is inside. 679 00:14:38,320 --> 00:14:38,860 So, 680 00:14:38,960 --> 00:14:40,140 in addition to 681 00:14:40,140 --> 00:14:40,600 the internal memory speed, 682 00:14:40,820 --> 00:14:41,600 we also have 683 00:14:41,600 --> 00:14:42,260 the value of the memory. 684 00:14:43,280 --> 00:14:43,840 With 685 00:14:43,840 --> 00:14:45,140 such a core dump, 686 00:14:45,300 --> 00:14:45,940 with such a 687 00:14:45,940 --> 00:14:46,500 collection sequence, 688 00:14:46,760 --> 00:14:47,600 how do we 689 00:14:47,600 --> 00:14:48,600 go back step by step? 690 00:14:49,480 --> 00:14:49,920 First, 691 00:14:50,080 --> 00:14:50,420 let's look at 692 00:14:50,420 --> 00:14:50,840 the fifth instruction. 693 00:14:50,840 --> 00:14:51,500 This is the 694 00:14:51,500 --> 00:14:51,900 crush point. 695 00:14:52,000 --> 00:14:52,120 So, 696 00:14:52,200 --> 00:14:52,720 what we need to do 697 00:14:52,720 --> 00:14:53,220 is to go up 698 00:14:53,220 --> 00:14:53,760 from the last one. 699 00:14:54,920 --> 00:14:55,360 Here, 700 00:14:55,640 --> 00:14:56,100 we know 701 00:14:56,100 --> 00:14:56,560 the value of 702 00:14:56,560 --> 00:14:58,000 EX and EBX. 703 00:14:58,320 --> 00:14:58,760 After executing 704 00:14:58,760 --> 00:14:59,300 this instruction, 705 00:14:59,520 --> 00:15:00,360 its value 706 00:15:00,360 --> 00:15:01,340 is displayed 707 00:15:01,340 --> 00:15:01,700 in the table. 708 00:15:04,000 --> 00:15:04,920 If we use 709 00:15:04,920 --> 00:15:05,740 data flow analysis, 710 00:15:05,860 --> 00:15:06,560 our goal now 711 00:15:06,560 --> 00:15:07,000 is to know 712 00:15:07,000 --> 00:15:07,200 how much 713 00:15:07,200 --> 00:15:07,780 EBX is 714 00:15:07,780 --> 00:15:08,000 equal to 715 00:15:08,000 --> 00:15:08,220 before executing 716 00:15:08,220 --> 00:15:09,380 the fifth instruction. 717 00:15:13,360 --> 00:15:14,600 A good way 718 00:15:14,600 --> 00:15:15,160 is to 719 00:15:15,160 --> 00:15:16,580 find out 720 00:15:16,580 --> 00:15:17,220 how much EBX 721 00:15:17,220 --> 00:15:17,940 is equal to 722 00:15:17,940 --> 00:15:18,120 before executing 723 00:15:18,120 --> 00:15:18,600 the first instruction. 724 00:15:19,520 --> 00:15:20,300 The first instruction 725 00:15:20,300 --> 00:15:20,960 and EBX 726 00:15:20,960 --> 00:15:21,320 are equal. 727 00:15:21,760 --> 00:15:22,880 When the fifth instruction 728 00:15:22,880 --> 00:15:23,260 is executed, 729 00:15:23,400 --> 00:15:24,140 the EBX 730 00:15:24,140 --> 00:15:24,800 is repeated. 731 00:15:25,660 --> 00:15:26,100 So, 732 00:15:26,240 --> 00:15:27,160 we can quickly 733 00:15:27,160 --> 00:15:27,780 deduce that 734 00:15:27,780 --> 00:15:28,500 the EBX 735 00:15:28,500 --> 00:15:31,180 is equal to 736 00:15:31,180 --> 00:15:32,020 the EDX 737 00:15:32,020 --> 00:15:32,180 before executing 738 00:15:32,400 --> 00:15:32,940 In other words, 739 00:15:33,160 --> 00:15:33,840 the EBX 740 00:15:33,840 --> 00:15:34,660 and the EDX 741 00:15:34,660 --> 00:15:35,300 must be equal 742 00:15:35,300 --> 00:15:35,460 before execution. 743 00:15:37,000 --> 00:15:37,440 So, 744 00:15:37,620 --> 00:15:38,740 this is easy to do. 745 00:15:38,860 --> 00:15:39,780 For this instruction, 746 00:15:39,940 --> 00:15:40,520 we can take 747 00:15:40,520 --> 00:15:41,920 the value 748 00:15:41,920 --> 00:15:42,500 of EDX 749 00:15:42,500 --> 00:15:43,120 and 750 00:15:43,120 --> 00:15:44,460 add it to EBX. 751 00:15:44,560 --> 00:15:44,860 In this way, 752 00:15:44,860 --> 00:15:45,320 we can move 753 00:15:45,320 --> 00:15:45,400 the entire 754 00:15:46,440 --> 00:15:47,200 program counter 755 00:15:47,200 --> 00:15:47,960 up. 756 00:15:48,740 --> 00:15:49,300 In this way, 757 00:15:49,300 --> 00:15:49,820 I have restored 758 00:15:49,820 --> 00:15:50,200 the value 759 00:15:50,200 --> 00:15:51,000 in the previous state. 760 00:15:51,740 --> 00:15:52,580 It looks simple. 761 00:15:53,060 --> 00:15:53,780 Let's go down. 762 00:15:54,220 --> 00:15:54,620 Now, 763 00:15:54,700 --> 00:15:56,100 what we want to do 764 00:15:56,100 --> 00:15:56,540 is to execute 765 00:15:56,540 --> 00:15:57,160 the fourth instruction 766 00:15:57,160 --> 00:15:58,560 in a simple reverse direction. 767 00:15:58,700 --> 00:15:59,400 We can use 768 00:15:59,400 --> 00:16:00,060 the same method. 769 00:16:00,240 --> 00:16:01,280 We want to know 770 00:16:01,280 --> 00:16:01,420 how much 771 00:16:01,420 --> 00:16:02,040 ECX value 772 00:16:02,040 --> 00:16:02,300 is equal to 773 00:16:02,300 --> 00:16:02,460 when executing 774 00:16:02,460 --> 00:16:04,280 the fourth instruction. 775 00:16:05,760 --> 00:16:06,440 So, 776 00:16:06,500 --> 00:16:07,080 we can see 777 00:16:07,080 --> 00:16:07,420 that 778 00:16:08,280 --> 00:16:09,300 if you are familiar 779 00:16:09,300 --> 00:16:09,700 with this, 780 00:16:09,700 --> 00:16:10,260 you may know 781 00:16:10,260 --> 00:16:10,920 that 782 00:16:10,920 --> 00:16:11,900 when I see 783 00:16:11,900 --> 00:16:12,600 the second instruction, 784 00:16:12,940 --> 00:16:13,840 ECX is multiplied. 785 00:16:14,180 --> 00:16:15,160 Its multiplication 786 00:16:15,160 --> 00:16:16,020 is from 787 00:16:16,020 --> 00:16:16,600 the memory 788 00:16:16,600 --> 00:16:16,920 the EDI 789 00:16:16,920 --> 00:16:17,840 to 790 00:16:17,840 --> 00:16:21,340 the ECX. 791 00:16:21,420 --> 00:16:22,080 The ECX 792 00:16:22,080 --> 00:16:22,800 can be transmitted 793 00:16:22,800 --> 00:16:24,660 to the fourth instruction. 794 00:16:24,900 --> 00:16:25,380 So, 795 00:16:25,400 --> 00:16:25,620 you may 796 00:16:25,620 --> 00:16:26,580 conclude 797 00:16:26,580 --> 00:16:27,320 that 798 00:16:27,320 --> 00:16:28,260 before executing 799 00:16:28,260 --> 00:16:29,180 the fourth instruction, 800 00:16:30,540 --> 00:16:31,860 the ECX 801 00:16:31,860 --> 00:16:32,460 is actually 802 00:16:32,460 --> 00:16:33,540 equal to 803 00:16:34,280 --> 00:16:35,300 the value 804 00:16:35,300 --> 00:16:36,080 in the memory 805 00:16:36,080 --> 00:16:37,120 of the second instruction. 806 00:16:37,900 --> 00:16:38,340 So, 807 00:16:38,460 --> 00:16:39,000 if you think 808 00:16:39,000 --> 00:16:39,580 that 809 00:16:39,580 --> 00:16:41,260 the EDI 810 00:16:41,260 --> 00:16:42,340 is now 811 00:16:43,020 --> 00:16:43,460 45, 812 00:16:43,760 --> 00:16:44,260 you can find 813 00:16:44,260 --> 00:16:44,640 the corresponding 814 00:16:44,640 --> 00:16:45,080 memory 815 00:16:45,080 --> 00:16:45,840 of 45. 816 00:16:46,300 --> 00:16:46,900 You take out 817 00:16:46,900 --> 00:16:47,280 the value 818 00:16:47,280 --> 00:16:47,400 of 22 819 00:16:48,080 --> 00:16:48,520 and 820 00:16:48,520 --> 00:16:48,980 give the value 821 00:16:48,980 --> 00:16:50,240 to ECX. 822 00:16:50,420 --> 00:16:51,240 You can do this. 823 00:16:51,660 --> 00:16:52,640 Is there a problem 824 00:16:52,640 --> 00:16:52,760 in doing this? 825 00:16:53,760 --> 00:16:54,640 It seems 826 00:16:54,640 --> 00:16:55,400 that there is 827 00:16:55,400 --> 00:16:55,760 no problem 828 00:16:55,760 --> 00:16:55,980 in doing this. 829 00:16:55,980 --> 00:16:56,900 But I want to tell you 830 00:16:56,900 --> 00:16:57,220 that 831 00:16:57,220 --> 00:16:58,560 doing this 832 00:16:58,560 --> 00:16:58,820 will actually 833 00:16:59,350 --> 00:17:00,060 make a mistake. 834 00:17:00,780 --> 00:17:01,520 Why? 835 00:17:02,620 --> 00:17:03,440 Let me 836 00:17:03,440 --> 00:17:03,800 give you 837 00:17:03,800 --> 00:17:03,960 another example. 838 00:17:05,220 --> 00:17:05,960 Before 839 00:17:05,960 --> 00:17:06,680 executing 840 00:17:06,680 --> 00:17:07,240 the third instruction, 841 00:17:07,240 --> 00:17:07,820 we can 842 00:17:07,820 --> 00:17:09,900 assume that 843 00:17:09,900 --> 00:17:10,620 the ECX value 844 00:17:10,620 --> 00:17:11,360 is equal to 845 00:17:11,360 --> 00:17:12,240 the value 846 00:17:12,240 --> 00:17:12,800 in the memory 847 00:17:12,800 --> 00:17:13,220 of the EDI. 848 00:17:13,540 --> 00:17:14,500 Let's assume 849 00:17:15,780 --> 00:17:16,520 that 850 00:17:16,520 --> 00:17:17,920 the value 851 00:17:17,920 --> 00:17:18,300 in the memory 852 00:17:18,300 --> 00:17:19,160 of the ECX 853 00:17:19,160 --> 00:17:20,420 in the third instruction 854 00:17:20,420 --> 00:17:21,200 and 855 00:17:21,200 --> 00:17:21,880 the value 856 00:17:21,880 --> 00:17:22,240 of the EDI 857 00:17:22,240 --> 00:17:25,820 are not 858 00:17:25,820 --> 00:17:26,690 the same 859 00:17:27,580 --> 00:17:28,360 in the memory 860 00:17:28,360 --> 00:17:28,740 of the EDI. 861 00:17:28,740 --> 00:17:28,760 In other words, 862 00:17:29,100 --> 00:17:29,480 these two 863 00:17:29,480 --> 00:17:30,100 indexes 864 00:17:31,180 --> 00:17:31,780 are not 865 00:17:31,780 --> 00:17:32,100 the same 866 00:17:32,100 --> 00:17:32,340 in the memory 867 00:17:32,340 --> 00:17:32,540 of the EDI. 868 00:17:33,000 --> 00:17:34,040 If they are not 869 00:17:34,040 --> 00:17:34,320 the same 870 00:17:34,320 --> 00:17:34,620 in the memory 871 00:17:34,620 --> 00:17:34,780 of the EDI, 872 00:17:34,780 --> 00:17:35,060 of course, 873 00:17:35,120 --> 00:17:38,100 we can boldly say 874 00:17:38,100 --> 00:17:39,100 that before 875 00:17:39,100 --> 00:17:40,560 the execution 876 00:17:40,560 --> 00:17:40,900 of the fourth instruction, 877 00:17:41,540 --> 00:17:41,980 the value 878 00:17:41,980 --> 00:17:42,340 in the memory 879 00:17:42,340 --> 00:17:42,740 should be 880 00:17:42,740 --> 00:17:43,060 equal to 881 00:17:43,060 --> 00:17:43,720 the value 882 00:17:43,720 --> 00:17:44,140 in the memory 883 00:17:44,140 --> 00:17:44,480 of the EDI. 884 00:17:44,740 --> 00:17:45,580 But if 885 00:17:45,580 --> 00:17:46,180 they are 886 00:17:46,180 --> 00:17:46,860 the same 887 00:17:46,860 --> 00:17:47,240 in the memory 888 00:17:47,240 --> 00:17:47,680 of the EDI, 889 00:17:47,680 --> 00:17:48,000 the situation 890 00:17:48,000 --> 00:17:48,720 will be 891 00:17:48,720 --> 00:17:48,960 completely 892 00:17:48,960 --> 00:17:49,540 the opposite. 893 00:17:51,380 --> 00:17:52,020 Let's see 894 00:17:52,020 --> 00:17:52,760 why this is the case. 895 00:17:53,100 --> 00:17:54,480 If the EDI 896 00:17:54,480 --> 00:17:54,940 is equal to 897 00:17:54,940 --> 00:17:55,500 the ECX, 898 00:17:55,620 --> 00:17:55,980 that is, 899 00:17:56,140 --> 00:17:56,740 before the execution 900 00:17:56,740 --> 00:17:58,060 of L4, 901 00:17:58,500 --> 00:17:59,200 the EDI and 902 00:17:59,200 --> 00:17:59,560 the ECX 903 00:17:59,560 --> 00:17:59,960 are the same 904 00:17:59,960 --> 00:18:00,220 in the memory 905 00:18:00,220 --> 00:18:00,320 of the EDI, 906 00:18:00,320 --> 00:18:01,580 then we can 907 00:18:01,580 --> 00:18:02,080 infer that 908 00:18:02,080 --> 00:18:02,540 the ECX 909 00:18:02,540 --> 00:18:02,880 should be 910 00:18:02,880 --> 00:18:02,960 equal to 911 00:18:02,960 --> 00:18:03,300 the EDI. 912 00:18:04,400 --> 00:18:04,840 Therefore, 913 00:18:04,860 --> 00:18:05,640 we can 914 00:18:05,640 --> 00:18:06,020 analyze 915 00:18:06,020 --> 00:18:09,400 the second instruction 916 00:18:09,400 --> 00:18:09,880 and 917 00:18:09,880 --> 00:18:10,460 the value 918 00:18:10,460 --> 00:18:11,320 in the memory 919 00:18:11,320 --> 00:18:12,000 of the ECX 920 00:18:12,000 --> 00:18:12,600 cannot be 921 00:18:12,600 --> 00:18:12,940 transmitted directly 922 00:18:12,940 --> 00:18:14,460 to the fourth instruction. 923 00:18:18,640 --> 00:18:19,220 Therefore, 924 00:18:19,460 --> 00:18:20,240 we should 925 00:18:20,240 --> 00:18:20,920 give the value 926 00:18:20,920 --> 00:18:21,120 of 45 927 00:18:21,120 --> 00:18:22,700 to the ECX 928 00:18:22,700 --> 00:18:23,140 instead of 929 00:18:23,140 --> 00:18:24,320 giving the value 930 00:18:24,320 --> 00:18:25,400 of 22 931 00:18:25,400 --> 00:18:25,920 in the memory 932 00:18:25,920 --> 00:18:26,220 of the EDI 933 00:18:26,220 --> 00:18:27,660 to the ECX. 934 00:18:28,080 --> 00:18:28,820 I don't know 935 00:18:28,820 --> 00:18:29,360 if you understand 936 00:18:29,360 --> 00:18:30,180 what I mean. 937 00:18:30,520 --> 00:18:31,800 If the EDI 938 00:18:31,800 --> 00:18:32,220 is equal to 939 00:18:32,220 --> 00:18:32,780 the ECX, 940 00:18:32,900 --> 00:18:34,160 then the value 941 00:18:34,160 --> 00:18:34,700 of the ECX 942 00:18:34,700 --> 00:18:35,320 should be 943 00:18:35,320 --> 00:18:35,840 equal to 944 00:18:35,840 --> 00:18:36,520 the value 945 00:18:36,520 --> 00:18:36,820 of the EDI, 946 00:18:37,160 --> 00:18:38,440 which is 45, 947 00:18:38,560 --> 00:18:39,160 not 22. 948 00:18:39,820 --> 00:18:40,380 So, 949 00:18:40,460 --> 00:18:41,200 in the real world, 950 00:18:41,540 --> 00:18:42,480 how can we know 951 00:18:42,480 --> 00:18:43,060 whether 952 00:18:43,060 --> 00:18:45,320 the EDI 953 00:18:47,400 --> 00:18:47,560 and 954 00:18:47,560 --> 00:18:48,080 the ECX 955 00:18:48,080 --> 00:18:49,280 are the same 956 00:18:49,280 --> 00:18:49,460 in the memory 957 00:18:49,460 --> 00:18:49,680 of the EDI? 958 00:18:49,940 --> 00:18:50,800 This is 959 00:18:50,800 --> 00:18:51,340 a very 960 00:18:51,340 --> 00:18:51,680 difficult 961 00:18:51,680 --> 00:18:52,000 question. 962 00:18:52,820 --> 00:18:53,420 In order 963 00:18:53,420 --> 00:18:54,160 to solve 964 00:18:54,160 --> 00:18:54,600 this problem, 965 00:18:54,820 --> 00:18:55,400 we used 966 00:18:56,520 --> 00:18:57,640 an assumption 967 00:18:57,640 --> 00:18:57,900 test. 968 00:18:58,460 --> 00:18:59,360 The assumption 969 00:18:59,360 --> 00:18:59,800 test is 970 00:18:59,800 --> 00:19:00,340 very simple. 971 00:19:00,880 --> 00:19:01,880 We first 972 00:19:01,880 --> 00:19:02,820 do two assumptions. 973 00:19:05,320 --> 00:19:05,780 When we are not sure 974 00:19:05,780 --> 00:19:06,260 whether they are 975 00:19:06,260 --> 00:19:07,140 the same EDI 976 00:19:07,140 --> 00:19:07,400 or 977 00:19:07,400 --> 00:19:10,280 the same memory 978 00:19:10,280 --> 00:19:10,580 address, 979 00:19:10,820 --> 00:19:11,580 we first 980 00:19:11,580 --> 00:19:12,500 make two assumptions. 981 00:19:12,680 --> 00:19:13,440 The first assumption 982 00:19:13,440 --> 00:19:13,760 is that 983 00:19:13,760 --> 00:19:15,100 the two memory 984 00:19:15,100 --> 00:19:15,420 uses 985 00:19:15,420 --> 00:19:16,420 are not 986 00:19:16,420 --> 00:19:17,000 the same 987 00:19:17,000 --> 00:19:17,200 address. 988 00:19:17,460 --> 00:19:18,660 The second assumption 989 00:19:18,660 --> 00:19:19,440 is that 990 00:19:19,440 --> 00:19:19,720 they are 991 00:19:19,720 --> 00:19:19,940 the same 992 00:19:19,940 --> 00:19:20,180 address. 993 00:19:20,480 --> 00:19:20,860 Then, 994 00:19:20,960 --> 00:19:21,300 based on 995 00:19:21,300 --> 00:19:22,820 these two assumptions, 996 00:19:22,980 --> 00:19:24,520 we do 997 00:19:25,180 --> 00:19:26,060 data analysis 998 00:19:26,060 --> 00:19:27,460 and infer 999 00:19:27,460 --> 00:19:28,600 the corresponding 1000 00:19:30,060 --> 00:19:30,620 limit 1001 00:19:30,620 --> 00:19:31,580 through 1002 00:19:31,580 --> 00:19:31,960 the limit 1003 00:19:31,960 --> 00:19:32,580 to determine 1004 00:19:32,580 --> 00:19:33,940 which assumption 1005 00:19:33,940 --> 00:19:34,280 is true 1006 00:19:34,280 --> 00:19:35,000 and which assumption 1007 00:19:35,000 --> 00:19:35,400 is false. 1008 00:19:36,700 --> 00:19:37,420 Let's use 1009 00:19:37,420 --> 00:19:38,200 this example 1010 00:19:38,200 --> 00:19:39,020 to explain 1011 00:19:39,020 --> 00:19:40,020 how to 1012 00:19:40,020 --> 00:19:40,680 solve 1013 00:19:40,680 --> 00:19:41,220 this problem. 1014 00:19:41,340 --> 00:19:41,900 The first 1015 00:19:41,900 --> 00:19:42,800 example is 1016 00:19:42,800 --> 00:19:46,860 the EDI 1017 00:19:46,860 --> 00:19:47,100 and 1018 00:19:47,100 --> 00:19:47,680 the ECX 1019 00:19:47,680 --> 00:19:48,440 are the 1020 00:19:48,440 --> 00:19:48,920 same 1021 00:19:48,920 --> 00:19:49,080 address. 1022 00:19:50,220 --> 00:19:51,000 The other 1023 00:19:51,000 --> 00:19:51,420 assumption 1024 00:19:51,420 --> 00:19:52,180 is that 1025 00:19:52,180 --> 00:19:52,540 they are 1026 00:19:52,540 --> 00:19:53,080 not 1027 00:19:53,080 --> 00:19:53,280 the same 1028 00:19:53,280 --> 00:19:53,500 address. 1029 00:19:54,380 --> 00:19:55,160 With this 1030 00:19:55,160 --> 00:19:55,440 assumption, 1031 00:19:55,440 --> 00:19:56,420 we can 1032 00:19:56,420 --> 00:19:57,320 construct 1033 00:19:57,320 --> 00:19:58,120 the use-defend 1034 00:19:58,120 --> 00:19:58,360 chain. 1035 00:19:59,520 --> 00:20:00,480 Because this is 1036 00:20:00,480 --> 00:20:01,220 a combination 1037 00:20:01,220 --> 00:20:01,800 instructions, 1038 00:20:02,340 --> 00:20:04,460 we can 1039 00:20:04,460 --> 00:20:04,840 use 1040 00:20:05,380 --> 00:20:06,000 and define 1041 00:20:06,000 --> 00:20:06,940 these two 1042 00:20:06,940 --> 00:20:07,360 boxes 1043 00:20:07,360 --> 00:20:08,200 to describe 1044 00:20:08,200 --> 00:20:08,440 the first 1045 00:20:09,260 --> 00:20:11,000 For the second 1046 00:20:11,000 --> 00:20:11,320 instruction, 1047 00:20:11,520 --> 00:20:12,080 we can also 1048 00:20:12,080 --> 00:20:12,100 describe it 1049 00:20:12,100 --> 00:20:12,560 these three 1050 00:20:12,560 --> 00:20:12,800 blue 1051 00:20:12,800 --> 00:20:13,360 boxes. 1052 00:20:14,260 --> 00:20:14,940 Then, 1053 00:20:15,120 --> 00:20:15,460 we can also 1054 00:20:15,460 --> 00:20:15,800 define 1055 00:20:15,800 --> 00:20:19,480 the use-defend 1056 00:20:24,420 --> 00:20:24,760 chain 1057 00:20:24,760 --> 00:20:25,400 in the 1058 00:20:25,400 --> 00:20:26,260 use-defend 1059 00:20:26,260 --> 00:20:26,400 chain. 1060 00:20:27,900 --> 00:20:29,020 The first 1061 00:20:29,020 --> 00:20:29,840 assumption 1062 00:20:29,840 --> 00:20:30,740 is that 1063 00:20:30,740 --> 00:20:31,160 the two 1064 00:20:31,840 --> 00:20:32,400 memory 1065 00:20:32,400 --> 00:20:32,720 addresses 1066 00:20:32,720 --> 00:20:33,280 indicated 1067 00:20:33,280 --> 00:20:33,420 by 1068 00:20:33,420 --> 00:20:33,820 ECX 1069 00:20:33,820 --> 00:20:34,300 and EDI 1070 00:20:34,300 --> 00:20:36,120 are not 1071 00:20:36,120 --> 00:20:36,400 the same 1072 00:20:36,400 --> 00:20:36,580 address. 1073 00:20:36,960 --> 00:20:37,520 So, 1074 00:20:37,620 --> 00:20:38,140 we know 1075 00:20:38,140 --> 00:20:38,460 that 1076 00:20:38,460 --> 00:20:40,220 the use-defend 1077 00:20:40,220 --> 00:20:40,760 chain 1078 00:20:40,760 --> 00:20:40,840 of 1079 00:20:40,840 --> 00:20:40,880 this 1080 00:20:40,880 --> 00:20:41,040 always 1081 00:20:41,040 --> 00:20:41,300 be 1082 00:20:41,300 --> 00:20:41,620 transmitted 1083 00:20:41,620 --> 00:20:41,940 to 1084 00:20:41,940 --> 00:20:42,900 the end 1085 00:20:42,900 --> 00:20:42,940 of this 1086 00:20:42,940 --> 00:20:43,400 use-defend 1087 00:20:43,400 --> 00:20:43,660 chain. 1088 00:20:45,700 --> 00:20:46,220 So, 1089 00:20:46,720 --> 00:20:47,440 we can get 1090 00:20:47,440 --> 00:20:48,520 this combination. 1091 00:20:48,720 --> 00:20:49,000 That is, 1092 00:20:49,160 --> 00:20:49,960 we can know that 1093 00:20:49,960 --> 00:20:51,460 in the fourth instruction, 1094 00:20:52,780 --> 00:20:53,300 ECX 1095 00:20:53,300 --> 00:20:54,340 should not be equal 1096 00:20:54,340 --> 00:20:54,700 to EDI. 1097 00:20:55,540 --> 00:20:56,060 ECX 1098 00:20:56,060 --> 00:20:56,980 should be equal to 1099 00:20:56,980 --> 00:20:57,940 the value of 1100 00:20:57,940 --> 00:20:58,940 the memory 1101 00:20:59,620 --> 00:21:00,140 indicated 1102 00:21:00,180 --> 00:21:00,700 Then, 1103 00:21:00,780 --> 00:21:00,920 the memory indicated 1104 00:21:00,920 --> 00:21:02,060 by ECX 1105 00:21:02,060 --> 00:21:03,080 should be equal 1106 00:21:03,080 --> 00:21:03,800 to ESI. 1107 00:21:03,960 --> 00:21:04,720 We can get 1108 00:21:04,720 --> 00:21:05,200 such a 1109 00:21:05,200 --> 00:21:05,960 constraint 1110 00:21:05,960 --> 00:21:06,420 combination. 1111 00:21:07,560 --> 00:21:08,080 Then, 1112 00:21:22,280 --> 00:21:25,160 we have two 1113 00:21:25,160 --> 00:21:25,760 different 1114 00:21:25,760 --> 00:21:25,840 constraints 1115 00:21:25,840 --> 00:21:26,060 combinations. 1116 00:21:26,400 --> 00:21:26,980 The first 1117 00:21:26,980 --> 00:21:27,360 ECX 1118 00:21:27,360 --> 00:21:30,200 should be 1119 00:21:30,200 --> 00:21:30,420 equal to 1120 00:21:30,420 --> 00:21:30,780 the value 1121 00:21:30,780 --> 00:21:31,640 by 1122 00:21:31,640 --> 00:21:32,120 EDI. 1123 00:21:32,260 --> 00:21:33,020 The second 1124 00:21:33,020 --> 00:21:33,060 constraint 1125 00:21:33,060 --> 00:21:33,560 ECX 1126 00:21:33,560 --> 00:21:35,220 should be 1127 00:21:35,220 --> 00:21:35,340 equal 1128 00:21:35,340 --> 00:21:35,440 to 1129 00:21:35,440 --> 00:21:35,560 the value 1130 00:21:41,160 --> 00:21:41,920 indicated 1131 00:21:41,940 --> 00:21:42,260 by EDI. 1132 00:21:42,660 --> 00:21:43,620 That is, 1133 00:21:43,620 --> 00:21:44,180 structures 1134 00:21:44,180 --> 00:21:44,320 are 1135 00:21:44,320 --> 00:21:45,160 equal to 1136 00:21:45,160 --> 00:21:46,080 the value 1137 00:21:46,080 --> 00:21:46,200 indicated 1138 00:21:46,200 --> 00:21:46,820 by 1139 00:21:51,900 --> 00:21:52,860 ECX. 1140 00:21:57,780 --> 00:21:58,300 Let us 1141 00:22:01,060 --> 00:22:02,020 test 1142 00:22:11,960 --> 00:22:13,240 Our test is very simple. 1143 00:22:13,400 --> 00:22:14,620 Let's verify it. 1144 00:22:15,080 --> 00:22:20,700 First, we see that ECX is equal to the internal storage value indicated by EDI. 1145 00:22:21,000 --> 00:22:25,480 Currently, we see that the internal storage indicated by EDI should be 45, 1146 00:22:25,680 --> 00:22:27,900 which is the internal storage indicated by 45. 1147 00:22:27,900 --> 00:22:29,660 Then we can take out the value, which is equal to 22. 1148 00:22:29,820 --> 00:22:32,360 We restore 22 to ECX, 1149 00:22:32,480 --> 00:22:35,460 which means that ECX should be equal to 22 at this time. 1150 00:22:35,660 --> 00:22:36,340 No problem. 1151 00:22:37,500 --> 00:22:38,040 Go on. 1152 00:22:38,940 --> 00:22:40,960 Second, ECX should not be equal to EDI. 1153 00:22:40,960 --> 00:22:43,820 At this time, we see that ECX is equal to 22. 1154 00:22:45,140 --> 00:22:48,000 Now, EDI should be equal to 45. 1155 00:22:48,120 --> 00:22:48,920 So, they are not equal. 1156 00:22:49,140 --> 00:22:49,620 No problem. 1157 00:22:49,920 --> 00:22:50,660 It is also satisfactory. 1158 00:22:51,200 --> 00:22:53,040 Then we look at the third condition. 1159 00:22:53,240 --> 00:22:57,700 The third condition is that the internal storage indicated by ECX should not be equal to ESI. 1160 00:22:59,400 --> 00:23:01,260 ECX's internal storage is now 22. 1161 00:23:01,560 --> 00:23:04,500 So, its value is 18 at the position of 22. 1162 00:23:04,700 --> 00:23:07,140 So, ESI's value is 22 now. 1163 00:23:07,200 --> 00:23:09,560 So, we can quickly know that this set of assumptions 1164 00:23:09,560 --> 00:23:10,460 is not satisfied with this condition. 1165 00:23:11,240 --> 00:23:14,020 So, we can quickly reject this set of assumptions. 1166 00:23:17,260 --> 00:23:19,100 Since this set of assumptions is wrong, 1167 00:23:19,320 --> 00:23:20,820 I think we don't need to verify the second set. 1168 00:23:20,900 --> 00:23:22,720 Because one set is wrong, 1169 00:23:22,920 --> 00:23:23,960 the other set is definitely right. 1170 00:23:24,180 --> 00:23:26,960 So, we can quickly know through this method that 1171 00:23:26,960 --> 00:23:29,820 the two internal storage EDI and ECX 1172 00:23:29,820 --> 00:23:31,640 are actually equal to each other before executing the fourth command. 1173 00:23:34,580 --> 00:23:36,860 So, through this method, we can know this thing. 1174 00:23:37,040 --> 00:23:38,460 So, after having such an ability, 1175 00:23:38,780 --> 00:23:40,160 we can quickly 1176 00:23:42,000 --> 00:23:45,100 perform the reverse execution of each command in this example. 1177 00:23:45,700 --> 00:23:47,460 So, at the same time, we can restore the internal storage state. 1178 00:23:48,300 --> 00:23:49,420 What is the advantage of this? 1179 00:23:49,520 --> 00:23:50,880 We have the internal storage state. 1180 00:23:50,900 --> 00:23:53,740 We have the internal storage state of each command before and after execution. 1181 00:23:54,020 --> 00:23:54,680 In the process of debugging, 1182 00:23:55,340 --> 00:23:57,380 we can use an automated tool completely. 1183 00:23:57,380 --> 00:24:02,020 The existing automated tool can find the root cost of this software completely. 1184 00:24:02,020 --> 00:24:03,840 That is to say, if a program collapses, 1185 00:24:04,000 --> 00:24:06,040 you can find its fundamental cause directly. 1186 00:24:06,040 --> 00:24:07,540 The fundamental cause of its collapse is very easy to find. 1187 00:24:09,260 --> 00:24:10,140 So, just now, I talked about this. 1188 00:24:10,160 --> 00:24:12,700 So, our assumption test looks very good. 1189 00:24:12,760 --> 00:24:14,100 But in fact, it still has a lot of problems. 1190 00:24:14,360 --> 00:24:16,320 Here, I can share with you the main problem. 1191 00:24:17,080 --> 00:24:18,420 So, the first problem is 1192 00:24:19,320 --> 00:24:20,920 I just mentioned it. 1193 00:24:21,440 --> 00:24:23,520 In order to get all the command series, 1194 00:24:24,400 --> 00:24:25,960 all the command series executed before, 1195 00:24:25,960 --> 00:24:27,940 we use the hardware feature of Intel PT. 1196 00:24:30,020 --> 00:24:33,660 Intel PT by default does not record the commands executed in the system debugging. 1197 00:24:35,400 --> 00:24:39,240 So, you can imagine that a user-oriented program will have system debugging. 1198 00:24:39,240 --> 00:24:41,320 It will interact with the system debugging. 1199 00:24:42,400 --> 00:24:43,400 When this happens, 1200 00:24:44,360 --> 00:24:46,300 we can't, by default, 1201 00:24:46,520 --> 00:24:50,980 we can't record the commands executed by the system debugging at that time. 1202 00:24:51,500 --> 00:24:52,580 So, this is the first flaw. 1203 00:24:53,300 --> 00:24:54,560 The second flaw is 1204 00:24:56,200 --> 00:24:58,480 when we do data flow analysis, 1205 00:24:58,820 --> 00:24:59,740 this is the first flaw. 1206 00:24:59,880 --> 00:25:00,680 The second flaw is 1207 00:25:00,680 --> 00:25:03,420 just now, our algorithm did an assumption analysis. 1208 00:25:03,640 --> 00:25:05,260 So, you can think of an example like this. 1209 00:25:05,500 --> 00:25:09,220 If I want to judge whether memory 1 and memory 2 are correct, 1210 00:25:11,160 --> 00:25:13,120 but I want to judge whether they are not, 1211 00:25:13,120 --> 00:25:14,620 the premise is that I have to know 1212 00:25:15,020 --> 00:25:17,120 whether memory 3 and memory 4 are correct. 1213 00:25:19,160 --> 00:25:20,940 Then, you can imagine that 1214 00:25:20,940 --> 00:25:23,340 if we need to judge whether memory 3 and memory 4 are correct, 1215 00:25:23,880 --> 00:25:26,240 but we need to judge whether memory 5 and memory 6 are correct, 1216 00:25:26,960 --> 00:25:28,340 then you can imagine that 1217 00:25:28,340 --> 00:25:30,620 our algorithm may increase the index level. 1218 00:25:31,320 --> 00:25:31,920 For example, 1219 00:25:32,480 --> 00:25:35,700 we need to judge whether memory 1 and memory 2 are correct. 1220 00:25:36,600 --> 00:25:38,880 We may have to judge whether memory 3 and 4 are correct. 1221 00:25:38,880 --> 00:25:40,680 we can first determine if 3 and 4 are transparent indexes. 1222 00:25:41,700 --> 00:25:46,200 After that, we will continue to execute on the other side. 1223 00:25:46,840 --> 00:25:50,680 You can imagine that if we have a lot of internal memory visits like this, 1224 00:25:50,680 --> 00:25:52,180 and we all need to do a transparent index test, 1225 00:25:52,800 --> 00:25:58,540 then the complexity of this algorithm should be N O N m square. 1226 00:25:59,160 --> 00:26:02,180 If m equals 2, it may be fine. 1227 00:26:02,240 --> 00:26:03,740 n to the second square may be fine. 1228 00:26:03,960 --> 00:26:07,720 But if m equals 5, 6, or 100, 1229 00:26:07,720 --> 00:26:09,360 it may be very difficult to deal with. 1230 00:26:09,440 --> 00:26:11,360 Such an algorithm cannot be used in the industrial world. 1231 00:26:12,800 --> 00:26:18,500 Therefore, in JD, we strongly demand that m must be equal to 2. 1232 00:26:20,140 --> 00:26:22,460 I can force m to be equal to 2, 1233 00:26:22,460 --> 00:26:25,460 but m equals 2 is still reasonable. 1234 00:26:25,680 --> 00:26:29,060 But the problem is that you may not be able to find the correct answer 1235 00:26:29,060 --> 00:26:33,700 to the fundamental reason for the actual end of the program. 1236 00:26:35,220 --> 00:26:36,920 Let's see if this is really the case. 1237 00:26:37,020 --> 00:26:37,700 We have a problem. 1238 00:26:37,720 --> 00:26:38,760 We did a simple experiment. 1239 00:26:38,900 --> 00:26:40,700 This is some CVEs that we collected in JD. 1240 00:26:43,740 --> 00:26:46,200 You can see that the characters in the CVEs may be a little small. 1241 00:26:46,380 --> 00:26:47,540 But to summarize, 1242 00:26:48,180 --> 00:26:50,780 the vast majority of CVEs may be stack overflow, 1243 00:26:51,160 --> 00:26:52,160 and some heap overflow, 1244 00:26:52,460 --> 00:26:53,840 and some formal output, 1245 00:26:54,160 --> 00:26:56,340 and some non-pointer dereference, 1246 00:26:56,500 --> 00:26:58,120 and use-after-free and invalid-free. 1247 00:26:58,320 --> 00:27:03,520 We used these 31 CVEs to trigger the problematic software 1248 00:27:03,520 --> 00:27:06,140 and get the corresponding CRUSH dump. 1249 00:27:06,140 --> 00:27:07,860 After we get the CRUSH dump, 1250 00:27:08,120 --> 00:27:09,120 we will use the methods we just mentioned 1251 00:27:09,580 --> 00:27:11,660 to use our tools to do the diagnosis. 1252 00:27:12,620 --> 00:27:14,200 We can skip to this page. 1253 00:27:14,200 --> 00:27:16,420 We want to show you our results. 1254 00:27:19,740 --> 00:27:22,060 This table lists some interesting things. 1255 00:27:22,520 --> 00:27:24,540 The first thing you can see is that 1256 00:27:24,540 --> 00:27:27,020 because our goal is to do reverse execution, 1257 00:27:27,160 --> 00:27:30,160 and then we find every instruction that leads to this CRUSH fundamental reason. 1258 00:27:31,020 --> 00:27:32,400 So through our method, 1259 00:27:32,600 --> 00:27:34,740 we want to see if we have overtinted. 1260 00:27:34,740 --> 00:27:37,360 Because we have back-overtinted to find the real root cause. 1261 00:27:37,440 --> 00:27:38,880 We want to see how much we have overtinted. 1262 00:27:39,380 --> 00:27:40,700 You will see that in this table, 1263 00:27:41,060 --> 00:27:42,340 we do have some overtint, 1264 00:27:42,440 --> 00:27:44,880 which means we have found some extra instructions. 1265 00:27:45,040 --> 00:27:47,720 But this overtint has very little impact on us. 1266 00:27:47,720 --> 00:27:48,840 In the vast majority of cases, 1267 00:27:49,160 --> 00:27:49,780 for example, 1268 00:27:50,040 --> 00:27:52,460 GROUND TRUTHS needs to be tinted to 6 instructions. 1269 00:27:52,760 --> 00:27:55,660 Our tools will only tint to 29 instructions. 1270 00:27:55,920 --> 00:27:58,140 29 instructions is actually a very small number, 1271 00:27:58,400 --> 00:28:03,020 because compared to all the TRUTHS on the left side, 1272 00:28:03,260 --> 00:28:04,080 this number, 1273 00:28:04,080 --> 00:28:07,380 you may need to analyze more than 3,000 instructions to find the root cause. 1274 00:28:07,560 --> 00:28:08,620 Through this method, 1275 00:28:08,800 --> 00:28:10,900 you may only need to look at 29 instructions, 1276 00:28:11,000 --> 00:28:12,320 and you can find the root cause. 1277 00:28:12,960 --> 00:28:14,060 So in general, 1278 00:28:14,340 --> 00:28:15,420 this effect is still okay. 1279 00:28:16,420 --> 00:28:17,560 Let's look at the second one. 1280 00:28:18,260 --> 00:28:19,320 The second one is, 1281 00:28:19,820 --> 00:28:20,900 I have already talked about this, 1282 00:28:20,940 --> 00:28:22,980 the number of analysis does not need to be too much. 1283 00:28:23,620 --> 00:28:25,300 The third observation is that 1284 00:28:25,300 --> 00:28:27,340 when this appears, 1285 00:28:27,800 --> 00:28:30,540 can we actually find the real root cause? 1286 00:28:30,640 --> 00:28:31,640 Can we actually find the real root cause 1287 00:28:31,640 --> 00:28:32,660 of this CRUSH instruction? 1288 00:28:34,280 --> 00:28:36,200 When we look at the 31 CVEs, 1289 00:28:36,520 --> 00:28:37,940 there are only two CVEs 1290 00:28:37,940 --> 00:28:40,280 that we cannot successfully find the root cause. 1291 00:28:40,640 --> 00:28:41,540 Let's take a look at the reason. 1292 00:28:43,060 --> 00:28:43,880 For the first one, 1293 00:28:44,120 --> 00:28:44,800 the reason is, 1294 00:28:44,940 --> 00:28:45,640 as I have already mentioned, 1295 00:28:45,860 --> 00:28:49,820 because of the process of tracking the program execution of the Intel PT, 1296 00:28:49,820 --> 00:28:51,460 it will not track all the instructions in the system call. 1297 00:28:52,980 --> 00:28:54,500 Because of the loss of these instructions, 1298 00:28:54,500 --> 00:28:56,260 we cannot succeed in some cases. 1299 00:28:57,760 --> 00:29:02,140 So this CVE20148322, 1300 00:29:02,740 --> 00:29:03,980 this specific CVE, 1301 00:29:04,080 --> 00:29:05,000 we cannot deal with it. 1302 00:29:05,600 --> 00:29:06,680 Let's look at the next one. 1303 00:29:06,700 --> 00:29:07,080 The next one, 1304 00:29:07,080 --> 00:29:09,740 the CVE20062971, 1305 00:29:09,900 --> 00:29:11,460 we cannot deal with it. 1306 00:29:11,480 --> 00:29:12,580 This is a整形溢出. 1307 00:29:13,140 --> 00:29:14,720 We cannot deal with a整形溢出 1308 00:29:14,720 --> 00:29:15,340 because of the following reason. 1309 00:29:15,340 --> 00:29:16,740 Because of the整形溢出, 1310 00:29:16,840 --> 00:29:18,360 it will lead to a loop. 1311 00:29:18,640 --> 00:29:21,400 It will continue to execute all the instructions in this loop. 1312 00:29:21,720 --> 00:29:23,040 You can imagine that 1313 00:29:23,040 --> 00:29:25,400 Intel PT will store all the instructions 1314 00:29:25,400 --> 00:29:26,860 in a looping loop. 1315 00:29:27,820 --> 00:29:28,940 When the loop is full, 1316 00:29:29,080 --> 00:29:30,020 it will rewrite it. 1317 00:29:31,100 --> 00:29:33,060 When there is a loop, 1318 00:29:33,060 --> 00:29:37,100 all the instructions in the loop will be included in the looping loop. 1319 00:29:37,340 --> 00:29:37,980 That is to say, 1320 00:29:38,060 --> 00:29:39,940 the instructions that lead to the error of the program 1321 00:29:39,940 --> 00:29:42,360 are not in the looping loop at all. 1322 00:29:42,480 --> 00:29:43,760 So this is the reason why we failed. 1323 00:29:44,600 --> 00:29:45,360 But in general, 1324 00:29:45,640 --> 00:29:47,780 there are only two out of 31 that cannot be done. 1325 00:29:47,840 --> 00:29:48,400 So in general, 1326 00:29:48,440 --> 00:29:49,360 it's not bad. 1327 00:29:51,500 --> 00:29:53,580 After we finished our tool, 1328 00:29:55,080 --> 00:29:56,240 we opened it up. 1329 00:29:56,260 --> 00:29:56,800 After opening it up, 1330 00:29:57,460 --> 00:29:58,840 Microsoft has a set of tools. 1331 00:29:59,040 --> 00:30:00,200 They also saw us. 1332 00:30:00,280 --> 00:30:01,800 Their development team also saw this tool. 1333 00:30:01,800 --> 00:30:03,140 They went back and tried it. 1334 00:30:03,500 --> 00:30:05,100 And they also asked us a question. 1335 00:30:05,240 --> 00:30:06,160 You can see in this table, 1336 00:30:06,620 --> 00:30:08,760 when we use our tools to deal with this, 1337 00:30:10,020 --> 00:30:10,900 this is not a CVE, 1338 00:30:11,140 --> 00:30:12,660 but it is a Stack Overflow. 1339 00:30:12,780 --> 00:30:14,100 To deal with such a specific example, 1340 00:30:15,180 --> 00:30:18,540 in order to find the root cause of the error, 1341 00:30:18,540 --> 00:30:20,120 our tool took six hours. 1342 00:30:21,120 --> 00:30:23,040 After Microsoft took it back and ran our tool, 1343 00:30:23,180 --> 00:30:24,720 it ran in all kinds of crashes. 1344 00:30:24,920 --> 00:30:25,860 It also found that 1345 00:30:25,860 --> 00:30:26,700 in many cases, 1346 00:30:26,920 --> 00:30:28,500 our tool may take two days 1347 00:30:28,500 --> 00:30:30,920 to find the real root cause 1348 00:30:30,920 --> 00:30:32,140 of the error in the software. 1349 00:30:32,720 --> 00:30:34,980 So Microsoft had an interaction with us. 1350 00:30:35,360 --> 00:30:36,600 They asked us, 1351 00:30:36,840 --> 00:30:39,040 why does this tool take so long? 1352 00:30:39,380 --> 00:30:40,640 This is unacceptable in the industrial world. 1353 00:30:41,820 --> 00:30:43,620 Because in the data center, 1354 00:30:44,400 --> 00:30:46,600 especially in IBM, 1355 00:30:46,860 --> 00:30:47,540 including Microsoft, 1356 00:30:47,780 --> 00:30:48,540 in their data center, 1357 00:30:48,820 --> 00:30:50,880 the error in the software is very common. 1358 00:30:51,000 --> 00:30:54,380 There may be thousands of such software errors every day. 1359 00:30:54,520 --> 00:30:55,760 So with our tool, 1360 00:30:55,860 --> 00:30:56,500 you can think about it. 1361 00:30:56,520 --> 00:30:57,620 There are thousands of them every day. 1362 00:30:57,660 --> 00:30:59,580 If it takes an average of six hours to deal with one, 1363 00:30:59,580 --> 00:31:01,780 you basically need a lot of machines 1364 00:31:01,780 --> 00:31:02,940 to do the calculation at the same time. 1365 00:31:02,940 --> 00:31:06,140 If it takes two days to deal with one, 1366 00:31:06,140 --> 00:31:08,400 you may have a lot of crashes 1367 00:31:08,400 --> 00:31:09,240 that you don't have time to analyze. 1368 00:31:09,540 --> 00:31:10,700 So this tool, 1369 00:31:10,860 --> 00:31:11,600 in industrial products, 1370 00:31:11,860 --> 00:31:12,700 when we launch it, 1371 00:31:12,860 --> 00:31:13,900 although it's not bad in our test, 1372 00:31:14,540 --> 00:31:15,700 but when we push it 1373 00:31:15,700 --> 00:31:17,140 to the real industrial product, 1374 00:31:17,440 --> 00:31:18,800 we find that it actually 1375 00:31:18,800 --> 00:31:20,140 doesn't really solve the problem. 1376 00:31:20,480 --> 00:31:21,720 The main reason is that 1377 00:31:21,720 --> 00:31:22,500 its efficiency is too low. 1378 00:31:23,660 --> 00:31:25,440 So after we thought about this problem, 1379 00:31:26,020 --> 00:31:27,420 we wanted to solve this problem. 1380 00:31:27,960 --> 00:31:29,460 So this year, 1381 00:31:30,760 --> 00:31:32,160 from the end of last year 1382 00:31:32,160 --> 00:31:33,660 to the beginning of this year, 1383 00:31:34,100 --> 00:31:35,840 we wanted to solve this problem. 1384 00:31:36,000 --> 00:31:36,580 But the method we took 1385 00:31:36,580 --> 00:31:38,720 was to use AI technology. 1386 00:31:38,980 --> 00:31:41,020 I won't give you too many introductions here. 1387 00:31:41,060 --> 00:31:41,940 If you're interested, 1388 00:31:42,360 --> 00:31:43,340 we can sit together 1389 00:31:43,340 --> 00:31:44,080 after this talk, 1390 00:31:45,320 --> 00:31:46,760 and we can continue to discuss. 1391 00:31:47,000 --> 00:31:48,440 So I'll just give you some 1392 00:31:48,440 --> 00:31:49,620 simple high-level ideas. 1393 00:31:50,120 --> 00:31:51,060 On the left, 1394 00:31:51,260 --> 00:31:52,240 it's command training. 1395 00:31:52,740 --> 00:31:54,180 In many cases, 1396 00:31:54,260 --> 00:31:55,120 when we do reverse execution, 1397 00:31:55,320 --> 00:31:56,300 as I just mentioned, 1398 00:31:56,560 --> 00:31:58,340 we want to know 1399 00:31:58,340 --> 00:31:59,860 if the two memory cells 1400 00:31:59,860 --> 00:32:01,180 are the same name. 1401 00:32:01,260 --> 00:32:01,580 Right? 1402 00:32:01,700 --> 00:32:02,400 We want to do analysis 1403 00:32:02,400 --> 00:32:02,680 of the same name index. 1404 00:32:03,760 --> 00:32:05,500 So in many cases, 1405 00:32:05,640 --> 00:32:06,160 we have to do 1406 00:32:06,160 --> 00:32:06,840 the hypothesis test 1407 00:32:06,840 --> 00:32:07,320 that has a very high 1408 00:32:07,320 --> 00:32:08,160 computation cost. 1409 00:32:10,060 --> 00:32:10,660 That is to say, 1410 00:32:10,740 --> 00:32:11,300 the assumption test. 1411 00:32:11,900 --> 00:32:13,680 So it takes a lot of time. 1412 00:32:13,680 --> 00:32:15,520 If I can use AI technology 1413 00:32:15,520 --> 00:32:16,800 to make a quick judgment, 1414 00:32:17,000 --> 00:32:17,560 for example, 1415 00:32:17,640 --> 00:32:18,660 I use AI technology 1416 00:32:18,660 --> 00:32:20,860 to divide the memory first. 1417 00:32:22,080 --> 00:32:22,660 For example, 1418 00:32:22,740 --> 00:32:23,820 I divide it into different 1419 00:32:24,240 --> 00:32:24,860 memory blocks. 1420 00:32:25,100 --> 00:32:26,380 Then I use AI technology 1421 00:32:26,380 --> 00:32:26,980 to predict 1422 00:32:29,740 --> 00:32:32,340 which memory block 1423 00:32:32,340 --> 00:32:33,940 belongs to which 1424 00:32:33,940 --> 00:32:34,860 specific block 1425 00:32:34,860 --> 00:32:35,080 in each command. 1426 00:32:35,240 --> 00:32:36,300 If deep learning 1427 00:32:36,300 --> 00:32:36,880 can accomplish 1428 00:32:36,880 --> 00:32:37,560 this kind of work, 1429 00:32:37,920 --> 00:32:39,240 then I can do 1430 00:32:39,240 --> 00:32:39,940 a very... 1431 00:32:39,940 --> 00:32:41,040 I don't need to 1432 00:32:41,040 --> 00:32:42,640 do the hypothesis test anymore. 1433 00:32:42,760 --> 00:32:43,120 Why? 1434 00:32:43,380 --> 00:32:44,160 Because you can see 1435 00:32:44,160 --> 00:32:46,200 if the command 1436 00:32:46,200 --> 00:32:49,420 ESP plus 0X1C 1437 00:32:49,420 --> 00:32:51,700 belongs to the first block, 1438 00:32:51,840 --> 00:32:53,160 and the second command 1439 00:32:53,160 --> 00:32:55,480 EBP plus C 1440 00:32:55,480 --> 00:32:56,960 belongs to the third block, 1441 00:32:56,980 --> 00:32:58,800 then we don't need 1442 00:32:58,800 --> 00:32:59,840 to do the hypothesis test. 1443 00:32:59,840 --> 00:33:01,040 We can easily know 1444 00:33:01,040 --> 00:33:01,900 that these two commands 1445 00:33:01,900 --> 00:33:03,060 are not the same name. 1446 00:33:03,080 --> 00:33:03,980 These two indexes 1447 00:33:04,980 --> 00:33:05,620 are not the same name. 1448 00:33:05,800 --> 00:33:06,700 Because they point 1449 00:33:06,700 --> 00:33:07,960 to different memory areas. 1450 00:33:08,920 --> 00:33:09,460 If they have 1451 00:33:09,460 --> 00:33:10,880 this kind of ability, 1452 00:33:11,060 --> 00:33:11,300 if they have 1453 00:33:11,300 --> 00:33:12,320 this kind of ability, 1454 00:33:12,560 --> 00:33:13,300 then we don't need 1455 00:33:13,300 --> 00:33:13,960 a lot of hypothesis tests. 1456 00:33:14,780 --> 00:33:15,540 So the technology 1457 00:33:15,540 --> 00:33:16,980 we take is 1458 00:33:16,980 --> 00:33:17,500 first of all, 1459 00:33:17,580 --> 00:33:18,100 we divide the memory 1460 00:33:18,100 --> 00:33:19,440 and then we use 1461 00:33:19,440 --> 00:33:20,760 a deep neural network 1462 00:33:20,760 --> 00:33:22,560 as a recurrent neural network 1463 00:33:22,560 --> 00:33:23,180 to learn 1464 00:33:23,180 --> 00:33:23,700 about this command 1465 00:33:24,180 --> 00:33:25,640 and then map it. 1466 00:33:25,820 --> 00:33:26,240 In this way, 1467 00:33:26,380 --> 00:33:26,760 we can do 1468 00:33:26,760 --> 00:33:26,960 more deep learning 1469 00:33:26,980 --> 00:33:27,640 before we execute 1470 00:33:27,640 --> 00:33:28,260 each command. 1471 00:33:28,620 --> 00:33:29,580 We can predict 1472 00:33:29,580 --> 00:33:31,080 the memory area 1473 00:33:31,080 --> 00:33:31,680 for each command. 1474 00:33:32,240 --> 00:33:33,480 With this kind of ability, 1475 00:33:33,640 --> 00:33:34,400 we don't need 1476 00:33:34,400 --> 00:33:34,800 to do 1477 00:33:34,800 --> 00:33:36,060 this kind of 1478 00:33:36,820 --> 00:33:37,260 hypothesis test anymore. 1479 00:33:37,560 --> 00:33:38,200 So here, 1480 00:33:38,360 --> 00:33:38,960 I don't want to discuss 1481 00:33:38,960 --> 00:33:39,640 more details 1482 00:33:39,640 --> 00:33:41,040 about the details of AI. 1483 00:33:41,040 --> 00:33:41,640 But I want to share 1484 00:33:41,640 --> 00:33:42,480 with you that 1485 00:33:42,480 --> 00:33:43,480 after we have 1486 00:33:43,480 --> 00:33:43,940 this tool, 1487 00:33:44,320 --> 00:33:45,020 before and after, 1488 00:33:45,240 --> 00:33:46,300 before we have 1489 00:33:46,300 --> 00:33:46,800 AI technology 1490 00:33:46,800 --> 00:33:47,180 and before we don't have 1491 00:33:47,180 --> 00:33:47,620 AI technology, 1492 00:33:47,900 --> 00:33:50,300 what kind of 1493 00:33:50,300 --> 00:33:50,700 performance 1494 00:33:50,700 --> 00:33:50,940 does it have? 1495 00:33:50,940 --> 00:33:52,160 I have a demo here. 1496 00:33:52,160 --> 00:33:53,000 I hope you can 1497 00:33:53,000 --> 00:33:53,660 play it for me. 1498 00:33:56,980 --> 00:33:57,080 OK. 1499 00:33:57,440 --> 00:33:57,920 Here it is. 1500 00:33:58,000 --> 00:33:58,740 On that screen 1501 00:33:58,740 --> 00:33:59,520 and on this screen. 1502 00:34:00,360 --> 00:34:01,100 You can see 1503 00:34:01,100 --> 00:34:02,980 there are two screens. 1504 00:34:03,940 --> 00:34:04,480 One on the left 1505 00:34:04,480 --> 00:34:05,540 and one on the right. 1506 00:34:06,820 --> 00:34:07,620 You can see 1507 00:34:07,620 --> 00:34:09,180 that the program 1508 00:34:09,180 --> 00:34:09,380 on the left 1509 00:34:09,380 --> 00:34:09,940 is running continuously. 1510 00:34:09,940 --> 00:34:10,100 In fact, 1511 00:34:10,140 --> 00:34:10,700 it is doing 1512 00:34:11,640 --> 00:34:12,360 reverse execution. 1513 00:34:12,700 --> 00:34:13,300 On the right, 1514 00:34:13,420 --> 00:34:14,020 it is also 1515 00:34:14,020 --> 00:34:15,340 doing reverse execution. 1516 00:34:15,440 --> 00:34:15,980 On the right window, 1517 00:34:16,740 --> 00:34:17,700 there is AI technology 1518 00:34:17,700 --> 00:34:18,640 to help. 1519 00:34:19,180 --> 00:34:19,520 On the left, 1520 00:34:19,600 --> 00:34:20,260 there is no AI technology. 1521 00:34:20,320 --> 00:34:20,600 You can see 1522 00:34:20,600 --> 00:34:21,040 the right window 1523 00:34:21,040 --> 00:34:21,380 is over. 1524 00:34:21,840 --> 00:34:22,560 The reverse execution 1525 00:34:22,560 --> 00:34:22,860 is over. 1526 00:34:23,040 --> 00:34:23,520 But the left window 1527 00:34:23,520 --> 00:34:24,400 is still running. 1528 00:34:26,980 --> 00:34:27,200 The reverse execution 1529 00:34:27,480 --> 00:34:28,300 The total time 1530 00:34:28,300 --> 00:34:28,600 it takes 1531 00:34:28,600 --> 00:34:29,880 should be 1532 00:34:29,880 --> 00:34:30,880 40 seconds, 1533 00:34:31,020 --> 00:34:31,840 or more than 30 seconds. 1534 00:34:31,860 --> 00:34:32,320 The time on the right 1535 00:34:32,320 --> 00:34:33,260 is 17 seconds. 1536 00:34:33,300 --> 00:34:33,700 You can see 1537 00:34:33,700 --> 00:34:34,840 that with AI technology, 1538 00:34:35,100 --> 00:34:36,300 our entire program 1539 00:34:36,300 --> 00:34:38,860 is not needed 1540 00:34:38,860 --> 00:34:39,580 for a long time 1541 00:34:39,580 --> 00:34:39,800 when we are 1542 00:34:39,800 --> 00:34:42,300 We can find 1543 00:34:42,300 --> 00:34:43,080 the specific 1544 00:34:43,920 --> 00:34:44,820 root cause 1545 00:34:44,820 --> 00:34:45,140 in a short period 1546 00:34:45,200 --> 00:34:46,260 This tool 1547 00:34:46,260 --> 00:34:47,640 should have been 1548 00:34:47,640 --> 00:34:48,180 released. 1549 00:34:48,300 --> 00:34:49,540 You can search 1550 00:34:49,540 --> 00:34:50,040 for this name 1551 00:34:50,040 --> 00:34:50,260 in GitHub. 1552 00:34:50,260 --> 00:34:50,340 You can find it 1553 00:34:50,340 --> 00:34:50,700 in DPVSE. 1554 00:34:56,980 --> 00:34:57,900 There are a lot of bugs. 1555 00:34:58,040 --> 00:34:59,400 If you are interested, 1556 00:34:59,700 --> 00:34:59,920 we hope 1557 00:34:59,920 --> 00:35:00,240 you can help us 1558 00:35:00,240 --> 00:35:01,260 to maintain this code. 1559 00:35:02,020 --> 00:35:02,540 Currently, 1560 00:35:02,920 --> 00:35:03,500 we are still 1561 00:35:03,500 --> 00:35:04,640 doing internal testing. 1562 00:35:04,840 --> 00:35:05,200 We hope 1563 00:35:05,200 --> 00:35:06,120 this tool 1564 00:35:06,120 --> 00:35:07,000 can help us 1565 00:35:07,000 --> 00:35:10,700 to save as much time 1566 00:35:10,700 --> 00:35:10,820 as possible 1567 00:35:11,820 --> 00:35:12,340 OK. 1568 00:35:12,420 --> 00:35:12,580 Finally, 1569 00:35:12,720 --> 00:35:13,160 I will summarize 1570 00:35:13,160 --> 00:35:15,220 our speech. 1571 00:35:15,600 --> 00:35:16,820 I believe 1572 00:35:16,820 --> 00:35:17,080 everyone 1573 00:35:17,080 --> 00:35:18,200 should have 1574 00:35:18,200 --> 00:35:19,280 received this information 1575 00:35:19,280 --> 00:35:19,400 through this speech. 1576 00:35:20,160 --> 00:35:22,360 If you want 1577 00:35:22,360 --> 00:35:22,740 to restore 1578 00:35:22,740 --> 00:35:24,000 every command 1579 00:35:24,000 --> 00:35:24,300 in the memory, 1580 00:35:24,300 --> 00:35:24,660 it is actually 1581 00:35:24,660 --> 00:35:25,640 a very difficult thing. 1582 00:35:26,060 --> 00:35:26,540 However, 1583 00:35:26,640 --> 00:35:26,980 it is very helpful 1584 00:35:26,980 --> 00:35:27,900 for memory detection 1585 00:35:27,900 --> 00:35:28,620 and debug. 1586 00:35:29,640 --> 00:35:30,880 And reverse execution 1587 00:35:30,880 --> 00:35:31,420 can really 1588 00:35:31,420 --> 00:35:32,220 help us 1589 00:35:32,220 --> 00:35:33,920 to find 1590 00:35:33,920 --> 00:35:34,640 the basic cause 1591 00:35:34,640 --> 00:35:35,380 of a software failure. 1592 00:35:37,360 --> 00:35:38,580 And using AI technology 1593 00:35:38,580 --> 00:35:39,020 including 1594 00:35:39,020 --> 00:35:39,980 the technology 1595 00:35:39,980 --> 00:35:40,440 of program analysis 1596 00:35:40,440 --> 00:35:41,280 is very helpful 1597 00:35:41,280 --> 00:35:42,120 for reverse execution. 1598 00:35:42,840 --> 00:35:44,240 And in the future, 1599 00:35:44,620 --> 00:35:45,620 tools like this 1600 00:35:45,620 --> 00:35:46,480 may help 1601 00:35:47,320 --> 00:35:48,040 programmers 1602 00:35:48,040 --> 00:35:48,940 to find 1603 00:35:48,940 --> 00:35:50,800 the basic cause 1604 00:35:50,800 --> 00:35:50,920 of program failure 1605 00:35:51,600 --> 00:35:52,320 OK. 1606 00:35:52,420 --> 00:35:53,020 Thank you very much. 1607 00:35:53,260 --> 00:35:53,500 So, 1608 00:35:54,660 --> 00:35:55,120 I just talked about 1609 00:35:55,120 --> 00:35:55,540 two systems. 1610 00:35:55,680 --> 00:35:55,780 So, 1611 00:35:55,820 --> 00:35:56,520 the code of the first system 1612 00:35:56,520 --> 00:35:57,520 can be downloaded 1613 00:35:57,520 --> 00:35:57,920 through this place. 1614 00:35:58,320 --> 00:35:59,100 And the code of the second system 1615 00:35:59,100 --> 00:36:00,620 should be searched 1616 00:36:00,620 --> 00:36:01,860 on GitHub first. 1617 00:36:01,900 --> 00:36:02,420 It should be 1618 00:36:02,420 --> 00:36:03,660 downloaded first. 1619 00:36:03,700 --> 00:36:04,060 OK. 1620 00:36:04,160 --> 00:36:04,760 Thank you very much. 1621 00:36:04,900 --> 00:36:05,240 Thank you. 1622 00:36:05,500 --> 00:36:06,200 If you have any questions, 1623 00:36:06,280 --> 00:36:07,660 you can continue to discuss. 1624 00:36:07,780 --> 00:36:08,120 Thank you. 1625 00:36:24,680 --> 00:36:25,000 there is a question. 1626 00:36:25,160 --> 00:36:25,480 OK. 1627 00:36:32,200 --> 00:36:32,720 Hello. 1628 00:36:38,140 --> 00:36:38,660 Actually, 1629 00:36:39,480 --> 00:36:40,480 what you said just now 1630 00:36:40,480 --> 00:36:40,620 is that 1631 00:36:40,620 --> 00:36:42,240 when improving efficiency 1632 00:36:42,240 --> 00:36:44,140 is added machine learning. 1633 00:36:44,320 --> 00:36:44,640 So, 1634 00:36:44,740 --> 00:36:44,840 the accuracy 1635 00:36:44,840 --> 00:36:47,680 before and after 1636 00:36:47,680 --> 00:36:49,900 have you measured? 1637 00:36:50,160 --> 00:36:50,300 That is, 1638 00:36:50,380 --> 00:36:50,480 has the accuracy 1639 00:36:50,480 --> 00:36:51,100 after adding machine learning 1640 00:36:51,920 --> 00:36:52,440 decreased? 1641 00:36:54,000 --> 00:36:54,400 Oh, 1642 00:36:54,520 --> 00:36:54,880 the accuracy, 1643 00:36:55,080 --> 00:36:55,260 right? 1644 00:36:55,380 --> 00:36:55,740 Yes. 1645 00:36:56,420 --> 00:36:57,620 The depth of the neural network 1646 00:36:57,620 --> 00:36:58,060 is indeed 1647 00:36:58,060 --> 00:36:58,660 a problem of accuracy. 1648 00:36:59,080 --> 00:36:59,700 Because when you do 1649 00:36:59,700 --> 00:37:00,820 memory area judgment, 1650 00:37:01,640 --> 00:37:02,420 if you have 1651 00:37:02,420 --> 00:37:03,100 1% error, 1652 00:37:04,040 --> 00:37:04,440 you may 1653 00:37:04,860 --> 00:37:05,260 propagate 1654 00:37:05,260 --> 00:37:06,280 this error. 1655 00:37:06,800 --> 00:37:07,040 That is, 1656 00:37:07,040 --> 00:37:07,540 spread it out. 1657 00:37:08,600 --> 00:37:09,460 At that time, 1658 00:37:09,460 --> 00:37:09,660 we adjusted 1659 00:37:09,660 --> 00:37:10,140 the neural network 1660 00:37:10,140 --> 00:37:12,600 to the test data level. 1661 00:37:12,640 --> 00:37:13,080 It can be adjusted 1662 00:37:13,080 --> 00:37:14,100 to 99% or more. 1663 00:37:14,340 --> 00:37:15,200 We ran it. 1664 00:37:15,300 --> 00:37:15,600 Indeed, 1665 00:37:16,120 --> 00:37:16,760 to be honest, 1666 00:37:16,900 --> 00:37:17,560 there is a problem. 1667 00:37:18,600 --> 00:37:19,000 But 1668 00:37:19,000 --> 00:37:19,900 the situation 1669 00:37:19,900 --> 00:37:20,480 is very rare. 1670 00:37:20,700 --> 00:37:20,940 Because, 1671 00:37:22,460 --> 00:37:23,160 most of the situations 1672 00:37:24,480 --> 00:37:25,440 are not transparent. 1673 00:37:25,800 --> 00:37:26,160 So, 1674 00:37:26,220 --> 00:37:26,820 even when 1675 00:37:26,820 --> 00:37:27,520 this error is judged, 1676 00:37:28,060 --> 00:37:28,620 it will not 1677 00:37:28,620 --> 00:37:29,300 really spread. 1678 00:37:29,500 --> 00:37:29,660 So, 1679 00:37:29,700 --> 00:37:30,960 in a real environment, 1680 00:37:31,280 --> 00:37:32,460 although we will make mistakes, 1681 00:37:32,680 --> 00:37:33,320 in fact, 1682 00:37:33,360 --> 00:37:34,900 there is not much impact 1683 00:37:34,900 --> 00:37:35,020 on analysis. 1684 00:37:35,920 --> 00:37:36,420 OK. 1685 00:37:36,560 --> 00:37:36,880 OK. 1686 00:37:37,220 --> 00:37:37,360 Then, 1687 00:37:38,160 --> 00:37:38,660 another 1688 00:37:39,600 --> 00:37:40,600 small question 1689 00:37:40,600 --> 00:37:41,100 is that 1690 00:37:41,100 --> 00:37:41,480 this 1691 00:37:43,420 --> 00:37:44,420 training model 1692 00:37:44,420 --> 00:37:45,040 of machine learning 1693 00:37:45,940 --> 00:37:46,600 referring to 1694 00:37:46,600 --> 00:37:47,260 using 1695 00:37:47,260 --> 00:37:47,300 one, 1696 00:37:48,040 --> 00:37:48,660 for example, 1697 00:37:48,740 --> 00:37:49,520 many CRUSH 1698 00:37:49,520 --> 00:37:51,040 or many normal 1699 00:37:52,520 --> 00:37:53,400 training models. 1700 00:37:54,060 --> 00:37:54,500 Is it 1701 00:37:54,500 --> 00:37:54,620 a unified 1702 00:37:55,080 --> 00:37:55,520 and 1703 00:37:55,520 --> 00:37:56,640 more universal 1704 00:37:56,640 --> 00:37:57,160 model? 1705 00:37:57,580 --> 00:37:58,020 Or, 1706 00:37:58,200 --> 00:38:00,480 for each program, 1707 00:38:00,700 --> 00:38:01,280 we have to train 1708 00:38:01,280 --> 00:38:02,000 a model separately? 1709 00:38:02,480 --> 00:38:03,680 What we are doing now 1710 00:38:03,680 --> 00:38:03,800 is 1711 00:38:04,960 --> 00:38:05,560 the training 1712 00:38:05,560 --> 00:38:06,060 for offline training. 1713 00:38:06,360 --> 00:38:07,280 For machine learning, 1714 00:38:07,560 --> 00:38:07,960 this model 1715 00:38:07,960 --> 00:38:08,680 is offline training. 1716 00:38:08,920 --> 00:38:09,520 We have used 1717 00:38:09,520 --> 00:38:10,240 more than 1718 00:38:10,240 --> 00:38:12,040 1,000 programs. 1719 00:38:12,420 --> 00:38:12,940 Of course, 1720 00:38:12,980 --> 00:38:14,600 there are many 1721 00:38:15,060 --> 00:38:15,500 instructions. 1722 00:38:15,980 --> 00:38:16,420 But 1723 00:38:16,420 --> 00:38:17,200 I don't remember 1724 00:38:17,200 --> 00:38:17,680 the exact number. 1725 00:38:17,740 --> 00:38:18,200 So, I can't give 1726 00:38:18,200 --> 00:38:18,900 the exact number. 1727 00:38:18,980 --> 00:38:19,160 But, 1728 00:38:19,160 --> 00:38:19,560 it must be 1729 00:38:19,560 --> 00:38:19,940 one instruction. 1730 00:38:20,660 --> 00:38:21,640 Do offline learning 1731 00:38:21,640 --> 00:38:22,280 and then 1732 00:38:23,280 --> 00:38:23,760 deploy. 1733 00:38:24,040 --> 00:38:24,420 But, 1734 00:38:24,480 --> 00:38:25,240 we did consider 1735 00:38:25,240 --> 00:38:25,840 in the future, 1736 00:38:26,160 --> 00:38:26,700 for example, 1737 00:38:26,840 --> 00:38:28,280 through reinforcement learning, 1738 00:38:28,480 --> 00:38:29,480 to enhance learning methods 1739 00:38:29,480 --> 00:38:30,400 to improve 1740 00:38:30,400 --> 00:38:30,880 this kind of 1741 00:38:30,880 --> 00:38:31,740 computing ability 1742 00:38:31,740 --> 00:38:32,520 and make my model 1743 00:38:32,520 --> 00:38:33,160 more accurate. 1744 00:38:33,280 --> 00:38:35,020 In the online process, 1745 00:38:35,280 --> 00:38:35,740 we can continue 1746 00:38:35,740 --> 00:38:37,100 to train this model 1747 00:38:37,100 --> 00:38:37,660 to make it better. 1748 00:38:37,920 --> 00:38:38,320 This is possible. 1749 00:38:38,700 --> 00:38:38,880 But, 1750 00:38:38,900 --> 00:38:39,100 now, 1751 00:38:39,120 --> 00:38:39,720 it is offline model. 1752 00:38:40,300 --> 00:38:40,780 So, 1753 00:38:40,900 --> 00:38:41,860 the same model 1754 00:38:41,860 --> 00:38:42,500 is used in 1755 00:38:42,500 --> 00:38:43,500 various programs. 1756 00:38:43,740 --> 00:38:45,360 Many different programs 1757 00:38:45,360 --> 00:38:46,680 are used in 1758 00:38:46,680 --> 00:38:47,160 the same model. 1759 00:38:48,120 --> 00:38:49,360 Sorry, 1760 00:38:49,360 --> 00:38:50,600 I didn't hear you. 1761 00:38:50,880 --> 00:38:52,000 Is it 1762 00:38:52,000 --> 00:38:53,180 different types 1763 00:38:53,180 --> 00:38:53,800 or 1764 00:38:53,800 --> 00:38:54,840 different programs 1765 00:38:55,300 --> 00:38:56,920 are used 1766 00:38:56,920 --> 00:38:57,840 in 1767 00:38:57,840 --> 00:38:59,480 the same 1768 00:38:59,480 --> 00:39:01,020 model 1769 00:39:01,020 --> 00:39:02,380 machine learning 1770 00:39:02,380 --> 00:39:03,220 program? 1771 00:39:04,580 --> 00:39:05,820 Yes. 1772 00:39:06,360 --> 00:39:07,280 At the moment, 1773 00:39:07,820 --> 00:39:08,820 the data 1774 00:39:08,820 --> 00:39:09,960 used in 1775 00:39:09,960 --> 00:39:11,040 the training model 1776 00:39:11,040 --> 00:39:12,360 is completely 1777 00:39:12,360 --> 00:39:12,500 from the program 1778 00:39:12,500 --> 00:39:12,920 in the final test. 1779 00:39:14,520 --> 00:39:15,340 So, 1780 00:39:15,340 --> 00:39:15,840 the data used in 1781 00:39:16,560 --> 00:39:17,680 in the process 1782 00:39:17,680 --> 00:39:19,960 of running the program, 1783 00:39:20,060 --> 00:39:21,300 there is such a situation. 1784 00:39:21,820 --> 00:39:23,000 You can't guarantee 1785 00:39:23,000 --> 00:39:25,080 that there is no data 1786 00:39:25,080 --> 00:39:26,500 in your training data 1787 00:39:26,500 --> 00:39:26,760 and the commands 1788 00:39:26,760 --> 00:39:27,960 in your final test data 1789 00:39:27,960 --> 00:39:29,260 do not match. 1790 00:39:29,540 --> 00:39:30,620 This cannot be guaranteed 1791 00:39:30,620 --> 00:39:30,860 because 1792 00:39:30,860 --> 00:39:31,660 every program 1793 00:39:31,660 --> 00:39:32,080 will have 1794 00:39:32,080 --> 00:39:32,420 this kind of 1795 00:39:32,420 --> 00:39:32,940 library call. 1796 00:39:33,100 --> 00:39:33,860 When there is this kind of 1797 00:39:33,860 --> 00:39:34,240 library call, 1798 00:39:34,620 --> 00:39:35,620 all command series 1799 00:39:35,620 --> 00:39:36,200 are the same. 1800 00:39:36,780 --> 00:39:37,300 But, 1801 00:39:37,400 --> 00:39:37,660 overall, 1802 00:39:37,660 --> 00:39:38,520 there is a big 1803 00:39:38,520 --> 00:39:39,560 difference. 1804 00:39:40,280 --> 00:39:40,880 OK. 1805 00:39:41,000 --> 00:39:41,220 OK. 1806 00:39:41,520 --> 00:39:42,120 OK. 1807 00:39:42,200 --> 00:39:42,480 OK. 1808 00:39:42,580 --> 00:39:42,820 Thank you. 1809 00:39:42,920 --> 00:39:43,360 OK. 1810 00:39:44,500 --> 00:39:45,420 Any other questions? 1811 00:39:45,900 --> 00:39:46,400 Yes. 1812 00:39:46,660 --> 00:39:47,260 Yes. 1813 00:39:47,400 --> 00:39:48,580 Another question is 1814 00:39:48,580 --> 00:39:49,080 that 1815 00:39:49,080 --> 00:39:51,260 when you do this, 1816 00:39:51,620 --> 00:39:51,920 actually, 1817 00:39:52,040 --> 00:39:52,600 you are assuming 1818 00:39:52,600 --> 00:39:52,940 that 1819 00:39:52,940 --> 00:39:54,640 it exists 1820 00:39:54,640 --> 00:39:55,600 in 1821 00:39:55,600 --> 00:39:56,260 one-to-one 1822 00:39:56,260 --> 00:39:56,580 mapping 1823 00:39:56,580 --> 00:39:57,540 when it exists 1824 00:39:57,540 --> 00:39:57,620 in 1825 00:39:57,620 --> 00:39:58,080 one-to-one 1826 00:39:58,080 --> 00:39:58,500 mapping. 1827 00:39:59,120 --> 00:39:59,720 So, 1828 00:39:59,840 --> 00:40:01,480 it can be reversed. 1829 00:40:01,480 --> 00:40:01,600 Is it the 1830 00:40:01,600 --> 00:40:02,700 and command 1831 00:40:07,660 --> 00:40:08,240 to do 1832 00:40:09,360 --> 00:40:10,600 a reverse 1833 00:40:10,600 --> 00:40:11,000 tracing, 1834 00:40:11,500 --> 00:40:11,960 right? 1835 00:40:12,100 --> 00:40:12,620 But, 1836 00:40:12,720 --> 00:40:13,040 actually, 1837 00:40:13,180 --> 00:40:13,660 you can imagine 1838 00:40:13,660 --> 00:40:13,720 the entire 1839 00:40:15,340 --> 00:40:15,960 execution 1840 00:40:16,550 --> 00:40:16,860 flow 1841 00:40:16,860 --> 00:40:18,020 as a function, 1842 00:40:18,260 --> 00:40:19,260 as a 1843 00:40:19,260 --> 00:40:19,840 flow, 1844 00:40:19,960 --> 00:40:20,640 an input 1845 00:40:20,640 --> 00:40:21,320 and output. 1846 00:40:21,580 --> 00:40:21,960 And, 1847 00:40:22,100 --> 00:40:22,740 actually, 1848 00:40:22,960 --> 00:40:23,700 I mean, 1849 00:40:24,100 --> 00:40:24,860 you are assuming 1850 00:40:24,860 --> 00:40:25,620 that 1851 00:40:25,620 --> 00:40:28,000 if this function 1852 00:40:28,000 --> 00:40:28,420 is valid, 1853 00:40:28,620 --> 00:40:29,000 if the entire 1854 00:40:29,000 --> 00:40:29,620 flow is valid, 1855 00:40:29,840 --> 00:40:31,020 then it must be 1856 00:40:31,020 --> 00:40:31,980 a one-to-one 1857 00:40:31,980 --> 00:40:32,580 mapping. 1858 00:40:33,860 --> 00:40:34,640 It is 1859 00:40:34,640 --> 00:40:35,300 one-to-one 1860 00:40:35,300 --> 00:40:35,660 mapping. 1861 00:40:37,000 --> 00:40:37,780 You mean 1862 00:40:37,780 --> 00:40:39,260 the one-to-one 1863 00:40:41,260 --> 00:40:41,780 No. 1864 00:40:42,080 --> 00:40:42,600 I mean 1865 00:40:42,600 --> 00:40:43,560 I am talking about 1866 00:40:43,560 --> 00:40:44,300 a more 1867 00:40:44,300 --> 00:40:45,140 meta-level, 1868 00:40:45,300 --> 00:40:46,300 a more abstract 1869 00:40:46,880 --> 00:40:47,160 level. 1870 00:40:47,740 --> 00:40:48,300 I am explaining 1871 00:40:48,300 --> 00:40:48,640 from a mathematical 1872 00:40:48,640 --> 00:40:49,000 perspective. 1873 00:40:50,260 --> 00:40:51,000 That is to say, 1874 00:40:51,060 --> 00:40:52,480 the entire 1875 00:40:52,480 --> 00:40:53,040 formula 1876 00:40:53,040 --> 00:40:54,460 is a one-to-one 1877 00:40:54,460 --> 00:40:54,880 mapping. 1878 00:40:56,580 --> 00:40:57,620 I may not 1879 00:40:57,620 --> 00:40:57,880 understand 1880 00:40:57,880 --> 00:40:58,260 it too well. 1881 00:40:58,420 --> 00:40:59,080 The sound 1882 00:40:59,080 --> 00:40:59,500 is not good, 1883 00:40:59,740 --> 00:41:00,560 so I can't hear it well. 1884 00:41:00,620 --> 00:41:01,140 Never mind. 1885 00:41:01,300 --> 00:41:01,640 We can 1886 00:41:02,720 --> 00:41:03,680 talk about it 1887 00:41:07,700 --> 00:41:08,220 later. 1888 00:41:08,620 --> 00:41:08,680 Sorry. 1889 00:41:09,420 --> 00:41:10,400 Have you ever 1890 00:41:10,400 --> 00:41:11,400 parallelized 1891 00:41:11,400 --> 00:41:12,040 the whole 1892 00:41:12,040 --> 00:41:12,540 the entire 1893 00:41:12,540 --> 00:41:12,980 process? 1894 00:41:13,240 --> 00:41:14,080 Because I see 1895 00:41:14,080 --> 00:41:14,420 that, 1896 00:41:14,420 --> 00:41:14,700 I mean, 1897 00:41:14,700 --> 00:41:15,520 it's a binary tree, 1898 00:41:15,700 --> 00:41:16,220 basically. 1899 00:41:17,280 --> 00:41:17,940 I still 1900 00:41:17,940 --> 00:41:18,440 don't understand 1901 00:41:18,440 --> 00:41:18,640 it. 1902 00:41:20,260 --> 00:41:21,300 I can 1903 00:41:21,300 --> 00:41:21,720 get closer 1904 00:41:21,720 --> 00:41:22,000 to you. 1905 00:41:22,000 --> 00:41:22,520 I can 1906 00:41:23,220 --> 00:41:24,080 hear you. 1907 00:41:24,120 --> 00:41:24,420 You say 1908 00:41:24,420 --> 00:41:24,780 that 1909 00:41:24,780 --> 00:41:26,920 it is 1910 00:41:26,920 --> 00:41:27,020 actually 1911 00:41:27,020 --> 00:41:30,080 a binary tree, 1912 00:41:30,340 --> 00:41:30,460 right? 1913 00:41:30,640 --> 00:41:30,820 Yes. 1914 00:41:30,820 --> 00:41:31,520 It is a two-dimensional 1915 00:41:31,520 --> 00:41:31,820 tree. 1916 00:41:31,820 --> 00:41:33,100 I just want to say that 1917 00:41:33,100 --> 00:41:35,020 because of the division 1918 00:41:35,020 --> 00:41:35,580 of each tree, 1919 00:41:35,840 --> 00:41:36,300 you are actually 1920 00:41:36,300 --> 00:41:37,220 doing a depth search, 1921 00:41:37,220 --> 00:41:38,220 which is a search 1922 00:41:38,880 --> 00:41:39,320 with a priority 1923 00:41:39,320 --> 00:41:39,420 Yes. 1924 00:41:39,720 --> 00:41:40,160 It's convenient. 1925 00:41:40,580 --> 00:41:41,180 And then, 1926 00:41:41,200 --> 00:41:41,600 in fact, 1927 00:41:41,660 --> 00:41:43,240 each convenient track 1928 00:41:44,240 --> 00:41:45,920 is very independent. 1929 00:41:46,240 --> 00:41:46,600 Yes. 1930 00:41:46,680 --> 00:41:47,180 Under this independent 1931 00:41:47,180 --> 00:41:47,420 situation, 1932 00:41:47,800 --> 00:41:49,220 I think it can be 1933 00:41:49,220 --> 00:41:49,760 parallelized. 1934 00:41:49,800 --> 00:41:50,640 Have you ever 1935 00:41:50,640 --> 00:41:52,500 tried to parallelize it? 1936 00:41:52,620 --> 00:41:52,740 Yes. 1937 00:41:52,880 --> 00:41:53,140 I understand. 1938 00:41:53,540 --> 00:41:55,020 Because if 1939 00:41:55,020 --> 00:41:56,620 the data center 1940 00:41:56,620 --> 00:41:56,960 is too big, 1941 00:41:57,200 --> 00:41:57,700 you can do it 1942 00:41:57,700 --> 00:41:58,080 very quickly. 1943 00:41:58,120 --> 00:41:59,760 We are doing 1944 00:41:59,760 --> 00:42:01,660 that test. 1945 00:42:02,540 --> 00:42:02,740 That is, 1946 00:42:02,800 --> 00:42:02,980 when we do 1947 00:42:02,980 --> 00:42:04,220 the assumption test, 1948 00:42:04,780 --> 00:42:05,480 we really 1949 00:42:06,020 --> 00:42:06,860 put it 1950 00:42:06,860 --> 00:42:07,360 because 1951 00:42:07,360 --> 00:42:08,140 you have more 1952 00:42:08,140 --> 00:42:08,280 indicators, 1953 00:42:08,820 --> 00:42:09,200 more transparent indicators, 1954 00:42:09,480 --> 00:42:10,460 then your tree is deeper. 1955 00:42:10,760 --> 00:42:11,540 And then, in fact, 1956 00:42:11,560 --> 00:42:12,460 it can be parallelized 1957 00:42:12,460 --> 00:42:12,760 and it is the same as 1958 00:42:12,760 --> 00:42:13,400 the function execution. 1959 00:42:13,660 --> 00:42:14,180 The function execution 1960 00:42:14,180 --> 00:42:14,780 can be parallelized. 1961 00:42:14,780 --> 00:42:16,040 This step can be parallelized, 1962 00:42:16,040 --> 00:42:17,620 but the cost 1963 00:42:17,620 --> 00:42:18,360 is also very high. 1964 00:42:18,800 --> 00:42:19,380 Of course, 1965 00:42:19,380 --> 00:42:20,440 if you have enough machines, 1966 00:42:20,720 --> 00:42:21,220 you will be 1967 00:42:21,220 --> 00:42:21,660 much faster. 1968 00:42:21,840 --> 00:42:23,200 But in the laboratory environment, 1969 00:42:23,460 --> 00:42:24,240 we have not yet 1970 00:42:24,240 --> 00:42:25,000 done this work, 1971 00:42:25,280 --> 00:42:25,960 but it is feasible. 1972 00:42:29,760 --> 00:42:29,980 Thank you. 1973 00:42:30,380 --> 00:42:31,120 Is there anything else? 1974 00:42:32,700 --> 00:42:33,060 Okay, 1975 00:42:33,140 --> 00:42:33,800 if there is a question, 1976 00:42:33,920 --> 00:42:34,800 we can discuss it 1977 00:42:35,640 --> 00:42:36,000 offline. 1978 00:42:36,460 --> 00:42:36,980 Thank you very much. 1979 00:42:37,520 --> 00:42:37,880 Thank you,