Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible bug in pmfs_increase_btree_height #11

Open
paulwedeck opened this issue Oct 10, 2023 · 0 comments · May be fixed by #12
Open

Possible bug in pmfs_increase_btree_height #11

paulwedeck opened this issue Oct 10, 2023 · 0 comments · May be fixed by #12

Comments

@paulwedeck
Copy link

Steps to reproduce:

  • Allocate all available memory of a WineFS partition to one file (fallocate -l <large number> <myfile>). I tried 100000000 for a 16MB partition.
  • Now create a new file and allocate 4097 bytes to it (fallocate -l 4097 <second file>)

This should lead to the fallocate process getting killed and this error message in the kernel log "BUG: unable to handle kernel NULL pointer dereference at 0000000000000000".

I think the issue is that pmfs_increase_btree_height fails due to lack of memory but returns 0 (no error) anyways.
The subsequent allocation attempt tries to read from the inner tree node which is a null block which results in this error.

@paulwedeck paulwedeck linked a pull request Oct 11, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant