Bug 441384 - [iPv6DoD] fix RFC 4309 Using AES CCM Mode with IPsec ESP
Summary: [iPv6DoD] fix RFC 4309 Using AES CCM Mode with IPsec ESP
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: iproute   
(Show other bugs)
Version: 5.2
Hardware: All
OS: Linux
Target Milestone: rc
: ---
Assignee: Marcela Mašláňová
QA Contact: Brock Organ
: 443423 (view as bug list)
Depends On: 443410
Blocks: 253764 443423
TreeView+ depends on / blocked
Reported: 2008-04-07 20:01 UTC by Linda Wang
Modified: 2008-05-21 14:36 UTC (History)
7 users (show)

Fixed In Version: RHEA-2008-0451
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-05-21 14:36:54 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2008:0451 normal SHIPPED_LIVE iproute enhancement update 2008-05-20 13:14:46 UTC

Description Linda Wang 2008-04-07 20:01:05 UTC
Description of problem:

In order to support RFC 4309 using AES CCM Mode with IPSec ESP,
we need to include following patch posted by Herbert a while back to
iproute to so we can configure and use CCM algorithm in IPsec as well as
test it.


This patch is needed for manual keying. 

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
Actual results:

Expected results:

Additional info:

Comment 1 Linda Wang 2008-04-07 20:02:07 UTC
"We also need to patch Openswan to do this too."

Comment 8 Lawrence Lim 2008-04-09 01:11:39 UTC
could you help verify this bug while you are working on IPSec?

Comment 10 IBM Bug Proxy 2008-04-17 23:40:32 UTC
------- Comment From latten@us.ibm.com 2008-04-17 19:32 EDT-------
I downloaded http://people.redhat.com/nhorman/rpms/ibm.tbz2 which
contains some of the snap5 packages such as iproute-2.6.18-6.el5.xxx.rpm.

I tested this version of iproute and it doesn't work with CCM
regardless of architecture. I guess something is missing or incorrect
in patch. Will take a look.

Reproduce by trying:
ip xfrm state add src fc00:0:0:105::35 dst fc00:0:0:105::64 proto esp spi 0x201
mode transport aead "rfc4309(ccm(aes))"  0x0102037aeaca3f87d060a12f4a4487d5a5c335 96

Comment 12 Marcela Mašláňová 2008-04-21 12:32:13 UTC
Don't we also need some kernel patch? 
I've tried iproute with patch and also upstream version of iproute with patch.
Both end up with the same message: RTNETLINK answers: Invalid argument.

Comment 13 Neil Horman 2008-04-21 15:22:07 UTC
we shouldn't need any additional kernel patches, This patch:
Was added to enable ccm support via bug 253051, which went in to kernel -67. 
Its possible too that the module isn't autoloading for some reason.  I would
suggest manually running:
modprobe ccm
prior to your testing, and confirming that the module has loaded.  My guess is
that will fix your problem.  In the interim, I'll ping joy and herbert to see if
they know any more about this.

Comment 14 IBM Bug Proxy 2008-04-21 16:48:44 UTC
------- Comment From latten@us.ibm.com 2008-04-21 12:43 EDT-------
I recall having some problems because in the xfrm.h file,
I think instead of "XFRMA_ALG_AEAD," I needed "XFRMA_ALG_AEAD = 18".
The kernel's include/linux/xfrm.h defines it as the latter and
so I think iproute's xfrm.h needs to look like this too.

I tried this and it seems to fix the problem.

Comment 16 Marcela Mašláňová 2008-04-22 07:26:15 UTC
This change fixed iproute, although I didn't find anywhere mentioned

It was working for me with kernel-2.6.18-90.el5 and iproute-2.6.18-7.el5.

Comment 17 Herbert Xu 2008-04-22 07:34:53 UTC
I just checked the kernel source and it should definitely be 18.  When we update
iproute headers, we should always take the kernel values as authoritative.  Thanks!

Comment 18 Linda Wang 2008-04-22 14:21:16 UTC
*** Bug 443423 has been marked as a duplicate of this bug. ***

Comment 20 IBM Bug Proxy 2008-05-07 16:40:40 UTC
------- Comment From latten@us.ibm.com 2008-05-07 12:38 EDT-------
This tested successfully in snapshot 7.
Therefore it has successfully passed verification.

Comment 22 errata-xmlrpc 2008-05-21 14:36:54 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


Note You need to log in before you can comment on or make changes to this bug.