Lecture 14 Page 1 CS 236 Online
Race Conditions
- A common cause of security bugs
- Usually involve multiprogramming or
multithreaded programs
- Caused by different threads of control
- perating in unpredictable fashion
Race Conditions A common cause of security bugs Usually involve - - PowerPoint PPT Presentation
Race Conditions A common cause of security bugs Usually involve multiprogramming or multithreaded programs Caused by different threads of control operating in unpredictable fashion When programmer thought theyd work in a
Lecture 14 Page 1 CS 236 Online
Lecture 14 Page 2 CS 236 Online
Lecture 14 Page 3 CS 236 Online
Lecture 14 Page 4 CS 236 Online
Lecture 14 Page 5 CS 236 Online
Lecture 14 Page 6 CS 236 Online
Lecture 14 Page 7 CS 236 Online
Lecture 14 Page 8 CS 236 Online
Lecture 14 Page 9 CS 236 Online
Lecture 14 Page 10 CS 236 Online
Lecture 14 Page 11 CS 236 Online
res = access(“/tmp/userfile”, R_OK); if (res != 0) die(“access”); fd = open(“/tmp/userfile”,O_RDONLY);
1. Run program 2. Change file
Lecture 14 Page 12 CS 236 Online
Lecture 14 Page 13 CS 236 Online
Lecture 14 Page 14 CS 236 Online
Lecture 14 Page 15 CS 236 Online
Lecture 14 Page 16 CS 236 Online
Lecture 14 Page 17 CS 236 Online
Lecture 14 Page 18 CS 236 Online
Lecture 14 Page 19 CS 236 Online
Lecture 14 Page 20 CS 236 Online
Lecture 14 Page 21 CS 236 Online