Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
  • Kirill Tkhai's avatar
    crypto: xor - Fix divide error in do_xor_speed() · 3c02e04f
    Kirill Tkhai authored
    crypto: Fix divide error in do_xor_speed()
    
    From: Kirill Tkhai <ktkhai@virtuozzo.com>
    
    Latest (but not only latest) linux-next panics with divide
    error on my QEMU setup.
    
    The patch at the bottom of this message fixes the problem.
    
    xor: measuring software checksum speed
    divide error: 0000 [#1] PREEMPT SMP KASAN
    PREEMPT SMP KASAN
    CPU: 3 PID: 1 Comm: swapper/0 Not tainted 5.10.0-next-20201223+ #2177
    RIP: 0010:do_xor_speed+0xbb/0xf3
    Code: 41 ff cc 75 b5 bf 01 00 00 00 e8 3d 23 8b fe 65 8b 05 f6 49 83 7d 85 c0 75 05 e8
     84 70 81 fe b8 00 00 50 c3 31 d2 48 8d 7b 10 <f7> f5 41 89 c4 e8 58 07 a2 fe 44 89 63 10 48 8d 7b 08
     e8 cb 07 a2
    RSP: 0000:ffff888100137dc8 EFLAGS: 00010246
    RAX: 00000000c3500000 RBX: ffffffff823f0160 RCX: 0000000000000000
    RDX: 0000000000000000 RSI: 0000000000000808 RDI: ffffffff823f0170
    RBP: 0000000000000000 R08: ffffffff8109c50f R09: ffffffff824bb6f7
    R10: fffffbfff04976de R11: 0000000000000001 R12: 0000000000000000
    R13: ffff888101997000 R14: f...
    3c02e04f