lkml.org 
[lkml]   [2009]   [Jun]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 28/30] dm mpath: validate hw_handler argument count
    2.6.27-stable review patch.  If anyone has any objections, please let us know.

    ------------------

    From: Mikulas Patocka <mpatocka@redhat.com>

    commit e094f4f15f5169526c7200b9bde44b900548a81e upstream.

    Fix arg count parsing error in hw handlers.

    Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
    Signed-off-by: Alasdair G Kergon <agk@redhat.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    drivers/md/dm-mpath.c | 5 +++++
    1 file changed, 5 insertions(+)

    --- a/drivers/md/dm-mpath.c
    +++ b/drivers/md/dm-mpath.c
    @@ -684,6 +684,11 @@ static int parse_hw_handler(struct arg_s
    if (!hw_argc)
    return 0;

    + if (hw_argc > as->argc) {
    + ti->error = "not enough arguments for hardware handler";
    + return -EINVAL;
    + }
    +
    m->hw_handler_name = kstrdup(shift(as), GFP_KERNEL);
    request_module("scsi_dh_%s", m->hw_handler_name);
    if (scsi_dh_handler_exist(m->hw_handler_name) == 0) {



    \
     
     \ /
      Last update: 2009-07-01 02:45    [W:0.045 / U:126.792 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site