Elektrine lite

← Feed

@jschauma@mstdn.social

2026-09-29 22:10 UTC

If you create a symlink to a symlink to a symlink ... at some point your system will return ELOOP. A reasonable system has that value defined in sys/param.h as MAXSYMLINKS or as sysconf(_SC_SYMLOOP_MAX). On Linux, the value of MAXSYMLINKS in sys/param.h is 20, but the kernel actually uses 40: https://elixir.bootlin.com/linux/v7.2.8/source/include/linux/namei.h#L14 The sysconf(3) man page on Linux documents _SC_SYMLOOP_MAX, but then fails to actually retrieve that value. Good job, Linux. You illustrate why I use #NetBSD to teach this class.

Replies (2)

  • @jschauma@mstdn.social 2026-10-01 00:44

    Advanced Programming in the #UNIX Environment Week 4: The Unix Filesystem This week, we'll take a closer look at the Unix Filesystem (UFS). In our first video segment, we visualize how the filesystem structures the disk and organizes files and directories. We illustrate how directory entries are created and moved around. https://youtu.be/kY4JAXYyByQ

    Open ##4943735

  • @becomingwisest@hachyderm.io 2026-09-29 22:12

    @jschauma@mstdn.social great, another CVE for the Linux kernel… :)

    Open ##5061762