]> www.infradead.org Git - users/willy/xarray.git/commit
jfs: add sanity check for agwidth in dbMount
authorEdward Adam Davis <eadavis@qq.com>
Thu, 20 Feb 2025 11:24:19 +0000 (19:24 +0800)
committerDave Kleikamp <dave.kleikamp@oracle.com>
Thu, 20 Feb 2025 16:19:46 +0000 (10:19 -0600)
commitddf2846f22e8575d6b4b6a66f2100f168b8cd73d
tree0ee36b0b9c857977dc679bc7eb027380dfb7874e
parentb61e69bb1c049cf507e3c654fa3dc1568231bd07
jfs: add sanity check for agwidth in dbMount

The width in dmapctl of the AG is zero, it trigger a divide error when
calculating the control page level in dbAllocAG.

To avoid this issue, add a check for agwidth in dbAllocAG.

Reported-and-tested-by: syzbot+7c808908291a569281a9@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=7c808908291a569281a9
Signed-off-by: Edward Adam Davis <eadavis@qq.com>
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
fs/jfs/jfs_dmap.c