WEBVTT
Kind: captions
Language: en

00:00:00.919 --> 00:00:02.510 align:start position:0%
 
use<00:00:01.160><c> after</c><00:00:01.400><c> frees</c><00:00:01.680><c> are</c><00:00:01.800><c> a</c><00:00:01.920><c> common</c><00:00:02.240><c> type</c><00:00:02.399><c> of</c>

00:00:02.510 --> 00:00:02.520 align:start position:0%
use after frees are a common type of
 

00:00:02.520 --> 00:00:03.949 align:start position:0%
use after frees are a common type of
vulnerability<00:00:03.040><c> category</c><00:00:03.480><c> found</c><00:00:03.760><c> and</c>

00:00:03.949 --> 00:00:03.959 align:start position:0%
vulnerability category found and
 

00:00:03.959 --> 00:00:06.309 align:start position:0%
vulnerability category found and
exploited<00:00:04.480><c> in</c><00:00:04.680><c> modern</c><00:00:05.040><c> operating</c><00:00:05.440><c> systems</c>

00:00:06.309 --> 00:00:06.319 align:start position:0%
exploited in modern operating systems
 

00:00:06.319 --> 00:00:08.350 align:start position:0%
exploited in modern operating systems
the<00:00:06.480><c> general</c><00:00:06.839><c> idea</c><00:00:07.120><c> of</c><00:00:07.240><c> use</c><00:00:07.439><c> off</c><00:00:07.680><c> free</c><00:00:08.040><c> is</c><00:00:08.200><c> that</c>

00:00:08.350 --> 00:00:08.360 align:start position:0%
the general idea of use off free is that
 

00:00:08.360 --> 00:00:10.509 align:start position:0%
the general idea of use off free is that
some<00:00:08.599><c> object</c><00:00:08.920><c> is</c><00:00:09.040><c> allocated</c><00:00:09.519><c> in</c><00:00:09.679><c> memory</c><00:00:10.400><c> and</c>

00:00:10.509 --> 00:00:10.519 align:start position:0%
some object is allocated in memory and
 

00:00:10.519 --> 00:00:12.310 align:start position:0%
some object is allocated in memory and
then<00:00:10.639><c> the</c><00:00:10.840><c> object</c><00:00:11.160><c> is</c><00:00:11.320><c> subsequently</c><00:00:11.840><c> freed</c>

00:00:12.310 --> 00:00:12.320 align:start position:0%
then the object is subsequently freed
 

00:00:12.320 --> 00:00:14.030 align:start position:0%
then the object is subsequently freed
back<00:00:12.440><c> to</c><00:00:12.599><c> the</c><00:00:12.679><c> allocator</c><00:00:13.320><c> once</c><00:00:13.519><c> the</c><00:00:13.679><c> program</c>

00:00:14.030 --> 00:00:14.040 align:start position:0%
back to the allocator once the program
 

00:00:14.040 --> 00:00:16.109 align:start position:0%
back to the allocator once the program
has<00:00:14.160><c> finished</c><00:00:14.440><c> using</c><00:00:14.719><c> it</c><00:00:15.559><c> however</c><00:00:16.000><c> an</c>

00:00:16.109 --> 00:00:16.119 align:start position:0%
has finished using it however an
 

00:00:16.119 --> 00:00:17.830 align:start position:0%
has finished using it however an
attacker<00:00:16.480><c> can</c><00:00:16.640><c> come</c><00:00:16.800><c> in</c><00:00:17.080><c> and</c><00:00:17.359><c> cause</c><00:00:17.640><c> the</c>

00:00:17.830 --> 00:00:17.840 align:start position:0%
attacker can come in and cause the
 

00:00:17.840 --> 00:00:20.550 align:start position:0%
attacker can come in and cause the
program<00:00:18.199><c> to</c><00:00:18.600><c> mistakenly</c><00:00:19.600><c> use</c><00:00:20.000><c> the</c><00:00:20.119><c> freed</c>

00:00:20.550 --> 00:00:20.560 align:start position:0%
program to mistakenly use the freed
 

00:00:20.560 --> 00:00:23.029 align:start position:0%
program to mistakenly use the freed
object<00:00:21.320><c> after</c><00:00:21.800><c> it</c><00:00:21.960><c> has</c><00:00:22.080><c> been</c><00:00:22.199><c> freed</c><00:00:22.840><c> if</c>

00:00:23.029 --> 00:00:23.039 align:start position:0%
object after it has been freed if
 

00:00:23.039 --> 00:00:25.589 align:start position:0%
object after it has been freed if
between<00:00:23.519><c> the</c><00:00:23.640><c> free</c><00:00:24.080><c> and</c><00:00:24.240><c> the</c><00:00:24.359><c> use</c><00:00:25.080><c> the</c><00:00:25.279><c> object</c>

00:00:25.589 --> 00:00:25.599 align:start position:0%
between the free and the use the object
 

00:00:25.599 --> 00:00:27.750 align:start position:0%
between the free and the use the object
was<00:00:25.800><c> reallocated</c><00:00:26.480><c> by</c><00:00:26.599><c> an</c><00:00:26.760><c> attacker</c><00:00:27.400><c> it</c><00:00:27.519><c> is</c>

00:00:27.750 --> 00:00:27.760 align:start position:0%
was reallocated by an attacker it is
 

00:00:27.760 --> 00:00:29.189 align:start position:0%
was reallocated by an attacker it is
possible<00:00:28.080><c> for</c><00:00:28.400><c> control</c><00:00:28.720><c> flow</c><00:00:29.000><c> to</c><00:00:29.080><c> be</c>

00:00:29.189 --> 00:00:29.199 align:start position:0%
possible for control flow to be
 

00:00:29.199 --> 00:00:30.830 align:start position:0%
possible for control flow to be
subverted<00:00:29.640><c> or</c><00:00:30.000><c> other</c><00:00:30.279><c> exploitation</c>

00:00:30.830 --> 00:00:30.840 align:start position:0%
subverted or other exploitation
 

00:00:30.840 --> 00:00:32.749 align:start position:0%
subverted or other exploitation
Primitives<00:00:31.320><c> to</c><00:00:31.400><c> be</c><00:00:31.560><c> achieved</c><00:00:32.439><c> this</c><00:00:32.559><c> is</c>

00:00:32.749 --> 00:00:32.759 align:start position:0%
Primitives to be achieved this is
 

00:00:32.759 --> 00:00:34.590 align:start position:0%
Primitives to be achieved this is
because<00:00:33.160><c> the</c><00:00:33.280><c> attacker</c><00:00:33.680><c> was</c><00:00:33.840><c> able</c><00:00:34.079><c> to</c>

00:00:34.590 --> 00:00:34.600 align:start position:0%
because the attacker was able to
 

00:00:34.600 --> 00:00:36.510 align:start position:0%
because the attacker was able to
reallocate<00:00:35.239><c> the</c><00:00:35.399><c> object</c><00:00:35.760><c> with</c><00:00:35.960><c> arbitrary</c>

00:00:36.510 --> 00:00:36.520 align:start position:0%
reallocate the object with arbitrary
 

00:00:36.520 --> 00:00:38.869 align:start position:0%
reallocate the object with arbitrary
contents<00:00:37.480><c> thus</c><00:00:37.840><c> essentially</c><00:00:38.280><c> faking</c><00:00:38.719><c> the</c>

00:00:38.869 --> 00:00:38.879 align:start position:0%
contents thus essentially faking the
 

00:00:38.879 --> 00:00:40.630 align:start position:0%
contents thus essentially faking the
entire<00:00:39.239><c> object</c><00:00:39.600><c> and</c><00:00:39.760><c> controlling</c><00:00:40.399><c> various</c>

00:00:40.630 --> 00:00:40.640 align:start position:0%
entire object and controlling various
 

00:00:40.640 --> 00:00:42.910 align:start position:0%
entire object and controlling various
Fields<00:00:41.079><c> such</c><00:00:41.239><c> as</c><00:00:41.399><c> function</c><00:00:41.760><c> pointers</c><00:00:42.520><c> or</c>

00:00:42.910 --> 00:00:42.920 align:start position:0%
Fields such as function pointers or
 

00:00:42.920 --> 00:00:45.549 align:start position:0%
Fields such as function pointers or
other<00:00:43.239><c> data</c><00:00:44.239><c> physical</c><00:00:44.640><c> uafs</c><00:00:45.160><c> are</c><00:00:45.360><c> a</c>

00:00:45.549 --> 00:00:45.559 align:start position:0%
other data physical uafs are a
 

00:00:45.559 --> 00:00:47.750 align:start position:0%
other data physical uafs are a
subcategory<00:00:46.239><c> of</c><00:00:46.399><c> this</c><00:00:46.600><c> bug</c><00:00:46.920><c> class</c><00:00:47.399><c> first</c>

00:00:47.750 --> 00:00:47.760 align:start position:0%
subcategory of this bug class first
 

00:00:47.760 --> 00:00:49.549 align:start position:0%
subcategory of this bug class first
publicly<00:00:48.199><c> discussed</c><00:00:48.760><c> in</c><00:00:48.960><c> a</c><00:00:49.120><c> series</c><00:00:49.399><c> of</c>

00:00:49.549 --> 00:00:49.559 align:start position:0%
publicly discussed in a series of
 

00:00:49.559 --> 00:00:52.270 align:start position:0%
publicly discussed in a series of
vulnerability<00:00:50.160><c> reports</c><00:00:50.719><c> from</c><00:00:51.039><c> Felix</c><00:00:51.480><c> PB</c><00:00:52.039><c> for</c>

00:00:52.270 --> 00:00:52.280 align:start position:0%
vulnerability reports from Felix PB for
 

00:00:52.280 --> 00:00:55.229 align:start position:0%
vulnerability reports from Felix PB for
bugs<00:00:52.680><c> in</c><00:00:52.800><c> the</c><00:00:53.000><c> iOS</c><00:00:53.440><c> kernel</c><00:00:54.039><c> the</c><00:00:54.199><c> idea</c><00:00:54.600><c> here</c><00:00:54.879><c> is</c>

00:00:55.229 --> 00:00:55.239 align:start position:0%
bugs in the iOS kernel the idea here is
 

00:00:55.239 --> 00:00:57.110 align:start position:0%
bugs in the iOS kernel the idea here is
rather<00:00:55.520><c> than</c><00:00:55.760><c> some</c><00:00:56.079><c> object</c><00:00:56.399><c> being</c><00:00:56.640><c> the</c><00:00:56.800><c> target</c>

00:00:57.110 --> 00:00:57.120 align:start position:0%
rather than some object being the target
 

00:00:57.120 --> 00:00:59.430 align:start position:0%
rather than some object being the target
of<00:00:57.199><c> the</c><00:00:57.320><c> user</c><00:00:57.559><c> after</c><00:00:57.840><c> free</c><00:00:58.480><c> we</c><00:00:58.680><c> go</c><00:00:58.879><c> one</c><00:00:59.160><c> step</c>

00:00:59.430 --> 00:00:59.440 align:start position:0%
of the user after free we go one step
 

00:00:59.440 --> 00:01:01.670 align:start position:0%
of the user after free we go one step
deeper<00:01:00.039><c> and</c><00:01:00.239><c> achieve</c><00:01:00.640><c> a</c><00:01:00.760><c> use</c><00:01:01.000><c> after</c><00:01:01.280><c> free</c>

00:01:01.670 --> 00:01:01.680 align:start position:0%
deeper and achieve a use after free
 

00:01:01.680 --> 00:01:04.229 align:start position:0%
deeper and achieve a use after free
condition<00:01:02.280><c> on</c><00:01:02.519><c> a</c><00:01:02.760><c> physical</c><00:01:03.120><c> memory</c><00:01:03.519><c> page</c><00:01:04.119><c> in</c>

00:01:04.229 --> 00:01:04.239 align:start position:0%
condition on a physical memory page in
 

00:01:04.239 --> 00:01:05.670 align:start position:0%
condition on a physical memory page in
this<00:01:04.400><c> video</c><00:01:04.600><c> we're</c><00:01:04.720><c> going</c><00:01:04.839><c> to</c><00:01:05.000><c> dive</c><00:01:05.239><c> into</c><00:01:05.479><c> the</c>

00:01:05.670 --> 00:01:05.680 align:start position:0%
this video we're going to dive into the
 

00:01:05.680 --> 00:01:07.749 align:start position:0%
this video we're going to dive into the
details<00:01:06.360><c> of</c><00:01:06.560><c> the</c><00:01:06.720><c> first</c><00:01:07.000><c> physical</c><00:01:07.360><c> uaf</c>

00:01:07.749 --> 00:01:07.759 align:start position:0%
details of the first physical uaf
 

00:01:07.759 --> 00:01:09.910 align:start position:0%
details of the first physical uaf
vulnerability<00:01:08.320><c> reported</c><00:01:08.680><c> by</c><00:01:08.799><c> Felix</c><00:01:09.439><c> known</c><00:01:09.720><c> as</c>

00:01:09.910 --> 00:01:09.920 align:start position:0%
vulnerability reported by Felix known as
 

00:01:09.920 --> 00:01:11.710 align:start position:0%
vulnerability reported by Felix known as
Fizz<00:01:10.280><c> puppet</c><00:01:10.799><c> but</c><00:01:10.960><c> first</c><00:01:11.119><c> to</c><00:01:11.280><c> properly</c>

00:01:11.710 --> 00:01:11.720 align:start position:0%
Fizz puppet but first to properly
 

00:01:11.720 --> 00:01:13.070 align:start position:0%
Fizz puppet but first to properly
understand<00:01:11.840><c> the</c><00:01:11.960><c> vulnerability</c><00:01:12.520><c> here</c><00:01:12.920><c> we're</c>

00:01:13.070 --> 00:01:13.080 align:start position:0%
understand the vulnerability here we're
 

00:01:13.080 --> 00:01:14.070 align:start position:0%
understand the vulnerability here we're
going<00:01:13.159><c> to</c><00:01:13.280><c> need</c><00:01:13.400><c> to</c><00:01:13.560><c> look</c><00:01:13.720><c> at</c><00:01:13.840><c> some</c>

00:01:14.070 --> 00:01:14.080 align:start position:0%
going to need to look at some
 

00:01:14.080 --> 00:01:16.270 align:start position:0%
going to need to look at some
prerequisite<00:01:14.759><c> Concepts</c><00:01:15.240><c> on</c><00:01:15.439><c> how</c><00:01:15.600><c> the</c><00:01:15.720><c> xnu</c>

00:01:16.270 --> 00:01:16.280 align:start position:0%
prerequisite Concepts on how the xnu
 

00:01:16.280 --> 00:01:19.030 align:start position:0%
prerequisite Concepts on how the xnu
kernel<00:01:17.000><c> manages</c><00:01:17.560><c> virtual</c><00:01:17.920><c> memory</c><00:01:18.759><c> when</c><00:01:18.880><c> an</c>

00:01:19.030 --> 00:01:19.040 align:start position:0%
kernel manages virtual memory when an
 

00:01:19.040 --> 00:01:20.670 align:start position:0%
kernel manages virtual memory when an
app<00:01:19.159><c> is</c><00:01:19.280><c> running</c><00:01:19.560><c> on</c><00:01:19.680><c> your</c><00:01:19.840><c> iPhone</c><00:01:20.200><c> the</c><00:01:20.320><c> iOS</c>

00:01:20.670 --> 00:01:20.680 align:start position:0%
app is running on your iPhone the iOS
 

00:01:20.680 --> 00:01:22.350 align:start position:0%
app is running on your iPhone the iOS
kernel<00:01:21.040><c> makes</c><00:01:21.280><c> use</c><00:01:21.520><c> of</c><00:01:21.759><c> several</c><00:01:22.119><c> data</c>

00:01:22.350 --> 00:01:22.360 align:start position:0%
kernel makes use of several data
 

00:01:22.360 --> 00:01:24.270 align:start position:0%
kernel makes use of several data
structures<00:01:22.920><c> to</c><00:01:23.079><c> manage</c><00:01:23.360><c> the</c><00:01:23.560><c> lifetime</c><00:01:24.079><c> and</c>

00:01:24.270 --> 00:01:24.280 align:start position:0%
structures to manage the lifetime and
 

00:01:24.280 --> 00:01:26.670 align:start position:0%
structures to manage the lifetime and
execution<00:01:24.759><c> of</c><00:01:24.920><c> the</c><00:01:25.119><c> process</c><00:01:25.960><c> on</c><00:01:26.079><c> the</c><00:01:26.200><c> mck</c><00:01:26.600><c> side</c>

00:01:26.670 --> 00:01:26.680 align:start position:0%
execution of the process on the mck side
 

00:01:26.680 --> 00:01:28.670 align:start position:0%
execution of the process on the mck side
of<00:01:26.799><c> the</c><00:01:26.880><c> iOS</c><00:01:27.200><c> kernel</c><00:01:27.920><c> we</c><00:01:28.079><c> have</c><00:01:28.200><c> a</c><00:01:28.360><c> task</c>

00:01:28.670 --> 00:01:28.680 align:start position:0%
of the iOS kernel we have a task
 

00:01:28.680 --> 00:01:30.390 align:start position:0%
of the iOS kernel we have a task
structure<00:01:29.240><c> per</c><00:01:29.439><c> process</c><00:01:29.799><c> with</c><00:01:29.920><c> which</c><00:01:30.079><c> holds</c>

00:01:30.390 --> 00:01:30.400 align:start position:0%
structure per process with which holds
 

00:01:30.400 --> 00:01:32.149 align:start position:0%
structure per process with which holds
data<00:01:30.720><c> representing</c><00:01:31.320><c> threads</c><00:01:31.720><c> register</c>

00:01:32.149 --> 00:01:32.159 align:start position:0%
data representing threads register
 

00:01:32.159 --> 00:01:34.590 align:start position:0%
data representing threads register
States<00:01:32.759><c> IPC</c><00:01:33.240><c> ports</c><00:01:33.720><c> and</c><00:01:33.920><c> the</c><00:01:34.040><c> topic</c><00:01:34.280><c> of</c><00:01:34.399><c> this</c>

00:01:34.590 --> 00:01:34.600 align:start position:0%
States IPC ports and the topic of this
 

00:01:34.600 --> 00:01:36.550 align:start position:0%
States IPC ports and the topic of this
video<00:01:35.240><c> virtual</c><00:01:35.560><c> memory</c>

00:01:36.550 --> 00:01:36.560 align:start position:0%
video virtual memory
 

00:01:36.560 --> 00:01:39.550 align:start position:0%
video virtual memory
mappins<00:01:37.560><c> the</c><00:01:37.720><c> tasks</c><00:01:38.200><c> map</c><00:01:38.439><c> field</c><00:01:38.920><c> points</c><00:01:39.240><c> to</c><00:01:39.439><c> a</c>

00:01:39.550 --> 00:01:39.560 align:start position:0%
mappins the tasks map field points to a
 

00:01:39.560 --> 00:01:42.630 align:start position:0%
mappins the tasks map field points to a
nested<00:01:40.000><c> structure</c><00:01:40.479><c> known</c><00:01:40.680><c> as</c><00:01:40.799><c> a</c><00:01:40.920><c> VM</c><00:01:41.320><c> map</c><00:01:42.119><c> a</c><00:01:42.240><c> VM</c>

00:01:42.630 --> 00:01:42.640 align:start position:0%
nested structure known as a VM map a VM
 

00:01:42.640 --> 00:01:45.190 align:start position:0%
nested structure known as a VM map a VM
map<00:01:43.320><c> contains</c><00:01:43.799><c> multiple</c><00:01:44.280><c> VM</c><00:01:44.560><c> map</c><00:01:44.840><c> entry</c>

00:01:45.190 --> 00:01:45.200 align:start position:0%
map contains multiple VM map entry
 

00:01:45.200 --> 00:01:47.749 align:start position:0%
map contains multiple VM map entry
structures<00:01:45.960><c> stored</c><00:01:46.320><c> as</c><00:01:46.439><c> a</c><00:01:46.560><c> link</c><00:01:46.840><c> list</c><00:01:47.479><c> each</c>

00:01:47.749 --> 00:01:47.759 align:start position:0%
structures stored as a link list each
 

00:01:47.759 --> 00:01:49.590 align:start position:0%
structures stored as a link list each
representing<00:01:48.320><c> some</c><00:01:48.600><c> slice</c><00:01:49.000><c> of</c><00:01:49.119><c> the</c><00:01:49.240><c> virtual</c>

00:01:49.590 --> 00:01:49.600 align:start position:0%
representing some slice of the virtual
 

00:01:49.600 --> 00:01:51.830 align:start position:0%
representing some slice of the virtual
memory<00:01:50.000><c> addressable</c><00:01:50.479><c> by</c><00:01:50.640><c> this</c><00:01:50.880><c> process</c><00:01:51.600><c> with</c>

00:01:51.830 --> 00:01:51.840 align:start position:0%
memory addressable by this process with
 

00:01:51.840 --> 00:01:54.069 align:start position:0%
memory addressable by this process with
specified<00:01:52.320><c> start</c><00:01:52.600><c> and</c><00:01:52.759><c> end</c><00:01:52.960><c> addresses</c><00:01:53.560><c> VM</c><00:01:53.880><c> map</c>

00:01:54.069 --> 00:01:54.079 align:start position:0%
specified start and end addresses VM map
 

00:01:54.079 --> 00:01:55.910 align:start position:0%
specified start and end addresses VM map
entries<00:01:54.600><c> have</c><00:01:54.719><c> a</c><00:01:54.880><c> nested</c><00:01:55.240><c> structure</c><00:01:55.600><c> known</c><00:01:55.840><c> as</c>

00:01:55.910 --> 00:01:55.920 align:start position:0%
entries have a nested structure known as
 

00:01:55.920 --> 00:01:58.469 align:start position:0%
entries have a nested structure known as
a<00:01:56.039><c> VM</c><00:01:56.439><c> object</c><00:01:57.320><c> which</c><00:01:57.439><c> is</c><00:01:57.600><c> an</c><00:01:57.759><c> even</c><00:01:57.920><c> lower</c><00:01:58.240><c> level</c>

00:01:58.469 --> 00:01:58.479 align:start position:0%
a VM object which is an even lower level
 

00:01:58.479 --> 00:02:00.350 align:start position:0%
a VM object which is an even lower level
structure<00:01:59.039><c> describing</c><00:01:59.640><c> where</c><00:01:59.960><c> to</c><00:02:00.119><c> get</c>

00:02:00.350 --> 00:02:00.360 align:start position:0%
structure describing where to get
 

00:02:00.360 --> 00:02:02.870 align:start position:0%
structure describing where to get
physical<00:02:00.719><c> pages</c><00:02:01.119><c> from</c><00:02:01.759><c> VM</c><00:02:02.119><c> objects</c><00:02:02.520><c> can</c><00:02:02.680><c> have</c>

00:02:02.870 --> 00:02:02.880 align:start position:0%
physical pages from VM objects can have
 

00:02:02.880 --> 00:02:04.910 align:start position:0%
physical pages from VM objects can have
multiple<00:02:03.320><c> VM</c><00:02:03.719><c> page</c><00:02:03.960><c> structures</c><00:02:04.719><c> which</c>

00:02:04.910 --> 00:02:04.920 align:start position:0%
multiple VM page structures which
 

00:02:04.920 --> 00:02:07.350 align:start position:0%
multiple VM page structures which
directly<00:02:05.399><c> map</c><00:02:05.680><c> to</c><00:02:05.960><c> physical</c><00:02:06.360><c> pages</c><00:02:06.640><c> of</c><00:02:06.840><c> memory</c>

00:02:07.350 --> 00:02:07.360 align:start position:0%
directly map to physical pages of memory
 

00:02:07.360 --> 00:02:09.070 align:start position:0%
directly map to physical pages of memory
new<00:02:07.560><c> VM</c><00:02:07.880><c> map</c><00:02:08.000><c> entry</c><00:02:08.280><c> structures</c><00:02:08.720><c> can</c><00:02:08.879><c> be</c>

00:02:09.070 --> 00:02:09.080 align:start position:0%
new VM map entry structures can be
 

00:02:09.080 --> 00:02:12.030 align:start position:0%
new VM map entry structures can be
created<00:02:09.520><c> and</c><00:02:09.759><c> added</c><00:02:10.160><c> to</c><00:02:10.399><c> a</c><00:02:10.560><c> processes</c><00:02:11.080><c> VM</c><00:02:11.440><c> map</c>

00:02:12.030 --> 00:02:12.040 align:start position:0%
created and added to a processes VM map
 

00:02:12.040 --> 00:02:14.589 align:start position:0%
created and added to a processes VM map
using<00:02:12.520><c> the</c><00:02:12.680><c> function</c><00:02:13.080><c> VM</c><00:02:13.360><c> allocate</c><00:02:14.319><c> VM</c>

00:02:14.589 --> 00:02:14.599 align:start position:0%
using the function VM allocate VM
 

00:02:14.599 --> 00:02:16.110 align:start position:0%
using the function VM allocate VM
allocate<00:02:14.959><c> is</c><00:02:15.040><c> a</c><00:02:15.160><c> MIG</c><00:02:15.360><c> routine</c><00:02:15.760><c> used</c><00:02:16.000><c> to</c>

00:02:16.110 --> 00:02:16.120 align:start position:0%
allocate is a MIG routine used to
 

00:02:16.120 --> 00:02:17.630 align:start position:0%
allocate is a MIG routine used to
allocate<00:02:16.519><c> some</c><00:02:16.760><c> specified</c><00:02:17.280><c> amount</c><00:02:17.480><c> of</c>

00:02:17.630 --> 00:02:17.640 align:start position:0%
allocate some specified amount of
 

00:02:17.640 --> 00:02:19.509 align:start position:0%
allocate some specified amount of
virtual<00:02:17.959><c> memory</c><00:02:18.519><c> and</c><00:02:18.680><c> map</c><00:02:18.920><c> it</c><00:02:19.080><c> into</c><00:02:19.360><c> the</c>

00:02:19.509 --> 00:02:19.519 align:start position:0%
virtual memory and map it into the
 

00:02:19.519 --> 00:02:22.390 align:start position:0%
virtual memory and map it into the
process<00:02:20.280><c> we</c><00:02:20.400><c> can</c><00:02:20.560><c> specify</c><00:02:21.000><c> our</c><00:02:21.160><c> own</c><00:02:21.440><c> task</c><00:02:21.800><c> Port</c>

00:02:22.390 --> 00:02:22.400 align:start position:0%
process we can specify our own task Port
 

00:02:22.400 --> 00:02:23.910 align:start position:0%
process we can specify our own task Port
the<00:02:22.599><c> size</c><00:02:22.840><c> of</c><00:02:22.959><c> the</c><00:02:23.080><c> memory</c><00:02:23.360><c> block</c><00:02:23.640><c> which</c><00:02:23.760><c> we</c>

00:02:23.910 --> 00:02:23.920 align:start position:0%
the size of the memory block which we
 

00:02:23.920 --> 00:02:25.670 align:start position:0%
the size of the memory block which we
wish<00:02:24.080><c> to</c><00:02:24.200><c> allocate</c><00:02:24.640><c> which</c><00:02:24.760><c> is</c><00:02:24.879><c> a</c><00:02:25.000><c> multiple</c><00:02:25.480><c> of</c>

00:02:25.670 --> 00:02:25.680 align:start position:0%
wish to allocate which is a multiple of
 

00:02:25.680 --> 00:02:28.110 align:start position:0%
wish to allocate which is a multiple of
the<00:02:25.840><c> page</c><00:02:26.120><c> size</c><00:02:26.640><c> and</c><00:02:26.800><c> a</c><00:02:26.920><c> Flags</c><00:02:27.319><c> value</c><00:02:27.680><c> such</c><00:02:27.879><c> as</c>

00:02:28.110 --> 00:02:28.120 align:start position:0%
the page size and a Flags value such as
 

00:02:28.120 --> 00:02:30.229 align:start position:0%
the page size and a Flags value such as
VM<00:02:28.440><c> Flags</c><00:02:28.760><c> anywhere</c><00:02:29.360><c> to</c><00:02:29.480><c> tell</c><00:02:29.640><c> the</c><00:02:29.879><c> colel</c><00:02:30.160><c> that</c>

00:02:30.229 --> 00:02:30.239 align:start position:0%
VM Flags anywhere to tell the colel that
 

00:02:30.239 --> 00:02:31.790 align:start position:0%
VM Flags anywhere to tell the colel that
we<00:02:30.360><c> don't</c><00:02:30.560><c> care</c><00:02:30.840><c> where</c><00:02:31.040><c> this</c><00:02:31.160><c> new</c><00:02:31.319><c> allocation</c>

00:02:31.790 --> 00:02:31.800 align:start position:0%
we don't care where this new allocation
 

00:02:31.800 --> 00:02:34.589 align:start position:0%
we don't care where this new allocation
is<00:02:31.959><c> mapped</c><00:02:32.280><c> to</c><00:02:32.800><c> and</c><00:02:32.959><c> to</c><00:02:33.120><c> just</c><00:02:33.239><c> use</c><00:02:33.760><c> an</c><00:02:33.959><c> address</c>

00:02:34.589 --> 00:02:34.599 align:start position:0%
is mapped to and to just use an address
 

00:02:34.599 --> 00:02:36.350 align:start position:0%
is mapped to and to just use an address
at<00:02:34.760><c> random</c><00:02:35.360><c> the</c><00:02:35.480><c> start</c><00:02:35.800><c> address</c><00:02:36.080><c> of</c><00:02:36.239><c> this</c>

00:02:36.350 --> 00:02:36.360 align:start position:0%
at random the start address of this
 

00:02:36.360 --> 00:02:38.270 align:start position:0%
at random the start address of this
newly<00:02:36.640><c> allocated</c><00:02:37.120><c> region</c><00:02:37.480><c> will</c><00:02:37.599><c> be</c><00:02:38.000><c> returned</c>

00:02:38.270 --> 00:02:38.280 align:start position:0%
newly allocated region will be returned
 

00:02:38.280 --> 00:02:40.149 align:start position:0%
newly allocated region will be returned
in<00:02:38.440><c> the</c><00:02:38.599><c> address</c><00:02:39.000><c> variable</c><00:02:39.560><c> that</c><00:02:39.680><c> was</c><00:02:39.879><c> passed</c>

00:02:40.149 --> 00:02:40.159 align:start position:0%
in the address variable that was passed
 

00:02:40.159 --> 00:02:42.309 align:start position:0%
in the address variable that was passed
by<00:02:40.319><c> reference</c><00:02:40.959><c> internally</c><00:02:41.519><c> what</c><00:02:41.640><c> VM</c><00:02:41.920><c> allocate</c>

00:02:42.309 --> 00:02:42.319 align:start position:0%
by reference internally what VM allocate
 

00:02:42.319 --> 00:02:44.470 align:start position:0%
by reference internally what VM allocate
does<00:02:42.640><c> is</c><00:02:42.840><c> create</c><00:02:43.159><c> a</c><00:02:43.280><c> new</c><00:02:43.519><c> VM</c><00:02:43.879><c> map</c><00:02:44.120><c> entry</c>

00:02:44.470 --> 00:02:44.480 align:start position:0%
does is create a new VM map entry
 

00:02:44.480 --> 00:02:46.630 align:start position:0%
does is create a new VM map entry
structure<00:02:45.159><c> in</c><00:02:45.280><c> the</c><00:02:45.440><c> kernel</c><00:02:46.000><c> representing</c>

00:02:46.630 --> 00:02:46.640 align:start position:0%
structure in the kernel representing
 

00:02:46.640 --> 00:02:48.670 align:start position:0%
structure in the kernel representing
this<00:02:46.760><c> newly</c><00:02:47.080><c> allocated</c><00:02:47.560><c> virtual</c><00:02:47.959><c> region</c><00:02:48.519><c> it</c>

00:02:48.670 --> 00:02:48.680 align:start position:0%
this newly allocated virtual region it
 

00:02:48.680 --> 00:02:51.030 align:start position:0%
this newly allocated virtual region it
inserts<00:02:49.200><c> this</c><00:02:49.319><c> new</c><00:02:49.519><c> VM</c><00:02:49.800><c> map</c><00:02:49.959><c> entry</c><00:02:50.239><c> structure</c>

00:02:51.030 --> 00:02:51.040 align:start position:0%
inserts this new VM map entry structure
 

00:02:51.040 --> 00:02:53.550 align:start position:0%
inserts this new VM map entry structure
into<00:02:51.440><c> the</c><00:02:51.640><c> tasks</c><00:02:52.080><c> VM</c><00:02:52.480><c> map</c><00:02:52.920><c> which</c><00:02:53.080><c> now</c><00:02:53.280><c> allows</c>

00:02:53.550 --> 00:02:53.560 align:start position:0%
into the tasks VM map which now allows
 

00:02:53.560 --> 00:02:55.550 align:start position:0%
into the tasks VM map which now allows
it<00:02:53.680><c> to</c><00:02:53.879><c> become</c><00:02:54.239><c> addressable</c><00:02:54.760><c> memory</c><00:02:55.239><c> within</c>

00:02:55.550 --> 00:02:55.560 align:start position:0%
it to become addressable memory within
 

00:02:55.560 --> 00:02:57.790 align:start position:0%
it to become addressable memory within
this<00:02:55.879><c> process</c><00:02:56.879><c> at</c><00:02:57.080><c> this</c><00:02:57.239><c> point</c><00:02:57.480><c> the</c><00:02:57.560><c> new</c>

00:02:57.790 --> 00:02:57.800 align:start position:0%
this process at this point the new
 

00:02:57.800 --> 00:02:59.670 align:start position:0%
this process at this point the new
virtual<00:02:58.120><c> memory</c><00:02:58.480><c> has</c><00:02:58.599><c> been</c><00:02:58.879><c> logically</c><00:02:59.360><c> mapped</c>

00:02:59.670 --> 00:02:59.680 align:start position:0%
virtual memory has been logically mapped
 

00:02:59.680 --> 00:03:01.390 align:start position:0%
virtual memory has been logically mapped
into<00:02:59.840><c> into</c><00:03:00.000><c> our</c><00:03:00.239><c> process</c><00:03:01.040><c> however</c><00:03:01.200><c> there's</c>

00:03:01.390 --> 00:03:01.400 align:start position:0%
into into our process however there's
 

00:03:01.400 --> 00:03:03.229 align:start position:0%
into into our process however there's
not<00:03:01.599><c> actually</c><00:03:01.879><c> any</c><00:03:02.239><c> physical</c><00:03:02.599><c> backin</c><00:03:03.000><c> behind</c>

00:03:03.229 --> 00:03:03.239 align:start position:0%
not actually any physical backin behind
 

00:03:03.239 --> 00:03:05.750 align:start position:0%
not actually any physical backin behind
it<00:03:03.480><c> yet</c><00:03:04.280><c> when</c><00:03:04.440><c> we</c><00:03:04.599><c> actually</c><00:03:04.799><c> try</c><00:03:05.040><c> to</c><00:03:05.200><c> read</c><00:03:05.519><c> or</c>

00:03:05.750 --> 00:03:05.760 align:start position:0%
it yet when we actually try to read or
 

00:03:05.760 --> 00:03:07.789 align:start position:0%
it yet when we actually try to read or
write<00:03:06.080><c> to</c><00:03:06.239><c> an</c><00:03:06.440><c> address</c><00:03:07.000><c> within</c><00:03:07.319><c> this</c><00:03:07.440><c> newly</c>

00:03:07.789 --> 00:03:07.799 align:start position:0%
write to an address within this newly
 

00:03:07.799 --> 00:03:10.070 align:start position:0%
write to an address within this newly
allocated<00:03:08.280><c> region</c><00:03:09.040><c> a</c><00:03:09.239><c> page</c><00:03:09.440><c> fault</c><00:03:09.720><c> will</c><00:03:09.840><c> occur</c>

