* [PATCH] cifs: make CIFS depend on CRYPTO_ECB
@ 2011-06-03 8:49 Suresh Jayaraman
[not found] ` <4DE89FFD.6040006-l3A5Bk7waGM@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Suresh Jayaraman @ 2011-06-03 8:49 UTC (permalink / raw)
To: Steve French; +Cc: linux-cifs
When CONFIG_CRYPTO_ECB is not set, trying to mount a CIFS share with NTLM
security resulted in mount failure with the following error:
"CIFS VFS: could not allocate des crypto API"
Seems like a leftover from commit 43988d7.
Signed-off-by: Suresh Jayaraman <sjayaraman-l3A5Bk7waGM@public.gmane.org>
---
fs/cifs/Kconfig | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/fs/cifs/Kconfig b/fs/cifs/Kconfig
index 1cd4c3a..66c68ab 100644
--- a/fs/cifs/Kconfig
+++ b/fs/cifs/Kconfig
@@ -7,6 +7,7 @@ config CIFS
select CRYPTO_MD5
select CRYPTO_HMAC
select CRYPTO_ARC4
+ select CRYPTO_ECB
select CRYPTO_DES
help
This is the client VFS module for the Common Internet File System
--
1.7.1
^ permalink raw reply related [flat|nested] 5+ messages in thread[parent not found: <4DE89FFD.6040006-l3A5Bk7waGM@public.gmane.org>]
* Re: [PATCH] cifs: make CIFS depend on CRYPTO_ECB [not found] ` <4DE89FFD.6040006-l3A5Bk7waGM@public.gmane.org> @ 2011-06-03 13:10 ` Jeff Layton [not found] ` <20110603091007.7c7b9910-4QP7MXygkU+dMjc06nkz3ljfA9RmPOcC@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Jeff Layton @ 2011-06-03 13:10 UTC (permalink / raw) To: Suresh Jayaraman; +Cc: Steve French, linux-cifs On Fri, 03 Jun 2011 14:19:01 +0530 Suresh Jayaraman <sjayaraman-l3A5Bk7waGM@public.gmane.org> wrote: > When CONFIG_CRYPTO_ECB is not set, trying to mount a CIFS share with NTLM > security resulted in mount failure with the following error: > "CIFS VFS: could not allocate des crypto API" > > Seems like a leftover from commit 43988d7. > > Signed-off-by: Suresh Jayaraman <sjayaraman-l3A5Bk7waGM@public.gmane.org> > --- > fs/cifs/Kconfig | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/fs/cifs/Kconfig b/fs/cifs/Kconfig > index 1cd4c3a..66c68ab 100644 > --- a/fs/cifs/Kconfig > +++ b/fs/cifs/Kconfig > @@ -7,6 +7,7 @@ config CIFS > select CRYPTO_MD5 > select CRYPTO_HMAC > select CRYPTO_ARC4 > + select CRYPTO_ECB > select CRYPTO_DES > help > This is the client VFS module for the Common Internet File System Reviewed-by: Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <20110603091007.7c7b9910-4QP7MXygkU+dMjc06nkz3ljfA9RmPOcC@public.gmane.org>]
* Re: [PATCH] cifs: make CIFS depend on CRYPTO_ECB [not found] ` <20110603091007.7c7b9910-4QP7MXygkU+dMjc06nkz3ljfA9RmPOcC@public.gmane.org> @ 2011-06-03 17:39 ` Steve French [not found] ` <BANLkTimhjwe1Ry8JR+bTixSRmd86gHADTw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Steve French @ 2011-06-03 17:39 UTC (permalink / raw) To: Jeff Layton; +Cc: Suresh Jayaraman, linux-cifs Merged. This is a strange dependency - it looks like thee real problem is that the two crypto libs we depend on that depend on this don't select ECB but it is harmless to add the select. On Fri, Jun 3, 2011 at 8:10 AM, Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote: > On Fri, 03 Jun 2011 14:19:01 +0530 > Suresh Jayaraman <sjayaraman-l3A5Bk7waGM@public.gmane.org> wrote: > >> When CONFIG_CRYPTO_ECB is not set, trying to mount a CIFS share with NTLM >> security resulted in mount failure with the following error: >> "CIFS VFS: could not allocate des crypto API" >> >> Seems like a leftover from commit 43988d7. >> >> Signed-off-by: Suresh Jayaraman <sjayaraman-l3A5Bk7waGM@public.gmane.org> >> --- >> fs/cifs/Kconfig | 1 + >> 1 files changed, 1 insertions(+), 0 deletions(-) >> >> diff --git a/fs/cifs/Kconfig b/fs/cifs/Kconfig >> index 1cd4c3a..66c68ab 100644 >> --- a/fs/cifs/Kconfig >> +++ b/fs/cifs/Kconfig >> @@ -7,6 +7,7 @@ config CIFS >> select CRYPTO_MD5 >> select CRYPTO_HMAC >> select CRYPTO_ARC4 >> + select CRYPTO_ECB >> select CRYPTO_DES >> help >> This is the client VFS module for the Common Internet File System > > Reviewed-by: Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> > -- Thanks, Steve ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <BANLkTimhjwe1Ry8JR+bTixSRmd86gHADTw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH] cifs: make CIFS depend on CRYPTO_ECB [not found] ` <BANLkTimhjwe1Ry8JR+bTixSRmd86gHADTw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2011-06-03 18:02 ` Jeff Layton [not found] ` <20110603140218.02d3315e-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Jeff Layton @ 2011-06-03 18:02 UTC (permalink / raw) To: Steve French; +Cc: Suresh Jayaraman, linux-cifs On Fri, 3 Jun 2011 12:39:41 -0500 Steve French <smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > Merged. This is a strange dependency - it looks like thee real > problem is that the two crypto libs we depend on that depend on this > don't select ECB but it is harmless to add the select. > Hmm...then maybe the patch should this dependency there so that other kernel subsystems don't get bitten by the same problem? > On Fri, Jun 3, 2011 at 8:10 AM, Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote: > > On Fri, 03 Jun 2011 14:19:01 +0530 > > Suresh Jayaraman <sjayaraman-l3A5Bk7waGM@public.gmane.org> wrote: > > > >> When CONFIG_CRYPTO_ECB is not set, trying to mount a CIFS share with NTLM > >> security resulted in mount failure with the following error: > >> "CIFS VFS: could not allocate des crypto API" > >> > >> Seems like a leftover from commit 43988d7. > >> > >> Signed-off-by: Suresh Jayaraman <sjayaraman-l3A5Bk7waGM@public.gmane.org> > >> --- > >> fs/cifs/Kconfig | 1 + > >> 1 files changed, 1 insertions(+), 0 deletions(-) > >> > >> diff --git a/fs/cifs/Kconfig b/fs/cifs/Kconfig > >> index 1cd4c3a..66c68ab 100644 > >> --- a/fs/cifs/Kconfig > >> +++ b/fs/cifs/Kconfig > >> @@ -7,6 +7,7 @@ config CIFS > >> select CRYPTO_MD5 > >> select CRYPTO_HMAC > >> select CRYPTO_ARC4 > >> + select CRYPTO_ECB > >> select CRYPTO_DES > >> help > >> This is the client VFS module for the Common Internet File System > > > > Reviewed-by: Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> > > > > > -- Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <20110603140218.02d3315e-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>]
* Re: [PATCH] cifs: make CIFS depend on CRYPTO_ECB [not found] ` <20110603140218.02d3315e-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org> @ 2011-06-03 18:29 ` Suresh Jayaraman 0 siblings, 0 replies; 5+ messages in thread From: Suresh Jayaraman @ 2011-06-03 18:29 UTC (permalink / raw) To: Jeff Layton; +Cc: Steve French, linux-cifs On 06/03/2011 11:32 PM, Jeff Layton wrote: > On Fri, 3 Jun 2011 12:39:41 -0500 > Steve French <smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> Merged. This is a strange dependency - it looks like thee real >> problem is that the two crypto libs we depend on that depend on this >> don't select ECB but it is harmless to add the select. >> > > Hmm...then maybe the patch should this dependency there so that other > kernel subsystems don't get bitten by the same problem? I looked at a few in-tree examples: >From drivers/net/Kconfig config PPP_MPPE tristate "PPP MPPE compression (encryption) (EXPERIMENTAL)" depends on PPP && EXPERIMENTAL select CRYPTO select CRYPTO_SHA1 select CRYPTO_ARC4 select CRYPTO_ECB (we seem to have both ARC4 and ECB explicitly) >From net/sunrpc/Kconfig: config RPCSEC_GSS_KRB5 tristate "Secure RPC: Kerberos V mechanism" depends on SUNRPC && CRYPTO depends on CRYPTO_MD5 && CRYPTO_DES && CRYPTO_CBC && CRYPTO_CTS depends on CRYPTO_ECB && CRYPTO_HMAC && CRYPTO_SHA1 && CRYPTO_AES depends on CRYPTO_ARC4 >From drivers/crypto/Kconfig: config CRYPTO_DEV_PICOXCELL tristate "Support for picoXcell IPSEC and Layer2 crypto engines" depends on ARCH_PICOXCELL select CRYPTO_AES select CRYPTO_AUTHENC select CRYPTO_ALGAPI select CRYPTO_DES select CRYPTO_CBC select CRYPTO_ECB select CRYPTO_SEQIV and others in drivers/net/wireless/hostap/Kconfig drivers/net/wireless/ipw2x00/Kconfig Looks like none of them will be affected as they use explicitly. However, it is not clear to me why they the crypto lib itself is not marking the dependency.. >> On Fri, Jun 3, 2011 at 8:10 AM, Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote: >>> On Fri, 03 Jun 2011 14:19:01 +0530 >>> Suresh Jayaraman <sjayaraman-l3A5Bk7waGM@public.gmane.org> wrote: >>> >>>> When CONFIG_CRYPTO_ECB is not set, trying to mount a CIFS share with NTLM >>>> security resulted in mount failure with the following error: >>>> "CIFS VFS: could not allocate des crypto API" >>>> >>>> Seems like a leftover from commit 43988d7. >>>> >>>> Signed-off-by: Suresh Jayaraman <sjayaraman-l3A5Bk7waGM@public.gmane.org> >>>> --- >>>> fs/cifs/Kconfig | 1 + >>>> 1 files changed, 1 insertions(+), 0 deletions(-) >>>> >>>> diff --git a/fs/cifs/Kconfig b/fs/cifs/Kconfig >>>> index 1cd4c3a..66c68ab 100644 >>>> --- a/fs/cifs/Kconfig >>>> +++ b/fs/cifs/Kconfig >>>> @@ -7,6 +7,7 @@ config CIFS >>>> select CRYPTO_MD5 >>>> select CRYPTO_HMAC >>>> select CRYPTO_ARC4 >>>> + select CRYPTO_ECB >>>> select CRYPTO_DES >>>> help >>>> This is the client VFS module for the Common Internet File System >>> >>> Reviewed-by: Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> >>> >> >> >> > > -- Suresh Jayaraman ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-06-03 18:29 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-03 8:49 [PATCH] cifs: make CIFS depend on CRYPTO_ECB Suresh Jayaraman
[not found] ` <4DE89FFD.6040006-l3A5Bk7waGM@public.gmane.org>
2011-06-03 13:10 ` Jeff Layton
[not found] ` <20110603091007.7c7b9910-4QP7MXygkU+dMjc06nkz3ljfA9RmPOcC@public.gmane.org>
2011-06-03 17:39 ` Steve French
[not found] ` <BANLkTimhjwe1Ry8JR+bTixSRmd86gHADTw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-06-03 18:02 ` Jeff Layton
[not found] ` <20110603140218.02d3315e-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2011-06-03 18:29 ` Suresh Jayaraman
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.