Thursday, 2023-11-30

*** monstr <monstr!~monstr@nat-35.starnet.cz> has joined #cip06:53
*** rajm <rajm!~robert@82.27.50.32> has joined #cip06:54
*** frieder <frieder!~frieder@i5C75E691.versanet.de> has joined #cip07:25
*** prabhakarlad <prabhakarlad!~prabhakar@217.163.141.2> has joined #cip08:45
*** prabhakarlad <prabhakarlad!~prabhakar@217.163.141.2> has quit IRC (Ping timeout: 250 seconds)10:42
*** prabhakar <prabhakar!~prabhakar@217.163.141.2> has quit IRC (Ping timeout: 252 seconds)10:42
*** prabhakarlad <prabhakarlad!~prabhakar@217.163.141.2> has joined #cip12:06
*** masami <masami!~masami@FL1-219-107-72-235.tky.mesh.ad.jp> has joined #cip12:45
*** monstr <monstr!~monstr@nat-35.starnet.cz> has quit IRC (Read error: Connection reset by peer)12:55
*** monstr <monstr!~monstr@nat-35.starnet.cz> has joined #cip12:55
iwamatsuhello13:00
masamihello13:01
arisuthello13:01
*** jki <jki!~jki@46.128.89.130> has joined #cip13:02
iwamatsuHi Jan,13:03
jkihi!13:03
jkimeeting started already - or do I have to?13:03
patersoncHello13:03
iwamatsunot start yet.13:04
jkiah, ok13:04
jkithen let me try to handle that13:04
jki#startmeeting CIP IRC weekly meeting13:04
collab-meetbotMeeting started Thu Nov 30 13:04:50 2023 UTC and is due to finish in 60 minutes.  The chair is jki. Information about MeetBot at http://wiki.debian.org/MeetBot.13:04
collab-meetbotUseful Commands: #action #agreed #help #info #idea #link #topic #startvote.13:04
collab-meetbotThe meeting name has been set to 'cip_irc_weekly_meeting'13:04
*** collab-meetbot changes topic to " (Meeting topic: CIP IRC weekly meeting)"13:04
iwamatsuI am going to be in charge today13:04
jkioh, sorry, I was too fast then :)13:05
jki#topic AI review13:05
*** collab-meetbot changes topic to "AI review (Meeting topic: CIP IRC weekly meeting)"13:05
iwamatsuno problem, Can I take it?13:05
jkisure - go ahead!13:05
pave1Hello!13:05
iwamatsuok13:05
iwamatsuhi pave1.13:05
iwamatsuNothing on the list13:06
iwamatsumoving on13:06
iwamatsu513:06
iwamatsu413:06
iwamatsu313:06
iwamatsu213:06
iwamatsu113:06
iwamatsu#topic Kernel maintenance updates13:06
masamiThis week reported 1 new CVEs and 6 updated CVEs.13:07
pave1I did reviews, 6.1.63 and .6413:07
jki#topic Kernel maintenance updates13:07
*** collab-meetbot changes topic to "Kernel maintenance updates (Meeting topic: CIP IRC weekly meeting)"13:07
jki(seems I can only change the topic now)13:07
iwamatsujki: thank you13:07
iwamatsuI reviewed 6.1.64.13:10
iwamatsuAnything else?13:10
iwamatsu313:10
iwamatsu213:10
iwamatsu113:10
iwamatsu#topic Kernel release status13:10
iwamatsu4.413:10
pave14.4, 4.19, 5.10: -rt is on schedule.13:10
iwamatsu4.1913:11
iwamatsuon track13:11
iwamatsu5.1013:12
iwamatsuon trak13:12
iwamatsu6.1013:12
iwamatsu-cip and cip-rt is late.13:13
iwamatsuI am going to release -cip after this meeting.13:13
pave16.1-rt: we don't have suitable rt release. I tried to ping maintainers for one.13:13
iwamatsuok, thanks.13:14
iwamatsuAnything else?13:14
iwamatsu513:14
iwamatsu413:14
iwamatsu313:14
iwamatsu213:14
iwamatsu113:14
iwamatsu#topic Kernel testing13:14
patersoncI've not much to share this week13:15
iwamatsuGot it.13:15
arisutnothing from me13:15
iwamatsuAnything else?13:15
iwamatsu513:16
iwamatsu413:16
iwamatsu313:16
iwamatsu213:16
iwamatsu113:16
iwamatsu#topic AOB13:16
iwamatsuF2F meeting before OSSJ.13:17
pave1Will there be some kind of remote bridge?13:17
patersoncAt the E-TSC next week, I'd like to re-visit the RZ/Five reference platform proposal - is that okay?13:18
jkipavel: I assume so13:18
jkipatersonc: are the linker problems resolved by now?13:19
patersoncjkl: This is one of the sticking points. It would require the filesystem to be built specifically for RZ/Five, which doesn't really work with Debian packages13:20
jkiyes, that will be challenging13:20
iwamatsuOther topic?13:21
jkiwho will run the meeting next week?13:21
jkiI'm on a plane, may or may not be online...13:22
patersoncI won't be around next week13:22
iwamatsuI can take over13:22
pave1thank you!13:23
iwamatsuAnything else?13:23
iwamatsu513:23
iwamatsu413:23
iwamatsu313:23
iwamatsu213:23
iwamatsu113:23
iwamatsu#endmeeting13:23
jkithanks, folks!13:24
iwamatsujki: please re-type "#endmeeting"13:24
jki#endmeeting13:24
collab-meetbotMeeting ended Thu Nov 30 13:24:31 2023 UTC.  Information about MeetBot at http://wiki.debian.org/MeetBot . (v 0.1.4)13:24
collab-meetbotMinutes:        http://ircbot.wl.linuxfoundation.org/meetings/cip/2023/11/cip.2023-11-30-13.04.html13:24
collab-meetbotMinutes (text): http://ircbot.wl.linuxfoundation.org/meetings/cip/2023/11/cip.2023-11-30-13.04.txt13:24
collab-meetbotLog:            http://ircbot.wl.linuxfoundation.org/meetings/cip/2023/11/cip.2023-11-30-13.04.log.html13:24
*** collab-meetbot changes topic to "Civil Infrastructure Platform Project. CIP mailing list at https://lists.cip-project.org/g/cip-dev | CIP kernel meeting every Thursday at 12:00 UTC | Find the meeting logs at https://ircbot.wl.linuxfoundation.org/meetings/cip/ and chat logs at https://ircbot.wl.linuxfoundation.org/logs/%23cip/"13:24
jki:)13:24
pave1Thank you, see you next week.13:24
patersoncjkl: On the cip-core topic...13:24
jkisee (some of you) in Japan!13:24
masamithank you13:24
iwamatsusee you next week13:24
arisutsee you13:24
*** masami <masami!~masami@FL1-219-107-72-235.tky.mesh.ad.jp> has quit IRC (Quit: Leaving)13:24
patersoncDo you think there's an option to not support a reference platform in cip-core Or is the mandatory for a CIP reference platform?13:25
jkipatersonc: yes?13:25
jkiI don't think we have such a rule somewhere, it's more a practical concern13:25
jkihow many packages would you have to patch in practice?13:25
jkiwe only saw issues with some - or do all have this in principle?13:26
jki...with some that did no dynamic linking IIRC13:26
patersoncI think in theory everything should be compiled differently, but in practice we've only seen issues with a few13:26
jkireminds me of our "fun" with that Quark processor...13:28
jkiwe need to have a picture what it will practically mean for testing the kernel13:28
patersoncSure - I'm putting something together13:29
jkialso, as there is not much activitiy on the tiny profile anymore, userspace would remaing out of scope for CIP on that board13:29
patersoncYes that's a shame13:29
jkiif we are expanding our test images via isar-cip-core, coverage for the RZ/Five could suffer, even kernel-wise13:30
patersoncDeby could have been an option because it compiles the packages from source, so we could have added our flag13:30
patersoncOn the kernel side of things the only "issue" is a large number of core riscv patches that would need backporting13:30
jki...or if our test infrastructure would need special care only for that board13:31
pave1Could we get a summary of the bug and the workaround, somewhere?13:33
pave1I believe we really should aim for workaround at hw or kernel level...13:33
pave1Because if userland has to care, that is no longer riscv architecture, that is something slightly different.13:34
pave1...and will cause problems. For example security will be very different.13:35
patersoncSure, and we've fixed the kernel side as much as can be done without redesigning the hardware13:36
pave1So what is the end result?13:37
pave1Part of virtual space of each process is unusable.13:38
pave1... is unusable for normal mappings?13:38
jki+ is always accessable by userspace, no?13:39
jkiis this security-wise fixable at all in software?13:40
*** prabhakarlad <prabhakarlad!~prabhakar@217.163.141.2> has quit IRC (Quit: Client closed)13:44
patersoncAccess to naughty areas is blocked by the memory protection unit13:45
*** prabhakarlad <prabhakarlad!~prabhakar@217.163.141.2> has joined #cip13:45
*** prabhakar <prabhakar!~prabhakar@217.163.141.2> has joined #cip13:46
pave1Aha, ok so we can't run normal binaries...13:47
pave1...because they may have fixed mappings at that areas?13:47
pave1But security is not completely broken...13:47
patersoncCorrect13:47
pave1...because we can use MPU to prevent such accesses.13:47
patersoncThe TEXT_START_ADDR needs to be set from 0x10000 to 0x5000013:48
pave1I guess using MPU faults to emulate such accesses (ala math fpu emulation for 386) is not feasible?13:50
prabhakarpave1: basically on RISC-V we have PMP regions (16 on rz/five) available on memory protection unit (MPU). This allows users to configure regions to give permission for R/W/X in M/S/U modes.13:55
pave1Prabhakar: Thanks. Is there description of MPU unit somewhere?13:57
prabhakarso currently for rz/five we only allow M mode to access the ILM/DLM regions any access tried from S/U (kernel/user space) will cause a panic/fault.13:57
prabhakarladlet me check.13:58
patersonchttps://www.renesas.com/eu/en/products/microcontrollers-microprocessors/rz-mpus/rzfive-general-purpose-microprocessors-risc-v-cpu-core-andes-ax45mp-single-10-ghz-2ch-gigabit-ethernet13:58
patersonc"Download Manual HW" - blue button at the top14:00
prabhakarladhttps://www.andestech.com/wp-content/uploads/AX45MP-1C-Rev.-5.0.0-Datasheet.pdf14:01
pave1prabhakarlad: Thank you!14:01
prabhakarladpage 263, i termed it as MPU as its used commonly in arm but in risc-v we its called "Physical Memory Protection Unit"14:02
pave1patersonc: I went through those, but... if it is there it is hidden in all the hardware stuff.14:02
prabhakarladOpensbi patch which does this change https://github.com/riscv-software-src/opensbi/commit/dea0922f867f3d681ad3191fb562a082ea4a339f which is already accepted upstream.14:06
pave1Ok, this is rather small and elegant.14:08
*** prabhakarlad <prabhakarlad!~prabhakar@217.163.141.2> has quit IRC (Quit: Client closed)14:08
pave1But as a result board can no longer run normal risc-v binaries, which is a problem.14:09
pave1Proper solution would to be new architecture -- rv64-nolowmem.14:09
pave1Or convince everyone that memory below 0x5_0000 should be reserved on all rv64 linux platforms.14:10
patersoncThat may be a hard sell14:11
jkithose faults will be taken to M mode, right? any chance to replay them from there as regular page faults to S mode?14:11
pave1jki: normal page fault handler will map the area and retry execution.14:12
pave1jki: That can't be done here;14:12
pave1jki: we'd have to emulate the instruction.14:12
jkiso the kernel gets at least the information about the access, and we "only" need to emulate?14:14
pave1jki: Ok, that would work. But performance penalty would be high.14:16
jkimaybe KVM for RISC-V has instruction emulation support which could be reused here (code-wise, not configuration-wise as there is no hypervisor support on that chip)14:16
jkiquestion remains how many apps this will affect in practice14:16
jkibut, yes, all that remains a de-facto show stopper for distros14:17
pave1jki: yes. :-(.14:17
pave1Ok. I guess we should not advertise this as risc-v platform.14:17
pave1It can not run normal risc-v distribution.14:17
pave1Sorry :-(.14:17
patersonc:)14:19
*** prabhakarlad <prabhakarlad!~prabhakar@217.163.141.2> has joined #cip14:20
prabhakarpave1: for user space we plan to propose similar patch https://paste.debian.net/1299716/ for isar-cip-core.14:22
jkithat alone does not help14:24
jkiwe need a list of Debian packages that require recompilation against such patched binutils14:24
pave1prabhakar: Patch alone looks good, but...14:25
jkiin theory, all debian packages could be rebuild via isar[-cip-core], but... no...14:25
patersoncIndeed14:26
patersoncPerhaps we could generate a test image this way for kernel testing - but not a great setup for "production" cip-core14:27
jkieven generating that for testing only would be a lot of effort - at least regarding CI time14:28
patersoncSure14:29
patersoncEither that or use Renesas' Poky based BSP14:29
patersoncOr work out what ASUS have done for their Debian bases Tinker V board14:30
patersoncs/bases/based14:30
patersonchttps://tinker-board.asus.com/series/tinker-v.html14:31
jkican you summarize what Asus did?14:31
patersoncI don't actually know!14:31
patersoncI can't see any docs, but they say they have a Debian based OS14:32
patersoncI'll see if I can find out14:32
*** jki <jki!~jki@46.128.89.130> has quit IRC (Ping timeout: 255 seconds)14:37
*** jki <jki!~jki@46.128.89.130> has joined #cip14:50
*** jki <jki!~jki@46.128.89.130> has quit IRC (Remote host closed the connection)14:58
*** monstr <monstr!~monstr@nat-35.starnet.cz> has quit IRC (Remote host closed the connection)17:21
*** prabhakarlad <prabhakarlad!~prabhakar@217.163.141.2> has quit IRC (Quit: Client closed)20:02
*** frieder <frieder!~frieder@i5C75E691.versanet.de> has quit IRC (Remote host closed the connection)20:16
*** prabhakarlad <prabhakarlad!~prabhakar@217.163.141.2> has joined #cip20:40
*** prabhakarlad <prabhakarlad!~prabhakar@217.163.141.2> has quit IRC (Quit: Client closed)21:14
*** prabhakar <prabhakar!~prabhakar@217.163.141.2> has quit IRC (Quit: Connection closed)21:14
*** prabhakar <prabhakar!~prabhakar@217.163.141.2> has joined #cip21:14
*** prabhakarlad <prabhakarlad!~prabhakar@217.163.141.2> has joined #cip21:15
*** rajm <rajm!~robert@82.27.50.32> has quit IRC (Ping timeout: 256 seconds)22:47

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!