Skip to content

Commit

Permalink
xnu-344.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Darwin authored and das committed Jun 4, 2017
1 parent d738f90 commit 5bc19c0
Show file tree
Hide file tree
Showing 12 changed files with 125 additions and 91 deletions.
2 changes: 1 addition & 1 deletion bsd/conf/version.minor
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0
1
5 changes: 3 additions & 2 deletions bsd/netinet/tcp_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@ tcp_input(m, off0)
tp->snd_nxt = tp->snd_max;
tp->t_badrxtwin = 0;
}
if ((to.to_flag & TOF_TS) != 0)
if (((to.to_flag & TOF_TS) != 0) && (to.to_tsecr != 0)) /* Makes sure we already have a TS */
tcp_xmit_timer(tp,
tcp_now - to.to_tsecr + 1);
else if (tp->t_rtttime &&
Expand Down Expand Up @@ -2060,8 +2060,9 @@ tcp_input(m, off0)
* Since we now have an rtt measurement, cancel the
* timer backoff (cf., Phil Karn's retransmit alg.).
* Recompute the initial retransmit timer.
* Also makes sure we have a valid time stamp in hand
*/
if (to.to_flag & TOF_TS)
if (((to.to_flag & TOF_TS) != 0) && (to.to_tsecr != 0))
tcp_xmit_timer(tp, tcp_now - to.to_tsecr + 1);
else if (tp->t_rtttime && SEQ_GT(th->th_ack, tp->t_rtseq))
tcp_xmit_timer(tp, tp->t_rtttime);
Expand Down
8 changes: 8 additions & 0 deletions bsd/netinet6/esp_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@ esp4_input(m, off)
if (!sumalgo)
goto noreplaycheck;
siz = (((*sumalgo->sumsiz)(sav) + 3) & ~(4 - 1));
if (m->m_pkthdr.len < off + ESPMAXLEN + siz) {
ipsecstat.in_inval++;
goto bad;
}
if (AH_MAXSUMSIZE < siz) {
ipseclog((LOG_DEBUG,
"internal error: AH_MAXSUMSIZE must be larger than %lu\n",
Expand Down Expand Up @@ -581,6 +585,10 @@ esp6_input(mp, offp, proto)
if (!sumalgo)
goto noreplaycheck;
siz = (((*sumalgo->sumsiz)(sav) + 3) & ~(4 - 1));
if (m->m_pkthdr.len < off + ESPMAXLEN + siz) {
ipsecstat.in_inval++;
goto bad;
}
if (AH_MAXSUMSIZE < siz) {
ipseclog((LOG_DEBUG,
"internal error: AH_MAXSUMSIZE must be larger than %lu\n",
Expand Down
11 changes: 7 additions & 4 deletions bsd/vfs/vfs_cluster.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ static int cluster_nocopy_write(struct vnode *vp, struct uio *uio,
off_t newEOF, int devblocksize, int flags);
static int cluster_phys_read(struct vnode *vp, struct uio *uio,
off_t filesize);
static int cluster_phys_write(struct vnode *vp, struct uio *uio);
static int cluster_phys_write(struct vnode *vp, struct uio *uio, off_t newEOF);
static int cluster_push_x(struct vnode *vp, off_t EOF, daddr_t first, daddr_t last, int can_delay);
static int cluster_try_push(struct vnode *vp, off_t newEOF, int can_delay, int push_all);

Expand Down Expand Up @@ -1090,7 +1090,7 @@ cluster_write(vp, uio, oldEOF, newEOF, headOff, tailOff, devblocksize, flags)
return(retval);
}

retval = cluster_phys_write(vp, uio);
retval = cluster_phys_write(vp, uio, newEOF);

if (uio->uio_resid == 0 && (flags & IO_TAILZEROFILL))
{
Expand Down Expand Up @@ -1206,6 +1206,7 @@ cluster_nocopy_write(vp, uio, newEOF, devblocksize, flags)
* -- the resid is a page multiple
* -- the resid will not exceed iov_len
*/
cluster_try_push(vp, newEOF, 0, 1);

iov = uio->uio_iov;

Expand Down Expand Up @@ -1361,9 +1362,10 @@ cluster_nocopy_write(vp, uio, newEOF, devblocksize, flags)
}

static int
cluster_phys_write(vp, uio)
cluster_phys_write(vp, uio, newEOF)
struct vnode *vp;
struct uio *uio;
off_t newEOF;
{
upl_t upl;
vm_offset_t upl_offset;
Expand All @@ -1381,6 +1383,7 @@ cluster_phys_write(vp, uio)
* -- the resid will not exceed iov_len
* -- the vector target address is physcially contiguous
*/
cluster_try_push(vp, newEOF, 0, 1);

iov = uio->uio_iov;
io_size = iov->iov_len;
Expand Down Expand Up @@ -1907,7 +1910,7 @@ cluster_write_x(vp, uio, oldEOF, newEOF, headOff, tailOff, devblocksize, flags)
else
can_delay = 1;

if (cluster_try_push(vp, newEOF, can_delay, 0) == 0) {
if (cluster_try_push(vp, newEOF, 0, 0) == 0) {
vp->v_flag |= VHASDIRTY;
goto delay_io;
}
Expand Down
10 changes: 5 additions & 5 deletions iokit/KernelConfigTables.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
*/
const char * gIOKernelKmods =
"{
'com.apple.kernel' = '6.0';
'com.apple.kernel.bsd' = '6.0';
'com.apple.kernel.iokit' = '6.0';
'com.apple.kernel.libkern' = '6.0';
'com.apple.kernel.mach' = '6.0';
'com.apple.kernel' = '6.1';
'com.apple.kernel.bsd' = '6.1';
'com.apple.kernel.iokit' = '6.1';
'com.apple.kernel.libkern' = '6.1';
'com.apple.kernel.mach' = '6.1';
'com.apple.iokit.IOADBFamily' = '1.1';
'com.apple.iokit.IONVRAMFamily' = '1.1';
'com.apple.iokit.IOSystemManagementFamily' = '1.1';
Expand Down
2 changes: 1 addition & 1 deletion iokit/conf/version.minor
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0
1
2 changes: 1 addition & 1 deletion libkern/conf/version.minor
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0
1
2 changes: 1 addition & 1 deletion libsa/conf/version.minor
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0
1
2 changes: 1 addition & 1 deletion osfmk/conf/kernelversion.minor
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0
1
2 changes: 1 addition & 1 deletion osfmk/conf/version.minor
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0
1
Loading

0 comments on commit 5bc19c0

Please sign in to comment.