Attention is currently required from: lynxis lazus.
Hoernchen has posted comments on this change by lynxis lazus. ( https://gerrit.osmocom.org/c/osmo-asf4-dfu/+/42302?usp=email )
Change subject: Errata 2.6.10: enable watchdog on boot
......................................................................
Patch Set 3: Code-Review-1
(1 comment)
Patchset:
PS3:
this needs checking and then undoing the current settings first before fixing it to use the right bits! Fortunately even the wrong window approach does the job in the existing bootloaders.
Additionally the datasheet uses raw bit offsets which are easier to read/check than looking up the defines used here, but this is a matter of personal taste.
The error was copypaste from contrib/same54_urow.ipynb which I used to inspect and play with a urow dump from gdb, at some point it turned into WEN which is not "watchdog en", but window en... you can use that to check the new urow dump.
--
To view, visit https://gerrit.osmocom.org/c/osmo-asf4-dfu/+/42302?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: osmo-asf4-dfu
Gerrit-Branch: master
Gerrit-Change-Id: I581037724d19fb5abd0c5067f16a5769f9e264a7
Gerrit-Change-Number: 42302
Gerrit-PatchSet: 3
Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Reviewer: Hoernchen <ewild(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Attention: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Comment-Date: Tue, 10 Mar 2026 21:40:03 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/42317?usp=email )
Change subject: ccid: Handle the TPDU-length = 4 case according to CCID spec
......................................................................
ccid: Handle the TPDU-length = 4 case according to CCID spec
While ISO7816-3 forbids any TPDU shorter from 5 bytes, the CCID spec
begs to differ and actually permits a host to send us 4-byte TPDUs of
Form 1, giving the responsibility of adding the P3=00h octet to the CCID
implementation.
Let's implement this accordingly. While at it, also reject TPDUs of
lengths 1, 2 and 3 bytes - just like zero-length TPDUs.
Change-Id: Ia27962bda526af3373b36d637e2b548aa01a3346
Closes: OS#6973
---
M ccid_common/ccid_device.c
1 file changed, 12 insertions(+), 3 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ccid-firmware refs/changes/17/42317/1
diff --git a/ccid_common/ccid_device.c b/ccid_common/ccid_device.c
index 8a53860..0ef85b6 100644
--- a/ccid_common/ccid_device.c
+++ b/ccid_common/ccid_device.c
@@ -457,17 +457,26 @@
/* Section 6.1.4 */
static int ccid_handle_xfr_block(struct ccid_slot *cs, struct msgb *msg)
{
- const union ccid_pc_to_rdr *u = msgb_ccid_out(msg);
+ union ccid_pc_to_rdr *u = msgb_ccid_out(msg);
const struct ccid_header *ch = (const struct ccid_header *) u;
struct msgb *resp;
int rc;
- if (u->xfr_block.hdr.dwLength == 0) {
+ /* TODO: The checks below assume TPDU-level exchange and T=0. When adding
+ * APDU-level or character level exchange or T=1 support, this needs adjustment */
+ if (u->xfr_block.hdr.dwLength < 4) {
/* CCID Rev 1.1 permits a zero-length XfrBlock on the protocol level, but what should we do
- * with a zero-length TPDU? We need to reject it as bError=1 (Bad dwLength) */
+ * with a zero-length or otherwise short TPDU? We need to reject it as bError=1 (Bad dwLength) */
resp = ccid_gen_data_block(cs, u->xfr_block.hdr.bSeq, CCID_CMD_STATUS_FAILED, 1, 0, 0);
goto out;
+ } else if (u->xfr_block.hdr.dwLength == 4) {
+ /* CCID v1.1 Section 3.2.1:
+ * Command TPDU = CLA INS P1 P2, the CCID is responsible to add P3=00h */
+ msgb_put(msg, 1);
+ u->xfr_block.hdr.dwLength = 5;
+ u->xfr_block.abData[4] = 0x00;
}
+ /* from 5 bytes upwards, we can simply transceive it */
/* handle this asynchronously */
rc = cs->ci->slot_ops->xfr_block_async(cs, msg, &u->xfr_block);
--
To view, visit https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/42317?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-ccid-firmware
Gerrit-Branch: master
Gerrit-Change-Id: Ia27962bda526af3373b36d637e2b548aa01a3346
Gerrit-Change-Number: 42317
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Attention is currently required from: Hoernchen, fixeria.
laforge has posted comments on this change by Hoernchen. ( https://gerrit.osmocom.org/c/libosmocore/+/42205?usp=email )
Change subject: core: fix config.h
......................................................................
Patch Set 6:
(2 comments)
Patchset:
PS4:
> now with a masterfully crafted jenkins hook
Done
Patchset:
PS6:
> is @laforge@osmocom. […]
well, I sent my +1 about half an hour before you raise this question in the plaintext, and it was specifically related to patchest6.
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/42205?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Ic2cf52a3b60f43a2f5d3fe01c41a41f6fd9a8000
Gerrit-Change-Number: 42205
Gerrit-PatchSet: 6
Gerrit-Owner: Hoernchen <ewild(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: Hoernchen <ewild(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Tue, 10 Mar 2026 19:08:47 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Hoernchen <ewild(a)sysmocom.de>
Comment-In-Reply-To: laforge <laforge(a)osmocom.org>
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
Attention is currently required from: laforge.
Hoernchen has posted comments on this change by Hoernchen. ( https://gerrit.osmocom.org/c/libosmocore/+/42308?usp=email )
Change subject: sane embedded builds without host talloc
......................................................................
Patch Set 1:
(1 comment)
File src/core/Makefile.am:
https://gerrit.osmocom.org/c/libosmocore/+/42308/comment/18afbcad_eb3c86c6?… :
PS1, Line 62: context
> the point is not whether or not that change may make sense. […]
No I have absolutely no idea what exactly I am "sneking" into something here, we have absolutely no idea what we are shipping thanks to host headers and config.h mishaps, the embedded "feature set" is everything that just happens to build that way + has no missing symbols at link time, so most of the objects are not linkable anyway, or maybe they are, no one knows. None of this should have ever "worked" like this.
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/42308?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Ibb309a01ac6cad827b33ac18be408be1ac2cf7e0
Gerrit-Change-Number: 42308
Gerrit-PatchSet: 1
Gerrit-Owner: Hoernchen <ewild(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Comment-Date: Tue, 10 Mar 2026 18:24:52 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Hoernchen <ewild(a)sysmocom.de>
Comment-In-Reply-To: laforge <laforge(a)osmocom.org>
Attention is currently required from: neels.
laforge has posted comments on this change by neels. ( https://gerrit.osmocom.org/c/pysim/+/40199?usp=email )
Change subject: personalization: allow reading back multiple values from PES
......................................................................
Patch Set 10: Code-Review+2
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/40199?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: Iecb68af7c216c6b9dc3add469564416b6f37f7b2
Gerrit-Change-Number: 40199
Gerrit-PatchSet: 10
Gerrit-Owner: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-CC: dexter <pmaier(a)sysmocom.de>
Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Comment-Date: Tue, 10 Mar 2026 17:50:20 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes