lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 20 Aug 2008 12:26:08 -0700
From:	Dave Hansen <dave@...ux.vnet.ibm.com>
To:	arnd@...db.de
Cc:	orenl@...columbia.edu, jeremy@...p.org,
	containers@...ts.linux-foundation.org,
	linux-kernel@...r.kernel.org, Dave Hansen <dave@...ux.vnet.ibm.com>
Subject: [RFC v2][PATCH 9/9] remove ->cksum field


This is unused so far.  We'll add it back later.

---

 oren-cr.git-dave/checkpoint/checkpoint.c |    2 --
 oren-cr.git-dave/checkpoint/ckpt_hdr.h   |    1 -
 oren-cr.git-dave/checkpoint/restart.c    |    3 +--
 3 files changed, 1 insertion(+), 5 deletions(-)

diff -puN checkpoint/checkpoint.c~remove-unused-cksum checkpoint/checkpoint.c
--- oren-cr.git/checkpoint/checkpoint.c~remove-unused-cksum	2008-08-20 12:12:51.000000000 -0700
+++ oren-cr.git-dave/checkpoint/checkpoint.c	2008-08-20 12:12:51.000000000 -0700
@@ -125,8 +125,6 @@ static int cr_write_tail(struct cr_ctx *
 	h.id = 0;
 
 	hh->magic = CR_HEADER_MAGIC;
-	hh->cksum[0] = 1;
-       	hh->cksum[1] = 1;	/* TBD ... */
 
 	ret = cr_write_obj(ctx, &h, hh);
 	kfree(hh);
diff -puN checkpoint/ckpt_hdr.h~remove-unused-cksum checkpoint/ckpt_hdr.h
--- oren-cr.git/checkpoint/ckpt_hdr.h~remove-unused-cksum	2008-08-20 12:12:51.000000000 -0700
+++ oren-cr.git-dave/checkpoint/ckpt_hdr.h	2008-08-20 12:12:51.000000000 -0700
@@ -43,7 +43,6 @@ struct cr_hdr_head {
 
 struct cr_hdr_tail {
 	__u32 magic;
-	__u32 cksum[2];
 };
 
 struct cr_hdr_task {
diff -puN checkpoint/restart.c~remove-unused-cksum checkpoint/restart.c
--- oren-cr.git/checkpoint/restart.c~remove-unused-cksum	2008-08-20 12:12:51.000000000 -0700
+++ oren-cr.git-dave/checkpoint/restart.c	2008-08-20 12:12:51.000000000 -0700
@@ -113,8 +113,7 @@ static int cr_read_tail(struct cr_ctx *c
 	if (ret < 0)
 		return ret;
 
-	if (hh->magic != CR_HEADER_MAGIC ||
-	    hh->cksum[0] != 1 || hh->cksum[1] != 1)
+	if (hh->magic != CR_HEADER_MAGIC)
 		return -EINVAL;
 
 	kfree(hh);
_
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists