Port-amd64 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Insufficient locking in via_padlock_cbc?



Hi,

via_padlock_cbc does this:

    337 	creg0 = rcr0();		/* Permit access to SIMD/FPU path */
    338 	lcr0(creg0 & ~(CR0_EM|CR0_TS));
    339 
    340 	/* Do the deed */
    341 	__asm __volatile("pushfl; popfl");	/* force key reload */
    342 	__asm __volatile(".byte 0xf3, 0x0f, 0xa7, 0xd0" : /* rep xcrypt-cbc */
    343 			: "a" (iv), "b" (key), "c" (rep), "d" (cw), "S" (src), "D" (dst)
    344 			: "memory", "cc");
    345 
    346 	lcr0(creg0);


I don't see an indication it's disabling hw interrupts during, doesn't
this mean that it can be interrupted/migrated in the middle?

Thanks.


Home | Main Index | Thread Index | Old Index