Public bug reported:

The pt3_drv driver, which worked fine with kernel 6.8.0-40, stopped
working after updating to kernel 6.8.0-45.

The same driver works fine with proxmox-kernel-6.8.12-1-pve-signed on
Proxmox (debian).

The driver is the one on github below.
https://github.com/m-tsudo/pt3.git

The part where it crashes seems to be where dma_set_coherent_mask is called in 
#929 of pt3_pci.c.
(Because there is no message output by check_fpga_version below that)

dmesg
-----------------------------------------------
[    7.043221] pt3_drv: loading out-of-tree module taints kernel.
[    7.043232] pt3_drv: module verification failed: signature and/or required 
key missing - tainting kernel
[    7.043815] PT3: pt3_drv 0.0.1rev120 2023-07-01
[    7.046558] PT3: Bus Mastering Enabled.
[    7.046856] PT3: Revision 0x1 passed
[    7.046859] PT3: Allocate PT3_DEVICE.
[    7.046887] BUG: unable to handle page fault for address: 0000001000000080
[    7.047249] #PF: supervisor read access in kernel mode
[    7.047542] #PF: error_code(0x0000) - not-present page
[    7.047841] PGD 0 P4D 0
[    7.048129] Oops: 0000 [#1] PREEMPT SMP NOPTI
[    7.048429] CPU: 0 PID: 403 Comm: systemd-udevd Tainted: G           OE      
6.8.0-45-generic #45~22.04.1-Ubuntu
[    7.049578] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 
02/06/2015
[    7.049900] RIP: 0010:dma_set_coherent_mask+0x1e/0x70
[    7.050273] Code: 90 90 90 90 90 90 90 90 90 90 90 90 0f 1f 44 00 00 55 48 
89 e5 41 54 49 89 f4 53 48 8b 87 38 02 00 00 48 89 fb 48 85 c0 74 31 <48> 8b 80 
a0 00 00 00 48 85 c0 74 0f 4c 89 e6 48 89 df e8 8b 8a 03
[    7.051033] RSP: 0018:ffffb2c2c07f78b8 EFLAGS: 00010202
[    7.051433] RAX: 0000000fffffffe0 RBX: ffff9f4c0102a000 RCX: 0000000000000000
[    7.051756] RDX: 0000000000000000 RSI: ffffffffffffffff RDI: ffff9f4c0102a000
[    7.052069] RBP: ffffb2c2c07f78c8 R08: 0000000000000000 R09: 0000000000000000
[    7.052382] R10: 0000000000000000 R11: 0000000000000000 R12: ffffffffffffffff
[    7.052693] R13: ffffffffc0bb2b00 R14: ffff9f4c0102a0c8 R15: ffff9f4c0102a000
[    7.056054] FS:  00007abab94418c0(0000) GS:ffff9f4c7bc00000(0000) 
knlGS:0000000000000000
[    7.056375] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    7.056687] CR2: 0000001000000080 CR3: 000000011e9f0000 CR4: 0000000000750ef0
[    7.057156] PKRU: 55555554
[    7.057467] Call Trace:
[    7.057790]  <TASK>
[    7.059460]  ? show_regs+0x6d/0x80
[    7.059796]  ? __die+0x24/0x80
[    7.060103]  ? page_fault_oops+0x99/0x1b0
[    7.060419]  ? do_user_addr_fault+0x2ed/0x670
[    7.060726]  ? srso_alias_return_thunk+0x5/0xfbef5
[    7.061046]  ? exc_page_fault+0x83/0x1b0
[    7.061391]  ? asm_exc_page_fault+0x27/0x30
[    7.061699]  ? dma_set_coherent_mask+0x1e/0x70
[    7.062016]  pt3_pci_init_one+0x1ea/0x1130 [pt3_drv]
[    7.062331]  ? __schedule+0x284/0x6a0
[    7.062673]  ? srso_alias_return_thunk+0x5/0xfbef5
[    7.062981]  ? _raw_spin_unlock_irqrestore+0x11/0x60
[    7.063300]  local_pci_probe+0x47/0xb0
[    7.063753]  pci_call_probe+0x55/0x1a0
[    7.064058]  ? srso_alias_return_thunk+0x5/0xfbef5
[    7.064371]  pci_device_probe+0x84/0x120
[    7.064684]  ? srso_alias_return_thunk+0x5/0xfbef5
[    7.064996]  really_probe+0x1cc/0x430
[    7.065308]  __driver_probe_device+0x8c/0x190
[    7.065601]  driver_probe_device+0x24/0xd0
[    7.065904]  __driver_attach+0x10b/0x210
[    7.066224]  ? __pfx___driver_attach+0x10/0x10
[    7.066518]  bus_for_each_dev+0x8d/0xf0
[    7.066812]  driver_attach+0x1e/0x30
[    7.067099]  bus_add_driver+0x14e/0x290
[    7.067385]  driver_register+0x5e/0x130
[    7.067849]  ? __pfx_pt3_pci_init+0x10/0x10 [pt3_drv]
[    7.068135]  __pci_register_driver+0x5e/0x70
[    7.068487]  pt3_pci_init+0x5b/0xff0 [pt3_drv]
[    7.068777]  do_one_initcall+0x5e/0x340
[    7.069074]  do_init_module+0x97/0x290
[    7.069359]  load_module+0xb85/0xcd0
[    7.069624]  ? srso_alias_return_thunk+0x5/0xfbef5
[    7.070097]  ? security_kernel_post_read_file+0x75/0x90
[    7.070699]  init_module_from_file+0x96/0x100
[    7.070952]  ? srso_alias_return_thunk+0x5/0xfbef5
[    7.071189]  ? init_module_from_file+0x96/0x100
[    7.071454]  idempotent_init_module+0x11c/0x2b0
[    7.071731]  __x64_sys_finit_module+0x64/0xd0
[    7.071957]  x64_sys_call+0x169c/0x24b0
[    7.072181]  do_syscall_64+0x81/0x170
[    7.072409]  ? srso_alias_return_thunk+0x5/0xfbef5
[    7.072681]  ? do_syscall_64+0x8d/0x170
[    7.072902]  ? srso_alias_return_thunk+0x5/0xfbef5
[    7.073120]  ? do_syscall_64+0x8d/0x170
[    7.073333]  ? srso_alias_return_thunk+0x5/0xfbef5
[    7.073540]  ? do_syscall_64+0x8d/0x170
[    7.073778]  ? srso_alias_return_thunk+0x5/0xfbef5
[    7.073986]  ? do_syscall_64+0x8d/0x170
[    7.074194]  entry_SYSCALL_64_after_hwframe+0x78/0x80
[    7.074402] RIP: 0033:0x7abab931e88d
[    7.074629] Code: 5b 41 5c c3 66 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 48 89 
f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 
f0 ff ff 73 01 c3 48 8b 0d 73 b5 0f 00 f7 d8 64 89 01 48
[    7.075112] RSP: 002b:00007ffc45de6cb8 EFLAGS: 00000246 ORIG_RAX: 
0000000000000139
[    7.075353] RAX: ffffffffffffffda RBX: 0000615c853fea90 RCX: 00007abab931e88d
[    7.075591] RDX: 0000000000000000 RSI: 0000615c853ff030 RDI: 0000000000000010
[    7.075839] RBP: 0000000000020000 R08: 0000000000000000 R09: 00007ffc45de6df0
[    7.076089] R10: 0000000000000010 R11: 0000000000000246 R12: 0000615c853ff030
[    7.076361] R13: 0000615c85327700 R14: 0000000000000000 R15: 0000615c853ff1a0
[    7.076604]  </TASK>
[    7.076846] Modules linked in: pt3_drv(OE+) qemu_fw_cfg mac_hid altera_cvp 
fpga_mgr sch_fq_codel nfsd msr auth_rpcgss nfs_acl lockd grace efi_pstore 
sunrpc ip_tables x_tables autofs4 xfs btrfs blake2b_generic raid10 raid456 
async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq 
libcrc32c raid1 raid0 hid_generic usbhid hid crct10dif_pclmul crc32_pclmul 
polyval_clmulni polyval_generic ghash_clmulni_intel sha256_ssse3 sha1_ssse3 
ahci lpc_ich psmouse i2c_i801 xhci_pci xhci_pci_renesas i2c_smbus libahci qxl 
drm_ttm_helper virtio_rng ttm aesni_intel crypto_simd cryptd
[    7.078396] CR2: 0000001000000080
[    7.078705] ---[ end trace 0000000000000000 ]---
[    7.657650] RIP: 0010:dma_set_coherent_mask+0x1e/0x70
[    7.659496] Code: 90 90 90 90 90 90 90 90 90 90 90 90 0f 1f 44 00 00 55 48 
89 e5 41 54 49 89 f4 53 48 8b 87 38 02 00 00 48 89 fb 48 85 c0 74 31 <48> 8b 80 
a0 00 00 00 48 85 c0 74 0f 4c 89 e6 48 89 df e8 8b 8a 03
[    7.660152] RSP: 0018:ffffb2c2c07f78b8 EFLAGS: 00010202
[    7.660470] RAX: 0000000fffffffe0 RBX: ffff9f4c0102a000 RCX: 0000000000000000
[    7.660786] RDX: 0000000000000000 RSI: ffffffffffffffff RDI: ffff9f4c0102a000
[    7.661099] RBP: ffffb2c2c07f78c8 R08: 0000000000000000 R09: 0000000000000000
[    7.661413] R10: 0000000000000000 R11: 0000000000000000 R12: ffffffffffffffff
[    7.661732] R13: ffffffffc0bb2b00 R14: ffff9f4c0102a0c8 R15: ffff9f4c0102a000
[    7.662052] FS:  00007abab94418c0(0000) GS:ffff9f4c7bc00000(0000) 
knlGS:0000000000000000
[    7.662375] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    7.662706] CR2: 0000001000000080 CR3: 000000011e9f0000 CR4: 0000000000750ef0
[    7.663037] PKRU: 55555554
[    7.663379] note: systemd-udevd[403] exited with irqs disabled
-----------------------------------------------

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: linux-image-6.8.0-45-generic 6.8.0-45.45~22.04.1
ProcVersionSignature: Ubuntu 6.8.0-45.45~22.04.1-generic 6.8.12
Uname: Linux 6.8.0-45-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.6
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Sun Sep 22 10:18:15 2024
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=ja_JP.UTF-8
 SHELL=/bin/bash
SourcePackage: linux-signed-hwe-6.8
UpgradeStatus: Upgraded to jammy on 2022-09-21 (731 days ago)

** Affects: linux-signed-hwe-6.8 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug jammy

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2081612

Title:
  The pt3_drv module that worked in 6.8.0-40 no longer works in
  6.8.0-45.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-signed-hwe-6.8/+bug/2081612/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to