mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 22:14:03 +02:00
In autofs_fill_super(), we create a new inode using
autofs_new_ino(), however, if we fail to create root_inode,
(that is, root_inode failure path), we return -ENOMEM without
freeing the new inode(ino) that we created causing a memory leak.
Fix this by adding autofs_free_ino() to free the inode we created
in root_inode failure path before returning ENOMEM.
Reported-by: syzbot+df1db6e034b3953e19f5@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=df1db6e034b3953e19f5
Fixes:
|
||
|---|---|---|
| .. | ||
| autofs_i.h | ||
| dev-ioctl.c | ||
| expire.c | ||
| init.c | ||
| inode.c | ||
| Kconfig | ||
| Makefile | ||
| root.c | ||
| symlink.c | ||
| waitq.c | ||