* encrypted swap on loop in 2.4.10-pre12?
@ 2001-09-19 15:18 steve j. kondik
2001-09-19 15:37 ` Jens Axboe
` (2 more replies)
0 siblings, 3 replies; 15+ messages in thread
From: steve j. kondik @ 2001-09-19 15:18 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 2052 bytes --]
i've been using encrypted swap over loopdev using the new cryptoapi
patches. i just built a 2.4.10-pre12 kernel and i got a panic doing
mkswap on the loopdev. the mkswap process becomes unkillable after this
and never finishes. this is repeatable everytime. i've had no problems
whatsoever until this kernel even under high load.. any ideas? :>
Sep 19 11:06:13 discord kernel: Unabl
Sep 19 11:06:13 discord kernel: e to handle kernel NULL pointer
dereference at virtual address 00000000
Sep 19 11:06:13 discord kernel: printing eip:
Sep 19 11:06:13 discord kernel: 00000000
Sep 19 11:06:13 discord kernel: *pde = 0f444067
Sep 19 11:06:13 discord kernel: *pte = 00000000
Sep 19 11:06:13 discord kernel: Oops: 0000
Sep 19 11:06:13 discord kernel: CPU: 0
Sep 19 11:06:13 discord kernel: EIP: 0010:[<00000000>]
Sep 19 11:06:13 discord kernel: EFLAGS: 00010206
Sep 19 11:06:13 discord kernel: eax: c02fbca0 ebx: cf47d000 ecx:
00000400 edx: cfb428c0
Sep 19 11:06:13 discord kernel: esi: 00001000 edi: 00000c00 ebp:
c1394d78 esp: cf447efc
Sep 19 11:06:13 discord kernel: ds: 0018 es: 0018 ss: 0018
Sep 19 11:06:13 discord kernel: Process mkswap (pid: 9902,
stackpage=cf447000)
Sep 19 11:06:13 discord kernel: Stack: c012a371 cfb428c0 c1394d78
00000400 00001000 cfcd61b0 001828c4 00000000
Sep 19 11:06:13 discord kernel: 00000000 00001000 00000400
00000c00 fffffff4 00000000 00000400 00000000
Sep 19 11:06:13 discord kernel: cfa9210c cfa92060 00000000
c01a1ba0 00126000 00001000 00000003 32000022
Sep 19 11:06:13 discord kernel: Call Trace: [<c012a371>] [<c01a1ba0>]
[<c01359c0>] [<c01357fe>] [<c0106ebb>]
Sep 19 11:06:13 discord kernel:
Sep 19 11:06:13 discord kernel: Code: Bad EIP value.
Sep 19 11:06:13 discord kernel: Unable to find swap-space signature
--
http://chemlab.org - email shade-pgpkey@chemlab.org for pgp public key
chemlab radio! - drop out @ http://mp3.chemlab.org:8000 24-7-365
"i could build anything if i could just find my tools.."
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: encrypted swap on loop in 2.4.10-pre12?
2001-09-19 15:18 encrypted swap on loop in 2.4.10-pre12? steve j. kondik
@ 2001-09-19 15:37 ` Jens Axboe
2001-09-19 17:38 ` steve j. kondik
2001-09-19 21:02 ` Jari Ruusu
2 siblings, 0 replies; 15+ messages in thread
From: Jens Axboe @ 2001-09-19 15:37 UTC (permalink / raw)
To: steve j. kondik; +Cc: linux-kernel
On Wed, Sep 19 2001, steve j. kondik wrote:
> i've been using encrypted swap over loopdev using the new cryptoapi
> patches. i just built a 2.4.10-pre12 kernel and i got a panic doing
> mkswap on the loopdev. the mkswap process becomes unkillable after this
> and never finishes. this is repeatable everytime. i've had no problems
> whatsoever until this kernel even under high load.. any ideas? :>
>
> Sep 19 11:06:13 discord kernel: Unabl
> Sep 19 11:06:13 discord kernel: e to handle kernel NULL pointer
> dereference at virtual address 00000000
> Sep 19 11:06:13 discord kernel: printing eip:
> Sep 19 11:06:13 discord kernel: 00000000
> Sep 19 11:06:13 discord kernel: *pde = 0f444067
> Sep 19 11:06:13 discord kernel: *pte = 00000000
> Sep 19 11:06:13 discord kernel: Oops: 0000
> Sep 19 11:06:13 discord kernel: CPU: 0
> Sep 19 11:06:13 discord kernel: EIP: 0010:[<00000000>]
> Sep 19 11:06:13 discord kernel: EFLAGS: 00010206
> Sep 19 11:06:13 discord kernel: eax: c02fbca0 ebx: cf47d000 ecx:
> 00000400 edx: cfb428c0
> Sep 19 11:06:13 discord kernel: esi: 00001000 edi: 00000c00 ebp:
> c1394d78 esp: cf447efc
> Sep 19 11:06:13 discord kernel: ds: 0018 es: 0018 ss: 0018
> Sep 19 11:06:13 discord kernel: Process mkswap (pid: 9902,
> stackpage=cf447000)
> Sep 19 11:06:13 discord kernel: Stack: c012a371 cfb428c0 c1394d78
> 00000400 00001000 cfcd61b0 001828c4 00000000
> Sep 19 11:06:13 discord kernel: 00000000 00001000 00000400
> 00000c00 fffffff4 00000000 00000400 00000000
> Sep 19 11:06:13 discord kernel: cfa9210c cfa92060 00000000
> c01a1ba0 00126000 00001000 00000003 32000022
> Sep 19 11:06:13 discord kernel: Call Trace: [<c012a371>] [<c01a1ba0>]
> [<c01359c0>] [<c01357fe>] [<c0106ebb>]
> Sep 19 11:06:13 discord kernel:
> Sep 19 11:06:13 discord kernel: Code: Bad EIP value.
> Sep 19 11:06:13 discord kernel: Unable to find swap-space signature
ksymoops it please
--
Jens Axboe
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: encrypted swap on loop in 2.4.10-pre12?
2001-09-19 15:18 encrypted swap on loop in 2.4.10-pre12? steve j. kondik
2001-09-19 15:37 ` Jens Axboe
@ 2001-09-19 17:38 ` steve j. kondik
2001-09-19 21:02 ` Jari Ruusu
2 siblings, 0 replies; 15+ messages in thread
From: steve j. kondik @ 2001-09-19 17:38 UTC (permalink / raw)
To: Jens Axboe; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 3869 bytes --]
read in the wrong file. here it is:
Sep 19 13:15:09 discord kernel: Unable to handle kernel NULL pointer
dereference at virtual
Sep 19 13:15:09 discord kernel: 00000000
Sep 19 13:15:09 discord kernel: *pde = 0f602067
Sep 19 13:15:09 discord kernel: Oops: 0000
Sep 19 13:15:09 discord kernel: CPU: 0
Sep 19 13:15:09 discord kernel: EIP: 0010:[<00000000>]
Using defaults from ksymoops -t elf32-i386 -a i386
Sep 19 13:15:09 discord kernel: EFLAGS: 00010206
Sep 19 13:15:09 discord kernel: eax: c02fbca0 ebx: cf613000 ecx:
00000400 edx: cfb428c0
Sep 19 13:15:09 discord kernel: esi: 00001000 edi: 00000c00 ebp:
c139aca0 esp: cf605efc
Sep 19 13:15:09 discord kernel: ds: 0018 es: 0018 ss: 0018
Sep 19 13:15:09 discord kernel: Process mkswap (pid: 5695,
stackpage=cf605000)
Sep 19 13:15:09 discord kernel: Stack: c012a371 cfb428c0 c139aca0
00000400 00001000 cfcd61b0 001828c4 00000000
Sep 19 13:15:09 discord kernel: 00000000 00001000 00000400
00000c00 fffffff4 00000000 00000400 00000000
Sep 19 13:15:09 discord kernel: cfa9210c cfa92060 00000000
c01a1ba0 00126000 00001000 00000003 32000022
Sep 19 13:15:09 discord kernel: Call Trace: [<c012a371>] [<c01a1ba0>]
[<c01359c0>] [<c01357fe>] [<c0106ebb>]
Sep 19 13:15:09 discord kernel: Code: Bad EIP value.
>>EIP; 00000000 Before first symbol
Trace; c012a370 <generic_file_write+410/810>
Trace; c01a1ba0 <write_chan+0/1c0>
Trace; c01359c0 <sys_write+b0/d0>
Trace; c01357fe <sys_llseek+fe/140>
Trace; c0106eba <system_call+32/38>
On Wed, 2001-09-19 at 11:37, Jens Axboe wrote:
> On Wed, Sep 19 2001, steve j. kondik wrote:
> > i've been using encrypted swap over loopdev using the new cryptoapi
> > patches. i just built a 2.4.10-pre12 kernel and i got a panic doing
> > mkswap on the loopdev. the mkswap process becomes unkillable after this
> > and never finishes. this is repeatable everytime. i've had no problems
> > whatsoever until this kernel even under high load.. any ideas? :>
> >
> > Sep 19 11:06:13 discord kernel: Unabl
> > Sep 19 11:06:13 discord kernel: e to handle kernel NULL pointer
> > dereference at virtual address 00000000
> > Sep 19 11:06:13 discord kernel: printing eip:
> > Sep 19 11:06:13 discord kernel: 00000000
> > Sep 19 11:06:13 discord kernel: *pde = 0f444067
> > Sep 19 11:06:13 discord kernel: *pte = 00000000
> > Sep 19 11:06:13 discord kernel: Oops: 0000
> > Sep 19 11:06:13 discord kernel: CPU: 0
> > Sep 19 11:06:13 discord kernel: EIP: 0010:[<00000000>]
> > Sep 19 11:06:13 discord kernel: EFLAGS: 00010206
> > Sep 19 11:06:13 discord kernel: eax: c02fbca0 ebx: cf47d000 ecx:
> > 00000400 edx: cfb428c0
> > Sep 19 11:06:13 discord kernel: esi: 00001000 edi: 00000c00 ebp:
> > c1394d78 esp: cf447efc
> > Sep 19 11:06:13 discord kernel: ds: 0018 es: 0018 ss: 0018
> > Sep 19 11:06:13 discord kernel: Process mkswap (pid: 9902,
> > stackpage=cf447000)
> > Sep 19 11:06:13 discord kernel: Stack: c012a371 cfb428c0 c1394d78
> > 00000400 00001000 cfcd61b0 001828c4 00000000
> > Sep 19 11:06:13 discord kernel: 00000000 00001000 00000400
> > 00000c00 fffffff4 00000000 00000400 00000000
> > Sep 19 11:06:13 discord kernel: cfa9210c cfa92060 00000000
> > c01a1ba0 00126000 00001000 00000003 32000022
> > Sep 19 11:06:13 discord kernel: Call Trace: [<c012a371>] [<c01a1ba0>]
> > [<c01359c0>] [<c01357fe>] [<c0106ebb>]
> > Sep 19 11:06:13 discord kernel:
> > Sep 19 11:06:13 discord kernel: Code: Bad EIP value.
> > Sep 19 11:06:13 discord kernel: Unable to find swap-space signature
>
> ksymoops it please
>
--
http://chemlab.org - email shade-pgpkey@chemlab.org for pgp public key
chemlab radio! - drop out @ http://mp3.chemlab.org:8000 24-7-365
"i could build anything if i could just find my tools.."
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: encrypted swap on loop in 2.4.10-pre12?
2001-09-19 15:18 encrypted swap on loop in 2.4.10-pre12? steve j. kondik
2001-09-19 15:37 ` Jens Axboe
2001-09-19 17:38 ` steve j. kondik
@ 2001-09-19 21:02 ` Jari Ruusu
2001-09-20 6:13 ` Jens Axboe
2 siblings, 1 reply; 15+ messages in thread
From: Jari Ruusu @ 2001-09-19 21:02 UTC (permalink / raw)
To: steve j. kondik; +Cc: linux-kernel
"steve j. kondik" wrote:
> i've been using encrypted swap over loopdev using the new cryptoapi
> patches. i just built a 2.4.10-pre12 kernel and i got a panic doing
> mkswap on the loopdev. the mkswap process becomes unkillable after this
> and never finishes. this is repeatable everytime. i've had no problems
> whatsoever until this kernel even under high load.. any ideas? :>
Cryptoapi can't be used to encrypt swap. It has nasties like sleeping in
make_request_fn() and potential memory allocation deadlock.
loop-AES works with encrypted swap. Announcement is here:
http://mail.nl.linux.org/linux-crypto/2001-09/msg00006.html
http://marc.theaimsgroup.com/?l=linux-crypto&m=99953544804810&w=2
Regards,
Jari Ruusu <jari.ruusu@pp.inet.fi>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: encrypted swap on loop in 2.4.10-pre12?
2001-09-19 21:02 ` Jari Ruusu
@ 2001-09-20 6:13 ` Jens Axboe
2001-09-20 12:08 ` Jari Ruusu
0 siblings, 1 reply; 15+ messages in thread
From: Jens Axboe @ 2001-09-20 6:13 UTC (permalink / raw)
To: Jari Ruusu; +Cc: steve j. kondik, linux-kernel
On Thu, Sep 20 2001, Jari Ruusu wrote:
> "steve j. kondik" wrote:
> > i've been using encrypted swap over loopdev using the new cryptoapi
> > patches. i just built a 2.4.10-pre12 kernel and i got a panic doing
> > mkswap on the loopdev. the mkswap process becomes unkillable after this
> > and never finishes. this is repeatable everytime. i've had no problems
> > whatsoever until this kernel even under high load.. any ideas? :>
>
> Cryptoapi can't be used to encrypt swap. It has nasties like sleeping in
> make_request_fn() and potential memory allocation deadlock.
sleeping in make_request_fn is not a nasty in itself, btw. in fact loop
just needs an emergency page pool for swap to be perfectly safe.
--
Jens Axboe
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: encrypted swap on loop in 2.4.10-pre12?
2001-09-20 6:13 ` Jens Axboe
@ 2001-09-20 12:08 ` Jari Ruusu
2001-09-20 12:25 ` Jens Axboe
2001-09-20 13:17 ` steve j. kondik
0 siblings, 2 replies; 15+ messages in thread
From: Jari Ruusu @ 2001-09-20 12:08 UTC (permalink / raw)
To: Jens Axboe; +Cc: steve j. kondik, linux-kernel
Jens Axboe wrote:
> On Thu, Sep 20 2001, Jari Ruusu wrote:
> > Cryptoapi can't be used to encrypt swap. It has nasties like sleeping in
> > make_request_fn() and potential memory allocation deadlock.
>
> sleeping in make_request_fn is not a nasty in itself, btw. in fact loop
> just needs an emergency page pool for swap to be perfectly safe.
loop-AES provides emergency page pool for device backed loop. Take a look.
Regards,
Jari Ruusu <jari.ruusu@pp.inet.fi>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: encrypted swap on loop in 2.4.10-pre12?
2001-09-20 12:08 ` Jari Ruusu
@ 2001-09-20 12:25 ` Jens Axboe
2001-09-20 13:17 ` steve j. kondik
1 sibling, 0 replies; 15+ messages in thread
From: Jens Axboe @ 2001-09-20 12:25 UTC (permalink / raw)
To: Jari Ruusu; +Cc: steve j. kondik, linux-kernel
On Thu, Sep 20 2001, Jari Ruusu wrote:
> Jens Axboe wrote:
> > On Thu, Sep 20 2001, Jari Ruusu wrote:
> > > Cryptoapi can't be used to encrypt swap. It has nasties like sleeping in
> > > make_request_fn() and potential memory allocation deadlock.
> >
> > sleeping in make_request_fn is not a nasty in itself, btw. in fact loop
> > just needs an emergency page pool for swap to be perfectly safe.
>
> loop-AES provides emergency page pool for device backed loop. Take a look.
Then sleeping in make_request_fn is not a nasty at all. In fact the
kernel does it all the time anyways.
--
Jens Axboe
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: encrypted swap on loop in 2.4.10-pre12?
2001-09-20 12:08 ` Jari Ruusu
2001-09-20 12:25 ` Jens Axboe
@ 2001-09-20 13:17 ` steve j. kondik
2001-09-20 17:04 ` Jari Ruusu
2001-09-20 17:20 ` steve j. kondik
1 sibling, 2 replies; 15+ messages in thread
From: steve j. kondik @ 2001-09-20 13:17 UTC (permalink / raw)
To: Jens Axboe; +Cc: Jari Ruusu, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 990 bytes --]
loop-aes does not work to encrypt swap using 2.4.10-pre12. the same
panic results during mkswap.
On Thu, 2001-09-20 at 08:25, Jens Axboe wrote:
> On Thu, Sep 20 2001, Jari Ruusu wrote:
> > Jens Axboe wrote:
> > > On Thu, Sep 20 2001, Jari Ruusu wrote:
> > > > Cryptoapi can't be used to encrypt swap. It has nasties like sleeping in
> > > > make_request_fn() and potential memory allocation deadlock.
> > >
> > > sleeping in make_request_fn is not a nasty in itself, btw. in fact loop
> > > just needs an emergency page pool for swap to be perfectly safe.
> >
> > loop-AES provides emergency page pool for device backed loop. Take a look.
>
> Then sleeping in make_request_fn is not a nasty at all. In fact the
> kernel does it all the time anyways.
>
--
http://chemlab.org - email shade-pgpkey@chemlab.org for pgp public key
chemlab radio! - drop out @ http://mp3.chemlab.org:8000 24-7-365
"i could build anything if i could just find my tools.."
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: encrypted swap on loop in 2.4.10-pre12?
2001-09-20 13:17 ` steve j. kondik
@ 2001-09-20 17:04 ` Jari Ruusu
2001-09-20 17:20 ` steve j. kondik
1 sibling, 0 replies; 15+ messages in thread
From: Jari Ruusu @ 2001-09-20 17:04 UTC (permalink / raw)
To: steve j. kondik; +Cc: Jens Axboe, linux-kernel
"steve j. kondik" wrote:
> loop-aes does not work to encrypt swap using 2.4.10-pre12. the same
> panic results during mkswap.
Did you remove _any_ of the kernel compile time generated files from kernel
source tree? Some of those generated files are _required_ to correctly
compile modules.
Regards,
Jari Ruusu <jari.ruusu@pp.inet.fi>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: encrypted swap on loop in 2.4.10-pre12?
2001-09-20 13:17 ` steve j. kondik
2001-09-20 17:04 ` Jari Ruusu
@ 2001-09-20 17:20 ` steve j. kondik
2001-09-20 17:55 ` Jari Ruusu
1 sibling, 1 reply; 15+ messages in thread
From: steve j. kondik @ 2001-09-20 17:20 UTC (permalink / raw)
To: Jari Ruusu; +Cc: Jens Axboe, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 865 bytes --]
hmm? both cryptoapi and loop-aes work just fine when encrypting
anything but swap. this is _only_ with kernel 2.4.10-pre12. i would
suspect something changed that breaks swap on loopdev in general in this
kernel.
-steve
On Thu, 2001-09-20 at 13:04, Jari Ruusu wrote:
> "steve j. kondik" wrote:
> > loop-aes does not work to encrypt swap using 2.4.10-pre12. the same
> > panic results during mkswap.
>
> Did you remove _any_ of the kernel compile time generated files from kernel
> source tree? Some of those generated files are _required_ to correctly
> compile modules.
>
> Regards,
> Jari Ruusu <jari.ruusu@pp.inet.fi>
>
--
http://chemlab.org - email shade-pgpkey@chemlab.org for pgp public key
chemlab radio! - drop out @ http://mp3.chemlab.org:8000 24-7-365
"i could build anything if i could just find my tools.."
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: encrypted swap on loop in 2.4.10-pre12?
2001-09-20 17:20 ` steve j. kondik
@ 2001-09-20 17:55 ` Jari Ruusu
2001-09-20 18:59 ` Michael H. Warfield
2001-09-21 0:36 ` steve j. kondik
0 siblings, 2 replies; 15+ messages in thread
From: Jari Ruusu @ 2001-09-20 17:55 UTC (permalink / raw)
To: steve j. kondik; +Cc: Jens Axboe, linux-kernel
"steve j. kondik" wrote:
> hmm? both cryptoapi and loop-aes work just fine when encrypting
> anything but swap. this is _only_ with kernel 2.4.10-pre12. i would
> suspect something changed that breaks swap on loopdev in general in this
> kernel.
loop-AES encrypted swap works just fine on 2.4.10-pre12, see:
# uname -a
Linux debian 2.4.10-pre12 #1 Thu Sep 20 20:15:08 EEST 2001 i686 unknown
# vmstat
procs memory swap io system cpu
r b w swpd free buff cache si so bi bo in cs us sy id
0 0 1 4708 2708 1824 12856 19 28 682 623 223 119 5 74 21
# swapon -s
Filename Type Size Used Priority
/dev/loop6 partition 191512 4704 -1
# losetup /dev/loop6
/dev/loop6: [0301]:170184 (/dev/hda2) offset 0, AES encryption
Regards,
Jari Ruusu <jari.ruusu@pp.inet.fi>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: encrypted swap on loop in 2.4.10-pre12?
2001-09-20 17:55 ` Jari Ruusu
@ 2001-09-20 18:59 ` Michael H. Warfield
2001-09-21 0:36 ` steve j. kondik
1 sibling, 0 replies; 15+ messages in thread
From: Michael H. Warfield @ 2001-09-20 18:59 UTC (permalink / raw)
To: Jari Ruusu; +Cc: steve j. kondik, Jens Axboe, linux-kernel
On Thu, Sep 20, 2001 at 08:55:11PM +0300, Jari Ruusu wrote:
> "steve j. kondik" wrote:
> > hmm? both cryptoapi and loop-aes work just fine when encrypting
> > anything but swap. this is _only_ with kernel 2.4.10-pre12. i would
> > suspect something changed that breaks swap on loopdev in general in this
> > kernel.
> loop-AES encrypted swap works just fine on 2.4.10-pre12, see:
But that's only your system. He obvious has a counter example
(which may not be the fault of loop-AES, but something else, that has
yet to be determined). So the two of you are now reduced to figuring
out why his is broken as yours is not. Standard debugging situation.
> # uname -a
> Linux debian 2.4.10-pre12 #1 Thu Sep 20 20:15:08 EEST 2001 i686 unknown
> # vmstat
> procs memory swap io system cpu
> r b w swpd free buff cache si so bi bo in cs us sy id
> 0 0 1 4708 2708 1824 12856 19 28 682 623 223 119 5 74 21
> # swapon -s
> Filename Type Size Used Priority
> /dev/loop6 partition 191512 4704 -1
> # losetup /dev/loop6
> /dev/loop6: [0301]:170184 (/dev/hda2) offset 0, AES encryption
> Regards,
> Jari Ruusu <jari.ruusu@pp.inet.fi>
Mike
--
Michael H. Warfield | (770) 985-6132 | mhw@WittsEnd.com
(The Mad Wizard) | (678) 463-0932 | http://www.wittsend.com/mhw/
NIC whois: MHW9 | An optimist believes we live in the best of all
PGP Key: 0xDF1DD471 | possible worlds. A pessimist is sure of it!
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: encrypted swap on loop in 2.4.10-pre12?
2001-09-20 17:55 ` Jari Ruusu
2001-09-20 18:59 ` Michael H. Warfield
@ 2001-09-21 0:36 ` steve j. kondik
2001-09-21 9:15 ` Jari Ruusu
2001-09-21 14:52 ` steve j. kondik
1 sibling, 2 replies; 15+ messages in thread
From: steve j. kondik @ 2001-09-21 0:36 UTC (permalink / raw)
To: Michael H. Warfield; +Cc: Jari Ruusu, Jens Axboe, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 2645 bytes --]
agreed. i've had this problem on two seperate systems, however i _am_
running a few other patches- notably the kpreempt patch. but again, no
problems at all until 2.4.10-pre12. i'll try some things in the morning
and see what i can come up with. i see you are doing swapon, however
have you tried mkswap over your loopdev? i can actually swapon just
fine, its mkswap that causes the panic.
On Thu, 2001-09-20 at 14:59, Michael H. Warfield wrote:
> On Thu, Sep 20, 2001 at 08:55:11PM +0300, Jari Ruusu wrote:
> > "steve j. kondik" wrote:
> > > hmm? both cryptoapi and loop-aes work just fine when encrypting
> > > anything but swap. this is _only_ with kernel 2.4.10-pre12. i would
> > > suspect something changed that breaks swap on loopdev in general in this
> > > kernel.
>
> > loop-AES encrypted swap works just fine on 2.4.10-pre12, see:
>
> But that's only your system. He obvious has a counter example
> (which may not be the fault of loop-AES, but something else, that has
> yet to be determined). So the two of you are now reduced to figuring
> out why his is broken as yours is not. Standard debugging situation.
>
> > # uname -a
> > Linux debian 2.4.10-pre12 #1 Thu Sep 20 20:15:08 EEST 2001 i686 unknown
> > # vmstat
> > procs memory swap io system cpu
> > r b w swpd free buff cache si so bi bo in cs us sy id
> > 0 0 1 4708 2708 1824 12856 19 28 682 623 223 119 5 74 21
> > # swapon -s
> > Filename Type Size Used Priority
> > /dev/loop6 partition 191512 4704 -1
> > # losetup /dev/loop6
> > /dev/loop6: [0301]:170184 (/dev/hda2) offset 0, AES encryption
>
> > Regards,
> > Jari Ruusu <jari.ruusu@pp.inet.fi>
>
> Mike
> --
> Michael H. Warfield | (770) 985-6132 | mhw@WittsEnd.com
> (The Mad Wizard) | (678) 463-0932 | http://www.wittsend.com/mhw/
> NIC whois: MHW9 | An optimist believes we live in the best of all
> PGP Key: 0xDF1DD471 | possible worlds. A pessimist is sure of it!
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
--
http://chemlab.org - email shade-pgpkey@chemlab.org for pgp public key
chemlab radio! - drop out @ http://mp3.chemlab.org:8000 24-7-365
"i could build anything if i could just find my tools.."
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: encrypted swap on loop in 2.4.10-pre12?
2001-09-21 0:36 ` steve j. kondik
@ 2001-09-21 9:15 ` Jari Ruusu
2001-09-21 14:52 ` steve j. kondik
1 sibling, 0 replies; 15+ messages in thread
From: Jari Ruusu @ 2001-09-21 9:15 UTC (permalink / raw)
To: steve j. kondik; +Cc: Michael H. Warfield, Jens Axboe, linux-kernel
"steve j. kondik" wrote:
> agreed. i've had this problem on two seperate systems, however i _am_
> running a few other patches- notably the kpreempt patch. but again, no
> problems at all until 2.4.10-pre12. i'll try some things in the morning
> and see what i can come up with. i see you are doing swapon, however
> have you tried mkswap over your loopdev? i can actually swapon just
> fine, its mkswap that causes the panic.
I losetup the encrypted swap loop with a random key every time the box
boots, so mkswap is done before swapon. I used the example script in the
loop-AES README file.
For testing purposes, can you back out the kpreempt patch, and let me know
if that cures the problem.
Regards,
Jari Ruusu <jari.ruusu@pp.inet.fi>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: encrypted swap on loop in 2.4.10-pre12?
2001-09-21 0:36 ` steve j. kondik
2001-09-21 9:15 ` Jari Ruusu
@ 2001-09-21 14:52 ` steve j. kondik
1 sibling, 0 replies; 15+ messages in thread
From: steve j. kondik @ 2001-09-21 14:52 UTC (permalink / raw)
To: Jari Ruusu; +Cc: Michael H. Warfield, Jens Axboe, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1424 bytes --]
i am successfully running 2.4.10-pre13 with kpreempt, grsec, and ext3
with encrypted swap now.
On Fri, 2001-09-21 at 05:15, Jari Ruusu wrote:
> "steve j. kondik" wrote:
> > agreed. i've had this problem on two seperate systems, however i _am_
> > running a few other patches- notably the kpreempt patch. but again, no
> > problems at all until 2.4.10-pre12. i'll try some things in the morning
> > and see what i can come up with. i see you are doing swapon, however
> > have you tried mkswap over your loopdev? i can actually swapon just
> > fine, its mkswap that causes the panic.
>
> I losetup the encrypted swap loop with a random key every time the box
> boots, so mkswap is done before swapon. I used the example script in the
> loop-AES README file.
>
> For testing purposes, can you back out the kpreempt patch, and let me know
> if that cures the problem.
>
> Regards,
> Jari Ruusu <jari.ruusu@pp.inet.fi>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
--
http://chemlab.org - email shade-pgpkey@chemlab.org for pgp public key
chemlab radio! - drop out @ http://mp3.chemlab.org:8000 24-7-365
"i could build anything if i could just find my tools.."
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2001-09-21 14:52 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-19 15:18 encrypted swap on loop in 2.4.10-pre12? steve j. kondik
2001-09-19 15:37 ` Jens Axboe
2001-09-19 17:38 ` steve j. kondik
2001-09-19 21:02 ` Jari Ruusu
2001-09-20 6:13 ` Jens Axboe
2001-09-20 12:08 ` Jari Ruusu
2001-09-20 12:25 ` Jens Axboe
2001-09-20 13:17 ` steve j. kondik
2001-09-20 17:04 ` Jari Ruusu
2001-09-20 17:20 ` steve j. kondik
2001-09-20 17:55 ` Jari Ruusu
2001-09-20 18:59 ` Michael H. Warfield
2001-09-21 0:36 ` steve j. kondik
2001-09-21 9:15 ` Jari Ruusu
2001-09-21 14:52 ` steve j. kondik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).