-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ccid apps to the usbip runner #149
Conversation
Typos and readability
Regarding the first problem: I think I can reproduce this. |
Does |
No. |
Anything suspicious in |
Yes, basically the same one you had:
|
There appear to be a similar bug already reported: https://bugzilla.kernel.org/show_bug.cgi?id=215487 The symptoms are the same, but the |
I included a fix for #151 |
Includes a fix for #150 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
4c0af73
to
5a2722c
Compare
Ok, so the the way it was done before the fix for #151 is correct, because the response blocks can be sent in multiple parts and it's just that the gnuk test suite doesn't support this. I still don't understand exactly how my fix made thing worse for the firmware itself, but for now I'll revert it. We should consider fixing the gnuk test suite to use it. Edit: see #151 (comment) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not tested yet, but the code changes look good to me.
I think we should merge this now. It works well on the firmware itself. I'll then upstream the usbd-ccid changes into https://github.com/trussed-dev/usbd-ccid |
Regarding usbip, I think I have found a bug in your usbip server, see https://lore.kernel.org/lkml/ZBHxfUX60EyCMw5l@Sun/ |
@ZenithalHourlyRate Thank you for looking into the bug report! I will try to fix the issue you pointed out. |
This PR cleans up
usbd-ccid
a bit and adds the CCID apps (opcard) to the usbip runner.Closes #140, #150 and #151
On my machine I enconter 2 bugs:
pcscd
and this somehow manage to trigger a kernel bug:usbip attach -r localhost -b 1-1
(enough times for it to not return immediately)opgpcard status
lsusb
hangs anddmesg
shows an error:kernel BUG at mm/usercopy.c:101!
gpg
still fails to detect this as an openpgp smartcard for some reason