linux-newbie.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* what happened if kernel version is different from module build
@ 2017-10-15 14:00 wuzhouhui
  2017-10-15 20:04 ` Hubert Chaumette
       [not found] ` <CAPQTdvyVuggihiTPbyuQ0zL87C59HFAqXgbQK8mWyPHJeiD9dg@mail.gmail.com>
  0 siblings, 2 replies; 3+ messages in thread
From: wuzhouhui @ 2017-10-15 14:00 UTC (permalink / raw)
  To: linux-newbie

Suppose I compile a kernel module in kernel 2.6.32-431.el6.x86_64, but I load it
successfully in kernel 2.6.32-432.el6.x86_64. Can this module works properly? Or
whether it is harm to system?

Thanks!
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: what happened if kernel version is different from module build
  2017-10-15 14:00 what happened if kernel version is different from module build wuzhouhui
@ 2017-10-15 20:04 ` Hubert Chaumette
       [not found] ` <CAPQTdvyVuggihiTPbyuQ0zL87C59HFAqXgbQK8mWyPHJeiD9dg@mail.gmail.com>
  1 sibling, 0 replies; 3+ messages in thread
From: Hubert Chaumette @ 2017-10-15 20:04 UTC (permalink / raw)
  To: wuzhouhui; +Cc: linux-newbie, linux-newbie-owner

Le 15/10/2017 16:00, wuzhouhui a écrit :

> Suppose I compile a kernel module in kernel 2.6.32-431.el6.x86_64, but 
> I load it
> successfully in kernel 2.6.32-432.el6.x86_64. Can this module works 
> properly? Or
> whether it is harm to system?

In your case both kernels are 2.6.32, I there is probably only bugfixes 
between
these two kernels (the core kernel code shouldn't have changed), so I 
think it
*can* work properly, provided your module didn't rely on a bug fixed in 
the new
kernel.

Regards,

Hubert Chaumette
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: what happened if kernel version is different from module build
       [not found] ` <CAPQTdvyVuggihiTPbyuQ0zL87C59HFAqXgbQK8mWyPHJeiD9dg@mail.gmail.com>
@ 2017-10-16  1:45   ` wuzhouhui
  0 siblings, 0 replies; 3+ messages in thread
From: wuzhouhui @ 2017-10-16  1:45 UTC (permalink / raw)
  To: Rohith Seelaboyina; +Cc: linux-newbie


On 10/15/2017 11:25 PM, Rohith Seelaboyina wrote:
> It can't be installed due to version mismatch
In fact, I did load it successfully in different kernel. What I worried 
is that the
Module.symvers and System.map of these two kernel are different, and module
building needs them. I only fix some bugs of schedule code:

diff -uprN linux-2.6.32-431.el6.6.vsds.x86_64.orig/ 
linux-2.6.32-431.el6.6.vsds.x86_64/|diffstat  -p0
  linux-2.6.32-431.el6.6.vsds.x86_64/kernel/sched.c      |   26 ++---
  linux-2.6.32-431.el6.6.vsds.x86_64/kernel/sched_fair.c |   76 
++++++++++++-----
  2 files changed, 69 insertions(+), 33 deletions(-)
>
> On Oct 15, 2017 7:39 PM, "wuzhouhui" <wuzhouhui14@mails.ucas.ac.cn 
> <mailto:wuzhouhui14@mails.ucas.ac.cn>> wrote:
>
>     Suppose I compile a kernel module in kernel 2.6.32-431.el6.x86_64,
>     but I load it
>     successfully in kernel 2.6.32-432.el6.x86_64. Can this module
>     works properly? Or
>     whether it is harm to system?
>
>     Thanks!
>     --
>     To unsubscribe from this list: send the line "unsubscribe
>     linux-newbie" in
>     the body of a message to majordomo@vger.kernel.org
>     <mailto:majordomo@vger.kernel.org>
>     More majordomo info at http://vger.kernel.org/majordomo-info.html
>     <http://vger.kernel.org/majordomo-info.html>
>     Please read the FAQ at http://www.linux-learn.org/faqs
>     <http://www.linux-learn.org/faqs>
>

--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-10-16  1:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-15 14:00 what happened if kernel version is different from module build wuzhouhui
2017-10-15 20:04 ` Hubert Chaumette
     [not found] ` <CAPQTdvyVuggihiTPbyuQ0zL87C59HFAqXgbQK8mWyPHJeiD9dg@mail.gmail.com>
2017-10-16  1:45   ` wuzhouhui

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).