00:03:10.070 --> 00:03:10.080 align:start position:0%
allocated region a page fault will occur
 

00:03:10.080 --> 00:03:11.869 align:start position:0%
allocated region a page fault will occur
in<00:03:10.159><c> the</c><00:03:10.280><c> kernel</c><00:03:10.879><c> the</c><00:03:11.000><c> kernel</c><00:03:11.319><c> will</c><00:03:11.480><c> catch</c><00:03:11.720><c> this</c>

00:03:11.869 --> 00:03:11.879 align:start position:0%
in the kernel the kernel will catch this
 

00:03:11.879 --> 00:03:13.910 align:start position:0%
in the kernel the kernel will catch this
fault<00:03:12.480><c> and</c><00:03:12.599><c> it</c><00:03:12.720><c> will</c><00:03:12.920><c> proceed</c><00:03:13.239><c> to</c><00:03:13.480><c> look</c><00:03:13.720><c> for</c>

00:03:13.910 --> 00:03:13.920 align:start position:0%
fault and it will proceed to look for
 

00:03:13.920 --> 00:03:16.149 align:start position:0%
fault and it will proceed to look for
the<00:03:14.080><c> VM</c><00:03:14.440><c> object</c><00:03:14.879><c> that</c><00:03:15.040><c> backs</c><00:03:15.480><c> this</c><00:03:15.599><c> VM</c><00:03:15.959><c> map</c>

00:03:16.149 --> 00:03:16.159 align:start position:0%
the VM object that backs this VM map
 

00:03:16.159 --> 00:03:18.589 align:start position:0%
the VM object that backs this VM map
entry<00:03:16.440><c> structure</c><00:03:17.400><c> and</c><00:03:17.599><c> retrieve</c><00:03:18.200><c> physical</c>

00:03:18.589 --> 00:03:18.599 align:start position:0%
entry structure and retrieve physical
 

00:03:18.599 --> 00:03:20.430 align:start position:0%
entry structure and retrieve physical
pages<00:03:18.959><c> to</c><00:03:19.159><c> cover</c><00:03:19.440><c> the</c><00:03:19.560><c> virtual</c><00:03:19.920><c> address</c><00:03:20.200><c> we're</c>

00:03:20.430 --> 00:03:20.440 align:start position:0%
pages to cover the virtual address we're
 

00:03:20.440 --> 00:03:22.550 align:start position:0%
pages to cover the virtual address we're
accessing<00:03:21.319><c> if</c><00:03:21.440><c> the</c><00:03:21.599><c> backend</c><00:03:21.959><c> VM</c><00:03:22.280><c> object</c>

00:03:22.550 --> 00:03:22.560 align:start position:0%
accessing if the backend VM object
 

00:03:22.560 --> 00:03:24.630 align:start position:0%
accessing if the backend VM object
doesn't<00:03:22.840><c> already</c><00:03:23.159><c> have</c><00:03:23.319><c> any</c><00:03:23.519><c> Resident</c><00:03:24.000><c> Pages</c>

00:03:24.630 --> 00:03:24.640 align:start position:0%
doesn't already have any Resident Pages
 

00:03:24.640 --> 00:03:26.589 align:start position:0%
doesn't already have any Resident Pages
new<00:03:24.879><c> pages</c><00:03:25.239><c> need</c><00:03:25.400><c> to</c><00:03:25.519><c> be</c><00:03:25.680><c> retrieved</c><00:03:26.280><c> from</c><00:03:26.480><c> the</c>

00:03:26.589 --> 00:03:26.599 align:start position:0%
new pages need to be retrieved from the
 

00:03:26.599 --> 00:03:29.309 align:start position:0%
new pages need to be retrieved from the
free<00:03:26.920><c> list</c><00:03:27.360><c> and</c><00:03:27.560><c> added</c><00:03:27.920><c> to</c><00:03:28.159><c> this</c><00:03:28.319><c> VM</c><00:03:28.640><c> object</c><00:03:29.200><c> at</c>

00:03:29.309 --> 00:03:29.319 align:start position:0%
free list and added to this VM object at
 

00:03:29.319 --> 00:03:31.309 align:start position:0%
free list and added to this VM object at
this<00:03:29.480><c> point</c><00:03:29.799><c> new</c><00:03:30.040><c> page</c><00:03:30.280><c> table</c><00:03:30.519><c> entries</c><00:03:31.000><c> are</c>

00:03:31.309 --> 00:03:31.319 align:start position:0%
this point new page table entries are
 

00:03:31.319 --> 00:03:33.710 align:start position:0%
this point new page table entries are
inserted<00:03:31.879><c> into</c><00:03:32.120><c> our</c><00:03:32.319><c> tasks</c><00:03:32.720><c> pmap</c><00:03:33.400><c> for</c><00:03:33.599><c> the</c>

00:03:33.710 --> 00:03:33.720 align:start position:0%
inserted into our tasks pmap for the
 

00:03:33.720 --> 00:03:36.070 align:start position:0%
inserted into our tasks pmap for the
same<00:03:34.000><c> physical</c><00:03:34.439><c> page</c><00:03:35.120><c> once</c><00:03:35.360><c> this</c><00:03:35.519><c> is</c><00:03:35.640><c> done</c><00:03:35.920><c> we</c>

00:03:36.070 --> 00:03:36.080 align:start position:0%
same physical page once this is done we
 

00:03:36.080 --> 00:03:38.270 align:start position:0%
same physical page once this is done we
now<00:03:36.319><c> do</c><00:03:36.560><c> have</c><00:03:36.760><c> physical</c><00:03:37.080><c> memory</c><00:03:37.519><c> back</c><00:03:37.760><c> in</c><00:03:38.000><c> our</c>

00:03:38.270 --> 00:03:38.280 align:start position:0%
now do have physical memory back in our
 

00:03:38.280 --> 00:03:39.990 align:start position:0%
now do have physical memory back in our
address<00:03:38.680><c> and</c><00:03:38.840><c> therefore</c><00:03:39.400><c> we</c><00:03:39.519><c> can</c><00:03:39.640><c> read</c><00:03:39.840><c> and</c>

00:03:39.990 --> 00:03:40.000 align:start position:0%
address and therefore we can read and
 

00:03:40.000 --> 00:03:41.670 align:start position:0%
address and therefore we can read and
write<00:03:40.239><c> to</c><00:03:40.400><c> it</c><00:03:40.680><c> once</c><00:03:40.840><c> we're</c><00:03:41.040><c> done</c><00:03:41.239><c> using</c><00:03:41.560><c> this</c>

00:03:41.670 --> 00:03:41.680 align:start position:0%
write to it once we're done using this
 

00:03:41.680 --> 00:03:43.830 align:start position:0%
write to it once we're done using this
new<00:03:41.879><c> allocated</c><00:03:42.360><c> region</c><00:03:43.000><c> we</c><00:03:43.080><c> can</c><00:03:43.239><c> use</c><00:03:43.480><c> VM</c>

00:03:43.830 --> 00:03:43.840 align:start position:0%
new allocated region we can use VM
 

00:03:43.840 --> 00:03:46.830 align:start position:0%
new allocated region we can use VM
deallocate<00:03:44.680><c> to</c><00:03:45.080><c> free</c><00:03:45.439><c> this</c><00:03:45.599><c> memory</c><00:03:46.439><c> we</c><00:03:46.599><c> pass</c>

00:03:46.830 --> 00:03:46.840 align:start position:0%
deallocate to free this memory we pass
 

00:03:46.840 --> 00:03:48.630 align:start position:0%
deallocate to free this memory we pass
in<00:03:47.000><c> the</c><00:03:47.200><c> virtual</c><00:03:47.560><c> address</c><00:03:48.000><c> and</c><00:03:48.120><c> the</c><00:03:48.319><c> size</c><00:03:48.519><c> of</c>

00:03:48.630 --> 00:03:48.640 align:start position:0%
in the virtual address and the size of
 

00:03:48.640 --> 00:03:50.710 align:start position:0%
in the virtual address and the size of
the<00:03:48.720><c> memory</c><00:03:48.959><c> to</c><00:03:49.080><c> deallocate</c><00:03:50.000><c> the</c><00:03:50.120><c> konel</c><00:03:50.519><c> will</c>

00:03:50.710 --> 00:03:50.720 align:start position:0%
the memory to deallocate the konel will
 

00:03:50.720 --> 00:03:52.789 align:start position:0%
the memory to deallocate the konel will
then<00:03:51.000><c> free</c><00:03:51.319><c> the</c><00:03:51.439><c> VM</c><00:03:51.760><c> map</c><00:03:51.959><c> entry</c><00:03:52.319><c> structure</c>

00:03:52.789 --> 00:03:52.799 align:start position:0%
then free the VM map entry structure
 

00:03:52.799 --> 00:03:54.670 align:start position:0%
then free the VM map entry structure
associated<00:03:53.239><c> with</c><00:03:53.360><c> a</c><00:03:53.439><c> virtual</c><00:03:53.760><c> address</c><00:03:54.040><c> range</c>

00:03:54.670 --> 00:03:54.680 align:start position:0%
associated with a virtual address range
 

00:03:54.680 --> 00:03:57.030 align:start position:0%
associated with a virtual address range
and<00:03:54.760><c> it</c><00:03:54.840><c> will</c><00:03:55.040><c> unlink</c><00:03:55.519><c> it</c><00:03:55.760><c> from</c><00:03:55.959><c> our</c><00:03:56.239><c> task</c><00:03:56.640><c> VM</c>

00:03:57.030 --> 00:03:57.040 align:start position:0%
and it will unlink it from our task VM
 

00:03:57.040 --> 00:03:59.030 align:start position:0%
and it will unlink it from our task VM
map<00:03:57.519><c> at</c><00:03:57.680><c> this</c><00:03:57.840><c> point</c><00:03:58.120><c> we</c><00:03:58.239><c> also</c><00:03:58.519><c> remove</c><00:03:58.920><c> the</c>

00:03:59.030 --> 00:03:59.040 align:start position:0%
map at this point we also remove the
 

00:03:59.040 --> 00:04:01.069 align:start position:0%
map at this point we also remove the
page<00:03:59.280><c> table</c><00:03:59.519><c> end</c><00:03:59.760><c> r</c><00:04:00.040><c> that</c><00:04:00.120><c> were</c><00:04:00.280><c> added</c><00:04:00.680><c> to</c><00:04:00.840><c> our</c>

00:04:01.069 --> 00:04:01.079 align:start position:0%
page table end r that were added to our
 

00:04:01.079 --> 00:04:04.069 align:start position:0%
page table end r that were added to our
tasks<00:04:01.439><c> pmap</c><00:04:02.000><c> using</c><00:04:02.400><c> pmap</c><00:04:02.840><c> remove</c><00:04:03.239><c> options</c><00:04:04.000><c> the</c>

00:04:04.069 --> 00:04:04.079 align:start position:0%
tasks pmap using pmap remove options the
 

00:04:04.079 --> 00:04:05.670 align:start position:0%
tasks pmap using pmap remove options the
Fizz<00:04:04.400><c> puppet</c><00:04:04.680><c> exploit</c><00:04:05.079><c> allows</c><00:04:05.360><c> us</c><00:04:05.480><c> to</c>

00:04:05.670 --> 00:04:05.680 align:start position:0%
Fizz puppet exploit allows us to
 

00:04:05.680 --> 00:04:07.670 align:start position:0%
Fizz puppet exploit allows us to
cleverly<00:04:06.079><c> manipulate</c><00:04:06.599><c> this</c><00:04:06.799><c> process</c><00:04:07.439><c> such</c>

00:04:07.670 --> 00:04:07.680 align:start position:0%
cleverly manipulate this process such
 

00:04:07.680 --> 00:04:10.390 align:start position:0%
cleverly manipulate this process such
that<00:04:07.840><c> on</c><00:04:08.079><c> pte</c><00:04:08.599><c> removal</c><00:04:09.400><c> one</c><00:04:09.680><c> pte</c><00:04:10.200><c> is</c>

00:04:10.390 --> 00:04:10.400 align:start position:0%
that on pte removal one pte is
 

00:04:10.400 --> 00:04:12.949 align:start position:0%
that on pte removal one pte is
unintentionally<00:04:11.159><c> left</c><00:04:11.519><c> in</c><00:04:11.680><c> our</c><00:04:11.920><c> tasks</c><00:04:12.319><c> pmap</c>

00:04:12.949 --> 00:04:12.959 align:start position:0%
unintentionally left in our tasks pmap
 

00:04:12.959 --> 00:04:14.589 align:start position:0%
unintentionally left in our tasks pmap
but<00:04:13.079><c> the</c><00:04:13.239><c> corresponding</c><00:04:13.920><c> page</c><00:04:14.400><c> is</c>

00:04:14.589 --> 00:04:14.599 align:start position:0%
but the corresponding page is
 

00:04:14.599 --> 00:04:16.710 align:start position:0%
but the corresponding page is
simultaneously<00:04:15.360><c> released</c><00:04:15.959><c> back</c><00:04:16.160><c> to</c><00:04:16.320><c> the</c><00:04:16.479><c> page</c>

00:04:16.710 --> 00:04:16.720 align:start position:0%
simultaneously released back to the page
 

00:04:16.720 --> 00:04:18.949 align:start position:0%
simultaneously released back to the page
allocator<00:04:17.519><c> ready</c><00:04:17.759><c> to</c><00:04:17.880><c> be</c><00:04:18.040><c> used</c><00:04:18.359><c> by</c><00:04:18.519><c> some</c><00:04:18.680><c> other</c>

00:04:18.949 --> 00:04:18.959 align:start position:0%
allocator ready to be used by some other
 

00:04:18.959 --> 00:04:20.830 align:start position:0%
allocator ready to be used by some other
task<00:04:19.280><c> or</c><00:04:19.440><c> the</c><00:04:19.560><c> kernel</c><00:04:19.959><c> itself</c><00:04:20.479><c> with</c><00:04:20.680><c> this</c>

00:04:20.830 --> 00:04:20.840 align:start position:0%
task or the kernel itself with this
 

00:04:20.840 --> 00:04:23.350 align:start position:0%
task or the kernel itself with this
dangling<00:04:21.440><c> pte</c><00:04:21.919><c> entry</c><00:04:22.639><c> we</c><00:04:22.759><c> can</c><00:04:22.919><c> construct</c>

00:04:23.350 --> 00:04:23.360 align:start position:0%
dangling pte entry we can construct
 

00:04:23.360 --> 00:04:25.270 align:start position:0%
dangling pte entry we can construct
powerful<00:04:23.759><c> Primitives</c><00:04:24.320><c> once</c><00:04:24.520><c> the</c><00:04:24.759><c> page</c><00:04:25.040><c> gets</c>

00:04:25.270 --> 00:04:25.280 align:start position:0%
powerful Primitives once the page gets
 

00:04:25.280 --> 00:04:27.110 align:start position:0%
powerful Primitives once the page gets
reallocated<00:04:25.880><c> for</c><00:04:26.080><c> something</c><00:04:26.400><c> more</c><00:04:26.600><c> important</c>

00:04:27.110 --> 00:04:27.120 align:start position:0%
reallocated for something more important
 

00:04:27.120 --> 00:04:28.870 align:start position:0%
reallocated for something more important
such<00:04:27.280><c> as</c><00:04:27.440><c> a</c><00:04:27.560><c> kernel</c><00:04:27.919><c> data</c><00:04:28.120><c> structure</c><00:04:28.639><c> or</c><00:04:28.759><c> a</c>

00:04:28.870 --> 00:04:28.880 align:start position:0%
such as a kernel data structure or a
 

00:04:28.880 --> 00:04:31.029 align:start position:0%
such as a kernel data structure or a
kernel<00:04:29.240><c> object</c><00:04:29.720><c> Fizz</c><00:04:30.000><c> puppet</c><00:04:30.360><c> exploits</c><00:04:30.840><c> an</c>

00:04:31.029 --> 00:04:31.039 align:start position:0%
kernel object Fizz puppet exploits an
 

00:04:31.039 --> 00:04:33.189 align:start position:0%
kernel object Fizz puppet exploits an
integer<00:04:31.440><c> overflow</c><00:04:31.880><c> bug</c><00:04:32.160><c> in</c><00:04:32.280><c> the</c><00:04:32.400><c> function</c><00:04:32.840><c> VM</c>

00:04:33.189 --> 00:04:33.199 align:start position:0%
integer overflow bug in the function VM
 

00:04:33.199 --> 00:04:35.870 align:start position:0%
integer overflow bug in the function VM
map<00:04:33.479><c> enter</c><00:04:33.960><c> mem</c><00:04:34.360><c> object</c><00:04:34.720><c> helper</c><00:04:35.520><c> which</c><00:04:35.639><c> is</c><00:04:35.720><c> a</c>

00:04:35.870 --> 00:04:35.880 align:start position:0%
map enter mem object helper which is a
 

00:04:35.880 --> 00:04:37.790 align:start position:0%
map enter mem object helper which is a
function<00:04:36.199><c> in</c><00:04:36.320><c> the</c><00:04:36.400><c> X</c><00:04:36.600><c> andu</c><00:04:36.840><c> kernel</c><00:04:37.240><c> reachable</c>

00:04:37.790 --> 00:04:37.800 align:start position:0%
function in the X andu kernel reachable
 

00:04:37.800 --> 00:04:41.230 align:start position:0%
function in the X andu kernel reachable
by<00:04:37.919><c> calling</c><00:04:38.440><c> VM</c><00:04:38.800><c> map</c><00:04:39.000><c> from</c><00:04:39.160><c> user</c><00:04:39.479><c> space</c><00:04:40.479><c> VM</c><00:04:40.840><c> map</c>

00:04:41.230 --> 00:04:41.240 align:start position:0%
by calling VM map from user space VM map
 

