This is a note to let you know that I've just added the patch titled

    ceph: osd_client: fix endianness bug in osd_req_encode_op()

to the 3.4-stable tree which can be found at:
    
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     0006-ceph-osd_client-fix-endianness-bug-in-osd_req_encode.patch
and it can be found in the queue-3.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.


>From 51da4e7a2aba62a1ccbba8841332c543a3c30187 Mon Sep 17 00:00:00 2001
From: Alex Elder <[email protected]>
Date: Fri, 20 Apr 2012 15:49:43 -0500
Subject: ceph: osd_client: fix endianness bug in osd_req_encode_op()

From: Alex Elder <[email protected]>

(cherry picked from commit 065a68f9167e20f321a62d044cb2c3024393d455)

>From Al Viro <[email protected]>

Al Viro noticed that we were using a non-cpu-encoded value in
a switch statement in osd_req_encode_op().  The result would
clearly not work correctly on a big-endian machine.

Signed-off-by: Alex Elder <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
 net/ceph/osd_client.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/net/ceph/osd_client.c
+++ b/net/ceph/osd_client.c
@@ -278,7 +278,7 @@ static void osd_req_encode_op(struct cep
 {
        dst->op = cpu_to_le16(src->op);
 
-       switch (dst->op) {
+       switch (src->op) {
        case CEPH_OSD_OP_READ:
        case CEPH_OSD_OP_WRITE:
                dst->extent.offset =


Patches currently in stable-queue which might be from [email protected] are

queue-3.4/0006-ceph-osd_client-fix-endianness-bug-in-osd_req_encode.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to