lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sun, 21 Aug 2022 20:10:42 +0200 From: "Fabio M. De Francesco" <fmdefrancesco@...il.com> To: Ira Weiny <ira.weiny@...el.com>, "Matthew Wilcox (Oracle)" <willy@...radead.org>, Jens Axboe <axboe@...nel.dk>, Bart Van Assche <bvanassche@....org>, Christian Brauner <brauner@...nel.org>, Andrew Morton <akpm@...ux-foundation.org>, Kees Cook <keescook@...omium.org>, Jeff Layton <jlayton@...nel.org>, Damien Le Moal <damien.lemoal@...nsource.wdc.com>, Arnd Bergmann <arnd@...db.de>, Roman Gushchin <roman.gushchin@...ux.dev>, Muchun Song <songmuchun@...edance.com>, Chaitanya Kulkarni <kch@...dia.com>, "Martin K. Petersen" <martin.petersen@...cle.com>, linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org Cc: "Fabio M. De Francesco" <fmdefrancesco@...il.com>, Viacheslav Dubeyko <slava@...eyko.com> Subject: [RESEND PATCH 1/4] hfsplus: Unmap the page in the "fail_page" label Several paths within hfs_btree_open() jump to the "fail_page" label where put_page() is called while the page is still mapped. Call kunmap() to unmap the page soon before put_page(). Cc: Viacheslav Dubeyko <slava@...eyko.com> Reviewed-by: Ira Weiny <ira.weiny@...el.com> Reviewed-by: Viacheslav Dubeyko <slava@...eyko.com> Signed-off-by: Fabio M. De Francesco <fmdefrancesco@...il.com> --- fs/hfsplus/btree.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/hfsplus/btree.c b/fs/hfsplus/btree.c index 66774f4cb4fd..3a917a9a4edd 100644 --- a/fs/hfsplus/btree.c +++ b/fs/hfsplus/btree.c @@ -245,6 +245,7 @@ struct hfs_btree *hfs_btree_open(struct super_block *sb, u32 id) return tree; fail_page: + kunmap(page); put_page(page); free_inode: tree->inode->i_mapping->a_ops = &hfsplus_aops; -- 2.37.1
Powered by blists - more mailing lists