[oi-dev] Opening executable with write flags

Till Wegmüller toasterson at gmail.com
Mon Jul 14 20:32:19 UTC 2025


Hi

mdb is not just for the kernel but for all programs.

Can I ask you to contact the kernel devs under 
https://illumos.topicbox.com/groups/developer or via mail under 
developer at lists.illumos.org

We do not do kernel development in the OpenIndiana org. We do userland 
packaging, so there is unfortunately not much we can help you with.

For kernel security issues please contact security at illumos.org

This list is not monitored by people that can help you.

Thanks and Greetings
Till

On 14.07.25 20:57, Paul Floyd via oi-dev wrote:
> 
> On 7/14/25 18:34, Till Wegmüller wrote:
>> Hi Paul
>>
>> Have you tried mdb? We have our own debug data format called CTF and 
>> depending on how you compiled your file the DWARF data may be stripped 
>> from the binary.
>>
>> If you want a stacktrace from mdb you can type ::stack
>>
>> For more detailed usage of mdb check the manpage or ask on #illumos 
>> IRC or any illumos mailinglist. There are not many illumos devs here 
>> on this list and I have never used gdb. Only ever mdb.
>>
> Hi
> 
> I haven't tried mdb (I'm not a kernel developer).
> 
> This just looks like a kernel bug to me (in both Solaris 11.4 and illumos).
> 
> The Solaris 11.4 man page says (and I guess illumos is the same):
> 
> 
> ETXTBSY        The file is a pure procedure (shared text) file that is
>                        being executed and oflagis O_WRONLYor O_RDWR.
> 
> The first thing that my testcase does is an open exactly like that with 
> O_WRONLY|O_CREAT|O_TRUNC
> 
> This succeeds and crashes the exe. Maybe the kernel is only checking for 
> O_WRONLY or O_RDWR?
> 
> I also wonder if this is not a security issue.
> 
> A+
> 
> Paul
> 
> 
> 
> _______________________________________________
> oi-dev mailing list
> oi-dev at openindiana.org
> https://openindiana.org/mailman/listinfo/oi-dev



More information about the oi-dev mailing list