Skip to content

Possible bug in pmfs_increase_btree_height #11

Description

@paulwedeck

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions