| To: | Dave Chinner <david@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: Re: [PATCH 02/11] xfsprogs: fix integer overflow in xlog_find_verify_cycle |
| From: | VIVEK TRIVEDI <t.vivek@xxxxxxxxxxx> |
| Date: | Fri, 04 Dec 2015 12:01:32 +0000 (GMT) |
| Cc: | "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx>, AMIT SAHRAWAT <a.sahrawat@xxxxxxxxxxx>, PANKAJ MISHRA <pankaj.m@xxxxxxxxxxx> |
| Delivered-to: | xfs@xxxxxxxxxxx |
| Dlp-filter: | Pass |
| Msgkey: | 20151204115855782@xxxxxxx |
| Reply-to: | t.vivek@xxxxxxxxxxx |
> Ummm, in isolation that change is technically correct, but when you > look at what bufblks contains it is clearly wrong. nbblks is an > int, so "1 << ffs(nbblks)" should not be larger than an int. > i.e. bufblks is simply a count of blocks in the log, which by > definition cannot be more than an int (in fact, 2^31 / 2^9 is the > largest legal value it can have). Hence it can't be larger than an > int, and all the functions it is passed to expect it to be an > int... > >Hence the use of xfs_daddr_t is wrong, and that's the first thing >that needs fixing.... thanks for review! I will resend updated patch. thanks! |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | B!en a!mÃe;, Gris DÃcoupage |
|---|---|
| Next by Date: | Re: Re: [PATCH 03/11] xfsprogs: mkfs: fix unintentional integer overflow, VIVEK TRIVEDI |
| Previous by Thread: | B!en a!mÃe;, Gris DÃcoupage |
| Next by Thread: | Re: Re: [PATCH 03/11] xfsprogs: mkfs: fix unintentional integer overflow, VIVEK TRIVEDI |
| Indexes: | [Date] [Thread] [Top] [All Lists] |