Linux-Modules Archive on lore.kernel.org
 help / color / Atom feed
From: Lucas De Marchi <lucas.demarchi@intel.com>
To: Jorge Lucangeli Obes <jorgelo@google.com>
Cc: linux-modules@vger.kernel.org
Subject: Re: Buffer overflow in modprobe
Date: Wed, 18 Dec 2019 16:45:38 -0800
Message-ID: <20191219004538.aqlw354ivugk7vym@ldmartin-desk1.jf.intel.com> (raw)
In-Reply-To: <CAKYuF5QhGCPCazHQjN-=kFc5kHs7Ok8WqmmGLo31CiOEN8TYdA@mail.gmail.com>

On Thu, Dec 12, 2019 at 02:16:18PM -0500, Jorge Lucangeli Obes wrote:
>Reset the state of was_space to false between passes.
>For your assistance, we have provided the following code:
>
>--- libkmod-config.c            2018-06-21 17:59:48.633600181 +0100
>+++ libkmod-config.fixed        2018-09-12 21:42:34.499453017 +0100 @@
>-333,6 +333,8 @@
>                memcpy(dep->name ,modname ,modnamelen);
>+        was_space = false;
>+               /* copy strings */

this looks reasonable. Are you the author of such change? Could you send
this as a patch with git send-email?

It would be nice to have a test added to the testsuite too if you can.

thanks
Lucas De Marchi


>               itr = dep->name + modnamelen;
>               n_pre = 0;

  reply index

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-12 19:16 Jorge Lucangeli Obes
2019-12-19  0:45 ` Lucas De Marchi [this message]
2019-12-19 19:48   ` Jorge Lucangeli Obes

Reply instructions:

You may reply publically to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191219004538.aqlw354ivugk7vym@ldmartin-desk1.jf.intel.com \
    --to=lucas.demarchi@intel.com \
    --cc=jorgelo@google.com \
    --cc=linux-modules@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Linux-Modules Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-modules/0 linux-modules/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-modules linux-modules/ https://lore.kernel.org/linux-modules \
		linux-modules@vger.kernel.org
	public-inbox-index linux-modules

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-modules


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git