00:04:41.240 --> 00:04:42.870 align:start position:0%
by calling VM map from user space VM map
the<00:04:41.400><c> function</c><00:04:41.919><c> not</c><00:04:42.080><c> the</c><00:04:42.199><c> data</c><00:04:42.440><c> structure</c><00:04:42.759><c> that</c>

00:04:42.870 --> 00:04:42.880 align:start position:0%
the function not the data structure that
 

00:04:42.880 --> 00:04:45.070 align:start position:0%
the function not the data structure that
we<00:04:43.000><c> already</c><00:04:43.320><c> described</c><00:04:44.240><c> is</c><00:04:44.440><c> another</c><00:04:44.759><c> way</c><00:04:44.880><c> a</c>

00:04:45.070 --> 00:04:45.080 align:start position:0%
we already described is another way a
 

00:04:45.080 --> 00:04:46.950 align:start position:0%
we already described is another way a
process<00:04:45.520><c> can</c><00:04:45.720><c> map</c><00:04:45.919><c> a</c><00:04:46.000><c> region</c><00:04:46.240><c> of</c><00:04:46.360><c> memory</c><00:04:46.720><c> into</c>

00:04:46.950 --> 00:04:46.960 align:start position:0%
process can map a region of memory into
 

00:04:46.960 --> 00:04:49.670 align:start position:0%
process can map a region of memory into
its<00:04:47.199><c> task</c><00:04:47.919><c> unlike</c><00:04:48.320><c> VM</c><00:04:48.639><c> allocate</c><00:04:49.160><c> which</c><00:04:49.360><c> asks</c>

00:04:49.670 --> 00:04:49.680 align:start position:0%
its task unlike VM allocate which asks
 

00:04:49.680 --> 00:04:51.150 align:start position:0%
its task unlike VM allocate which asks
the<00:04:49.800><c> kernel</c><00:04:50.160><c> directly</c><00:04:50.479><c> to</c><00:04:50.600><c> allocate</c><00:04:50.960><c> new</c>

00:04:51.150 --> 00:04:51.160 align:start position:0%
the kernel directly to allocate new
 

00:04:51.160 --> 00:04:53.550 align:start position:0%
the kernel directly to allocate new
memory<00:04:51.840><c> the</c><00:04:52.000><c> VM</c><00:04:52.280><c> map</c><00:04:52.560><c> function</c><00:04:52.919><c> allows</c><00:04:53.240><c> us</c><00:04:53.360><c> to</c>

00:04:53.550 --> 00:04:53.560 align:start position:0%
memory the VM map function allows us to
 

00:04:53.560 --> 00:04:56.350 align:start position:0%
memory the VM map function allows us to
pass<00:04:53.880><c> in</c><00:04:54.280><c> a</c><00:04:54.560><c> memory</c><00:04:55.000><c> object</c><00:04:55.320><c> reference</c><00:04:56.080><c> as</c><00:04:56.199><c> an</c>

00:04:56.350 --> 00:04:56.360 align:start position:0%
pass in a memory object reference as an
 

00:04:56.360 --> 00:04:58.550 align:start position:0%
pass in a memory object reference as an
argument<00:04:57.039><c> which</c><00:04:57.240><c> essentially</c><00:04:57.720><c> is</c><00:04:57.800><c> a</c><00:04:57.960><c> mck</c><00:04:58.240><c> port</c>

00:04:58.550 --> 00:04:58.560 align:start position:0%
argument which essentially is a mck port
 

00:04:58.560 --> 00:05:00.430 align:start position:0%
argument which essentially is a mck port
that<00:04:58.680><c> refers</c><00:04:59.039><c> to</c><00:04:59.199><c> some</c><00:04:59.720><c> already</c><00:04:59.960><c> allocated</c>

00:05:00.430 --> 00:05:00.440 align:start position:0%
that refers to some already allocated
 

00:05:00.440 --> 00:05:02.469 align:start position:0%
that refers to some already allocated
memory<00:05:00.840><c> in</c><00:05:00.960><c> the</c><00:05:01.120><c> kernel</c><00:05:02.000><c> it</c><00:05:02.080><c> will</c><00:05:02.280><c> then</c>

00:05:02.469 --> 00:05:02.479 align:start position:0%
memory in the kernel it will then
 

00:05:02.479 --> 00:05:05.029 align:start position:0%
memory in the kernel it will then
proceed<00:05:02.800><c> to</c><00:05:03.080><c> create</c><00:05:03.360><c> a</c><00:05:03.520><c> VM</c><00:05:03.800><c> map</c><00:05:04.000><c> entry</c><00:05:04.800><c> for</c>

00:05:05.029 --> 00:05:05.039 align:start position:0%
proceed to create a VM map entry for
 

00:05:05.039 --> 00:05:06.830 align:start position:0%
proceed to create a VM map entry for
this<00:05:05.199><c> memory</c><00:05:05.560><c> object</c><00:05:06.080><c> and</c><00:05:06.199><c> then</c><00:05:06.360><c> map</c><00:05:06.680><c> that</c>

00:05:06.830 --> 00:05:06.840 align:start position:0%
this memory object and then map that
 

00:05:06.840 --> 00:05:08.710 align:start position:0%
this memory object and then map that
into<00:05:07.039><c> our</c><00:05:07.240><c> task</c><00:05:07.680><c> we</c><00:05:07.800><c> can</c><00:05:07.919><c> allocate</c><00:05:08.240><c> a</c><00:05:08.360><c> memory</c>

00:05:08.710 --> 00:05:08.720 align:start position:0%
into our task we can allocate a memory
 

00:05:08.720 --> 00:05:10.230 align:start position:0%
into our task we can allocate a memory
object<00:05:09.039><c> ourself</c><00:05:09.479><c> using</c><00:05:09.800><c> a</c><00:05:09.960><c> different</c>

00:05:10.230 --> 00:05:10.240 align:start position:0%
object ourself using a different
 

00:05:10.240 --> 00:05:12.550 align:start position:0%
object ourself using a different
function<00:05:10.800><c> MK</c><00:05:11.199><c> memory</c><00:05:11.600><c> object</c><00:05:11.880><c> memory</c><00:05:12.199><c> entry</c>

00:05:12.550 --> 00:05:12.560 align:start position:0%
function MK memory object memory entry
 

00:05:12.560 --> 00:05:15.350 align:start position:0%
function MK memory object memory entry
64<00:05:13.520><c> similarly</c><00:05:13.960><c> to</c><00:05:14.240><c> the</c><00:05:14.400><c> VM</c><00:05:14.639><c> allocate</c><00:05:15.000><c> call</c><00:05:15.280><c> we</c>

00:05:15.350 --> 00:05:15.360 align:start position:0%
64 similarly to the VM allocate call we
 

00:05:15.360 --> 00:05:17.510 align:start position:0%
64 similarly to the VM allocate call we
can<00:05:15.440><c> choose</c><00:05:15.919><c> the</c><00:05:16.120><c> size</c><00:05:16.320><c> of</c><00:05:16.440><c> our</c><00:05:16.560><c> memory</c><00:05:16.880><c> object</c>

00:05:17.510 --> 00:05:17.520 align:start position:0%
can choose the size of our memory object
 

00:05:17.520 --> 00:05:20.110 align:start position:0%
can choose the size of our memory object
and<00:05:17.639><c> then</c><00:05:17.759><c> the</c><00:05:17.880><c> kernel</c><00:05:18.319><c> will</c><00:05:18.600><c> create</c><00:05:19.039><c> a</c><00:05:19.319><c> VM</c><00:05:19.680><c> map</c>

00:05:20.110 --> 00:05:20.120 align:start position:0%
and then the kernel will create a VM map
 

00:05:20.120 --> 00:05:23.110 align:start position:0%
and then the kernel will create a VM map
named<00:05:20.560><c> entry</c><00:05:21.280><c> which</c><00:05:21.479><c> our</c><00:05:21.919><c> returned</c><00:05:22.360><c> Port</c>

00:05:23.110 --> 00:05:23.120 align:start position:0%
named entry which our returned Port
 

00:05:23.120 --> 00:05:25.629 align:start position:0%
named entry which our returned Port
directly<00:05:23.479><c> refers</c><00:05:23.919><c> to</c><00:05:24.360><c> this</c><00:05:24.520><c> named</c><00:05:24.919><c> entry</c><00:05:25.440><c> has</c>

00:05:25.629 --> 00:05:25.639 align:start position:0%
directly refers to this named entry has
 

00:05:25.639 --> 00:05:28.309 align:start position:0%
directly refers to this named entry has
a<00:05:25.840><c> backin</c><00:05:26.560><c> VM</c><00:05:26.919><c> map</c><00:05:27.120><c> copy</c><00:05:27.400><c> structure</c><00:05:28.160><c> which</c>

00:05:28.309 --> 00:05:28.319 align:start position:0%
a backin VM map copy structure which
 

00:05:28.319 --> 00:05:30.350 align:start position:0%
a backin VM map copy structure which
points<00:05:28.639><c> to</c><00:05:28.840><c> a</c><00:05:28.960><c> vmap</c><00:05:29.319><c> entry</c><00:05:29.720><c> structure</c><00:05:30.160><c> and</c>

00:05:30.350 --> 00:05:30.360 align:start position:0%
points to a vmap entry structure and
 

00:05:30.360 --> 00:05:32.430 align:start position:0%
points to a vmap entry structure and
also<00:05:30.680><c> a</c><00:05:30.800><c> VM</c><00:05:31.199><c> object</c><00:05:31.720><c> but</c><00:05:31.840><c> we'll</c><00:05:32.000><c> come</c><00:05:32.160><c> back</c><00:05:32.280><c> to</c>

00:05:32.430 --> 00:05:32.440 align:start position:0%
also a VM object but we'll come back to
 

00:05:32.440 --> 00:05:34.029 align:start position:0%
also a VM object but we'll come back to
that<00:05:32.600><c> later</c><00:05:33.039><c> let's</c><00:05:33.280><c> first</c><00:05:33.479><c> take</c><00:05:33.600><c> a</c><00:05:33.759><c> look</c><00:05:33.919><c> at</c>

00:05:34.029 --> 00:05:34.039 align:start position:0%
that later let's first take a look at
 

00:05:34.039 --> 00:05:36.070 align:start position:0%
that later let's first take a look at
the<00:05:34.160><c> actual</c><00:05:34.440><c> integer</c><00:05:34.800><c> overflow</c><00:05:35.280><c> itself</c><00:05:35.919><c> which</c>

00:05:36.070 --> 00:05:36.080 align:start position:0%
the actual integer overflow itself which
 

00:05:36.080 --> 00:05:38.110 align:start position:0%
the actual integer overflow itself which
occurs<00:05:36.440><c> as</c><00:05:36.560><c> a</c><00:05:36.680><c> result</c><00:05:36.919><c> of</c><00:05:37.000><c> a</c><00:05:37.120><c> missing</c><00:05:37.680><c> check</c><00:05:37.960><c> on</c>

00:05:38.110 --> 00:05:38.120 align:start position:0%
occurs as a result of a missing check on
 

00:05:38.120 --> 00:05:40.469 align:start position:0%
occurs as a result of a missing check on
the<00:05:38.319><c> size</c><00:05:38.639><c> value</c><00:05:39.000><c> passed</c><00:05:39.319><c> into</c><00:05:39.600><c> to</c><00:05:39.800><c> the</c><00:05:39.960><c> VM</c><00:05:40.240><c> map</c>

00:05:40.469 --> 00:05:40.479 align:start position:0%
the size value passed into to the VM map
 

00:05:40.479 --> 00:05:42.230 align:start position:0%
the size value passed into to the VM map
call<00:05:40.919><c> the</c><00:05:41.000><c> third</c><00:05:41.319><c> argument</c><00:05:41.639><c> to</c><00:05:41.800><c> the</c><00:05:41.880><c> call</c><00:05:42.080><c> to</c>

00:05:42.230 --> 00:05:42.240 align:start position:0%
call the third argument to the call to
 

00:05:42.240 --> 00:05:44.909 align:start position:0%
call the third argument to the call to
VM<00:05:42.520><c> map</c><00:05:42.960><c> should</c><00:05:43.199><c> be</c><00:05:43.479><c> the</c><00:05:43.680><c> size</c><00:05:43.960><c> in</c><00:05:44.199><c> bytes</c><00:05:44.720><c> to</c>

00:05:44.909 --> 00:05:44.919 align:start position:0%
VM map should be the size in bytes to
 

00:05:44.919 --> 00:05:47.309 align:start position:0%
VM map should be the size in bytes to
map<00:05:45.199><c> into</c><00:05:45.440><c> the</c><00:05:45.680><c> task</c><00:05:46.160><c> but</c><00:05:46.319><c> with</c><00:05:46.440><c> fizz</c><00:05:46.800><c> puppet</c>

00:05:47.309 --> 00:05:47.319 align:start position:0%
map into the task but with fizz puppet
 

00:05:47.319 --> 00:05:49.350 align:start position:0%
map into the task but with fizz puppet
we<00:05:47.440><c> set</c><00:05:47.759><c> this</c><00:05:47.919><c> value</c><00:05:48.280><c> to</c><00:05:48.560><c> minus</c><00:05:48.919><c> one</c><00:05:49.240><c> the</c>

00:05:49.350 --> 00:05:49.360 align:start position:0%
we set this value to minus one the
 

00:05:49.360 --> 00:05:51.550 align:start position:0%
we set this value to minus one the
kernel<00:05:49.720><c> wants</c><00:05:50.039><c> this</c><00:05:50.240><c> size</c><00:05:50.479><c> in</c><00:05:50.720><c> bytes</c><00:05:51.039><c> to</c><00:05:51.160><c> be</c><00:05:51.400><c> a</c>

00:05:51.550 --> 00:05:51.560 align:start position:0%
kernel wants this size in bytes to be a
 

00:05:51.560 --> 00:05:53.790 align:start position:0%
kernel wants this size in bytes to be a
multiple<00:05:52.000><c> of</c><00:05:52.120><c> the</c><00:05:52.280><c> page</c><00:05:52.560><c> size</c><00:05:53.080><c> so</c><00:05:53.240><c> it</c><00:05:53.360><c> uses</c><00:05:53.680><c> the</c>

00:05:53.790 --> 00:05:53.800 align:start position:0%
multiple of the page size so it uses the
 

00:05:53.800 --> 00:05:56.670 align:start position:0%
multiple of the page size so it uses the
macro<00:05:54.240><c> VM</c><00:05:54.639><c> object</c><00:05:55.000><c> round</c><00:05:55.440><c> page</c><00:05:56.039><c> to</c><00:05:56.240><c> attempt</c><00:05:56.520><c> to</c>

00:05:56.670 --> 00:05:56.680 align:start position:0%
macro VM object round page to attempt to
 

00:05:56.680 --> 00:05:59.230 align:start position:0%
macro VM object round page to attempt to
round<00:05:57.000><c> up</c><00:05:57.280><c> this</c><00:05:57.440><c> value</c><00:05:58.039><c> using</c><00:05:58.360><c> the</c><00:05:58.520><c> page</c><00:05:58.759><c> mask</c>

00:05:59.230 --> 00:05:59.240 align:start position:0%
round up this value using the page mask
 

00:05:59.240 --> 00:06:01.230 align:start position:0%
round up this value using the page mask
this<00:05:59.400><c> Mac</c><00:05:59.639><c> macro</c><00:06:00.039><c> expands</c><00:06:00.560><c> to</c><00:06:00.840><c> this</c><00:06:00.960><c> simple</c>

00:06:01.230 --> 00:06:01.240 align:start position:0%
this Mac macro expands to this simple
 

00:06:01.240 --> 00:06:02.909 align:start position:0%
this Mac macro expands to this simple
line<00:06:01.400><c> of</c><00:06:01.560><c> code</c><00:06:01.840><c> here</c><00:06:02.039><c> for</c><00:06:02.240><c> typical</c><00:06:02.600><c> size</c>

00:06:02.909 --> 00:06:02.919 align:start position:0%
line of code here for typical size
 

00:06:02.919 --> 00:06:04.550 align:start position:0%
line of code here for typical size
values<00:06:03.240><c> that</c><00:06:03.360><c> might</c><00:06:03.520><c> be</c><00:06:03.680><c> passed</c><00:06:03.960><c> in</c><00:06:04.400><c> this</c>

00:06:04.550 --> 00:06:04.560 align:start position:0%
values that might be passed in this
 

00:06:04.560 --> 00:06:06.990 align:start position:0%
values that might be passed in this
macro<00:06:05.080><c> works</c><00:06:05.560><c> exactly</c><00:06:05.960><c> as</c><00:06:06.199><c> expected</c><00:06:06.759><c> and</c>

00:06:06.990 --> 00:06:07.000 align:start position:0%
macro works exactly as expected and
 

00:06:07.000 --> 00:06:09.309 align:start position:0%
macro works exactly as expected and
rounds<00:06:07.360><c> up</c><00:06:07.680><c> the</c><00:06:07.840><c> value</c><00:06:08.680><c> however</c><00:06:08.919><c> since</c><00:06:09.160><c> we</c>

00:06:09.309 --> 00:06:09.319 align:start position:0%
rounds up the value however since we
 

00:06:09.319 --> 00:06:12.270 align:start position:0%
rounds up the value however since we
pass<00:06:09.599><c> in</c><00:06:09.880><c> minus</c><00:06:10.280><c> one</c><00:06:11.000><c> which</c><00:06:11.479><c> in</c><00:06:11.720><c> HEX</c><00:06:12.120><c> is</c>

00:06:12.270 --> 00:06:12.280 align:start position:0%
pass in minus one which in HEX is
 

00:06:12.280 --> 00:06:16.110 align:start position:0%
pass in minus one which in HEX is
represented<00:06:12.840><c> by</c><00:06:13.360><c> a</c><00:06:13.560><c> 64-bit</c><00:06:14.319><c> value</c><00:06:14.720><c> of</c><00:06:14.880><c> all</c><00:06:15.160><c> FS</c>

00:06:16.110 --> 00:06:16.120 align:start position:0%
represented by a 64-bit value of all FS
 

00:06:16.120 --> 00:06:17.909 align:start position:0%
represented by a 64-bit value of all FS
we<00:06:16.280><c> reach</c><00:06:16.599><c> a</c><00:06:16.800><c> case</c><00:06:17.120><c> that</c><00:06:17.240><c> is</c><00:06:17.360><c> not</c><00:06:17.560><c> accounted</c>

00:06:17.909 --> 00:06:17.919 align:start position:0%
we reach a case that is not accounted
 

00:06:17.919 --> 00:06:20.270 align:start position:0%
we reach a case that is not accounted
for<00:06:18.319><c> the</c><00:06:18.440><c> first</c><00:06:18.680><c> part</c><00:06:18.800><c> of</c><00:06:18.919><c> the</c><00:06:19.000><c> macro</c><00:06:19.759><c> adds</c><00:06:20.080><c> the</c>

00:06:20.270 --> 00:06:20.280 align:start position:0%
for the first part of the macro adds the
 

00:06:20.280 --> 00:06:22.950 align:start position:0%
for the first part of the macro adds the
page<00:06:20.560><c> mask</c><00:06:21.000><c> which</c><00:06:21.120><c> is</c><00:06:21.360><c> FFF</c><00:06:22.360><c> which</c><00:06:22.560><c> already</c>

00:06:22.950 --> 00:06:22.960 align:start position:0%
page mask which is FFF which already
 

00:06:22.960 --> 00:06:26.749 align:start position:0%
page mask which is FFF which already
causes<00:06:23.319><c> our</c><00:06:23.639><c> value</c><00:06:24.120><c> to</c><00:06:24.319><c> wrap</c><00:06:24.639><c> around</c><00:06:25.039><c> to</c><00:06:25.759><c> ffe</c>

00:06:26.749 --> 00:06:26.759 align:start position:0%
causes our value to wrap around to ffe
 

00:06:26.759 --> 00:06:29.430 align:start position:0%
causes our value to wrap around to ffe
then<00:06:26.960><c> when</c><00:06:27.080><c> we</c><00:06:27.240><c> take</c><00:06:27.520><c> ffe</c><00:06:28.120><c> and</c><00:06:28.319><c> and</c><00:06:28.800><c> this</c><00:06:29.199><c> with</c>

00:06:29.430 --> 00:06:29.440 align:start position:0%
then when we take ffe and and this with
 

00:06:29.440 --> 00:06:31.550 align:start position:0%
then when we take ffe and and this with
the<00:06:29.720><c> inverse</c><00:06:30.039><c> of</c><00:06:30.160><c> the</c><00:06:30.319><c> page</c><00:06:30.560><c> mask</c><00:06:31.000><c> we're</c><00:06:31.240><c> left</c>

00:06:31.550 --> 00:06:31.560 align:start position:0%
the inverse of the page mask we're left
 

00:06:31.560 --> 00:06:34.390 align:start position:0%
the inverse of the page mask we're left
with<00:06:31.960><c> zero</c><00:06:32.440><c> both</c><00:06:32.800><c> Map</c><00:06:33.160><c> size</c><00:06:33.599><c> and</c><00:06:33.880><c> size</c><00:06:34.199><c> are</c>

00:06:34.390 --> 00:06:34.400 align:start position:0%
with zero both Map size and size are
 

00:06:34.400 --> 00:06:36.350 align:start position:0%
with zero both Map size and size are
both<00:06:34.560><c> set</c><00:06:34.800><c> to</c><00:06:35.000><c> zero</c><00:06:35.280><c> at</c><00:06:35.400><c> this</c><00:06:35.560><c> point</c><00:06:35.919><c> weirdly</c>

00:06:36.350 --> 00:06:36.360 align:start position:0%
both set to zero at this point weirdly
 

00:06:36.360 --> 00:06:38.150 align:start position:0%
both set to zero at this point weirdly
enough<00:06:36.720><c> further</c><00:06:37.039><c> down</c><00:06:37.199><c> in</c><00:06:37.319><c> the</c><00:06:37.560><c> code</c><00:06:37.840><c> there</c><00:06:37.919><c> is</c>

00:06:38.150 --> 00:06:38.160 align:start position:0%
enough further down in the code there is
 

00:06:38.160 --> 00:06:40.230 align:start position:0%
enough further down in the code there is
actually<00:06:38.479><c> a</c><00:06:38.680><c> branch</c><00:06:39.080><c> that</c><00:06:39.240><c> gets</c><00:06:39.479><c> taken</c>

00:06:40.230 --> 00:06:40.240 align:start position:0%
actually a branch that gets taken
 

00:06:40.240 --> 00:06:42.550 align:start position:0%
actually a branch that gets taken
because<00:06:40.560><c> the</c><00:06:40.759><c> size</c><00:06:41.120><c> is</c><00:06:41.280><c> equal</c><00:06:41.520><c> to</c><00:06:41.759><c> zero</c><00:06:42.280><c> I</c><00:06:42.360><c> say</c>

00:06:42.550 --> 00:06:42.560 align:start position:0%
because the size is equal to zero I say
 

00:06:42.560 --> 00:06:44.270 align:start position:0%
because the size is equal to zero I say
weirdly<00:06:43.000><c> enough</c><00:06:43.319><c> because</c><00:06:43.599><c> it</c><00:06:43.720><c> doesn't</c><00:06:44.000><c> seem</c>

00:06:44.270 --> 00:06:44.280 align:start position:0%
weirdly enough because it doesn't seem
 

00:06:44.280 --> 00:06:45.950 align:start position:0%
weirdly enough because it doesn't seem
possible<00:06:44.680><c> that</c><00:06:44.880><c> this</c><00:06:45.080><c> Branch</c><00:06:45.400><c> could</c><00:06:45.639><c> ever</c><00:06:45.840><c> be</c>

00:06:45.950 --> 00:06:45.960 align:start position:0%
possible that this Branch could ever be
 

00:06:45.960 --> 00:06:47.629 align:start position:0%
possible that this Branch could ever be
reached<00:06:46.360><c> under</c><00:06:46.639><c> normal</c><00:06:47.000><c> usage</c><00:06:47.360><c> of</c><00:06:47.479><c> the</c>

00:06:47.629 --> 00:06:47.639 align:start position:0%
reached under normal usage of the
 

00:06:47.639 --> 00:06:49.749 align:start position:0%
reached under normal usage of the
function<00:06:48.360><c> since</c><00:06:48.680><c> the</c><00:06:48.840><c> initial</c><00:06:49.240><c> size</c><00:06:49.479><c> that</c><00:06:49.599><c> is</c>

00:06:49.749 --> 00:06:49.759 align:start position:0%
function since the initial size that is
 

00:06:49.759 --> 00:06:51.430 align:start position:0%
function since the initial size that is
passed<00:06:50.039><c> into</c><00:06:50.280><c> this</c><00:06:50.440><c> function</c><00:06:51.160><c> gets</c>

00:06:51.430 --> 00:06:51.440 align:start position:0%
passed into this function gets
 

00:06:51.440 --> 00:06:53.629 align:start position:0%
passed into this function gets
explicitly<00:06:52.080><c> checked</c><00:06:52.599><c> in</c><00:06:52.720><c> the</c><00:06:52.880><c> very</c><00:06:53.080><c> beginning</c>

00:06:53.629 --> 00:06:53.639 align:start position:0%
explicitly checked in the very beginning
 

00:06:53.639 --> 00:06:55.670 align:start position:0%
explicitly checked in the very beginning
if<00:06:53.759><c> it</c><00:06:53.880><c> is</c><00:06:54.039><c> equal</c><00:06:54.280><c> to</c><00:06:54.440><c> zero</c><00:06:54.840><c> and</c><00:06:54.960><c> if</c><00:06:55.120><c> so</c><00:06:55.520><c> an</c>

00:06:55.670 --> 00:06:55.680 align:start position:0%
if it is equal to zero and if so an
 

00:06:55.680 --> 00:06:58.070 align:start position:0%
if it is equal to zero and if so an
invalid<00:06:56.120><c> argument</c><00:06:56.479><c> is</c><00:06:56.800><c> returned</c><00:06:57.520><c> so</c><00:06:57.720><c> the</c><00:06:57.840><c> only</c>

00:06:58.070 --> 00:06:58.080 align:start position:0%
invalid argument is returned so the only
 

00:06:58.080 --> 00:07:00.150 align:start position:0%
invalid argument is returned so the only
way<00:06:58.240><c> we</c><00:06:58.360><c> can</c><00:06:58.560><c> ever</c><00:06:58.759><c> reach</c><00:06:59.039><c> this</c><00:06:59.160><c> block</c><00:06:59.360><c> of</c><00:06:59.639><c> code</c>

00:07:00.150 --> 00:07:00.160 align:start position:0%
way we can ever reach this block of code
 

00:07:00.160 --> 00:07:02.350 align:start position:0%
way we can ever reach this block of code
is<00:07:00.360><c> by</c><00:07:00.560><c> triggering</c><00:07:01.240><c> this</c><00:07:01.400><c> integer</c><00:07:01.840><c> overflow</c>

00:07:02.350 --> 00:07:02.360 align:start position:0%
is by triggering this integer overflow
 

00:07:02.360 --> 00:07:04.469 align:start position:0%
is by triggering this integer overflow
bug<00:07:02.759><c> which</c><00:07:02.919><c> of</c><00:07:03.080><c> course</c><00:07:03.440><c> should</c><00:07:03.680><c> not</c><00:07:03.879><c> be</c><00:07:04.120><c> there</c>

00:07:04.469 --> 00:07:04.479 align:start position:0%
bug which of course should not be there
 

00:07:04.479 --> 00:07:05.909 align:start position:0%
bug which of course should not be there
I<00:07:04.560><c> would</c><00:07:04.720><c> assume</c><00:07:05.000><c> the</c><00:07:05.120><c> reason</c><00:07:05.360><c> for</c><00:07:05.560><c> this</c><00:07:05.800><c> is</c>

00:07:05.909 --> 00:07:05.919 align:start position:0%
I would assume the reason for this is
 

00:07:05.919 --> 00:07:07.670 align:start position:0%
I would assume the reason for this is
that<00:07:06.160><c> this</c><00:07:06.280><c> is</c><00:07:06.479><c> actually</c><00:07:06.800><c> just</c><00:07:06.960><c> some</c><00:07:07.199><c> Legacy</c>

00:07:07.670 --> 00:07:07.680 align:start position:0%
that this is actually just some Legacy
 

00:07:07.680 --> 00:07:09.950 align:start position:0%
that this is actually just some Legacy
code<00:07:08.000><c> left</c><00:07:08.280><c> behind</c><00:07:08.960><c> since</c><00:07:09.199><c> this</c><00:07:09.360><c> kernel</c><00:07:09.800><c> is</c>

00:07:09.950 --> 00:07:09.960 align:start position:0%
code left behind since this kernel is
 

00:07:09.960 --> 00:07:13.189 align:start position:0%
code left behind since this kernel is
very<00:07:10.160><c> old</c><00:07:10.440><c> dating</c><00:07:10.759><c> all</c><00:07:10.879><c> the</c><00:07:11.000><c> way</c><00:07:11.199><c> back</c><00:07:11.400><c> to</c><00:07:12.199><c> 1985</c>

00:07:13.189 --> 00:07:13.199 align:start position:0%
very old dating all the way back to 1985
 

00:07:13.199 --> 00:07:15.350 align:start position:0%
very old dating all the way back to 1985
but<00:07:13.360><c> anyway</c><00:07:13.680><c> this</c><00:07:13.840><c> Branch</c><00:07:14.199><c> does</c><00:07:14.440><c> get</c><00:07:14.599><c> taken</c>

00:07:15.350 --> 00:07:15.360 align:start position:0%
but anyway this Branch does get taken
 

00:07:15.360 --> 00:07:18.189 align:start position:0%
but anyway this Branch does get taken
and<00:07:15.560><c> then</c><00:07:15.720><c> a</c><00:07:15.879><c> new</c><00:07:16.160><c> size</c><00:07:16.520><c> value</c><00:07:16.879><c> is</c><00:07:17.199><c> calculated</c>

00:07:18.189 --> 00:07:18.199 align:start position:0%
and then a new size value is calculated
 

00:07:18.199 --> 00:07:20.830 align:start position:0%
and then a new size value is calculated
based<00:07:18.520><c> on</c><00:07:18.720><c> the</c><00:07:18.919><c> named</c><00:07:19.400><c> entry</c><00:07:20.199><c> we</c><00:07:20.360><c> take</c><00:07:20.599><c> the</c>

00:07:20.830 --> 00:07:20.840 align:start position:0%
based on the named entry we take the
 

00:07:20.840 --> 00:07:23.869 align:start position:0%
based on the named entry we take the
size<00:07:21.120><c> of</c><00:07:21.280><c> the</c><00:07:21.400><c> named</c><00:07:21.720><c> entry</c><00:07:22.240><c> minus</c><00:07:22.800><c> the</c><00:07:23.000><c> offset</c>

00:07:23.869 --> 00:07:23.879 align:start position:0%
size of the named entry minus the offset
 

00:07:23.879 --> 00:07:25.990 align:start position:0%
size of the named entry minus the offset
into<00:07:24.120><c> this</c><00:07:24.280><c> VM</c><00:07:24.639><c> object</c><00:07:25.160><c> which</c><00:07:25.319><c> we</c><00:07:25.440><c> can</c><00:07:25.599><c> also</c>

00:07:25.990 --> 00:07:26.000 align:start position:0%
into this VM object which we can also
 

00:07:26.000 --> 00:07:28.670 align:start position:0%
into this VM object which we can also
specify<00:07:26.720><c> in</c><00:07:26.840><c> the</c><00:07:27.000><c> C</c><00:07:27.240><c> to</c><00:07:27.360><c> VM</c><00:07:27.680><c> map</c><00:07:28.240><c> and</c><00:07:28.400><c> whatever</c>

00:07:28.670 --> 00:07:28.680 align:start position:0%
specify in the C to VM map and whatever
 

00:07:28.680 --> 00:07:30.670 align:start position:0%
specify in the C to VM map and whatever
the<00:07:28.840><c> result</c><00:07:29.080><c> of</c><00:07:29.240><c> that</c><00:07:29.360><c> is</c><00:07:29.560><c> is</c><00:07:29.879><c> is</c><00:07:30.039><c> assigned</c><00:07:30.479><c> to</c>

00:07:30.670 --> 00:07:30.680 align:start position:0%
the result of that is is is assigned to
 

00:07:30.680 --> 00:07:32.670 align:start position:0%
the result of that is is is assigned to
the<00:07:30.840><c> size</c><00:07:31.120><c> variable</c><00:07:31.639><c> further</c><00:07:31.960><c> down</c><00:07:32.120><c> the</c><00:07:32.280><c> code</c>

00:07:32.670 --> 00:07:32.680 align:start position:0%
the size variable further down the code
 

00:07:32.680 --> 00:07:35.350 align:start position:0%
the size variable further down the code
VM<00:07:33.039><c> map</c><00:07:33.280><c> enter</c><00:07:33.599><c> is</c><00:07:33.720><c> called</c><00:07:34.319><c> and</c><00:07:34.520><c> this</c><00:07:34.720><c> new</c><00:07:35.039><c> map</c>

00:07:35.350 --> 00:07:35.360 align:start position:0%
VM map enter is called and this new map
 

00:07:35.360 --> 00:07:37.230 align:start position:0%
VM map enter is called and this new map
size<00:07:35.720><c> is</c><00:07:35.879><c> passed</c><00:07:36.199><c> in</c><00:07:36.560><c> the</c><00:07:36.680><c> kernel</c><00:07:37.039><c> then</c><00:07:37.160><c> at</c>

00:07:37.230 --> 00:07:37.240 align:start position:0%
size is passed in the kernel then at
 

00:07:37.240 --> 00:07:39.150 align:start position:0%
size is passed in the kernel then at
this<00:07:37.360><c> point</c><00:07:37.639><c> proceeds</c><00:07:38.000><c> to</c><00:07:38.199><c> create</c><00:07:38.479><c> a</c><00:07:38.599><c> new</c><00:07:38.800><c> VM</c>

00:07:39.150 --> 00:07:39.160 align:start position:0%
this point proceeds to create a new VM
 

00:07:39.160 --> 00:07:41.710 align:start position:0%
this point proceeds to create a new VM
map<00:07:39.400><c> entry</c><00:07:39.960><c> with</c><00:07:40.199><c> this</c><00:07:40.440><c> size</c><00:07:41.080><c> which</c><00:07:41.199><c> it</c><00:07:41.360><c> Maps</c>

00:07:41.710 --> 00:07:41.720 align:start position:0%
map entry with this size which it Maps
 

00:07:41.720 --> 00:07:43.790 align:start position:0%
map entry with this size which it Maps
into<00:07:42.000><c> our</c><00:07:42.199><c> tasks</c><00:07:42.560><c> address</c><00:07:42.879><c> space</c><00:07:43.400><c> so</c><00:07:43.560><c> how</c><00:07:43.639><c> does</c>

00:07:43.790 --> 00:07:43.800 align:start position:0%
into our tasks address space so how does
 

00:07:43.800 --> 00:07:45.550 align:start position:0%
into our tasks address space so how does
Fizz<00:07:44.120><c> puppet</c><00:07:44.440><c> exploit</c><00:07:44.840><c> this</c><00:07:45.159><c> what</c><00:07:45.240><c> do</c><00:07:45.360><c> we</c>

00:07:45.550 --> 00:07:45.560 align:start position:0%
Fizz puppet exploit this what do we
 

00:07:45.560 --> 00:07:47.710 align:start position:0%
Fizz puppet exploit this what do we
actually<00:07:45.800><c> want</c><00:07:46.000><c> the</c><00:07:46.199><c> size</c><00:07:46.479><c> value</c><00:07:46.759><c> to</c><00:07:46.919><c> be</c><00:07:47.520><c> let's</c>

00:07:47.710 --> 00:07:47.720 align:start position:0%
actually want the size value to be let's
 

00:07:47.720 --> 00:07:49.510 align:start position:0%
actually want the size value to be let's
take<00:07:47.840><c> a</c><00:07:47.960><c> look</c><00:07:48.159><c> back</c><00:07:48.360><c> at</c><00:07:48.560><c> creating</c><00:07:49.000><c> a</c><00:07:49.159><c> memory</c>

00:07:49.510 --> 00:07:49.520 align:start position:0%
take a look back at creating a memory
 

00:07:49.520 --> 00:07:51.790 align:start position:0%
take a look back at creating a memory
object<00:07:49.960><c> the</c><00:07:50.080><c> F</c><00:07:50.360><c> puppet</c><00:07:50.639><c> exploit</c><00:07:51.000><c> calls</c><00:07:51.400><c> Muk</c>

00:07:51.790 --> 00:07:51.800 align:start position:0%
object the F puppet exploit calls Muk
 

00:07:51.800 --> 00:07:54.550 align:start position:0%
object the F puppet exploit calls Muk
memory<00:07:52.199><c> object</c><00:07:52.520><c> memory</c><00:07:52.840><c> entry</c><00:07:53.159><c> 64</c><00:07:53.840><c> and</c><00:07:54.080><c> passes</c>

00:07:54.550 --> 00:07:54.560 align:start position:0%
memory object memory entry 64 and passes
 

00:07:54.560 --> 00:07:56.830 align:start position:0%
memory object memory entry 64 and passes
an<00:07:54.759><c> unaligned</c><00:07:55.560><c> size</c><00:07:55.840><c> value</c><00:07:56.280><c> as</c><00:07:56.400><c> the</c><00:07:56.599><c> size</c>

00:07:56.830 --> 00:07:56.840 align:start position:0%
an unaligned size value as the size
 

00:07:56.840 --> 00:07:59.469 align:start position:0%
an unaligned size value as the size
argument<00:07:57.720><c> unaligned</c><00:07:58.319><c> meaning</c><00:07:58.680><c> it</c><00:07:58.759><c> is</c><00:07:58.960><c> not</c><00:07:59.159><c> a</c>

00:07:59.469 --> 00:07:59.479 align:start position:0%
argument unaligned meaning it is not a
 

00:07:59.479 --> 00:08:01.469 align:start position:0%
argument unaligned meaning it is not a
multiple<00:07:59.840><c> of</c><00:07:59.960><c> the</c><00:08:00.080><c> page</c><00:08:00.360><c> size</c><00:08:00.919><c> which</c><00:08:01.000><c> is</c><00:08:01.199><c> hex</c>

00:08:01.469 --> 00:08:01.479 align:start position:0%
multiple of the page size which is hex
 

00:08:01.479 --> 00:08:04.270 align:start position:0%
multiple of the page size which is hex
4000<00:08:02.400><c> this</c><00:08:02.520><c> is</c><00:08:02.720><c> fine</c><00:08:03.080><c> and</c><00:08:03.240><c> the</c><00:08:03.360><c> internal</c><00:08:03.919><c> VM</c>

00:08:04.270 --> 00:08:04.280 align:start position:0%
4000 this is fine and the internal VM
 

00:08:04.280 --> 00:08:06.589 align:start position:0%
4000 this is fine and the internal VM
map<00:08:04.560><c> named</c><00:08:04.960><c> entry</c><00:08:05.280><c> structure</c><00:08:05.680><c> that's</c><00:08:05.919><c> created</c>

00:08:06.589 --> 00:08:06.599 align:start position:0%
map named entry structure that's created
 

00:08:06.599 --> 00:08:08.670 align:start position:0%
map named entry structure that's created
for<00:08:06.800><c> this</c><00:08:06.919><c> memory</c><00:08:07.240><c> object</c><00:08:08.039><c> has</c><00:08:08.199><c> its</c><00:08:08.440><c> size</c>

00:08:08.670 --> 00:08:08.680 align:start position:0%
for this memory object has its size
 

00:08:08.680 --> 00:08:11.189 align:start position:0%
for this memory object has its size
field<00:08:09.319><c> set</c><00:08:09.599><c> to</c><00:08:09.720><c> the</c><00:08:09.879><c> unaligned</c><00:08:10.440><c> value</c><00:08:10.840><c> in</c><00:08:11.000><c> this</c>

00:08:11.189 --> 00:08:11.199 align:start position:0%
field set to the unaligned value in this
 

00:08:11.199 --> 00:08:14.710 align:start position:0%
field set to the unaligned value in this
case<00:08:11.520><c> of</c><00:08:12.000><c> hex</c><00:08:12.800><c> 801</c><00:08:13.800><c> the</c><00:08:14.000><c> problem</c><00:08:14.440><c> however</c>

00:08:14.710 --> 00:08:14.720 align:start position:0%
case of hex 801 the problem however
 

00:08:14.720 --> 00:08:17.029 align:start position:0%
case of hex 801 the problem however
occurs<00:08:15.120><c> in</c><00:08:15.280><c> relation</c><00:08:15.759><c> to</c><00:08:16.080><c> VM</c><00:08:16.479><c> map</c><00:08:16.720><c> entry</c>

00:08:17.029 --> 00:08:17.039 align:start position:0%
occurs in relation to VM map entry
 

00:08:17.039 --> 00:08:19.309 align:start position:0%
occurs in relation to VM map entry
structures<00:08:17.919><c> which</c><00:08:18.039><c> are</c><00:08:18.240><c> always</c><00:08:18.639><c> expected</c><00:08:19.199><c> to</c>

00:08:19.309 --> 00:08:19.319 align:start position:0%
structures which are always expected to
 

00:08:19.319 --> 00:08:21.430 align:start position:0%
structures which are always expected to
be<00:08:19.520><c> page</c><00:08:19.800><c> aligned</c><00:08:20.360><c> under</c><00:08:20.599><c> normal</c><00:08:20.919><c> execution</c>

00:08:21.430 --> 00:08:21.440 align:start position:0%
be page aligned under normal execution
 

00:08:21.440 --> 00:08:24.189 align:start position:0%
be page aligned under normal execution
the<00:08:21.599><c> konel</c><00:08:21.960><c> uses</c><00:08:22.479><c> the</c><00:08:22.599><c> macro</c><00:08:23.159><c> VM</c><00:08:23.520><c> object</c><00:08:23.800><c> round</c>

00:08:24.189 --> 00:08:24.199 align:start position:0%
the konel uses the macro VM object round
 

00:08:24.199 --> 00:08:26.550 align:start position:0%
the konel uses the macro VM object round
page<00:08:24.599><c> as</c><00:08:24.680><c> we</c><00:08:24.840><c> already</c><00:08:25.039><c> saw</c><00:08:25.520><c> to</c><00:08:25.720><c> round</c><00:08:26.000><c> up</c><00:08:26.319><c> any</c>

00:08:26.550 --> 00:08:26.560 align:start position:0%
page as we already saw to round up any
 

00:08:26.560 --> 00:08:28.629 align:start position:0%
page as we already saw to round up any
size<00:08:26.879><c> value</c><00:08:27.479><c> such</c><00:08:27.720><c> that</c><00:08:27.840><c> when</c><00:08:27.960><c> it</c><00:08:28.120><c> creates</c><00:08:28.520><c> a</c>

00:08:28.629 --> 00:08:28.639 align:start position:0%
size value such that when it creates a
 

00:08:28.639 --> 00:08:29.950 align:start position:0%
size value such that when it creates a
new<00:08:28.840><c> VM</c><00:08:29.120><c> map</c>

00:08:29.950 --> 00:08:29.960 align:start position:0%
new VM map
 

00:08:29.960 --> 00:08:32.389 align:start position:0%
new VM map
the<00:08:30.120><c> start</c><00:08:30.360><c> and</c><00:08:30.520><c> end</c><00:08:30.759><c> fields</c><00:08:31.360><c> are</c><00:08:31.599><c> always</c><00:08:32.120><c> page</c>

00:08:32.389 --> 00:08:32.399 align:start position:0%
the start and end fields are always page
 

00:08:32.399 --> 00:08:34.110 align:start position:0%
the start and end fields are always page
aligned<00:08:33.080><c> however</c><00:08:33.279><c> due</c><00:08:33.479><c> to</c><00:08:33.599><c> the</c><00:08:33.719><c> integer</c>

00:08:34.110 --> 00:08:34.120 align:start position:0%
aligned however due to the integer
 

00:08:34.120 --> 00:08:36.269 align:start position:0%
aligned however due to the integer
overflow<00:08:34.880><c> we've</c><00:08:35.080><c> managed</c><00:08:35.440><c> to</c><00:08:35.680><c> subvert</c><00:08:36.159><c> the</c>

00:08:36.269 --> 00:08:36.279 align:start position:0%
overflow we've managed to subvert the
 

00:08:36.279 --> 00:08:38.350 align:start position:0%
overflow we've managed to subvert the
flow<00:08:36.760><c> to</c><00:08:36.959><c> some</c><00:08:37.279><c> Legacy</c><00:08:37.760><c> code</c><00:08:38.120><c> which</c>

00:08:38.350 --> 00:08:38.360 align:start position:0%
flow to some Legacy code which
 

00:08:38.360 --> 00:08:40.709 align:start position:0%
flow to some Legacy code which
calculates<00:08:38.880><c> the</c><00:08:39.039><c> size</c><00:08:39.560><c> based</c><00:08:39.839><c> on</c><00:08:40.039><c> the</c><00:08:40.240><c> size</c><00:08:40.560><c> of</c>

00:08:40.709 --> 00:08:40.719 align:start position:0%
calculates the size based on the size of
 

00:08:40.719 --> 00:08:43.190 align:start position:0%
calculates the size based on the size of
a<00:08:41.000><c> VM</c><00:08:41.360><c> map</c><00:08:41.640><c> named</c><00:08:41.919><c> entry</c><00:08:42.240><c> structure</c><00:08:42.880><c> which</c><00:08:43.039><c> we</c>

00:08:43.190 --> 00:08:43.200 align:start position:0%
a VM map named entry structure which we
 

00:08:43.200 --> 00:08:45.110 align:start position:0%
a VM map named entry structure which we
control<00:08:43.680><c> so</c><00:08:43.880><c> by</c><00:08:44.039><c> taking</c><00:08:44.360><c> the</c><00:08:44.480><c> named</c><00:08:44.800><c> entry</c>

00:08:45.110 --> 00:08:45.120 align:start position:0%
control so by taking the named entry
 

00:08:45.120 --> 00:08:48.430 align:start position:0%
control so by taking the named entry
structure<00:08:45.720><c> size</c><00:08:46.160><c> of</c><00:08:46.600><c> 80001</c><00:08:47.600><c> and</c><00:08:47.760><c> subtrac</c><00:08:48.160><c> in</c>

00:08:48.430 --> 00:08:48.440 align:start position:0%
structure size of 80001 and subtrac in
 

00:08:48.440 --> 00:08:51.070 align:start position:0%
structure size of 80001 and subtrac in
one<00:08:48.760><c> page</c><00:08:49.200><c> hex</c><00:08:49.480><c> 4000</c><00:08:50.200><c> we</c><00:08:50.320><c> are</c><00:08:50.480><c> left</c><00:08:50.720><c> with</c><00:08:50.839><c> a</c>

00:08:51.070 --> 00:08:51.080 align:start position:0%
one page hex 4000 we are left with a
 

00:08:51.080 --> 00:08:52.750 align:start position:0%
one page hex 4000 we are left with a
size<00:08:51.399><c> of</c><00:08:51.640><c> hex</c>

00:08:52.750 --> 00:08:52.760 align:start position:0%
size of hex
 

00:08:52.760 --> 00:08:55.630 align:start position:0%
size of hex
40001<00:08:53.760><c> which</c><00:08:53.959><c> is</c><00:08:54.160><c> not</c><00:08:54.480><c> page</c><00:08:54.720><c> aligned</c><00:08:55.360><c> this</c>

00:08:55.630 --> 00:08:55.640 align:start position:0%
40001 which is not page aligned this
 

00:08:55.640 --> 00:08:57.949 align:start position:0%
40001 which is not page aligned this
size<00:08:56.040><c> is</c><00:08:56.200><c> then</c><00:08:56.399><c> used</c><00:08:56.720><c> in</c><00:08:56.839><c> the</c><00:08:56.959><c> call</c><00:08:57.200><c> to</c><00:08:57.440><c> VM</c><00:08:57.760><c> map</c>

00:08:57.949 --> 00:08:57.959 align:start position:0%
size is then used in the call to VM map
 

00:08:57.959 --> 00:09:00.430 align:start position:0%
size is then used in the call to VM map
enter<00:08:58.320><c> as</c><00:08:58.440><c> the</c><00:08:58.560><c> map</c><00:08:58.839><c> size</c><00:08:59.560><c> which</c><00:08:59.800><c> proceeds</c><00:09:00.200><c> to</c>

00:09:00.430 --> 00:09:00.440 align:start position:0%
enter as the map size which proceeds to
 

00:09:00.440 --> 00:09:02.949 align:start position:0%
enter as the map size which proceeds to
create<00:09:00.760><c> a</c><00:09:00.920><c> new</c><00:09:01.120><c> VM</c><00:09:01.480><c> map</c><00:09:01.680><c> entry</c><00:09:01.959><c> structure</c><00:09:02.760><c> and</c>

00:09:02.949 --> 00:09:02.959 align:start position:0%
create a new VM map entry structure and
 

00:09:02.959 --> 00:09:05.630 align:start position:0%
create a new VM map entry structure and
adds<00:09:03.200><c> it</c><00:09:03.480><c> to</c><00:09:03.640><c> our</c><00:09:03.880><c> task</c><00:09:04.240><c> VM</c><00:09:04.600><c> map</c><00:09:04.959><c> at</c><00:09:05.120><c> this</c><00:09:05.320><c> point</c>

00:09:05.630 --> 00:09:05.640 align:start position:0%
adds it to our task VM map at this point
 

00:09:05.640 --> 00:09:08.110 align:start position:0%
adds it to our task VM map at this point
we<00:09:05.880><c> have</c><00:09:06.160><c> a</c><00:09:06.320><c> VM</c><00:09:06.640><c> map</c><00:09:06.839><c> entry</c><00:09:07.120><c> structure</c><00:09:07.800><c> mapped</c>

00:09:08.110 --> 00:09:08.120 align:start position:0%
we have a VM map entry structure mapped
 

00:09:08.120 --> 00:09:10.790 align:start position:0%
we have a VM map entry structure mapped
into<00:09:08.360><c> our</c><00:09:08.600><c> task</c><00:09:09.440><c> that</c><00:09:09.640><c> has</c><00:09:09.880><c> a</c><00:09:10.120><c> page</c><00:09:10.399><c> aligned</c>

00:09:10.790 --> 00:09:10.800 align:start position:0%
into our task that has a page aligned
 

00:09:10.800 --> 00:09:13.590 align:start position:0%
into our task that has a page aligned
start<00:09:11.120><c> address</c><00:09:11.680><c> but</c><00:09:11.880><c> a</c><00:09:12.160><c> page</c><00:09:12.560><c> unaligned</c><00:09:13.320><c> end</c>

00:09:13.590 --> 00:09:13.600 align:start position:0%
start address but a page unaligned end
 

00:09:13.600 --> 00:09:15.389 align:start position:0%
start address but a page unaligned end
address<00:09:14.160><c> a</c><00:09:14.480><c> condition</c><00:09:14.839><c> that</c><00:09:14.959><c> should</c><00:09:15.160><c> not</c>

00:09:15.389 --> 00:09:15.399 align:start position:0%
address a condition that should not
 

00:09:15.399 --> 00:09:17.470 align:start position:0%
address a condition that should not
normally<00:09:15.760><c> occur</c><00:09:16.279><c> next</c><00:09:16.519><c> Fizz</c><00:09:16.880><c> puppet</c><00:09:17.200><c> simply</c>

00:09:17.470 --> 00:09:17.480 align:start position:0%
normally occur next Fizz puppet simply
 

00:09:17.480 --> 00:09:19.670 align:start position:0%
normally occur next Fizz puppet simply
triggers<00:09:17.920><c> a</c><00:09:18.120><c> page</c><00:09:18.320><c> fault</c><00:09:18.880><c> in</c><00:09:19.120><c> both</c><00:09:19.360><c> of</c><00:09:19.519><c> the</c>

00:09:19.670 --> 00:09:19.680 align:start position:0%
triggers a page fault in both of the
 

00:09:19.680 --> 00:09:22.550 align:start position:0%
triggers a page fault in both of the
newly<00:09:19.959><c> mapped</c><00:09:20.360><c> Pages</c><00:09:21.200><c> by</c><00:09:21.480><c> mem</c><00:09:21.880><c> setting</c><00:09:22.240><c> some</c>

00:09:22.550 --> 00:09:22.560 align:start position:0%
newly mapped Pages by mem setting some
 

00:09:22.560 --> 00:09:24.710 align:start position:0%
newly mapped Pages by mem setting some
random<00:09:22.839><c> bites</c><00:09:23.480><c> if</c><00:09:23.560><c> you</c><00:09:23.680><c> remember</c><00:09:24.000><c> from</c><00:09:24.200><c> before</c>

00:09:24.710 --> 00:09:24.720 align:start position:0%
random bites if you remember from before
 

00:09:24.720 --> 00:09:26.509 align:start position:0%
random bites if you remember from before
this<00:09:24.839><c> triggers</c><00:09:25.200><c> the</c><00:09:25.360><c> konel</c><00:09:25.720><c> to</c><00:09:25.959><c> pull</c><00:09:26.240><c> new</c>

00:09:26.509 --> 00:09:26.519 align:start position:0%
this triggers the konel to pull new
 

00:09:26.519 --> 00:09:28.710 align:start position:0%
this triggers the konel to pull new
pages<00:09:26.880><c> from</c><00:09:27.040><c> the</c><00:09:27.160><c> free</c><00:09:27.440><c> list</c><00:09:27.959><c> and</c><00:09:28.160><c> add</c><00:09:28.360><c> them</c><00:09:28.519><c> to</c>

00:09:28.710 --> 00:09:28.720 align:start position:0%
pages from the free list and add them to
 

00:09:28.720 --> 00:09:31.430 align:start position:0%
pages from the free list and add them to
the<00:09:28.839><c> underlying</c><00:09:29.560><c> VM</c><00:09:29.920><c> object</c><00:09:30.560><c> and</c><00:09:30.760><c> also</c><00:09:31.120><c> add</c>

00:09:31.430 --> 00:09:31.440 align:start position:0%
the underlying VM object and also add
 

00:09:31.440 --> 00:09:33.910 align:start position:0%
the underlying VM object and also add
two<00:09:31.760><c> page</c><00:09:32.000><c> table</c><00:09:32.279><c> entries</c><00:09:32.959><c> into</c><00:09:33.240><c> our</c><00:09:33.440><c> tasks</c>

00:09:33.910 --> 00:09:33.920 align:start position:0%
two page table entries into our tasks
 

00:09:33.920 --> 00:09:36.190 align:start position:0%
two page table entries into our tasks
pmap<00:09:34.560><c> representing</c><00:09:35.120><c> these</c><00:09:35.320><c> Pages</c><00:09:35.920><c> at</c><00:09:36.040><c> this</c>

00:09:36.190 --> 00:09:36.200 align:start position:0%
pmap representing these Pages at this
 

00:09:36.200 --> 00:09:37.750 align:start position:0%
pmap representing these Pages at this
point<00:09:36.360><c> we're</c><00:09:36.560><c> only</c><00:09:36.760><c> one</c><00:09:36.959><c> step</c><00:09:37.160><c> away</c><00:09:37.519><c> from</c>

00:09:37.750 --> 00:09:37.760 align:start position:0%
point we're only one step away from
 

00:09:37.760 --> 00:09:39.509 align:start position:0%
point we're only one step away from
creating<00:09:38.120><c> the</c><00:09:38.279><c> dangling</c><00:09:38.800><c> page</c><00:09:39.040><c> table</c><00:09:39.279><c> entry</c>

00:09:39.509 --> 00:09:39.519 align:start position:0%
creating the dangling page table entry
 

00:09:39.519 --> 00:09:41.829 align:start position:0%
creating the dangling page table entry
scenario<00:09:40.160><c> all</c><00:09:40.279><c> we</c><00:09:40.360><c> need</c><00:09:40.480><c> to</c><00:09:40.640><c> do</c><00:09:40.880><c> is</c><00:09:41.120><c> unmap</c><00:09:41.680><c> the</c>

00:09:41.829 --> 00:09:41.839 align:start position:0%
scenario all we need to do is unmap the
 

00:09:41.839 --> 00:09:43.670 align:start position:0%
scenario all we need to do is unmap the
special<00:09:42.120><c> VM</c><00:09:42.440><c> map</c><00:09:42.640><c> entry</c><00:09:42.920><c> structure</c><00:09:43.399><c> that</c><00:09:43.560><c> has</c>

00:09:43.670 --> 00:09:43.680 align:start position:0%
special VM map entry structure that has
 

00:09:43.680 --> 00:09:46.790 align:start position:0%
special VM map entry structure that has
the<00:09:43.800><c> unaligned</c><00:09:44.360><c> end</c><00:09:45.120><c> we</c><00:09:45.360><c> call</c><00:09:45.600><c> VM</c><00:09:45.920><c> deallocate</c>

00:09:46.790 --> 00:09:46.800 align:start position:0%
the unaligned end we call VM deallocate
 

00:09:46.800 --> 00:09:48.710 align:start position:0%
the unaligned end we call VM deallocate
with<00:09:46.920><c> the</c><00:09:47.079><c> address</c><00:09:47.360><c> of</c><00:09:47.480><c> this</c><00:09:47.640><c> region</c><00:09:48.360><c> and</c><00:09:48.519><c> a</c>

00:09:48.710 --> 00:09:48.720 align:start position:0%
with the address of this region and a
 

00:09:48.720 --> 00:09:50.710 align:start position:0%
with the address of this region and a
size<00:09:49.040><c> of</c><00:09:49.240><c> two</c><00:09:49.480><c> pages</c><00:09:49.959><c> in</c><00:09:50.079><c> the</c><00:09:50.200><c> kernel</c><00:09:50.600><c> the</c>

00:09:50.710 --> 00:09:50.720 align:start position:0%
size of two pages in the kernel the
 

00:09:50.720 --> 00:09:53.030 align:start position:0%
size of two pages in the kernel the
function<00:09:51.079><c> VM</c><00:09:51.440><c> map</c><00:09:51.680><c> delete</c><00:09:52.440><c> successfully</c>

00:09:53.030 --> 00:09:53.040 align:start position:0%
function VM map delete successfully
 

00:09:53.040 --> 00:09:55.670 align:start position:0%
function VM map delete successfully
unlinks<00:09:53.720><c> this</c><00:09:53.880><c> VM</c><00:09:54.160><c> map</c><00:09:54.360><c> entry</c><00:09:54.839><c> from</c><00:09:55.000><c> our</c><00:09:55.240><c> tasks</c>

00:09:55.670 --> 00:09:55.680 align:start position:0%
unlinks this VM map entry from our tasks
 

00:09:55.680 --> 00:09:58.550 align:start position:0%
unlinks this VM map entry from our tasks
VM<00:09:56.040><c> map</c><00:09:56.720><c> however</c><00:09:56.959><c> when</c><00:09:57.240><c> pmap</c><00:09:57.680><c> remove</c><00:09:58.120><c> options</c>

00:09:58.550 --> 00:09:58.560 align:start position:0%
VM map however when pmap remove options
 

00:09:58.560 --> 00:10:00.069 align:start position:0%
VM map however when pmap remove options
attempts<00:09:58.880><c> to</c><00:09:59.000><c> remove</c><00:09:59.399><c> the</c><00:09:59.519><c> corresponding</c>

00:10:00.069 --> 00:10:00.079 align:start position:0%
attempts to remove the corresponding
 

00:10:00.079 --> 00:10:02.470 align:start position:0%
attempts to remove the corresponding
page<00:10:00.320><c> table</c><00:10:00.600><c> entries</c><00:10:01.240><c> for</c><00:10:01.519><c> the</c><00:10:01.680><c> two</c><00:10:02.000><c> pages</c>

00:10:02.470 --> 00:10:02.480 align:start position:0%
page table entries for the two pages
 

00:10:02.480 --> 00:10:04.710 align:start position:0%
page table entries for the two pages
covered<00:10:02.800><c> by</c><00:10:02.959><c> that</c><00:10:03.120><c> VM</c><00:10:03.440><c> map</c><00:10:03.640><c> entry</c><00:10:04.360><c> another</c>

00:10:04.710 --> 00:10:04.720 align:start position:0%
covered by that VM map entry another
 

00:10:04.720 --> 00:10:06.590 align:start position:0%
covered by that VM map entry another
problem<00:10:05.000><c> occurs</c><00:10:05.680><c> the</c><00:10:05.839><c> start</c><00:10:06.120><c> and</c><00:10:06.240><c> the</c><00:10:06.360><c> end</c>

00:10:06.590 --> 00:10:06.600 align:start position:0%
problem occurs the start and the end
 

00:10:06.600 --> 00:10:08.670 align:start position:0%
problem occurs the start and the end
fields<00:10:07.079><c> from</c><00:10:07.320><c> the</c><00:10:07.440><c> vmap</c><00:10:07.880><c> entry</c><00:10:08.440><c> are</c>

00:10:08.670 --> 00:10:08.680 align:start position:0%
fields from the vmap entry are
 

00:10:08.680 --> 00:10:10.470 align:start position:0%
fields from the vmap entry are
subtracted<00:10:09.200><c> from</c><00:10:09.360><c> one</c><00:10:09.519><c> another</c><00:10:09.839><c> to</c><00:10:10.040><c> calculate</c>

00:10:10.470 --> 00:10:10.480 align:start position:0%
subtracted from one another to calculate
 

00:10:10.480 --> 00:10:12.829 align:start position:0%
subtracted from one another to calculate
the<00:10:10.640><c> difference</c><00:10:11.480><c> or</c><00:10:11.800><c> the</c><00:10:11.920><c> amount</c><00:10:12.160><c> of</c><00:10:12.399><c> pages</c>

00:10:12.829 --> 00:10:12.839 align:start position:0%
the difference or the amount of pages
 

00:10:12.839 --> 00:10:14.389 align:start position:0%
the difference or the amount of pages
that<00:10:12.959><c> need</c><00:10:13.120><c> to</c><00:10:13.240><c> be</c><00:10:13.399><c> removed</c><00:10:13.959><c> because</c><00:10:14.160><c> of</c><00:10:14.279><c> the</c>

00:10:14.389 --> 00:10:14.399 align:start position:0%
that need to be removed because of the
 

00:10:14.399 --> 00:10:17.069 align:start position:0%
that need to be removed because of the
UN<00:10:14.600><c> alignment</c><00:10:15.480><c> end</c><00:10:15.800><c> minus</c><00:10:16.200><c> Start</c><00:10:16.600><c> results</c><00:10:16.959><c> in</c>

00:10:17.069 --> 00:10:17.079 align:start position:0%
UN alignment end minus Start results in
 

00:10:17.079 --> 00:10:20.350 align:start position:0%
UN alignment end minus Start results in
a<00:10:17.279><c> value</c><00:10:17.560><c> of</c><00:10:17.800><c> hex</c><00:10:18.640><c> 401</c><00:10:19.640><c> but</c><00:10:19.760><c> there's</c><00:10:20.000><c> actually</c>

00:10:20.350 --> 00:10:20.360 align:start position:0%
a value of hex 401 but there's actually
 

00:10:20.360 --> 00:10:22.430 align:start position:0%
a value of hex 401 but there's actually
immediately<00:10:20.959><c> a</c><00:10:21.200><c> right</c><00:10:21.440><c> shift</c><00:10:21.880><c> operation</c>

00:10:22.430 --> 00:10:22.440 align:start position:0%
immediately a right shift operation
 

00:10:22.440 --> 00:10:24.550 align:start position:0%
immediately a right shift operation
after<00:10:22.720><c> this</c><00:10:23.160><c> which</c><00:10:23.440><c> causes</c><00:10:23.720><c> us</c><00:10:23.880><c> to</c><00:10:24.079><c> lose</c><00:10:24.399><c> the</c>

00:10:24.550 --> 00:10:24.560 align:start position:0%
after this which causes us to lose the
 

00:10:24.560 --> 00:10:26.190 align:start position:0%
after this which causes us to lose the
least<00:10:24.800><c> significant</c><00:10:25.279><c> bits</c><00:10:25.760><c> the</c><00:10:25.880><c> colonel</c>

00:10:26.190 --> 00:10:26.200 align:start position:0%
least significant bits the colonel
 

00:10:26.200 --> 00:10:27.550 align:start position:0%
least significant bits the colonel
doesn't<00:10:26.440><c> recognize</c><00:10:26.959><c> this</c><00:10:27.160><c> because</c><00:10:27.320><c> it's</c>

00:10:27.550 --> 00:10:27.560 align:start position:0%
doesn't recognize this because it's
 

00:10:27.560 --> 00:10:29.710 align:start position:0%
doesn't recognize this because it's
expecting<00:10:27.959><c> to</c><00:10:28.200><c> work</c><00:10:28.600><c> with</c><00:10:28.880><c> page</c><00:10:29.320><c> aligned</c>

00:10:29.710 --> 00:10:29.720 align:start position:0%
expecting to work with page aligned
 

00:10:29.720 --> 00:10:31.790 align:start position:0%
expecting to work with page aligned
start<00:10:29.959><c> and</c><00:10:30.120><c> end</c><00:10:30.320><c> addresses</c><00:10:31.120><c> and</c><00:10:31.240><c> so</c><00:10:31.440><c> it</c><00:10:31.600><c> just</c>

00:10:31.790 --> 00:10:31.800 align:start position:0%
start and end addresses and so it just
 

00:10:31.800 --> 00:10:33.710 align:start position:0%
start and end addresses and so it just
proceeds<00:10:32.160><c> as</c><00:10:32.320><c> normal</c><00:10:32.640><c> to</c><00:10:32.800><c> call</c><00:10:33.000><c> the</c><00:10:33.160><c> function</c>

00:10:33.710 --> 00:10:33.720 align:start position:0%
proceeds as normal to call the function
 

00:10:33.720 --> 00:10:36.430 align:start position:0%
proceeds as normal to call the function
pmap<00:10:34.160><c> remove</c><00:10:34.519><c> range</c><00:10:35.000><c> options</c><00:10:35.680><c> to</c><00:10:35.880><c> perform</c><00:10:36.240><c> the</c>

00:10:36.430 --> 00:10:36.440 align:start position:0%
pmap remove range options to perform the
 

00:10:36.440 --> 00:10:38.470 align:start position:0%
pmap remove range options to perform the
actual<00:10:36.800><c> page</c><00:10:37.000><c> table</c><00:10:37.279><c> entry</c><00:10:37.600><c> removals</c><00:10:38.279><c> because</c>

00:10:38.470 --> 00:10:38.480 align:start position:0%
actual page table entry removals because
 

00:10:38.480 --> 00:10:40.829 align:start position:0%
actual page table entry removals because
our<00:10:38.680><c> value</c><00:10:39.040><c> was</c><00:10:39.240><c> essentially</c><00:10:39.680><c> truncated</c><00:10:40.519><c> only</c>

00:10:40.829 --> 00:10:40.839 align:start position:0%
our value was essentially truncated only
 

00:10:40.839 --> 00:10:42.949 align:start position:0%
our value was essentially truncated only
the<00:10:41.040><c> first</c><00:10:41.320><c> of</c><00:10:41.480><c> the</c><00:10:41.600><c> two</c><00:10:41.839><c> page</c><00:10:42.079><c> table</c><00:10:42.360><c> entries</c>

00:10:42.949 --> 00:10:42.959 align:start position:0%
the first of the two page table entries
 

00:10:42.959 --> 00:10:45.509 align:start position:0%
the first of the two page table entries
gets<00:10:43.200><c> removed</c><00:10:43.920><c> leaving</c><00:10:44.360><c> one</c><00:10:44.680><c> dangling</c><00:10:45.279><c> page</c>

00:10:45.509 --> 00:10:45.519 align:start position:0%
gets removed leaving one dangling page
 

00:10:45.519 --> 00:10:47.870 align:start position:0%
gets removed leaving one dangling page
table<00:10:45.760><c> entry</c><00:10:46.160><c> still</c><00:10:46.440><c> in</c><00:10:46.600><c> our</c><00:10:46.839><c> tasks</c><00:10:47.240><c> pmap</c><00:10:47.760><c> to</c>

00:10:47.870 --> 00:10:47.880 align:start position:0%
table entry still in our tasks pmap to
 

00:10:47.880 --> 00:10:49.629 align:start position:0%
table entry still in our tasks pmap to
free<00:10:48.200><c> the</c><00:10:48.320><c> corresponding</c><00:10:48.920><c> Pages</c><00:10:49.320><c> back</c><00:10:49.440><c> to</c><00:10:49.560><c> the</c>

00:10:49.629 --> 00:10:49.639 align:start position:0%
free the corresponding Pages back to the
 

00:10:49.639 --> 00:10:51.629 align:start position:0%
free the corresponding Pages back to the
free<00:10:49.920><c> list</c><00:10:50.519><c> we</c><00:10:50.639><c> just</c><00:10:50.760><c> need</c><00:10:50.880><c> to</c><00:10:51.120><c> destroy</c><00:10:51.519><c> the</c>

00:10:51.629 --> 00:10:51.639 align:start position:0%
free list we just need to destroy the
 

00:10:51.639 --> 00:10:53.829 align:start position:0%
free list we just need to destroy the
backin<00:10:52.040><c> VM</c><00:10:52.399><c> object</c><00:10:53.000><c> which</c><00:10:53.200><c> at</c><00:10:53.360><c> this</c><00:10:53.519><c> point</c>

00:10:53.829 --> 00:10:53.839 align:start position:0%
backin VM object which at this point
 

00:10:53.839 --> 00:10:55.230 align:start position:0%
backin VM object which at this point
still<00:10:54.079><c> actually</c><00:10:54.360><c> has</c><00:10:54.560><c> one</c><00:10:54.920><c> remaining</c>

00:10:55.230 --> 00:10:55.240 align:start position:0%
still actually has one remaining
 

00:10:55.240 --> 00:10:56.949 align:start position:0%
still actually has one remaining
reference<00:10:55.880><c> which</c><00:10:56.000><c> is</c><00:10:56.160><c> the</c><00:10:56.320><c> named</c><00:10:56.680><c> memory</c>

00:10:56.949 --> 00:10:56.959 align:start position:0%
reference which is the named memory
 

00:10:56.959 --> 00:10:58.870 align:start position:0%
reference which is the named memory
entry<00:10:57.279><c> from</c><00:10:57.480><c> before</c><00:10:58.000><c> to</c><00:10:58.160><c> solve</c><00:10:58.480><c> this</c><00:10:58.639><c> we</c><00:10:58.760><c> can</c>

00:10:58.870 --> 00:10:58.880 align:start position:0%
entry from before to solve this we can
 

00:10:58.880 --> 00:11:00.790 align:start position:0%
entry from before to solve this we can
just<00:10:59.000><c> call</c><00:10:59.440><c> mck</c><00:10:59.720><c> port</c><00:10:59.959><c> deallocate</c><00:11:00.560><c> with</c><00:11:00.680><c> the</c>

00:11:00.790 --> 00:11:00.800 align:start position:0%
just call mck port deallocate with the
 

00:11:00.800 --> 00:11:02.949 align:start position:0%
just call mck port deallocate with the
named<00:11:01.079><c> entry</c><00:11:01.399><c> port</c><00:11:02.000><c> to</c><00:11:02.240><c> deallocate</c><00:11:02.839><c> that</c>

00:11:02.949 --> 00:11:02.959 align:start position:0%
named entry port to deallocate that
 

00:11:02.959 --> 00:11:04.949 align:start position:0%
named entry port to deallocate that
named<00:11:03.279><c> entry</c><00:11:03.839><c> and</c><00:11:04.000><c> all</c><00:11:04.160><c> of</c><00:11:04.279><c> the</c><00:11:04.399><c> structures</c>

00:11:04.949 --> 00:11:04.959 align:start position:0%
named entry and all of the structures
 

00:11:04.959 --> 00:11:06.870 align:start position:0%
named entry and all of the structures
associated<00:11:05.440><c> with</c><00:11:05.560><c> it</c><00:11:05.800><c> the</c><00:11:05.920><c> VM</c><00:11:06.279><c> object</c><00:11:06.600><c> at</c><00:11:06.720><c> this</c>

00:11:06.870 --> 00:11:06.880 align:start position:0%
associated with it the VM object at this
 

00:11:06.880 --> 00:11:08.990 align:start position:0%
associated with it the VM object at this
point<00:11:07.120><c> gets</c><00:11:07.440><c> destroyed</c><00:11:08.120><c> and</c><00:11:08.240><c> the</c><00:11:08.360><c> two</c><00:11:08.600><c> VM</c>

00:11:08.990 --> 00:11:09.000 align:start position:0%
point gets destroyed and the two VM
 

00:11:09.000 --> 00:11:11.190 align:start position:0%
point gets destroyed and the two VM
pages<00:11:09.399><c> that</c><00:11:09.519><c> were</c><00:11:09.680><c> in</c><00:11:09.800><c> the</c><00:11:09.920><c> VM</c><00:11:10.240><c> object</c><00:11:10.639><c> get</c><00:11:10.880><c> put</c>

00:11:11.190 --> 00:11:11.200 align:start position:0%
pages that were in the VM object get put
 

00:11:11.200 --> 00:11:13.350 align:start position:0%
pages that were in the VM object get put
back<00:11:11.360><c> on</c><00:11:11.480><c> the</c><00:11:11.560><c> free</c><00:11:11.839><c> list</c><00:11:12.279><c> ready</c><00:11:12.440><c> for</c><00:11:12.639><c> reuse</c>

00:11:13.350 --> 00:11:13.360 align:start position:0%
back on the free list ready for reuse
 

00:11:13.360 --> 00:11:15.030 align:start position:0%
back on the free list ready for reuse
one<00:11:13.519><c> last</c><00:11:13.720><c> fix</c><00:11:13.959><c> up</c><00:11:14.160><c> is</c><00:11:14.320><c> required</c><00:11:14.760><c> before</c><00:11:14.959><c> we</c>

00:11:15.030 --> 00:11:15.040 align:start position:0%
one last fix up is required before we
 

00:11:15.040 --> 00:11:16.670 align:start position:0%
one last fix up is required before we
can<00:11:15.160><c> actually</c><00:11:15.440><c> make</c><00:11:15.680><c> use</c><00:11:15.959><c> of</c><00:11:16.079><c> the</c><00:11:16.200><c> dangling</c>

00:11:16.670 --> 00:11:16.680 align:start position:0%
can actually make use of the dangling
 

00:11:16.680 --> 00:11:19.110 align:start position:0%
can actually make use of the dangling
page<00:11:16.880><c> table</c><00:11:17.120><c> entry</c><00:11:18.040><c> we</c><00:11:18.200><c> no</c><00:11:18.360><c> longer</c><00:11:18.680><c> have</c><00:11:18.920><c> any</c>

00:11:19.110 --> 00:11:19.120 align:start position:0%
page table entry we no longer have any
 

00:11:19.120 --> 00:11:21.069 align:start position:0%
page table entry we no longer have any
mapping<00:11:19.519><c> in</c><00:11:19.639><c> our</c><00:11:19.800><c> VM</c><00:11:20.079><c> map</c><00:11:20.360><c> that</c><00:11:20.519><c> covers</c><00:11:20.880><c> the</c>

00:11:21.069 --> 00:11:21.079 align:start position:0%
mapping in our VM map that covers the
 

00:11:21.079 --> 00:11:23.110 align:start position:0%
mapping in our VM map that covers the
address<00:11:21.480><c> range</c><00:11:22.079><c> that</c><00:11:22.240><c> the</c><00:11:22.360><c> page</c><00:11:22.600><c> table</c><00:11:22.839><c> entry</c>

00:11:23.110 --> 00:11:23.120 align:start position:0%
address range that the page table entry
 

00:11:23.120 --> 00:11:25.870 align:start position:0%
address range that the page table entry
falls<00:11:23.440><c> into</c><00:11:24.079><c> because</c><00:11:24.279><c> we</c><00:11:24.440><c> just</c><00:11:24.639><c> unmapped</c><00:11:25.120><c> it</c>

00:11:25.870 --> 00:11:25.880 align:start position:0%
falls into because we just unmapped it
 

00:11:25.880 --> 00:11:27.790 align:start position:0%
falls into because we just unmapped it
so<00:11:26.079><c> now</c><00:11:26.240><c> what</c><00:11:26.360><c> we</c><00:11:26.480><c> need</c><00:11:26.600><c> to</c><00:11:26.760><c> do</c><00:11:27.000><c> is</c><00:11:27.200><c> make</c><00:11:27.399><c> a</c><00:11:27.600><c> very</c>

00:11:27.790 --> 00:11:27.800 align:start position:0%
so now what we need to do is make a very
 

00:11:27.800 --> 00:11:30.910 align:start position:0%
so now what we need to do is make a very
normal<00:11:28.200><c> call</c><00:11:28.519><c> to</c><00:11:28.800><c> VM</c><00:11:29.519><c> at</c><00:11:29.959><c> but</c><00:11:30.120><c> with</c><00:11:30.279><c> the</c><00:11:30.399><c> flags</c>

00:11:30.910 --> 00:11:30.920 align:start position:0%
normal call to VM at but with the flags
 

00:11:30.920 --> 00:11:33.910 align:start position:0%
normal call to VM at but with the flags
VM<00:11:31.279><c> Flags</c><00:11:31.760><c> fixed</c><00:11:32.480><c> to</c><00:11:32.680><c> allocate</c><00:11:33.160><c> at</c><00:11:33.320><c> a</c><00:11:33.519><c> specific</c>

00:11:33.910 --> 00:11:33.920 align:start position:0%
VM Flags fixed to allocate at a specific
 

00:11:33.920 --> 00:11:36.829 align:start position:0%
VM Flags fixed to allocate at a specific
address<00:11:34.519><c> the</c><00:11:34.639><c> address</c><00:11:34.959><c> of</c><00:11:35.079><c> the</c><00:11:35.240><c> old</c><00:11:35.680><c> range</c><00:11:36.680><c> and</c>

00:11:36.829 --> 00:11:36.839 align:start position:0%
address the address of the old range and
 

00:11:36.839 --> 00:11:39.310 align:start position:0%
address the address of the old range and
a<00:11:37.000><c> size</c><00:11:37.279><c> of</c><00:11:37.399><c> two</c><00:11:37.639><c> pages</c><00:11:38.639><c> this</c><00:11:38.760><c> will</c><00:11:38.959><c> create</c>

00:11:39.310 --> 00:11:39.320 align:start position:0%
a size of two pages this will create
 

00:11:39.320 --> 00:11:41.629 align:start position:0%
a size of two pages this will create
another<00:11:39.639><c> VM</c><00:11:40.000><c> map</c><00:11:40.200><c> entry</c><00:11:40.480><c> structure</c><00:11:41.279><c> covering</c>

00:11:41.629 --> 00:11:41.639 align:start position:0%
another VM map entry structure covering
 

00:11:41.639 --> 00:11:43.269 align:start position:0%
another VM map entry structure covering
the<00:11:41.720><c> virtual</c><00:11:42.040><c> address</c><00:11:42.320><c> range</c><00:11:42.720><c> that</c><00:11:42.839><c> includes</c>

00:11:43.269 --> 00:11:43.279 align:start position:0%
the virtual address range that includes
 

00:11:43.279 --> 00:11:45.069 align:start position:0%
the virtual address range that includes
the<00:11:43.399><c> dangling</c><00:11:43.839><c> page</c><00:11:44.040><c> table</c><00:11:44.320><c> entry</c><00:11:44.839><c> at</c><00:11:44.959><c> this</c>

00:11:45.069 --> 00:11:45.079 align:start position:0%
the dangling page table entry at this
 

00:11:45.079 --> 00:11:47.509 align:start position:0%
the dangling page table entry at this
point<00:11:45.480><c> we</c><00:11:45.680><c> have</c><00:11:46.040><c> achieved</c><00:11:46.560><c> the</c><00:11:46.720><c> dangling</c><00:11:47.240><c> page</c>

00:11:47.509 --> 00:11:47.519 align:start position:0%
point we have achieved the dangling page
 

00:11:47.519 --> 00:11:49.870 align:start position:0%
point we have achieved the dangling page
table<00:11:47.760><c> entry</c><00:11:48.079><c> scenario</c><00:11:49.000><c> and</c><00:11:49.240><c> exploitation</c>

00:11:49.870 --> 00:11:49.880 align:start position:0%
table entry scenario and exploitation
 

00:11:49.880 --> 00:11:51.710 align:start position:0%
table entry scenario and exploitation
from<00:11:50.040><c> this</c><00:11:50.200><c> point</c><00:11:50.440><c> on</c><00:11:50.800><c> can</c><00:11:50.959><c> be</c><00:11:51.120><c> done</c><00:11:51.399><c> in</c><00:11:51.560><c> a</c>

00:11:51.710 --> 00:11:51.720 align:start position:0%
from this point on can be done in a
 

00:11:51.720 --> 00:11:53.710 align:start position:0%
from this point on can be done in a
number<00:11:52.000><c> of</c><00:11:52.160><c> ways</c><00:11:52.680><c> the</c><00:11:52.800><c> general</c><00:11:53.079><c> idea</c><00:11:53.480><c> is</c><00:11:53.560><c> to</c>

00:11:53.710 --> 00:11:53.720 align:start position:0%
number of ways the general idea is to
 

00:11:53.720 --> 00:11:55.750 align:start position:0%
number of ways the general idea is to
try<00:11:53.880><c> to</c><00:11:54.040><c> get</c><00:11:54.160><c> the</c><00:11:54.320><c> konel</c><00:11:54.720><c> to</c><00:11:55.079><c> reuse</c><00:11:55.600><c> that</c>

00:11:55.750 --> 00:11:55.760 align:start position:0%
try to get the konel to reuse that
 

00:11:55.760 --> 00:11:57.829 align:start position:0%
try to get the konel to reuse that
dangling<00:11:56.360><c> page</c><00:11:56.920><c> for</c><00:11:57.279><c> something</c><00:11:57.639><c> very</c>

00:11:57.829 --> 00:11:57.839 align:start position:0%
dangling page for something very
 

00:11:57.839 --> 00:11:59.550 align:start position:0%
dangling page for something very
important<00:11:58.160><c> of</c><00:11:58.279><c> its</c><00:11:58.440><c> own</c><00:11:58.920><c> which</c><00:11:59.040><c> we</c><00:11:59.320><c> can</c><00:11:59.440><c> then</c>

00:11:59.550 --> 00:11:59.560 align:start position:0%
important of its own which we can then
 

00:11:59.560 --> 00:12:01.790 align:start position:0%
important of its own which we can then
use<00:11:59.800><c> to</c><00:12:00.079><c> construct</c><00:12:00.760><c> different</c><00:12:01.079><c> Primitives</c>

00:12:01.790 --> 00:12:01.800 align:start position:0%
use to construct different Primitives
 

00:12:01.800 --> 00:12:03.990 align:start position:0%
use to construct different Primitives
and<00:12:02.000><c> Achieve</c><00:12:02.440><c> stable</c><00:12:02.800><c> Colonel</c><00:12:03.120><c> read</c><00:12:03.279><c> and</c><00:12:03.480><c> WR</c><00:12:03.880><c> a</c>

00:12:03.990 --> 00:12:04.000 align:start position:0%
and Achieve stable Colonel read and WR a
 

00:12:04.000 --> 00:12:06.949 align:start position:0%
and Achieve stable Colonel read and WR a
blog<00:12:04.279><c> post</c><00:12:04.560><c> from</c><00:12:04.880><c> Alfie</c><00:12:05.320><c> CG</c><00:12:06.000><c> uses</c><00:12:06.440><c> an</c><00:12:06.600><c> iio</c>

00:12:06.949 --> 00:12:06.959 align:start position:0%
blog post from Alfie CG uses an iio
 

00:12:06.959 --> 00:12:09.230 align:start position:0%
blog post from Alfie CG uses an iio
surface<00:12:07.600><c> spray</c><00:12:08.000><c> method</c><00:12:08.360><c> to</c><00:12:08.519><c> reallocate</c><00:12:09.040><c> that</c>

00:12:09.230 --> 00:12:09.240 align:start position:0%
surface spray method to reallocate that
 

00:12:09.240 --> 00:12:11.590 align:start position:0%
surface spray method to reallocate that
page<00:12:09.480><c> for</c><00:12:09.760><c> Io</c><00:12:10.040><c> surface</c><00:12:10.360><c> kernel</c><00:12:10.760><c> objects</c><00:12:11.480><c> which</c>

00:12:11.590 --> 00:12:11.600 align:start position:0%
page for Io surface kernel objects which
 

00:12:11.600 --> 00:12:13.310 align:start position:0%
page for Io surface kernel objects which
he<00:12:11.760><c> then</c><00:12:11.880><c> uses</c><00:12:12.160><c> to</c><00:12:12.320><c> build</c><00:12:12.680><c> stable</c><00:12:13.000><c> read</c><00:12:13.160><c> and</c>

00:12:13.310 --> 00:12:13.320 align:start position:0%
he then uses to build stable read and
 

00:12:13.320 --> 00:12:14.910 align:start position:0%
he then uses to build stable read and
write<00:12:13.519><c> Primitives</c><00:12:14.120><c> but</c><00:12:14.240><c> that</c><00:12:14.360><c> is</c><00:12:14.440><c> the</c><00:12:14.639><c> topic</c>

00:12:14.910 --> 00:12:14.920 align:start position:0%
write Primitives but that is the topic
 

00:12:14.920 --> 00:12:16.750 align:start position:0%
write Primitives but that is the topic
of<00:12:15.199><c> another</c><00:12:15.440><c> video</c><00:12:15.880><c> hope</c><00:12:16.000><c> you</c><00:12:16.160><c> guys</c><00:12:16.320><c> enjoyed</c>

00:12:16.750 --> 00:12:16.760 align:start position:0%
of another video hope you guys enjoyed
 

00:12:16.760 --> 00:12:18.790 align:start position:0%
of another video hope you guys enjoyed
this<00:12:16.920><c> video</c><00:12:17.440><c> all</c><00:12:17.639><c> relevant</c><00:12:18.040><c> links</c><00:12:18.279><c> will</c><00:12:18.440><c> be</c><00:12:18.680><c> in</c>

00:12:18.790 --> 00:12:18.800 align:start position:0%
this video all relevant links will be in
 

00:12:18.800 --> 00:12:20.670 align:start position:0%
this video all relevant links will be in
the<00:12:18.959><c> description</c><00:12:19.519><c> below</c><00:12:20.000><c> and</c><00:12:20.120><c> of</c><00:12:20.240><c> course</c><00:12:20.440><c> full</c>

00:12:20.670 --> 00:12:20.680 align:start position:0%
the description below and of course full
 

00:12:20.680 --> 00:12:23.790 align:start position:0%
the description below and of course full
credit<00:12:20.959><c> goes</c><00:12:21.160><c> to</c><00:12:21.440><c> Felix</c><00:12:21.920><c> PB</c><00:12:22.639><c> for</c><00:12:23.040><c> these</c><00:12:23.279><c> bugs</c>

00:12:23.790 --> 00:12:23.800 align:start position:0%
credit goes to Felix PB for these bugs
 

00:12:23.800 --> 00:12:25.509 align:start position:0%
credit goes to Felix PB for these bugs
themselves<00:12:24.240><c> and</c><00:12:24.399><c> the</c><00:12:24.560><c> original</c><00:12:25.040><c> detailed</c>

00:12:25.509 --> 00:12:25.519 align:start position:0%
themselves and the original detailed
 

00:12:25.519 --> 00:12:27.269 align:start position:0%
themselves and the original detailed
writeups<00:12:26.279><c> which</c><00:12:26.399><c> were</c><00:12:26.560><c> essential</c><00:12:27.000><c> in</c><00:12:27.120><c> the</c>

00:12:27.269 --> 00:12:27.279 align:start position:0%
writeups which were essential in the
 

00:12:27.279 --> 00:12:28.790 align:start position:0%
writeups which were essential in the
creation<00:12:27.680><c> of</c><00:12:27.839><c> this</c><00:12:28.040><c> video</c><00:12:28.480><c> thanks</c><00:12:28.680><c> for</c>

00:12:28.790 --> 00:12:28.800 align:start position:0%
creation of this video thanks for
 

00:12:28.800 --> 00:12:30.389 align:start position:0%
creation of this video thanks for
watching<00:12:29.199><c> don't</c><00:12:29.279><c> forget</c><00:12:29.480><c> to</c><00:12:29.600><c> subscribe</c><00:12:30.160><c> and</c><00:12:30.320><c> I</c>

00:12:30.389 --> 00:12:30.399 align:start position:0%
watching don't forget to subscribe and I
 

00:12:30.399 --> 00:12:34.320 align:start position:0%
watching don't forget to subscribe and I
will<00:12:30.560><c> see</c><00:12:30.720><c> you</c><00:12:30.839><c> in</c><00:12:30.959><c> the</c><00:12:31.120><c> next</c><00:12:31.320><c> video</c>

