Opened 18 months ago

Last modified 15 months ago

#18044 new bug

kernel: file descriptor leak on unmount

Reported by: X512 Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: System/Kernel Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

This is hrev56567.

Test Bash code (adjust file names if needed):

while true
do
	mkdir /Haiku-riscv
	mount -t bfs haiku-minimum.image /Haiku-riscv
	ls -a -1 /Haiku-riscv > /dev/null
	unmount -f /Haiku-riscv
	rmdir /Haiku-riscv
done

Running this test code cause run out of file descriptors and attempting to run any program cause error "Killed (by death)".

Attachments (1)

screenshot480.png (80.9 KB ) - added by X512 18 months ago.

Download all attachments as: .zip

Change History (3)

by X512, 18 months ago

Attachment: screenshot480.png added

comment:1 by waddlesplash, 15 months ago

Does the unmount -f have any relevance here, or does the same happen with non-forced unmounts?

If it's the latter, the leak is probably a general kernel file descriptors leak. Running various kdebug commands to show kernel file descriptors should help in determining where the leak is occurring.

comment:2 by waddlesplash, 15 months ago

Does this happen with all partitions, or only disk images?

Note: See TracTickets for help on using tickets.