* Re: [PATCH]: md: Initialize ctl_name field of table raid_root_table/raid_dir_table to avoid dump_trace info in debug kernel [not found] ` <20120314125720.1bb87546@notabene.brown> @ 2012-03-14 2:14 ` Eric W. Biederman 2012-03-14 2:35 ` NeilBrown 0 siblings, 1 reply; 3+ messages in thread From: Eric W. Biederman @ 2012-03-14 2:14 UTC (permalink / raw) To: NeilBrown; +Cc: qing gu, neilb, linux-raid, linux-kernel, trivial NeilBrown <neilb@suse.de> writes: > On Mon, 12 Mar 2012 11:58:53 +0800 qing gu <qing.gu@oracle.com> wrote: > >> This patch is used to dispense trace info when system boots with debug >> kernel. I have verified it on RHEL6.2 & SLES11.2. Both work fine. >> In the failure case, system logs that: >> >> /Feb 21 19:33:55 nsgbj-216-137 kernel: sysctl_check_dir: failed: /dev ref: /dev .7 >> Feb 21 19:33:55 nsgbj-216-137 kernel: sysctl table check failed: /dev Inconsistent directory names >> Feb 21 19:33:55 nsgbj-216-137 kernel: Pid: 1, comm: swapper Not tainted 2.6.32-220.el6.x86_64.debug #1 >> Feb 21 19:33:55 nsgbj-216-137 kernel: Call Trace: >> Feb 21 19:33:55 nsgbj-216-137 kernel: [<ffffffff810a2029>] ? set_fail+0x59/0x60 >> Feb 21 19:33:55 nsgbj-216-137 kernel: [<ffffffff810a23d4>] ? sysctl_check_table+0x3a4/0x680 >> ... >> / >> >> As you can see, system failed with mismatch >> /sysctl_check_dir: failed: /dev ref: /dev .7/ >> >> Signed-off-by: Neil Gu <qing.gu@oracle.com> >> >> ----------------------------------------------------------- > > (please put patches inline in your email - it makes them easier to reply to) > > > scripts/kconfig/Makefile | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > > diff --git a/drivers/md/md.c b/drivers/md/md.c > index ce88755..9630ad3 100644 > --- a/drivers/md/md.c > +++ b/drivers/md/md.c > @@ -129,6 +129,7 @@ static ctl_table raid_table[] = { > > static ctl_table raid_dir_table[] = { > { > + .ctl_name = DEV_RAID, > .procname = "raid", > .maxlen = 0, > .mode = S_IRUGO|S_IXUGO, > @@ -139,6 +140,7 @@ static ctl_table raid_dir_table[] = { > > static ctl_table raid_root_table[] = { > { > + .ctl_name = CTL_DEV, > .procname = "dev", > .maxlen = 0, > .mode = 0555, > > These lines were removed in November 2009 by Eric Biederman in > commit 894d2491153a9f8270dbed21175d06fde4eba6c7 > > So I'm not keen on adding them back without understanding the history. > > Eric: Do we need these after all? For the main trunk no. The .ctl_name field no longer exists. kernel/binary_sysctl.c is used to provide backwards compatibility with the old binary names. There might be a point for doing something in -stable or someone's enterprise kernel if some messed up set of backports were merged. Eric ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH]: md: Initialize ctl_name field of table raid_root_table/raid_dir_table to avoid dump_trace info in debug kernel 2012-03-14 2:14 ` [PATCH]: md: Initialize ctl_name field of table raid_root_table/raid_dir_table to avoid dump_trace info in debug kernel Eric W. Biederman @ 2012-03-14 2:35 ` NeilBrown 2012-03-19 3:26 ` qing gu 0 siblings, 1 reply; 3+ messages in thread From: NeilBrown @ 2012-03-14 2:35 UTC (permalink / raw) To: Eric W. Biederman; +Cc: qing gu, linux-raid, linux-kernel, trivial [-- Attachment #1: Type: text/plain, Size: 1399 bytes --] On Tue, 13 Mar 2012 19:14:05 -0700 ebiederm@xmission.com (Eric W. Biederman) wrote: > NeilBrown <neilb@suse.de> writes: > > > On Mon, 12 Mar 2012 11:58:53 +0800 qing gu <qing.gu@oracle.com> wrote: > > > >> This patch is used to dispense trace info when system boots with debug > >> kernel. I have verified it on RHEL6.2 & SLES11.2. Both work fine. > >> In the failure case, system logs that: > >> > >> /Feb 21 19:33:55 nsgbj-216-137 kernel: sysctl_check_dir: failed: /dev ref: /dev .7 ..... > > These lines were removed in November 2009 by Eric Biederman in > > commit 894d2491153a9f8270dbed21175d06fde4eba6c7 > > > > So I'm not keen on adding them back without understanding the history. > > > > Eric: Do we need these after all? > > For the main trunk no. The .ctl_name field no longer exists. > > kernel/binary_sysctl.c is used to provide backwards compatibility with > the old binary names. > > There might be a point for doing something in -stable or someone's > enterprise kernel if some messed up set of backports were merged. > > Eric Thanks for the quick response Eric!! Qing: It looks like this is not an issue in mainline. If you want to get something fixed in SLES or RHEL, I suggest you log an issue in the relevant bugzillas (though I just checked SLES11-SP2, and it doesn't mention sysctl_check_dir at all). NeilBrown [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 828 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH]: md: Initialize ctl_name field of table raid_root_table/raid_dir_table to avoid dump_trace info in debug kernel 2012-03-14 2:35 ` NeilBrown @ 2012-03-19 3:26 ` qing gu 0 siblings, 0 replies; 3+ messages in thread From: qing gu @ 2012-03-19 3:26 UTC (permalink / raw) To: NeilBrown; +Cc: Eric W. Biederman, linux-raid, linux-kernel, trivial Very thanks for the reply. Neil On 2012/3/14 10:35, NeilBrown wrote: > On Tue, 13 Mar 2012 19:14:05 -0700 ebiederm@xmission.com (Eric W. Biederman) > wrote: > >> NeilBrown<neilb@suse.de> writes: >> >>> On Mon, 12 Mar 2012 11:58:53 +0800 qing gu<qing.gu@oracle.com> wrote: >>> >>>> This patch is used to dispense trace info when system boots with debug >>>> kernel. I have verified it on RHEL6.2& SLES11.2. Both work fine. >>>> In the failure case, system logs that: >>>> >>>> /Feb 21 19:33:55 nsgbj-216-137 kernel: sysctl_check_dir: failed: /dev ref: /dev .7 > ..... > >>> These lines were removed in November 2009 by Eric Biederman in >>> commit 894d2491153a9f8270dbed21175d06fde4eba6c7 >>> >>> So I'm not keen on adding them back without understanding the history. >>> >>> Eric: Do we need these after all? >> For the main trunk no. The .ctl_name field no longer exists. >> >> kernel/binary_sysctl.c is used to provide backwards compatibility with >> the old binary names. >> >> There might be a point for doing something in -stable or someone's >> enterprise kernel if some messed up set of backports were merged. >> >> Eric > Thanks for the quick response Eric!! > > Qing: It looks like this is not an issue in mainline. > If you want to get something fixed in SLES or RHEL, I suggest you log an > issue in the relevant bugzillas (though I just checked SLES11-SP2, and > it doesn't mention sysctl_check_dir at all). > > NeilBrown ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-03-19 3:26 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <4F5D747D.9060508@oracle.com> [not found] ` <20120314125720.1bb87546@notabene.brown> 2012-03-14 2:14 ` [PATCH]: md: Initialize ctl_name field of table raid_root_table/raid_dir_table to avoid dump_trace info in debug kernel Eric W. Biederman 2012-03-14 2:35 ` NeilBrown 2012-03-19 3:26 ` qing gu
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).