Re: [PATCH] Fix bug in bssplit parsing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 14 2009, Kenneth Waters wrote:
> Fio,
> 
> I found a bug is bssplit parsing in bssplit_ddir() when trying to use
> FIO on an ARM platform.  It looks like str_to_decimal() takes a "void
> *" as its fourth argument, which it passes to get_multi_bytes(), which
> is passes to fio_get_kb_base(), which casts it to a "struct
> thread_data *".  bssplit_ddir() is passing in "struct thread_data **",
> which I think is causing fio_get_kb_base() to go paw around in the
> stack; I believe the different stack layouts between ARM and x86 is
> causing me to see this problem.  The first change that introduces this
> bug seems to be d6978a3242daad9cb7b0710b724f19225d1ed7e2.

Woops indeed, good catch! I have applied your patch. Thanks a lot.

> I apologize if this patch is in the wrong format.

It was line wrapped, but not a big deal to correct for a one-liner
patch.

-- 
Jens Axboe

--
To unsubscribe from this list: send the line "unsubscribe fio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux