Browse Source

Initial import: working 06cb:0081 fingerprint setup

Enrollment + verification work end-to-end on Linux via rstar000/uunicorn's
Wine-sandbox route (vendor WBDI driver + hacked Wine 4.8 winusb talking to
the sensor over live libusb). PAM integration: sudo accepts fingerprint OR
password concurrently (custom pam_fp.so); polkit is finger-first with a
password fallback.

- work/patches/       upstream deltas (wine build fixes, sandbox argv
                      dispatch, synaTudor route)
- work/artifacts/     sandbox runtime artifacts + verify.exe re-patch script
- work/pam/           pam_fp.so source, pamtest, installer
- work/fp-verify.sh   verify wrapper (exit 0 match / 1 no match / 2 timeout)
- work/wine-build.sh  reproducible hacked-Wine build
- drivers/, driverdlls/  vendor driver CABs + extracted DLLs (see README
                      legal note)
- README.md           full bring-up history, fixes, usage, restore steps
Johannes Zellner 1 tháng trước cách đây
commit
80e2cd3f0d
88 tập tin đã thay đổi với 6128 bổ sung và 0 xóa
  1. 23 0
      .gitignore
  2. 349 0
      README.md
  3. BIN
      driverdlls/synaAdvAdapter.dll
  4. BIN
      driverdlls/synaWudfBioUsb.dll
  5. 784 0
      drivers/di.html
  6. BIN
      drivers/jul2018/WudfUpdate_01011.dll
  7. BIN
      drivers/jul2018/synaAdvAdapter.dll
  8. BIN
      drivers/jul2018/synaTee.signed.dll
  9. 180 0
      drivers/jul2018/synaWudfBioLenovoLBGSGX.inf
  10. BIN
      drivers/jul2018/synaWudfBioUsb.dll
  11. BIN
      drivers/jul2018/synaumdfsgx.cat
  12. BIN
      drivers/jul2018/vtp.dll
  13. BIN
      drivers/sep2018/WudfUpdate_01011.dll
  14. BIN
      drivers/sep2018/synaAdvAdapter.dll
  15. 162 0
      drivers/sep2018/synaWudfBioLenovoLBG.inf
  16. BIN
      drivers/sep2018/synaWudfBioUsb.dll
  17. BIN
      drivers/sep2018/synaumdf.cat
  18. 0 0
      drivers/softpedia.html
  19. BIN
      drivers/synaptics-jul2018.cab
  20. BIN
      drivers/synaptics-sep2018.cab
  21. 31 0
      work/artifacts/make-verify.sh
  22. BIN
      work/artifacts/sandbox/CalibrationData.blob
  23. 0 0
      work/artifacts/sandbox/PairingData.blob
  24. 1 0
      work/artifacts/sandbox/SetOwnershipFailureCount.uint
  25. 1 0
      work/artifacts/sandbox/UpdateFirmwareFailureCount.uint
  26. 1 0
      work/artifacts/sandbox/deviceInitializeFailures.uint
  27. BIN
      work/artifacts/sandbox/libgcc_s_seh-1.dll
  28. BIN
      work/artifacts/sandbox/libstdc++-6.dll
  29. BIN
      work/artifacts/sandbox/libwinpthread-1.dll
  30. 1 0
      work/artifacts/sandbox/usb.txt
  31. BIN
      work/artifacts/sandbox/verify.exe
  32. 23 0
      work/artifacts/sync-to-sandbox.sh
  33. 67 0
      work/debug/drive_session.py
  34. 160 0
      work/debug/enroll.py
  35. 13 0
      work/debug/enroll.sh
  36. 228 0
      work/debug/gdb_capture.txt
  37. 35 0
      work/debug/gdb_cd2.txt
  38. 64 0
      work/debug/gdb_cd3.txt
  39. 46 0
      work/debug/gdb_cd4.txt
  40. 81 0
      work/debug/gdb_cd5.txt
  41. 38 0
      work/debug/gdb_cd6.txt
  42. 44 0
      work/debug/gdb_cd7.txt
  43. 26 0
      work/debug/gdb_corrupt.txt
  44. 37 0
      work/debug/gdb_corrupt2.txt
  45. 34 0
      work/debug/gdb_corrupt3.txt
  46. 35 0
      work/debug/gdb_corrupt4.txt
  47. 30 0
      work/debug/gdb_corrupt5.txt
  48. 21 0
      work/debug/gdb_crash_dump.txt
  49. 219 0
      work/debug/gdb_deep.txt
  50. 35 0
      work/debug/gdb_final.txt
  51. 20 0
      work/debug/gdb_final2.txt
  52. 20 0
      work/debug/gdb_final3.txt
  53. 51 0
      work/debug/gdb_final4.txt
  54. 31 0
      work/debug/gdb_gate.txt
  55. 219 0
      work/debug/gdb_maps.txt
  56. 30 0
      work/debug/gdb_new.txt
  57. 24 0
      work/debug/gdb_paths.txt
  58. 33 0
      work/debug/gdb_pinit.txt
  59. 30 0
      work/debug/gdb_state.txt
  60. 47 0
      work/debug/gdb_step.txt
  61. 97 0
      work/debug/gdb_trace.txt
  62. 35 0
      work/debug/gdb_vt.txt
  63. 27 0
      work/debug/gdb_vt2.txt
  64. 33 0
      work/debug/gdb_vt3.txt
  65. 55 0
      work/debug/gdb_watch.txt
  66. 3 0
      work/debug/gdb_watch2.txt
  67. 43 0
      work/debug/gdb_watch3.txt
  68. 33 0
      work/debug/gdb_wp.txt
  69. 41 0
      work/debug/gdb_wp3.txt
  70. 21 0
      work/debug/gdb_wp4.txt
  71. 37 0
      work/debug/gdb_wrap.txt
  72. 44 0
      work/debug/maps_crash.txt
  73. 12 0
      work/debug/run_aexe.sh
  74. 10 0
      work/debug/run_cli.sh
  75. 48 0
      work/debug/verify_result_SUCCESS.txt
  76. 17 0
      work/fp-pam.sh
  77. 44 0
      work/fp-verify.sh
  78. 21 0
      work/pam/Makefile
  79. 53 0
      work/pam/install.sh
  80. 366 0
      work/pam/pam_fp.c
  81. BIN
      work/pam/pam_fp.so
  82. BIN
      work/pam/pamtest
  83. 36 0
      work/pam/pamtest.c
  84. 1537 0
      work/patches/synaTudor-work.patch
  85. 128 0
      work/patches/uunicorn-sandbox-argv-dispatch.patch
  86. 67 0
      work/patches/uunicorn-wine-modern-toolchain.patch
  87. 1 0
      work/system/70-fingerprint-06cb-0081.rules
  88. 45 0
      work/wine-build.sh

+ 23 - 0
.gitignore

@@ -0,0 +1,23 @@
+# Rebuildable build trees (see work/wine-build.sh)
+work/wine-build/
+work/wineprefix/
+work/wineprefix-48/
+
+# Upstream clones (nested git repos; our deltas live in work/patches/)
+work/synaTudor/
+work/synaTudor-USB052/
+work/upstream-synaTudor/
+work/synaWudfBioUsb-sandbox/
+work/Validity90/
+work/Validity91/
+work/python-validity/
+
+# Transient logs/dumps
+work/debug/*.log
+work/debug/usb-*.txt
+work/debug/datastore.bin
+
+# misc
+__pycache__/
+*.pyc
+*.o

+ 349 - 0
README.md

@@ -0,0 +1,349 @@
+# Fingerprint reader bring-up: 06cb:0081 on Lenovo YOGA 720-13IKB
+
+## STATUS (2026-10-13): WORKING via the Wine sandbox route ✅
+
+Enrollment and verification both work end-to-end on Linux using
+rstar000's Wine-sandbox approach (vendor driver + hacked Wine 4.8 winusb →
+live libusb → sensor). See "Wine sandbox route" section at the bottom.
+
+Quick usage:
+- Enroll (touch sensor ~10 times): `work/debug/run_aexe.sh enroll a.exe`
+- Verify: `work/fp-verify.sh` → exit 0 = MATCH, 1 = no match, 2 = timeout/error
+- Template is stored in the sensor's flash → survives reboots/sessions.
+- PAM (active): sudo uses custom `pam_fp.so` — fingerprint OR password,
+  whichever comes first (no timeout wait); polkit is finger-first with a
+  password fallback. Installer: `sudo work/pam/install.sh`.
+
+The native synaTudor route below remains blocked (driver-internal NULL in the
+capture ioctl path); the Wine route is the pragmatic working solution.
+
+## Device
+- USB ID: **06cb:0081** Synaptics (Validity family, "Prometheus"-era)
+- No kernel driver; libfprint ships no support for this ID (supported list starts at 06cb:00bd)
+- Endpoints: bulk 64B in/out (0x01/0x81/0x82), interrupt in (0x83/0x84)
+
+## Approach used
+Relink the vendor Windows driver in userspace (rstar000's synaTudor fork):
+- `work/synaTudor/` - patched fork (builds at `work/synaTudor/build`)
+- `driverdlls/` - Synaptics WBDI driver DLLs 5.5.2731.1050 (non-SGX), extracted from
+  the Microsoft Update Catalog CABs in `drivers/`
+- `work/debug/` - run logs, core analyses, enrollment driver
+
+## What works
+- Driver init: `Attach` -> `Reset` -> `QueryStatus` (returns real device status;
+  `0x5` = NOT_CALIBRATED until calibration runs)
+- CLI (`build/cli/tudor_cli`) reaches its interactive command loop and can
+  save/load its datastore
+- USB protocol, TLS handshake, firmware handshake all function
+
+## Fixes applied to the fork (all in work/synaTudor)
+1. `winbio.h`: `WINBIO_SENSOR_INTERFACE_V1` - accurate pre-Win10 table layout.
+   The real table (verified from the adapter's own debug strings) is:
+   Attach, Detach, ClearContext, QueryStatus, Reset, SetMode, SetIndicatorStatus,
+   GetIndicatorStatus, StartCapture, FinishCapture, ExportSensorData, Cancel,
+   PushDataToEngine, ControlUnit, ResetOwnership (Synaptics extension).
+   There is **no** PipelineInit/Activate in this driver generation.
+2. `driver_wudf1.cpp`:
+   - Restore the whole 15-slot sensor table from the pristine file RVAs
+     (runtime state clobbered slots in .data).
+   - `GetNamedValue("CalibrationData")` must return a *well-formed* empty
+     PROPVARIANT; the original left `vt` uninitialized.
+   - `tudor_devctrl_wudf1` must wait for the driver's completion and return its
+     real status, and signal the caller's OVERLAPPED (`winio_complete_overlapped`).
+   - `DeviceIoControl` returns TRUE when the overlapped completed synchronously
+     and only signals `ERROR_IO_PENDING` when genuinely pending.
+3. `winusb.c`: re-acquire the device across re-enumeration cycles instead of
+   exiting; graceful failure on lost devices.
+4. Remove author-hardcoded paths (`/home/rstar000/...`), GCC15 build fixes.
+
+## UMDF generation: why the homemade host is the only correct one
+The fork contains TWO WUDF hosts:
+- `driver_wudf1.cpp` (homemade, **active**) — implements the **UMDF v2 COM entry**
+  (`DllGetClassObject` + `IClassFactory` + `IDriverEntry`), which is what this
+  driver uses.
+- `device.c`/`driver.c` + `wdf/*.c` (native framework, disabled) — implements
+  **UMDF v1** (`FxDriverEntryUm`), used by the older `synaFpAdapter104` driver
+  generation.
+
+The 06cb:0081 driver DLL exports only `DllGetClassObject` and
+`Microsoft_WDF_UMDF_Version` - it is a v2 driver. The native framework cannot
+load it at all ("Couldn't find DLL export 'FxDriverEntryUm'"). Porting to the
+native framework is therefore a dead end; the homemade v2 host is the correct
+architecture, and the remaining work is completing its v2 object graph.
+
+## Current blocker (final state after WUDF interface audit)
+Capture ioctl 0x44202c crashes at driver offset 0x34314 dereferencing
+`[ctx+0x1c0]` == NULL. Verified against the *official* UMDF 1.x COM interfaces
+(Microsoft wudfddi.h; the driver uses the UMDF-1 COM entry via
+DllGetClassObject):
+- Our emulated interface vtables match the official method counts/orders
+  (MyDevInit=IWDFDeviceInitialize 8 methods, MyDriver=IWDFDriver 6,
+  MyRequest=IWDFIoRequest 22, MyMem=IWDFMemory 5) - no vtable-order bug.
+- The driver's own ioctl sequence (`GetDeviceIoControlParameters ->
+  GetInput/OutputMemory -> GetDataBuffer -> SetInformation -> Complete`) runs
+  correctly and completes for every ioctl except the capture one, which dies
+  after `GetDataBuffer` of the output memory - i.e. inside the driver's own
+  capture handler, not in our stubs.
+- `ctx` is a driver-built C++ object (12+ driver-function vtable slots at
+  driver rvas 0x190c0..0x1ce70). Its `+0x1c0` slot holds a driver-internal
+  child object created by factory 0x163f0, stored at 0x6ea49 (capture path) or
+  at 0x1cc61 (init path gated on `[obj+0x238]==2`). None of those writers run
+  before the crash.
+- The driver's device state field `[obj+0x238]` (0=idle,1,2=active) is never
+  advanced to 2 in our host; the state writers (0x1cd95, 0x1d8e9, 0x249f0) are
+  never reached.
+
+Conclusion: the remaining gap is a WUDF v2 object-lifecycle linkage
+(device object internal state + child object creation) that the homemade host
+does not reproduce. Everything host-side that is verifiable against the public
+UMDF/WUDF documentation is already correct.
+
+## Final findings (host-API trace)
+The driver's device-setup sequence in our host (captured at the host API
+boundary):
+- `MyDevice::CreateIoQueue(...)` — secondary queue (DispatchType=Parallel), then
+- `MyDevice::ConfigureRequestDispatching(queue, WdfRequestTypeQueryInformation, Forward=1)`, then
+- `MyDevice::CreateDeviceInterface(GUID {e2b5183a-99ea-4cc3-ad6b-80ca8d715b80}, NULL)`
+  — the biometric device interface. The driver passes its device context
+  (`0x5555555b2a20`, our crash object) as an argument here.
+- `AssignDeviceInterfaceState` is called once (by the driver), with Enable=?
+  The host implements it as a logging no-op.
+
+Crash object analysis: `[ctx+0x1a0..0x1e8]` reveals an MSVC container layout
+(`{data-ptr, ..., count=2, 0x30}`), and `[ctx+0x1c0]` (container index 4 /
+notional element) is NULL. The driver indexes into this container during its
+capture ioctl dispatch and dereferences the element's vtable (`+0x38`).
+
+Interpretation: this is the driver's "IOCTL handler table" / dispatch map,
+built during device-interface setup. In a real UMDF host, the framework's
+device-interface activation (AssignDeviceInterfaceState) or the io-queue
+creation callbacks populate this map; our host's no-op implementations leave
+the map's capture entry NULL.
+
+### Remaining work
+Implement `CreateDeviceInterface`/`AssignDeviceInterfaceState` and
+`CreateIoQueue` semantics faithfully (reserve/register the interface state and
+queue entries the driver indexes), or find which single driver callback fills
+the dispatch map. This is now scoped to the device-interface/queue setup path,
+not general WUDF emulation.
+
+## Working state
+- Init + command loop + datastore round-trip: WORKING (init now ~20-30s)
+- Enrollment harness ready: `work/debug/enroll.sh`
+- All patches build clean (`work/synaTudor/build`), 12 files modified
+
+## Continuation checklist (next session)
+1. Instrument every `IWDFIoRequest` method with args+results (Send,
+   ForwardToIoQueue, GetFileObject, MarkCancelable, UnmarkCancelable,
+   GetCompletionParams, SetCompletionCallback) - the capture path likely
+   enters one of these on objects we hand it.
+2. The crash object is the driver's host-wrapper; find which host call creates
+   it by breaking at `base+0x3414c` and dumping the caller frames' arguments
+   (the wrapper is passed in as an argument, not returned).
+3. Compare the wrapper's expected layout against what our `CreateWdfObject`/
+   `CreateWdfFile` return: the missing `+0x1c0` linkage is likely the
+   parent-object slot WDF fills at object creation.
+4. After each fix: `printf 'e\n1\n1\n' | TUDOR_PROBE=0 timeout 300
+   ./cli/tudor_cli <datastore>` and check for a new crash offset - each fix
+   moves the failure later (proven pattern this session).
+
+## What was fixed this session (detail)
+WUDF host (`driver_wudf1.cpp`):
+- V1 sensor interface table (legacy 15-slot layout, no PipelineInit/Activate)
+- Whole-table restore from pristine file RVAs (runtime clobbering)
+- CalibrationData PROPVARIANT well-formedness
+- Device re-acquire across re-enumeration (`winusb.c`)
+- `tudor_devctrl_wudf1`: wait for driver completion, propagate real status,
+  signal caller's OVERLAPPED
+- `DeviceIoControl`: correct sync-complete vs ERROR_IO_PENDING semantics
+- ~30 output-pointer fixes (all Create*/Get* WUDF methods)
+- `AssignContext`/`RetrieveContext` now store/return context (6 classes)
+- `CreateWdfMemory`/`CreatePreallocatedWdfMemory`/`CreateWdfObject`/
+  `CreateWdfFile`/`CreateRequest` return live objects
+- Init sleeps reduced (50s -> 2s critical path)
+- Debug aids: TUDOR_LOAD base print, TUDOR_WUDF_TRACE, TUDOR_NO_ENGINE
+
+## Enrollment harness
+- `work/debug/enroll.sh` - runs the interactive enroll over a pty
+  (init ~3-4 min, then touch the sensor when asked)
+
+---
+
+## Wine sandbox route — WORKING (enroll + verify)
+
+Approach: rstar000's `synaWudfBioUsb-sandbox` (emulates the Windows Biometric
+service side) + `synaWudfBioUsb.dll` (vendor driver, UMDF2-style WBDI) run under
+a locally built **uunicorn/rstar000 Wine 4.8 fork** (`hacking/validiy-sensor`)
+whose `winusb.dll` talks to the real sensor through libusb (live USB, not
+replay).
+
+### Components
+- `work/synaWudfBioUsb-sandbox/`
+  - `a.exe` — sandbox harness (hardcoded flow: init → enroll() → identify())
+  - `verify.exe` — patched copy: verify-only (no re-enroll)
+  - `synaWudfBioUsb.dll`, MinGW runtime DLLs, `usb.txt` (`06cb:0081`)
+  - `CalibrationData.blob`, `PairingData.blob` — trust/calibration state
+    (persisted by the driver agent in its cwd)
+- `/tmp/opencode/wine-validity/` → installed at `work/wine-build/install/`
+  - Wine 4.8 fork built locally (see "Wine build fixes" below)
+  - binary: `work/wine-build/install/bin/wine64`
+- `work/wineprefix-48/` — dedicated Wine prefix; `drive_c/usb.txt` = `06cb:0081`
+  (device path the driver opens; fake winusb maps it to VID:PID via libusb)
+- `work/fp-verify.sh` — verify wrapper (sets WINEPREFIX, USB_SCRIPT, timeout)
+
+### Usage
+- **Enroll**: `work/debug/run_aexe.sh enroll a.exe`
+  - Touch the sensor for each of the ~10 captures, then it commits.
+  - Committed record: identity GUID `c5698517-bcff-12e7-2496-b763ed040000`,
+    subfactor `0xF6`, payload `"Unicorn"` (asserted in the commit ioctl 0x442018).
+- **Verify**: `work/fp-verify.sh`
+  - exit 0 = MATCH (returns the enrolled record from ioctl 0x442004),
+    1 = no match, 2 = timeout/error.
+  - Warm init to "waiting for finger" ≈ **3.6 s**; whole verify ≈ 5-10 s.
+- Re-run after USB re-enumeration or a crashed run may "fail the first couple
+  of times" (fake winusb doesn't detect reconnects) — just re-run.
+
+### verify.exe patch (from a.exe, which has symbols)
+- `0x4048b8` `call enroll` → NOP×5 (offset 0x3eae in file; signature
+  `b9 02 00 00 00 e8 1f e4 ff ff e8 02 d8 ff ff`)
+- `0x4048e1` `mov $0x2710,%ecx` (Sleep 10000) → `mov $0,%ecx`
+  (offset 0x3ee1; signature `b9 10 27 00 00 48 8b 05 4b 9c 01 00 ff d0 e8 16 ce ff ff`)
+
+### Proof logs (work/debug/)
+- `aexe_enroll_VERIFY_SUCCESS.log` — full enroll (10 captures, commit) +
+  identify match in one session
+- `aexe_verify2_FRESH_SESSION_SUCCESS.log` — fresh session, identify returns
+  the enrolled "Unicorn" record (persistent enrollment)
+- `fp-verify_MATCH_SUCCESS.log` — fp-verify.sh MATCH (exit 0)
+- `verify_result_SUCCESS.txt` — extracted decrypt/identify evidence
+- No-match behaviour: `0x442004` returns a zeroed record with WinBio error
+  dword `0x8009801F` (verified with a different finger; script exits 1)
+
+### Wine build fixes (old Wine 4.8 on GCC 16 / modern gnutls/openssl)
+- `dlls/bcrypt/gnutls.c`: pass `curve` not `&curve` to
+  `gnutls_privkey_export_ecc_raw` (API drift)
+- `dlls/bcrypt/secrets.c`: `const BIGNUM *` for `ECDSA_SIG_get0`; add
+  declaration of `get_gnutls_ecc_key_params` (from gnutls.c)
+- `dlls/crypt32/crypt32_private.h`: `extern HINSTANCE hInstance`
+- configure: `--enable-win64 --with-gnutls --without-x --disable-tests` +
+  disable unneeded modules; CFLAGS `-fcommon -std=gnu89 -Dbool=winbool_field`
+- Build: `make -j$(nproc)`, install to `work/wine-build/install`
+
+### Next steps for "use it" (auth integration)
+- PAM: `pam_exec.so seteuid work/fp-verify.sh` on `sudo` / `polkit-1`
+  (fingerprint first, password fallback), and lock screen where applicable.
+- Optionally a small systemd user unit or daemon mode later to keep Wine warm.
+
+### PAM integration (pam_exec) — used for polkit
+
+(sudo uses the custom `pam_fp.so` module documented below instead of this.)
+
+Files:
+- `work/fp-pam.sh` — pam_exec entry point (sets 25s touch window, fixed PATH/HOME)
+- `work/fp-verify.sh` — the actual verify run
+
+Rollback is instant: restore the `.bak-fp` files / remove the polkit override.
+
+```sh
+# 0) Safety: keep a root shell open in another terminal (sudo -s) while testing!
+
+# 1) sudo: fingerprint first, then system-auth (password fallback)
+sudo cp /etc/pam.d/sudo /etc/pam.d/sudo.bak-fp
+sudo sed -i '1i auth sufficient pam_exec.so stdout quiet /home/nebulon/projects/fingerprint/work/fp-pam.sh' /etc/pam.d/sudo
+
+# 2) polkit: create a local override of the vendor default (new file -> rollback = rm)
+sudo cp /usr/lib/pam.d/polkit-1 /etc/pam.d/polkit-1
+sudo sed -i '1i auth sufficient pam_exec.so stdout quiet /home/nebulon/projects/fingerprint/work/fp-pam.sh' /etc/pam.d/polkit-1
+
+# 3) Test sudo (don't type the password; touch the sensor)
+sudo -k -v
+
+# 4) Test polkit (GUI session): pkexec true  -> GNOME auth dialog -> touch sensor
+
+# Rollback
+sudo cp /etc/pam.d/sudo.bak-fp /etc/pam.d/sudo
+sudo rm /etc/pam.d/polkit-1
+```
+
+Notes:
+- `stdout` makes the "touch the reader" hint visible; `quiet` suppresses the
+  "failed: exit code N" notice when falling back.
+- `sufficient` = fingerprint match completes auth; failure/timeout (15s) falls
+  back to the next auth module (password). Password is always available — just
+  wait out the finger window or don't touch.
+- The window is `FP_VERIFY_TIMEOUT` in `work/fp-pam.sh` (default 15s).
+- The PAM line runs as root (no `seteuid`); `fp-pam.sh` then drops fully to
+  nebulon with `setpriv --reuid/--regid/--init-groups` before launching Wine.
+  (`seteuid` alone is not enough: Wine checks the *real* uid against the
+  prefix owner and refuses otherwise.) No root-owned Wine state is created.
+- If the fake winusb needs retries (USB re-enumeration), the run fails fast and
+  the password prompt appears — no lockout risk.
+
+### fingerprint OR password instantly (custom pam_fp.so) — ACTIVE for sudo
+
+Installed state: `/etc/pam.d/sudo` line 1 = `auth sufficient
+/home/nebulon/projects/fingerprint/work/pam/pam_fp.so`. Re-apply/restore with
+`sudo work/pam/install.sh` (also writes the polkit line + the fptest service).
+
+PAM can't race two auth methods natively, so `work/pam/pam_fp.c` implements it:
+- opens the terminal, starts the fingerprint check in the background and
+  immediately shows `Fingerprint: touch the sensor or type your password: `
+- a sensor match -> success; a typed password is validated through the normal
+  `system-auth` stack (pam_unix + faillock, so lockout accounting is correct);
+  just pressing Enter (or the finger check failing) falls back to the normal
+  password prompt. Echo is disabled while waiting and always restored.
+- non-terminal contexts (polkit GUI) fall back to a sequential finger check.
+
+Build: `cd work/pam && gcc -shared -fPIC -O2 -Wall -o pam_fp.so pam_fp.c -lpam`
+
+Test service (sudo):
+```sh
+sudo tee /etc/pam.d/fptest >/dev/null <<'PAMEOF'
+#%PAM-1.0
+auth sufficient /home/nebulon/projects/fingerprint/work/pam/pam_fp.so debug
+auth required pam_unix.so
+PAMEOF
+cd work/pam && ./pamtest nebulon    # touch sensor / type password / press Enter
+```
+
+Enable for sudo (replaces the pam_exec line):
+```sh
+sudo sed -i '1s|.*|auth sufficient /home/nebulon/projects/fingerprint/work/pam/pam_fp.so|' /etc/pam.d/sudo
+```
+
+Rollback: `sudo cp /etc/pam.d/sudo.bak-fp /etc/pam.d/sudo`
+
+## Persistence / restore (2026-10-13)
+
+Tracked here: scripts, patches, docs, small runtime artifacts (trust blobs,
+verify.exe, MinGW runtime DLLs). Excluded (rebuildable): Wine build tree, Wine
+prefixes, upstream clones, big logs — see `.gitignore`.
+
+Restore after a wipe:
+1. `git clone <this repo> ~/projects/fingerprint && cd ~/projects/fingerprint`
+2. Rebuild Wine: `work/wine-build.sh`
+   (prereqs: base-devel, mingw-w64-gcc, gnutls, libusb)
+3. Sandbox: `git clone https://github.com/uunicorn/synaWudfBioUsb-sandbox work/synaWudfBioUsb-sandbox`
+   then `work/artifacts/sync-to-sandbox.sh` (driver DLL, trust blobs,
+   verify.exe, usb.txt, MinGW DLLs)
+4. Prefix: `WINEPREFIX=$PWD/work/wineprefix-48 work/wine-build/install/bin/wine64 wineboot -u`
+5. udev: `sudo cp work/system/70-fingerprint-06cb-0081.rules /etc/udev/rules.d/ && sudo udevadm control --reload`
+6. PAM: `make -C work/pam && sudo work/pam/install.sh`
+7. Test: `work/fp-verify.sh` (touch the sensor) → `Fingerprint matched.`
+
+## Contributing back
+
+- `work/patches/uunicorn-wine-modern-toolchain.patch` — build fixes for the
+  hacked Wine fork on a modern toolchain (gnutls 3.8 API, OpenSSL 3 const-ness,
+  GCC `-fno-common`); full configure/Cflags recipe in `work/wine-build.sh`.
+- `work/patches/uunicorn-sandbox-argv-dispatch.patch` — enables the
+  `<nop|identify|enroll>` argv dispatch the sandbox README documents (it was
+  `#if 0`'d in the source) and adds a match exit status so verify-only runs
+  need no binary patching. Not compile-tested locally (needs WDK headers) —
+  review before opening a PR.
+- `work/patches/synaTudor-work.patch` — the 12-file delta of the (blocked)
+  native synaTudor route; may be of interest to that project.
+
+Legal note: `drivers/` and `driverdlls/` contain Synaptics vendor binaries
+from the Microsoft Update Catalog. Check redistribution terms before making
+this repository public; drop them with `git rm -r --cached drivers driverdlls`.

BIN
driverdlls/synaAdvAdapter.dll


BIN
driverdlls/synaWudfBioUsb.dll


+ 784 - 0
drivers/di.html

@@ -0,0 +1,784 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+<title> Download the Synaptics WBDI - SGX driver for Windows 7, 8, 8.1, and 10 (64-bit) for  LENOVO - Lenovo YOGA 520 (81C8) -  </title>
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
+<meta name="description" content="This page contains the driver installation download for  Synaptics WBDI - SGX   in supported  models (Lenovo YOGA 520 (81C8)) that are running a supported operating system." />
+	<meta name="keywords" content="Lenovo YOGA 520 (81C8),Synaptics WBDI - SGX driver, Synaptics WBDI, iry508af40.exe , iry509af40.exe , iiu408af40.exe , ikv706af.exe , iry506af40.exe , iry507af40.exe , iry504af089f.exe , iry505af089f.exe , uzsp01af0a2m.exe , iiu405af07tp.exe , j3yg03af086r.exe , mayf03af08x4.exe , ikv705af07ye.exe , iiu407af07tp.exe , lisp03af091a.exe , j6v603af08as.exe , ikv704af07ye.exe , xwed01af0aqj.exe , h4yf01af.exe , j6v602af08as.exe , fllc07af0760.exe , fllc06af0760.exe , huy103af07m6.exe , ksy203af.exe , lisp02af091a.exe , ikv703af07ye.exe , iiu404af07tp.exe , emvg04af0727.exe , j3yg02af086r.exe , iry502af.exe , egy203af07hq.exe , im7f04af07wp.exe , ho7704af.exe , im7f03af.exe , iiu403af.exe , egy202af.exe , mayf01af.exe , j6v601af.exe , ksyi01af.exe , tp_x1carbon_mt20kg-20kh_w1064_1703_201809.exe , tp_l480_l580_w1064_1703_202003.exe , n20gf06w.exe , 18q1_t6_fgp_04.zip , r0qfr01w.exe , tp_l480_l580_w1064(1703)_201904.exe , tp_t480_w1064_1703_201809.exe , tp_t480s_w1064_1703_201809.exe , j3yg01af.exe , ho7702af.exe , ikv701af.exe" />
+<script src="/js/jquery-1.12.3.js"></script>
+<!-- Latest compiled and minified CSS -->
+<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
+
+<!-- Optional theme -->
+<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous">
+
+<!-- Latest compiled and minified JavaScript -->
+<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
+
+
+<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Oswald" />
+
+<link rel="stylesheet" href="/css/main.css">    </head>
+
+<link href="/css/style_v2.css" rel="stylesheet" type="text/css" />
+<link href="/css/scan.css" rel="stylesheet" type="text/css" />
+<link rel="canonical" href="https://www.driveridentifier.com/scan/synaptics-wbdi-sgx-driver/download/1137765970/4786242B6A8544628E55266AD26ABFEE/USB%5CVID_06CB%26PID_0081" />
+
+<style>
+
+</style>
+</head>
+
+<body>
+
+<div class="container">
+
+<div class="header">
+
+
+<div class="row">
+
+<div class="col-md-4">
+<img src="/images/logo.jpg" alt="DriverIdentifier logo">
+</div>
+
+
+<div class="col-md-4 text-right">
+<div id="fb-root" class=" fb_reset"><div style="position: absolute; top: -10000px; width: 0px; height: 0px;"><div></div></div></div>
+<script>(function(d, s, id) {
+  var js, fjs = d.getElementsByTagName(s)[0];
+  if (d.getElementById(id)) return;
+  js = d.createElement(s); js.id = id;
+  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&status=0";
+  fjs.parentNode.insertBefore(js, fjs);
+}(document, 'script', 'facebook-jssdk'));</script>
+<div class="fb-like fb_iframe_widget" data-href="http://www.driveridentifier.com" data-width="150" data-height="30" data-layout="button_count" data-show-faces="true" data-send="true" fb-xfbml-state="rendered" fb-iframe-plugin-query="app_id=1458311444387574&amp;container_width=0&amp;height=30&amp;href=http%3A%2F%2Fwww.driveridentifier.com%2F&amp;layout=button_count&amp;locale=en_US&amp;sdk=joey&amp;send=true&amp;show_faces=true&amp;width=150"><span style="vertical-align: bottom; width: 150px; height: 28px;"><iframe name="f274d89ca55613c" width="150px" height="30px" data-testid="fb:like Facebook Social Plugin" title="fb:like Facebook Social Plugin" frameborder="0" allowtransparency="true" allowfullscreen="true" scrolling="no" allow="encrypted-media" src="https://www.facebook.com/plugins/like.php?app_id=1458311444387574&amp;channel=https%3A%2F%2Fstaticxx.facebook.com%2Fx%2Fconnect%2Fxd_arbiter%2F%3Fversion%3D46%23cb%3Df2a9ed309fadfe8%26domain%3Dwww.driveridentifier.com%26is_canvas%3Dfalse%26origin%3Dhttps%253A%252F%252Fwww.driveridentifier.com%252Ff19b4129c49cdd%26relation%3Dparent.parent&amp;container_width=0&amp;height=30&amp;href=http%3A%2F%2Fwww.driveridentifier.com%2F&amp;layout=button_count&amp;locale=en_US&amp;sdk=joey&amp;send=true&amp;show_faces=true&amp;width=150" style="border: none; visibility: visible; width: 150px; height: 28px;" class=""></iframe></span></div>
+
+
+<script>
+  window.fbAsyncInit = function() {
+  
+	FB.init({appId: '1458311444387574', status: true, cookie: true,
+                     xfbml: true});
+    FB.Event.subscribe('edge.create', function(targetUrl) {
+      _gaq.push(['_trackSocial', 'facebook', 'like', targetUrl]);
+    });
+    FB.Event.subscribe('edge.remove', function(targetUrl) {
+      _gaq.push(['_trackSocial', 'facebook', 'unlike', targetUrl]);
+    });
+    FB.Event.subscribe('message.send', function(targetUrl) {
+      _gaq.push(['_trackSocial', 'facebook', 'send', targetUrl]);
+    });
+	
+  };
+</script>
+</div>
+
+
+<div class="col-md-4 text-right">
+<div id="google_translate_element"></div><script>
+    function googleTranslateElementInit() {
+      new google.translate.TranslateElement({
+        pageLanguage: 'en'
+      }, 'google_translate_element');
+    }
+
+    </script><script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
+</div>
+
+</div>
+
+ <br>
+ <center>
+ <a href="/">Home</a> | <a href="/download.php">Download </a>|  <a href="/why.php"> Why </a> | <a href="/support.php">Support </a> | <a href="/blog/"> Blog </a> | <a href="/video.php">How it works</a> | <a href="/contact.php">Contact us</a> 
+ </center>
+ 
+
+</div>
+
+<div class="row back_button"><a href="/scan/lenovo-yoga-520-81c8-driver/desktop/4786242B6A8544628E55266AD26ABFEE">            Back to Scan Result</a><br />	</div>
+ <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
+<ins class="adsbygoogle"
+     style="display:block; text-align:center;"
+     data-ad-layout="in-article"
+     data-ad-format="fluid"
+     data-ad-client="ca-pub-0934156437084816"
+     data-ad-slot="5541016892"></ins>
+<script>
+     (adsbygoogle = window.adsbygoogle || []).push({});
+</script>
+<div class="row"><h2> Synaptics WBDI - SGX Driver for  LENOVO - Lenovo YOGA 520 (81C8) working on Microsoft Windows 7 Ultimate </h2></div>
+
+    <div class="info-box">
+    
+        <p><p>The <strong>Lenovo Yoga 520 (81C8)</strong> is a versatile 2-in-1 convertible laptop designed for both productivity and entertainment. Featuring a 14-inch Full HD touchscreen display, it can easily switch between laptop and tablet modes, offering flexibility for work or leisure. Powered by Intel Core processors and equipped with solid storage and graphics options, the Yoga 520 delivers reliable performance for daily tasks, media consumption, and light multitasking. Its slim design, long battery life, and 360-degree hinge make it a great choice for users seeking a portable and adaptable laptop.</p></p>
+        </div>
+<!--box left ads-->
+<div class="row">
+<div class=card>
+<div class="col-md-8 current_driver_info">
+
+<div class="row">
+<div class="col-md-2 current_driver_info_label">Device Name:</div>
+<div class="col-md-10 current_driver_info_value">Synaptics WBDI - SGX</div>
+</div>
+
+<div class="row">
+<div class="col-md-2 current_driver_info_label">Hardware ID:</div>
+<div class="col-md-10 current_driver_info_value">USB\VID_06CB&PID_0081&REV_0164<br><strong>USB\VID_06CB&PID_0081</strong> <---- Device ID matches with our database<br><br><br> Compatible ID:<br>USB\CLASS_FF&SUBCLASS_00&PROT_00<br>USB\CLASS_FF&SUBCLASS_00<br>USB\CLASS_FF<br></div>
+</div>
+
+<div class="row">
+<div class="col-md-2 current_driver_info_label">Version:</div>
+<div class="col-md-10 current_driver_info_value">5.5.2620.1050,2017-08-04</div>
+</div>
+</div>
+
+</div>
+<div class="col-md-4 ads_rectangle">	<br><br>
+<center>
+		<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
+<!-- 336_280 ads -->
+<ins class="adsbygoogle"
+     style="display:inline-block;width:336px;height:280px"
+     data-ad-client="ca-pub-0934156437084816"
+     data-ad-slot="7625414059"></ins>
+<script>
+(adsbygoogle = window.adsbygoogle || []).push({});
+</script>
+</center>
+</div>
+</div>
+<!--end box left ads-->
+
+<div class="row"> <center><br>
+<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
+<!-- banner2_728 -->
+<ins class="adsbygoogle"
+     style="display:block"
+     data-ad-client="ca-pub-0934156437084816"
+     data-ad-slot="4280186050"
+     data-ad-format="auto"></ins>
+<script>
+(adsbygoogle = window.adsbygoogle || []).push({});
+</script>
+ </center><br></div>
+
+<div><h2><center>List of driver files that match with the above device in our database.</center></h2></div>
+<div class="row" style="text-align:center">
+<h4><img src='/images/attention.gif' align=center >You are viewing the drivers of an anonymous computer which may be not the same with your current computer. These driver(s) <span style='text-decoration: underline;'>may not work </span>  with your computer. Please click on the link below to download, scan and get the correct drivers. <br><br>
+<a href='/files/driveridentifier_setup.exe' onClick="_gaq.push(['_trackEvent', 'Download', 'download.php',,, false]);" ><img src='/images/downloadnow.png' border='0' align='center' height="15"> <img  align='center' src='/images/fixdriverproblems.png' border='0' height="20"> </a></h4>
+</div>
+ <div  class="drop-shadow lifted">
+		 <strong>Why do i see many drivers ?</strong><br>
+		 Below is a list of drivers that may be suitable for your device. With the different devices, they can have the same driver , it's because they all use the same chip manufacturer. 
+		 <br>
+		 <br><strong>How to select driver? </strong><br>
+		 If you are looking for an update , pickup the latest one. If your driver isn't working, use the driver having the same OEM with the your laptop/desktop brand name. 
+		 <br> Watch this video to see how it works - <a href="/video.php" target='_blank'>click here</a>
+		 </div>
+		   <center>
+                *: 2K=Windows 2000, 2K3= Windows 2003 , XP= Windows XP , VISTA = Windows Vista , WIN7 = Windows 7,WIN10/11= Windows 10/11
+              </center>
+
+
+<!--table driver-->
+  
+				  
+<div class="row card">
+<div class="col-md-3 table_header"> Driver name</div>
+<div class="col-xs-1 table_header"> OEM</div>
+<div class="col-md-2 table_header"> Filename</div>
+<div class="col-md-1 table_header"> Version</div>
+<div class="col-md-1 table_header"> Date</div>
+<div class="col-xs-1 table_header"> Size</div>
+<div class="col-md-2 table_header"> Operating System</div>
+<div class="col-md-1 table_header"> Download</div>
+</div>
+		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI - SGX</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4494119/ee16a8aa37519d0b6dde9a47690c8072/1137765970/USB-VID_06CB%26PID_0081' title='iry508af40.exe'> iry508af40.exe</a></div>
+        <div class="col-md-1 ">5.5.2818.1050 </div>
+        <div class="col-md-1 ">2020-04-29</div>
+		 <div class="col-xs-1">8.29 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4494119/ee16a8aa37519d0b6dde9a47690c8072/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI - SGX</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4495322/ee16a8aa37519d0b6dde9a47690c8072/1137765970/USB-VID_06CB%26PID_0081' title='iry509af40.exe'> iry509af40.exe</a></div>
+        <div class="col-md-1 ">5.5.2818.1050 </div>
+        <div class="col-md-1 ">2020-04-29</div>
+		 <div class="col-xs-1">6.58 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4495322/ee16a8aa37519d0b6dde9a47690c8072/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI - SGX</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4356496/825ab8bc5a9ff2caf040fd4a9315d0f8/1137765970/USB-VID_06CB%26PID_0081' title='iiu408af40.exe'> iiu408af40.exe</a></div>
+        <div class="col-md-1 ">5.5.2740.1050 </div>
+        <div class="col-md-1 ">2020-04-28</div>
+		 <div class="col-xs-1">7.11 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4356496/825ab8bc5a9ff2caf040fd4a9315d0f8/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI - SGX</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4264241/cc65497c37c0483ded4321e440dcd497/1137765970/USB-VID_06CB%26PID_0081' title='ikv706af.exe'> ikv706af.exe</a></div>
+        <div class="col-md-1 ">5.5.2739.1050 </div>
+        <div class="col-md-1 ">2020-03-23</div>
+		 <div class="col-xs-1">7.11 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4264241/cc65497c37c0483ded4321e440dcd497/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>				<div class="row" >         </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI - SGX</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4261052/64730cf8e73efffe5faac84f4b50af9f/1137765970/USB-VID_06CB%26PID_0081' title='iry506af40.exe'> iry506af40.exe</a></div>
+        <div class="col-md-1 ">5.5.2812.1050 </div>
+        <div class="col-md-1 ">2019-12-01</div>
+		 <div class="col-xs-1">8.15 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4261052/64730cf8e73efffe5faac84f4b50af9f/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI - SGX</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4262206/64730cf8e73efffe5faac84f4b50af9f/1137765970/USB-VID_06CB%26PID_0081' title='iry507af40.exe'> iry507af40.exe</a></div>
+        <div class="col-md-1 ">5.5.2812.1050 </div>
+        <div class="col-md-1 ">2019-12-01</div>
+		 <div class="col-xs-1">6.62 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4262206/64730cf8e73efffe5faac84f4b50af9f/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI - SGX</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3976807/eeeab29db4f653066cecf6589846c0e5/1137765970/USB-VID_06CB%26PID_0081' title='iry504af089f.exe'> iry504af089f.exe</a></div>
+        <div class="col-md-1 ">5.5.2811.1050 </div>
+        <div class="col-md-1 ">2019-06-05</div>
+		 <div class="col-xs-1">7.54 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3976807/eeeab29db4f653066cecf6589846c0e5/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI - SGX</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3982697/eeeab29db4f653066cecf6589846c0e5/1137765970/USB-VID_06CB%26PID_0081' title='iry505af089f.exe'> iry505af089f.exe</a></div>
+        <div class="col-md-1 ">5.5.2811.1050 </div>
+        <div class="col-md-1 ">2019-06-05</div>
+		 <div class="col-xs-1">6.18 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3982697/eeeab29db4f653066cecf6589846c0e5/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI - SGX</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4023332/eeeab29db4f653066cecf6589846c0e5/1137765970/USB-VID_06CB%26PID_0081' title='uzsp01af0a2m.exe'> uzsp01af0a2m.exe</a></div>
+        <div class="col-md-1 ">5.5.2811.1050 </div>
+        <div class="col-md-1 ">2019-06-05</div>
+		 <div class="col-xs-1">7.61 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4023332/eeeab29db4f653066cecf6589846c0e5/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI - SGX</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4004005/beff5ae10dbd3460314686951dbae726/1137765970/USB-VID_06CB%26PID_0081' title='iiu405af07tp.exe'> iiu405af07tp.exe</a></div>
+        <div class="col-md-1 ">5.5.2734.1050 </div>
+        <div class="col-md-1 ">2019-02-28</div>
+		 <div class="col-xs-1">6.56 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4004005/beff5ae10dbd3460314686951dbae726/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI - SGX</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4005682/beff5ae10dbd3460314686951dbae726/1137765970/USB-VID_06CB%26PID_0081' title='j3yg03af086r.exe'> j3yg03af086r.exe</a></div>
+        <div class="col-md-1 ">5.5.2734.1050 </div>
+        <div class="col-md-1 ">2019-02-28</div>
+		 <div class="col-xs-1">7.4 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4005682/beff5ae10dbd3460314686951dbae726/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI - SGX</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4005871/beff5ae10dbd3460314686951dbae726/1137765970/USB-VID_06CB%26PID_0081' title='mayf03af08x4.exe'> mayf03af08x4.exe</a></div>
+        <div class="col-md-1 ">5.5.2734.1050 </div>
+        <div class="col-md-1 ">2019-02-28</div>
+		 <div class="col-xs-1">8.25 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4005871/beff5ae10dbd3460314686951dbae726/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI - SGX</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4111023/beff5ae10dbd3460314686951dbae726/1137765970/USB-VID_06CB%26PID_0081' title='ikv705af07ye.exe'> ikv705af07ye.exe</a></div>
+        <div class="col-md-1 ">5.5.2734.1050 </div>
+        <div class="col-md-1 ">2019-02-28</div>
+		 <div class="col-xs-1">7.4 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4111023/beff5ae10dbd3460314686951dbae726/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI - SGX</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4111328/beff5ae10dbd3460314686951dbae726/1137765970/USB-VID_06CB%26PID_0081' title='iiu407af07tp.exe'> iiu407af07tp.exe</a></div>
+        <div class="col-md-1 ">5.5.2734.1050 </div>
+        <div class="col-md-1 ">2019-02-28</div>
+		 <div class="col-xs-1">6.56 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4111328/beff5ae10dbd3460314686951dbae726/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI - SGX</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4000547/beff5ae10dbd3460314686951dbae726/1137765970/USB-VID_06CB%26PID_0081' title='lisp03af091a.exe'> lisp03af091a.exe</a></div>
+        <div class="col-md-1 ">5.5.2734.1050 </div>
+        <div class="col-md-1 ">2019-02-28</div>
+		 <div class="col-xs-1">8.25 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4000547/beff5ae10dbd3460314686951dbae726/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4003696/cf64c859c73b0d10d5bda910cb070f20/1137765970/USB-VID_06CB%26PID_0081' title='j6v603af08as.exe'> j6v603af08as.exe</a></div>
+        <div class="col-md-1 ">5.5.2734.1050 </div>
+        <div class="col-md-1 ">2019-02-28</div>
+		 <div class="col-xs-1">6.49 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4003696/cf64c859c73b0d10d5bda910cb070f20/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI - SGX</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4003769/beff5ae10dbd3460314686951dbae726/1137765970/USB-VID_06CB%26PID_0081' title='ikv704af07ye.exe'> ikv704af07ye.exe</a></div>
+        <div class="col-md-1 ">5.5.2734.1050 </div>
+        <div class="col-md-1 ">2019-02-28</div>
+		 <div class="col-xs-1">7.4 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4003769/beff5ae10dbd3460314686951dbae726/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4104358/cf64c859c73b0d10d5bda910cb070f20/1137765970/USB-VID_06CB%26PID_0081' title='xwed01af0aqj.exe'> xwed01af0aqj.exe</a></div>
+        <div class="col-md-1 ">5.5.2734.1050 </div>
+        <div class="col-md-1 ">2019-02-28</div>
+		 <div class="col-xs-1">5.66 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4104358/cf64c859c73b0d10d5bda910cb070f20/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI - SGX</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3766178/3a10282b1506232bce626ec4562bfb91/1137765970/USB-VID_06CB%26PID_0081' title='h4yf01af.exe'> h4yf01af.exe</a></div>
+        <div class="col-md-1 ">5.5.2804.1050 </div>
+        <div class="col-md-1 ">2018-06-29</div>
+		 <div class="col-xs-1">4.81 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3766178/3a10282b1506232bce626ec4562bfb91/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3757137/197025b00a4c4485b35d415d4cdc1e0b/1137765970/USB-VID_06CB%26PID_0081' title='j6v602af08as.exe'> j6v602af08as.exe</a></div>
+        <div class="col-md-1 ">5.5.2731.1050 </div>
+        <div class="col-md-1 ">2018-06-28</div>
+		 <div class="col-xs-1">4.12 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3757137/197025b00a4c4485b35d415d4cdc1e0b/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4101182/197025b00a4c4485b35d415d4cdc1e0b/1137765970/USB-VID_06CB%26PID_0081' title='fllc07af0760.exe'> fllc07af0760.exe</a></div>
+        <div class="col-md-1 ">5.5.2731.1050 </div>
+        <div class="col-md-1 ">2018-06-28</div>
+		 <div class="col-xs-1">3.9 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4101182/197025b00a4c4485b35d415d4cdc1e0b/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3726737/197025b00a4c4485b35d415d4cdc1e0b/1137765970/USB-VID_06CB%26PID_0081' title='fllc06af0760.exe'> fllc06af0760.exe</a></div>
+        <div class="col-md-1 ">5.5.2731.1050 </div>
+        <div class="col-md-1 ">2018-06-28</div>
+		 <div class="col-xs-1">3.46 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3726737/197025b00a4c4485b35d415d4cdc1e0b/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3741656/197025b00a4c4485b35d415d4cdc1e0b/1137765970/USB-VID_06CB%26PID_0081' title='huy103af07m6.exe'> huy103af07m6.exe</a></div>
+        <div class="col-md-1 ">5.5.2731.1050 </div>
+        <div class="col-md-1 ">2018-06-28</div>
+		 <div class="col-xs-1">4.12 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3741656/197025b00a4c4485b35d415d4cdc1e0b/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3743283/197025b00a4c4485b35d415d4cdc1e0b/1137765970/USB-VID_06CB%26PID_0081' title='ksy203af.exe'> ksy203af.exe</a></div>
+        <div class="col-md-1 ">5.5.2731.1050 </div>
+        <div class="col-md-1 ">2018-06-28</div>
+		 <div class="col-xs-1">3.79 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3743283/197025b00a4c4485b35d415d4cdc1e0b/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI - SGX</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3754263/b2d5c7b7701834d272cbe82df8e30ff0/1137765970/USB-VID_06CB%26PID_0081' title='lisp02af091a.exe'> lisp02af091a.exe</a></div>
+        <div class="col-md-1 ">5.5.2731.1050 </div>
+        <div class="col-md-1 ">2018-06-26</div>
+		 <div class="col-xs-1">6.22 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3754263/b2d5c7b7701834d272cbe82df8e30ff0/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI - SGX</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3757189/b2d5c7b7701834d272cbe82df8e30ff0/1137765970/USB-VID_06CB%26PID_0081' title='ikv703af07ye.exe'> ikv703af07ye.exe</a></div>
+        <div class="col-md-1 ">5.5.2731.1050 </div>
+        <div class="col-md-1 ">2018-06-26</div>
+		 <div class="col-xs-1">4.77 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3757189/b2d5c7b7701834d272cbe82df8e30ff0/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI - SGX</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3758120/b2d5c7b7701834d272cbe82df8e30ff0/1137765970/USB-VID_06CB%26PID_0081' title='iiu404af07tp.exe'> iiu404af07tp.exe</a></div>
+        <div class="col-md-1 ">5.5.2731.1050 </div>
+        <div class="col-md-1 ">2018-06-26</div>
+		 <div class="col-xs-1">3.93 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3758120/b2d5c7b7701834d272cbe82df8e30ff0/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI - SGX</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3759561/b2d5c7b7701834d272cbe82df8e30ff0/1137765970/USB-VID_06CB%26PID_0081' title='emvg04af0727.exe'> emvg04af0727.exe</a></div>
+        <div class="col-md-1 ">5.5.2731.1050 </div>
+        <div class="col-md-1 ">2018-06-26</div>
+		 <div class="col-xs-1">4.8 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3759561/b2d5c7b7701834d272cbe82df8e30ff0/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI - SGX</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3762209/b2d5c7b7701834d272cbe82df8e30ff0/1137765970/USB-VID_06CB%26PID_0081' title='j3yg02af086r.exe'> j3yg02af086r.exe</a></div>
+        <div class="col-md-1 ">5.5.2731.1050 </div>
+        <div class="col-md-1 ">2018-06-26</div>
+		 <div class="col-xs-1">5.36 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3762209/b2d5c7b7701834d272cbe82df8e30ff0/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI - SGX</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3510869/b2d5c7b7701834d272cbe82df8e30ff0/1137765970/USB-VID_06CB%26PID_0081' title='iry502af.exe'> iry502af.exe</a></div>
+        <div class="col-md-1 ">5.5.2731.1050 </div>
+        <div class="col-md-1 ">2018-06-26</div>
+		 <div class="col-xs-1">5.55 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3510869/b2d5c7b7701834d272cbe82df8e30ff0/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI - SGX</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3805092/b2d5c7b7701834d272cbe82df8e30ff0/1137765970/USB-VID_06CB%26PID_0081' title='egy203af07hq.exe'> egy203af07hq.exe</a></div>
+        <div class="col-md-1 ">5.5.2731.1050 </div>
+        <div class="col-md-1 ">2018-06-26</div>
+		 <div class="col-xs-1">4.12 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3805092/b2d5c7b7701834d272cbe82df8e30ff0/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI - SGX</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3732093/b2d5c7b7701834d272cbe82df8e30ff0/1137765970/USB-VID_06CB%26PID_0081' title='im7f04af07wp.exe'> im7f04af07wp.exe</a></div>
+        <div class="col-md-1 ">5.5.2731.1050 </div>
+        <div class="col-md-1 ">2018-06-26</div>
+		 <div class="col-xs-1">3.93 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3732093/b2d5c7b7701834d272cbe82df8e30ff0/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI - SGX</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3511445/8233ea78b362363fc1df35be2786ce01/1137765970/USB-VID_06CB%26PID_0081' title='ho7704af.exe'> ho7704af.exe</a></div>
+        <div class="col-md-1 ">5.5.2725.1050 </div>
+        <div class="col-md-1 ">2017-12-27</div>
+		 <div class="col-xs-1">4.77 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3511445/8233ea78b362363fc1df35be2786ce01/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI - SGX</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3512046/8233ea78b362363fc1df35be2786ce01/1137765970/USB-VID_06CB%26PID_0081' title='im7f03af.exe'> im7f03af.exe</a></div>
+        <div class="col-md-1 ">5.5.2725.1050 </div>
+        <div class="col-md-1 ">2017-12-27</div>
+		 <div class="col-xs-1">4.77 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3512046/8233ea78b362363fc1df35be2786ce01/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI - SGX</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3522431/8233ea78b362363fc1df35be2786ce01/1137765970/USB-VID_06CB%26PID_0081' title='iiu403af.exe'> iiu403af.exe</a></div>
+        <div class="col-md-1 ">5.5.2725.1050 </div>
+        <div class="col-md-1 ">2017-12-27</div>
+		 <div class="col-xs-1">4.77 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3522431/8233ea78b362363fc1df35be2786ce01/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI - SGX</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3525727/8233ea78b362363fc1df35be2786ce01/1137765970/USB-VID_06CB%26PID_0081' title='egy202af.exe'> egy202af.exe</a></div>
+        <div class="col-md-1 ">5.5.2725.1050 </div>
+        <div class="col-md-1 ">2017-12-27</div>
+		 <div class="col-xs-1">4.12 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3525727/8233ea78b362363fc1df35be2786ce01/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI - SGX</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3763171/8233ea78b362363fc1df35be2786ce01/1137765970/USB-VID_06CB%26PID_0081' title='mayf01af.exe'> mayf01af.exe</a></div>
+        <div class="col-md-1 ">5.5.2725.1050 </div>
+        <div class="col-md-1 ">2017-12-27</div>
+		 <div class="col-xs-1">6.2 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3763171/8233ea78b362363fc1df35be2786ce01/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3421746/f532f6c3ffd6b8b7953134e24f414a8b/1137765970/USB-VID_06CB%26PID_0081' title='j6v601af.exe'> j6v601af.exe</a></div>
+        <div class="col-md-1 ">5.5.2725.1050 </div>
+        <div class="col-md-1 ">2017-12-25</div>
+		 <div class="col-xs-1">4.12 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3421746/f532f6c3ffd6b8b7953134e24f414a8b/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3514446/f532f6c3ffd6b8b7953134e24f414a8b/1137765970/USB-VID_06CB%26PID_0081' title='ksyi01af.exe'> ksyi01af.exe</a></div>
+        <div class="col-md-1 ">5.5.2725.1050 </div>
+        <div class="col-md-1 ">2017-12-25</div>
+		 <div class="col-xs-1">3.46 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3514446/f532f6c3ffd6b8b7953134e24f414a8b/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4071176/f479648f3c1c72a84f18b5806608c972/1137765970/USB-VID_06CB%26PID_0081' title='tp_x1carbon_mt20kg-20kh_w1064_1703_201809.exe'> tp_x1carbon_mt20kg-20kh_w...201809.exe</a></div>
+        <div class="col-md-1 ">5.3.3516.26 </div>
+        <div class="col-md-1 ">2017-12-08</div>
+		 <div class="col-xs-1">441.9 MB</div>
+		  <div class="col-md-2 ">WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4071176/f479648f3c1c72a84f18b5806608c972/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4183512/f479648f3c1c72a84f18b5806608c972/1137765970/USB-VID_06CB%26PID_0081' title='tp_l480_l580_w1064_1703_202003.exe'> tp_l480_l580_w1064_1703_202003.exe</a></div>
+        <div class="col-md-1 ">5.3.3516.26 </div>
+        <div class="col-md-1 ">2017-12-08</div>
+		 <div class="col-xs-1">584.11 MB</div>
+		  <div class="col-md-2 ">WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4183512/f479648f3c1c72a84f18b5806608c972/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3394511/f479648f3c1c72a84f18b5806608c972/1137765970/USB-VID_06CB%26PID_0081' title='n20gf06w.exe'> n20gf06w.exe</a></div>
+        <div class="col-md-1 ">5.3.3516.26 </div>
+        <div class="col-md-1 ">2017-12-08</div>
+		 <div class="col-xs-1">27.57 MB</div>
+		  <div class="col-md-2 ">WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3394511/f479648f3c1c72a84f18b5806608c972/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI</div>        
+		<div class="col-xs-1 ">Others</div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3401230/f479648f3c1c72a84f18b5806608c972/1137765970/USB-VID_06CB%26PID_0081' title='18q1_t6_fgp_04.zip'> 18q1_t6_fgp_04.zip</a></div>
+        <div class="col-md-1 ">5.3.3516.26 </div>
+        <div class="col-md-1 ">2017-12-08</div>
+		 <div class="col-xs-1">32.14 MB</div>
+		  <div class="col-md-2 ">WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3401230/f479648f3c1c72a84f18b5806608c972/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3514533/f479648f3c1c72a84f18b5806608c972/1137765970/USB-VID_06CB%26PID_0081' title='r0qfr01w.exe'> r0qfr01w.exe</a></div>
+        <div class="col-md-1 ">5.3.3516.26 </div>
+        <div class="col-md-1 ">2017-12-08</div>
+		 <div class="col-xs-1">27.76 MB</div>
+		  <div class="col-md-2 ">WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3514533/f479648f3c1c72a84f18b5806608c972/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4054144/f479648f3c1c72a84f18b5806608c972/1137765970/USB-VID_06CB%26PID_0081' title='tp_l480_l580_w1064(1703)_201904.exe'> tp_l480_l580_w1064(1703)_...201904.exe</a></div>
+        <div class="col-md-1 ">5.3.3516.26 </div>
+        <div class="col-md-1 ">2017-12-08</div>
+		 <div class="col-xs-1">632.06 MB</div>
+		  <div class="col-md-2 ">WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4054144/f479648f3c1c72a84f18b5806608c972/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4065491/f479648f3c1c72a84f18b5806608c972/1137765970/USB-VID_06CB%26PID_0081' title='tp_t480_w1064_1703_201809.exe'> tp_t480_w1064_1703_201809.exe</a></div>
+        <div class="col-md-1 ">5.3.3516.26 </div>
+        <div class="col-md-1 ">2017-12-08</div>
+		 <div class="col-xs-1">687.9 MB</div>
+		  <div class="col-md-2 ">WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4065491/f479648f3c1c72a84f18b5806608c972/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4066263/f479648f3c1c72a84f18b5806608c972/1137765970/USB-VID_06CB%26PID_0081' title='tp_t480s_w1064_1703_201809.exe'> tp_t480s_w1064_1703_201809.exe</a></div>
+        <div class="col-md-1 ">5.3.3516.26 </div>
+        <div class="col-md-1 ">2017-12-08</div>
+		 <div class="col-xs-1">672.24 MB</div>
+		  <div class="col-md-2 ">WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/4066263/f479648f3c1c72a84f18b5806608c972/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI - SGX</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3396245/53738be8ff17cd0f4f1584be28841074/1137765970/USB-VID_06CB%26PID_0081' title='j3yg01af.exe'> j3yg01af.exe</a></div>
+        <div class="col-md-1 ">5.5.2722.1050 </div>
+        <div class="col-md-1 ">2017-11-02</div>
+		 <div class="col-xs-1">6.16 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3396245/53738be8ff17cd0f4f1584be28841074/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>			<div class="table_row_header_notice">
+       Archived (Older) version - select if you already try the file above
+	   </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI - SGX</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3289254/7476659b6276116212236929c982e03d/1137765970/USB-VID_06CB%26PID_0081' title='ho7702af.exe'> ho7702af.exe</a></div>
+        <div class="col-md-1 ">5.5.2620.1050 </div>
+        <div class="col-md-1 ">2017-08-04</div>
+		 <div class="col-xs-1">4.75 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3289254/7476659b6276116212236929c982e03d/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>		<div class="row row-striped" >
+        <div class="col-md-3 " >Synaptics WBDI - SGX</div>        
+		<div class="col-xs-1 "><img src="/logos/lenovo.png" alt="lenovo" valign='middle'></div>
+		<div class="col-md-2 "> <a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3357311/7476659b6276116212236929c982e03d/1137765970/USB-VID_06CB%26PID_0081' title='ikv701af.exe'> ikv701af.exe</a></div>
+        <div class="col-md-1 ">5.5.2620.1050 </div>
+        <div class="col-md-1 ">2017-08-04</div>
+		 <div class="col-xs-1">4.75 MB</div>
+		  <div class="col-md-2 ">XP, VISTA, WIN7, WIN8, WIN81, WIN10, WIN11/64bits</div>
+        <div class="col-md-1 "><a href='/scan/synaptics-wbdi-sgx-driver/driver-detail/4786242B6A8544628E55266AD26ABFEE/3357311/7476659b6276116212236929c982e03d/1137765970/USB-VID_06CB%26PID_0081' title='View Driver Detail'>Download</a></div>
+      </div>
+
+<!--table driver-->
+			  
+</div> <!--end of container-->
+
+
+<div id="right_content">
+</div>
+<div class="clear"></div>
+</div>
+<div class="row"><br>
+	<center><span style='font-size:12px'>All company and product names/logos used herein may be trademarks of their respective owners and are used for the benefit of those owners. All Rights Reserved. <a href="/privacy.php">Privacy Policy</a> </span> </center>
+	<br></div>
+<div class="row">		
+<!-- Google tag (gtag.js) -->
+<script async src="https://www.googletagmanager.com/gtag/js?id=G-H3FVDHXMHD"></script>
+<script>
+  window.dataLayer = window.dataLayer || [];
+  function gtag(){dataLayer.push(arguments);}
+  gtag('js', new Date());
+
+  gtag('config', 'G-H3FVDHXMHD');
+</script>
+
+
+<script>
+  (function(h,o,u,n,d) {
+    h=h[d]=h[d]||{q:[],onReady:function(c){h.q.push(c)}}
+    d=o.createElement(u);d.async=1;d.src=n
+    n=o.getElementsByTagName(u)[0];n.parentNode.insertBefore(d,n)
+  })(window,document,'script','https://www.datadoghq-browser-agent.com/datadog-rum-v3.js','DD_RUM')
+  DD_RUM.onReady(function() {
+    DD_RUM.init({
+      clientToken: 'pub6f598382c291a1ef64ac3369321aa90a',
+      applicationId: 'caf8cad8-4d4e-4f6e-9862-d5c2501204f6',
+      site: 'datadoghq.com',
+      service:'driveridentifier',
+      // Specify a version number to identify the deployed version of your application in Datadog 
+      // version: '1.0.0',
+      sampleRate: 100,
+      trackInteractions: true,
+      defaultPrivacyLevel: 'mask-user-input'
+    });
+    
+    DD_RUM.startSessionReplayRecording();
+  })
+</script>
+
+
+<!--
+<script type="text/javascript">
+    var appInsights=window.appInsights||function(a){
+        function b(a){c[a]=function(){var b=arguments;c.queue.push(function(){c[a].apply(c,b)})}}var c={config:a},d=document,e=window;setTimeout(function(){var b=d.createElement("script");b.src=a.url||"https://az416426.vo.msecnd.net/scripts/a/ai.0.js",d.getElementsByTagName("script")[0].parentNode.appendChild(b)});try{c.cookie=d.cookie}catch(a){}c.queue=[];for(var f=["Event","Exception","Metric","PageView","Trace","Dependency"];f.length;)b("track"+f.pop());if(b("setAuthenticatedUserContext"),b("clearAuthenticatedUserContext"),b("startTrackEvent"),b("stopTrackEvent"),b("startTrackPage"),b("stopTrackPage"),b("flush"),!a.disableExceptionTracking){f="onerror",b("_"+f);var g=e[f];e[f]=function(a,b,d,e,h){var i=g&&g(a,b,d,e,h);return!0!==i&&c["_"+f](a,b,d,e,h),i}}return c
+    }({
+        instrumentationKey: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx"
+    });
+
+    window.appInsights=appInsights,appInsights.queue&&0===appInsights.queue.length&&appInsights.trackPageView();
+</script>
+-->
+
+<script type="text/javascript">
+    (function(c,l,a,r,i,t,y){
+        c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
+        t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
+        y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
+    })(window, document, "clarity", "script", "o5eu0zu3e0");
+</script>
+	
+
+		<style>
+		.black_overlay{
+			display: none;
+			position: absolute;
+			top: 0%;
+			left: 0%;
+			width: 100%;
+			height: 100%;
+			background-color: black;
+			z-index:1001;
+			-moz-opacity: 0.8;
+			opacity:.10;
+			filter: alpha(opacity=10);
+		}
+		.white_content {
+			display: none;
+			position: absolute;
+			top: 25%;
+			left: 25%;
+			width: 800px;
+			height: 200px;
+			padding: 16px;
+			border: 16px solid orange;
+			background-color: white;
+			z-index:1002;
+			overflow: auto;
+		}
+	</style>
+
+	
+
+		<div id="light" class="white_content">
+
+		<h3>Welcome to DriverIdentifier.com </h3>
+		
+		
+		
+		Do you know that DriverIdentifier can help you finding driver in just a few minutes? <br>
+
+		<br>
+		<a href="/video.php" onclick = "close_box()" target='_blank'><img src="/images/btn_watch_video.png" border="0"></a>
+		<a href="/download.php" target='_blank' onclick = "close_box()"><img src="/images/btn_start_here.png" border="0"></a>
+		<a href="javascript:void(0)" onclick = "close_box()"><img src="/images/btn_close_watch_videos.png" border="0" ></a>
+	</div>	
+	<div id="fade" class="black_overlay" onclick="close_box()" >
+		
+		</div>
+		<script>
+		document.getElementById('light').style.display='block';
+		document.getElementById('fade').style.display='block'
+
+		function close_box()
+		{
+			document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none'
+			return true;
+		}
+
+
+		</script>
+</div>
+
+</body>
+</html><!-- OS INFO:WIN7:64-->

BIN
drivers/jul2018/WudfUpdate_01011.dll


BIN
drivers/jul2018/synaAdvAdapter.dll


BIN
drivers/jul2018/synaTee.signed.dll


+ 180 - 0
drivers/jul2018/synaWudfBioLenovoLBGSGX.inf

@@ -0,0 +1,180 @@
+; Copyright (C) 2018 Synaptics Incorporated, All Rights Reserved.
+; synaWudfBioLenovoLBGSGX.inf - Install the WBDI USB user-mode SGX driver - Synaptics WBDI 
+;
+
+[Version]
+Signature="$Windows NT$"
+Class=Biometric
+ClassGuid={53D29EF7-377C-4D14-864B-EB3A85769359}
+Provider=%SYNAUMDF%
+; Do not change name of the .cat file.
+CatalogFile=synaUMDFSGX.cat
+DriverVer=06/26/2018,5.5.2731.1050
+
+[Manufacturer]
+%SYNAUMDF%=Synaptics, NTamd64
+
+[Synaptics.NTamd64]
+; TODO: Change the VendorID (VID) and ProductID (PID) to match your device
+%WBDIUsbDeviceName%=Biometric_Install, USB\VID_06CB&PID_0081
+
+;[ClassInstall32]
+;AddReg=BiometricClass_RegistryAdd
+
+;[BiometricClass_RegistryAdd]
+;HKR,,,,%ClassName%
+;HKR,,Icon,,"-201"
+;HKR,,IconPath,0x00010000,"%%SYSTEMROOT%%\system32\SysClass.dll,-201"
+
+[SourceDisksFiles]
+synaWudfBioUsb.dll=1
+synaAdvAdapter.dll=1 ; Synaptics basic mode adapter
+WudfUpdate_01011.dll=1
+
+;Firmware extensions - Not Currently used
+; 6_07f_lenovo.xefwext=1
+; 6_07f_lenovo.xpfwext=1
+
+;SGX dlls
+synaTEE.signed.dll=1
+vtp.dll=1
+
+[SourceDisksNames]
+1 = %MediaDescription%
+
+; =================== UMDF WBDI Usb Device - WBDI IOCTL interface ==================================
+
+[Biometric_Install.NT]
+CopyFiles=UMDriverCopy, WinBioSensorAdapterCopy, SGXCopyFile ; FWextCopy and UtilityAppCopy - not currently used.
+AddProperty=Device_Properties
+Include=WINUSB.INF                      ; Import sections from WINUSB.INF
+Needs=WINUSB.NT                         ; Run the CopyFiles & AddReg directives for WinUsb.INF
+
+[Biometric_Install.NT.hw]
+AddReg=Biometric_Device_AddReg
+AddReg=DriverPlugInAddReg, DatabaseAddReg, EventsAddReg
+
+[Device_Properties]
+DeviceIcon,,,,"%%SYSTEMROOT%%\system32\SysClass.dll,-201" ; This is where a device specific icon can be specified.
+
+[Biometric_Install.NT.Services]
+AddService=WUDFRd,0x000001fa,WUDFRD_ServiceInstall  ; flag 0x2 sets this as the service for the device
+AddService=WinUsb,0x000001f8,WinUsb_ServiceInstall  ; this service is installed because its a filter.
+
+[Biometric_Install.NT.Wdf]
+KmdfService=WINUSB, WinUsb_Install
+UmdfDispatcher=WinUsb
+UmdfService=synaWudfBioUsb, synaWudfBioUsb_Install
+UmdfServiceOrder=synaWudfBioUsb
+UmdfHostProcessSharing=ProcessSharingDisabled
+
+[Biometric_Install.NT.CoInstallers]
+AddReg=CoInstallers_AddReg
+CopyFiles=CoInstallers_CopyFiles
+
+[WinUsb_Install]
+KmdfLibraryVersion = 1.11
+
+[synaWudfBioUsb_Install]
+UmdfLibraryVersion=1.11.0
+DriverCLSID = "{96710705-B080-4B29-A3EC-B16935AE663A}"
+ServiceBinary = "%12%\UMDF\synaWudfBioUsb.dll"
+
+[Biometric_Device_AddReg]
+HKR,,"DeviceCharacteristics",0x10001,0x0100     ; Use same security checks on relative opens
+HKR,,"Security",,"D:P(A;;GA;;;BA)(A;;GA;;;SY)"  ; Allow generic-all access to Built-in administrators and Local system
+;HKR,,Security,,"D:P(A;;GA;;;BA)(A;;GA;;;SY)(A;;GA;;;S-1-5-84-0-0-0-0-0")
+HKR,,"LowerFilters",0x00010008,"WinUsb"         ; FLG_ADDREG_TYPE_MULTI_SZ | FLG_ADDREG_APPEND
+HKR,,"Exclusive",0x10001,1
+HKR,,"DeviceIdleEnabled",0x00010001,0
+HKR,,"UserSetDeviceIdleEnabled",0x00010001,0
+HKR,,"DefaultIdleState",0x00010001,0
+HKR,,"DefaultIdleTimeout",0x00010001,5000
+HKR,,"WinUsbPowerPolicyOwnershipDisabled",0x00010001,1
+
+[DriverPlugInAddReg]
+HKR,WinBio\Configurations,DefaultConfiguration,,"0"
+HKR,WinBio\Configurations\0,SensorMode,0x10001,2                                ; Basic - 1, Advanced - 2
+HKR,WinBio\Configurations\0,SystemSensor,0x10001,1                              ; UAC/Winlogon - 1
+HKR,WinBio\Configurations\0,SensorAdapterBinary,,"synaAdvAdapter.DLL"           ; Synaptics compound adapter.
+HKR,WinBio\Configurations\0,EngineAdapterBinary,,"synaAdvAdapter.DLL"           ; Synaptics compound adapter.
+HKR,WinBio\Configurations\0,StorageAdapterBinary,,"synaAdvAdapter.DLL"          ; Synaptics compound adapter.
+HKR,WinBio\Configurations\0,DatabaseId,,"D833B48E-3178-4DF0-AEE3-2803155883D4"  ; must have Synaptics specific GUID for DB
+
+[DatabaseAddReg]
+HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{D833B48E-3178-4DF0-AEE3-2803155883D4},BiometricType,0x00010001,0x00000008
+HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{D833B48E-3178-4DF0-AEE3-2803155883D4},Attributes,0x00010001,0x00010003
+HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{D833B48E-3178-4DF0-AEE3-2803155883D4},Format,,"00000000-0000-0000-0000-000000000000"
+HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{D833B48E-3178-4DF0-AEE3-2803155883D4},InitialSize,0x00010001,0x00000020
+HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{D833B48E-3178-4DF0-AEE3-2803155883D4},AutoCreate,0x00010001,0x00000001
+HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{D833B48E-3178-4DF0-AEE3-2803155883D4},AutoName,0x00010001,0x00000001
+HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{D833B48E-3178-4DF0-AEE3-2803155883D4},FilePath,,""
+HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{D833B48E-3178-4DF0-AEE3-2803155883D4},ConnectionString,,""
+
+[EventsAddReg]
+HKLM, System\CurrentControlSet\Services\eventlog\System\Synaptics FPR,EventMessageFile,,"%%SystemRoot%%\System32\drivers\UMDF\synaWudfBioUsb.dll"
+HKLM, System\CurrentControlSet\Services\eventlog\System\Synaptics FPR,TypesSupported,0x00010001,0x00000007
+
+[WUDFRD_ServiceInstall]
+DisplayName = %WudfRdDisplayName%
+ServiceType = 1
+StartType = 3
+ErrorControl = 1
+ServiceBinary = %12%\WUDFRd.sys
+LoadOrderGroup = Base
+
+[WinUsb_ServiceInstall]
+DisplayName     = %WinUsb_SvcDesc%
+ServiceType     = 1
+StartType       = 3
+ErrorControl    = 1
+ServiceBinary   = %12%\WinUSB.sys
+
+[CoInstallers_AddReg]
+HKR,,CoInstallers32,0x00010000, "WudfUpdate_01011.dll"
+
+[CoInstallers_CopyFiles]
+WudfUpdate_01011.dll
+
+[DestinationDirs]
+UMDriverCopy=12,UMDF ; copy to \Windows\System32\drivers\UMDF
+WinBioSensorAdapterCopy=11, WinBioPlugins; copy to \Windows\System32\WinBioPlugins
+CoInstallers_CopyFiles=11
+SGXCopyFile=11
+; Not Currently used: FWextCopy=24, ProgramData\Validity\fwext; copy to "system drive"\ProgramData\Validity\fwext
+UtilityAppCopy=16422,Synaptics\SynFP; copy to program files\synaptics\synfp
+
+[UMDriverCopy]
+synaWudfBioUsb.dll
+
+[WinBioSensorAdapterCopy]
+synaAdvAdapter.dll
+
+[SGXCopyFile]
+synaTEE.signed.dll
+vtp.dll
+
+[FWextCopy]
+6_07f_lenovo.xefwext
+6_07f_lenovo.xpfwext
+
+[UtilityAppCopy]
+Enrollment Management Utility.exe, SynapticsUtility.exe
+
+[SignatureAttributes]
+synaAdvAdapter.dll = SignatureAttributes.WindowsHello
+ 
+[SignatureAttributes.WindowsHello]
+WindowsHello = true
+
+; =================== Generic ==================================
+
+[Strings]
+SYNAUMDF="Synaptics Incorporated"
+MediaDescription="Synaptics Fingerprint Sensor Driver Installation Media"
+ClassName="Biometric Devices"
+WudfRdDisplayName="Windows Driver Foundation - User-mode Driver Framework Reflector"
+WBDIUsbDeviceName="Synaptics WBDI - SGX" 
+WinUsb_SvcDesc="WinUSB Driver"
+CustomerProject="LenovoLBG-050"
+

BIN
drivers/jul2018/synaWudfBioUsb.dll


BIN
drivers/jul2018/synaumdfsgx.cat


BIN
drivers/jul2018/vtp.dll


BIN
drivers/sep2018/WudfUpdate_01011.dll


BIN
drivers/sep2018/synaAdvAdapter.dll


+ 162 - 0
drivers/sep2018/synaWudfBioLenovoLBG.inf

@@ -0,0 +1,162 @@
+; Copyright (C) 2018 Synaptics Incorporated, All Rights Reserved.
+; synaWudfBioLenovoLBG.inf - Install the WBDI USB user-mode SGX driver - Synaptics WBDI 
+;
+
+[Version]
+Signature="$Windows NT$"
+Class=Biometric
+ClassGuid={53D29EF7-377C-4D14-864B-EB3A85769359}
+Provider=%SYNAUMDF%
+; Do not change name of the .cat file.
+CatalogFile=synaUMDF.cat
+DriverVer=06/28/2018,5.5.2731.1050
+
+[Manufacturer]
+%SYNAUMDF%=Synaptics,NTamd64
+
+[Synaptics.NTamd64]
+; TODO: Change the VendorID (VID) and ProductID (PID) to match your device
+%WBDIUsbDeviceName%=Biometric_Install, USB\VID_06CB&PID_0081
+
+;[ClassInstall32]
+;AddReg=BiometricClass_RegistryAdd
+
+;[BiometricClass_RegistryAdd]
+;HKR,,,,%ClassName%
+;HKR,,Icon,,"-201"
+;HKR,,IconPath,0x00010000,"%%SYSTEMROOT%%\system32\SysClass.dll,-201"
+
+[SourceDisksFiles]
+synaWudfBioUsb.dll=1
+synaAdvAdapter.dll=1 ; Synaptics advanced mode adapter
+WudfUpdate_01011.dll=1
+
+;Firmware extensions - not used for this Customer Project
+;6_07f_lenovo.xefwext=1
+;6_07f_lenovo.xpfwext=1
+
+[SourceDisksNames]
+1 = %MediaDescription%
+
+; =================== UMDF WBDI Usb Device - WBDI IOCTL interface ==================================
+
+[Biometric_Install.NT]
+CopyFiles=UMDriverCopy, WinBioEngineAdapterCopy  ;, FWextCopy ; FW extensions not used for this Customer Project
+AddProperty=Device_Properties
+Include=WINUSB.INF                      ; Import sections from WINUSB.INF
+Needs=WINUSB.NT                         ; Run the CopyFiles & AddReg directives for WinUsb.INF
+
+[Biometric_Install.NT.hw]
+AddReg=Biometric_Device_AddReg
+AddReg=DriverPlugInAddReg, DatabaseAddReg, EventsAddReg
+
+[Device_Properties]
+DeviceIcon,,,,"%%SYSTEMROOT%%\system32\SysClass.dll,-201" ; This is where a device specific icon can be specified.
+
+[Biometric_Install.NT.Services]
+AddService=WUDFRd,0x000001fa,WUDFRD_ServiceInstall  ; flag 0x2 sets this as the service for the device
+AddService=WinUsb,0x000001f8,WinUsb_ServiceInstall  ; this service is installed because its a filter.
+
+[Biometric_Install.NT.Wdf]
+KmdfService=WINUSB, WinUsb_Install
+UmdfDispatcher=WinUsb
+UmdfService=synaWudfBioUsb, synaWudfBioUsb_Install
+UmdfServiceOrder=synaWudfBioUsb
+UmdfHostProcessSharing=ProcessSharingDisabled
+
+[Biometric_Install.NT.CoInstallers]
+AddReg=CoInstallers_AddReg
+CopyFiles=CoInstallers_CopyFiles
+
+[WinUsb_Install]
+KmdfLibraryVersion = 1.11
+
+[synaWudfBioUsb_Install]
+UmdfLibraryVersion=1.11.0
+DriverCLSID = "{96710705-B080-4B29-A3EC-B16935AE663A}"
+ServiceBinary = "%12%\UMDF\synaWudfBioUsb.dll"
+
+[Biometric_Device_AddReg]
+HKR,,"DeviceCharacteristics",0x10001,0x0100     ; Use same security checks on relative opens
+HKR,,"Security",,"D:P(A;;GA;;;BA)(A;;GA;;;SY)"  ; Allow generic-all access to Built-in administrators and Local system
+;HKR,,Security,,"D:P(A;;GA;;;BA)(A;;GA;;;SY)(A;;GA;;;S-1-5-84-0-0-0-0-0")
+HKR,,"LowerFilters",0x00010008,"WinUsb"         ; FLG_ADDREG_TYPE_MULTI_SZ | FLG_ADDREG_APPEND
+HKR,,"Exclusive",0x10001,1
+HKR,,"DeviceIdleEnabled",0x00010001,0
+HKR,,"UserSetDeviceIdleEnabled",0x00010001,0
+HKR,,"DefaultIdleState",0x00010001,0
+HKR,,"DefaultIdleTimeout",0x00010001,5000
+HKR,,"WinUsbPowerPolicyOwnershipDisabled",0x00010001,1
+
+[DriverPlugInAddReg]
+HKR,WinBio\Configurations,DefaultConfiguration,,"0"
+HKR,WinBio\Configurations\0,SensorMode,0x10001,2                                ; Basic - 1, Advanced - 2
+HKR,WinBio\Configurations\0,SystemSensor,0x10001,1                              ; UAC/Winlogon - 1
+HKR,WinBio\Configurations\0,SensorAdapterBinary,,"synaAdvAdapter.DLL"           ; Synaptics compound adapter.
+HKR,WinBio\Configurations\0,EngineAdapterBinary,,"synaAdvAdapter.DLL"           ; Synaptics compound adapter.
+HKR,WinBio\Configurations\0,StorageAdapterBinary,,"synaAdvAdapter.DLL"          ; Synaptics compound adapter.
+HKR,WinBio\Configurations\0,DatabaseId,,"D833B48E-3178-4DF0-AEE3-2803155883D4"  ; must have Synaptics specific GUID for DB
+
+[DatabaseAddReg]
+HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{D833B48E-3178-4DF0-AEE3-2803155883D4},BiometricType,0x00010001,0x00000008
+HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{D833B48E-3178-4DF0-AEE3-2803155883D4},Attributes,0x00010001,0x00010003
+HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{D833B48E-3178-4DF0-AEE3-2803155883D4},Format,,"00000000-0000-0000-0000-000000000000"
+HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{D833B48E-3178-4DF0-AEE3-2803155883D4},InitialSize,0x00010001,0x00000020
+HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{D833B48E-3178-4DF0-AEE3-2803155883D4},AutoCreate,0x00010001,0x00000001
+HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{D833B48E-3178-4DF0-AEE3-2803155883D4},AutoName,0x00010001,0x00000001
+HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{D833B48E-3178-4DF0-AEE3-2803155883D4},FilePath,,""
+HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{D833B48E-3178-4DF0-AEE3-2803155883D4},ConnectionString,,""
+
+[EventsAddReg]
+HKLM, System\CurrentControlSet\Services\eventlog\System\Synaptics FPR,EventMessageFile,,"%%SystemRoot%%\System32\drivers\UMDF\synaWudfBioUsb.dll"
+HKLM, System\CurrentControlSet\Services\eventlog\System\Synaptics FPR,TypesSupported,0x00010001,0x00000007
+
+[WUDFRD_ServiceInstall]
+DisplayName = %WudfRdDisplayName%
+ServiceType = 1
+StartType = 3
+ErrorControl = 1
+ServiceBinary = %12%\WUDFRd.sys
+LoadOrderGroup = Base
+
+[WinUsb_ServiceInstall]
+DisplayName     = %WinUsb_SvcDesc%
+ServiceType     = 1
+StartType       = 3
+ErrorControl    = 1
+ServiceBinary   = %12%\WinUSB.sys
+
+[CoInstallers_AddReg]
+HKR,,CoInstallers32,0x00010000, "WudfUpdate_01011.dll"
+
+[CoInstallers_CopyFiles]
+WudfUpdate_01011.dll
+
+[DestinationDirs]
+UMDriverCopy=12,UMDF                      ; copy to \Windows\System32\drivers\UMDF
+WinBioEngineAdapterCopy=11, WinBioPlugins ; copy to \Windows\System32\WinBioPlugins
+CoInstallers_CopyFiles=11                 ; copy to \Windows\System32
+FWextCopy=24, ProgramData\Validity\fwext  ; copy to "system drive"\ProgramData\Validity\fwext
+
+[UMDriverCopy]
+synaWudfBioUsb.dll
+
+[WinBioEngineAdapterCopy]
+synaAdvAdapter.dll
+
+[SignatureAttributes]
+synaAdvAdapter.dll = SignatureAttributes.WindowsHello
+ 
+[SignatureAttributes.WindowsHello]
+WindowsHello = true
+
+; =================== Generic ==================================
+
+[Strings]
+SYNAUMDF="Synaptics Incorporated"
+MediaDescription="Synaptics Fingerprint Sensor Driver Installation Media"
+ClassName="Biometric Devices"
+WudfRdDisplayName="Windows Driver Foundation - User-mode Driver Framework Reflector"
+WBDIUsbDeviceName="Synaptics WBDI" 
+WinUsb_SvcDesc="WinUSB Driver"
+CustomerProject="LenovoLBG-050"

BIN
drivers/sep2018/synaWudfBioUsb.dll


BIN
drivers/sep2018/synaumdf.cat


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
drivers/softpedia.html


BIN
drivers/synaptics-jul2018.cab


BIN
drivers/synaptics-sep2018.cab


+ 31 - 0
work/artifacts/make-verify.sh

@@ -0,0 +1,31 @@
+#!/bin/bash
+# Regenerate verify.exe (verify-only sandbox binary) from a.exe.
+#
+# a.exe is the prebuilt harness from uunicorn/synaWudfBioUsb-sandbox whose flow
+# is hardcoded to enroll()+identify(). Two byte patches turn it into a
+# verify-only binary:
+#   - 0x4048b8  call enroll            -> NOP x5
+#   - 0x4048e1  mov $0x2710,%ecx (10s) -> mov $0,%ecx
+# If a future upstream a.exe differs, this script fails loudly (signatures).
+set -eu
+
+SANDBOX=${1:-/home/nebulon/projects/fingerprint/work/synaWudfBioUsb-sandbox}
+cd "$SANDBOX"
+[ -f a.exe ] || { echo "a.exe not found in $SANDBOX" >&2; exit 1; }
+
+cp -f a.exe verify.exe
+python3 - <<'EOF'
+data = bytearray(open('verify.exe', 'rb').read())
+sigA = bytes.fromhex('b902000000e81fe4ffffe802d8ffff')   # mov ecx,2; call setMode; call enroll
+sigB = bytes.fromhex('b910270000488b054b9c0100ffd0e816ceffff')  # mov ecx,0x2710; ...; call identify
+i = data.find(sigA)
+assert i >= 0, "signature A not found - a.exe changed upstream?"
+data[i + 10:i + 15] = b'\x90' * 5
+j = data.find(sigB)
+assert j >= 0, "signature B not found - a.exe changed upstream?"
+data[j + 1:j + 3] = b'\x00\x00'
+open('verify.exe', 'wb').write(bytes(data))
+print("patched: call enroll -> NOP, Sleep(10000) -> Sleep(0)")
+EOF
+chmod +x verify.exe
+echo "verify.exe ready in $SANDBOX"

BIN
work/artifacts/sandbox/CalibrationData.blob


+ 0 - 0
work/artifacts/sandbox/PairingData.blob


+ 1 - 0
work/artifacts/sandbox/SetOwnershipFailureCount.uint

@@ -0,0 +1 @@
+0

+ 1 - 0
work/artifacts/sandbox/UpdateFirmwareFailureCount.uint

@@ -0,0 +1 @@
+0

+ 1 - 0
work/artifacts/sandbox/deviceInitializeFailures.uint

@@ -0,0 +1 @@
+0

BIN
work/artifacts/sandbox/libgcc_s_seh-1.dll


BIN
work/artifacts/sandbox/libstdc++-6.dll


BIN
work/artifacts/sandbox/libwinpthread-1.dll


+ 1 - 0
work/artifacts/sandbox/usb.txt

@@ -0,0 +1 @@
+06cb:0081

BIN
work/artifacts/sandbox/verify.exe


+ 23 - 0
work/artifacts/sync-to-sandbox.sh

@@ -0,0 +1,23 @@
+#!/bin/bash
+# Restore the runtime artifacts into the sandbox working directory.
+# Use after a fresh clone of uunicorn/synaWudfBioUsb-sandbox (work/synaWudfBioUsb-sandbox):
+#   git clone https://github.com/uunicorn/synaWudfBioUsb-sandbox work/synaWudfBioUsb-sandbox
+#   work/artifacts/sync-to-sandbox.sh
+set -eu
+
+ROOT=/home/nebulon/projects/fingerprint
+SANDBOX=${1:-$ROOT/work/synaWudfBioUsb-sandbox}
+A=$ROOT/work/artifacts/sandbox
+
+[ -d "$SANDBOX" ] || { echo "sandbox dir missing: $SANDBOX" >&2; exit 1; }
+
+# vendor driver DLLs (kept in driverdlls/ in this repo)
+cp -f "$ROOT/driverdlls/synaWudfBioUsb.dll" "$SANDBOX/" || echo "WARN: driverdlls/synaWudfBioUsb.dll missing" >&2
+
+# trust/calibration state + device id + MinGW runtime DLLs + verify-only binary
+cp -f "$A"/*.blob "$A"/*.uint "$A/usb.txt" "$A"/*.dll "$SANDBOX/"
+cp -f "$A/verify.exe" "$SANDBOX/"
+chmod +x "$SANDBOX/verify.exe" 2>/dev/null || true
+
+echo "artifacts restored to $SANDBOX"
+echo "note: a.exe / sources come from the git clone itself."

+ 67 - 0
work/debug/drive_session.py

@@ -0,0 +1,67 @@
+#!/usr/bin/env python3
+"""Interactive pty driver for the tudor_cli enrollment/verification flow.
+
+Spawns tudor_cli under a pseudo-terminal so its prompts work. Streams all
+output and forwards stdin so the session can be driven interactively:
+  - type commands directly, or
+  - pass "auto" as first arg to send an enroll command automatically.
+"""
+import os
+import pty
+import select
+import sys
+import time
+
+BUILD = "/home/nebulon/projects/fingerprint/work/synaTudor/build"
+CLI = os.path.join(BUILD, "cli", "tudor_cli")
+DATASTORE = "/home/nebulon/projects/fingerprint/work/debug/datastore.bin"
+MODE = sys.argv[1] if len(sys.argv) > 1 else "interactive"
+
+os.chdir(BUILD)
+pid, fd = pty.fork()
+if pid == 0:
+    os.execv(CLI, [CLI, DATASTORE])
+
+buf = b""
+sent_setup = False
+init_deadline = time.time() + 240
+
+while True:
+    r, _, _ = select.select([fd, sys.stdin], [], [], 1.0)
+    if sys.stdin in r:
+        data = os.read(sys.stdin.fileno(), 4096)
+        if data:
+            os.write(fd, data)
+    if fd in r:
+        try:
+            data = os.read(fd, 4096)
+        except OSError:
+            break
+        if not data:
+            break
+        buf += data
+        sys.stdout.write(data.decode("utf-8", "replace"))
+        sys.stdout.flush()
+
+        text = buf.decode("utf-8", "replace")
+        if MODE == "auto" and not sent_setup and "> " in text:
+            sent_setup = True
+            time.sleep(0.5)
+            os.write(fd, b"e\n")
+            time.sleep(0.5)
+            os.write(fd, b"1\n")
+            time.sleep(0.5)
+            os.write(fd, b"1\n")
+            print("\n=== auto-enroll input sent; touch the sensor ===")
+            sys.stdout.flush()
+
+    if not sent_setup and MODE == "auto" and time.time() > init_deadline:
+        print("\n=== init timed out ===")
+        break
+
+try:
+    os.close(fd)
+except OSError:
+    pass
+os.waitpid(pid, 0)
+print("\n=== session ended ===")

+ 160 - 0
work/debug/enroll.py

@@ -0,0 +1,160 @@
+#!/usr/bin/env python3
+"""Drive tudor_cli enrollment over a pty.
+
+Phases:
+  1. Init (~3-4 min). Prints phase markers; traces are filtered out.
+  2. Enroll command is sent automatically (identity + finger from argv).
+  3. Full output from then on. Touch the sensor when the driver asks.
+  4. Auto-shuts down when enrollment succeeds and saves the template.
+     Press Ctrl-C to abort safely.
+
+Usage: enroll.py [identity] [finger]
+"""
+import os
+import pty
+import select
+import sys
+import time
+
+BUILD = "/home/nebulon/projects/fingerprint/work/synaTudor/build"
+CLI = os.path.join(BUILD, "cli", "tudor_cli")
+DATASTORE = "/home/nebulon/projects/fingerprint/work/debug/datastore.bin"
+IDENTITY = sys.argv[1] if len(sys.argv) > 1 else "1"
+FINGER = sys.argv[2] if len(sys.argv) > 2 else "1"
+
+os.chdir(BUILD)
+pid, fd = pty.fork()
+if pid == 0:
+    os.execv(CLI, [CLI, DATASTORE])
+
+buf = b""
+sent_enroll = False
+enrolled = False
+init_deadline = time.time() + 600
+
+KEEP = (
+    "[INF]", "[PIPE]", "[WRN]", "[ERR]", "Initializing", "Opening",
+    "Loading", "Commands:", "Enter identity", "Enter finger", "Put your",
+    "Successfully", "Capturing", "Driver requested", "Retrying",
+    "sensor status", "session ended", "shutting down", "Error",
+    "Enrollment", "not calibrated", "> ", "DEVCTRL", "about to ioctl",
+)
+
+def interesting(line):
+    return any(k in line for k in KEEP)
+
+def pump(timeout=1.0):
+    global buf
+    try:
+        r, _, _ = select.select([fd], [], [], timeout)
+    except (OSError, ValueError):
+        return False
+    if not r:
+        return True
+    try:
+        data = os.read(fd, 65536)
+    except OSError:
+        return False
+    if not data:
+        return False
+    buf += data
+    return True
+
+def drain_lines(show_all):
+    global buf
+    text = buf.decode("utf-8", "replace")
+    lines = text.split("\n")
+    buf = lines[-1].encode()
+    for line in lines[:-1]:
+        if show_all or interesting(line):
+            print(line, flush=True)
+
+def child_alive():
+    try:
+        got, status = os.waitpid(pid, os.WNOHANG)
+        if got == pid:
+            if os.WIFEXITED(status):
+                print(f"\n=== child exited normally with code {os.WEXITSTATUS(status)} ===")
+            elif os.WIFSIGNALED(status):
+                print(f"\n=== child killed by signal {os.WTERMSIG(status)} ===")
+            return False
+    except ChildProcessError:
+        return False
+    return True
+
+print("=== waiting for driver init (~3-4 minutes)... ===", flush=True)
+init_start = time.time()
+while True:
+    if not pump(1.0):
+        print("\n=== output stream closed ===")
+        break
+    if not child_alive():
+        break
+    #Wait for the real command prompt, not early boot output that also
+    #contains '> '
+    if not sent_enroll and "Commands:" in buf.decode("utf-8", "replace"):
+        drain_lines(False)
+        sent_enroll = True
+        time.sleep(0.3)
+        os.write(fd, b"e\n")
+        time.sleep(0.3)
+        os.write(fd, f"{IDENTITY}\n".encode())
+        time.sleep(0.3)
+        os.write(fd, f"{FINGER}\n".encode())
+        print(f"\n=== init done in {int(time.time()-init_start)}s; enroll sent for identity {IDENTITY}, finger {FINGER} ===", flush=True)
+        print("=== TOUCH AND HOLD the sensor now; keep re-touching until it says enrolled ===\n", flush=True)
+        break
+    if time.time() > init_deadline:
+        print("\n=== init timed out ===")
+        try:
+            os.write(fd, b"s\n")
+        except OSError:
+            pass
+        break
+
+# Full output during capture, with a heartbeat so you know it is still waiting
+capture_deadline = time.time() + 1800
+last_beat = time.time()
+while sent_enroll and not enrolled:
+    if not pump(1.0):
+        print("\n=== output stream closed during capture ===")
+        break
+    if not child_alive():
+        break
+    text = buf.decode("utf-8", "replace")
+    drain_lines(True)
+    if "Successfully enrolled finger" in text:
+        enrolled = True
+        print("\n=== ENROLLED! saving and shutting down... ===", flush=True)
+        time.sleep(1)
+        os.write(fd, b"s\n")
+        time.sleep(4)
+        break
+    if time.time() - last_beat > 30:
+        last_beat = time.time()
+        print(f"    ... {int(time.time() - (capture_deadline - 1800))}s elapsed, still waiting for a finger touch", flush=True)
+    if time.time() > capture_deadline:
+        print("\n=== capture timed out after 30 min ===")
+        try:
+            os.write(fd, b"s\n")
+            time.sleep(2)
+        except OSError:
+            pass
+        break
+
+# Drain remaining output briefly
+end = time.time() + 15
+while time.time() < end:
+    if not pump(1.0):
+        break
+    drain_lines(True)
+
+print("\n=== session ended ===")
+try:
+    os.close(fd)
+except OSError:
+    pass
+try:
+    os.waitpid(pid, 0)
+except ChildProcessError:
+    pass

+ 13 - 0
work/debug/enroll.sh

@@ -0,0 +1,13 @@
+#!/bin/bash
+# Enroll a fingerprint on the synaTudor-relinked 06cb:0081 sensor.
+#
+# Run this in a real terminal. It initializes the driver (~3-4 min) and then
+# auto-sends the enroll command. Touch the sensor when the driver asks
+# (repeat the touches until it says "Successfully enrolled finger").
+# The session saves automatically afterwards.
+#
+# Usage: ./enroll.sh [identity-index] [finger-index]
+#   finger: 1-5 = right hand thumb..little, 6-10 = left hand thumb..little
+
+cd /home/nebulon/projects/fingerprint/work/synaTudor/build
+exec timeout 2400 python3 /home/nebulon/projects/fingerprint/work/debug/enroll.py "$@"

+ 228 - 0
work/debug/gdb_capture.txt

@@ -0,0 +1,228 @@
+
+This GDB supports auto-downloading debuginfo from the following URLs:
+  <https://debuginfod.archlinux.org>
+Debuginfod has been disabled.
+To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
+[Thread debugging using libthread_db enabled]
+Using host libthread_db library "/usr/lib/libthread_db.so.1".
+[New Thread 0x7ffff62766c0 (LWP 53012) (id 2)]
+[New Thread 0x7ffff5a756c0 (LWP 53013) (id 3)]
+[New Thread 0x7ffff50386c0 (LWP 53015) (id 4)]
+[New Thread 0x7ffff48376c0 (LWP 53016) (id 5)]
+[New Thread 0x7fffe7fff6c0 (LWP 53017) (id 6)]
+[New Thread 0x7fffe77fe6c0 (LWP 53018) (id 7)]
+[Thread 0x7fffe77fe6c0 (LWP 53018) (id 7) exited]
+[Thread 0x7fffe7fff6c0 (LWP 53017) (id 6) exited]
+[Thread 0x7ffff48376c0 (LWP 53016) (id 5) exited]
+
+Thread 1 "tudor_cli" received signal SIGSEGV, Segmentation fault.
+0x00007ffff506d314 in ?? ()
+=== CRASH ===
+rip            0x7ffff506d314      0x7ffff506d314
+rsp            0x7fffffffc740      0x7fffffffc740
+rbp            0x7fffffffc990      0x7fffffffc990
+rax            0x0                 0
+rbx            0x0                 0
+rcx            0x0                 0
+rdx            0x8                 8
+rsi            0x7ffff5072c78      140737304276088
+rdi            0x44202c            4464684
+r8             0x7fffffffc7c0      140737488340928
+r9             0x7fffffffc798      140737488340888
+r10            0x7ffff7428500      140737341719808
+r11            0x246               582
+#0  0x00007ffff506d314 in ?? ()
+#1  0x00005555555d48a0 in ?? ()
+#2  0x00007fffffffc950 in ?? ()
+#3  0x00007fffffffc78c in ?? ()
+#4  0x00007fffffffc7b8 in ?? ()
+#5  0x00007fffffffc7c0 in ?? ()
+#6  0x00007fffffffc790 in ?? ()
+#7  0x00007fffffffc798 in ?? ()
+#8  0x00007fffffffc7c0 in ?? ()
+#9  0x00007fff00000000 in ?? ()
+process 53009
+Mapped address spaces:
+
+Start Addr         End Addr           Size               Offset             Perms File 
+0x0000555555554000 0x0000555555556000 0x2000             0x0                r--p  /home/nebulon/projects/fingerprint/work/synaTudor/build/cli/tudor_cli 
+0x0000555555556000 0x000055555555a000 0x4000             0x2000             r-xp  /home/nebulon/projects/fingerprint/work/synaTudor/build/cli/tudor_cli 
+0x000055555555a000 0x000055555555c000 0x2000             0x6000             r--p  /home/nebulon/projects/fingerprint/work/synaTudor/build/cli/tudor_cli 
+0x000055555555c000 0x000055555555d000 0x1000             0x7000             r--p  /home/nebulon/projects/fingerprint/work/synaTudor/build/cli/tudor_cli 
+0x000055555555d000 0x000055555555e000 0x1000             0x8000             rw-p  /home/nebulon/projects/fingerprint/work/synaTudor/build/cli/tudor_cli 
+0x000055555555e000 0x0000555555601000 0xa3000            0x0                rw-p  [heap] 
+0x00007fffd8000000 0x00007fffd8021000 0x21000            0x0                rw-p   
+0x00007fffd8021000 0x00007fffdc000000 0x3fdf000          0x0                ---p   
+0x00007fffdc000000 0x00007fffdc021000 0x21000            0x0                rw-p   
+0x00007fffdc021000 0x00007fffe0000000 0x3fdf000          0x0                ---p   
+0x00007fffe0000000 0x00007fffe0021000 0x21000            0x0                rw-p   
+0x00007fffe0021000 0x00007fffe4000000 0x3fdf000          0x0                ---p   
+0x00007fffe6ffe000 0x00007fffe8000000 0x1002000          0x0                rw-p   
+0x00007fffe8000000 0x00007fffe8021000 0x21000            0x0                rw-p   
+0x00007fffe8021000 0x00007fffec000000 0x3fdf000          0x0                ---p   
+0x00007fffec000000 0x00007fffec037000 0x37000            0x0                rw-p   
+0x00007fffec037000 0x00007ffff0000000 0x3fc9000          0x0                ---p   
+0x00007ffff0000000 0x00007ffff0021000 0x21000            0x0                rw-p   
+0x00007ffff0021000 0x00007ffff4000000 0x3fdf000          0x0                ---p   
+0x00007ffff4037000 0x00007ffff5039000 0x1002000          0x0                rw-p   
+0x00007ffff5039000 0x00007ffff503a000 0x1000             0x0                r--p   
+0x00007ffff503a000 0x00007ffff5152000 0x118000           0x0                r-xp   
+0x00007ffff5152000 0x00007ffff5208000 0xb6000            0x0                r--p   
+0x00007ffff5208000 0x00007ffff526b000 0x63000            0x0                rw-p   
+0x00007ffff526b000 0x00007ffff5275000 0xa000             0x0                r--p   
+0x00007ffff5275000 0x00007ffff6277000 0x1002000          0x0                rw-p   
+0x00007ffff6277000 0x00007ffff6286000 0xf000             0x0                r--p  /usr/lib/libunistring.so.5.2.1 
+0x00007ffff6286000 0x00007ffff62ca000 0x44000            0xf000             r-xp  /usr/lib/libunistring.so.5.2.1 
+0x00007ffff62ca000 0x00007ffff6459000 0x18f000           0x53000            r--p  /usr/lib/libunistring.so.5.2.1 
+0x00007ffff6459000 0x00007ffff645d000 0x4000             0x1e2000           r--p  /usr/lib/libunistring.so.5.2.1 
+0x00007ffff645d000 0x00007ffff645e000 0x1000             0x1e6000           rw-p  /usr/lib/libunistring.so.5.2.1 
+0x00007ffff645e000 0x00007ffff6465000 0x7000             0x0                r--p  /usr/lib/libp11-kit.so.0.4.11 
+0x00007ffff6465000 0x00007ffff654e000 0xe9000            0x7000             r-xp  /usr/lib/libp11-kit.so.0.4.11 
+0x00007ffff654e000 0x00007ffff65e0000 0x92000            0xf0000            r--p  /usr/lib/libp11-kit.so.0.4.11 
+0x00007ffff65e0000 0x00007ffff65f1000 0x11000            0x181000           r--p  /usr/lib/libp11-kit.so.0.4.11 
+0x00007ffff65f1000 0x00007ffff6600000 0xf000             0x192000           rw-p  /usr/lib/libp11-kit.so.0.4.11 
+0x00007ffff6600000 0x00007ffff661b000 0x1b000            0x0                r--p  /usr/lib/libleancrypto.so.1.9.1 
+0x00007ffff661b000 0x00007ffff677e000 0x163000           0x1b000            r-xp  /usr/lib/libleancrypto.so.1.9.1 
+0x00007ffff677e000 0x00007ffff68af000 0x131000           0x17e000           r--p  /usr/lib/libleancrypto.so.1.9.1 
+0x00007ffff68af000 0x00007ffff68b5000 0x6000             0x2af000           r--p  /usr/lib/libleancrypto.so.1.9.1 
+0x00007ffff68b5000 0x00007ffff68b7000 0x2000             0x2b5000           rw-p  /usr/lib/libleancrypto.so.1.9.1 
+0x00007ffff6959000 0x00007ffff696a000 0x11000            0x0                r--p  /usr/lib/libgmp.so.10.5.0 
+0x00007ffff696a000 0x00007ffff69e8000 0x7e000            0x11000            r-xp  /usr/lib/libgmp.so.10.5.0 
+0x00007ffff69e8000 0x00007ffff69fd000 0x15000            0x8f000            r--p  /usr/lib/libgmp.so.10.5.0 
+0x00007ffff69fd000 0x00007ffff69ff000 0x2000             0xa3000            r--p  /usr/lib/libgmp.so.10.5.0 
+0x00007ffff69ff000 0x00007ffff6a00000 0x1000             0xa5000            rw-p  /usr/lib/libgmp.so.10.5.0 
+0x00007ffff6a00000 0x00007ffff6a25000 0x25000            0x0                r--p  /usr/lib/libgnutls.so.30.42.0 
+0x00007ffff6a25000 0x00007ffff6b8b000 0x166000           0x25000            r-xp  /usr/lib/libgnutls.so.30.42.0 
+0x00007ffff6b8b000 0x00007ffff6c12000 0x87000            0x18b000           r--p  /usr/lib/libgnutls.so.30.42.0 
+0x00007ffff6c12000 0x00007ffff6c24000 0x12000            0x212000           r--p  /usr/lib/libgnutls.so.30.42.0 
+0x00007ffff6c24000 0x00007ffff6c27000 0x3000             0x224000           rw-p  /usr/lib/libgnutls.so.30.42.0 
+0x00007ffff6c27000 0x00007ffff6c2a000 0x3000             0x0                rw-p   
+0x00007ffff6c93000 0x00007ffff6c94000 0x1000             0x0                r--p   
+0x00007ffff6c94000 0x00007ffff6cb6000 0x22000            0x0                r-xp   
+0x00007ffff6cb6000 0x00007ffff6cc1000 0xb000             0x0                r--p   
+0x00007ffff6cc1000 0x00007ffff6cc5000 0x4000             0x0                rw-p   
+0x00007ffff6cc5000 0x00007ffff6cc9000 0x4000             0x0                r--p   
+0x00007ffff6cc9000 0x00007ffff6cd9000 0x10000            0x0                r--p  /usr/lib/libm.so.6 
+0x00007ffff6cd9000 0x00007ffff6d75000 0x9c000            0x10000            r-xp  /usr/lib/libm.so.6 
+0x00007ffff6d75000 0x00007ffff6dfe000 0x89000            0xac000            r--p  /usr/lib/libm.so.6 
+0x00007ffff6dfe000 0x00007ffff6dff000 0x1000             0x134000           r--p  /usr/lib/libm.so.6 
+0x00007ffff6dff000 0x00007ffff6e00000 0x1000             0x135000           rw-p  /usr/lib/libm.so.6 
+0x00007ffff6e00000 0x00007ffff6e9a000 0x9a000            0x0                r--p  /usr/lib/libstdc++.so.6.0.36 
+0x00007ffff6e9a000 0x00007ffff701d000 0x183000           0x9a000            r-xp  /usr/lib/libstdc++.so.6.0.36 
+0x00007ffff701d000 0x00007ffff70bd000 0xa0000            0x21d000           r--p  /usr/lib/libstdc++.so.6.0.36 
+0x00007ffff70bd000 0x00007ffff70ce000 0x11000            0x2bc000           r--p  /usr/lib/libstdc++.so.6.0.36 
+0x00007ffff70ce000 0x00007ffff70cf000 0x1000             0x2cd000           rw-p  /usr/lib/libstdc++.so.6.0.36 
+0x00007ffff70cf000 0x00007ffff70d3000 0x4000             0x0                rw-p   
+0x00007ffff70d9000 0x00007ffff70da000 0x1000             0x0                r--p  /usr/lib/gconv/UTF-16.so 
+0x00007ffff70da000 0x00007ffff70dc000 0x2000             0x1000             r-xp  /usr/lib/gconv/UTF-16.so 
+0x00007ffff70dc000 0x00007ffff70dd000 0x1000             0x3000             r--p  /usr/lib/gconv/UTF-16.so 
+0x00007ffff70dd000 0x00007ffff70de000 0x1000             0x3000             r--p  /usr/lib/gconv/UTF-16.so 
+0x00007ffff70de000 0x00007ffff70df000 0x1000             0x4000             rw-p  /usr/lib/gconv/UTF-16.so 
+0x00007ffff70df000 0x00007ffff70e6000 0x7000             0x0                r--s  /usr/lib/gconv/gconv-modules.cache 
+0x00007ffff70e6000 0x00007ffff70ea000 0x4000             0x0                rwxp   
+0x00007ffff70ea000 0x00007ffff70eb000 0x1000             0x0                rw-p   
+0x00007ffff70eb000 0x00007ffff70f9000 0xe000             0x0                r--p  /usr/lib/libnettle.so.9.0 
+0x00007ffff70f9000 0x00007ffff712b000 0x32000            0xe000             r-xp  /usr/lib/libnettle.so.9.0 
+0x00007ffff712b000 0x00007ffff7143000 0x18000            0x40000            r--p  /usr/lib/libnettle.so.9.0 
+0x00007ffff7143000 0x00007ffff7146000 0x3000             0x57000            r--p  /usr/lib/libnettle.so.9.0 
+0x00007ffff7146000 0x00007ffff7147000 0x1000             0x5a000            rw-p  /usr/lib/libnettle.so.9.0 
+0x00007ffff7147000 0x00007ffff714f000 0x8000             0x0                r--p  /usr/lib/libhogweed.so.7.0 
+0x00007ffff714f000 0x00007ffff7162000 0x13000            0x8000             r-xp  /usr/lib/libhogweed.so.7.0 
+0x00007ffff7162000 0x00007ffff718b000 0x29000            0x1b000            r--p  /usr/lib/libhogweed.so.7.0 
+0x00007ffff718b000 0x00007ffff718d000 0x2000             0x43000            r--p  /usr/lib/libhogweed.so.7.0 
+0x00007ffff718d000 0x00007ffff718e000 0x1000             0x45000            rw-p  /usr/lib/libhogweed.so.7.0 
+0x00007ffff718e000 0x00007ffff7190000 0x2000             0x0                r--p  /usr/lib/libidn2.so.0.4.0 
+0x00007ffff7190000 0x00007ffff7194000 0x4000             0x2000             r-xp  /usr/lib/libidn2.so.0.4.0 
+0x00007ffff7194000 0x00007ffff71ae000 0x1a000            0x6000             r--p  /usr/lib/libidn2.so.0.4.0 
+0x00007ffff71ae000 0x00007ffff71af000 0x1000             0x1f000            r--p  /usr/lib/libidn2.so.0.4.0 
+0x00007ffff71af000 0x00007ffff71b0000 0x1000             0x20000            rw-p  /usr/lib/libidn2.so.0.4.0 
+0x00007ffff71b0000 0x00007ffff71b5000 0x5000             0x0                r--p  /usr/lib/libudev.so.1.7.15 
+0x00007ffff71b5000 0x00007ffff71e3000 0x2e000            0x5000             r-xp  /usr/lib/libudev.so.1.7.15 
+0x00007ffff71e3000 0x00007ffff71fa000 0x17000            0x33000            r--p  /usr/lib/libudev.so.1.7.15 
+0x00007ffff71fa000 0x00007ffff71ff000 0x5000             0x4a000            r--p  /usr/lib/libudev.so.1.7.15 
+0x00007ffff71ff000 0x00007ffff7200000 0x1000             0x4f000            rw-p  /usr/lib/libudev.so.1.7.15 
+0x00007ffff7200000 0x00007ffff7224000 0x24000            0x0                r--p  /usr/lib/libc.so.6 
+0x00007ffff7224000 0x00007ffff739f000 0x17b000           0x24000            r-xp  /usr/lib/libc.so.6 
+0x00007ffff739f000 0x00007ffff7415000 0x76000            0x19f000           r--p  /usr/lib/libc.so.6 
+0x00007ffff7415000 0x00007ffff7419000 0x4000             0x214000           r--p  /usr/lib/libc.so.6 
+0x00007ffff7419000 0x00007ffff741b000 0x2000             0x218000           rw-p  /usr/lib/libc.so.6 
+0x00007ffff741b000 0x00007ffff7425000 0xa000             0x0                rw-p   
+0x00007ffff7425000 0x00007ffff7429000 0x4000             0x0                rw-p   
+0x00007ffff7429000 0x00007ffff742b000 0x2000             0x0                r--p  /usr/lib/libffi.so.8.5.0 
+0x00007ffff742b000 0x00007ffff7433000 0x8000             0x2000             r-xp  /usr/lib/libffi.so.8.5.0 
+0x00007ffff7433000 0x00007ffff7435000 0x2000             0xa000             r--p  /usr/lib/libffi.so.8.5.0 
+0x00007ffff7435000 0x00007ffff7436000 0x1000             0xb000             r--p  /usr/lib/libffi.so.8.5.0 
+0x00007ffff7436000 0x00007ffff7437000 0x1000             0xc000             rw-p  /usr/lib/libffi.so.8.5.0 
+0x00007ffff7437000 0x00007ffff7438000 0x1000             0x0                r--p  /usr/lib/libbrotlicommon.so.1.2.0 
+0x00007ffff7438000 0x00007ffff7439000 0x1000             0x1000             r-xp  /usr/lib/libbrotlicommon.so.1.2.0 
+0x00007ffff7439000 0x00007ffff7458000 0x1f000            0x2000             r--p  /usr/lib/libbrotlicommon.so.1.2.0 
+0x00007ffff7458000 0x00007ffff7459000 0x1000             0x21000            r--p  /usr/lib/libbrotlicommon.so.1.2.0 
+0x00007ffff7459000 0x00007ffff745a000 0x1000             0x22000            rw-p  /usr/lib/libbrotlicommon.so.1.2.0 
+0x00007ffff745a000 0x00007ffff7466000 0xc000             0x0                r--p  /usr/lib/libzstd.so.1.5.7 
+0x00007ffff7466000 0x00007ffff752d000 0xc7000            0xc000             r-xp  /usr/lib/libzstd.so.1.5.7 
+0x00007ffff752d000 0x00007ffff753e000 0x11000            0xd3000            r--p  /usr/lib/libzstd.so.1.5.7 
+0x00007ffff753e000 0x00007ffff753f000 0x1000             0xe4000            r--p  /usr/lib/libzstd.so.1.5.7 
+0x00007ffff753f000 0x00007ffff7540000 0x1000             0xe5000            rw-p  /usr/lib/libzstd.so.1.5.7 
+0x00007ffff7540000 0x00007ffff7541000 0x1000             0x0                r--p  /usr/lib/libbrotlienc.so.1.2.0 
+0x00007ffff7541000 0x00007ffff75ae000 0x6d000            0x1000             r-xp  /usr/lib/libbrotlienc.so.1.2.0 
+0x00007ffff75ae000 0x00007ffff75fe000 0x50000            0x6e000            r--p  /usr/lib/libbrotlienc.so.1.2.0 
+0x00007ffff75fe000 0x00007ffff75ff000 0x1000             0xbd000            r--p  /usr/lib/libbrotlienc.so.1.2.0 
+0x00007ffff75ff000 0x00007ffff7600000 0x1000             0xbe000            rw-p  /usr/lib/libbrotlienc.so.1.2.0 
+0x00007ffff7600000 0x00007ffff7653000 0x53000            0x0                r--p  /usr/lib/libcrypto.so.3 
+0x00007ffff7653000 0x00007ffff7a00000 0x3ad000           0x53000            r-xp  /usr/lib/libcrypto.so.3 
+0x00007ffff7a00000 0x00007ffff7b26000 0x126000           0x400000           r--p  /usr/lib/libcrypto.so.3 
+0x00007ffff7b26000 0x00007ffff7ba4000 0x7e000            0x526000           r--p  /usr/lib/libcrypto.so.3 
+0x00007ffff7ba4000 0x00007ffff7ba7000 0x3000             0x5a4000           rw-p  /usr/lib/libcrypto.so.3 
+0x00007ffff7ba7000 0x00007ffff7bae000 0x7000             0x0                rw-p   
+0x00007ffff7bae000 0x00007ffff7bb0000 0x2000             0x0                r--p  /usr/lib/libtasn1.so.6.6.5 
+0x00007ffff7bb0000 0x00007ffff7bbf000 0xf000             0x2000             r-xp  /usr/lib/libtasn1.so.6.6.5 
+0x00007ffff7bbf000 0x00007ffff7bc2000 0x3000             0x11000            r--p  /usr/lib/libtasn1.so.6.6.5 
+0x00007ffff7bc2000 0x00007ffff7bc3000 0x1000             0x14000            r--p  /usr/lib/libtasn1.so.6.6.5 
+0x00007ffff7bc3000 0x00007ffff7bc4000 0x1000             0x15000            rw-p  /usr/lib/libtasn1.so.6.6.5 
+0x00007ffff7bc4000 0x00007ffff7bc5000 0x1000             0x0                r--p  /usr/lib/libbrotlidec.so.1.2.0 
+0x00007ffff7bc5000 0x00007ffff7bce000 0x9000             0x1000             r-xp  /usr/lib/libbrotlidec.so.1.2.0 
+0x00007ffff7bce000 0x00007ffff7bd1000 0x3000             0xa000             r--p  /usr/lib/libbrotlidec.so.1.2.0 
+0x00007ffff7bd1000 0x00007ffff7bd2000 0x1000             0xc000             r--p  /usr/lib/libbrotlidec.so.1.2.0 
+0x00007ffff7bd2000 0x00007ffff7bd3000 0x1000             0xd000             rw-p  /usr/lib/libbrotlidec.so.1.2.0 
+0x00007ffff7bd3000 0x00007ffff7bd7000 0x4000             0x0                r--p  /usr/lib/libgcc_s.so.1 
+0x00007ffff7bd7000 0x00007ffff7bfa000 0x23000            0x4000             r-xp  /usr/lib/libgcc_s.so.1 
+0x00007ffff7bfa000 0x00007ffff7bfe000 0x4000             0x27000            r--p  /usr/lib/libgcc_s.so.1 
+0x00007ffff7bfe000 0x00007ffff7bff000 0x1000             0x2b000            r--p  /usr/lib/libgcc_s.so.1 
+0x00007ffff7bff000 0x00007ffff7c00000 0x1000             0x2c000            rw-p  /usr/lib/libgcc_s.so.1 
+0x00007ffff7c00000 0x00007ffff7c1f000 0x1f000            0x0                r--p  /home/nebulon/projects/fingerprint/work/synaTudor/build/libtudor/libtudor.so 
+0x00007ffff7c1f000 0x00007ffff7c5f000 0x40000            0x1f000            r-xp  /home/nebulon/projects/fingerprint/work/synaTudor/build/libtudor/libtudor.so 
+0x00007ffff7c5f000 0x00007ffff7c78000 0x19000            0x5f000            r--p  /home/nebulon/projects/fingerprint/work/synaTudor/build/libtudor/libtudor.so 
+0x00007ffff7c78000 0x00007ffff7c7a000 0x2000             0x78000            r--p  /home/nebulon/projects/fingerprint/work/synaTudor/build/libtudor/libtudor.so 
+0x00007ffff7c7a000 0x00007ffff7ef2000 0x278000           0x7a000            rw-p  /home/nebulon/projects/fingerprint/work/synaTudor/build/libtudor/libtudor.so 
+0x00007ffff7ef2000 0x00007ffff7ef3000 0x1000             0x0                rw-p   
+0x00007ffff7ef3000 0x00007ffff7ef4000 0x1000             0x0                rw-p   
+0x00007ffff7ef4000 0x00007ffff7ef8000 0x4000             0x0                rw-p   
+0x00007ffff7ef8000 0x00007ffff7efb000 0x3000             0x0                r--p  /usr/lib/libz.so.1.3.2 
+0x00007ffff7efb000 0x00007ffff7f0b000 0x10000            0x3000             r-xp  /usr/lib/libz.so.1.3.2 
+0x00007ffff7f0b000 0x00007ffff7f11000 0x6000             0x13000            r--p  /usr/lib/libz.so.1.3.2 
+0x00007ffff7f11000 0x00007ffff7f12000 0x1000             0x18000            r--p  /usr/lib/libz.so.1.3.2 
+0x00007ffff7f12000 0x00007ffff7f13000 0x1000             0x19000            rw-p  /usr/lib/libz.so.1.3.2 
+0x00007ffff7f13000 0x00007ffff7f15000 0x2000             0x0                rw-p   
+0x00007ffff7f15000 0x00007ffff7f19000 0x4000             0x0                r--p  /home/nebulon/projects/fingerprint/work/synaTudor/build/subprojects/cryptbridge/libcryptbridge.so.1.0.0 
+0x00007ffff7f19000 0x00007ffff7f45000 0x2c000            0x4000             r-xp  /home/nebulon/projects/fingerprint/work/synaTudor/build/subprojects/cryptbridge/libcryptbridge.so.1.0.0 
+0x00007ffff7f45000 0x00007ffff7f5f000 0x1a000            0x30000            r--p  /home/nebulon/projects/fingerprint/work/synaTudor/build/subprojects/cryptbridge/libcryptbridge.so.1.0.0 
+0x00007ffff7f5f000 0x00007ffff7f60000 0x1000             0x49000            r--p  /home/nebulon/projects/fingerprint/work/synaTudor/build/subprojects/cryptbridge/libcryptbridge.so.1.0.0 
+0x00007ffff7f60000 0x00007ffff7f61000 0x1000             0x4a000            rw-p  /home/nebulon/projects/fingerprint/work/synaTudor/build/subprojects/cryptbridge/libcryptbridge.so.1.0.0 
+0x00007ffff7f61000 0x00007ffff7f65000 0x4000             0x0                r--p  /usr/lib/libusb-1.0.so.0.6.0 
+0x00007ffff7f65000 0x00007ffff7f76000 0x11000            0x4000             r-xp  /usr/lib/libusb-1.0.so.0.6.0 
+0x00007ffff7f76000 0x00007ffff7f7f000 0x9000             0x15000            r--p  /usr/lib/libusb-1.0.so.0.6.0 
+0x00007ffff7f7f000 0x00007ffff7f80000 0x1000             0x1e000            r--p  /usr/lib/libusb-1.0.so.0.6.0 
+0x00007ffff7f80000 0x00007ffff7f81000 0x1000             0x1f000            rw-p  /usr/lib/libusb-1.0.so.0.6.0 
+0x00007ffff7f81000 0x00007ffff7f83000 0x2000             0x0                rw-p   
+0x00007ffff7f83000 0x00007ffff7fb6000 0x33000            0x0                r--p  /etc/ld.so.cache 
+0x00007ffff7fb6000 0x00007ffff7fba000 0x4000             0x0                r--p  [vvar] 
+0x00007ffff7fba000 0x00007ffff7fbc000 0x2000             0x0                r--p  [vvar_vclock] 
+0x00007ffff7fbc000 0x00007ffff7fbe000 0x2000             0x0                r-xp  [vdso] 
+0x00007ffff7fbe000 0x00007ffff7fbf000 0x1000             0x0                r--p  /usr/lib/ld-linux-x86-64.so.2 
+0x00007ffff7fbf000 0x00007ffff7fec000 0x2d000            0x1000             r-xp  /usr/lib/ld-linux-x86-64.so.2 
+0x00007ffff7fec000 0x00007ffff7ffb000 0xf000             0x2e000            r--p  /usr/lib/ld-linux-x86-64.so.2 
+0x00007ffff7ffb000 0x00007ffff7ffd000 0x2000             0x3d000            r--p  /usr/lib/ld-linux-x86-64.so.2 
+0x00007ffff7ffd000 0x00007ffff7ffe000 0x1000             0x3f000            rw-p  /usr/lib/ld-linux-x86-64.so.2 
+0x00007ffff7ffe000 0x00007ffff7fff000 0x1000             0x0                rw-p   
+0x00007fffff859000 0x00007ffffffff000 0x7a6000           0x0                rw-p  [stack] 
+0xffffffffff600000 0xffffffffff601000 0x1000             0x0                --xp  [vsyscall] 

+ 35 - 0
work/debug/gdb_cd2.txt

@@ -0,0 +1,35 @@
+
+This GDB supports auto-downloading debuginfo from the following URLs:
+  <https://debuginfod.archlinux.org>
+Debuginfod has been disabled.
+To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
+[Thread debugging using libthread_db enabled]
+Using host libthread_db library "/usr/lib/libthread_db.so.1".
+[New Thread 0x7ffff62766c0 (LWP 54540) (id 2)]
+[New Thread 0x7ffff5a756c0 (LWP 54541) (id 3)]
+[New Thread 0x7ffff50386c0 (LWP 54543) (id 4)]
+[New Thread 0x7ffff48376c0 (LWP 54544) (id 5)]
+[New Thread 0x7fffe7fff6c0 (LWP 54545) (id 6)]
+[New Thread 0x7fffe77fe6c0 (LWP 54546) (id 7)]
+[Thread 0x7fffe77fe6c0 (LWP 54546) (id 7) exited]
+[Thread 0x7fffe7fff6c0 (LWP 54545) (id 6) exited]
+[Thread 0x7ffff48376c0 (LWP 54544) (id 5) exited]
+
+Thread 1 "tudor_cli" received signal SIGSEGV, Segmentation fault.
+0x00007ffff506d314 in ?? ()
+=== CRASH ===
+rip            0x7ffff506d314      0x7ffff506d314
+rsp            0x7fffffffc730      0x7fffffffc730
+rbp            0x7fffffffc990      0x7fffffffc990
+rax            0x0                 0
+--- ctx = [rsp+0xb0] ---
+ctx=0x5555555b2a20
+0x5555555b2a20:	0x00007ffff5152e08	0x00007ffff5152ea0
+0x5555555b2a30:	0x00007ffff5152ee0	0x00007ffff5152f10
+0x5555555b2a40:	0x00007ffff5152f40	0x8200000000000004
+0x5555555b2a50:	0x0000000000000000	0x0000000000000000
+0x5555555b2a60:	0x0000000000000000	0x00005555555b2cc0
+--- obj=[ctx+0x1c0] ---
+obj=(nil)
+0x0:	/tmp/opencode/gdb_cd2.txt:16: Error in sourced command file:
+Cannot access memory at address 0x0

+ 64 - 0
work/debug/gdb_cd3.txt

@@ -0,0 +1,64 @@
+Breakpoint 1 at 0x2250
+
+This GDB supports auto-downloading debuginfo from the following URLs:
+  <https://debuginfod.archlinux.org>
+Debuginfod has been disabled.
+To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
+[Thread debugging using libthread_db enabled]
+Using host libthread_db library "/usr/lib/libthread_db.so.1".
+[New Thread 0x7ffff62766c0 (LWP 54863) (id 2)]
+[New Thread 0x7ffff5a756c0 (LWP 54864) (id 3)]
+[New Thread 0x7ffff50386c0 (LWP 54866) (id 4)]
+[New Thread 0x7ffff48376c0 (LWP 54867) (id 5)]
+[New Thread 0x7fffe7fff6c0 (LWP 54868) (id 6)]
+[New Thread 0x7fffe77fe6c0 (LWP 54869) (id 7)]
+[Thread 0x7fffe77fe6c0 (LWP 54869) (id 7) exited]
+[Thread 0x7fffe7fff6c0 (LWP 54868) (id 6) exited]
+[Thread 0x7ffff48376c0 (LWP 54867) (id 5) exited]
+
+Thread 1 "tudor_cli" hit Breakpoint 1, tudor_open (device=0x7fffffffccd0, usb_dev=0x5555555bece0, state=0x0) at ../libtudor/src/tudor/driver_wudf1.cpp:2101
+2101	{
+driver base = 0x7ffff5039000
+Breakpoint 2 at 0x7ffff506d314
+
+Thread 1 "tudor_cli" hit Breakpoint 2, 0x00007ffff506d314 in ?? ()
+=== AT CRASH INSTRUCTION ===
+rsp            0x7fffffffc730      0x7fffffffc730
+rbp            0x7fffffffc990      0x7fffffffc990
+rax            0x0                 0
+rbx            0x0                 0
+rdi            0x44202c            4464684
+rsi            0x7ffff5072c78      140737304276088
+--- stack ---
+0x7fffffffc730:	0x00005555555bfc30	0x00007fffffffc940
+0x7fffffffc740:	0x00007fffffffc77c	0x00007fffffffc7a8
+0x7fffffffc750:	0x00007fffffffc7b0	0x00007fffffffc780
+0x7fffffffc760:	0x00007fffffffc788	0x00007ffff725c2ac
+0x7fffffffc770:	0x0000000000000000	0x00442004ffffc7c0
+0x7fffffffc780:	0x00007fffffffcba0	0x0000000000000008
+0x7fffffffc790:	0x00007fffffffc940	0x00007fff800703e5
+0x7fffffffc7a0:	0x00007ffff7428808	0x0000000000000000
+0x7fffffffc7b0:	0x0000000000000000	0x00007ffff5154428
+0x7fffffffc7c0:	0x0000000000000000	0x00005555555d0a50
+--- caller frame [rsp+0xb0] ---
+ctx=0x5555555bfc30
+0x5555555bfc30:	0x00007ffff5152e08	0x00007ffff5152ea0
+0x5555555bfc40:	0x00007ffff5152ee0	0x00007ffff5152f10
+0x5555555bfc50:	0x00007ffff5152f40	0x00007fff00000004
+0x5555555bfc60:	0x0000000000000000	0x0000000000000000
+0x5555555bfc70:	0x0000000000000000	0x00005555555bfed0
+0x5555555bfc80:	0x0000000000000000	0x0000000000000001
+0x5555555bfc90:	0x0000006400000000	0x00007fff00000000
+0x5555555bfca0:	0x0000000000000000	0x0000000000000041
+0x5555555bfcb0:	0x00005555555bdbb0	0x00005555555be6e0
+0x5555555bfcc0:	0x0000000000000020	0x0000000000000020
+0x5555555bfcd0:	0x00007f0033313630	0x00007ffff7419ac8
+0x5555555bfce0:	0x00000000000000c0	0x0000000000000020
+0x5555555bfcf0:	0x00007fff00000000	0x0000000000000000
+0x5555555bfd00:	0x0000000000000000	0x00005555555bff00
+0x5555555bfd10:	0x00005555555bde10	0x0000000000000000
+0x5555555bfd20:	0x0000000000000001	0x00005555555dcd50
+0x5555555bfd30:	0x0000000000000000	0x00005555555dcdb0
+0x5555555bfd40:	0x0000000000000000	0x0000000000000000
+0x5555555bfd50:	0x0000000000000000	0x0000000000000000
+0x5555555bfd60:	0x0000000000000000	0x0000000000000000

+ 46 - 0
work/debug/gdb_cd4.txt

@@ -0,0 +1,46 @@
+Breakpoint 1 at 0x2250
+
+This GDB supports auto-downloading debuginfo from the following URLs:
+  <https://debuginfod.archlinux.org>
+Debuginfod has been disabled.
+To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
+[Thread debugging using libthread_db enabled]
+Using host libthread_db library "/usr/lib/libthread_db.so.1".
+[New Thread 0x7ffff62766c0 (LWP 57830) (id 2)]
+[New Thread 0x7ffff5a756c0 (LWP 57831) (id 3)]
+[New Thread 0x7ffff50386c0 (LWP 57838) (id 4)]
+[New Thread 0x7ffff48376c0 (LWP 57839) (id 5)]
+[New Thread 0x7fffe7fff6c0 (LWP 57840) (id 6)]
+[New Thread 0x7fffe77fe6c0 (LWP 57841) (id 7)]
+[Thread 0x7fffe77fe6c0 (LWP 57841) (id 7) exited]
+[Thread 0x7fffe7fff6c0 (LWP 57840) (id 6) exited]
+[Thread 0x7ffff48376c0 (LWP 57839) (id 5) exited]
+
+Thread 1 "tudor_cli" hit Breakpoint 1, tudor_open (device=0x7fffffffccd0, usb_dev=0x5555555bece0, state=0x0) at ../libtudor/src/tudor/driver_wudf1.cpp:2114
+2114	{
+base=0x7ffff5039000
+Breakpoint 2 at 0x7ffff506d314
+
+Thread 1 "tudor_cli" hit Breakpoint 2, 0x00007ffff506d314 in ?? ()
+=== CRASH ===
+ctx=0x5555555d48a0
+ctx+0x1c0 = (nil)
+--- who is ctx? check if driver or host pointer ---
+base=0x7ffff5039000  ctx-base=-46912311281504
+--- stack up to find caller ---
+#0  0x00007ffff506d314 in ?? ()
+#1  0x00005555555d48a0 in ?? ()
+#2  0x00007fffffffc940 in ?? ()
+#3  0x00007fffffffc77c in ?? ()
+#4  0x00007fffffffc7a8 in ?? ()
+#5  0x00007fffffffc7b0 in ?? ()
+#6  0x00007fffffffc780 in ?? ()
+#7  0x00007fffffffc788 in ?? ()
+--- rbx rdi rsi r8 r9 ---
+rbx            0x0                 0
+rdi            0x44202c            4464684
+rsi            0x7ffff5072c78      140737304276088
+r8             0x7fffffffc7b0      140737488340912
+r9             0x7fffffffc788      140737488340872
+r10            0x7ffff7426500      140737341711616
+r11            0x246               582

+ 81 - 0
work/debug/gdb_cd5.txt

@@ -0,0 +1,81 @@
+Breakpoint 1 at 0x2250
+
+This GDB supports auto-downloading debuginfo from the following URLs:
+  <https://debuginfod.archlinux.org>
+Debuginfod has been disabled.
+To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
+[Thread debugging using libthread_db enabled]
+Using host libthread_db library "/usr/lib/libthread_db.so.1".
+[New Thread 0x7ffff62766c0 (LWP 59808) (id 2)]
+[New Thread 0x7ffff5a756c0 (LWP 59809) (id 3)]
+[New Thread 0x7ffff50386c0 (LWP 59811) (id 4)]
+[New Thread 0x7ffff48376c0 (LWP 59812) (id 5)]
+[New Thread 0x7fffe7fff6c0 (LWP 59813) (id 6)]
+[New Thread 0x7fffe77fe6c0 (LWP 59814) (id 7)]
+[Thread 0x7fffe77fe6c0 (LWP 59814) (id 7) exited]
+[Thread 0x7fffe7fff6c0 (LWP 59813) (id 6) exited]
+[Thread 0x7ffff48376c0 (LWP 59812) (id 5) exited]
+
+Thread 1 "tudor_cli" hit Breakpoint 1, tudor_open (device=0x7fffffffccd0, usb_dev=0x5555555bece0, state=0x0) at ../libtudor/src/tudor/driver_wudf1.cpp:2117
+2117	{
+BASE=0x7ffff5039000
+Breakpoint 2 at 0x7ffff506d314
+
+Thread 1 "tudor_cli" hit Breakpoint 2, 0x00007ffff506d314 in ?? ()
+=== CRASH INSTRUCTION HIT ===
+base=0x7ffff5039000
+rsp            0x7fffffffc730      0x7fffffffc730
+rbp            0x7fffffffc990      0x7fffffffc990
+rax            0x0                 0
+rbx            0x0                 0
+rcx            0x0                 0
+rdx            0x8                 8
+rsi            0x7ffff5072c78      140737304276088
+rdi            0x44202c            4464684
+r8             0x7fffffffc7b0      140737488340912
+r9             0x7fffffffc788      140737488340872
+--- rsp frame ---
+0x7fffffffc730:	0x00005555555d48a0	0x00007fffffffc940
+0x7fffffffc740:	0x00007fffffffc77c	0x00007fffffffc7a8
+0x7fffffffc750:	0x00007fffffffc7b0	0x00007fffffffc780
+0x7fffffffc760:	0x00007fffffffc788	0x00007ffff725c2ac
+0x7fffffffc770:	0x0000000000000000	0x00442004ffffc7c0
+0x7fffffffc780:	0x00007fffffffcba0	0x0000000000000008
+0x7fffffffc790:	0x00007fffffffc940	0x00007fff800703e5
+0x7fffffffc7a0:	0x00007ffff7426808	0x0000000000000000
+0x7fffffffc7b0:	0x0000000000000000	0x00007ffff5154428
+0x7fffffffc7c0:	0x0000000000000000	0x00005555555d09a0
+0x7fffffffc7d0:	0x00007ffff741a580	0x00007ffff506fd0e
+0x7fffffffc7e0:	0x00005555555d48a0	0x00007fffffffc940
+--- ctx=[rsp+0xb0], fields ---
+ctx=0x5555555d48a0
+0x5555555d48a0:	0x00007ffff5152e08	0x00007ffff5152ea0
+0x5555555d48b0:	0x00007ffff5152ee0	0x00007ffff5152f10
+0x5555555d48c0:	0x00007ffff5152f40	0x0000555500000004
+0x5555555d48d0:	0x0000000000000000	0x0000000000000000
+0x5555555d48e0:	0x0000000000000000	0x00005555555d4b40
+0x5555555d48f0:	0x0000000000000000	0x0000000000000001
+0x5555555d4900:	0x0000006400000000	0x0000555500000000
+0x5555555d4910:	0x00005555555d4fb0	0x0000000000000082
+0x5555555d4920:	0x0000000000000000	0x00000000000000a1
+0x5555555d4930:	0x00005555555d3c10	0x00007ffff7419b58
+0x5555555d4940:	0x0000000000000000	0x0000000000000081
+0x5555555d4950:	0x00005555555dfcc0	0x00007ffff7419b38
+0x5555555d4960:	0x00007fff00000000	0x0000000000000000
+0x5555555d4970:	0x0000000000000000	0x00005555555d4b70
+0x5555555d4980:	0x00005555555c0400	0x0000000000000000
+0x5555555d4990:	0x0000000000000001	0x00005555555d8950
+0x5555555d49a0:	0x0000000000000000	0x00005555555d89b0
+0x5555555d49b0:	0x0000000000000000	0x0000000000000000
+0x5555555d49c0:	0x0000000000000000	0x0000000000000000
+0x5555555d49d0:	0x0000000000000000	0x0000000000000000
+0x5555555d49e0:	0x0000000000000000	0x0000000100000000
+0x5555555d49f0:	0x0000000000000000	0x0000000100000000
+0x5555555d4a00:	0x0000000500000001	0x00005555555f20c0
+0x5555555d4a10:	0x0000000000000000	0x0000000000000000
+0x5555555d4a20:	0x0000000000000000	0x0000000000000000
+0x5555555d4a30:	0x00005555555d88d0	0x0000000000000000
+0x5555555d4a40:	0x0000000000000000	0x00005555555e2050
+0x5555555d4a50:	0x00005555555ed520	0x00005555555d48c0
+0x5555555d4a60:	0x0000000000000000	0x0000000000000020
+0x5555555d4a70:	0x0000000100000001	0x0000000000000000

+ 38 - 0
work/debug/gdb_cd6.txt

@@ -0,0 +1,38 @@
+Breakpoint 1 at 0x2250
+
+This GDB supports auto-downloading debuginfo from the following URLs:
+  <https://debuginfod.archlinux.org>
+Debuginfod has been disabled.
+To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
+[Thread debugging using libthread_db enabled]
+Using host libthread_db library "/usr/lib/libthread_db.so.1".
+[New Thread 0x7ffff62766c0 (LWP 59926) (id 2)]
+[New Thread 0x7ffff5a756c0 (LWP 59927) (id 3)]
+[New Thread 0x7ffff50386c0 (LWP 59929) (id 4)]
+[New Thread 0x7ffff48376c0 (LWP 59930) (id 5)]
+[New Thread 0x7fffe7fff6c0 (LWP 59931) (id 6)]
+[New Thread 0x7fffe77fe6c0 (LWP 59932) (id 7)]
+[Thread 0x7fffe77fe6c0 (LWP 59932) (id 7) exited]
+[Thread 0x7fffe7fff6c0 (LWP 59931) (id 6) exited]
+[Thread 0x7ffff48376c0 (LWP 59930) (id 5) exited]
+
+Thread 1 "tudor_cli" hit Breakpoint 1, tudor_open (device=0x7fffffffccd0, usb_dev=0x5555555bece0, state=0x0) at ../libtudor/src/tudor/driver_wudf1.cpp:2117
+2117	{
+=== watching factory 0x163f0 and write 0x6ea49 during capture ===
+Breakpoint 2 at 0x7ffff504f3f0
+Breakpoint 3 at 0x7ffff50a7a49
+Breakpoint 4 at 0x7ffff50529d2
+
+Thread 1 "tudor_cli" received signal SIGSEGV, Segmentation fault.
+0x00007ffff506d314 in ?? ()
+=== bp1 hit: factory or write ===
+rip            0x7ffff506d314      0x7ffff506d314
+rcx            0x0                 0
+rdx            0x8                 8
+#0  0x00007ffff506d314 in ?? ()
+#1  0x00005555555b2a20 in ?? ()
+#2  0x00007fffffffc940 in ?? ()
+#3  0x00007fffffffc77c in ?? ()
+/tmp/opencode/gdb_cd6.txt:18: Error in sourced command file:
+Couldn't get registers: No such process.
+[Thread 0x7ffff7426500 (LWP 59923) (id 1) exited]

+ 44 - 0
work/debug/gdb_cd7.txt

@@ -0,0 +1,44 @@
+Breakpoint 1 at 0x2250
+
+This GDB supports auto-downloading debuginfo from the following URLs:
+  <https://debuginfod.archlinux.org>
+Debuginfod has been disabled.
+To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
+[Thread debugging using libthread_db enabled]
+Using host libthread_db library "/usr/lib/libthread_db.so.1".
+[New Thread 0x7ffff62766c0 (LWP 60541) (id 2)]
+[New Thread 0x7ffff5a756c0 (LWP 60542) (id 3)]
+[New Thread 0x7ffff50386c0 (LWP 60555) (id 4)]
+[New Thread 0x7ffff48376c0 (LWP 60556) (id 5)]
+[New Thread 0x7fffe7fff6c0 (LWP 60557) (id 6)]
+[New Thread 0x7fffe77fe6c0 (LWP 60558) (id 7)]
+[Thread 0x7fffe77fe6c0 (LWP 60558) (id 7) exited]
+[Thread 0x7fffe7fff6c0 (LWP 60557) (id 6) exited]
+[Thread 0x7ffff48376c0 (LWP 60556) (id 5) exited]
+
+Thread 1 "tudor_cli" hit Breakpoint 1, tudor_open (device=0x7fffffffccd0, usb_dev=0x5555555bece0, state=0x0) at ../libtudor/src/tudor/driver_wudf1.cpp:2117
+2117	{
+Breakpoint 2 at 0x7ffff506d14c
+
+Thread 1 "tudor_cli" hit Breakpoint 2, 0x00007ffff506d14c in ?? ()
+=== ENTER 0x3414c ===
+rcx            0x5555555b2a20      93824992619040
+rdx            0x7fffffffc940      140737488341312
+r8             0x7fffffffc940      140737488341312
+r9             0x44202c            4464684
+--- object graph: rcx is the driver wrapper ---
+0x5555555b2a20:	0x00007ffff5152e08	0x00007ffff5152ea0
+0x5555555b2a30:	0x00007ffff5152ee0	0x00007ffff5152f10
+0x5555555b2a40:	0x00007ffff5152f40	0x8200000000000004
+0x5555555b2a50:	0x0000000000000000	0x0000000000000000
+0x5555555b2a60:	0x0000000000000000	0x00005555555b2cc0
+0x5555555b2a70:	0x0000000000000000	0x0000000000000001
+--- and its +0x1c0 ---
+ctx=0x5555555b2a20 [ctx+0x1c0]=(nil)
+--- caller was ---
+#0  0x00007ffff506d14c in ?? ()
+#1  0x00007ffff506fd0e in ?? ()
+#2  0x00007ffff6cc1168 in ?? ()
+#3  0x00005555555b22b0 in ?? ()
+#4  0x00007fffffffc820 in ?? ()
+#5  0x00007ffff728deb6 in ?? () from /usr/lib/libc.so.6

+ 26 - 0
work/debug/gdb_corrupt.txt

@@ -0,0 +1,26 @@
+No source file named driver_wudf1.cpp.
+
+This GDB supports auto-downloading debuginfo from the following URLs:
+  <https://debuginfod.archlinux.org>
+Debuginfod has been disabled.
+To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
+[Thread debugging using libthread_db enabled]
+Using host libthread_db library "/usr/lib/libthread_db.so.1".
+[New Thread 0x7ffff62766c0 (LWP 33201) (id 2)]
+[New Thread 0x7ffff5a756c0 (LWP 33202) (id 3)]
+[New Thread 0x7ffff50386c0 (LWP 33204) (id 4)]
+[New Thread 0x7ffff48376c0 (LWP 33205) (id 5)]
+[New Thread 0x7fffe7fff6c0 (LWP 33206) (id 6)]
+[New Thread 0x7fffe77fe6c0 (LWP 33207) (id 7)]
+[Thread 0x7fffe77fe6c0 (LWP 33207) (id 7) exited]
+[Thread 0x7fffe7fff6c0 (LWP 33206) (id 6) exited]
+[Thread 0x7ffff48376c0 (LWP 33205) (id 5) exited]
+
+Thread 1 "tudor_cli" received signal SIGSEGV, Segmentation fault.
+0x0000000300000001 in ?? ()
+tudor_sensor_adapter = 0x7ffff6cc1180
+Hardware watchpoint 1: *(long*)(0x7ffff6cc1200)
+watchpoint set on +0x80
+/tmp/opencode/gdb10.txt:10: Error in sourced command file:
+Couldn't get registers: No such process.
+[Thread 0x7ffff7428500 (LWP 33198) (id 1) exited]

+ 37 - 0
work/debug/gdb_corrupt2.txt

@@ -0,0 +1,37 @@
+Breakpoint 1 at 0x2250
+
+This GDB supports auto-downloading debuginfo from the following URLs:
+  <https://debuginfod.archlinux.org>
+Debuginfod has been disabled.
+To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
+[Thread debugging using libthread_db enabled]
+Using host libthread_db library "/usr/lib/libthread_db.so.1".
+[New Thread 0x7ffff62766c0 (LWP 33557) (id 2)]
+[New Thread 0x7ffff5a756c0 (LWP 33558) (id 3)]
+[New Thread 0x7ffff50386c0 (LWP 33578) (id 4)]
+[New Thread 0x7ffff48376c0 (LWP 33579) (id 5)]
+[New Thread 0x7fffdffff6c0 (LWP 33580) (id 6)]
+[New Thread 0x7fffdf7fe6c0 (LWP 33581) (id 7)]
+[Thread 0x7fffdf7fe6c0 (LWP 33581) (id 7) exited]
+[Thread 0x7fffdffff6c0 (LWP 33580) (id 6) exited]
+[Thread 0x7ffff48376c0 (LWP 33579) (id 5) exited]
+
+Thread 1 "tudor_cli" hit Breakpoint 1, tudor_open (device=0x7fffffffccd0, usb_dev=0x5555555bece0, state=0x0) at ../libtudor/src/tudor/driver_wudf1.cpp:1928
+1928	{
+=== in tudor_open, setting watchpoint ===
+tudor_sensor_adapter = 0x7ffff6cc1180
+Hardware watchpoint 2: *(long*)(0x7ffff6cc1200)
+watchpoint set on +0x80
+Hardware watchpoint 3: *(long*)((char*)tudor_sensor_adapter + 0x88)
+Hardware watchpoint 4: *(long*)((char*)tudor_sensor_adapter + 0x90)
+Hardware watchpoint 5: *(long*)((char*)tudor_sensor_adapter + 0x98)
+
+Thread 1 "tudor_cli" received signal SIGSEGV, Segmentation fault.
+0x0000000300000001 in ?? ()
+=== WATCHPOINT HIT: RIP ===
+rip            0x300000001         0x300000001
+#0  0x0000000300000001 in ?? ()
+#1  0x00007ffff7c525aa in tudor_open (device=0x7fffffffccd0, usb_dev=0x5555555bece0, state=0x0) at ../libtudor/src/tudor/driver_wudf1.cpp:1975
+#2  0x000055555555750d in main (argc=2, argv=0x7fffffffcea8) at ../cli/src/main.c:198
+   0x2fffffff9:	/tmp/opencode/gdb11.txt:19: Error in sourced command file:
+Cannot access memory at address 0x2fffffff9

+ 34 - 0
work/debug/gdb_corrupt3.txt

@@ -0,0 +1,34 @@
+Breakpoint 1 at 0x2250
+
+This GDB supports auto-downloading debuginfo from the following URLs:
+  <https://debuginfod.archlinux.org>
+Debuginfod has been disabled.
+To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
+[Thread debugging using libthread_db enabled]
+Using host libthread_db library "/usr/lib/libthread_db.so.1".
+[New Thread 0x7ffff62766c0 (LWP 34004) (id 2)]
+[New Thread 0x7ffff5a756c0 (LWP 34005) (id 3)]
+[New Thread 0x7ffff50386c0 (LWP 34007) (id 4)]
+[New Thread 0x7ffff48376c0 (LWP 34008) (id 5)]
+[New Thread 0x7fffe7fff6c0 (LWP 34009) (id 6)]
+[New Thread 0x7fffe77fe6c0 (LWP 34010) (id 7)]
+[Thread 0x7fffe77fe6c0 (LWP 34010) (id 7) exited]
+[Thread 0x7fffe7fff6c0 (LWP 34009) (id 6) exited]
+[Thread 0x7ffff48376c0 (LWP 34008) (id 5) exited]
+
+Thread 1 "tudor_cli" hit Breakpoint 1, tudor_open (device=0x7fffffffccd0, usb_dev=0x5555555bece0, state=0x0) at ../libtudor/src/tudor/driver_wudf1.cpp:1928
+1928	{
+=== setting watchpoints early in tudor_open ===
+tudor_sensor_adapter = 0x7ffff6cc1180
+Hardware watchpoint 2: *(long*)(0x7ffff6cc1200)
+watchpoint set on +0x80
+Hardware watchpoint 3: *(long*)((char*)tudor_sensor_adapter + 0x88)
+Hardware watchpoint 4: *(long*)((char*)tudor_sensor_adapter + 0x90)
+
+Thread 1 "tudor_cli" received signal SIGSEGV, Segmentation fault.
+0x0000000300000001 in ?? ()
+=== HIT ===
+rip            0x300000001         0x300000001
+#0  0x0000000300000001 in ?? ()
+#1  0x00007ffff7c52605 in tudor_open (device=0x7fffffffccd0, usb_dev=0x5555555bece0, state=0x0) at ../libtudor/src/tudor/driver_wudf1.cpp:1979
+#2  0x000055555555750d in main (argc=2, argv=0x7fffffffcea8) at ../cli/src/main.c:198

+ 35 - 0
work/debug/gdb_corrupt4.txt

@@ -0,0 +1,35 @@
+Breakpoint 1 at 0x2250
+
+This GDB supports auto-downloading debuginfo from the following URLs:
+  <https://debuginfod.archlinux.org>
+Debuginfod has been disabled.
+To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
+[Thread debugging using libthread_db enabled]
+Using host libthread_db library "/usr/lib/libthread_db.so.1".
+[New Thread 0x7ffff62766c0 (LWP 34304) (id 2)]
+[New Thread 0x7ffff5a756c0 (LWP 34305) (id 3)]
+[New Thread 0x7ffff50386c0 (LWP 34308) (id 4)]
+[New Thread 0x7ffff48376c0 (LWP 34309) (id 5)]
+[New Thread 0x7fffdffff6c0 (LWP 34310) (id 6)]
+[New Thread 0x7fffdf7fe6c0 (LWP 34311) (id 7)]
+[Thread 0x7fffdf7fe6c0 (LWP 34311) (id 7) exited]
+[Thread 0x7fffdffff6c0 (LWP 34310) (id 6) exited]
+[Thread 0x7ffff48376c0 (LWP 34309) (id 5) exited]
+
+Thread 1 "tudor_cli" hit Breakpoint 1, tudor_open (device=0x7fffffffccd0, usb_dev=0x5555555bece0, state=0x0) at ../libtudor/src/tudor/driver_wudf1.cpp:1928
+1928	{
+1932	    device->state = state ? *state : (struct tudor_device_state) {0};
+1933	    device->enrolling = false;
+1934	    cant_fail_ret(pthread_mutex_init(&device->records_lock, NULL));
+tudor_sensor_adapter = 0x7ffff6cc1180
+Hardware watchpoint 2: *(long*)(0x7ffff6cc1200)
+watchpoint set on +0x80
+Hardware watchpoint 3: *(long*)((char*)tudor_sensor_adapter + 0x88)
+
+Thread 1 "tudor_cli" received signal SIGSEGV, Segmentation fault.
+0x0000000300000001 in ?? ()
+=== HIT ===
+rip            0x300000001         0x300000001
+#0  0x0000000300000001 in ?? ()
+#1  0x00007ffff7c52605 in tudor_open (device=0x7fffffffccd0, usb_dev=0x5555555bece0, state=0x0) at ../libtudor/src/tudor/driver_wudf1.cpp:1979
+#2  0x000055555555750d in main (argc=2, argv=0x7fffffffcea8) at ../cli/src/main.c:198

+ 30 - 0
work/debug/gdb_corrupt5.txt

@@ -0,0 +1,30 @@
+Breakpoint 1 at 0x2250
+
+This GDB supports auto-downloading debuginfo from the following URLs:
+  <https://debuginfod.archlinux.org>
+Debuginfod has been disabled.
+To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
+[Thread debugging using libthread_db enabled]
+Using host libthread_db library "/usr/lib/libthread_db.so.1".
+[New Thread 0x7ffff62766c0 (LWP 34564) (id 2)]
+[New Thread 0x7ffff5a756c0 (LWP 34565) (id 3)]
+[New Thread 0x7ffff50386c0 (LWP 34567) (id 4)]
+[New Thread 0x7ffff48376c0 (LWP 34568) (id 5)]
+[New Thread 0x7fffe7fff6c0 (LWP 34569) (id 6)]
+[New Thread 0x7fffe77fe6c0 (LWP 34570) (id 7)]
+[Thread 0x7fffe77fe6c0 (LWP 34570) (id 7) exited]
+[Thread 0x7fffe7fff6c0 (LWP 34569) (id 6) exited]
+[Thread 0x7ffff48376c0 (LWP 34568) (id 5) exited]
+
+Thread 1 "tudor_cli" hit Breakpoint 1, tudor_open (device=0x7fffffffccd0, usb_dev=0x5555555bece0, state=0x0) at ../libtudor/src/tudor/driver_wudf1.cpp:1928
+1928	{
+=== inside tudor_open, value check begins ===
+slot=0x7ffff6cc1200 now=0x7ffff6c9a0b0
+Breakpoint 2 at 0x7ffff7c52588: file ../libtudor/src/tudor/driver_wudf1.cpp, line 1976.
+
+Thread 1 "tudor_cli" hit Breakpoint 2, tudor_open (device=0x7fffffffccd0, usb_dev=0x5555555bece0, state=0x0) at ../libtudor/src/tudor/driver_wudf1.cpp:1976
+1976	    printf("PRE-CALL sensor adapter: pipeline_init=%p cleanup=%p activate=%p deactivate=%p\n",
+=== AT LINE 1975 (just before PipelineInit call) ===
+slot value now = 0x7ffff6c9a0b0
+0x7ffff6cc1200:	0x00007ffff6c9a0b0	0x00007ffff6c9a2f0
+0x7ffff6cc1210:	0x00007ffff6c9a5b0	0x0000000000000000

+ 21 - 0
work/debug/gdb_crash_dump.txt

@@ -0,0 +1,21 @@
+
+This GDB supports auto-downloading debuginfo from the following URLs:
+  <https://debuginfod.archlinux.org>
+Debuginfod has been disabled.
+To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
+[Thread debugging using libthread_db enabled]
+Using host libthread_db library "/usr/lib/libthread_db.so.1".
+[New Thread 0x7ffff62766c0 (LWP 54067) (id 2)]
+[New Thread 0x7ffff5a756c0 (LWP 54068) (id 3)]
+[New Thread 0x7ffff50386c0 (LWP 54070) (id 4)]
+[New Thread 0x7ffff48376c0 (LWP 54071) (id 5)]
+[New Thread 0x7fffe7fff6c0 (LWP 54072) (id 6)]
+[New Thread 0x7fffe77fe6c0 (LWP 54073) (id 7)]
+[Thread 0x7fffe77fe6c0 (LWP 54073) (id 7) exited]
+[Thread 0x7fffe7fff6c0 (LWP 54072) (id 6) exited]
+[Thread 0x7ffff48376c0 (LWP 54071) (id 5) exited]
+Exception ignored on threading shutdown:
+Traceback (most recent call last):
+  File "/usr/lib/python3.14/threading.py", line 1559, in _shutdown
+    def _shutdown():
+KeyboardInterrupt: 

+ 219 - 0
work/debug/gdb_deep.txt

@@ -0,0 +1,219 @@
+
+This GDB supports auto-downloading debuginfo from the following URLs:
+  <https://debuginfod.archlinux.org>
+Debuginfod has been disabled.
+To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
+[Thread debugging using libthread_db enabled]
+Using host libthread_db library "/usr/lib/libthread_db.so.1".
+[New Thread 0x7ffff62766c0 (LWP 27632) (id 2)]
+[New Thread 0x7ffff5a756c0 (LWP 27633) (id 3)]
+[New Thread 0x7ffff50386c0 (LWP 27635) (id 4)]
+[New Thread 0x7ffff48376c0 (LWP 27636) (id 5)]
+[New Thread 0x7fffe7fff6c0 (LWP 27637) (id 6)]
+[New Thread 0x7fffe77fe6c0 (LWP 27638) (id 7)]
+[Thread 0x7fffe77fe6c0 (LWP 27638) (id 7) exited]
+[Thread 0x7fffe7fff6c0 (LWP 27637) (id 6) exited]
+[Thread 0x7ffff48376c0 (LWP 27636) (id 5) exited]
+
+Thread 1 "tudor_cli" received signal SIGSEGV, Segmentation fault.
+0x00007ffff5138c33 in ?? ()
+   0x7ffff5138c2b:	add    -0x78(%rcx),%al
+   0x7ffff5138c2e:	add    -0x75(%rcx),%cl
+   0x7ffff5138c31:	ret
+   0x7ffff5138c32:	ret
+#0  0x00007ffff5138c33 in ?? ()
+#1  0x00007ffff51132e9 in ?? ()
+#2  0x0000000000000001 in ?? ()
+#3  0x00007ffff5072c78 in ?? ()
+#4  0xa598a580a578a570 in ?? ()
+#5  0x00007ffff50b972d in ?? ()
+#6  0x00005555555bfc50 in ?? ()
+#7  0x00007ffff50806f6 in ?? ()
+#8  0x00005555555d3e30 in ?? ()
+#9  0x00ff00fd00fb00f9 in ?? ()
+#10 0x0000000000000002 in ?? ()
+#11 0xaec8aec0aeb8aeb0 in ?? ()
+#12 0x0000000000000000 in ?? ()
+process 27629
+Mapped address spaces:
+
+Start Addr         End Addr           Size               Offset             Perms File 
+0x0000555555554000 0x0000555555556000 0x2000             0x0                r--p  /home/nebulon/projects/fingerprint/work/synaTudor/build/cli/tudor_cli 
+0x0000555555556000 0x000055555555a000 0x4000             0x2000             r-xp  /home/nebulon/projects/fingerprint/work/synaTudor/build/cli/tudor_cli 
+0x000055555555a000 0x000055555555c000 0x2000             0x6000             r--p  /home/nebulon/projects/fingerprint/work/synaTudor/build/cli/tudor_cli 
+0x000055555555c000 0x000055555555d000 0x1000             0x7000             r--p  /home/nebulon/projects/fingerprint/work/synaTudor/build/cli/tudor_cli 
+0x000055555555d000 0x000055555555e000 0x1000             0x8000             rw-p  /home/nebulon/projects/fingerprint/work/synaTudor/build/cli/tudor_cli 
+0x000055555555e000 0x0000555555601000 0xa3000            0x0                rw-p  [heap] 
+0x00007fffd8000000 0x00007fffd8021000 0x21000            0x0                rw-p   
+0x00007fffd8021000 0x00007fffdc000000 0x3fdf000          0x0                ---p   
+0x00007fffdc000000 0x00007fffdc021000 0x21000            0x0                rw-p   
+0x00007fffdc021000 0x00007fffe0000000 0x3fdf000          0x0                ---p   
+0x00007fffe0000000 0x00007fffe0021000 0x21000            0x0                rw-p   
+0x00007fffe0021000 0x00007fffe4000000 0x3fdf000          0x0                ---p   
+0x00007fffe6ffe000 0x00007fffe8000000 0x1002000          0x0                rw-p   
+0x00007fffe8000000 0x00007fffe8021000 0x21000            0x0                rw-p   
+0x00007fffe8021000 0x00007fffec000000 0x3fdf000          0x0                ---p   
+0x00007fffec000000 0x00007fffec037000 0x37000            0x0                rw-p   
+0x00007fffec037000 0x00007ffff0000000 0x3fc9000          0x0                ---p   
+0x00007ffff0000000 0x00007ffff0021000 0x21000            0x0                rw-p   
+0x00007ffff0021000 0x00007ffff4000000 0x3fdf000          0x0                ---p   
+0x00007ffff4037000 0x00007ffff5039000 0x1002000          0x0                rw-p   
+0x00007ffff5039000 0x00007ffff503a000 0x1000             0x0                r--p   
+0x00007ffff503a000 0x00007ffff5152000 0x118000           0x0                r-xp   
+0x00007ffff5152000 0x00007ffff5208000 0xb6000            0x0                r--p   
+0x00007ffff5208000 0x00007ffff526b000 0x63000            0x0                rw-p   
+0x00007ffff526b000 0x00007ffff5275000 0xa000             0x0                r--p   
+0x00007ffff5275000 0x00007ffff6277000 0x1002000          0x0                rw-p   
+0x00007ffff6277000 0x00007ffff6286000 0xf000             0x0                r--p  /usr/lib/libunistring.so.5.2.1 
+0x00007ffff6286000 0x00007ffff62ca000 0x44000            0xf000             r-xp  /usr/lib/libunistring.so.5.2.1 
+0x00007ffff62ca000 0x00007ffff6459000 0x18f000           0x53000            r--p  /usr/lib/libunistring.so.5.2.1 
+0x00007ffff6459000 0x00007ffff645d000 0x4000             0x1e2000           r--p  /usr/lib/libunistring.so.5.2.1 
+0x00007ffff645d000 0x00007ffff645e000 0x1000             0x1e6000           rw-p  /usr/lib/libunistring.so.5.2.1 
+0x00007ffff645e000 0x00007ffff6465000 0x7000             0x0                r--p  /usr/lib/libp11-kit.so.0.4.11 
+0x00007ffff6465000 0x00007ffff654e000 0xe9000            0x7000             r-xp  /usr/lib/libp11-kit.so.0.4.11 
+0x00007ffff654e000 0x00007ffff65e0000 0x92000            0xf0000            r--p  /usr/lib/libp11-kit.so.0.4.11 
+0x00007ffff65e0000 0x00007ffff65f1000 0x11000            0x181000           r--p  /usr/lib/libp11-kit.so.0.4.11 
+0x00007ffff65f1000 0x00007ffff6600000 0xf000             0x192000           rw-p  /usr/lib/libp11-kit.so.0.4.11 
+0x00007ffff6600000 0x00007ffff661b000 0x1b000            0x0                r--p  /usr/lib/libleancrypto.so.1.9.1 
+0x00007ffff661b000 0x00007ffff677e000 0x163000           0x1b000            r-xp  /usr/lib/libleancrypto.so.1.9.1 
+0x00007ffff677e000 0x00007ffff68af000 0x131000           0x17e000           r--p  /usr/lib/libleancrypto.so.1.9.1 
+0x00007ffff68af000 0x00007ffff68b5000 0x6000             0x2af000           r--p  /usr/lib/libleancrypto.so.1.9.1 
+0x00007ffff68b5000 0x00007ffff68b7000 0x2000             0x2b5000           rw-p  /usr/lib/libleancrypto.so.1.9.1 
+0x00007ffff6959000 0x00007ffff696a000 0x11000            0x0                r--p  /usr/lib/libgmp.so.10.5.0 
+0x00007ffff696a000 0x00007ffff69e8000 0x7e000            0x11000            r-xp  /usr/lib/libgmp.so.10.5.0 
+0x00007ffff69e8000 0x00007ffff69fd000 0x15000            0x8f000            r--p  /usr/lib/libgmp.so.10.5.0 
+0x00007ffff69fd000 0x00007ffff69ff000 0x2000             0xa3000            r--p  /usr/lib/libgmp.so.10.5.0 
+0x00007ffff69ff000 0x00007ffff6a00000 0x1000             0xa5000            rw-p  /usr/lib/libgmp.so.10.5.0 
+0x00007ffff6a00000 0x00007ffff6a25000 0x25000            0x0                r--p  /usr/lib/libgnutls.so.30.42.0 
+0x00007ffff6a25000 0x00007ffff6b8b000 0x166000           0x25000            r-xp  /usr/lib/libgnutls.so.30.42.0 
+0x00007ffff6b8b000 0x00007ffff6c12000 0x87000            0x18b000           r--p  /usr/lib/libgnutls.so.30.42.0 
+0x00007ffff6c12000 0x00007ffff6c24000 0x12000            0x212000           r--p  /usr/lib/libgnutls.so.30.42.0 
+0x00007ffff6c24000 0x00007ffff6c27000 0x3000             0x224000           rw-p  /usr/lib/libgnutls.so.30.42.0 
+0x00007ffff6c27000 0x00007ffff6c2a000 0x3000             0x0                rw-p   
+0x00007ffff6c93000 0x00007ffff6c94000 0x1000             0x0                r--p   
+0x00007ffff6c94000 0x00007ffff6cb6000 0x22000            0x0                r-xp   
+0x00007ffff6cb6000 0x00007ffff6cc1000 0xb000             0x0                r--p   
+0x00007ffff6cc1000 0x00007ffff6cc5000 0x4000             0x0                rw-p   
+0x00007ffff6cc5000 0x00007ffff6cc9000 0x4000             0x0                r--p   
+0x00007ffff6cc9000 0x00007ffff6cd9000 0x10000            0x0                r--p  /usr/lib/libm.so.6 
+0x00007ffff6cd9000 0x00007ffff6d75000 0x9c000            0x10000            r-xp  /usr/lib/libm.so.6 
+0x00007ffff6d75000 0x00007ffff6dfe000 0x89000            0xac000            r--p  /usr/lib/libm.so.6 
+0x00007ffff6dfe000 0x00007ffff6dff000 0x1000             0x134000           r--p  /usr/lib/libm.so.6 
+0x00007ffff6dff000 0x00007ffff6e00000 0x1000             0x135000           rw-p  /usr/lib/libm.so.6 
+0x00007ffff6e00000 0x00007ffff6e9a000 0x9a000            0x0                r--p  /usr/lib/libstdc++.so.6.0.36 
+0x00007ffff6e9a000 0x00007ffff701d000 0x183000           0x9a000            r-xp  /usr/lib/libstdc++.so.6.0.36 
+0x00007ffff701d000 0x00007ffff70bd000 0xa0000            0x21d000           r--p  /usr/lib/libstdc++.so.6.0.36 
+0x00007ffff70bd000 0x00007ffff70ce000 0x11000            0x2bc000           r--p  /usr/lib/libstdc++.so.6.0.36 
+0x00007ffff70ce000 0x00007ffff70cf000 0x1000             0x2cd000           rw-p  /usr/lib/libstdc++.so.6.0.36 
+0x00007ffff70cf000 0x00007ffff70d3000 0x4000             0x0                rw-p   
+0x00007ffff70da000 0x00007ffff70db000 0x1000             0x0                r--p  /usr/lib/gconv/UTF-16.so 
+0x00007ffff70db000 0x00007ffff70dd000 0x2000             0x1000             r-xp  /usr/lib/gconv/UTF-16.so 
+0x00007ffff70dd000 0x00007ffff70de000 0x1000             0x3000             r--p  /usr/lib/gconv/UTF-16.so 
+0x00007ffff70de000 0x00007ffff70df000 0x1000             0x3000             r--p  /usr/lib/gconv/UTF-16.so 
+0x00007ffff70df000 0x00007ffff70e0000 0x1000             0x4000             rw-p  /usr/lib/gconv/UTF-16.so 
+0x00007ffff70e0000 0x00007ffff70e7000 0x7000             0x0                r--s  /usr/lib/gconv/gconv-modules.cache 
+0x00007ffff70e7000 0x00007ffff70eb000 0x4000             0x0                rwxp   
+0x00007ffff70eb000 0x00007ffff70f9000 0xe000             0x0                r--p  /usr/lib/libnettle.so.9.0 
+0x00007ffff70f9000 0x00007ffff712b000 0x32000            0xe000             r-xp  /usr/lib/libnettle.so.9.0 
+0x00007ffff712b000 0x00007ffff7143000 0x18000            0x40000            r--p  /usr/lib/libnettle.so.9.0 
+0x00007ffff7143000 0x00007ffff7146000 0x3000             0x57000            r--p  /usr/lib/libnettle.so.9.0 
+0x00007ffff7146000 0x00007ffff7147000 0x1000             0x5a000            rw-p  /usr/lib/libnettle.so.9.0 
+0x00007ffff7147000 0x00007ffff714f000 0x8000             0x0                r--p  /usr/lib/libhogweed.so.7.0 
+0x00007ffff714f000 0x00007ffff7162000 0x13000            0x8000             r-xp  /usr/lib/libhogweed.so.7.0 
+0x00007ffff7162000 0x00007ffff718b000 0x29000            0x1b000            r--p  /usr/lib/libhogweed.so.7.0 
+0x00007ffff718b000 0x00007ffff718d000 0x2000             0x43000            r--p  /usr/lib/libhogweed.so.7.0 
+0x00007ffff718d000 0x00007ffff718e000 0x1000             0x45000            rw-p  /usr/lib/libhogweed.so.7.0 
+0x00007ffff718e000 0x00007ffff7190000 0x2000             0x0                r--p  /usr/lib/libidn2.so.0.4.0 
+0x00007ffff7190000 0x00007ffff7194000 0x4000             0x2000             r-xp  /usr/lib/libidn2.so.0.4.0 
+0x00007ffff7194000 0x00007ffff71ae000 0x1a000            0x6000             r--p  /usr/lib/libidn2.so.0.4.0 
+0x00007ffff71ae000 0x00007ffff71af000 0x1000             0x1f000            r--p  /usr/lib/libidn2.so.0.4.0 
+0x00007ffff71af000 0x00007ffff71b0000 0x1000             0x20000            rw-p  /usr/lib/libidn2.so.0.4.0 
+0x00007ffff71b0000 0x00007ffff71b5000 0x5000             0x0                r--p  /usr/lib/libudev.so.1.7.15 
+0x00007ffff71b5000 0x00007ffff71e3000 0x2e000            0x5000             r-xp  /usr/lib/libudev.so.1.7.15 
+0x00007ffff71e3000 0x00007ffff71fa000 0x17000            0x33000            r--p  /usr/lib/libudev.so.1.7.15 
+0x00007ffff71fa000 0x00007ffff71ff000 0x5000             0x4a000            r--p  /usr/lib/libudev.so.1.7.15 
+0x00007ffff71ff000 0x00007ffff7200000 0x1000             0x4f000            rw-p  /usr/lib/libudev.so.1.7.15 
+0x00007ffff7200000 0x00007ffff7224000 0x24000            0x0                r--p  /usr/lib/libc.so.6 
+0x00007ffff7224000 0x00007ffff739f000 0x17b000           0x24000            r-xp  /usr/lib/libc.so.6 
+0x00007ffff739f000 0x00007ffff7415000 0x76000            0x19f000           r--p  /usr/lib/libc.so.6 
+0x00007ffff7415000 0x00007ffff7419000 0x4000             0x214000           r--p  /usr/lib/libc.so.6 
+0x00007ffff7419000 0x00007ffff741b000 0x2000             0x218000           rw-p  /usr/lib/libc.so.6 
+0x00007ffff741b000 0x00007ffff7424000 0x9000             0x0                rw-p   
+0x00007ffff7424000 0x00007ffff7425000 0x1000             0x0                rw-p   
+0x00007ffff7425000 0x00007ffff7429000 0x4000             0x0                rw-p   
+0x00007ffff7429000 0x00007ffff742b000 0x2000             0x0                r--p  /usr/lib/libffi.so.8.5.0 
+0x00007ffff742b000 0x00007ffff7433000 0x8000             0x2000             r-xp  /usr/lib/libffi.so.8.5.0 
+0x00007ffff7433000 0x00007ffff7435000 0x2000             0xa000             r--p  /usr/lib/libffi.so.8.5.0 
+0x00007ffff7435000 0x00007ffff7436000 0x1000             0xb000             r--p  /usr/lib/libffi.so.8.5.0 
+0x00007ffff7436000 0x00007ffff7437000 0x1000             0xc000             rw-p  /usr/lib/libffi.so.8.5.0 
+0x00007ffff7437000 0x00007ffff7438000 0x1000             0x0                r--p  /usr/lib/libbrotlicommon.so.1.2.0 
+0x00007ffff7438000 0x00007ffff7439000 0x1000             0x1000             r-xp  /usr/lib/libbrotlicommon.so.1.2.0 
+0x00007ffff7439000 0x00007ffff7458000 0x1f000            0x2000             r--p  /usr/lib/libbrotlicommon.so.1.2.0 
+0x00007ffff7458000 0x00007ffff7459000 0x1000             0x21000            r--p  /usr/lib/libbrotlicommon.so.1.2.0 
+0x00007ffff7459000 0x00007ffff745a000 0x1000             0x22000            rw-p  /usr/lib/libbrotlicommon.so.1.2.0 
+0x00007ffff745a000 0x00007ffff7466000 0xc000             0x0                r--p  /usr/lib/libzstd.so.1.5.7 
+0x00007ffff7466000 0x00007ffff752d000 0xc7000            0xc000             r-xp  /usr/lib/libzstd.so.1.5.7 
+0x00007ffff752d000 0x00007ffff753e000 0x11000            0xd3000            r--p  /usr/lib/libzstd.so.1.5.7 
+0x00007ffff753e000 0x00007ffff753f000 0x1000             0xe4000            r--p  /usr/lib/libzstd.so.1.5.7 
+0x00007ffff753f000 0x00007ffff7540000 0x1000             0xe5000            rw-p  /usr/lib/libzstd.so.1.5.7 
+0x00007ffff7540000 0x00007ffff7541000 0x1000             0x0                r--p  /usr/lib/libbrotlienc.so.1.2.0 
+0x00007ffff7541000 0x00007ffff75ae000 0x6d000            0x1000             r-xp  /usr/lib/libbrotlienc.so.1.2.0 
+0x00007ffff75ae000 0x00007ffff75fe000 0x50000            0x6e000            r--p  /usr/lib/libbrotlienc.so.1.2.0 
+0x00007ffff75fe000 0x00007ffff75ff000 0x1000             0xbd000            r--p  /usr/lib/libbrotlienc.so.1.2.0 
+0x00007ffff75ff000 0x00007ffff7600000 0x1000             0xbe000            rw-p  /usr/lib/libbrotlienc.so.1.2.0 
+0x00007ffff7600000 0x00007ffff7653000 0x53000            0x0                r--p  /usr/lib/libcrypto.so.3 
+0x00007ffff7653000 0x00007ffff7a00000 0x3ad000           0x53000            r-xp  /usr/lib/libcrypto.so.3 
+0x00007ffff7a00000 0x00007ffff7b26000 0x126000           0x400000           r--p  /usr/lib/libcrypto.so.3 
+0x00007ffff7b26000 0x00007ffff7ba4000 0x7e000            0x526000           r--p  /usr/lib/libcrypto.so.3 
+0x00007ffff7ba4000 0x00007ffff7ba7000 0x3000             0x5a4000           rw-p  /usr/lib/libcrypto.so.3 
+0x00007ffff7ba7000 0x00007ffff7bae000 0x7000             0x0                rw-p   
+0x00007ffff7bae000 0x00007ffff7bb0000 0x2000             0x0                r--p  /usr/lib/libtasn1.so.6.6.5 
+0x00007ffff7bb0000 0x00007ffff7bbf000 0xf000             0x2000             r-xp  /usr/lib/libtasn1.so.6.6.5 
+0x00007ffff7bbf000 0x00007ffff7bc2000 0x3000             0x11000            r--p  /usr/lib/libtasn1.so.6.6.5 
+0x00007ffff7bc2000 0x00007ffff7bc3000 0x1000             0x14000            r--p  /usr/lib/libtasn1.so.6.6.5 
+0x00007ffff7bc3000 0x00007ffff7bc4000 0x1000             0x15000            rw-p  /usr/lib/libtasn1.so.6.6.5 
+0x00007ffff7bc4000 0x00007ffff7bc5000 0x1000             0x0                r--p  /usr/lib/libbrotlidec.so.1.2.0 
+0x00007ffff7bc5000 0x00007ffff7bce000 0x9000             0x1000             r-xp  /usr/lib/libbrotlidec.so.1.2.0 
+0x00007ffff7bce000 0x00007ffff7bd1000 0x3000             0xa000             r--p  /usr/lib/libbrotlidec.so.1.2.0 
+0x00007ffff7bd1000 0x00007ffff7bd2000 0x1000             0xc000             r--p  /usr/lib/libbrotlidec.so.1.2.0 
+0x00007ffff7bd2000 0x00007ffff7bd3000 0x1000             0xd000             rw-p  /usr/lib/libbrotlidec.so.1.2.0 
+0x00007ffff7bd3000 0x00007ffff7bd7000 0x4000             0x0                r--p  /usr/lib/libgcc_s.so.1 
+0x00007ffff7bd7000 0x00007ffff7bfa000 0x23000            0x4000             r-xp  /usr/lib/libgcc_s.so.1 
+0x00007ffff7bfa000 0x00007ffff7bfe000 0x4000             0x27000            r--p  /usr/lib/libgcc_s.so.1 
+0x00007ffff7bfe000 0x00007ffff7bff000 0x1000             0x2b000            r--p  /usr/lib/libgcc_s.so.1 
+0x00007ffff7bff000 0x00007ffff7c00000 0x1000             0x2c000            rw-p  /usr/lib/libgcc_s.so.1 
+0x00007ffff7c00000 0x00007ffff7c1f000 0x1f000            0x0                r--p  /home/nebulon/projects/fingerprint/work/synaTudor/build/libtudor/libtudor.so 
+0x00007ffff7c1f000 0x00007ffff7c5e000 0x3f000            0x1f000            r-xp  /home/nebulon/projects/fingerprint/work/synaTudor/build/libtudor/libtudor.so 
+0x00007ffff7c5e000 0x00007ffff7c77000 0x19000            0x5e000            r--p  /home/nebulon/projects/fingerprint/work/synaTudor/build/libtudor/libtudor.so 
+0x00007ffff7c77000 0x00007ffff7c79000 0x2000             0x77000            r--p  /home/nebulon/projects/fingerprint/work/synaTudor/build/libtudor/libtudor.so 
+0x00007ffff7c79000 0x00007ffff7ef1000 0x278000           0x79000            rw-p  /home/nebulon/projects/fingerprint/work/synaTudor/build/libtudor/libtudor.so 
+0x00007ffff7ef1000 0x00007ffff7ef8000 0x7000             0x0                rw-p   
+0x00007ffff7ef8000 0x00007ffff7efb000 0x3000             0x0                r--p  /usr/lib/libz.so.1.3.2 
+0x00007ffff7efb000 0x00007ffff7f0b000 0x10000            0x3000             r-xp  /usr/lib/libz.so.1.3.2 
+0x00007ffff7f0b000 0x00007ffff7f11000 0x6000             0x13000            r--p  /usr/lib/libz.so.1.3.2 
+0x00007ffff7f11000 0x00007ffff7f12000 0x1000             0x18000            r--p  /usr/lib/libz.so.1.3.2 
+0x00007ffff7f12000 0x00007ffff7f13000 0x1000             0x19000            rw-p  /usr/lib/libz.so.1.3.2 
+0x00007ffff7f13000 0x00007ffff7f15000 0x2000             0x0                rw-p   
+0x00007ffff7f15000 0x00007ffff7f19000 0x4000             0x0                r--p  /home/nebulon/projects/fingerprint/work/synaTudor/build/subprojects/cryptbridge/libcryptbridge.so.1.0.0 
+0x00007ffff7f19000 0x00007ffff7f45000 0x2c000            0x4000             r-xp  /home/nebulon/projects/fingerprint/work/synaTudor/build/subprojects/cryptbridge/libcryptbridge.so.1.0.0 
+0x00007ffff7f45000 0x00007ffff7f5f000 0x1a000            0x30000            r--p  /home/nebulon/projects/fingerprint/work/synaTudor/build/subprojects/cryptbridge/libcryptbridge.so.1.0.0 
+0x00007ffff7f5f000 0x00007ffff7f60000 0x1000             0x49000            r--p  /home/nebulon/projects/fingerprint/work/synaTudor/build/subprojects/cryptbridge/libcryptbridge.so.1.0.0 
+0x00007ffff7f60000 0x00007ffff7f61000 0x1000             0x4a000            rw-p  /home/nebulon/projects/fingerprint/work/synaTudor/build/subprojects/cryptbridge/libcryptbridge.so.1.0.0 
+0x00007ffff7f61000 0x00007ffff7f65000 0x4000             0x0                r--p  /usr/lib/libusb-1.0.so.0.6.0 
+0x00007ffff7f65000 0x00007ffff7f76000 0x11000            0x4000             r-xp  /usr/lib/libusb-1.0.so.0.6.0 
+0x00007ffff7f76000 0x00007ffff7f7f000 0x9000             0x15000            r--p  /usr/lib/libusb-1.0.so.0.6.0 
+0x00007ffff7f7f000 0x00007ffff7f80000 0x1000             0x1e000            r--p  /usr/lib/libusb-1.0.so.0.6.0 
+0x00007ffff7f80000 0x00007ffff7f81000 0x1000             0x1f000            rw-p  /usr/lib/libusb-1.0.so.0.6.0 
+0x00007ffff7f81000 0x00007ffff7f83000 0x2000             0x0                rw-p   
+0x00007ffff7f83000 0x00007ffff7fb6000 0x33000            0x0                r--p  /etc/ld.so.cache 
+0x00007ffff7fb6000 0x00007ffff7fba000 0x4000             0x0                r--p  [vvar] 
+0x00007ffff7fba000 0x00007ffff7fbc000 0x2000             0x0                r--p  [vvar_vclock] 
+0x00007ffff7fbc000 0x00007ffff7fbe000 0x2000             0x0                r-xp  [vdso] 
+0x00007ffff7fbe000 0x00007ffff7fbf000 0x1000             0x0                r--p  /usr/lib/ld-linux-x86-64.so.2 
+0x00007ffff7fbf000 0x00007ffff7fec000 0x2d000            0x1000             r-xp  /usr/lib/ld-linux-x86-64.so.2 
+0x00007ffff7fec000 0x00007ffff7ffb000 0xf000             0x2e000            r--p  /usr/lib/ld-linux-x86-64.so.2 
+0x00007ffff7ffb000 0x00007ffff7ffd000 0x2000             0x3d000            r--p  /usr/lib/ld-linux-x86-64.so.2 
+0x00007ffff7ffd000 0x00007ffff7ffe000 0x1000             0x3f000            rw-p  /usr/lib/ld-linux-x86-64.so.2 
+0x00007ffff7ffe000 0x00007ffff7fff000 0x1000             0x0                rw-p   
+0x00007ffffffdd000 0x00007ffffffff000 0x22000            0x0                rw-p  [stack] 
+0xffffffffff600000 0xffffffffff601000 0x1000             0x0                --xp  [vsyscall] 

+ 35 - 0
work/debug/gdb_final.txt

@@ -0,0 +1,35 @@
+Breakpoint 1 at 0x2250
+
+This GDB supports auto-downloading debuginfo from the following URLs:
+  <https://debuginfod.archlinux.org>
+Debuginfod has been disabled.
+To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
+[Thread debugging using libthread_db enabled]
+Using host libthread_db library "/usr/lib/libthread_db.so.1".
+[New Thread 0x7ffff62766c0 (LWP 61909) (id 2)]
+[New Thread 0x7ffff5a756c0 (LWP 61910) (id 3)]
+[New Thread 0x7ffff50386c0 (LWP 61913) (id 4)]
+[New Thread 0x7ffff48376c0 (LWP 61914) (id 5)]
+[New Thread 0x7fffe7fff6c0 (LWP 61915) (id 6)]
+[New Thread 0x7fffe77fe6c0 (LWP 61916) (id 7)]
+[Thread 0x7fffe77fe6c0 (LWP 61916) (id 7) exited]
+[Thread 0x7fffe7fff6c0 (LWP 61915) (id 6) exited]
+[Thread 0x7ffff48376c0 (LWP 61914) (id 5) exited]
+
+Thread 1 "tudor_cli" hit Breakpoint 1, tudor_open (device=0x7fffffffccd0, usb_dev=0x5555555bece0, state=0x0) at ../libtudor/src/tudor/driver_wudf1.cpp:2149
+2149	{
+MyRequest vtable at 0x7ffff7c7ac58
+0x7ffff7c7ac58 <_ZTV9MyRequest>:	0x0000000000000000	0x00007ffff7c7b798
+0x7ffff7c7ac68 <_ZTV9MyRequest+16>:	0x00007ffff7c55fac	0x00007ffff7c560f8
+0x7ffff7c7ac78 <_ZTV9MyRequest+32>:	0x00007ffff7c5618c	0x00007ffff7c56220
+0x7ffff7c7ac88 <_ZTV9MyRequest+48>:	0x00007ffff7c562b4	0x00007ffff7c56368
+slot 7 (+0x38) = 0x7ffff7c56368
+slot 3 (+0x18) = 0x7ffff7c560f8
+slot 16 (+0x80) = 0x7ffff7c569f6
+slot 17 (+0x88) = 0x7ffff7c56ac8
+slot 18 (+0x90) = 0x7ffff7c56b9a
+=== resolve symbols ===
+MyRequest::RetrieveContext(void**) in section .text of /home/nebulon/projects/fingerprint/work/synaTudor/build/cli/../libtudor/libtudor.so
+MyRequest::GetReadParameters(unsigned long*, long long*, unsigned int*) in section .text of /home/nebulon/projects/fingerprint/work/synaTudor/build/cli/../libtudor/libtudor.so
+MyRequest::GetWriteParameters(unsigned long*, long long*, unsigned int*) in section .text of /home/nebulon/projects/fingerprint/work/synaTudor/build/cli/../libtudor/libtudor.so
+MyRequest::GetDeviceIoControlParameters(unsigned int*, unsigned long*, unsigned long*) in section .text of /home/nebulon/projects/fingerprint/work/synaTudor/build/cli/../libtudor/libtudor.so

+ 20 - 0
work/debug/gdb_final2.txt

@@ -0,0 +1,20 @@
+Function "CreateIoQueue" not defined.
+Function "ConfigureRequestDispatching" not defined.
+Function "AssignDeviceInterfaceState" not defined.
+Function "CreateDeviceInterface" not defined.
+
+This GDB supports auto-downloading debuginfo from the following URLs:
+  <https://debuginfod.archlinux.org>
+Debuginfod has been disabled.
+To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
+[Thread debugging using libthread_db enabled]
+Using host libthread_db library "/usr/lib/libthread_db.so.1".
+[New Thread 0x7ffff62766c0 (LWP 62761) (id 2)]
+[New Thread 0x7ffff5a756c0 (LWP 62762) (id 3)]
+[New Thread 0x7ffff50386c0 (LWP 62764) (id 4)]
+[New Thread 0x7ffff48376c0 (LWP 62765) (id 5)]
+[New Thread 0x7fffe7fff6c0 (LWP 62766) (id 6)]
+[New Thread 0x7fffe77fe6c0 (LWP 62767) (id 7)]
+[Thread 0x7fffe77fe6c0 (LWP 62767) (id 7) exited]
+[Thread 0x7fffe7fff6c0 (LWP 62766) (id 6) exited]
+[Thread 0x7ffff48376c0 (LWP 62765) (id 5) exited]

+ 20 - 0
work/debug/gdb_final3.txt

@@ -0,0 +1,20 @@
+Function "MyDevice::CreateIoQueue" not defined.
+Function "MyDevice::ConfigureRequestDispatching" not defined.
+Function "MyDevice::CreateDeviceInterface" not defined.
+Function "MyDevice::AssignDeviceInterfaceState" not defined.
+
+This GDB supports auto-downloading debuginfo from the following URLs:
+  <https://debuginfod.archlinux.org>
+Debuginfod has been disabled.
+To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
+[Thread debugging using libthread_db enabled]
+Using host libthread_db library "/usr/lib/libthread_db.so.1".
+[New Thread 0x7ffff62766c0 (LWP 63464) (id 2)]
+[New Thread 0x7ffff5a756c0 (LWP 63465) (id 3)]
+[New Thread 0x7ffff50386c0 (LWP 63467) (id 4)]
+[New Thread 0x7ffff48376c0 (LWP 63468) (id 5)]
+[New Thread 0x7fffe7fff6c0 (LWP 63469) (id 6)]
+[New Thread 0x7fffe77fe6c0 (LWP 63470) (id 7)]
+[Thread 0x7fffe77fe6c0 (LWP 63470) (id 7) exited]
+[Thread 0x7fffe7fff6c0 (LWP 63469) (id 6) exited]
+[Thread 0x7ffff48376c0 (LWP 63468) (id 5) exited]

+ 51 - 0
work/debug/gdb_final4.txt

@@ -0,0 +1,51 @@
+Function "MyDevice::CreateIoQueue" not defined.
+Breakpoint 1 (MyDevice::CreateIoQueue) pending.
+Function "MyDevice::ConfigureRequestDispatching" not defined.
+Breakpoint 2 (MyDevice::ConfigureRequestDispatching) pending.
+Function "MyDevice::CreateDeviceInterface" not defined.
+Breakpoint 3 (MyDevice::CreateDeviceInterface) pending.
+Function "MyDevice::AssignDeviceInterfaceState" not defined.
+Breakpoint 4 (MyDevice::AssignDeviceInterfaceState) pending.
+Function "MyQueue::ConfigureRequestDispatching" not defined.
+Breakpoint 5 (MyQueue::ConfigureRequestDispatching) pending.
+
+This GDB supports auto-downloading debuginfo from the following URLs:
+  <https://debuginfod.archlinux.org>
+Debuginfod has been disabled.
+To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
+[Thread debugging using libthread_db enabled]
+Using host libthread_db library "/usr/lib/libthread_db.so.1".
+[New Thread 0x7ffff62766c0 (LWP 64395) (id 2)]
+[New Thread 0x7ffff5a756c0 (LWP 64396) (id 3)]
+
+Thread 1 "tudor_cli" hit Breakpoint 1, MyDevice::CreateIoQueue (this=0x5555555b2cf0, pCallbackInterface=0x5555555c0450, bDefaultQueue=0, DispatchType=WdfIoQueueDispatchParallel, bPowerManaged=0, bAllowZeroLengthRequests=0, ppIoQueue=0x7fffffffcab0) at ../libtudor/src/tudor/driver_wudf1.cpp:1281
+1281	            printf("MyDevice::CreateIoQueue\r\n");
+=== HIT 1 ===
+#0  MyDevice::CreateIoQueue (this=0x5555555b2cf0, pCallbackInterface=0x5555555c0450, bDefaultQueue=0, DispatchType=WdfIoQueueDispatchParallel, bPowerManaged=0, bAllowZeroLengthRequests=0, ppIoQueue=0x7fffffffcab0) at ../libtudor/src/tudor/driver_wudf1.cpp:1281
+#1  0x00007ffff5070354 in ?? ()
+#2  0x00005555555b2cf0 in ?? ()
+#3  0x00005555555c0450 in ?? ()
+#4  0x00007fff00000000 in ?? ()
+#5  0x0000000000000002 in ?? ()
+#6  0x0000000000000000 in ?? ()
+
+Thread 1 "tudor_cli" hit Breakpoint 2, MyDevice::ConfigureRequestDispatching (this=0x5555555b2cf0, pQueue=0x5555555bf0f0, RequestType=WdfRequestTypeQueryInformation, Forward=1) at ../libtudor/src/tudor/driver_wudf1.cpp:1383
+1383	            printf("MyDevice::ConfigureRequestDispatching\r\n");
+=== HIT 2 ===
+#0  MyDevice::ConfigureRequestDispatching (this=0x5555555b2cf0, pQueue=0x5555555bf0f0, RequestType=WdfRequestTypeQueryInformation, Forward=1) at ../libtudor/src/tudor/driver_wudf1.cpp:1383
+#1  0x00007ffff5070422 in ?? ()
+#2  0x00005555555b2cf0 in ?? ()
+#3  0x00005555555bf0f0 in ?? ()
+#4  0x00007fff00000005 in ?? ()
+#5  0x0000000000000001 in ?? ()
+#6  0x0000000000000000 in ?? ()
+
+Thread 1 "tudor_cli" hit Breakpoint 3, MyDevice::CreateDeviceInterface (this=0x5555555b2cf0, pDeviceInterfaceGuid=0x7ffff51529b8, pReferenceString=0x0) at ../libtudor/src/tudor/driver_wudf1.cpp:1288
+1288	        virtual HRESULT STDMETHODCALLTYPE CreateDeviceInterface( 
+=== HIT 3 ===
+#0  MyDevice::CreateDeviceInterface (this=0x5555555b2cf0, pDeviceInterfaceGuid=0x7ffff51529b8, pReferenceString=0x0) at ../libtudor/src/tudor/driver_wudf1.cpp:1288
+#1  0x00007ffff505590f in ?? ()
+#2  0x00005555555c0400 in ?? ()
+#3  0x00005555555b2a20 in ?? ()
+#4  0x00005555555b2b00 in ?? ()
+#5  0x0000000000000000 in ?? ()

+ 31 - 0
work/debug/gdb_gate.txt

@@ -0,0 +1,31 @@
+Breakpoint 1 at 0x2250
+
+This GDB supports auto-downloading debuginfo from the following URLs:
+  <https://debuginfod.archlinux.org>
+Debuginfod has been disabled.
+To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
+[Thread debugging using libthread_db enabled]
+Using host libthread_db library "/usr/lib/libthread_db.so.1".
+[New Thread 0x7ffff62766c0 (LWP 61324) (id 2)]
+[New Thread 0x7ffff5a756c0 (LWP 61325) (id 3)]
+[New Thread 0x7ffff50386c0 (LWP 61329) (id 4)]
+[New Thread 0x7ffff48376c0 (LWP 61330) (id 5)]
+[New Thread 0x7fffe7fff6c0 (LWP 61331) (id 6)]
+[New Thread 0x7fffe77fe6c0 (LWP 61332) (id 7)]
+[Thread 0x7fffe77fe6c0 (LWP 61332) (id 7) exited]
+[Thread 0x7fffe7fff6c0 (LWP 61331) (id 6) exited]
+[Thread 0x7ffff48376c0 (LWP 61330) (id 5) exited]
+
+Thread 1 "tudor_cli" hit Breakpoint 1, tudor_open (device=0x7fffffffccd0, usb_dev=0x5555555bece0, state=0x0) at ../libtudor/src/tudor/driver_wudf1.cpp:2119
+2119	{
+Breakpoint 2 at 0x7ffff505597c
+Breakpoint 3 at 0x7ffff505cb2f
+
+Thread 1 "tudor_cli" received signal SIGSEGV, Segmentation fault.
+0x00007ffff506d314 in ?? ()
+=== HIT ===
+rip            0x7ffff506d314      0x7ffff506d314
+rcx            0x0                 0
+rax            0x0                 0
+obj=(nil) [obj+0x238]=/tmp/opencode/gdb_gate.txt:17: Error in sourced command file:
+Cannot access memory at address 0x238

+ 219 - 0
work/debug/gdb_maps.txt

@@ -0,0 +1,219 @@
+
+This GDB supports auto-downloading debuginfo from the following URLs:
+  <https://debuginfod.archlinux.org>
+Debuginfod has been disabled.
+To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
+[Thread debugging using libthread_db enabled]
+Using host libthread_db library "/usr/lib/libthread_db.so.1".
+[New Thread 0x7ffff62766c0 (LWP 27227) (id 2)]
+[New Thread 0x7ffff5a756c0 (LWP 27228) (id 3)]
+[New Thread 0x7ffff50386c0 (LWP 27230) (id 4)]
+[New Thread 0x7ffff48376c0 (LWP 27231) (id 5)]
+[New Thread 0x7fffe7fff6c0 (LWP 27232) (id 6)]
+[New Thread 0x7fffe77fe6c0 (LWP 27233) (id 7)]
+[Thread 0x7fffe77fe6c0 (LWP 27233) (id 7) exited]
+[Thread 0x7fffe7fff6c0 (LWP 27232) (id 6) exited]
+[Thread 0x7ffff48376c0 (LWP 27231) (id 5) exited]
+
+Thread 1 "tudor_cli" received signal SIGSEGV, Segmentation fault.
+0x00007ffff5138c33 in ?? ()
+process 27224
+Mapped address spaces:
+
+Start Addr         End Addr           Size               Offset             Perms File 
+0x0000555555554000 0x0000555555556000 0x2000             0x0                r--p  /home/nebulon/projects/fingerprint/work/synaTudor/build/cli/tudor_cli 
+0x0000555555556000 0x000055555555a000 0x4000             0x2000             r-xp  /home/nebulon/projects/fingerprint/work/synaTudor/build/cli/tudor_cli 
+0x000055555555a000 0x000055555555c000 0x2000             0x6000             r--p  /home/nebulon/projects/fingerprint/work/synaTudor/build/cli/tudor_cli 
+0x000055555555c000 0x000055555555d000 0x1000             0x7000             r--p  /home/nebulon/projects/fingerprint/work/synaTudor/build/cli/tudor_cli 
+0x000055555555d000 0x000055555555e000 0x1000             0x8000             rw-p  /home/nebulon/projects/fingerprint/work/synaTudor/build/cli/tudor_cli 
+0x000055555555e000 0x0000555555601000 0xa3000            0x0                rw-p  [heap] 
+0x00007fffd8000000 0x00007fffd8021000 0x21000            0x0                rw-p   
+0x00007fffd8021000 0x00007fffdc000000 0x3fdf000          0x0                ---p   
+0x00007fffdc000000 0x00007fffdc021000 0x21000            0x0                rw-p   
+0x00007fffdc021000 0x00007fffe0000000 0x3fdf000          0x0                ---p   
+0x00007fffe0000000 0x00007fffe0037000 0x37000            0x0                rw-p   
+0x00007fffe0037000 0x00007fffe4000000 0x3fc9000          0x0                ---p   
+0x00007fffe6ffe000 0x00007fffe8000000 0x1002000          0x0                rw-p   
+0x00007fffe8000000 0x00007fffe8021000 0x21000            0x0                rw-p   
+0x00007fffe8021000 0x00007fffec000000 0x3fdf000          0x0                ---p   
+0x00007fffec000000 0x00007fffec021000 0x21000            0x0                rw-p   
+0x00007fffec021000 0x00007ffff0000000 0x3fdf000          0x0                ---p   
+0x00007ffff0000000 0x00007ffff0021000 0x21000            0x0                rw-p   
+0x00007ffff0021000 0x00007ffff4000000 0x3fdf000          0x0                ---p   
+0x00007ffff4037000 0x00007ffff5039000 0x1002000          0x0                rw-p   
+0x00007ffff5039000 0x00007ffff503a000 0x1000             0x0                r--p   
+0x00007ffff503a000 0x00007ffff5152000 0x118000           0x0                r-xp   
+0x00007ffff5152000 0x00007ffff5208000 0xb6000            0x0                r--p   
+0x00007ffff5208000 0x00007ffff526b000 0x63000            0x0                rw-p   
+0x00007ffff526b000 0x00007ffff5275000 0xa000             0x0                r--p   
+0x00007ffff5275000 0x00007ffff6277000 0x1002000          0x0                rw-p   
+0x00007ffff6277000 0x00007ffff6286000 0xf000             0x0                r--p  /usr/lib/libunistring.so.5.2.1 
+0x00007ffff6286000 0x00007ffff62ca000 0x44000            0xf000             r-xp  /usr/lib/libunistring.so.5.2.1 
+0x00007ffff62ca000 0x00007ffff6459000 0x18f000           0x53000            r--p  /usr/lib/libunistring.so.5.2.1 
+0x00007ffff6459000 0x00007ffff645d000 0x4000             0x1e2000           r--p  /usr/lib/libunistring.so.5.2.1 
+0x00007ffff645d000 0x00007ffff645e000 0x1000             0x1e6000           rw-p  /usr/lib/libunistring.so.5.2.1 
+0x00007ffff645e000 0x00007ffff6465000 0x7000             0x0                r--p  /usr/lib/libp11-kit.so.0.4.11 
+0x00007ffff6465000 0x00007ffff654e000 0xe9000            0x7000             r-xp  /usr/lib/libp11-kit.so.0.4.11 
+0x00007ffff654e000 0x00007ffff65e0000 0x92000            0xf0000            r--p  /usr/lib/libp11-kit.so.0.4.11 
+0x00007ffff65e0000 0x00007ffff65f1000 0x11000            0x181000           r--p  /usr/lib/libp11-kit.so.0.4.11 
+0x00007ffff65f1000 0x00007ffff6600000 0xf000             0x192000           rw-p  /usr/lib/libp11-kit.so.0.4.11 
+0x00007ffff6600000 0x00007ffff661b000 0x1b000            0x0                r--p  /usr/lib/libleancrypto.so.1.9.1 
+0x00007ffff661b000 0x00007ffff677e000 0x163000           0x1b000            r-xp  /usr/lib/libleancrypto.so.1.9.1 
+0x00007ffff677e000 0x00007ffff68af000 0x131000           0x17e000           r--p  /usr/lib/libleancrypto.so.1.9.1 
+0x00007ffff68af000 0x00007ffff68b5000 0x6000             0x2af000           r--p  /usr/lib/libleancrypto.so.1.9.1 
+0x00007ffff68b5000 0x00007ffff68b7000 0x2000             0x2b5000           rw-p  /usr/lib/libleancrypto.so.1.9.1 
+0x00007ffff6959000 0x00007ffff696a000 0x11000            0x0                r--p  /usr/lib/libgmp.so.10.5.0 
+0x00007ffff696a000 0x00007ffff69e8000 0x7e000            0x11000            r-xp  /usr/lib/libgmp.so.10.5.0 
+0x00007ffff69e8000 0x00007ffff69fd000 0x15000            0x8f000            r--p  /usr/lib/libgmp.so.10.5.0 
+0x00007ffff69fd000 0x00007ffff69ff000 0x2000             0xa3000            r--p  /usr/lib/libgmp.so.10.5.0 
+0x00007ffff69ff000 0x00007ffff6a00000 0x1000             0xa5000            rw-p  /usr/lib/libgmp.so.10.5.0 
+0x00007ffff6a00000 0x00007ffff6a25000 0x25000            0x0                r--p  /usr/lib/libgnutls.so.30.42.0 
+0x00007ffff6a25000 0x00007ffff6b8b000 0x166000           0x25000            r-xp  /usr/lib/libgnutls.so.30.42.0 
+0x00007ffff6b8b000 0x00007ffff6c12000 0x87000            0x18b000           r--p  /usr/lib/libgnutls.so.30.42.0 
+0x00007ffff6c12000 0x00007ffff6c24000 0x12000            0x212000           r--p  /usr/lib/libgnutls.so.30.42.0 
+0x00007ffff6c24000 0x00007ffff6c27000 0x3000             0x224000           rw-p  /usr/lib/libgnutls.so.30.42.0 
+0x00007ffff6c27000 0x00007ffff6c2a000 0x3000             0x0                rw-p   
+0x00007ffff6c93000 0x00007ffff6c94000 0x1000             0x0                r--p   
+0x00007ffff6c94000 0x00007ffff6cb6000 0x22000            0x0                r-xp   
+0x00007ffff6cb6000 0x00007ffff6cc1000 0xb000             0x0                r--p   
+0x00007ffff6cc1000 0x00007ffff6cc5000 0x4000             0x0                rw-p   
+0x00007ffff6cc5000 0x00007ffff6cc9000 0x4000             0x0                r--p   
+0x00007ffff6cc9000 0x00007ffff6cd9000 0x10000            0x0                r--p  /usr/lib/libm.so.6 
+0x00007ffff6cd9000 0x00007ffff6d75000 0x9c000            0x10000            r-xp  /usr/lib/libm.so.6 
+0x00007ffff6d75000 0x00007ffff6dfe000 0x89000            0xac000            r--p  /usr/lib/libm.so.6 
+0x00007ffff6dfe000 0x00007ffff6dff000 0x1000             0x134000           r--p  /usr/lib/libm.so.6 
+0x00007ffff6dff000 0x00007ffff6e00000 0x1000             0x135000           rw-p  /usr/lib/libm.so.6 
+0x00007ffff6e00000 0x00007ffff6e9a000 0x9a000            0x0                r--p  /usr/lib/libstdc++.so.6.0.36 
+0x00007ffff6e9a000 0x00007ffff701d000 0x183000           0x9a000            r-xp  /usr/lib/libstdc++.so.6.0.36 
+0x00007ffff701d000 0x00007ffff70bd000 0xa0000            0x21d000           r--p  /usr/lib/libstdc++.so.6.0.36 
+0x00007ffff70bd000 0x00007ffff70ce000 0x11000            0x2bc000           r--p  /usr/lib/libstdc++.so.6.0.36 
+0x00007ffff70ce000 0x00007ffff70cf000 0x1000             0x2cd000           rw-p  /usr/lib/libstdc++.so.6.0.36 
+0x00007ffff70cf000 0x00007ffff70d3000 0x4000             0x0                rw-p   
+0x00007ffff70da000 0x00007ffff70db000 0x1000             0x0                r--p  /usr/lib/gconv/UTF-16.so 
+0x00007ffff70db000 0x00007ffff70dd000 0x2000             0x1000             r-xp  /usr/lib/gconv/UTF-16.so 
+0x00007ffff70dd000 0x00007ffff70de000 0x1000             0x3000             r--p  /usr/lib/gconv/UTF-16.so 
+0x00007ffff70de000 0x00007ffff70df000 0x1000             0x3000             r--p  /usr/lib/gconv/UTF-16.so 
+0x00007ffff70df000 0x00007ffff70e0000 0x1000             0x4000             rw-p  /usr/lib/gconv/UTF-16.so 
+0x00007ffff70e0000 0x00007ffff70e7000 0x7000             0x0                r--s  /usr/lib/gconv/gconv-modules.cache 
+0x00007ffff70e7000 0x00007ffff70eb000 0x4000             0x0                rwxp   
+0x00007ffff70eb000 0x00007ffff70f9000 0xe000             0x0                r--p  /usr/lib/libnettle.so.9.0 
+0x00007ffff70f9000 0x00007ffff712b000 0x32000            0xe000             r-xp  /usr/lib/libnettle.so.9.0 
+0x00007ffff712b000 0x00007ffff7143000 0x18000            0x40000            r--p  /usr/lib/libnettle.so.9.0 
+0x00007ffff7143000 0x00007ffff7146000 0x3000             0x57000            r--p  /usr/lib/libnettle.so.9.0 
+0x00007ffff7146000 0x00007ffff7147000 0x1000             0x5a000            rw-p  /usr/lib/libnettle.so.9.0 
+0x00007ffff7147000 0x00007ffff714f000 0x8000             0x0                r--p  /usr/lib/libhogweed.so.7.0 
+0x00007ffff714f000 0x00007ffff7162000 0x13000            0x8000             r-xp  /usr/lib/libhogweed.so.7.0 
+0x00007ffff7162000 0x00007ffff718b000 0x29000            0x1b000            r--p  /usr/lib/libhogweed.so.7.0 
+0x00007ffff718b000 0x00007ffff718d000 0x2000             0x43000            r--p  /usr/lib/libhogweed.so.7.0 
+0x00007ffff718d000 0x00007ffff718e000 0x1000             0x45000            rw-p  /usr/lib/libhogweed.so.7.0 
+0x00007ffff718e000 0x00007ffff7190000 0x2000             0x0                r--p  /usr/lib/libidn2.so.0.4.0 
+0x00007ffff7190000 0x00007ffff7194000 0x4000             0x2000             r-xp  /usr/lib/libidn2.so.0.4.0 
+0x00007ffff7194000 0x00007ffff71ae000 0x1a000            0x6000             r--p  /usr/lib/libidn2.so.0.4.0 
+0x00007ffff71ae000 0x00007ffff71af000 0x1000             0x1f000            r--p  /usr/lib/libidn2.so.0.4.0 
+0x00007ffff71af000 0x00007ffff71b0000 0x1000             0x20000            rw-p  /usr/lib/libidn2.so.0.4.0 
+0x00007ffff71b0000 0x00007ffff71b5000 0x5000             0x0                r--p  /usr/lib/libudev.so.1.7.15 
+0x00007ffff71b5000 0x00007ffff71e3000 0x2e000            0x5000             r-xp  /usr/lib/libudev.so.1.7.15 
+0x00007ffff71e3000 0x00007ffff71fa000 0x17000            0x33000            r--p  /usr/lib/libudev.so.1.7.15 
+0x00007ffff71fa000 0x00007ffff71ff000 0x5000             0x4a000            r--p  /usr/lib/libudev.so.1.7.15 
+0x00007ffff71ff000 0x00007ffff7200000 0x1000             0x4f000            rw-p  /usr/lib/libudev.so.1.7.15 
+0x00007ffff7200000 0x00007ffff7224000 0x24000            0x0                r--p  /usr/lib/libc.so.6 
+0x00007ffff7224000 0x00007ffff739f000 0x17b000           0x24000            r-xp  /usr/lib/libc.so.6 
+0x00007ffff739f000 0x00007ffff7415000 0x76000            0x19f000           r--p  /usr/lib/libc.so.6 
+0x00007ffff7415000 0x00007ffff7419000 0x4000             0x214000           r--p  /usr/lib/libc.so.6 
+0x00007ffff7419000 0x00007ffff741b000 0x2000             0x218000           rw-p  /usr/lib/libc.so.6 
+0x00007ffff741b000 0x00007ffff7424000 0x9000             0x0                rw-p   
+0x00007ffff7424000 0x00007ffff7425000 0x1000             0x0                rw-p   
+0x00007ffff7425000 0x00007ffff7429000 0x4000             0x0                rw-p   
+0x00007ffff7429000 0x00007ffff742b000 0x2000             0x0                r--p  /usr/lib/libffi.so.8.5.0 
+0x00007ffff742b000 0x00007ffff7433000 0x8000             0x2000             r-xp  /usr/lib/libffi.so.8.5.0 
+0x00007ffff7433000 0x00007ffff7435000 0x2000             0xa000             r--p  /usr/lib/libffi.so.8.5.0 
+0x00007ffff7435000 0x00007ffff7436000 0x1000             0xb000             r--p  /usr/lib/libffi.so.8.5.0 
+0x00007ffff7436000 0x00007ffff7437000 0x1000             0xc000             rw-p  /usr/lib/libffi.so.8.5.0 
+0x00007ffff7437000 0x00007ffff7438000 0x1000             0x0                r--p  /usr/lib/libbrotlicommon.so.1.2.0 
+0x00007ffff7438000 0x00007ffff7439000 0x1000             0x1000             r-xp  /usr/lib/libbrotlicommon.so.1.2.0 
+0x00007ffff7439000 0x00007ffff7458000 0x1f000            0x2000             r--p  /usr/lib/libbrotlicommon.so.1.2.0 
+0x00007ffff7458000 0x00007ffff7459000 0x1000             0x21000            r--p  /usr/lib/libbrotlicommon.so.1.2.0 
+0x00007ffff7459000 0x00007ffff745a000 0x1000             0x22000            rw-p  /usr/lib/libbrotlicommon.so.1.2.0 
+0x00007ffff745a000 0x00007ffff7466000 0xc000             0x0                r--p  /usr/lib/libzstd.so.1.5.7 
+0x00007ffff7466000 0x00007ffff752d000 0xc7000            0xc000             r-xp  /usr/lib/libzstd.so.1.5.7 
+0x00007ffff752d000 0x00007ffff753e000 0x11000            0xd3000            r--p  /usr/lib/libzstd.so.1.5.7 
+0x00007ffff753e000 0x00007ffff753f000 0x1000             0xe4000            r--p  /usr/lib/libzstd.so.1.5.7 
+0x00007ffff753f000 0x00007ffff7540000 0x1000             0xe5000            rw-p  /usr/lib/libzstd.so.1.5.7 
+0x00007ffff7540000 0x00007ffff7541000 0x1000             0x0                r--p  /usr/lib/libbrotlienc.so.1.2.0 
+0x00007ffff7541000 0x00007ffff75ae000 0x6d000            0x1000             r-xp  /usr/lib/libbrotlienc.so.1.2.0 
+0x00007ffff75ae000 0x00007ffff75fe000 0x50000            0x6e000            r--p  /usr/lib/libbrotlienc.so.1.2.0 
+0x00007ffff75fe000 0x00007ffff75ff000 0x1000             0xbd000            r--p  /usr/lib/libbrotlienc.so.1.2.0 
+0x00007ffff75ff000 0x00007ffff7600000 0x1000             0xbe000            rw-p  /usr/lib/libbrotlienc.so.1.2.0 
+0x00007ffff7600000 0x00007ffff7653000 0x53000            0x0                r--p  /usr/lib/libcrypto.so.3 
+0x00007ffff7653000 0x00007ffff7a00000 0x3ad000           0x53000            r-xp  /usr/lib/libcrypto.so.3 
+0x00007ffff7a00000 0x00007ffff7b26000 0x126000           0x400000           r--p  /usr/lib/libcrypto.so.3 
+0x00007ffff7b26000 0x00007ffff7ba4000 0x7e000            0x526000           r--p  /usr/lib/libcrypto.so.3 
+0x00007ffff7ba4000 0x00007ffff7ba7000 0x3000             0x5a4000           rw-p  /usr/lib/libcrypto.so.3 
+0x00007ffff7ba7000 0x00007ffff7bae000 0x7000             0x0                rw-p   
+0x00007ffff7bae000 0x00007ffff7bb0000 0x2000             0x0                r--p  /usr/lib/libtasn1.so.6.6.5 
+0x00007ffff7bb0000 0x00007ffff7bbf000 0xf000             0x2000             r-xp  /usr/lib/libtasn1.so.6.6.5 
+0x00007ffff7bbf000 0x00007ffff7bc2000 0x3000             0x11000            r--p  /usr/lib/libtasn1.so.6.6.5 
+0x00007ffff7bc2000 0x00007ffff7bc3000 0x1000             0x14000            r--p  /usr/lib/libtasn1.so.6.6.5 
+0x00007ffff7bc3000 0x00007ffff7bc4000 0x1000             0x15000            rw-p  /usr/lib/libtasn1.so.6.6.5 
+0x00007ffff7bc4000 0x00007ffff7bc5000 0x1000             0x0                r--p  /usr/lib/libbrotlidec.so.1.2.0 
+0x00007ffff7bc5000 0x00007ffff7bce000 0x9000             0x1000             r-xp  /usr/lib/libbrotlidec.so.1.2.0 
+0x00007ffff7bce000 0x00007ffff7bd1000 0x3000             0xa000             r--p  /usr/lib/libbrotlidec.so.1.2.0 
+0x00007ffff7bd1000 0x00007ffff7bd2000 0x1000             0xc000             r--p  /usr/lib/libbrotlidec.so.1.2.0 
+0x00007ffff7bd2000 0x00007ffff7bd3000 0x1000             0xd000             rw-p  /usr/lib/libbrotlidec.so.1.2.0 
+0x00007ffff7bd3000 0x00007ffff7bd7000 0x4000             0x0                r--p  /usr/lib/libgcc_s.so.1 
+0x00007ffff7bd7000 0x00007ffff7bfa000 0x23000            0x4000             r-xp  /usr/lib/libgcc_s.so.1 
+0x00007ffff7bfa000 0x00007ffff7bfe000 0x4000             0x27000            r--p  /usr/lib/libgcc_s.so.1 
+0x00007ffff7bfe000 0x00007ffff7bff000 0x1000             0x2b000            r--p  /usr/lib/libgcc_s.so.1 
+0x00007ffff7bff000 0x00007ffff7c00000 0x1000             0x2c000            rw-p  /usr/lib/libgcc_s.so.1 
+0x00007ffff7c00000 0x00007ffff7c1f000 0x1f000            0x0                r--p  /home/nebulon/projects/fingerprint/work/synaTudor/build/libtudor/libtudor.so 
+0x00007ffff7c1f000 0x00007ffff7c5e000 0x3f000            0x1f000            r-xp  /home/nebulon/projects/fingerprint/work/synaTudor/build/libtudor/libtudor.so 
+0x00007ffff7c5e000 0x00007ffff7c77000 0x19000            0x5e000            r--p  /home/nebulon/projects/fingerprint/work/synaTudor/build/libtudor/libtudor.so 
+0x00007ffff7c77000 0x00007ffff7c79000 0x2000             0x77000            r--p  /home/nebulon/projects/fingerprint/work/synaTudor/build/libtudor/libtudor.so 
+0x00007ffff7c79000 0x00007ffff7ef1000 0x278000           0x79000            rw-p  /home/nebulon/projects/fingerprint/work/synaTudor/build/libtudor/libtudor.so 
+0x00007ffff7ef1000 0x00007ffff7ef8000 0x7000             0x0                rw-p   
+0x00007ffff7ef8000 0x00007ffff7efb000 0x3000             0x0                r--p  /usr/lib/libz.so.1.3.2 
+0x00007ffff7efb000 0x00007ffff7f0b000 0x10000            0x3000             r-xp  /usr/lib/libz.so.1.3.2 
+0x00007ffff7f0b000 0x00007ffff7f11000 0x6000             0x13000            r--p  /usr/lib/libz.so.1.3.2 
+0x00007ffff7f11000 0x00007ffff7f12000 0x1000             0x18000            r--p  /usr/lib/libz.so.1.3.2 
+0x00007ffff7f12000 0x00007ffff7f13000 0x1000             0x19000            rw-p  /usr/lib/libz.so.1.3.2 
+0x00007ffff7f13000 0x00007ffff7f15000 0x2000             0x0                rw-p   
+0x00007ffff7f15000 0x00007ffff7f19000 0x4000             0x0                r--p  /home/nebulon/projects/fingerprint/work/synaTudor/build/subprojects/cryptbridge/libcryptbridge.so.1.0.0 
+0x00007ffff7f19000 0x00007ffff7f45000 0x2c000            0x4000             r-xp  /home/nebulon/projects/fingerprint/work/synaTudor/build/subprojects/cryptbridge/libcryptbridge.so.1.0.0 
+0x00007ffff7f45000 0x00007ffff7f5f000 0x1a000            0x30000            r--p  /home/nebulon/projects/fingerprint/work/synaTudor/build/subprojects/cryptbridge/libcryptbridge.so.1.0.0 
+0x00007ffff7f5f000 0x00007ffff7f60000 0x1000             0x49000            r--p  /home/nebulon/projects/fingerprint/work/synaTudor/build/subprojects/cryptbridge/libcryptbridge.so.1.0.0 
+0x00007ffff7f60000 0x00007ffff7f61000 0x1000             0x4a000            rw-p  /home/nebulon/projects/fingerprint/work/synaTudor/build/subprojects/cryptbridge/libcryptbridge.so.1.0.0 
+0x00007ffff7f61000 0x00007ffff7f65000 0x4000             0x0                r--p  /usr/lib/libusb-1.0.so.0.6.0 
+0x00007ffff7f65000 0x00007ffff7f76000 0x11000            0x4000             r-xp  /usr/lib/libusb-1.0.so.0.6.0 
+0x00007ffff7f76000 0x00007ffff7f7f000 0x9000             0x15000            r--p  /usr/lib/libusb-1.0.so.0.6.0 
+0x00007ffff7f7f000 0x00007ffff7f80000 0x1000             0x1e000            r--p  /usr/lib/libusb-1.0.so.0.6.0 
+0x00007ffff7f80000 0x00007ffff7f81000 0x1000             0x1f000            rw-p  /usr/lib/libusb-1.0.so.0.6.0 
+0x00007ffff7f81000 0x00007ffff7f83000 0x2000             0x0                rw-p   
+0x00007ffff7f83000 0x00007ffff7fb6000 0x33000            0x0                r--p  /etc/ld.so.cache 
+0x00007ffff7fb6000 0x00007ffff7fba000 0x4000             0x0                r--p  [vvar] 
+0x00007ffff7fba000 0x00007ffff7fbc000 0x2000             0x0                r--p  [vvar_vclock] 
+0x00007ffff7fbc000 0x00007ffff7fbe000 0x2000             0x0                r-xp  [vdso] 
+0x00007ffff7fbe000 0x00007ffff7fbf000 0x1000             0x0                r--p  /usr/lib/ld-linux-x86-64.so.2 
+0x00007ffff7fbf000 0x00007ffff7fec000 0x2d000            0x1000             r-xp  /usr/lib/ld-linux-x86-64.so.2 
+0x00007ffff7fec000 0x00007ffff7ffb000 0xf000             0x2e000            r--p  /usr/lib/ld-linux-x86-64.so.2 
+0x00007ffff7ffb000 0x00007ffff7ffd000 0x2000             0x3d000            r--p  /usr/lib/ld-linux-x86-64.so.2 
+0x00007ffff7ffd000 0x00007ffff7ffe000 0x1000             0x3f000            rw-p  /usr/lib/ld-linux-x86-64.so.2 
+0x00007ffff7ffe000 0x00007ffff7fff000 0x1000             0x0                rw-p   
+0x00007ffffffdd000 0x00007ffffffff000 0x22000            0x0                rw-p  [stack] 
+0xffffffffff600000 0xffffffffff601000 0x1000             0x0                --xp  [vsyscall] 
+rip            0x7ffff5138c33      0x7ffff5138c33
+rsp            0x7fffffffc038      0x7fffffffc038
+rbp            0x7fffffffc5d0      0x7fffffffc5d0
+No symbol matches $rip.
+#0  0x00007ffff5138c33 in ?? ()
+#1  0x00007ffff51132e9 in ?? ()
+#2  0x0000000000000001 in ?? ()
+#3  0x00007ffff5072c78 in ?? ()
+#4  0xa598a580a578a570 in ?? ()
+#5  0x00007ffff50b972d in ?? ()
+#6  0x00005555555bfc50 in ?? ()
+#7  0x00007ffff50806f6 in ?? ()
+#8  0x00005555555d3e30 in ?? ()
+#9  0x00ff00fd00fb00f9 in ?? ()
+#10 0x0000000000000002 in ?? ()
+#11 0xaec8aec0aeb8aeb0 in ?? ()
+#12 0x0000000000000000 in ?? ()

+ 30 - 0
work/debug/gdb_new.txt

@@ -0,0 +1,30 @@
+
+This GDB supports auto-downloading debuginfo from the following URLs:
+  <https://debuginfod.archlinux.org>
+Debuginfod has been disabled.
+To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
+[Thread debugging using libthread_db enabled]
+Using host libthread_db library "/usr/lib/libthread_db.so.1".
+[New Thread 0x7ffff62766c0 (LWP 31968) (id 2)]
+[New Thread 0x7ffff5a756c0 (LWP 31969) (id 3)]
+[New Thread 0x7ffff50386c0 (LWP 31971) (id 4)]
+[New Thread 0x7ffff48376c0 (LWP 31972) (id 5)]
+[New Thread 0x7fffdffff6c0 (LWP 31973) (id 6)]
+[New Thread 0x7fffe7fff6c0 (LWP 31974) (id 7)]
+[Thread 0x7fffe7fff6c0 (LWP 31974) (id 7) exited]
+[Thread 0x7fffdffff6c0 (LWP 31973) (id 6) exited]
+[Thread 0x7ffff48376c0 (LWP 31972) (id 5) exited]
+
+Thread 1 "tudor_cli" received signal SIGSEGV, Segmentation fault.
+0x0000000300000001 in ?? ()
+rip            0x300000001         0x300000001
+rsp            0x7fffffffcbf8      0x7fffffffcbf8
+rbp            0x7fffffffcc70      0x7fffffffcc70
+rbx            0x0                 0
+r12            0x7fffffffcea8      140737488342696
+r13            0x2                 2
+r14            0x7ffff7ffd000      140737354125312
+r15            0x55555555cd98      93824992267672
+#0  0x0000000300000001 in ?? ()
+#1  0x00007ffff7c52334 in tudor_open (device=0x7fffffffccd0, usb_dev=0x5555555bece0, state=0x0) at ../libtudor/src/tudor/driver_wudf1.cpp:1951
+#2  0x000055555555750d in main (argc=2, argv=0x7fffffffcea8) at ../cli/src/main.c:198

+ 24 - 0
work/debug/gdb_paths.txt

@@ -0,0 +1,24 @@
+No source file named libtudor/src/tudor/driver_wudf1.cpp.
+
+This GDB supports auto-downloading debuginfo from the following URLs:
+  <https://debuginfod.archlinux.org>
+Debuginfod has been disabled.
+To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
+[Thread debugging using libthread_db enabled]
+Using host libthread_db library "/usr/lib/libthread_db.so.1".
+[New Thread 0x7ffff62766c0 (LWP 40087) (id 2)]
+[New Thread 0x7ffff5a756c0 (LWP 40088) (id 3)]
+[New Thread 0x7ffff50386c0 (LWP 40090) (id 4)]
+[New Thread 0x7ffff48376c0 (LWP 40091) (id 5)]
+[New Thread 0x7fffe7fff6c0 (LWP 40092) (id 6)]
+[New Thread 0x7fffe77fe6c0 (LWP 40093) (id 7)]
+[Thread 0x7fffe77fe6c0 (LWP 40093) (id 7) exited]
+[Thread 0x7fffe7fff6c0 (LWP 40092) (id 6) exited]
+[Thread 0x7ffff48376c0 (LWP 40091) (id 5) exited]
+[Thread 0x7ffff50386c0 (LWP 40090) (id 4) exited]
+[Thread 0x7ffff62766c0 (LWP 40087) (id 2) exited]
+[Thread 0x7ffff5a756c0 (LWP 40088) (id 3) exited]
+[Inferior 1 (process 40084) exited with code 01]
+No breakpoint number 1.
+/tmp/opencode/gdb16.txt:9: Error in sourced command file:
+Cannot access memory at address 0x40

+ 33 - 0
work/debug/gdb_pinit.txt

@@ -0,0 +1,33 @@
+Breakpoint 1 at 0x2250
+
+This GDB supports auto-downloading debuginfo from the following URLs:
+  <https://debuginfod.archlinux.org>
+Debuginfod has been disabled.
+To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
+[Thread debugging using libthread_db enabled]
+Using host libthread_db library "/usr/lib/libthread_db.so.1".
+[New Thread 0x7ffff62766c0 (LWP 39867) (id 2)]
+[New Thread 0x7ffff5a756c0 (LWP 39868) (id 3)]
+[New Thread 0x7ffff50386c0 (LWP 39870) (id 4)]
+[New Thread 0x7ffff48376c0 (LWP 39871) (id 5)]
+[New Thread 0x7fffe7fff6c0 (LWP 39872) (id 6)]
+[New Thread 0x7fffe77fe6c0 (LWP 39873) (id 7)]
+[Thread 0x7fffe77fe6c0 (LWP 39873) (id 7) exited]
+[Thread 0x7fffe7fff6c0 (LWP 39872) (id 6) exited]
+[Thread 0x7ffff48376c0 (LWP 39871) (id 5) exited]
+
+Thread 1 "tudor_cli" hit Breakpoint 1, tudor_open (device=0x7fffffffccd0, usb_dev=0x5555555bece0, state=0x0) at ../libtudor/src/tudor/driver_wudf1.cpp:1983
+1983	{
+dll base = 0x7ffff6c93000
+Breakpoint 2 at 0x7ffff6c9a26e
+Breakpoint 3 at 0x7ffff6c9a19d
+Breakpoint 4 at 0x7ffff6c9a270
+[Thread 0x7ffff5a756c0 (LWP 39868) (id 3) exited]
+[Thread 0x7ffff62766c0 (LWP 39867) (id 2) exited]
+[Thread 0x7ffff7426500 (LWP 39864) (id 1) exited]
+[Thread 0x7ffff50386c0 (LWP 39870) (id 4) exited]
+[New process 39864 (id 8)]
+[Inferior 1 (process 39864) exited with code 01]
+=== STOP 1 ===
+/tmp/opencode/gdb15.txt:17: Error in sourced command file:
+The program has no registers now.

+ 30 - 0
work/debug/gdb_state.txt

@@ -0,0 +1,30 @@
+Breakpoint 1 at 0x2250
+
+This GDB supports auto-downloading debuginfo from the following URLs:
+  <https://debuginfod.archlinux.org>
+Debuginfod has been disabled.
+To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
+[Thread debugging using libthread_db enabled]
+Using host libthread_db library "/usr/lib/libthread_db.so.1".
+[New Thread 0x7ffff62766c0 (LWP 61227) (id 2)]
+[New Thread 0x7ffff5a756c0 (LWP 61228) (id 3)]
+[New Thread 0x7ffff50386c0 (LWP 61230) (id 4)]
+[New Thread 0x7ffff48376c0 (LWP 61231) (id 5)]
+[New Thread 0x7fffe7fff6c0 (LWP 61232) (id 6)]
+[New Thread 0x7fffe77fe6c0 (LWP 61233) (id 7)]
+[Thread 0x7fffe77fe6c0 (LWP 61233) (id 7) exited]
+[Thread 0x7fffe7fff6c0 (LWP 61232) (id 6) exited]
+[Thread 0x7ffff48376c0 (LWP 61231) (id 5) exited]
+
+Thread 1 "tudor_cli" hit Breakpoint 1, tudor_open (device=0x7fffffffccd0, usb_dev=0x5555555bece0, state=0x0) at ../libtudor/src/tudor/driver_wudf1.cpp:2119
+2119	{
+Breakpoint 2 at 0x7ffff5055d95
+Breakpoint 3 at 0x7ffff50568e9
+Breakpoint 4 at 0x7ffff505d9f0
+
+Thread 1 "tudor_cli" received signal SIGSEGV, Segmentation fault.
+0x00007ffff506d314 in ?? ()
+=== STATE WRITER 1 ===rip            0x7ffff506d314      0x7ffff506d314
+rcx            0x0                 0
+0x0:	/tmp/opencode/gdb_state.txt:17: Error in sourced command file:
+Cannot access memory at address 0x0

+ 47 - 0
work/debug/gdb_step.txt

@@ -0,0 +1,47 @@
+Breakpoint 1 at 0x2250
+
+This GDB supports auto-downloading debuginfo from the following URLs:
+  <https://debuginfod.archlinux.org>
+Debuginfod has been disabled.
+To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
+[Thread debugging using libthread_db enabled]
+Using host libthread_db library "/usr/lib/libthread_db.so.1".
+[New Thread 0x7ffff62766c0 (LWP 62664) (id 2)]
+[New Thread 0x7ffff5a756c0 (LWP 62665) (id 3)]
+[New Thread 0x7ffff50386c0 (LWP 62667) (id 4)]
+[New Thread 0x7ffff48376c0 (LWP 62668) (id 5)]
+[New Thread 0x7fffe7fff6c0 (LWP 62669) (id 6)]
+[New Thread 0x7fffe77fe6c0 (LWP 62670) (id 7)]
+[Thread 0x7fffe77fe6c0 (LWP 62670) (id 7) exited]
+[Thread 0x7fffe7fff6c0 (LWP 62669) (id 6) exited]
+[Thread 0x7ffff48376c0 (LWP 62668) (id 5) exited]
+
+Thread 1 "tudor_cli" hit Breakpoint 1, tudor_open (device=0x7fffffffccd0, usb_dev=0x5555555bece0, state=0x0) at ../libtudor/src/tudor/driver_wudf1.cpp:2149
+2149	{
+Breakpoint 2 at 0x7ffff506d30d
+
+Thread 1 "tudor_cli" hit Breakpoint 2, 0x00007ffff506d30d in ?? ()
+=== just before crash: reading [rcx+0x1c0] where rcx=ctx ===
+rcx            0x5555555b2a20      93824992619040
+rax            0x0                 0
+rdx            0x8                 8
+rsi            0x7ffff5072c78      140737304276088
+rdi            0x44202c            4464684
+ctx=0x5555555b2a20
+--- dump ctx+0x1a0..0x1e0 ---
+0x5555555b2bc0:	0x0000000000000000	0x00005555555ef7a0
+0x5555555b2bd0:	0x00005555555e2280	0x00005555555b2a40
+0x5555555b2be0:	0x0000000000000000	0x0000000000000030
+0x5555555b2bf0:	0x0000000100000001	0x0000000000000000
+0x5555555b2c00:	0x0000000000000000	0x0000000000000002
+0x5555555b2c10:	0x0000000000000001	0x0000000000000000
+0x5555555b2c20:	0x0000000100000000	0x0000555500000001
+0x5555555b2c30:	0x0000000000000000	0x0000000000000000
+--- what is rdx (8)? and rsi ---
+0x7ffff5072c78:	0x44894c20244c8944	0x4810245489481824
+0x7ffff5072c88:	0x48ec834808244c89	0xe883485024448b48
+0x7ffff5072c98:	0x8b4850244c8b4850	0x4830244c8948b049
+0x7ffff5072ca8:	0x245489487824548b	0x89487024548b4828
+=== step single instruction ===
+0x00007ffff506d314 in ?? ()
+rax            0x0                 0

+ 97 - 0
work/debug/gdb_trace.txt

@@ -0,0 +1,97 @@
+
+This GDB supports auto-downloading debuginfo from the following URLs:
+  <https://debuginfod.archlinux.org>
+Debuginfod has been disabled.
+To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
+[Thread debugging using libthread_db enabled]
+Using host libthread_db library "/usr/lib/libthread_db.so.1".
+[New Thread 0x7ffff62766c0 (LWP 26352) (id 2)]
+[New Thread 0x7ffff5a756c0 (LWP 26353) (id 3)]
+[New Thread 0x7ffff50386c0 (LWP 26355) (id 4)]
+[New Thread 0x7ffff48376c0 (LWP 26356) (id 5)]
+[New Thread 0x7fffe7fff6c0 (LWP 26357) (id 6)]
+[New Thread 0x7fffe77fe6c0 (LWP 26358) (id 7)]
+[Thread 0x7fffe77fe6c0 (LWP 26358) (id 7) exited]
+[Thread 0x7fffe7fff6c0 (LWP 26357) (id 6) exited]
+[Thread 0x7ffff48376c0 (LWP 26356) (id 5) exited]
+
+Thread 1 "tudor_cli" received signal SIGSEGV, Segmentation fault.
+0x00007ffff5138c33 in ?? ()
+#0  0x00007ffff5138c33 in ?? ()
+No symbol table info available.
+#1  0x00007ffff51132e9 in ?? ()
+No symbol table info available.
+#2  0x0000000000000001 in ?? ()
+No symbol table info available.
+#3  0x00007ffff5072c78 in ?? ()
+No symbol table info available.
+#4  0xa598a580a578a570 in ?? ()
+No symbol table info available.
+#5  0x00007ffff50b972d in ?? ()
+No symbol table info available.
+#6  0x00005555555d3ac0 in ?? ()
+No symbol table info available.
+#7  0x00007ffff50806f6 in ?? ()
+No symbol table info available.
+#8  0x00005555555e11a0 in ?? ()
+No symbol table info available.
+#9  0x00ff00fd00fb00f9 in ?? ()
+No symbol table info available.
+#10 0x0000000000000002 in ?? ()
+No symbol table info available.
+#11 0xaec8aec0aeb8aeb0 in ?? ()
+No symbol table info available.
+#12 0x0000000000000000 in ?? ()
+No symbol table info available.
+
+Thread 4 (Thread 0x7ffff50386c0 (LWP 26355) "tudor_cli"):
+#0  0x00007ffff72a08f2 in ?? () from /usr/lib/libc.so.6
+#1  0x00007ffff7294c79 in ?? () from /usr/lib/libc.so.6
+#2  0x00007ffff72974ec in pthread_cond_wait () from /usr/lib/libc.so.6
+#3  0x00007ffff7c2f2bb in evt_wait (evt=0x5555555cd990, timeout=4294967295) at ../libtudor/src/winapi/sync.c:146
+#4  0x00007ffff7c2e421 in win_wait_sync_obj (handle=0x5555555f2a00, timeout=4294967295) at ../libtudor/src/winapi/sync.c:10
+#5  0x00007ffff7c2ff1a in WaitForSingleObject (handle=0x5555555f2a00, timeout=4294967295) at ../libtudor/src/winapi/sync.c:235
+#6  0x00007ffff5113d6d in ?? ()
+#7  0x00005555555f2a00 in ?? ()
+#8  0x00000000ffffffff in ?? ()
+#9  0x6262626262626262 in ?? ()
+#10 0x6262626262626252 in ?? ()
+#11 0x000000000000006e in ?? ()
+#12 0x0000000000000002 in ?? ()
+#13 0x00ff00fd00fb00f9 in ?? ()
+#14 0x00007ffff5113947 in ?? ()
+#15 0x00005555555f2a00 in ?? ()
+#16 0x00000000ffffffff in ?? ()
+#17 0x0000000000000000 in ?? ()
+
+Thread 3 (Thread 0x7ffff5a756c0 (LWP 26353) "tudor_cli"):
+#0  0x00007ffff72a08f2 in ?? () from /usr/lib/libc.so.6
+#1  0x00007ffff73112e5 in poll () from /usr/lib/libc.so.6
+#2  0x00007ffff7f6eae9 in ?? () from /usr/lib/libusb-1.0.so.0
+#3  0x00007ffff7f6fb99 in libusb_handle_events_timeout_completed () from /usr/lib/libusb-1.0.so.0
+#4  0x00007ffff7f6fc03 in libusb_handle_events () from /usr/lib/libusb-1.0.so.0
+#5  0x0000555555556dab in libusb_poll_thread_func (arg=0x5555555a1b60) at ../cli/src/main.c:104
+#6  0x00007ffff7298042 in ?? () from /usr/lib/libc.so.6
+#7  0x00007ffff732072c in ?? () from /usr/lib/libc.so.6
+
+Thread 2 (Thread 0x7ffff62766c0 (LWP 26352) "libusb_event"):
+#0  0x00007ffff72a08f2 in ?? () from /usr/lib/libc.so.6
+#1  0x00007ffff73112e5 in poll () from /usr/lib/libc.so.6
+#2  0x00007ffff7f75c2b in ?? () from /usr/lib/libusb-1.0.so.0
+#3  0x00007ffff7298042 in ?? () from /usr/lib/libc.so.6
+#4  0x00007ffff732072c in ?? () from /usr/lib/libc.so.6
+
+Thread 1 (Thread 0x7ffff7bab500 (LWP 26348) "tudor_cli"):
+#0  0x00007ffff5138c33 in ?? ()
+#1  0x00007ffff51132e9 in ?? ()
+#2  0x0000000000000001 in ?? ()
+#3  0x00007ffff5072c78 in ?? ()
+#4  0xa598a580a578a570 in ?? ()
+#5  0x00007ffff50b972d in ?? ()
+#6  0x00005555555d3ac0 in ?? ()
+#7  0x00007ffff50806f6 in ?? ()
+#8  0x00005555555e11a0 in ?? ()
+#9  0x00ff00fd00fb00f9 in ?? ()
+#10 0x0000000000000002 in ?? ()
+#11 0xaec8aec0aeb8aeb0 in ?? ()
+#12 0x0000000000000000 in ?? ()

+ 35 - 0
work/debug/gdb_vt.txt

@@ -0,0 +1,35 @@
+Breakpoint 1 at 0x2250
+
+This GDB supports auto-downloading debuginfo from the following URLs:
+  <https://debuginfod.archlinux.org>
+Debuginfod has been disabled.
+To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
+[Thread debugging using libthread_db enabled]
+Using host libthread_db library "/usr/lib/libthread_db.so.1".
+[New Thread 0x7ffff62766c0 (LWP 61383) (id 2)]
+[New Thread 0x7ffff5a756c0 (LWP 61384) (id 3)]
+[New Thread 0x7ffff50386c0 (LWP 61386) (id 4)]
+[New Thread 0x7ffff48376c0 (LWP 61387) (id 5)]
+[New Thread 0x7fffe7fff6c0 (LWP 61388) (id 6)]
+[New Thread 0x7fffe77fe6c0 (LWP 61389) (id 7)]
+[Thread 0x7fffe77fe6c0 (LWP 61389) (id 7) exited]
+[Thread 0x7fffe7fff6c0 (LWP 61388) (id 6) exited]
+[Thread 0x7ffff48376c0 (LWP 61387) (id 5) exited]
+
+Thread 1 "tudor_cli" hit Breakpoint 1, tudor_open (device=0x7fffffffccd0, usb_dev=0x5555555bece0, state=0x0) at ../libtudor/src/tudor/driver_wudf1.cpp:2119
+2119	{
+Breakpoint 2 at 0x7ffff506d314
+
+Thread 1 "tudor_cli" hit Breakpoint 2, 0x00007ffff506d314 in ?? ()
+ctx=0x5555555b2a20 vtable=0x7ffff5152e08
+--- vtable entries (first 12) ---
+0x7ffff5152e08:	0x00007ffff50520c0	0x00007ffff50512bc
+0x7ffff5152e18:	0x00007ffff5052174	0x00007ffff5058154
+0x7ffff5152e28:	0x00007ffff50511dc	0x00007ffff5072338
+0x7ffff5152e38:	0x00007ffff505ad40	0x00007ffff505cb80
+0x7ffff5152e48:	0x00007ffff505f970	0x00007ffff505dae4
+0x7ffff5152e58:	0x00007ffff507dd64	0x00007ffff5055e70
+--- our vtables for comparison ---
+Symbol "vtable for MyMem" is at 0x7ffff7c7ad60 in a file compiled without debugging.
+/tmp/opencode/gdb_vt.txt:19: Error in sourced command file:
+Cannot access memory at address 0x0

+ 27 - 0
work/debug/gdb_vt2.txt

@@ -0,0 +1,27 @@
+Breakpoint 1 at 0x2250
+
+This GDB supports auto-downloading debuginfo from the following URLs:
+  <https://debuginfod.archlinux.org>
+Debuginfod has been disabled.
+To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
+[Thread debugging using libthread_db enabled]
+Using host libthread_db library "/usr/lib/libthread_db.so.1".
+[New Thread 0x7ffff62766c0 (LWP 61443) (id 2)]
+[New Thread 0x7ffff5a756c0 (LWP 61444) (id 3)]
+[New Thread 0x7ffff50386c0 (LWP 61446) (id 4)]
+[New Thread 0x7ffff48376c0 (LWP 61447) (id 5)]
+[New Thread 0x7fffe7fff6c0 (LWP 61448) (id 6)]
+[New Thread 0x7fffe77fe6c0 (LWP 61449) (id 7)]
+[Thread 0x7fffe77fe6c0 (LWP 61449) (id 7) exited]
+[Thread 0x7fffe7fff6c0 (LWP 61448) (id 6) exited]
+[Thread 0x7ffff48376c0 (LWP 61447) (id 5) exited]
+
+Thread 1 "tudor_cli" hit Breakpoint 1, tudor_open (device=0x7fffffffccd0, usb_dev=0x5555555bece0, state=0x0) at ../libtudor/src/tudor/driver_wudf1.cpp:2119
+2119	{
+Breakpoint 2 at 0x7ffff506d314
+
+Thread 1 "tudor_cli" hit Breakpoint 2, 0x00007ffff506d314 in ?? ()
+ctx=0x5555555b2a20 vt=0x7ffff5152e08
+=== identify vtable: compare against our class vtables ===
+/tmp/opencode/gdb_vt2.txt:16: Error in sourced command file:
+No symbol "vtable" in current context.

+ 33 - 0
work/debug/gdb_vt3.txt

@@ -0,0 +1,33 @@
+Breakpoint 1 at 0x2250
+
+This GDB supports auto-downloading debuginfo from the following URLs:
+  <https://debuginfod.archlinux.org>
+Debuginfod has been disabled.
+To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
+[Thread debugging using libthread_db enabled]
+Using host libthread_db library "/usr/lib/libthread_db.so.1".
+[New Thread 0x7ffff62766c0 (LWP 61490) (id 2)]
+[New Thread 0x7ffff5a756c0 (LWP 61491) (id 3)]
+[New Thread 0x7ffff50386c0 (LWP 61493) (id 4)]
+[New Thread 0x7ffff48376c0 (LWP 61494) (id 5)]
+[New Thread 0x7fffe7fff6c0 (LWP 61495) (id 6)]
+[New Thread 0x7fffe77fe6c0 (LWP 61496) (id 7)]
+[Thread 0x7fffe77fe6c0 (LWP 61496) (id 7) exited]
+[Thread 0x7fffe7fff6c0 (LWP 61495) (id 6) exited]
+[Thread 0x7ffff48376c0 (LWP 61494) (id 5) exited]
+
+Thread 1 "tudor_cli" hit Breakpoint 1, tudor_open (device=0x7fffffffccd0, usb_dev=0x5555555bece0, state=0x0) at ../libtudor/src/tudor/driver_wudf1.cpp:2119
+2119	{
+Breakpoint 2 at 0x7ffff506d314
+
+Thread 1 "tudor_cli" hit Breakpoint 2, 0x00007ffff506d314 in ?? ()
+ctx=0x5555555b2a20 vt=0x7ffff5152e08
+=== our class vtables (runtime addrs) ===
+$1 = (void *) 0x7ffff7c7ab78 <vtable for MyQueue>
+$2 = (void *) 0x7ffff7c7aa10 <vtable for MyDevice>
+$3 = (void *) 0x7ffff7c7ac58 <vtable for MyRequest>
+$4 = (void *) 0x7ffff7c7ad60 <vtable for MyMem>
+$5 = (void *) 0x7ffff7c7a990 <vtable for MyDriver>
+$6 = (void *) 0x7ffff7c7ac28 <vtable for MyPropertyStoreFactory>
+$7 = (void *) 0x7ffff7c7ae58 <vtable for MyDevInit>
+$8 = (void *) 0x7ffff7c7ade0 <vtable for MyNamedPropertyStore>

+ 55 - 0
work/debug/gdb_watch.txt

@@ -0,0 +1,55 @@
+
+This GDB supports auto-downloading debuginfo from the following URLs:
+  <https://debuginfod.archlinux.org>
+Debuginfod has been disabled.
+To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
+[Thread debugging using libthread_db enabled]
+Using host libthread_db library "/usr/lib/libthread_db.so.1".
+[New Thread 0x7ffff62766c0 (LWP 28441) (id 2)]
+[New Thread 0x7ffff5a756c0 (LWP 28442) (id 3)]
+[New Thread 0x7ffff50386c0 (LWP 28444) (id 4)]
+[New Thread 0x7ffff48376c0 (LWP 28445) (id 5)]
+[New Thread 0x7fffe7fff6c0 (LWP 28446) (id 6)]
+[New Thread 0x7fffe77fe6c0 (LWP 28447) (id 7)]
+[Thread 0x7fffe77fe6c0 (LWP 28447) (id 7) exited]
+[Thread 0x7fffe7fff6c0 (LWP 28446) (id 6) exited]
+[Thread 0x7ffff48376c0 (LWP 28445) (id 5) exited]
+
+Thread 1 "tudor_cli" received signal SIGSEGV, Segmentation fault.
+0x00007ffff5138c33 in ?? ()
+--- crash regs ---
+rsp            0x7fffffffc038      0x7fffffffc038
+rbp            0x7fffffffc5d0      0x7fffffffc5d0
+rbx            0x1                 1
+r12            0x7ffff6cc1168      140737333956968
+r13            0x2                 2
+r14            0x5555555efcc0      93824992869568
+r15            0x55555555cd98      93824992267672
+--- around rsp ---
+0x7fffffffc038:	0x00007ffff51132e9	0x0000000000000001
+0x7fffffffc048:	0x00007ffff5072c78	0xa598a580a578a570
+0x7fffffffc058:	0x00007ffff50b972d	0x00005555555bfc50
+0x7fffffffc068:	0x00007ffff50806f6	0x00005555555d3e30
+0x7fffffffc078:	0x00ff00fd00fb00f9	0x0000000000000002
+0x7fffffffc088:	0xaec8aec0aeb8aeb0	0x0000000000000000
+0x7fffffffc098:	0x0000000000000000	0x00005555555edab0
+0x7fffffffc0a8:	0x00007fff00000002	0x00005555555d3e30
+0x7fffffffc0b8:	0x0000000000000000	0x0000000000000000
+0x7fffffffc0c8:	0x00005555555bfc50	0x00007fffffffc188
+0x7fffffffc0d8:	0x00007ffff507eb0b	0x00005555555d89a0
+0x7fffffffc0e8:	0x00007fffffffc178	0x0000000000000004
+0x7fffffffc0f8:	0x0000000000000000	0x00007fff0000006e
+0x7fffffffc108:	0x00005555555edab0	0x00007fffffffc5d0
+0x7fffffffc118:	0x00007ffff5053a44	0x00005555555d89a0
+0x7fffffffc128:	0x00007fffffffc178	0x0000000000000000
+0x7fffffffc138:	0x0000000000000000	0x00007fffffffc210
+0x7fffffffc148:	0x00007ffff7c2ec1f	0x0000000000000000
+0x7fffffffc158:	0x00000001f507a477	0xa598a580a578a570
+0x7fffffffc168:	0xa5d8a5c8a5b8a5a8	0xa4f8a4f0a4e8a4e0
+--- watch main thread rbx slot ---
+[Switching to thread 1 (Thread 0x7ffff7bab500 (LWP 28438))]
+#0  0x00007ffff5138c33 in ?? ()
+Hardware watchpoint 1: *(long*)($sp0+240)
+/tmp/opencode/gdb5.txt:15: Error in sourced command file:
+Couldn't get registers: No such process.
+[Thread 0x7ffff7bab500 (LWP 28438) (id 1) exited]

+ 3 - 0
work/debug/gdb_watch2.txt

@@ -0,0 +1,3 @@
+Function "thread_wait" not defined.
+/tmp/opencode/gdb6.txt:7: Error in sourced command file:
+Argument required (one or more breakpoint numbers).

+ 43 - 0
work/debug/gdb_watch3.txt

@@ -0,0 +1,43 @@
+Function "evt_wait" not defined.
+Breakpoint 1 (evt_wait) pending.
+
+This GDB supports auto-downloading debuginfo from the following URLs:
+  <https://debuginfod.archlinux.org>
+Debuginfod has been disabled.
+To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
+[Thread debugging using libthread_db enabled]
+Using host libthread_db library "/usr/lib/libthread_db.so.1".
+[New Thread 0x7ffff62766c0 (LWP 29523) (id 2)]
+[New Thread 0x7ffff5a756c0 (LWP 29524) (id 3)]
+[New Thread 0x7ffff50386c0 (LWP 29526) (id 4)]
+[Switching to thread 4 (Thread 0x7ffff50386c0 (LWP 29526))]
+[New Thread 0x7ffff48376c0 (LWP 29527) (id 5)]
+[New Thread 0x7fffe7fff6c0 (LWP 29528) (id 6)]
+[New Thread 0x7fffe77fe6c0 (LWP 29529) (id 7)]
+[Thread 0x7fffe77fe6c0 (LWP 29529) (id 7) exited]
+[Thread 0x7fffe7fff6c0 (LWP 29528) (id 6) exited]
+[Thread 0x7ffff48376c0 (LWP 29527) (id 5) exited]
+
+Thread 1 "tudor_cli" received signal SIGSEGV, Segmentation fault.
+[Switching to thread 1 (Thread 0x7ffff7bab500 (LWP 29520))]
+0x00007ffff5138c33 in ?? ()
+--- watch hit ---
+#0  0x00007ffff5138c33 in ?? ()
+#1  0x00007ffff51132e9 in ?? ()
+#2  0x0000000000000001 in ?? ()
+#3  0x00007ffff5072c78 in ?? ()
+#4  0xa598a580a578a570 in ?? ()
+#5  0x00007ffff50b972d in ?? ()
+#6  0x00005555555d3ac0 in ?? ()
+#7  0x00007ffff50806f6 in ?? ()
+rip            0x7ffff5138c33      0x7ffff5138c33
+rsp            0x7fffffffc038      0x7fffffffc038
+rbp            0x7fffffffc5d0      0x7fffffffc5d0
+   0x7ffff5138c23:	add    %cl,-0x75(%rcx)
+   0x7ffff5138c26:	ret
+   0x7ffff5138c27:	ret
+   0x7ffff5138c28:	movzbq (%rdx),%rax
+   0x7ffff5138c2c:	mov    %al,(%r10)
+   0x7ffff5138c2f:	mov    %r11,%rax
+   0x7ffff5138c32:	ret
+=> 0x7ffff5138c33:	movzwq (%rdx),%rax

+ 33 - 0
work/debug/gdb_wp.txt

@@ -0,0 +1,33 @@
+Breakpoint 1 at 0x2250
+
+This GDB supports auto-downloading debuginfo from the following URLs:
+  <https://debuginfod.archlinux.org>
+Debuginfod has been disabled.
+To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
+[Thread debugging using libthread_db enabled]
+Using host libthread_db library "/usr/lib/libthread_db.so.1".
+[New Thread 0x7ffff62766c0 (LWP 64771) (id 2)]
+[New Thread 0x7ffff5a756c0 (LWP 64772) (id 3)]
+[New Thread 0x7ffff50386c0 (LWP 64775) (id 4)]
+[New Thread 0x7ffff48376c0 (LWP 64776) (id 5)]
+[New Thread 0x7fffe7fff6c0 (LWP 64777) (id 6)]
+[New Thread 0x7fffe77fe6c0 (LWP 64778) (id 7)]
+[Thread 0x7fffe77fe6c0 (LWP 64778) (id 7) exited]
+[Thread 0x7fffe7fff6c0 (LWP 64777) (id 6) exited]
+[Thread 0x7ffff48376c0 (LWP 64776) (id 5) exited]
+
+Thread 1 "tudor_cli" hit Breakpoint 1, tudor_open (device=0x7fffffffccd0, usb_dev=0x5555555bece0, state=0x0) at ../libtudor/src/tudor/driver_wudf1.cpp:2149
+2149	{
+Breakpoint 2 at 0x7ffff7c59761: file ../libtudor/src/tudor/driver_wudf1.cpp, line 1288.
+
+Thread 1 "tudor_cli" received signal SIGSEGV, Segmentation fault.
+0x00007ffff506d314 in ?? ()
+=== CreateDeviceInterface: dump device ctx candidates ===
+rcx            0x0                 0
+rdx            0x8                 8
+r8             0x0                 0
+r9             0x0                 0
+Breakpoint 3 at 0x7ffff506d360
+/tmp/opencode/gdb_wp.txt:22: Error in sourced command file:
+Couldn't get registers: No such process.
+[Thread 0x7ffff7426500 (LWP 64768) (id 1) exited]

+ 41 - 0
work/debug/gdb_wp3.txt

@@ -0,0 +1,41 @@
+Breakpoint 1 at 0x2250
+
+This GDB supports auto-downloading debuginfo from the following URLs:
+  <https://debuginfod.archlinux.org>
+Debuginfod has been disabled.
+To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
+[Thread debugging using libthread_db enabled]
+Using host libthread_db library "/usr/lib/libthread_db.so.1".
+[New Thread 0x7ffff62766c0 (LWP 64833) (id 2)]
+[New Thread 0x7ffff5a756c0 (LWP 64834) (id 3)]
+[New Thread 0x7ffff50386c0 (LWP 64837) (id 4)]
+[New Thread 0x7ffff48376c0 (LWP 64838) (id 5)]
+[New Thread 0x7fffe7fff6c0 (LWP 64839) (id 6)]
+[New Thread 0x7fffe77fe6c0 (LWP 64840) (id 7)]
+[Thread 0x7fffe77fe6c0 (LWP 64840) (id 7) exited]
+[Thread 0x7fffe7fff6c0 (LWP 64839) (id 6) exited]
+[Thread 0x7ffff48376c0 (LWP 64838) (id 5) exited]
+
+Thread 1 "tudor_cli" hit Breakpoint 1, tudor_open (device=0x7fffffffccd0, usb_dev=0x5555555bece0, state=0x0) at ../libtudor/src/tudor/driver_wudf1.cpp:2149
+2149	{
+Breakpoint 2 at 0x7ffff7c59761: file ../libtudor/src/tudor/driver_wudf1.cpp, line 1288.
+
+Thread 1 "tudor_cli" received signal SIGSEGV, Segmentation fault.
+0x00007ffff506d314 in ?? ()
+=== init: CreateDeviceInterface ===
+#0  0x00007ffff506d314 in ?? ()
+#1  0x00005555555b2a20 in ?? ()
+#2  0x00005555555e1660 in ?? ()
+#3  0x00007fffffffc7ec in ?? ()
+--- rcx(this)=(nil) rdx(guid)=0x8 r8=(nil) r9=(nil) ---
+--- caller stack words ---
+0x7fffffffc7a0:	0x00005555555b2a20	0x00005555555e1660
+0x7fffffffc7b0:	0x00007fffffffc7ec	0x00007fffffffc818
+0x7fffffffc7c0:	0x00007fffffffc820	0x00007fffffffc7f0
+0x7fffffffc7d0:	0x00007fffffffc7f8	0x000000000000004d
+0x7fffffffc7e0:	0x00007fff00000000	0x0044202cf741a580
+0x7fffffffc7f0:	0x00007fffffffcba0	0x0000000000000008
+/tmp/opencode/gdb_wp3.txt:23: Error in sourced command file:
+Couldn't get registers: No such process.
+[Thread 0x7ffff7426500 (LWP 64830) (id 1) exited]
+warning: error removing breakpoint 0 at 0x5555555b2a20

+ 21 - 0
work/debug/gdb_wp4.txt

@@ -0,0 +1,21 @@
+Breakpoint 1 at 0x2250
+
+This GDB supports auto-downloading debuginfo from the following URLs:
+  <https://debuginfod.archlinux.org>
+Debuginfod has been disabled.
+To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
+[Thread debugging using libthread_db enabled]
+Using host libthread_db library "/usr/lib/libthread_db.so.1".
+[New Thread 0x7ffff62766c0 (LWP 64903) (id 2)]
+[New Thread 0x7ffff5a756c0 (LWP 64904) (id 3)]
+[New Thread 0x7ffff50386c0 (LWP 64906) (id 4)]
+[New Thread 0x7ffff48376c0 (LWP 64907) (id 5)]
+[New Thread 0x7fffe7fff6c0 (LWP 64908) (id 6)]
+[New Thread 0x7fffe77fe6c0 (LWP 64909) (id 7)]
+[Thread 0x7fffe77fe6c0 (LWP 64909) (id 7) exited]
+[Thread 0x7fffe7fff6c0 (LWP 64908) (id 6) exited]
+[Thread 0x7ffff48376c0 (LWP 64907) (id 5) exited]
+
+Thread 1 "tudor_cli" hit Breakpoint 1, tudor_open (device=0x7fffffffccd0, usb_dev=0x5555555bece0, state=0x0) at ../libtudor/src/tudor/driver_wudf1.cpp:2149
+2149	{
+Breakpoint 2 at 0x7ffff7c59618: file ../libtudor/src/tudor/driver_wudf1.cpp, line 1281.

+ 37 - 0
work/debug/gdb_wrap.txt

@@ -0,0 +1,37 @@
+Breakpoint 1 at 0x2250
+
+This GDB supports auto-downloading debuginfo from the following URLs:
+  <https://debuginfod.archlinux.org>
+Debuginfod has been disabled.
+To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
+[Thread debugging using libthread_db enabled]
+Using host libthread_db library "/usr/lib/libthread_db.so.1".
+[New Thread 0x7ffff62766c0 (LWP 62603) (id 2)]
+[New Thread 0x7ffff5a756c0 (LWP 62604) (id 3)]
+[New Thread 0x7ffff50386c0 (LWP 62606) (id 4)]
+[New Thread 0x7ffff48376c0 (LWP 62607) (id 5)]
+[New Thread 0x7fffe7fff6c0 (LWP 62608) (id 6)]
+[New Thread 0x7fffe77fe6c0 (LWP 62609) (id 7)]
+[Thread 0x7fffe77fe6c0 (LWP 62609) (id 7) exited]
+[Thread 0x7fffe7fff6c0 (LWP 62608) (id 6) exited]
+[Thread 0x7ffff48376c0 (LWP 62607) (id 5) exited]
+
+Thread 1 "tudor_cli" hit Breakpoint 1, tudor_open (device=0x7fffffffccd0, usb_dev=0x5555555bece0, state=0x0) at ../libtudor/src/tudor/driver_wudf1.cpp:2149
+2149	{
+Breakpoint 2 at 0x7ffff504f3f0
+Breakpoint 3 at 0x7ffff5055c54
+Breakpoint 4 at 0x7ffff50a7a49
+
+Thread 1 "tudor_cli" received signal SIGSEGV, Segmentation fault.
+0x00007ffff506d314 in ?? ()
+=== one of the factory/write sites hit ===
+rip            0x7ffff506d314      0x7ffff506d314
+rcx            0x0                 0
+rdx            0x8                 8
+r8             0x0                 0
+#0  0x00007ffff506d314 in ?? ()
+#1  0x00005555555b2a20 in ?? ()
+#2  0x00005555555e1660 in ?? ()
+#3  0x00007fffffffc7ec in ?? ()
+#4  0x00007fffffffc818 in ?? ()
+#5  0x00007fffffffc820 in ?? ()

+ 44 - 0
work/debug/maps_crash.txt

@@ -0,0 +1,44 @@
+559650c7b000-559650c8b000 r--p 00000000 103:02 21536922                  /usr/bin/zsh
+559650c8b000-559650d48000 r-xp 00010000 103:02 21536922                  /usr/bin/zsh
+559650d48000-559650d60000 r--p 000cd000 103:02 21536922                  /usr/bin/zsh
+559650d60000-559650d62000 r--p 000e5000 103:02 21536922                  /usr/bin/zsh
+559650d62000-559650d68000 rw-p 000e7000 103:02 21536922                  /usr/bin/zsh
+559650d68000-559650d7c000 rw-p 00000000 00:00 0 
+5596741e8000-559674209000 rw-p 00000000 00:00 0                          [heap]
+7ff09b800000-7ff09bc3d000 r--p 00000000 103:02 21545926                  /usr/lib/locale/locale-archive
+7ff09be00000-7ff09be24000 r--p 00000000 103:02 21510915                  /usr/lib/libc.so.6
+7ff09be24000-7ff09bf9f000 r-xp 00024000 103:02 21510915                  /usr/lib/libc.so.6
+7ff09bf9f000-7ff09c015000 r--p 0019f000 103:02 21510915                  /usr/lib/libc.so.6
+7ff09c015000-7ff09c019000 r--p 00214000 103:02 21510915                  /usr/lib/libc.so.6
+7ff09c019000-7ff09c01b000 rw-p 00218000 103:02 21510915                  /usr/lib/libc.so.6
+7ff09c01b000-7ff09c023000 rw-p 00000000 00:00 0 
+7ff09c0c4000-7ff09c0cb000 r--s 00000000 103:02 21545938                  /usr/lib/gconv/gconv-modules.cache
+7ff09c0cb000-7ff09c0d1000 rw-p 00000000 00:00 0 
+7ff09c0d1000-7ff09c0e1000 r--p 00000000 103:02 21516145                  /usr/lib/libm.so.6
+7ff09c0e1000-7ff09c17d000 r-xp 00010000 103:02 21516145                  /usr/lib/libm.so.6
+7ff09c17d000-7ff09c206000 r--p 000ac000 103:02 21516145                  /usr/lib/libm.so.6
+7ff09c206000-7ff09c207000 r--p 00134000 103:02 21516145                  /usr/lib/libm.so.6
+7ff09c207000-7ff09c208000 rw-p 00135000 103:02 21516145                  /usr/lib/libm.so.6
+7ff09c208000-7ff09c215000 r--p 00000000 103:02 21499615                  /usr/lib/libncursesw.so.6.6
+7ff09c215000-7ff09c25d000 r-xp 0000d000 103:02 21499615                  /usr/lib/libncursesw.so.6.6
+7ff09c25d000-7ff09c273000 r--p 00055000 103:02 21499615                  /usr/lib/libncursesw.so.6.6
+7ff09c273000-7ff09c278000 r--p 0006a000 103:02 21499615                  /usr/lib/libncursesw.so.6.6
+7ff09c278000-7ff09c279000 rw-p 0006f000 103:02 21499615                  /usr/lib/libncursesw.so.6.6
+7ff09c279000-7ff09c27c000 r--p 00000000 103:02 21508294                  /usr/lib/libcap.so.2.78
+7ff09c27c000-7ff09c281000 r-xp 00003000 103:02 21508294                  /usr/lib/libcap.so.2.78
+7ff09c281000-7ff09c283000 r--p 00008000 103:02 21508294                  /usr/lib/libcap.so.2.78
+7ff09c283000-7ff09c284000 r--p 00009000 103:02 21508294                  /usr/lib/libcap.so.2.78
+7ff09c284000-7ff09c285000 rw-p 0000a000 103:02 21508294                  /usr/lib/libcap.so.2.78
+7ff09c285000-7ff09c287000 rw-p 00000000 00:00 0 
+7ff09c287000-7ff09c2ba000 r--p 00000000 103:02 24773528                  /etc/ld.so.cache
+7ff09c2ba000-7ff09c2be000 r--p 00000000 00:00 0                          [vvar]
+7ff09c2be000-7ff09c2c0000 r--p 00000000 00:00 0                          [vvar_vclock]
+7ff09c2c0000-7ff09c2c2000 r-xp 00000000 00:00 0                          [vdso]
+7ff09c2c2000-7ff09c2c3000 r--p 00000000 103:02 21510399                  /usr/lib/ld-linux-x86-64.so.2
+7ff09c2c3000-7ff09c2f0000 r-xp 00001000 103:02 21510399                  /usr/lib/ld-linux-x86-64.so.2
+7ff09c2f0000-7ff09c2ff000 r--p 0002e000 103:02 21510399                  /usr/lib/ld-linux-x86-64.so.2
+7ff09c2ff000-7ff09c301000 r--p 0003d000 103:02 21510399                  /usr/lib/ld-linux-x86-64.so.2
+7ff09c301000-7ff09c302000 rw-p 0003f000 103:02 21510399                  /usr/lib/ld-linux-x86-64.so.2
+7ff09c302000-7ff09c303000 rw-p 00000000 00:00 0 
+7ffed9acb000-7ffed9aed000 rw-p 00000000 00:00 0                          [stack]
+ffffffffff600000-ffffffffff601000 --xp 00000000 00:00 0                  [vsyscall]

+ 12 - 0
work/debug/run_aexe.sh

@@ -0,0 +1,12 @@
+#!/bin/bash
+# Run the Wine validity sandbox with the environment the fake winusb expects.
+# Usage: run_aexe.sh [nop|enroll|identify] [binary]   (binary defaults to a.exe)
+export WINEPREFIX=/home/nebulon/projects/fingerprint/work/wineprefix-48
+export WINEDEBUG=+winusb,warn+winusb,+usb
+WINE64=/home/nebulon/projects/fingerprint/work/wine-build/install/bin/wine64
+cd /home/nebulon/projects/fingerprint/work/synaWudfBioUsb-sandbox || exit 1
+export USB_SCRIPT="/home/nebulon/projects/fingerprint/work/debug/usb-$(date +%s).txt"
+export USB_PLAYBACK=""
+touch "$USB_SCRIPT"
+BIN="${2:-a.exe}"
+"$WINE64" "$BIN" "${1:-nop}"

+ 10 - 0
work/debug/run_cli.sh

@@ -0,0 +1,10 @@
+#!/bin/bash
+# Wrapper to run the tudor CLI in a proper pseudo-terminal with the library
+# paths set, so fingerprint enrollment/login commands work interactively.
+set -e
+
+BUILD="/home/nebulon/projects/fingerprint/work/synaTudor/build"
+DATASTORE="${1:-/home/nebulon/projects/fingerprint/work/debug/datastore.bin}"
+
+cd "$BUILD"
+exec script -qec "./cli/tudor_cli '$DATASTORE'" /dev/null

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 48 - 0
work/debug/verify_result_SUCCESS.txt


+ 17 - 0
work/fp-pam.sh

@@ -0,0 +1,17 @@
+#!/bin/bash
+# PAM entry point for fingerprint auth (sudo / polkit).
+# Expected context: pam_exec runs this as root -> drop fully to nebulon
+# (Wine checks the REAL uid against the prefix owner; pam_exec's seteuid alone
+# is not enough and setpriv then fails with exit 127).
+# success => exit 0 => PAM_SUCCESS; anything else => fallback to password.
+export PATH=/usr/local/bin:/usr/bin:/bin
+export HOME=/home/nebulon
+export FP_VERIFY_TIMEOUT="${FP_VERIFY_TIMEOUT:-15}"
+
+if [ "$(id -u)" = "0" ]; then
+    exec setpriv --reuid=nebulon --regid=nebulon --init-groups \
+        /home/nebulon/projects/fingerprint/work/fp-verify.sh
+else
+    # already the target user (manual test / corrected PAM context)
+    exec /home/nebulon/projects/fingerprint/work/fp-verify.sh
+fi

+ 44 - 0
work/fp-verify.sh

@@ -0,0 +1,44 @@
+#!/bin/bash
+# Fingerprint verification via the Wine sandbox + hacked winusb + vendor driver.
+# Usage: fp-verify.sh   (touch the sensor when the log says it waits)
+# Exit codes: 0 = MATCH (enrolled "Unicorn" record returned), 1 = no match, 2 = error/timeout
+set -u
+
+export PATH=/usr/local/bin:/usr/bin:/bin
+ROOT=/home/nebulon/projects/fingerprint
+SANDBOX=$ROOT/work/synaWudfBioUsb-sandbox
+export HOME="${HOME:-/home/nebulon}"
+export WINEPREFIX=$ROOT/work/wineprefix-48
+export WINEDEBUG=-all
+export USB_SCRIPT=$ROOT/work/debug/usb-verify-$(date +%s).txt
+export USB_PLAYBACK=""
+touch "$USB_SCRIPT"
+
+mkdir -p /tmp/opencode 2>/dev/null
+LOG=/tmp/opencode/fp-verify-last.log
+cd "$SANDBOX" || exit 2
+
+# self-heal: the device spec the driver reads (sandbox copy + Wine C: drive)
+[ -f usb.txt ] || echo "06cb:0081" > usb.txt
+USB_TXT="$WINEPREFIX/drive_c/usb.txt"
+if [ ! -f "$USB_TXT" ]; then
+    mkdir -p "$(dirname "$USB_TXT")" 2>/dev/null
+    echo "06cb:0081" > "$USB_TXT" 2>/dev/null || true
+fi
+
+[ "${FP_VERIFY_QUIET:-0}" = "1" ] || echo "Fingerprint: touch the reader (or wait for the password prompt)..."
+
+timeout -k 5 "${FP_VERIFY_TIMEOUT:-90}" \
+    "$ROOT/work/wine-build/install/bin/wine64" verify.exe > "$LOG" 2>&1
+rc=$?
+
+if grep -q "556e69636f726e" "$LOG"; then           # hex of "Unicorn"
+    echo "Fingerprint matched."
+    exit 0
+elif [ "$rc" -eq 124 ] || [ "$rc" -eq 137 ]; then
+    echo "No fingerprint detected - falling back to password."
+    exit 2
+else
+    echo "Fingerprint did not match - falling back to password."
+    exit 1
+fi

+ 21 - 0
work/pam/Makefile

@@ -0,0 +1,21 @@
+# pam_fp.so - fingerprint OR password race for PAM (sudo)
+# Usage: make            -> builds pam_fp.so + pamtest
+#        make install    -> needs root: writes the PAM config lines
+all: pam_fp.so pamtest
+
+pam_fp.so: pam_fp.c
+	gcc -shared -fPIC -O2 -Wall -Wextra -o $@ $< -lpam
+
+pamtest: pamtest.c
+	gcc -O2 -Wall -o $@ $< -lpam
+
+install: pam_fp.so
+	./install.sh
+
+test: pamtest
+	./pamtest "$${USER:-nebulon}"
+
+clean:
+	rm -f pam_fp.so pamtest
+
+.PHONY: all install test clean

+ 53 - 0
work/pam/install.sh

@@ -0,0 +1,53 @@
+#!/bin/bash
+# Install the fingerprint PAM integration. Run with sudo:
+#   sudo work/pam/install.sh
+#
+# - sudo:   pam_fp.so  -> finger OR password concurrently (no timeout wait)
+# - polkit: pam_exec + fp-pam.sh -> finger first, then password (sequential)
+# - /etc/pam.d/fptest: safe test service for work/pam/pamtest
+#
+# Rollback:
+#   cp /etc/pam.d/sudo.bak-fp /etc/pam.d/sudo   (restores pre-install config)
+#   rm /etc/pam.d/polkit-1 /etc/pam.d/fptest
+set -eu
+
+[ "$(id -u)" = "0" ] || { echo "run with sudo" >&2; exit 1; }
+
+ROOT=/home/nebulon/projects/fingerprint
+MOD=$ROOT/work/pam/pam_fp.so
+EXEC=$ROOT/work/fp-pam.sh
+
+[ -f "$MOD" ]  || { echo "missing $MOD - build it: cd work/pam && make" >&2; exit 1; }
+[ -f "$EXEC" ] || { echo "missing $EXEC" >&2; exit 1; }
+
+# --- sudo: replace line 1 with the pam_fp.so entry (fingerprint OR password) ---
+[ -f /etc/pam.d/sudo.bak-fp ] || cp /etc/pam.d/sudo /etc/pam.d/sudo.bak-fp
+if head -1 /etc/pam.d/sudo | grep -qF "pam_fp.so"; then
+    echo "sudo: already configured"
+else
+    sed -i "1s|.*|auth sufficient $MOD|" /etc/pam.d/sudo
+    echo "sudo: pam_fp.so installed as line 1"
+fi
+
+# --- polkit: local override, pam_exec sequential (GUI has no tty to race) ---
+if [ ! -f /etc/pam.d/polkit-1 ]; then
+    cp /usr/lib/pam.d/polkit-1 /etc/pam.d/polkit-1
+fi
+if head -1 /etc/pam.d/polkit-1 | grep -qF "fp-pam.sh"; then
+    echo "polkit: already configured"
+else
+    sed -i "1s|.*|auth sufficient pam_exec.so stdout quiet $EXEC|" /etc/pam.d/polkit-1
+    echo "polkit: pam_exec installed as line 1"
+fi
+
+# --- test service ---
+cat > /etc/pam.d/fptest <<EOF
+#%PAM-1.0
+auth sufficient $MOD debug
+auth required pam_unix.so
+EOF
+echo "fptest: test service written"
+
+echo
+echo "Test:      cd $ROOT/work/pam && sudo ./pamtest nebulon"
+echo "Rollback:  cp /etc/pam.d/sudo.bak-fp /etc/pam.d/sudo && rm /etc/pam.d/polkit-1 /etc/pam.d/fptest"

+ 366 - 0
work/pam/pam_fp.c

@@ -0,0 +1,366 @@
+/*
+ * pam_fp.so - fingerprint OR password, whichever comes first.
+ *
+ * Terminal case (sudo):
+ *   - starts the fingerprint check (fp-pam.sh) in the background
+ *   - immediately prints "Touch the sensor or type your password:"
+ *   - waits for EITHER:
+ *       * sensor match          -> PAM_SUCCESS
+ *       * submitted password    -> validated via system-auth (pam_unix,
+ *                                  faillock, etc.) -> PAM_SUCCESS / fallback
+ *       * empty line (Enter)    -> fallback to the normal password prompt
+ *       * finger check gives up -> fallback
+ *   - terminal echo is disabled while waiting and always restored
+ *
+ * Non-terminal (polkit GUI): sequential fingerprint check, then fallback.
+ *
+ * Module args: debug | command=/path | finger_timeout=SECONDS
+ * Build: gcc -shared -fPIC -O2 -Wall -o pam_fp.so pam_fp.c -lpam
+ */
+#define _GNU_SOURCE
+#include <errno.h>
+#include <fcntl.h>
+#include <poll.h>
+#include <signal.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <syslog.h>
+#include <sys/types.h>
+#include <sys/wait.h>
+#include <termios.h>
+#include <unistd.h>
+
+#include <security/pam_appl.h>
+#include <security/pam_ext.h>
+#include <security/pam_modules.h>
+
+#define FP_CMD_DEFAULT "/home/nebulon/projects/fingerprint/work/fp-pam.sh"
+#define FP_TIMEOUT_DEFAULT 45
+#define POLL_MS 200
+
+static int opt_debug;
+static const char *opt_cmd = FP_CMD_DEFAULT;
+static int opt_timeout = FP_TIMEOUT_DEFAULT;
+static volatile sig_atomic_t g_signal;
+
+/* ------------------------ password validation (recursive PAM) ------------- */
+struct conv_pw { const char *pw; };
+
+static int sub_conv(int n, const struct pam_message **msg,
+                    struct pam_response **resp, void *data)
+{
+    struct conv_pw *cd = data;
+    struct pam_response *r;
+    int i;
+
+    if (n <= 0 || !resp)
+        return PAM_CONV_ERR;
+    r = calloc((size_t)n, sizeof(*r));
+    if (!r)
+        return PAM_BUF_ERR;
+    for (i = 0; i < n; i++) {
+        if (msg[i]->msg_style == PAM_PROMPT_ECHO_OFF ||
+            msg[i]->msg_style == PAM_PROMPT_ECHO_ON) {
+            r[i].resp = cd->pw ? strdup(cd->pw) : NULL;
+            if (!r[i].resp) {
+                while (--i >= 0)
+                    free(r[i].resp);
+                free(r);
+                return PAM_BUF_ERR;
+            }
+        }
+        r[i].resp_retcode = 0;
+    }
+    *resp = r;
+    return PAM_SUCCESS;
+}
+
+static int validate_password(const char *user, const char *pw)
+{
+    pam_handle_t *sub = NULL;
+    struct conv_pw cd = { pw };
+    struct pam_conv conv = { sub_conv, &cd };
+    int ret;
+
+    ret = pam_start("system-auth", user, &conv, &sub);
+    if (ret != PAM_SUCCESS)
+        return ret;
+    pam_set_item(sub, PAM_AUTHTOK, pw);
+    ret = pam_authenticate(sub, 0);
+    pam_end(sub, ret);
+    return ret;
+}
+
+/* ------------------------ fingerprint child ------------------------------ */
+static pid_t spawn_fp(void)
+{
+    pid_t pid;
+    char tbuf[16];
+
+    pid = fork();
+    if (pid < 0)
+        return -1;
+    if (pid == 0) {
+        char *argv[2];
+        int dn_r, dn_w;
+
+        setsid();
+        dn_r = open("/dev/null", O_RDONLY);
+        dn_w = open("/dev/null", O_WRONLY);
+        if (dn_r >= 0)
+            dup2(dn_r, 0);
+        if (dn_w >= 0) {
+            dup2(dn_w, 1);
+            dup2(dn_w, 2);
+        }
+        snprintf(tbuf, sizeof(tbuf), "%d", opt_timeout);
+        setenv("FP_VERIFY_TIMEOUT", tbuf, 1);
+        setenv("FP_VERIFY_QUIET", "1", 1);
+        argv[0] = (char *)opt_cmd;
+        argv[1] = NULL;
+        execv(opt_cmd, argv);
+        _exit(127);
+    }
+    return pid;
+}
+
+/* returns 1 if the child has exited (matched set), 0 if still running */
+static int child_done(pid_t pid, int *matched)
+{
+    int st;
+    pid_t r = waitpid(pid, &st, WNOHANG);
+
+    if (r == 0)
+        return 0;
+    if (r < 0)
+        return errno == EINTR ? 0 : 1;
+    *matched = WIFEXITED(st) && WEXITSTATUS(st) == 0;
+    return 1;
+}
+
+static void kill_fp(pid_t pid)
+{
+    int st;
+
+    if (pid <= 0)
+        return;
+    kill(-pid, SIGKILL);   /* child called setsid(): kills whole tree */
+    while (waitpid(pid, &st, 0) < 0 && errno == EINTR)
+        ;
+}
+
+/* ------------------------ tty helpers ------------------------------------ */
+static int read_line(int fd, char *buf, size_t len)
+{
+    size_t off = 0;
+
+    while (off + 1 < len) {
+        ssize_t n = read(fd, buf + off, 1);
+        if (n < 0) {
+            if (errno == EINTR) {
+                if (g_signal)
+                    return -2;
+                continue;
+            }
+            return -1;
+        }
+        if (n == 0)
+            return -2;
+        if (buf[off] == '\n')
+            break;
+        off++;
+    }
+    buf[off] = '\0';
+    if (off > 0 && buf[off - 1] == '\r')
+        buf[off - 1] = '\0';
+    return (int)strlen(buf);
+}
+
+static void tty_write(int fd, const char *s)
+{
+    size_t off = 0, len = strlen(s);
+
+    while (off < len) {
+        ssize_t n = write(fd, s + off, len - off);
+        if (n < 0) {
+            if (errno == EINTR)
+                continue;
+            return;
+        }
+        off += (size_t)n;
+    }
+}
+
+/* ------------------------ signal handling -------------------------------- */
+static void on_signal(int sig)
+{
+    g_signal = sig;
+}
+
+/* ------------------------ module entry points ---------------------------- */
+static void parse_args(int argc, const char **argv)
+{
+    int i;
+
+    for (i = 0; i < argc; i++) {
+        if (strcmp(argv[i], "debug") == 0)
+            opt_debug = 1;
+        else if (strncmp(argv[i], "command=", 8) == 0)
+            opt_cmd = argv[i] + 8;
+        else if (strncmp(argv[i], "finger_timeout=", 15) == 0)
+            opt_timeout = atoi(argv[i] + 15);
+    }
+}
+
+PAM_EXTERN int pam_sm_authenticate(pam_handle_t *pamh, int flags,
+                                   int argc, const char **argv)
+{
+    const char *user = NULL;
+    pid_t pid;
+    int ttyfd, use_tty;
+    int matched = 0, ret = PAM_AUTH_ERR;
+    struct termios oldt, newt;
+    struct sigaction sa, old_int, old_term;
+    int have_termios = 0;
+
+    (void)flags;
+    parse_args(argc, argv);
+    pam_get_user(pamh, &user, NULL);
+    if (!user)
+        user = "unknown";
+
+    ttyfd = open("/dev/tty", O_RDWR | O_NOCTTY);
+    if (ttyfd < 0 && isatty(STDIN_FILENO))
+        ttyfd = STDIN_FILENO;
+    use_tty = ttyfd >= 0 && isatty(ttyfd);
+
+    pam_syslog(pamh, LOG_NOTICE, "pam_fp: start user=%s tty=%d timeout=%d",
+               user, use_tty, opt_timeout);
+    if (opt_debug)
+        pam_syslog(pamh, LOG_DEBUG, "pam_fp: cmd=%s", opt_cmd);
+
+    pid = spawn_fp();
+    if (pid < 0) {
+        pam_syslog(pamh, LOG_ERR, "pam_fp: cannot start fingerprint check");
+        if (ttyfd >= 0 && ttyfd != STDIN_FILENO)
+            close(ttyfd);
+        return PAM_AUTHINFO_UNAVAIL;
+    }
+
+    if (!use_tty) {
+        /* sequential: wait for the finger check only */
+        int st;
+
+        while (waitpid(pid, &st, 0) < 0 && errno == EINTR)
+            ;
+        matched = WIFEXITED(st) && WEXITSTATUS(st) == 0;
+        if (matched) {
+            pam_syslog(pamh, LOG_NOTICE, "pam_fp: %s matched (sensor)", user);
+            ret = PAM_SUCCESS;
+        } else {
+            pam_syslog(pamh, LOG_NOTICE, "pam_fp: %s no sensor match", user);
+            ret = PAM_AUTH_ERR;
+        }
+        if (ttyfd >= 0 && ttyfd != STDIN_FILENO)
+            close(ttyfd);
+        return ret;
+    }
+
+    /* --- interactive: race password vs sensor --- */
+    if (tcgetattr(ttyfd, &oldt) == 0) {
+        newt = oldt;
+        newt.c_lflag &= (tcflag_t)~ECHO;
+        if (tcsetattr(ttyfd, TCSANOW, &newt) == 0)
+            have_termios = 1;
+    }
+
+    memset(&sa, 0, sizeof(sa));
+    sa.sa_handler = on_signal;
+    sigemptyset(&sa.sa_mask);
+    sigaction(SIGINT, &sa, &old_int);
+    sigaction(SIGTERM, &sa, &old_term);
+
+    tty_write(ttyfd, "Fingerprint: touch the sensor or type your password: ");
+
+    while (!g_signal) {
+        struct pollfd fds[1];
+        int n, done;
+
+        done = child_done(pid, &matched);
+        if (done) {
+            if (matched) {
+                tty_write(ttyfd, "\nFingerprint matched.\n");
+                tcflush(ttyfd, TCIFLUSH);
+                ret = PAM_SUCCESS;
+            } else {
+                tty_write(ttyfd, "\nFingerprint not recognized.\n");
+                ret = PAM_AUTH_ERR;
+            }
+            break;
+        }
+
+        fds[0].fd = ttyfd;
+        fds[0].events = POLLIN;
+        n = poll(fds, 1, POLL_MS);
+        if (n < 0) {
+            if (errno == EINTR)
+                continue;
+            break;
+        }
+        if (n > 0 && (fds[0].revents & POLLIN)) {
+            char line[512];
+            int len = read_line(ttyfd, line, sizeof(line));
+
+            if (len == -2) {              /* EOF/Ctrl-D: fall back */
+                tty_write(ttyfd, "\n");
+                ret = PAM_AUTH_ERR;
+                break;
+            }
+            if (len <= 0) {               /* just Enter: skip to password */
+                tty_write(ttyfd, "\n");
+                ret = PAM_AUTH_ERR;
+                break;
+            }
+            if (validate_password(user, line) == PAM_SUCCESS) {
+                tty_write(ttyfd, "\nPassword accepted.\n");
+                ret = PAM_SUCCESS;
+            } else {
+                tty_write(ttyfd, "\nAuthentication failed.\n");
+                ret = PAM_AUTH_ERR;
+            }
+            break;
+        }
+    }
+
+    /* cleanup: always restore terminal and reap the child */
+    if (have_termios)
+        tcsetattr(ttyfd, TCSANOW, &oldt);
+    kill_fp(pid);
+    sigaction(SIGINT, &old_int, NULL);
+    sigaction(SIGTERM, &old_term, NULL);
+    if (ttyfd >= 0 && ttyfd != STDIN_FILENO)
+        close(ttyfd);
+
+    if (g_signal) {
+        int sig = g_signal;
+        pam_syslog(pamh, LOG_NOTICE, "pam_fp: %s interrupted", user);
+        signal(sig, SIG_DFL);
+        raise(sig);
+        return PAM_AUTH_ERR; /* not reached in practice */
+    }
+
+    pam_syslog(pamh, LOG_NOTICE, "pam_fp: user=%s result=%s",
+               user, ret == PAM_SUCCESS ? "success" : "fallback");
+    return ret;
+}
+
+PAM_EXTERN int pam_sm_setcred(pam_handle_t *pamh, int flags, int argc,
+                              const char **argv)
+{
+    (void)pamh;
+    (void)flags;
+    (void)argc;
+    (void)argv;
+    return PAM_SUCCESS;
+}

BIN
work/pam/pam_fp.so


BIN
work/pam/pamtest


+ 36 - 0
work/pam/pamtest.c

@@ -0,0 +1,36 @@
+/*
+ * pamtest.c - minimal PAM client for testing pam_fp.so via the "fptest" service.
+ * Build: gcc -O2 -Wall -o pamtest pamtest.c -lpam
+ * Run:   ./pamtest <username>     (from a terminal; touch sensor or type password)
+ */
+#include <security/pam_appl.h>
+#include <stdio.h>
+#include <stdlib.h>
+
+static int noop_conv(int n, const struct pam_message **m,
+                     struct pam_response **r, void *d)
+{
+    (void)n;
+    (void)m;
+    (void)r;
+    (void)d;
+    return PAM_CONV_ERR;
+}
+
+int main(int argc, char **argv)
+{
+    const char *user = argc > 1 ? argv[1] : getenv("USER");
+    struct pam_conv conv = { noop_conv, NULL };
+    pam_handle_t *pamh = NULL;
+    int ret;
+
+    ret = pam_start("fptest", user, &conv, &pamh);
+    if (ret != PAM_SUCCESS) {
+        printf("pam_start: %s\n", pam_strerror(pamh, ret));
+        return 2;
+    }
+    ret = pam_authenticate(pamh, 0);
+    printf("\npam_authenticate => %d (%s)\n", ret, pam_strerror(pamh, ret));
+    pam_end(pamh, ret);
+    return ret == PAM_SUCCESS ? 0 : 1;
+}

+ 1537 - 0
work/patches/synaTudor-work.patch

@@ -0,0 +1,1537 @@
+diff --git a/libtudor/meson.build b/libtudor/meson.build
+index d2556af..0854792 100644
+--- a/libtudor/meson.build
++++ b/libtudor/meson.build
+@@ -74,23 +74,26 @@ driver_dll_names = [
+ 
+ add_global_arguments('-Wno-incompatible-pointer-types', language : 'c')
+ add_global_arguments('-g', language : ['c', 'cpp'])
+-add_global_arguments('-fsanitize=address', language : ['c', 'cpp'])
++# add_global_arguments('-fsanitize=address', language : ['c', 'cpp'])
+ 
+ 
+ bridge_proj = subproject('cryptbridge')
+ cryptbridge_dep = bridge_proj.get_variable('cryptbridge_dep')
+ 
+ 
+-driver_dlls = custom_target('driver-download', 
+-    output: driver_dll_names,
+-    input: ['download_driver.sh', 'installer.sha'],
+-    command: [find_program('bash'), '@INPUT0@', '@INPUT1@', '@PRIVATE_DIR@', '@OUTDIR@'] + driver_dll_names
+-)
+-
+-driver_dll_blobs = generator(find_program('ld'),
+-    output: '@BASENAME@.o',
+-    arguments: ['-r', '-b', 'binary', '-o', '@OUTPUT@', '@INPUT@']
+-).process([driver_dlls])
++# Local build: use pre-extracted Synaptics 5.5.2731.1050 DLLs instead of
++# the original download_driver.sh (which was hardcoded to the author's machine).
++driver_dlls = []
++foreach n : driver_dll_names
++    driver_dlls += custom_target('blob-' + n,
++        output: n + '.o',
++        input: files('/home/nebulon/projects/fingerprint/driverdlls/' + n),
++        command: ['sh', '-c',
++            'mkdir -p libtudor && cp "$1" "libtudor/$2" && exec ld -r -b binary -o "$3" "libtudor/$2"',
++            'sh', '@INPUT@', n, '@OUTPUT@'],
++        build_by_default: true,
++    )
++endforeach
+ 
+ libtudor_flags = []
+ 
+@@ -110,7 +113,7 @@ libtudor_inc = include_directories('inc')
+ # wudm1_inc = include_directories('src/wudm1_inc')
+ # winapi_inc = include_directories('src/winapi')
+ 
+-libtudor = shared_library('tudor', [libtudor_src, driver_dll_blobs],
++libtudor = shared_library('tudor', [libtudor_src, driver_dlls],
+     dependencies: [thread_dep, libcrypto_dep, libusb_dep, cryptbridge_dep],
+     c_args: ['-D_GNU_SOURCE'] + libtudor_flags,
+     cpp_args: ['-D_GNU_SOURCE'] + libtudor_flags,
+diff --git a/libtudor/src/loader.c b/libtudor/src/loader.c
+index be29477..4402170 100644
+--- a/libtudor/src/loader.c
++++ b/libtudor/src/loader.c
+@@ -67,6 +67,8 @@ bool load_dll(struct dll_image *dll, const char *name, uint8_t *data, uint32_t s
+     //Copy data
+     pe_copy_mem(&pe, 0, pe.image_size, image_mem);
+     log_debug("Copied image memory to mapping at %p - %p", image_mem, image_mem + pe.image_size);
++    //Machine-readable load line for post-mortem crash symbolization
++    fprintf(stderr, "TUDOR_LOAD %s base=%p size=%x\n", name, image_mem, pe.image_size);
+ 
+     //Resolve imports
+     for(int i = 0; i < pe.num_import_libs; i++) {
+diff --git a/libtudor/src/tudor/driver.c b/libtudor/src/tudor/driver.c
+index 156c9de..63a306d 100644
+--- a/libtudor/src/tudor/driver.c
++++ b/libtudor/src/tudor/driver.c
+@@ -40,7 +40,7 @@ static struct winmodule ntdll_module = {
+ typedef BOOL __winfnc (*api_DllMain)(HANDLE hinstDLL, int fdwReason, void *lpReserved);
+ 
+ struct windrv_dll *tudor_adapter_dll, *tudor_driver_dll;
+-WINBIO_SENSOR_INTERFACE *tudor_sensor_adapter;
++WINBIO_SENSOR_INTERFACE_V1 *tudor_sensor_adapter;
+ WINBIO_ENGINE_INTERFACE *tudor_engine_adapter;
+ 
+ static DRIVER_OBJECT umdf_driver;
+@@ -126,10 +126,34 @@ bool tudor_init() {
+     winmodule_set_cur(&tudor_adapter_dll->module);
+ 
+     HRESULT hres;
+-    if((hres = ((api_WbioQuerySensorInterface) find_dll_export(&tudor_adapter_dll->image, "WbioQuerySensorInterface"))(&tudor_sensor_adapter)) != 0) {
++    if((hres = ((api_WbioQuerySensorInterface) find_dll_export(&tudor_adapter_dll->image, "WbioQuerySensorInterface"))((WINBIO_SENSOR_INTERFACE**) &tudor_sensor_adapter)) != 0) {
+         log_error("Error querying sensor interface: 0x%x!", hres);
+         return false;
+     }
++    //Snapshot the sensor interface table, then restore every function slot
++    //from the pristine static image (the relinked adapter's runtime state
++    //overlaps the table's static storage in .data and clobbers slots).
++    {
++        WINBIO_SENSOR_INTERFACE_V1 *snapshot = (WINBIO_SENSOR_INTERFACE_V1*) malloc(sizeof(WINBIO_SENSOR_INTERFACE_V1));
++        memcpy(snapshot, tudor_sensor_adapter, sizeof(WINBIO_SENSOR_INTERFACE_V1));
++        tudor_sensor_adapter = snapshot;
++
++        uintptr_t mod_base = (uintptr_t) tudor_adapter_dll->image.base_addr;
++        static const uint32_t sensor_slot_rvas[15] = {
++            0x005b50, 0x005d50, 0x005ee0, 0x005ff0, 0x006250,
++            0x006460, 0x0065d0, 0x006660, 0x0066f0, 0x006bf0,
++            0x006ec0, 0x006f50, 0x0070b0, 0x0072f0, 0x0075b0,
++        };
++        void **slots = (void**) tudor_sensor_adapter;
++        for(int i = 0; i < 15; i++) {
++            slots[4 + i] = (void*) (mod_base + sensor_slot_rvas[i]);
++        }
++        //Alias the Windows 10 names onto the legacy entry points.
++        tudor_sensor_adapter->PipelineInit    = (IBIO_SENSOR_PIPELINE_INIT_FN*) tudor_sensor_adapter->Reset;
++        tudor_sensor_adapter->PipelineCleanup = (IBIO_SENSOR_PIPELINE_CLEANUP_FN*) tudor_sensor_adapter->Cancel;
++        tudor_sensor_adapter->Activate        = (IBIO_SENSOR_ACTIVATE_FN*) tudor_sensor_adapter->Reset;
++        tudor_sensor_adapter->Deactivate      = (IBIO_SENSOR_DEACTIVATE_FN*) tudor_sensor_adapter->Cancel;
++    }
+     if((hres = ((api_WbioQueryEngineInterface) find_dll_export(&tudor_adapter_dll->image, "WbioQueryEngineInterface"))(&tudor_engine_adapter)) != 0) {
+         log_error("Error querying engine interface: 0x%x!", hres);
+         return false;
+diff --git a/libtudor/src/tudor/driver_wudf1.cpp b/libtudor/src/tudor/driver_wudf1.cpp
+index dde101b..bcc5f1c 100644
+--- a/libtudor/src/tudor/driver_wudf1.cpp
++++ b/libtudor/src/tudor/driver_wudf1.cpp
+@@ -50,6 +50,10 @@ static winmodule ntdll_module = {
+     .environ = (const char*[]) { NULL }
+ };
+ 
++//WUDF call tracing for debugging: compile-in, enabled via env TUDOR_WUDF_TRACE
++static bool tudor_wudf_trace = (getenv("TUDOR_WUDF_TRACE") != NULL);
++#define WUDF_TRACE(...) do { if(tudor_wudf_trace) { printf("[WUDF] " __VA_ARGS__); fflush(stdout); } } while(0)
++
+ #define DLL_PROCESS_ATTACH 1
+ #define DLL_PROCESS_DETACH 0
+ #define DLL_THREAD_ATTACH 2
+@@ -57,9 +61,16 @@ static winmodule ntdll_module = {
+ typedef BOOL __winfnc (*api_DllMain)(HANDLE hinstDLL, int fdwReason, void *lpReserved);
+ 
+ struct windrv_dll *tudor_adapter_dll, *tudor_driver_dll;
+-WINBIO_SENSOR_INTERFACE *tudor_sensor_adapter;
++WINBIO_SENSOR_INTERFACE_V1 *tudor_sensor_adapter;
+ WINBIO_ENGINE_INTERFACE *tudor_engine_adapter;
+ 
++//Dummy engine adapter used with TUDOR_NO_ENGINE (for sensor bring-up tests)
++static HRESULT dummy_engine_attach(WINBIO_PIPELINE *pipeline) { (void) pipeline; return ERROR_SUCCESS; }
++static HRESULT dummy_engine_pipeline_init(WINBIO_PIPELINE *pipeline) { (void) pipeline; return ERROR_SUCCESS; }
++static HRESULT dummy_engine_pipeline_cleanup(WINBIO_PIPELINE *pipeline) { (void) pipeline; return ERROR_SUCCESS; }
++static HRESULT dummy_engine_activate(WINBIO_PIPELINE *pipeline) { (void) pipeline; return ERROR_SUCCESS; }
++static HRESULT dummy_engine_deactivate(WINBIO_PIPELINE *pipeline) { (void) pipeline; return ERROR_SUCCESS; }
++
+ static DRIVER_OBJECT umdf_driver;
+ struct winwdf_driver *tudor_wdf_driver;
+ 
+@@ -89,7 +100,6 @@ struct windrv_dll tudor_windrv_dlls[] = {
+ };
+ 
+ 
+-
+ #define DEFINE_GUID11(name, a, b, c, d, e, f, g, h, i, j, k) \
+     static const GUID_DLL name = { \
+         (a), (b), (c), \
+@@ -209,7 +219,8 @@ struct IObjectCleanup;
+ class MyDevInit : public IWDFDeviceInitialize {
+     public:
+         virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void **ppvObject) { 
+-            printf("QueryInterface\r\n");
++            LPOLESTR _s; StringFromIID(riid, &_s);
++            std::wcout << L"[QI] " << _s << (ppvObject ? (void*)*ppvObject : (void*)0) << std::endl;
+             return 0; 
+         }
+         virtual ULONG STDMETHODCALLTYPE AddRef(void) { 
+@@ -241,6 +252,9 @@ class MyDevInit : public IWDFDeviceInitialize {
+             _Out_  IWDFNamedPropertyStore **ppPropStore,
+             /* [annotation][unique][out] */ 
+             _Out_opt_  WDF_PROPERTY_STORE_DISPOSITION *pDisposition) {
++            if(ppPropStore) *ppPropStore = NULL;
++            if(pDisposition) *pDisposition = (WDF_PROPERTY_STORE_DISPOSITION) 0;
++
+             printf("RetrieveDevicePropertyStore\r\n");
+             return 0;
+         }
+@@ -304,31 +318,39 @@ struct MyNamedPropertyStore : public IWDFNamedPropertyStore2 {
+     public:
+ 
+         virtual HRESULT STDMETHODCALLTYPE DeleteWdfObject( void) {
++            printf("[MEM] DeleteWdfObject\n"); fflush(stdout);
+             printf("DeleteWdfObject\r\n");
+             return 0;
+         }
+         
++        void *assigned_context = NULL;
+         virtual HRESULT STDMETHODCALLTYPE AssignContext( 
+             /* [annotation][unique][in] */ 
+             _In_opt_ __drv_aliasesMem  IObjectCleanup *pCleanupCallback,
+             /* [annotation][unique][in] */ 
+-            _In_opt_ __drv_aliasesMem  void *pContext) { 
+-            printf("AssignContext\r\n");
++            _In_opt_ __drv_aliasesMem  void *pContext) {
++            printf("[MEM] AssignContext\n"); fflush(stdout); 
++            printf("AssignContext(%p)\r\n", pContext);
++            assigned_context = pContext;
+             return 0;
+         }
+         
+         virtual HRESULT STDMETHODCALLTYPE RetrieveContext( 
+             /* [annotation][out] */ 
+             _Out_  void **ppvContext) {
+-            printf("RetrieveContext\r\n");
++            printf("[MEM] RetrieveContext\n"); fflush(stdout);
++            if(ppvContext) *ppvContext = assigned_context;
++            printf("RetrieveContext -> %p\r\n", assigned_context);
+             return 0;
+         }
+         
+         virtual void STDMETHODCALLTYPE AcquireLock( void) {
++            printf("[MEM] AcquireLock\n"); fflush(stdout);
+             printf("AcquireLock\r\n");
+         }
+         
+         virtual void STDMETHODCALLTYPE ReleaseLock( void) {
++            printf("[MEM] ReleaseLock\n"); fflush(stdout);
+             printf("ReleaseLock\r\n");
+         }
+     public:
+@@ -338,7 +360,7 @@ struct MyNamedPropertyStore : public IWDFNamedPropertyStore2 {
+             /* [annotation][out] */ 
+             _Out_  PROPVARIANT *pv){
+             std::wcout << L"=====================================" << std::endl;
+-            std::wcout << L"GetNamedValue " << pszName << std::endl;
++            std::cout << "GetNamedValue " << utf16le_to_utf8(pszName) << std::endl;
+             std::string fname = utf16le_to_utf8(pszName);
+             std::cout << fname << std::endl;
+             std::wcout << L"=====================================" << std::endl;
+@@ -348,6 +370,11 @@ struct MyNamedPropertyStore : public IWDFNamedPropertyStore2 {
+                 std::vector<char> buf((std::istreambuf_iterator<char>(input)), std::istreambuf_iterator<char>());
+                 std::cout << "Loaded " << buf.size() << " bytes of calibration data" << std::endl;
+                 if(buf.size() == 0) {
++                    //No stored calibration data yet: report an empty value.
++                    //The vt tag MUST be initialized, the caller passes an
++                    //uninitialized PROPVARIANT buffer.
++                    memset(pv, 0, sizeof(*pv));
++                    pv->vt = VT_DECIMAL;
+                     DECIMAL_SETZERO(pv->decVal);
+                 } else {
+                     pv->vt = VT_BLOB;
+@@ -365,7 +392,9 @@ struct MyNamedPropertyStore : public IWDFNamedPropertyStore2 {
+                     std::cout << "UINT " << fname << " = " << pv->uintVal << std::endl; 
+                 }
+                 else {
+-                    DECIMAL_SETZERO(pv->decVal);
++                    memset(pv, 0, sizeof(*pv));
++                    pv->vt = VT_UINT;
++                    pv->uintVal = 0;
+                     std::cout << "UINT " << fname << " not found" << std::endl; 
+                 }
+             } 
+@@ -389,7 +418,7 @@ struct MyNamedPropertyStore : public IWDFNamedPropertyStore2 {
+             //PropVariantToStringAlloc(*pv, &buf);
+ 
+             std::wcout << L"=====================================" << std::endl;
+-            std::wcout << L"SetNamedValue " << pszName << "=" << pv->vt << std::endl;
++            std::cout << "SetNamedValue " << utf16le_to_utf8(pszName) << "=" << pv->vt << std::endl;
+             std::string str_u8 = utf16le_to_utf8(pszName);
+             std::cout << str_u8 << std::endl;
+             switch(pv->vt) {
+@@ -447,13 +476,14 @@ struct MyNamedPropertyStore : public IWDFNamedPropertyStore2 {
+         virtual HRESULT STDMETHODCALLTYPE DeleteNamedValue( 
+             /* [annotation][string][in] */ 
+             _In_  LPCWSTR pwszName){
+-            std::wcout << L"DeleteNamedValue " << pwszName<< std::endl;
++            std::cout << "DeleteNamedValue " << utf16le_to_utf8(pwszName) << std::endl;
+             return 0;
+         }
+ 
+ };
+ 
+ struct MyMem : public IWDFMemory {
++        void *assigned_context = NULL;
+     public:
+         MyMem(void *b, SIZE_T s) {
+             buf = b;
+@@ -489,14 +519,16 @@ struct MyMem : public IWDFMemory {
+             _In_opt_ __drv_aliasesMem  void *pCleanupCallback,
+             /* [annotation][unique][in] */ 
+             _In_opt_ __drv_aliasesMem  void *pContext) { 
+-            printf("AssignContext\r\n");
++            assigned_context = pContext;
++            printf("AssignContext(%p)\r\n", pContext);
+             return 0;
+         }
+         
+         virtual HRESULT STDMETHODCALLTYPE RetrieveContext( 
+             /* [annotation][out] */ 
+             _Out_  void **ppvContext) {
+-            printf("RetrieveContext\r\n");
++            if(ppvContext) *ppvContext = assigned_context;
++            printf("RetrieveContext -> %p\r\n", assigned_context);
+             return 0;
+         }
+         
+@@ -513,6 +545,7 @@ struct MyMem : public IWDFMemory {
+             _In_  IWDFMemory *Source,
+             /* [annotation][unique][in] */ 
+             _In_opt_  PWDFMEMORY_OFFSET SourceOffset){
++            printf("[MEM] CopyFromMemory\n"); fflush(stdout);
+             printf("CopyFromMemory\r\n");
+             return 0;
+         }
+@@ -525,6 +558,7 @@ struct MyMem : public IWDFMemory {
+              void *TargetBuffer,
+             /* [annotation][in] */ 
+             _In_  SIZE_T NumOfBytesToCopyTo){
++            printf("[MEM] CopyToBuffer\n"); fflush(stdout);
+             printf("CopyToBuffer\r\n");
+             return 0;
+         }
+@@ -537,12 +571,14 @@ struct MyMem : public IWDFMemory {
+             void *SourceBuffer,
+             /* [annotation][in] */ 
+             _In_  SIZE_T NumOfBytesToCopyFrom){
++            printf("[MEM] CopyFromBuffer\n"); fflush(stdout);
+             printf("CopyFromBuffer\r\n");
+             return 0;
+         }
+ 
+         
+         virtual SIZE_T STDMETHODCALLTYPE GetSize( void){
++            printf("[MEM] GetSize\n"); fflush(stdout);
+             printf("GetSize\r\n");
+             return size;
+         }
+@@ -551,6 +587,7 @@ struct MyMem : public IWDFMemory {
+         virtual void *STDMETHODCALLTYPE GetDataBuffer( 
+             /* [annotation][unique][out] */ 
+             _Out_opt_  SIZE_T *BufferSize){
++            printf("[MEM] GetDataBuffer\n"); fflush(stdout);
+             if(BufferSize) {
+                 *BufferSize = size;
+             }
+@@ -564,6 +601,7 @@ struct MyMem : public IWDFMemory {
+             void *Buffer,
+             /* [annotation][in] */ 
+             _In_  SIZE_T BufferSize){
++            printf("[MEM] SetBuffer\n"); fflush(stdout);
+             printf("SetBuffer\r\n");
+             buf = Buffer;
+             size = BufferSize;
+@@ -574,6 +612,7 @@ struct MyMem : public IWDFMemory {
+ };
+ 
+ struct MyRequest : public IWDFIoRequest {
++        void *assigned_context = NULL;
+     public:
+         MyRequest(WDF_REQUEST_TYPE t, ULONG c, MyMem *out, MyMem *in) {
+             reqType = t;
+@@ -582,12 +621,14 @@ struct MyRequest : public IWDFIoRequest {
+             inMem = in;
+             complete = FALSE;
+             informationSize = 0;
++            completionStatus = 0;
+         }
+ 
+         WDF_REQUEST_TYPE reqType;
+         ULONG ctl;
+         BOOL complete;
+         LONG_PTR informationSize;
++        HRESULT completionStatus;
+     public:
+         virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void **ppvObject) { 
+             LPOLESTR str;
+@@ -617,14 +658,16 @@ struct MyRequest : public IWDFIoRequest {
+             _In_opt_ __drv_aliasesMem  void *pCleanupCallback,
+             /* [annotation][unique][in] */ 
+             _In_opt_ __drv_aliasesMem  void *pContext) { 
+-            printf("AssignContext\r\n");
++            assigned_context = pContext;
++            printf("AssignContext(%p)\r\n", pContext);
+             return 0;
+         }
+         
+         virtual HRESULT STDMETHODCALLTYPE RetrieveContext( 
+             /* [annotation][out] */ 
+             _Out_  void **ppvContext) {
+-            printf("RetrieveContext\r\n");
++            if(ppvContext) *ppvContext = assigned_context;
++            printf("RetrieveContext -> %p\r\n", assigned_context);
+             return 0;
+         }
+         
+@@ -641,7 +684,9 @@ struct MyRequest : public IWDFIoRequest {
+             _In_  HRESULT CompletionStatus,
+             /* [annotation][in] */ 
+             _In_  SIZE_T Information){
++            printf("[REQ] CompleteWithInformation\n"); fflush(stdout);
+             printf("CompleteWithInformation\r\n");
++            completionStatus = CompletionStatus;
+             complete = TRUE;
+         }
+ 
+@@ -649,6 +694,7 @@ struct MyRequest : public IWDFIoRequest {
+         virtual void STDMETHODCALLTYPE SetInformation( 
+             /* [annotation][in] */ 
+             _In_  ULONG_PTR Information){
++            printf("[REQ] SetInformation\n"); fflush(stdout);
+             printf("SetInformation size=%lld\r\n", Information);
+             informationSize = Information;
+         }
+@@ -657,7 +703,9 @@ struct MyRequest : public IWDFIoRequest {
+         virtual void STDMETHODCALLTYPE Complete( 
+             /* [annotation][in] */ 
+             _In_  HRESULT CompletionStatus){
++            printf("[REQ] Complete\n"); fflush(stdout);
+             printf("Complete: %lx\r\n", (unsigned long)CompletionStatus);
++            completionStatus = CompletionStatus;
+             complete = TRUE;
+         }
+ 
+@@ -667,11 +715,13 @@ struct MyRequest : public IWDFIoRequest {
+             _In_  void *pCompletionCallback,
+             /* [annotation][unique][in] */ 
+             _In_opt_  void *pContext){
++            printf("[REQ] SetCompletionCallback\n"); fflush(stdout);
+             printf("SetCompletionCallback\r\n");
+         }
+ 
+         
+         virtual WDF_REQUEST_TYPE STDMETHODCALLTYPE GetType( void){
++            printf("[REQ] GetType\n"); fflush(stdout);
+             printf("GetType\r\n");
+             return reqType;
+         }
+@@ -684,6 +734,10 @@ struct MyRequest : public IWDFIoRequest {
+             _Out_opt_  USHORT *pFileAttributes,
+             /* [annotation][unique][out] */ 
+             _Out_opt_  USHORT *pShareAccess){
++            if(pOptions) *pOptions = 0;
++            if(pFileAttributes) *pFileAttributes = 0;
++            if(pShareAccess) *pShareAccess = 3;
++
+             printf("GetCreateParameters\r\n");
+         }
+ 
+@@ -695,6 +749,10 @@ struct MyRequest : public IWDFIoRequest {
+             _Out_opt_  LONGLONG *pullOffset,
+             /* [annotation][unique][out] */ 
+             _Out_opt_  ULONG *pulKey){
++            if(pSizeInBytes) *pSizeInBytes = 0;
++            if(pullOffset) *pullOffset = 0;
++            if(pulKey) *pulKey = 0;
++
+             printf("GetReadParameters\r\n");
+         }
+ 
+@@ -706,6 +764,10 @@ struct MyRequest : public IWDFIoRequest {
+             _Out_opt_  LONGLONG *pullOffset,
+             /* [annotation][unique][out] */ 
+             _Out_opt_  ULONG *pulKey){
++            if(pSizeInBytes) *pSizeInBytes = 0;
++            if(pullOffset) *pullOffset = 0;
++            if(pulKey) *pulKey = 0;
++
+             printf("GetWriteParameters\r\n");
+         }
+ 
+@@ -717,6 +779,7 @@ struct MyRequest : public IWDFIoRequest {
+             _Out_opt_  SIZE_T *pInBufferSize,
+             /* [annotation][unique][out] */ 
+             _Out_opt_  SIZE_T *pOutBufferSize){
++            printf("[REQ] GetDeviceIoControlParameters\n"); fflush(stdout);
+             //printf("GetDeviceIoControlParameters %p %p %p\r\n", pControlCode, pInBufferSize, pOutBufferSize);
+             *pControlCode = ctl;
+             *pInBufferSize = inMem->size;
+@@ -729,6 +792,7 @@ struct MyRequest : public IWDFIoRequest {
+         virtual void STDMETHODCALLTYPE GetOutputMemory( 
+             /* [annotation][out] */ 
+             _Out_  IWDFMemory **ppWdfMemory){
++            printf("[REQ] GetOutputMemory\n"); fflush(stdout);
+             *ppWdfMemory = outMem;
+             //printf("GetOutputMemory\r\n");
+         }
+@@ -736,6 +800,7 @@ struct MyRequest : public IWDFIoRequest {
+         virtual void STDMETHODCALLTYPE GetInputMemory( 
+             /* [annotation][out] */ 
+             _Out_  IWDFMemory **ppWdfMemory){
++            printf("[REQ] GetInputMemory\n"); fflush(stdout);
+             *ppWdfMemory = inMem;
+             // printf("GetInputMemory\r\n");
+         }
+@@ -744,11 +809,13 @@ struct MyRequest : public IWDFIoRequest {
+         virtual void STDMETHODCALLTYPE MarkCancelable( 
+             /* [annotation][in] */ 
+             _In_  void *pCancelCallback){
++            printf("[REQ] MarkCancelable\n"); fflush(stdout);
+             printf("MarkCancelable\r\n");
+             //this->cancelCallback = pCancelCallback;
+         }
+ 
+         virtual HRESULT STDMETHODCALLTYPE UnmarkCancelable( void){
++            printf("[REQ] UnmarkCancelable\n"); fflush(stdout);
+             printf("UnmarkCancelable\r\n");
+             return 0;
+         }
+@@ -763,6 +830,7 @@ struct MyRequest : public IWDFIoRequest {
+         virtual HRESULT STDMETHODCALLTYPE ForwardToIoQueue( 
+             /* [annotation][in] */ 
+             _In_  IWDFIoQueue *pDestination){
++            printf("[REQ] ForwardToIoQueue\n"); fflush(stdout);
+             printf("ForwardToIoQueue\r\n");
+             return 0;
+         }
+@@ -775,6 +843,7 @@ struct MyRequest : public IWDFIoRequest {
+             _In_  ULONG Flags,
+             /* [annotation][in] */ 
+             _In_  LONGLONG Timeout){
++            printf("[REQ] Send\n"); fflush(stdout);
+             printf("Send\r\n");
+             return 0;
+         }
+@@ -783,6 +852,9 @@ struct MyRequest : public IWDFIoRequest {
+         virtual void STDMETHODCALLTYPE GetFileObject( 
+             /* [annotation][out] */ 
+             _Out_  void **ppFileObject){
++            printf("[REQ] GetFileObject\n"); fflush(stdout);
++            if(ppFileObject) *ppFileObject = NULL;
++
+             printf("GetFileObject\r\n");
+         }
+ 
+@@ -801,6 +873,9 @@ struct MyRequest : public IWDFIoRequest {
+         virtual void STDMETHODCALLTYPE GetIoQueue( 
+             /* [annotation][out] */ 
+             _Out_  IWDFIoQueue **ppWdfIoQueue){
++            WUDF_TRACE("GetIoQueue -> %p\n", ppWdfIoQueue ? *ppWdfIoQueue : NULL);
++            if(ppWdfIoQueue) *ppWdfIoQueue = NULL;
++
+             printf("GetIoQueue\r\n");
+         }
+ 
+@@ -826,12 +901,24 @@ struct MyRequest : public IWDFIoRequest {
+         virtual void STDMETHODCALLTYPE GetCompletionParams( 
+             /* [annotation][out] */ 
+             _Out_  IWDFRequestCompletionParams **ppCompletionParams){
++            printf("[REQ] GetCompletionParams\n"); fflush(stdout);
++            WUDF_TRACE("GetCompletionParams -> %p\n", ppCompletionParams ? *ppCompletionParams : NULL);
++            if(ppCompletionParams) *ppCompletionParams = NULL;
++
+             printf("GetCompletionParams\r\n");
+         }
+ 
+         
+ };
+ 
++static void *g_created_memory_buf = NULL;
++static IWDFObject *g_wdf_object_stub = NULL;
++static MyMem *g_dummy_file = NULL;
++static MyMem *g_dummy_out_mem = NULL;
++static MyMem *g_dummy_in_mem = NULL;
++static IWDFIoRequest *g_request_stub = NULL;
++static MyMem *g_file_stub = NULL;
++
+ struct MyPropertyStoreFactory : public IWDFPropertyStoreFactory {
+ public:
+     virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void **ppvObject) { 
+@@ -875,6 +962,7 @@ public:
+ };
+ 
+ struct MyQueue : public IWDFIoQueue {
++        void *assigned_context = NULL;
+     public:
+         MyQueue(IUnknown *pCallbackInterface) {
+             pCallbackInterface->AddRef();
+@@ -913,14 +1001,16 @@ struct MyQueue : public IWDFIoQueue {
+             _In_opt_ __drv_aliasesMem  void *pCleanupCallback,
+             /* [annotation][unique][in] */ 
+             _In_opt_ __drv_aliasesMem  void *pContext) { 
+-            printf("AssignContext\r\n");
++            assigned_context = pContext;
++            printf("AssignContext(%p)\r\n", pContext);
+             return 0;
+         }
+         
+         virtual HRESULT STDMETHODCALLTYPE RetrieveContext( 
+             /* [annotation][out] */ 
+             _Out_  void **ppvContext) {
+-            printf("RetrieveContext\r\n");
++            if(ppvContext) *ppvContext = assigned_context;
++            printf("RetrieveContext -> %p\r\n", assigned_context);
+             return 0;
+         }
+         
+@@ -935,6 +1025,9 @@ struct MyQueue : public IWDFIoQueue {
+         virtual void STDMETHODCALLTYPE GetDevice( 
+             /* [annotation][out] */ 
+             _Out_  IWDFDevice **ppWdfDevice){
++            WUDF_TRACE("GetDevice -> %p\n", ppWdfDevice ? *ppWdfDevice : NULL);
++            if(ppWdfDevice) *ppWdfDevice = NULL;
++
+             printf("GetDevice\r\n");
+         }
+ 
+@@ -954,6 +1047,9 @@ struct MyQueue : public IWDFIoQueue {
+             _Out_  ULONG *pulNumOfRequestsInQueue,
+             /* [annotation][out] */ 
+             _Out_  ULONG *pulNumOfRequestsInDriver){
++            if(pulNumOfRequestsInQueue) *pulNumOfRequestsInQueue = 0;
++            if(pulNumOfRequestsInDriver) *pulNumOfRequestsInDriver = 0;
++
+             printf("GetState\r\n");
+             return (WDF_IO_QUEUE_STATE)(WdfIoQueueAcceptRequests | 
+                     WdfIoQueueDispatchRequests | 
+@@ -966,7 +1062,8 @@ struct MyQueue : public IWDFIoQueue {
+             /* [annotation][out] */ 
+             _Out_  IWDFIoRequest **ppRequest){
+             printf("RetrieveNextRequest\r\n");
+-            return 0;
++                        if(ppRequest) *ppRequest = NULL;
++return 0;
+         }
+ 
+         
+@@ -976,7 +1073,8 @@ struct MyQueue : public IWDFIoQueue {
+             /* [annotation][out] */ 
+             _Out_  IWDFIoRequest **ppRequest){
+             printf("RetrieveNextRequestByFileObject\r\n");
+-            return 0;
++                        if(ppRequest) *ppRequest = NULL;
++return 0;
+         }
+ 
+         
+@@ -1029,6 +1127,7 @@ MyQueue *myQueue = NULL;
+ 
+ 
+ struct MyDevice : public IWDFDevice3 {
++        void *assigned_context = NULL;
+     public:
+         MyDevice(IUnknown *pCallbackInterface) {
+             pCallbackInterface->AddRef();
+@@ -1075,14 +1174,16 @@ struct MyDevice : public IWDFDevice3 {
+             _In_opt_ __drv_aliasesMem  void *pCleanupCallback,
+             /* [annotation][unique][in] */ 
+             _In_opt_ __drv_aliasesMem  void *pContext) { 
+-            printf("AssignContext\r\n");
++            assigned_context = pContext;
++            printf("AssignContext(%p)\r\n", pContext);
+             return 0;
+         }
+         
+         virtual HRESULT STDMETHODCALLTYPE RetrieveContext( 
+             /* [annotation][out] */ 
+             _Out_  void **ppvContext) {
+-            printf("RetrieveContext\r\n");
++            if(ppvContext) *ppvContext = assigned_context;
++            printf("RetrieveContext -> %p\r\n", assigned_context);
+             return 0;
+         }
+         
+@@ -1113,6 +1214,9 @@ struct MyDevice : public IWDFDevice3 {
+         virtual void STDMETHODCALLTYPE GetDriver( 
+             /* [annotation][out] */ 
+             _Out_  IWDFDriver **ppWdfDriver){
++            WUDF_TRACE("GetDriver -> %p\n", ppWdfDriver ? *ppWdfDriver : NULL);
++            if(ppWdfDriver) *ppWdfDriver = NULL;
++
+             printf("GetDriver\r\n");
+         }
+ 
+@@ -1130,6 +1234,9 @@ struct MyDevice : public IWDFDevice3 {
+         virtual void STDMETHODCALLTYPE GetDefaultIoTarget( 
+             /* [annotation][out] */ 
+             _Out_  IWDFIoTarget **ppWdfIoTarget){
++            WUDF_TRACE("GetDefaultIoTarget -> %p\n", ppWdfIoTarget ? *ppWdfIoTarget : NULL);
++            if(ppWdfIoTarget) *ppWdfIoTarget = NULL;
++
+             printf("GetDefaultIoTarget\r\n");
+         }
+ 
+@@ -1140,6 +1247,10 @@ struct MyDevice : public IWDFDevice3 {
+             /* [annotation][out] */ 
+             _Out_  IWDFDriverCreatedFile **ppFile){
+             printf("CreateWdfFile\r\n");
++            //Return a live object: the driver stores this as its file handle
++            //and dereferences it during I/O. NULL here crashes the capture path.
++            if(!g_dummy_file) g_dummy_file = new MyMem(malloc(16), 16);
++            if(ppFile) *ppFile = (IWDFDriverCreatedFile*) g_dummy_file;
+             return 0;
+         }
+ 
+@@ -1147,6 +1258,9 @@ struct MyDevice : public IWDFDevice3 {
+         virtual void STDMETHODCALLTYPE GetDefaultIoQueue( 
+             /* [annotation][out] */ 
+             _Out_  IWDFIoQueue **ppWdfIoQueue){
++            WUDF_TRACE("GetDefaultIoQueue -> %p\n", ppWdfIoQueue ? *ppWdfIoQueue : NULL);
++            if(ppWdfIoQueue) *ppWdfIoQueue = NULL;
++
+             printf("GetDefaultIoQueue\r\n");
+         }
+ 
+@@ -1300,7 +1414,16 @@ struct MyDevice : public IWDFDevice3 {
+             _In_opt_  IWDFObject *pParentObject,
+             /* [annotation][out] */ 
+             _Out_  IWDFIoRequest **ppRequest){
++            WUDF_TRACE("CreateRequest -> %p\n", ppRequest ? *ppRequest : NULL);
+             printf("CreateRequest\r\n");
++            //Hand the driver a live request stub; a NULL here is dereferenced
++            //by the driver later in the capture path.
++            if(!g_request_stub) {
++                if(!g_dummy_out_mem) g_dummy_out_mem = new MyMem(malloc(256), 256);
++                if(!g_dummy_in_mem) g_dummy_in_mem = new MyMem(malloc(256), 256);
++                g_request_stub = (IWDFIoRequest*) new MyRequest(WdfRequestTypeOther, 0, g_dummy_out_mem, g_dummy_in_mem);
++            }
++            if(ppRequest) *ppRequest = g_request_stub;
+             return 0;
+         }
+ 
+@@ -1370,6 +1493,9 @@ struct MyDevice : public IWDFDevice3 {
+             _In_opt_  IUnknown *pCallbackInterface,
+             /* [annotation][out] */ 
+             _Out_  void **ppRemoteInterface){
++            WUDF_TRACE("CreateRemoteInterface -> %p\n", ppRemoteInterface ? *ppRemoteInterface : NULL);
++            if(ppRemoteInterface) *ppRemoteInterface = NULL;
++
+             printf("CreateRemoteInterface\r\n");
+             return 0;
+         }
+@@ -1382,6 +1508,9 @@ struct MyDevice : public IWDFDevice3 {
+             _In_opt_  IWDFObject *pParentObject,
+             /* [annotation][out] */ 
+             _Out_  void **ppRemoteTarget){
++            WUDF_TRACE("CreateRemoteTarget -> %p\n", ppRemoteTarget ? *ppRemoteTarget : NULL);
++            if(ppRemoteTarget) *ppRemoteTarget = NULL;
++
+             printf("CreateRemoteTarget\r\n");
+             return 0;
+         }
+@@ -1392,6 +1521,9 @@ struct MyDevice : public IWDFDevice3 {
+             _Out_  WDF_DEVICE_IO_TYPE *ReadWritePreference,
+             /* [annotation][out] */ 
+             _Out_  WDF_DEVICE_IO_TYPE *IoControlPreference){
++            if(ReadWritePreference) *ReadWritePreference = (WDF_DEVICE_IO_TYPE) 0;
++            if(IoControlPreference) *IoControlPreference = (WDF_DEVICE_IO_TYPE) 0;
++
+             printf("GetDeviceStackIoTypePreference\r\n");
+         }
+ 
+@@ -1424,6 +1556,8 @@ struct MyDevice : public IWDFDevice3 {
+             _In_  MEMORY_CACHING_TYPE CacheType,
+             /* [annotation][out] */ 
+             _Out_  void **pPseudoBaseAddress){
++            if(pPseudoBaseAddress) *pPseudoBaseAddress = NULL;
++
+             printf("MapIoSpace\r\n");
+             return 0;
+         }
+@@ -1484,6 +1618,8 @@ struct MyDevice : public IWDFDevice3 {
+             _In_  void* Configuration,
+             /* [annotation][out] */ 
+             _Out_  void **ppInterrupt){
++            if(ppInterrupt) *ppInterrupt = NULL;
++
+             printf("CreateInterrupt\r\n");
+             return 0;
+         }
+@@ -1496,6 +1632,8 @@ struct MyDevice : public IWDFDevice3 {
+             _In_  IWDFObject *pParentObject,
+             /* [annotation][out] */ 
+             _Out_  void **ppWorkItem){
++            if(ppWorkItem) *ppWorkItem = NULL;
++
+             printf("CreateWorkItem\r\n");
+             return 0;
+         }
+@@ -1514,10 +1652,14 @@ struct MyDevice : public IWDFDevice3 {
+ MyDevice* myDevice = NULL;
+ 
+ 
++
++
+ struct MyDriver : public IWDFDriver {
++        void *assigned_context = NULL;
+     public:
+         virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void **ppvObject) { 
+-            printf("QueryInterface\r\n");
++            LPOLESTR _s; StringFromIID(riid, &_s);
++            std::wcout << L"[QI] " << _s << (ppvObject ? (void*)*ppvObject : (void*)0) << std::endl;
+             return 0; 
+         }
+         virtual ULONG STDMETHODCALLTYPE AddRef(void) { 
+@@ -1540,14 +1682,16 @@ struct MyDriver : public IWDFDriver {
+             _In_opt_ __drv_aliasesMem  void *pCleanupCallback,
+             /* [annotation][unique][in] */ 
+             _In_opt_ __drv_aliasesMem  void *pContext) { 
+-            printf("AssignContext\r\n");
++            assigned_context = pContext;
++            printf("AssignContext(%p)\r\n", pContext);
+             return 0;
+         }
+         
+         virtual HRESULT STDMETHODCALLTYPE RetrieveContext( 
+             /* [annotation][out] */ 
+             _Out_  void **ppvContext) {
+-            printf("RetrieveContext\r\n");
++            if(ppvContext) *ppvContext = assigned_context;
++            printf("RetrieveContext -> %p\r\n", assigned_context);
+             return 0;
+         }
+         
+@@ -1585,6 +1729,12 @@ struct MyDriver : public IWDFDriver {
+             /* [annotation][out] */ 
+             _Out_  IWDFObject **ppWdfObject) {
+             printf("CreateWdfObject\r\n");
++            //Return a minimal generic object. The driver only stores and later
++            //releases/context-manages these; a live stub keeps that safe.
++            if(ppWdfObject) {
++                if(!g_wdf_object_stub) g_wdf_object_stub = (IWDFObject*) new MyMem(malloc(16), 16);
++                *ppWdfObject = g_wdf_object_stub;
++            }
+             return 0;
+         }
+         
+@@ -1599,7 +1749,8 @@ struct MyDriver : public IWDFDriver {
+             _In_opt_  IWDFObject *pParentObject,
+             /* [annotation][out] */ 
+             _Out_  IWDFMemory **ppWdfMemory) { 
+-            printf("CreatePreallocatedWdfMemory\r\n");
++            printf("CreatePreallocatedWdfMemory(%p, %zu)\r\n", pBuff, BufferSize);
++            if(ppWdfMemory) *ppWdfMemory = new MyMem(pBuff, BufferSize);
+             return 0; 
+         }
+         
+@@ -1612,7 +1763,9 @@ struct MyDriver : public IWDFDriver {
+             _In_opt_  IWDFObject *pParentObject,
+             /* [annotation][out] */ 
+             _Out_  IWDFMemory **ppWdfMemory) { 
+-            printf("CreateWdfMemory\r\n");
++            printf("CreateWdfMemory(%zu)\r\n", BufferSize);
++            g_created_memory_buf = malloc(BufferSize);
++            if(ppWdfMemory) *ppWdfMemory = new MyMem(g_created_memory_buf, BufferSize);
+             return 0;
+         }
+         
+@@ -1650,25 +1803,49 @@ static NTSTATUS tudor_devctrl_wudf1(struct tudor_device *device, OVERLAPPED *ovl
+         printf("[WUDF1-DEVCTRL] -> code 0x%x (size 0x%lx)\r\n", code, in_size);
+     }
+ 
+-    // For UMDF1, we need to handle this through the queue callback mechanism
+-    // The actual I/O will be handled when the driver calls our queue callbacks
+-    
+-    // Store the request info for when the callback is invoked
+-    // This is a simplified approach - you might need a more sophisticated request tracking system
+-    
+     if (myQueue) {
+-        //MyMem in(ibuf, sizeof(ibuf)), out(obuf, sizeof(obuf));
+-        MyMem in(in_buf, in_size), out(out_buf, out_size);
+-        MyRequest req(WdfRequestTypeOther, 0x442004, &out, &in);
+-
+-        printf("about to ioctl: 0x%x\r\n", code);
+-        myQueue->ioctl->OnDeviceIoControl(myQueue, &req, code, 0, 0);
+-        while(!req.complete)
+-            usleep(20000);
++        //HEAP-allocate the memory/request objects: the driver retains pointers
++        //to them past this call (async completion, pending I/O). Stack objects
++        //were invalidated when this frame returned, leaving the driver with
++        //dangling pointers - the root cause of the capture-path null crash.
++        MyMem *in = new MyMem(in_buf, in_size);
++        MyMem *out = new MyMem(out_buf, out_size);
++        MyRequest *req = new MyRequest(WdfRequestTypeOther, code, out, in);
++
++        printf("about to ioctl: 0x%x (queue=%p cb=%p)\r\n", code, (void*) myQueue, (void*) myQueue->ioctl);
++        fflush(stdout);
++        myQueue->ioctl->OnDeviceIoControl(myQueue, req, code, 0, 0);
++        printf("OnDeviceIoControl returned for 0x%x\r\n", code);
++        fflush(stdout);
++        while(!req->complete)
++            usleep(5000);
++        printf("ioctl 0x%x completed: status=0x%lx info=%lld\r\n",
++            code, (unsigned long) req->completionStatus, (long long) req->informationSize);
++        fflush(stdout);
++
++        //The caller (DeviceIoControl) hands us an OVERLAPPED it will later
++        //wait on via GetOverlappedResult. Complete it with the driver's real
++        //status, otherwise the wait never ends.
++        size_t num_transfered = (size_t) req->informationSize;
++        if(num_transfered > out_size) num_transfered = out_size;
++
++        HRESULT completion = req->completionStatus;
++        if(completion == 0) {
++            winio_complete_overlapped(ovlp, STATUS_SUCCESS, num_transfered);
++            return STATUS_SUCCESS;
++        }
++        if((completion & 0xffff0000) == 0x80070000) {
++            NTSTATUS status = (NTSTATUS) (completion & 0xffff);
++            winio_complete_overlapped(ovlp, status, 0);
++            return status;
++        }
++        winio_complete_overlapped(ovlp, (NTSTATUS) 0xC0000001, 0);
++        return (NTSTATUS) 0xC0000001; //STATUS_UNSUCCESSFUL
+     }
+-    
+-    // For now, return pending - the actual completion will happen in the callback
+-    return STATUS_PENDING;
++
++    //No queue: treat as completed successfully
++    winio_complete_overlapped(ovlp, STATUS_SUCCESS, 0);
++    return STATUS_SUCCESS;
+ }
+ 
+ static NTSTATUS tudor_cancel_wudf1(struct tudor_device *device, OVERLAPPED *ovlp, struct winwdf_request *req) {
+@@ -1796,7 +1973,9 @@ bool tudor_init() {
+     print_vtable(myDevice->pnphwcb, 5); 
+ 
+     rc = myDevice->pnphwcb->OnPrepareHardware(myDevice);
+-    usleep(50000000);
++    //Settle time for the device's pairing/firmware handshake. The device
++    //re-enumerates during this window; 2s has proven sufficient.
++    usleep(2000000);
+     printf("OnPrepareHardware rc = %lx\r\n", rc);
+     fflush(stdout);
+     //
+@@ -1804,11 +1983,11 @@ bool tudor_init() {
+         abort();
+     }
+     //
+-    usleep(1000000);
++    usleep(200000);
+     printf("about to enter D0 state\r\n");
+     rc = myDevice->pnpcb->OnD0Entry(myDevice, WdfPowerDeviceInvalid);
+     printf("OnD0Entry rc = %lx\r\n", rc);
+-    usleep(5000000);
++    usleep(300000);
+     fflush(stdout);
+ 
+ 
+@@ -1816,15 +1995,88 @@ bool tudor_init() {
+     winmodule_set_cur(&tudor_adapter_dll->module);
+ 
+     HRESULT hres;
+-    if((hres = ((api_WbioQuerySensorInterface) find_dll_export(&tudor_adapter_dll->image, "WbioQuerySensorInterface"))(&tudor_sensor_adapter)) != 0) {
++    //EXPERIMENT: skip the engine interface entirely. Its query/calls write
++    //runtime state that overlaps the sensor interface's static storage in
++    //the relinked adapter image, corrupting the sensor table.
++    if(getenv("TUDOR_NO_ENGINE") == NULL) {
++        if((hres = ((api_WbioQueryEngineInterface) find_dll_export(&tudor_adapter_dll->image, "WbioQueryEngineInterface"))(&tudor_engine_adapter)) != 0) {
++            log_error("Error querying engine interface: 0x%x!", hres);
++            return false;
++        }
++    } else {
++        printf("!! TUDOR_NO_ENGINE: engine interface disabled\n");
++        tudor_engine_adapter = (WINBIO_ENGINE_INTERFACE*) calloc(1, sizeof(WINBIO_ENGINE_INTERFACE));
++        //Dummy implementations: succeed and don't touch the pipeline
++        tudor_engine_adapter->Attach = (IBIO_ENGINE_ATTACH_FN*) dummy_engine_attach;
++        tudor_engine_adapter->PipelineInit = (IBIO_ENGINE_PIPELINE_INIT_FN*) dummy_engine_pipeline_init;
++        tudor_engine_adapter->PipelineCleanup = (IBIO_ENGINE_PIPELINE_CLEANUP_FN*) dummy_engine_pipeline_cleanup;
++        tudor_engine_adapter->Activate = (IBIO_ENGINE_ACTIVATE_FN*) dummy_engine_activate;
++        tudor_engine_adapter->Deactivate = (IBIO_ENGINE_DEACTIVATE_FN*) dummy_engine_deactivate;
++    }
++    if((hres = ((api_WbioQuerySensorInterface) find_dll_export(&tudor_adapter_dll->image, "WbioQuerySensorInterface"))((WINBIO_SENSOR_INTERFACE**) &tudor_sensor_adapter)) != 0) {
+         log_error("Error querying sensor interface: 0x%x!", hres);
+         return false;
+     }
+-    if((hres = ((api_WbioQueryEngineInterface) find_dll_export(&tudor_adapter_dll->image, "WbioQueryEngineInterface"))(&tudor_engine_adapter)) != 0) {
+-        log_error("Error querying engine interface: 0x%x!", hres);
+-        return false;
++
++    //Snapshot the sensor interface table, then restore every function slot
++    //from the pristine static image. The relinked adapter's runtime state
++    //overlaps the table's storage in .data and clobbers slots; the file RVAs
++    //are stable, so normalize all 15 slots in one step.
++    {
++        WINBIO_SENSOR_INTERFACE_V1 *snapshot = (WINBIO_SENSOR_INTERFACE_V1*) malloc(sizeof(WINBIO_SENSOR_INTERFACE_V1));
++        memcpy(snapshot, tudor_sensor_adapter, sizeof(WINBIO_SENSOR_INTERFACE_V1));
++        tudor_sensor_adapter = snapshot;
++
++        uintptr_t mod_base = (uintptr_t) tudor_adapter_dll->image.base_addr;
++        static const uint32_t sensor_slot_rvas[15] = {
++            0x005b50, 0x005d50, 0x005ee0, 0x005ff0, 0x006250,
++            0x006460, 0x0065d0, 0x006660, 0x0066f0, 0x006bf0,
++            0x006ec0, 0x006f50, 0x0070b0, 0x0072f0, 0x0075b0,
++        };
++        void **slots = (void**) tudor_sensor_adapter;
++        for(int i = 0; i < 15; i++) {
++            slots[4 + i] = (void*) (mod_base + sensor_slot_rvas[i]);
++        }
++
++        //Alias the Windows 10 names onto the legacy entry points. This driver
++        //predates the pipeline API; Reset doubles as init/activate and Cancel
++        //as cleanup.
++        tudor_sensor_adapter->PipelineInit    = (IBIO_SENSOR_PIPELINE_INIT_FN*) tudor_sensor_adapter->Reset;
++        tudor_sensor_adapter->PipelineCleanup = (IBIO_SENSOR_PIPELINE_CLEANUP_FN*) tudor_sensor_adapter->Cancel;
++        tudor_sensor_adapter->Activate        = (IBIO_SENSOR_ACTIVATE_FN*) tudor_sensor_adapter->Reset;
++        tudor_sensor_adapter->Deactivate      = (IBIO_SENSOR_DEACTIVATE_FN*) tudor_sensor_adapter->Cancel;
+     }
+ 
++    //Debug: dump the queried interface tables so we can spot layout mismatches
++    printf("sensor adapter: version=%u type=%u size=%zu ptr=%p\n",
++        tudor_sensor_adapter->Version, tudor_sensor_adapter->Type, (size_t) tudor_sensor_adapter->Size, (void*) tudor_sensor_adapter);
++    printf("  Attach=%p Detach=%p ClearContext=%p QueryStatus=%p Reset=%p\n",
++        (void*) tudor_sensor_adapter->Attach, (void*) tudor_sensor_adapter->Detach,
++        (void*) tudor_sensor_adapter->ClearContext, (void*) tudor_sensor_adapter->QueryStatus,
++        (void*) tudor_sensor_adapter->Reset);
++    printf("  PipelineInit=%p PipelineCleanup=%p Activate=%p Deactivate=%p\n",
++        (void*) tudor_sensor_adapter->PipelineInit, (void*) tudor_sensor_adapter->PipelineCleanup,
++        (void*) tudor_sensor_adapter->Activate, (void*) tudor_sensor_adapter->Deactivate);
++    printf("engine adapter: version=%u type=%u size=%zu ptr=%p\n",
++        tudor_engine_adapter->Version, tudor_engine_adapter->Type, (size_t) tudor_engine_adapter->Size, (void*) tudor_engine_adapter);
++    //Even if the struct layout differs, print raw words at the expected offsets
++    printf("RAW sensor table:");
++    for(int i = 0; i < 12; i++) printf(" %016zx", ((size_t*) tudor_sensor_adapter)[i + 4]);
++    printf("\n");
++    printf("ADDRSensor=%p ADDREngine=%p\n", (void*) tudor_sensor_adapter, (void*) tudor_engine_adapter);
++    printf("ENGINE table:");
++    for(int i = 0; i < 16; i++) printf(" %016zx", ((size_t*) tudor_engine_adapter)[i + 4]);
++    printf("\n");
++    printf("ENGINE+0x60=%p ENGINE+0x100=%p\n",
++        (void*) *(void**) ((char*) tudor_engine_adapter + 0x60),
++        (void*) *(void**) ((char*) tudor_engine_adapter + 0x100));
++    printf("  Attach=%p Detach=%p ClearContext=%p\n",
++        (void*) tudor_engine_adapter->Attach, (void*) tudor_engine_adapter->Detach,
++        (void*) tudor_engine_adapter->ClearContext);
++    printf("  PipelineInit=%p PipelineCleanup=%p Activate=%p Deactivate=%p\n",
++        (void*) tudor_engine_adapter->PipelineInit, (void*) tudor_engine_adapter->PipelineCleanup,
++        (void*) tudor_engine_adapter->Activate, (void*) tudor_engine_adapter->Deactivate);
++
+     printf("tudor_init finish!\n");
+     return true;
+ 
+@@ -1917,8 +2169,8 @@ bool tudor_open(struct tudor_device *device, libusb_device_handle *usb_dev, stru
+     if(!device->pipeline) { perror("Error allocating WINBIO pipeline"); abort(); }
+     *device->pipeline = (WINBIO_PIPELINE) {0};
+     device->pipeline->EngineInterface = tudor_engine_adapter;
+-    device->pipeline->SensorInterface = tudor_sensor_adapter;
+-    // device->pipeline->StorageInterface = tudor_storage_adapter;
++    device->pipeline->SensorInterface = (WINBIO_SENSOR_INTERFACE*) tudor_sensor_adapter;
++    device->pipeline->StorageInterface = tudor_storage_adapter;
+     // device->pipeline->SensorHandle = device->winbio_file = winio_create_file(device, true, NULL, NULL, (winio_devctrl_fnc*) tudor_devctrl, (winio_cancel_fnc*) tudor_cancel, (winio_cleanup_fnc*) tudor_cleanup, NULL);
+     device->pipeline->SensorHandle = device->winbio_file = winio_create_file(
+         device, 
+@@ -1936,32 +2188,60 @@ bool tudor_open(struct tudor_device *device, libusb_device_handle *usb_dev, stru
+     device->pipeline->StorageContext = device;
+ 
+     log_debug("Attaching interfaces to pipeline...");
+-    WINBIO_CALL_PIPELINE(tudor_sensor_adapter->Attach, device->pipeline);
+-    WINBIO_CALL_PIPELINE(tudor_engine_adapter->Attach, device->pipeline);
+-    // WINBIO_CALL_PIPELINE(tudor_storage_adapter->Attach, device->pipeline);
++    WINBIO_CALL_PIPELINE_RC("sensor.Attach", tudor_sensor_adapter->Attach, device->pipeline);
++    if(getenv("TUDOR_NO_ENGINE") == NULL) {
++        WINBIO_CALL_PIPELINE_RC("engine.Attach", tudor_engine_adapter->Attach, device->pipeline);
++    }
++    WINBIO_CALL_PIPELINE_RC("storage.Attach", tudor_storage_adapter->Attach, device->pipeline);
++
++    printf("CTX: sensor=%p engine=%p storage=%p\n",
++        device->pipeline->SensorContext, device->pipeline->EngineContext, device->pipeline->StorageContext);
+ 
+     log_debug("Initializing pipeline interfaces...");
+-    WINBIO_CALL_PIPELINE(tudor_sensor_adapter->PipelineInit, device->pipeline);
+-    WINBIO_CALL_PIPELINE(tudor_engine_adapter->PipelineInit, device->pipeline);
+-    // WINBIO_CALL_PIPELINE(tudor_storage_adapter->PipelineInit, device->pipeline);
++    //NOTE: this driver (Synaptics WBDI 5.5.2731.1050) predates the Windows 10
++    //sensor pipeline API: its interface table has no PipelineInit or Activate
++    //entries (see WINBIO_SENSOR_INTERFACE_V1). Attach plus Reset is the whole
++    //initialization sequence for it.
++    if(getenv("TUDOR_PROBE_SLOT")) {
++        int slot = atoi(getenv("TUDOR_PROBE_SLOT"));
++        void **tbl = (void**) tudor_sensor_adapter;
++        fflush(stdout);
++        printf("PROBE SLOT %d (+%#04x): %p ...\n", slot, 0x20 + slot*8, tbl[4 + slot]);
++        fflush(stdout);
++        HRESULT r = ((HRESULT (*)(WINBIO_PIPELINE*)) tbl[4 + slot])(device->pipeline);
++        printf("PROBE SLOT %d -> 0x%x\n", slot, r);
++        fflush(stdout);
++    }
+ 
+     //Reset the sensor
+     log_debug("Resetting sensor...");
+-    WINBIO_CALL_PIPELINE(tudor_sensor_adapter->Reset, device->pipeline);
+-
+-    //Activate the pipeline
+-    log_debug("Activating pipeline...");
+-    WINBIO_CALL_PIPELINE(tudor_sensor_adapter->Activate, device->pipeline);
+-    WINBIO_CALL_PIPELINE(tudor_engine_adapter->Activate, device->pipeline);
+-    // WINBIO_CALL_PIPELINE(tudor_storage_adapter->Activate, device->pipeline);
++    //The driver's reset may need time to settle after firmware init
++    //(returns ERROR_NO_MORE_ITEMS while busy). Retry with backoff.
++    {
++        hres = 0x80070103 /* ERROR_NO_MORE_ITEMS */;
++        for(int attempt = 0; attempt < 20; attempt++) {
++            hres = tudor_sensor_adapter->Reset(device->pipeline);
++            printf("[PIPE] sensor.Reset attempt %d -> 0x%x\n", attempt, hres);
++            if(hres == ERROR_SUCCESS) break;
++            usleep(500000);
++        }
++        if(hres != ERROR_SUCCESS) { log_error("Reset did not succeed: 0x%x", hres); return false; }
++    }
+ 
+     //Check the sensor status
+     log_debug("Checking sensor status...");
+     ULONG sensor_status = WINBIO_SENSOR_FAILURE;
+-    WINBIO_CALL_PIPELINE(tudor_sensor_adapter->QueryStatus, device->pipeline, &sensor_status)
++    WINBIO_CALL_PIPELINE_RC("sensor.QueryStatus", tudor_sensor_adapter->QueryStatus, device->pipeline, &sensor_status);
++    printf("[PIPE] sensor status = 0x%x\n", sensor_status);
+     if(sensor_status != WINBIO_SENSOR_READY) {
+-        log_error("Sensor didn't return ready status! [status 0x%x]", status);
+-        return false;
++        //NOT_CALIBRATED (5) is expected until the sensor performs its first
++        //capture cycle; only a hard failure should block.
++        if(sensor_status == WINBIO_SENSOR_NOT_CALIBRATED) {
++            log_warn("Sensor not calibrated yet, continuing [status 0x%x]", sensor_status);
++        } else {
++            log_error("Sensor didn't return ready status! [status 0x%x]", sensor_status);
++            return false;
++        }
+     }
+ 
+     return true;
+diff --git a/libtudor/src/tudor/internal.h b/libtudor/src/tudor/internal.h
+index c3f0ac9..e5d58e3 100644
+--- a/libtudor/src/tudor/internal.h
++++ b/libtudor/src/tudor/internal.h
+@@ -58,10 +58,15 @@ struct windrv_dll {
+ extern struct windrv_dll tudor_windrv_dlls[];
+ 
+ #define WINBIO_CALL_PIPELINE(fnc, ...) if((hres = fnc(__VA_ARGS__)) != ERROR_SUCCESS) { log_error("Error in WINBIO pipeline function '%s': 0x%x!", #fnc, hres); return false; }
++#define WINBIO_CALL_PIPELINE_RC(name, fnc, ...) do { \
++    hres = (fnc)(__VA_ARGS__); \
++    printf("[PIPE] %s -> 0x%x\n", name, hres); \
++    if(hres != ERROR_SUCCESS) { log_error("Error in WINBIO pipeline function '%s': 0x%x!", name, hres); return false; } \
++} while(0)
+ 
+ extern struct windrv_dll *tudor_adapter_dll, *tudor_driver_dll;
+ extern struct winwdf_driver *tudor_wdf_driver;
+-extern WINBIO_SENSOR_INTERFACE *tudor_sensor_adapter;
++extern WINBIO_SENSOR_INTERFACE_V1 *tudor_sensor_adapter;
+ extern WINBIO_ENGINE_INTERFACE *tudor_engine_adapter;
+ extern WINBIO_STORAGE_INTERFACE *tudor_storage_adapter;
+ 
+diff --git a/libtudor/src/tudor/winbio.h b/libtudor/src/tudor/winbio.h
+index 0086f3c..06f5c74 100644
+--- a/libtudor/src/tudor/winbio.h
++++ b/libtudor/src/tudor/winbio.h
+@@ -428,6 +428,44 @@ typedef struct _WINBIO_SENSOR_INTERFACE {
+     IBIO_SENSOR_QUERY_PRIVATE_SENSOR_TYPE_FN *QueryPrivateSensorType;
+ } WINBIO_SENSOR_INTERFACE;
+ 
++//Legacy sensor interface layout as used by the Synaptics WBDI sensor adapter
++//5.5.2731.1050. Empirically verified against the adapter binary (function
++//trace strings + probe calls): this is a pre-Windows-10 adapter, so it has
++//no native PipelineInit/PipelineCleanup/Activate/Deactivate entries. The
++//older code paths spell those operations differently, so the modern names
++//are aliased onto the closest legacy function (Reset for "init/activate",
++//Cancel for "cleanup"), which is what the Windows 7 pipeline did.
++typedef struct _WINBIO_SENSOR_INTERFACE_V1 {
++    WINBIO_ADAPTER_INTERFACE_VERSION Version;
++    ULONG Type;
++    SIZE_T Size;
++    GUID AdapterId;
++    IBIO_SENSOR_ATTACH_FN *Attach;
++    IBIO_SENSOR_DETACH_FN *Detach;
++    IBIO_SENSOR_CLEAR_CONTEXT_FN *ClearContext;
++    IBIO_SENSOR_QUERY_STATUS_FN *QueryStatus;
++    IBIO_SENSOR_RESET_FN *Reset;
++    IBIO_SENSOR_SET_MODE_FN *SetMode;
++    IBIO_SENSOR_SET_INDICATOR_STATUS_FN *SetIndicatorStatus;
++    IBIO_SENSOR_GET_INDICATOR_STATUS_FN *GetIndicatorStatus;
++    IBIO_SENSOR_START_CAPTURE_FN *StartCapture;
++    IBIO_SENSOR_FINISH_CAPTURE_FN *FinishCapture;
++    IBIO_SENSOR_EXPORT_SENSOR_DATA_FN *ExportSensorData;
++    IBIO_SENSOR_CANCEL_FN *Cancel;
++    IBIO_SENSOR_PUSH_DATA_TO_ENGINE_FN *PushDataToEngine;
++    IBIO_SENSOR_CONTROL_UNIT_FN *ControlUnit;
++    IBIO_SENSOR_CONTROL_UNIT_PRIVILEGED_FN *ResetOwnership;
++
++    //Aliases for legacy call sites that use the Windows 10 names. These are
++    //not separate table slots: PipelineInit/PipelineCleanup/Activate/
++    //Deactivate map onto the legacy Reset/Cancel entry points, which is the
++    //closest equivalent behaviour for this driver generation.
++    IBIO_SENSOR_PIPELINE_INIT_FN *PipelineInit;
++    IBIO_SENSOR_PIPELINE_CLEANUP_FN *PipelineCleanup;
++    IBIO_SENSOR_ACTIVATE_FN *Activate;
++    IBIO_SENSOR_DEACTIVATE_FN *Deactivate;
++} WINBIO_SENSOR_INTERFACE_V1;
++
+ typedef HRESULT __winfnc IBIO_ENGINE_ATTACH_FN(WINBIO_PIPELINE *Pipeline);
+ typedef HRESULT __winfnc IBIO_ENGINE_DETACH_FN(WINBIO_PIPELINE *Pipeline);
+ typedef HRESULT __winfnc IBIO_ENGINE_CLEAR_CONTEXT_FN(WINBIO_PIPELINE *Pipeline);
+diff --git a/libtudor/src/winapi/error.c b/libtudor/src/winapi/error.c
+index a4318c1..1dcd77e 100644
+--- a/libtudor/src/winapi/error.c
++++ b/libtudor/src/winapi/error.c
+@@ -3,6 +3,10 @@
+ #include "internal.h"
+ 
+ static __thread DWORD last_error;
++static __thread int get_last_error_trace_count;
++
++//Set by the CLI when tracing is wanted; limits noise
++bool tudor_trace_errors = false;
+ 
+ void winerr_clear() {
+     WIN_CLOBBER_NONVOL_REGS
+@@ -31,7 +35,10 @@ int winerr_from_errno() {
+ 
+ __winfnc DWORD GetLastError() {
+     WIN_CLOBBER_NONVOL_REGS
+-    // printf("Get last_error = %d\n", last_error);
++    if(tudor_trace_errors && get_last_error_trace_count < 100) {
++        printf("[DBG] GetLastError -> 0x%x\n", last_error);
++        get_last_error_trace_count++;
++    }
+     return last_error;
+ }
+ WINAPI(GetLastError)
+diff --git a/libtudor/src/winapi/io.c b/libtudor/src/winapi/io.c
+index e58fcfa..7050a05 100644
+--- a/libtudor/src/winapi/io.c
++++ b/libtudor/src/winapi/io.c
+@@ -266,11 +266,19 @@ __winfnc BOOL DeviceIoControl(HANDLE handle, DWORD code, const void *in_buf, DWO
+     //Start the operation
+     NTSTATUS status = file->devctrl_fnc(file->ctx, ovlp, code, in_buf, in_size, out_buf, out_size, op_ctx);
+     winerr_set_code(status);
+-    if(status != STATUS_SUCCESS) return FALSE;
++    if(status != STATUS_SUCCESS && status != STATUS_PENDING) return FALSE;
+ 
+     if(file->is_async) {
+-        winerr_set_code(ERROR_IO_PENDING);
+-        return FALSE;
++        //Windows semantics: an overlapped request tells the caller to wait
++        //via GetOverlappedResult with ERROR_IO_PENDING (0x3e5), not the raw
++        //NTSTATUS value. The overlapped must be completed by the backend.
++        if(ovlp->Internal == STATUS_PENDING) {
++            winerr_set_code(ERROR_IO_PENDING);
++            return FALSE;
++        }
++        *out_ret = (DWORD) ovlp->InternalHigh;
++        winerr_clear();
++        return TRUE;
+     }
+ 
+     //Wait for the operation to complete
+diff --git a/libtudor/src/winapi/pipe.c b/libtudor/src/winapi/pipe.c
+index 1a582e0..0ab6da5 100644
+--- a/libtudor/src/winapi/pipe.c
++++ b/libtudor/src/winapi/pipe.c
+@@ -108,7 +108,8 @@ __winfnc HRESULT SHGetFolderPathA(
+     TRACE();
+     int folder = CSIDL_FOLDER_MASK & nFolder;
+     printf("SHGetFolderPathA: %d\n", folder);
+-    const char* path = "/home/rstar000/synaptics";
++    const char *folder_env = getenv("TUDOR_DATA_DIR");
++    const char* path = (folder_env && folder_env[0]) ? folder_env : "/tmp/tudor-synaptics";
+     if (pszPath == NULL) {
+         pszPath = malloc(sizeof(path + 1));
+     }
+diff --git a/libtudor/src/winapi/winusb.c b/libtudor/src/winapi/winusb.c
+index bc26227..44189f8 100644
+--- a/libtudor/src/winapi/winusb.c
++++ b/libtudor/src/winapi/winusb.c
+@@ -45,6 +45,14 @@ struct driver_info {
+     struct libusb_device_descriptor descr;
+     libusb_device_handle * dev;
+ 
++    // Device location on the USB bus tree, used to re-acquire the sensor
++    // after it re-enumerates (the driver forces device reconnects during
++    // its trust/calibration cycles).
++    uint8_t bus_number;
++    uint8_t port_numbers[8];
++    int port_numbers_len;
++    pthread_mutex_t reopen_lock;
++
+     DWORD timeouts[0x100];
+     volatile char abort[0x100];
+ 
+@@ -83,7 +91,12 @@ bool claim_device(struct driver_info *info)
+                 err(libusb_set_configuration(info->dev, 1));
+                 err(libusb_claim_interface(info->dev, 0));
+ 
+-                printf("libusb initialized, device = %p\n", info->dev);
++                //Remember the device's position on the bus tree
++                info->bus_number = libusb_get_bus_number(dev_list[i]);
++                info->port_numbers_len = libusb_get_port_numbers(dev_list[i], info->port_numbers, sizeof(info->port_numbers));
++                if(info->port_numbers_len < 0) info->port_numbers_len = 0;
++
++                printf("libusb initialized, device = %p [bus %d, port path %d]\n", info->dev, info->bus_number, info->port_numbers_len ? info->port_numbers[0] : -1);
+                 return TRUE;
+             }
+         }
+@@ -93,6 +106,95 @@ bool claim_device(struct driver_info *info)
+     return FALSE;
+ }
+ 
++static bool device_matches_location(struct driver_info *info, libusb_device *dev)
++{
++    if(libusb_get_bus_number(dev) != info->bus_number) return false;
++
++    uint8_t ports[8];
++    int len = libusb_get_port_numbers(dev, ports, sizeof(ports));
++    if(len != info->port_numbers_len) return false;
++
++    return memcmp(ports, info->port_numbers, len) == 0;
++}
++
++// Re-acquires the sensor after it has re-enumerated on the bus. The driver
++// intentionally forces the device to disconnect/reconnect during its
++// initialization cycles, which invalidates the old handle. Wait for the
++// device to come back at the same bus location and open it again.
++static bool reopen_device_once(struct driver_info *info)
++{
++    int rc;
++    pthread_mutex_lock(&info->reopen_lock);
++
++    fprintf(stderr, "** device disconnected, waiting for it to reappear...\n");
++
++    //The old handle is dead once the device has re-enumerated
++    if(info->dev) {
++        libusb_close(info->dev);
++        info->dev = NULL;
++    }
++
++    //Poll for the device to come back (up to ~20 seconds)
++    for(int attempt = 0; attempt < 100; attempt++) {
++        libusb_device ** dev_list;
++        int dev_cnt = libusb_get_device_list(info->ctx, &dev_list);
++        if(dev_cnt < 0) {
++            pthread_mutex_unlock(&info->reopen_lock);
++            return false;
++        }
++
++        for(int i = 0; i < dev_cnt; i++) {
++            libusb_device *dev = dev_list[i];
++
++            if(!device_matches_location(info, dev)) continue;
++
++            struct libusb_device_descriptor descriptor;
++            if(libusb_get_device_descriptor(dev, &descriptor) != 0) continue;
++            if(descriptor.idVendor != info->supported_devices[0].vend_id ||
++               descriptor.idProduct != info->supported_devices[0].prod_id) continue;
++
++            rc = libusb_open(dev, &info->dev);
++            if(rc == 0) {
++                rc = libusb_set_configuration(info->dev, 1);
++                if(rc != 0 && rc != LIBUSB_ERROR_BUSY) {
++                    libusb_close(info->dev);
++                    info->dev = NULL;
++                    continue;
++                }
++                rc = libusb_claim_interface(info->dev, 0);
++                if(rc != 0) {
++                    libusb_close(info->dev);
++                    info->dev = NULL;
++                    continue;
++                }
++
++                libusb_free_device_list(dev_list, 1);
++                fprintf(stderr, "** device re-acquired [bus %d]\n", info->bus_number);
++                pthread_mutex_unlock(&info->reopen_lock);
++                return true;
++            }
++        }
++
++        libusb_free_device_list(dev_list, 1);
++
++        struct timeval tv = { .tv_sec = 0, .tv_usec = 200000 };
++        libusb_handle_events_timeout(info->ctx, &tv);
++        usleep(200000);
++    }
++
++    fprintf(stderr, "** device did not come back\n");
++    pthread_mutex_unlock(&info->reopen_lock);
++    return false;
++}
++
++//Handle a transfer error: if the device has vanished, re-acquire it and
++//report whether the caller should retry the transfer.
++static bool handle_usb_error(struct driver_info *info, int rc)
++{
++    if(rc != LIBUSB_ERROR_NO_DEVICE && rc != LIBUSB_ERROR_IO) return false;
++    return reopen_device_once(info);
++}
++
+ 
+ __winfnc BOOL
+ WinUsb_Initialize (HANDLE DeviceHandle, void** InterfaceHandle)
+@@ -134,6 +236,7 @@ WinUsb_Initialize (HANDLE DeviceHandle, void** InterfaceHandle)
+     info->playback = 0;
+ 
+     info->dev = NULL;
++    pthread_mutex_init(&info->reopen_lock, NULL);
+ 
+     if(info->playback) {
+         info->script = fopen("usb_script.txt", "rt");
+@@ -224,6 +327,15 @@ __winfnc BOOL WinUsb_GetDescriptor(
+                     LIBUSB_REQUEST_GET_DESCRIPTOR, dti,
+                     LanguageID, Buffer, (uint16_t) BufferLength, 1000);
+ 
++        //Wait for the device to come back if it re-enumerated, then retry
++        if(rc == LIBUSB_ERROR_NO_DEVICE || rc == LIBUSB_ERROR_IO) {
++            if(handle_usb_error(info, rc)) {
++                rc = libusb_control_transfer(info->dev, LIBUSB_ENDPOINT_IN,
++                            LIBUSB_REQUEST_GET_DESCRIPTOR, dti,
++                            LanguageID, Buffer, (uint16_t) BufferLength, 1000);
++            }
++        }
++
+ 
+         // if(rc >= 0) {
+         //     fprintf(info->script, "blackbox: usb %d dsc ", dti);
+@@ -292,7 +404,16 @@ __winfnc BOOL WinUsb_ControlTransfer(
+     rc = libusb_control_transfer(info->dev,
+         SetupPacket.RequestType, SetupPacket.Request, SetupPacket.Value, SetupPacket.Index,
+         Buffer, SetupPacket.Length, 10000);
+-    
++
++    //Wait for the device to come back if it re-enumerated, then retry
++    if(rc == LIBUSB_ERROR_NO_DEVICE || rc == LIBUSB_ERROR_IO) {
++        if(handle_usb_error(info, rc)) {
++            rc = libusb_control_transfer(info->dev,
++                SetupPacket.RequestType, SetupPacket.Request, SetupPacket.Value, SetupPacket.Index,
++                Buffer, SetupPacket.Length, 10000);
++        }
++    }
++
+     if(rc < 0) 
+         return FALSE;
+ #if 0 
+@@ -306,7 +427,7 @@ __winfnc BOOL WinUsb_ControlTransfer(
+     ULONG res = (ULONG) rc;
+     *LengthTransferred = res;
+     winerr_clear();
+-    usleep(500000);
++    usleep(50000);
+     return TRUE;
+ }
+ WINAPI(WinUsb_ControlTransfer)
+@@ -371,15 +492,24 @@ WinUsb_ReadPipe(
+     switch(wpi->PipeType) {
+         case UsbdPipeTypeBulk:
+             printf("bulk xfer\n");
+-            rc = libusb_bulk_transfer(
+-                    dev->dev, 
+-                    PipeID, 
+-                    Buffer, 
+-                    BufferLength, 
+-                    (int*)LengthTransferred, 
+-                    dev->timeouts[PipeID]+1000);
+-            //sleep(3);
+-            printf("LengthTransferred: %d\n", *LengthTransferred);
++            for(;;) {
++                rc = libusb_bulk_transfer(
++                        dev->dev, 
++                        PipeID, 
++                        Buffer, 
++                        BufferLength, 
++                        (int*)LengthTransferred, 
++                        dev->timeouts[PipeID]+1000);
++                printf("LengthTransferred: %d\n", *LengthTransferred);
++
++                //Device re-enumerated (the driver forces this during init)?
++                //Wait for it to come back, then retry the transfer.
++                if(rc == LIBUSB_ERROR_NO_DEVICE ||
++                   (rc == LIBUSB_ERROR_IO && *LengthTransferred == 0)) {
++                    if(handle_usb_error(dev, rc)) continue;
++                }
++                break;
++            }
+             break;
+ 
+         case UsbdPipeTypeInterrupt:
+@@ -430,7 +560,9 @@ WinUsb_ReadPipe(
+             return FALSE;
+         }
+ 
+-        exit(0); // Don't know what to do, panic quit
++        //Report the failure to the driver instead of killing the process;
++        //the driver's retry logic will handle re-initialization.
++        return FALSE;
+     }
+ 
+     return TRUE;
+@@ -508,17 +640,26 @@ WinUsb_WritePipe(
+         return TRUE;
+     }
+ 
+-    rc = libusb_bulk_transfer(dev->dev,
+-            PipeID,
+-            Buffer,
+-            BufferLength, 
+-            &send, 
+-            dev->timeouts[PipeID]+1000);
+-    printf("rc=%d send=%d\n", rc, send);
++    for(;;) {
++        rc = libusb_bulk_transfer(dev->dev,
++                PipeID,
++                Buffer,
++                BufferLength, 
++                &send, 
++                dev->timeouts[PipeID]+1000);
++        printf("rc=%d send=%d\n", rc, send);
++
++        //Device re-enumerated (the driver forces this during init)?
++        //Wait for it to come back, then retry the transfer.
++        if(rc == LIBUSB_ERROR_NO_DEVICE ||
++           (rc == LIBUSB_ERROR_IO && send == 0)) {
++            if(handle_usb_error(dev, rc)) continue;
++        }
++        break;
++    }
+ 
+     if(rc < 0) {
+         printf("E: xfer Failed - %s\n", libusb_error_name(rc));
+-        exit(0);
+         return FALSE;
+     }
+     *LengthTransferred = send;
+diff --git a/meson.build b/meson.build
+index af190d0..df53836 100644
+--- a/meson.build
++++ b/meson.build
+@@ -7,6 +7,6 @@ INSTALL_DIR = '/sbin/tudor'
+ 
+ subdir('libtudor')
+ subdir('cli')
+-subdir('tudor-host')
+-subdir('tudor-host-launcher')
+-subdir('libfprint-tod')
++# subdir('tudor-host')        # needs libfprint-2-tod-1, enable once TOD fork is installed
++# subdir('tudor-host-launcher')
++# subdir('libfprint-tod')
+diff --git a/subprojects/cryptbridge/registry.c b/subprojects/cryptbridge/registry.c
+index b850841..dc79911 100644
+--- a/subprojects/cryptbridge/registry.c
++++ b/subprojects/cryptbridge/registry.c
+@@ -98,7 +98,12 @@ static const char *get_base_path(void)
+     //     registry_base_path = strdup("/tmp/regemu");
+     // }
+ 
+-    registry_base_path = strdup("/home/rstar000/Documents/fake_reg");
++    const char *env = getenv("TUDOR_REGISTRY_PATH");
++    if (env && env[0]) {
++        registry_base_path = strdup(env);
++    } else {
++        registry_base_path = strdup("/tmp/tudor-registry");
++    }
+     return registry_base_path;
+ }
+ 

+ 128 - 0
work/patches/uunicorn-sandbox-argv-dispatch.patch

@@ -0,0 +1,128 @@
+diff --git a/hello.cc b/hello.cc
+index b1a095c..3222033 100644
+--- a/hello.cc
++++ b/hello.cc
+@@ -1489,7 +1489,7 @@ operator << (std::basic_ostream<wchar_t> &os, WINBIO_REGISTERED_FORMAT r)
+     return os << L"Owher=" << r.Owner << L", Type=" << r.Type;
+ }
+ 
+-void
++int
+ identifyFeatureSet()
+ {
+     //char ibuf[0x2000] = { 0 };
+@@ -1507,9 +1507,19 @@ identifyFeatureSet()
+     for(LONG_PTR i=0;i<req.informationSize;i++)
+         printf("%02x", obuf[i]);
+     printf("\n");
++
++    /* verify-only flow: did the enrolled record come back? */
++    for(LONG_PTR i=0;i+7<=req.informationSize;i++) {
++        if(memcmp(obuf+i, "Unicorn", 7) == 0) {
++            printf("MATCH: enrolled record found\n");
++            return 0;
++        }
++    }
++    printf("NO MATCH\n");
++    return 1;
+ }
+ 
+-void
++int
+ identify()
+ {
+     char ibuf[1024*10];
+@@ -1595,7 +1605,7 @@ identify()
+             printf("sz=%lld\n", (PUCHAR)(hdr+1) - data->CaptureData.Data);
+         }
+     }
+-    identifyFeatureSet();
++    return identifyFeatureSet();
+ }
+ 
+ void
+@@ -1646,7 +1656,7 @@ reset()
+     printf("\r\n");
+ }
+ 
+-void
++int
+ enroll()
+ {
+     Sleep(500);
+@@ -1749,6 +1759,8 @@ enroll()
+     Sleep(1000);
+ 
+     commitEnrollment();
++
++    return 0;
+ }
+ 
+ void
+@@ -2398,9 +2410,10 @@ struct breakpoint breakpoints[] = {
+     { "00000001800D8C34", (unsigned char *)0x00000001800D8C34, handle_export_out },
+ };
+ 
+-void
++int
+ nop()
+ {
++    return 0;
+ }
+ 
+ void
+@@ -2414,10 +2427,9 @@ int
+ main(int argc, char *argv[])
+ {
+     char *br = getenv("SANDBOX_BREAKPOINTS");
+-    void (*what)();
++    int (*what)();
+     IClassFactory *fact = 0;
+ 
+-#if 0
+     if(argc != 2) {
+         usage();
+         return 3;
+@@ -2436,7 +2448,6 @@ main(int argc, char *argv[])
+         usage();
+         return 3;
+     }
+-#endif
+ 
+     HMODULE pDll = LoadLibrary("synawudfbiousb.dll");
+     if(!pDll) {
+@@ -2542,16 +2553,26 @@ main(int argc, char *argv[])
+ 
+     setMode(2); // WINBIO_SENSOR_ADVANCED_MODE
+ 
+-    //what();
+-    enroll();
+-    
+-    printf("======================================================\r\n");
+-    printf("Sleeping 10 secons....\r\n");
+-    printf("======================================================\r\n");
+-    Sleep(10000);
++    int status = 0;
++
++    if(what == enroll) {
++        enroll();
+ 
+-    identify();
++        printf("======================================================\r\n");
++        printf("Sleeping 10 secons....\r\n");
++        printf("======================================================\r\n");
++        Sleep(10000);
++
++        status = identify();
++    }
++    else if(what == identify) {
++        status = identify();
++    }
++    else {
++        status = what();    /* nop */
++    }
+ 
+     printf("about to de-init\r\n");
+     inst->OnDeinitialize(aDriver);
++    return status;
+ }

+ 67 - 0
work/patches/uunicorn-wine-modern-toolchain.patch

@@ -0,0 +1,67 @@
+diff --git a/dlls/bcrypt/gnutls.c b/dlls/bcrypt/gnutls.c
+index 6afa558..37d5c33 100644
+--- a/dlls/bcrypt/gnutls.c
++++ b/dlls/bcrypt/gnutls.c
+@@ -1031,7 +1031,7 @@ NTSTATUS get_gnutls_ecc_key_params(
+ 
+     int ret;
+ 
+-    if ((ret = pgnutls_privkey_export_ecc_raw( key->u.a.handle, &curve, x, y, d )))
++    if ((ret = pgnutls_privkey_export_ecc_raw( key->u.a.handle, curve, x, y, d )))
+     {
+         FIXME("pgnutls_privkey_export_ecc_raw: %s\n", pgnutls_strerror(ret));
+         return STATUS_INTERNAL_ERROR;
+diff --git a/dlls/bcrypt/secrets.c b/dlls/bcrypt/secrets.c
+index a3f7922..c8a88f0 100644
+--- a/dlls/bcrypt/secrets.c
++++ b/dlls/bcrypt/secrets.c
+@@ -24,6 +24,11 @@
+ 
+ #include <openssl/err.h>
+ #include <openssl/ec.h>
++
++#include <gnutls/abstract.h>
++NTSTATUS get_gnutls_ecc_key_params(BCRYPT_KEY_HANDLE hKey,
++                                   gnutls_ecc_curve_t *curve,
++                                   gnutls_datum_t *x, gnutls_datum_t *y, gnutls_datum_t *d);
+ #include <openssl/bn.h>
+ #include <openssl/evp.h>
+ #include <openssl/kdf.h>
+@@ -236,8 +241,8 @@ int ecc_sign(
+         return -1;
+     }
+ 
+-    BIGNUM *r = NULL;
+-    BIGNUM *s = NULL;
++    const BIGNUM *r = NULL;
++    const BIGNUM *s = NULL;
+ 
+     pECDSA_SIG_get0(sig, &r, &s);
+ 
+diff --git a/dlls/bcrypt/secrets.h b/dlls/bcrypt/secrets.h
+index d1d8d83..56b4e11 100644
+--- a/dlls/bcrypt/secrets.h
++++ b/dlls/bcrypt/secrets.h
+@@ -9,3 +9,9 @@ int ecc_sign(
+             PUCHAR d, ULONG sd,
+             PUCHAR src, ULONG src_len, 
+             PUCHAR dst);
++
++/* from gnutls.c - declared here so secrets.c can use it */
++#include <gnutls/abstract.h>
++NTSTATUS get_gnutls_ecc_key_params(BCRYPT_KEY_HANDLE hKey,
++                                   gnutls_ecc_curve_t *curve,
++                                   gnutls_datum_t *x, gnutls_datum_t *y, gnutls_datum_t *d);
+diff --git a/dlls/crypt32/crypt32_private.h b/dlls/crypt32/crypt32_private.h
+index 3d0129e..d92eb1a 100644
+--- a/dlls/crypt32/crypt32_private.h
++++ b/dlls/crypt32/crypt32_private.h
+@@ -152,7 +152,7 @@ BOOL WINAPI CRYPT_AsnEncodePubKeyInfoNoNull(DWORD dwCertEncodingType,
+  */
+ HCRYPTPROV WINAPI I_CryptGetDefaultCryptProv(ALG_ID);
+ 
+-HINSTANCE hInstance DECLSPEC_HIDDEN;
++extern HINSTANCE hInstance DECLSPEC_HIDDEN;
+ 
+ void crypt_oid_init(void) DECLSPEC_HIDDEN;
+ void crypt_oid_free(void) DECLSPEC_HIDDEN;

+ 1 - 0
work/system/70-fingerprint-06cb-0081.rules

@@ -0,0 +1 @@
+SUBSYSTEM=="usb", ATTR{idVendor}=="06cb", ATTR{idProduct}=="0081", MODE="0660", GROUP="nebulon", TAG+="uaccess"

+ 45 - 0
work/wine-build.sh

@@ -0,0 +1,45 @@
+#!/bin/bash
+# Build the hacked Wine 4.8 fork (uunicorn/wine, branch hacking/validiy-sensor)
+# with the modern-toolchain fixes from work/patches/, and install it to
+# work/wine-build/install/.
+#
+# Prereqs (Arch): base-devel, mingw-w64-gcc, gnutls, libusb, pkgconf, gettext,
+# bison, flex. (mingw-w64-gcc matters: the build cross-compiles the PE side.)
+#
+# Usage: work/wine-build.sh [/path/to/wine-validity]
+#   default source dir: /tmp/opencode/wine-validity (cloned if missing)
+set -eu
+
+ROOT=/home/nebulon/projects/fingerprint
+SRC=${1:-/tmp/opencode/wine-validity}
+PREFIX=$ROOT/work/wine-build/install
+PATCH=$ROOT/work/patches/uunicorn-wine-modern-toolchain.patch
+
+if [ ! -d "$SRC" ]; then
+    git clone -b hacking/validiy-sensor https://github.com/uunicorn/wine "$SRC"
+fi
+cd "$SRC"
+git checkout hacking/validiy-sensor
+
+# modern-toolchain fixes: gnutls 3.8 API, OpenSSL 3 const-ness, -fno-common
+if git apply --check "$PATCH" 2>/dev/null; then
+    git apply "$PATCH"
+    echo "applied $PATCH"
+else
+    echo "(patch already applied or conflicts - continuing)"
+fi
+
+./configure --prefix="$PREFIX" \
+    --enable-win64 --with-gnutls --without-x --disable-tests \
+    --without-freetype --without-fontconfig --without-capi --without-dbus \
+    --without-oss --without-alsa --without-cups --without-sane --without-v4l \
+    --without-pcap --without-ldap --without-xml --without-xslt --without-mscms \
+    --disable-wmic --disable-winedbg --disable-winhlp32 \
+    CFLAGS='-g -O2 -Wno-error -fcommon -Dbool=winbool_field'
+
+make -j"$(nproc)"
+make install
+
+echo
+echo "Wine installed to $PREFIX"
+echo "Binary: $PREFIX/bin/wine64"

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác