lists.osmocom.org
Sign In Sign Up
Manage this list Sign In Sign Up

Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview

gerrit-log

Thread Start a new thread
Download
Threads by month
  • ----- 2026 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2025 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2024 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2023 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2022 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
gerrit-log@lists.osmocom.org

  • 1 participants
  • 97203 discussions
[XS] Change in libosmocore[master]: cbsp: cbsp_decode_cell_list(): check *buf/len
by pespin 24 Nov '26

24 Nov '26
Attention is currently required from: fixeria. pespin has posted comments on this change by fixeria. ( https://gerrit.osmocom.org/c/libosmocore/+/44159?usp=email ) Change subject: cbsp: cbsp_decode_cell_list(): check *buf/len ...................................................................... Patch Set 1: (1 comment) File src/gsm/cbsp.c: https://gerrit.osmocom.org/c/libosmocore/+/44159/comment/e78fdc86_e21515ce?… : PS1, Line 515: } else if (len < 1) { > This is just nitpicking. I do not consider this "unclean". Having an unneeded else after an early return only makes the code more complex for no good reason, this is usual basic example imho. If you consider it nitpicking and given it takes literally half the time we spent here to fix it, then let's wait for others to agree with you. -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44159?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: I31c66fad36f380fb6706a935df412fd6114f4cd9 Gerrit-Change-Number: 44159 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-CC: pespin <pespin(a)sysmocom.de> Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Comment-Date: Tue, 24 Nov 2026 12:25:33 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de> Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
1 0
0 0
[M] Change in osmo-ttcn3-hacks[master]: ausf: Fix ResStar with wrong length being sent
by pespin 24 Nov '26

24 Nov '26
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44162?usp=email ) Change subject: ausf: Fix ResStar with wrong length being sent ...................................................................... ausf: Fix ResStar with wrong length being sent Since open5gs.git 068881e88a721b4f35878d7ca4227fc923bca98b, open5gs-ausfd checks the length of the ResStar being sent. Hence, fix the test checking the correct path and add an extra test checking the incorrect-length path. Change-Id: I8db7f2c773e3c40b9b1dd115dd2d073b73992c4e --- M ausf/AUSF_Tests.ttcn M ausf/ConnHdlr.ttcn M ausf/expected-results.xml 3 files changed, 42 insertions(+), 12 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/62/44162/1 diff --git a/ausf/AUSF_Tests.ttcn b/ausf/AUSF_Tests.ttcn index ff36313..b069f07 100644 --- a/ausf/AUSF_Tests.ttcn +++ b/ausf/AUSF_Tests.ttcn @@ -129,9 +129,25 @@ f_shutdown(); } +/* 3GPP TS 29.509 5.2.2.2.2 5G AKA, sending a resStar shorter than expected (32 chars) */ +private function f_TC_5g_aka_short_resStar() runs on ConnHdlr { + f_n12_post_ue_authentications(); + f_n12_put_5g_aka_confirmation(resStar := "", exp_res_code := 400); + setverdict(pass); +} +testcase TC_5g_aka_short_resStar() runs on MTC_CT { + var ConnHdlr vc_conn; + var ConnHdlrPars pars := f_ConnHdlrPars(0); + f_init(); + vc_conn := f_start_handler(refers(f_TC_5g_aka_short_resStar), pars); + vc_conn.done; + f_shutdown(); +} + control { execute( TC_5g_aka() ); + execute( TC_5g_aka_short_resStar() ); } } diff --git a/ausf/ConnHdlr.ttcn b/ausf/ConnHdlr.ttcn index dacfa1d..1fde3c5 100644 --- a/ausf/ConnHdlr.ttcn +++ b/ausf/ConnHdlr.ttcn @@ -213,28 +213,41 @@ } /* 3GPP TS 29.509 6.1.3.3.3.1 Resource: 5g-aka-confirmation (PUT) */ -function f_n12_put_5g_aka_confirmation() +function f_n12_put_5g_aka_confirmation(template (value) charstring resStar := "0123456789abcdef0123456789abcdef", + integer exp_res_code := 200) runs on ConnHdlr { var HTTP2_Msg http2_tx; var HTTP2_Msg http2_rx; var template (present) HTTP2_Msg http2_exp_rx; var template (value) ConfirmationData conf_data; - conf_data := ts_ConfirmationData(resStar := ts_ResStar("")); + conf_data := ts_ConfirmationData(resStar := ts_ResStar(resStar)); http2_tx := f_n12_prepare_put_5g_aka_confirmation(valueof(conf_data)); f_http2_adapter_connect_send_ausf(http2_tx, idx := http2_tx.conn_id); - as_Nudm_UEAU_post_auth_events(); - /* 3GPP TS 29.503 Table 6.3.3.2.4.2.2-2 */ - http2_exp_rx := - tr_HTTP2_Msg(http2_tx.conn_id, - http2_tx.stream_id, - tr_HTTP2_header_block(pseudo_headers := tr_HTTP2_pseudo_headers_Resp(200)), - tr_HTTP2_Data_frame(stream_id := http2_tx.stream_id, - end_stream_flag := true, - data := decmatch tr_ConfirmationDataResponse)); + select (exp_res_code) { + case (200) { + as_Nudm_UEAU_post_auth_events(); + http2_exp_rx := + tr_HTTP2_Msg(http2_tx.conn_id, + http2_tx.stream_id, + tr_HTTP2_header_block(pseudo_headers := tr_HTTP2_pseudo_headers_Resp(200)), + tr_HTTP2_Data_frame(stream_id := http2_tx.stream_id, + end_stream_flag := true, + data := decmatch tr_ConfirmationDataResponse)); + } + case (400) { + http2_exp_rx := + tr_HTTP2_Msg(http2_tx.conn_id, + http2_tx.stream_id, + tr_HTTP2_header_block(pseudo_headers := tr_HTTP2_pseudo_headers_Resp(400)), + tr_HTTP2_Data_frame(stream_id := http2_tx.stream_id, + end_stream_flag := true, + data := ? )); + } + } as_http2_adapter_receive(http2_rx, http2_exp_rx, idx := http2_tx.conn_id); f_http2_adapter_close(idx := http2_tx.conn_id); diff --git a/ausf/expected-results.xml b/ausf/expected-results.xml index 7e1d439..d4a9e9b 100644 --- a/ausf/expected-results.xml +++ b/ausf/expected-results.xml @@ -1,4 +1,5 @@ <?xml version="1.0"?> -<testsuite name='Titan' tests='1' failures='0' errors='0' skipped='0' inconc='0' time='MASKED'> +<testsuite name='Titan' tests='2' failures='0' errors='0' skipped='0' inconc='0' time='MASKED'> <testcase classname='AUSF_Tests' name='TC_5g_aka' time='MASKED'/> + <testcase classname='AUSF_Tests' name='TC_5g_aka_short_resStar' time='MASKED'/> </testsuite> -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44162?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: I8db7f2c773e3c40b9b1dd115dd2d073b73992c4e Gerrit-Change-Number: 44162 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin(a)sysmocom.de>
1 0
0 0
[XS] Change in libosmocore[master]: cbsp: cbsp_decode_cell_list(): check *buf/len
by fixeria 24 Nov '26

24 Nov '26
Attention is currently required from: pespin. fixeria has posted comments on this change by fixeria. ( https://gerrit.osmocom.org/c/libosmocore/+/44159?usp=email ) Change subject: cbsp: cbsp_decode_cell_list(): check *buf/len ...................................................................... Patch Set 1: (1 comment) File src/gsm/cbsp.c: https://gerrit.osmocom.org/c/libosmocore/+/44159/comment/791914e4_f9bfdca7?… : PS1, Line 515: } else if (len < 1) { > Given it takes 10 seconds to fix, my opinion is to submit clean code. This is just nitpicking. I do not consider this "unclean". -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44159?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: I31c66fad36f380fb6706a935df412fd6114f4cd9 Gerrit-Change-Number: 44159 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-CC: pespin <pespin(a)sysmocom.de> Gerrit-Attention: pespin <pespin(a)sysmocom.de> Gerrit-Comment-Date: Tue, 24 Nov 2026 11:56:39 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: pespin <pespin(a)sysmocom.de> Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
1 0
0 0
[XS] Change in libosmocore[master]: cbsp: cbsp_decode_cell_list(): check *buf/len
by pespin 24 Nov '26

24 Nov '26
Attention is currently required from: fixeria. pespin has posted comments on this change by fixeria. ( https://gerrit.osmocom.org/c/libosmocore/+/44159?usp=email ) Change subject: cbsp: cbsp_decode_cell_list(): check *buf/len ...................................................................... Patch Set 1: (1 comment) File src/gsm/cbsp.c: https://gerrit.osmocom.org/c/libosmocore/+/44159/comment/6d496ce8_d4b9002f?… : PS1, Line 515: } else if (len < 1) { > Is this critical or can it be merged as-is? Given it takes 10 seconds to fix, my opinion is to submit clean code. -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44159?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: I31c66fad36f380fb6706a935df412fd6114f4cd9 Gerrit-Change-Number: 44159 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-CC: pespin <pespin(a)sysmocom.de> Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Comment-Date: Tue, 24 Nov 2026 11:48:34 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de> Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
1 0
0 0
[XS] Change in libosmocore[master]: cbsp: cbsp_decode_cell_list(): check *buf/len
by fixeria 24 Nov '26

24 Nov '26
Attention is currently required from: pespin. fixeria has posted comments on this change by fixeria. ( https://gerrit.osmocom.org/c/libosmocore/+/44159?usp=email ) Change subject: cbsp: cbsp_decode_cell_list(): check *buf/len ...................................................................... Patch Set 1: (1 comment) File src/gsm/cbsp.c: https://gerrit.osmocom.org/c/libosmocore/+/44159/comment/2f7f2385_5fda31b0?… : PS1, Line 515: } else if (len < 1) { > There's an early return above, drop the "else" here. Is this critical or can it be merged as-is? -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44159?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: I31c66fad36f380fb6706a935df412fd6114f4cd9 Gerrit-Change-Number: 44159 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-CC: pespin <pespin(a)sysmocom.de> Gerrit-Attention: pespin <pespin(a)sysmocom.de> Gerrit-Comment-Date: Tue, 24 Nov 2026 11:42:40 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
1 0
0 0
[S] Change in libosmocore[master]: core/exec: Use close_range() libc API when available
by pespin 24 Nov '26

24 Nov '26
pespin has submitted this change. ( https://gerrit.osmocom.org/c/libosmocore/+/44099?usp=email ) Change subject: core/exec: Use close_range() libc API when available ...................................................................... core/exec: Use close_range() libc API when available Using the libc call (which in turn uses a single system call) is far more efficient. Change-Id: I6589564c406095a1e6584d8c0e65c28594326f31 --- M configure.ac M src/core/exec.c 2 files changed, 15 insertions(+), 1 deletion(-) Approvals: jolly: Looks good to me, but someone else must approve Jenkins Builder: Verified fixeria: Looks good to me, but someone else must approve pespin: Looks good to me, approved diff --git a/configure.ac b/configure.ac index cde4446..43bd2c1 100644 --- a/configure.ac +++ b/configure.ac @@ -174,6 +174,11 @@ [[#define _GNU_SOURCE #include <sched.h>]]) +dnl Check whether close_range() is available +AC_CHECK_DECLS([close_range], [], [], + [[#define _GNU_SOURCE + #include <unistd.h>]]) + AC_DEFUN([CHECK_TM_INCLUDES_TM_GMTOFF], [ AC_CACHE_CHECK( [whether struct tm has tm_gmtoff member], diff --git a/src/core/exec.c b/src/core/exec.c index 2d1df82..c87c8cf 100644 --- a/src/core/exec.c +++ b/src/core/exec.c @@ -165,9 +165,17 @@ /* Iterate over files in /proc/self/fd and close all above lst_fd_to_keep */ int osmo_close_all_fds_above(int last_fd_to_keep) { + int rc; + +#if HAVE_DECL_CLOSE_RANGE + rc = close_range(last_fd_to_keep + 1, ~0U, 0); + if (rc) + LOGP(DLGLOBAL, LOGL_ERROR, "Error close_range() fds=[%d..%u]: %s\n", + last_fd_to_keep + 1, ~0U, strerror(errno)); + return 0; +#else struct dirent *ent; DIR *dir; - int rc; dir = opendir("/proc/self/fd"); if (!dir) { @@ -187,6 +195,7 @@ } closedir(dir); return 0; +#endif } /* Seems like POSIX has no header file for this, and even glibc + __USE_GNU doesn't help */ -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44099?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: I6589564c406095a1e6584d8c0e65c28594326f31 Gerrit-Change-Number: 44099 Gerrit-PatchSet: 2 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Hoernchen <ewild(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: jolly <andreas(a)eversberg.eu> Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
1 0
0 0
[S] Change in libosmocore[master]: core/exec: Use close_range() libc API when available
by pespin 24 Nov '26

24 Nov '26
Attention is currently required from: Hoernchen, laforge. pespin has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/libosmocore/+/44099?usp=email ) Change subject: core/exec: Use close_range() libc API when available ...................................................................... Patch Set 1: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44099?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: I6589564c406095a1e6584d8c0e65c28594326f31 Gerrit-Change-Number: 44099 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Hoernchen <ewild(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: jolly <andreas(a)eversberg.eu> Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Attention: laforge <laforge(a)osmocom.org> Gerrit-Attention: Hoernchen <ewild(a)sysmocom.de> Gerrit-Comment-Date: Tue, 24 Nov 2026 11:35:37 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[XS] Change in libosmocore[master]: cbsp: cbsp_decode_fail_list(): add missing bounds check
by pespin 24 Nov '26

24 Nov '26
Attention is currently required from: fixeria. pespin has posted comments on this change by fixeria. ( https://gerrit.osmocom.org/c/libosmocore/+/44161?usp=email ) Change subject: cbsp: cbsp_decode_fail_list(): add missing bounds check ...................................................................... Patch Set 1: Code-Review+1 -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44161?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: I3c6776695c80691a54d2f2bbc7421c8c5ae9a216 Gerrit-Change-Number: 44161 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Comment-Date: Tue, 24 Nov 2026 11:25:40 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[XS] Change in libosmocore[master]: cbsp: cbsp_decode_cell_list(): fix endless loop iteration
by pespin 24 Nov '26

24 Nov '26
Attention is currently required from: fixeria. pespin has posted comments on this change by fixeria. ( https://gerrit.osmocom.org/c/libosmocore/+/44160?usp=email ) Change subject: cbsp: cbsp_decode_cell_list(): fix endless loop iteration ...................................................................... Patch Set 1: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44160?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: I03e7548baef1e8703668de1a20d31c69bf87caf3 Gerrit-Change-Number: 44160 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-CC: Jenkins Builder Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Comment-Date: Tue, 24 Nov 2026 11:21:19 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[XS] Change in libosmocore[master]: cbsp: cbsp_decode_cell_list(): check *buf/len
by pespin 24 Nov '26

24 Nov '26
Attention is currently required from: fixeria. pespin has posted comments on this change by fixeria. ( https://gerrit.osmocom.org/c/libosmocore/+/44159?usp=email ) Change subject: cbsp: cbsp_decode_cell_list(): check *buf/len ...................................................................... Patch Set 1: (1 comment) File src/gsm/cbsp.c: https://gerrit.osmocom.org/c/libosmocore/+/44159/comment/78e2d480_dbef8f1d?… : PS1, Line 515: } else if (len < 1) { There's an early return above, drop the "else" here. -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44159?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: I31c66fad36f380fb6706a935df412fd6114f4cd9 Gerrit-Change-Number: 44159 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-CC: Jenkins Builder Gerrit-CC: pespin <pespin(a)sysmocom.de> Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Comment-Date: Tue, 24 Nov 2026 11:20:07 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No
1 0
0 0
  • ← Newer
  • 1
  • ...
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • ...
  • 9721
  • Older →

HyperKitty Powered by HyperKitty version 1.3.12.