Bug 216587 - RIP: 0010:clmul_polyval_update+0x3e9/0x5c4 [polyval_clmulni]
Summary: RIP: 0010:clmul_polyval_update+0x3e9/0x5c4 [polyval_clmulni]
Status: RESOLVED OBSOLETE
Alias: None
Product: Other
Classification: Unclassified
Component: Modules (show other bugs)
Hardware: AMD Linux
: P1 normal
Assignee: other_modules
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-14 23:30 UTC by Erhard F.
Modified: 2022-11-14 23:07 UTC (History)
1 user (show)

See Also:
Kernel Version:
Subsystem:
Regression: No
Bisected commit-id:


Attachments
kernel dmesg (kernel 6.0.1, AMD FX8370) (63.95 KB, text/plain)
2022-10-14 23:30 UTC, Erhard F.
Details
kernel .config (kernel 6.0.1, AMD FX8370) (113.85 KB, text/plain)
2022-10-14 23:30 UTC, Erhard F.
Details

Description Erhard F. 2022-10-14 23:30:03 UTC
Created attachment 303001 [details]
kernel dmesg (kernel 6.0.1, AMD FX8370)

Happens every time at boot when CRYPTO_HCTR2=m and CRYPTO_POLYVAL_CLMUL_NI=m are built:

[...]
RIP: 0010:clmul_polyval_update+0x3e9/0x5c4 [polyval_clmulni]
Code: df 11 c4 41 31 ef fb 48 83 c2 08 0f 84 eb 01 00 00 48 89 d0 48 c1 e0 04 48 81 c7 80 00 00 00 48 29 c7 0f 10 06 66 41 0f ef c7 <0f> 28 0f c4 63 71 44 f0 01 c4 e3 71 44 d0 10 c4 63 71 44 e0 00 c4
RSP: 0018:ffffa3ff01ebfb00 EFLAGS: 00010286
RAX: 0000000000000030 RBX: ffff90c7526ae000 RCX: ffff90c74f4516e8
RDX: 0000000000000003 RSI: ffff90c7526ae000 RDI: ffff90c750fb4078
RBP: 0000000000000030 R08: 0000000000000030 R09: ffffa3ff01ebfd90
R10: 0000000000000000 R11: ffffffffc044064e R12: 0000000000000030
R13: ffff90c750fb4028 R14: ffff90c74f4516e8 R15: 0000000000000003
FS:  0000000000000000(0000) GS:ffff90ce4edc0000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff7b608ee6d CR3: 000000010e984000 CR4: 00000000000406e0
Call Trace:
 <TASK>
 polyval_x86_update+0xc4/0x132 [polyval_clmulni]
 crypto_shash_update+0x121/0x164
 ? vsnprintf+0x511/0x58f
 ? build_hash_sglist+0x7e/0x9f
 __alg_test_hash+0x500/0x1297
 alg_test+0x10e/0x30a
 ? set_next_entity+0x2f/0x5d
 ? _raw_spin_unlock+0x5/0xa
 ? finish_task_switch+0xa9/0x273
 ? crypto_alg_put+0x3b/0x3b
 cryptomgr_test+0x26/0x44
 kthread+0xc2/0xd1
 ? kthread_blkcg+0x2d/0x2d
 ret_from_fork+0x22/0x30
 </TASK>
Modules linked in: polyval_clmulni(+) polyval_generic gf128mul evdev pkcs8_key_parser it87 hwmon_vid aesni_intel sr_mod(+) radeon(+) libaes crypto_simd cdrom cryptd drm_ttm_helper snd_hda_codec_realtek k10temp fam15h_power snd_hda_codec_generic ttm ledtrig_audio i2c_algo_bit hwmon led_class snd_hda_codec_hdmi drm_display_helper 8250 drm_kms_helper 8250_base serial_core sysimgblt syscopyarea snd_hda_intel sysfillrect acpi_cpufreq snd_intel_dspcfg fb_sys_fops xhci_pci(+) snd_hda_codec ohci_hcd ehci_pci(+) xhci_hcd ehci_hcd drm snd_hwdep snd_hda_core snd_pcm snd_timer drm_panel_orientation_quirks i2c_piix4 backlight snd button usbcore usb_common soundcore processor efivarfs
---[ end trace 0000000000000000 ]---
RIP: 0010:clmul_polyval_update+0x3e9/0x5c4 [polyval_clmulni]
Code: df 11 c4 41 31 ef fb 48 83 c2 08 0f 84 eb 01 00 00 48 89 d0 48 c1 e0 04 48 81 c7 80 00 00 00 48 29 c7 0f 10 06 66 41 0f ef c7 <0f> 28 0f c4 63 71 44 f0 01 c4 e3 71 44 d0 10 c4 63 71 44 e0 00 c4
RSP: 0018:ffffa3ff01ebfb00 EFLAGS: 00010286
RAX: 0000000000000030 RBX: ffff90c7526ae000 RCX: ffff90c74f4516e8
RDX: 0000000000000003 RSI: ffff90c7526ae000 RDI: ffff90c750fb4078
RBP: 0000000000000030 R08: 0000000000000030 R09: ffffa3ff01ebfd90
R10: 0000000000000000 R11: ffffffffc044064e R12: 0000000000000030
R13: ffff90c750fb4028 R14: ffff90c74f4516e8 R15: 0000000000000003
FS:  0000000000000000(0000) GS:ffff90ce4edc0000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff7b608ee6d CR3: 000000010e984000 CR4: 00000000000406e0


Some data about the machine:
# inxi -bZ
System:
  Kernel: 6.0.1-gentoo-bdver2 arch: x86_64 bits: 64
    Desktop: MATE v: 1.24.3 Distro: Gentoo Base System release 2.8
Machine:
  Type: Desktop Mobo: Gigabyte model: 970-GAMING v: x.x serial: N/A
    UEFI: American Megatrends v: F2 date: 04/06/2016
CPU:
  Info: 8-core AMD FX-8370 [MT MCP] speed (MHz): avg: 1400 min/max: 1400/4000
Graphics:
  Device-1: AMD Redwood PRO [Radeon HD 5550/5570/5630/6510/6610/7570]
    driver: radeon v: kernel
  Display: x11 server: X.Org v: 21.1.4 driver: X: loaded: radeon
    unloaded: fbdev,modesetting gpu: radeon resolution: 1920x1080~60Hz
  OpenGL:
    renderer: AMD REDWOOD (DRM 2.50.0 / 6.0.1-gentoo-bdver2 LLVM 15.0.2)
    v: 3.3 Mesa 22.2.1
Network:
  Device-1: Qualcomm Atheros Killer E2400 Gigabit Ethernet driver: alx
Comment 1 Erhard F. 2022-10-14 23:30:32 UTC
Created attachment 303002 [details]
kernel .config (kernel 6.0.1, AMD FX8370)
Comment 2 Erhard F. 2022-11-14 23:07:43 UTC
Cannot reproduce this on 6.1-rc5. Probably fixed by https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9f6035af06b526e678808d492fc0830aef6cfbd8

Closing here.

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