15:39:45 [illumos-gate] 17006 ZTS: left over spare-dev1 and spare-dev2 -- Toomas Soome 17:27:32 Hello, I'm scratching my head at something to do with ioctl() and TIOCGWINSZ. I am trying to find the width of the screen. Here's the C code https://pastebin.com/Ejd9N8mU which does run on Linux, but not on OpenIndiana. Here's the error being produced while trying to compile the same code on OpenIndiana https://pastebin.com/7pPY9URi 17:28:42 I read through the ioctl manual pages, and Google, and haven't come across much useful information as to what is causing this issue 17:31:11 twobitsahead: So when I looked at the manuals that mention the winsize structure, I'd expect you to have to include termios.h. 17:31:41 Including that makes it work for me and is where POSIX defines it to be in POSIX 2024. 17:31:48 (You also don't need sys/ioctl.h). 17:32:40 That solved it 17:32:42 Thank you! 17:33:54 https://illumos.org/man/4I/termio is what I was looking at for some context. 17:35:59 Thanks, I was just Googling for this. I don't know how this didn't turn up / how I missed this during the search. This is the page that I have been looking for 17:37:06 All good, glad it's sorted. 18:07:35 [illumos-gate] 17016 libzfs: zpool_clear_label fixes -- Ahelenia Ziemiańska 18:24:14 [illumos-gate] 16960 nxge: possible memory leak -- Toomas Soome 18:52:57 Cheers, is anyone planning to meet up at FOSDEM this year? Is there an illumos table this time? Any events before/after the weekend itself (e.g. hackathons etc.)? :) 18:56:58 jclulow, so far testing of the new tar binary is going well. I've started a huge set that will take a few days to create the tarball and a few more to extract/verify but so far I'm not seeing any red flags. 19:01:21 jimklimov - there is a planned dinner on the Friday, see https://illumos.topicbox.com/groups/discuss/Te4c03ebcea1e86d2-M7533e75de1778dc0dc269c49/fosdem25-illumos-and-friends-dinner 19:02:31 but unfortunately no table/stand. It is becoming more Linux-centric each year. 19:05:43 * nomad realizes he should update the ticket with that information... (pls. pardon the duplication). 19:13:43 thanks for the info, hope to be there (and go at all this year) 21:07:56 sigh.... panic[cpu1]/thread=fffffe00108e2c20: programming error: LBA out of range in cmd fffffe0bddf7b840 21:09:23 we do get blown up too eagerly 21:13:12 not sure what you're getting at 21:13:49 I wish I could find the time, or find a victim, to fix dev_err(..., CE_PANIC, ...) though 21:14:07 it pretty obviously should prepend the formatted dev to the panic string 21:14:17 well, in this case, we got LBA from (bad) disk label, attempted to use it and nvme did panic;) 21:14:44 Right, that seems like a fatal programming error? 21:14:49 I think 21:15:08 it seems like the theory is the consumer (label?) sanity checks itself? 21:16:12 well, the label structure was good;) just that the LBA numbers were bad. 21:19:10 ofc the question would be, should cmlb verify the data properly (probably it should) or should nvme error out there (and not panic?) or both:) 21:24:12 nvme seems written on the assumption cmlb would check 21:24:24 I don't claim to know whether that's a good idea, just that it seems to be what nvme thinks should happen 21:24:48 it seems like every command field it doesn't like we .panic on, anyway 21:24:58 kind of makes sense, well that is quite clear that cmlb should check. 21:25:04 except for the charming, `NVME_CMD_F_DONTPANIC` 21:25:16 which I haven't looked deeper into yet 21:25:39 it seems to mean "This came from userland, just fail" 21:59:46 nomad: Thanks! 22:00:24 Yes, I think most blkdev consumers are written assuming they're getting mostly valid I/O requests. 22:01:14 I think if we're going to panic down there, then blkdev should probably handle checking for out of range I/O on its own based on what it gets told about the size of the disk 22:15:46 [illumos-gate] 16964 ptrconf: potential memory corrupting cast 4 vs 1 bytes -- Toomas Soome 23:18:47 https://www.illumos.org/issues/17029 23:18:48 → BUG 17029: cmlb should check label better (New)