lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAO+b5-pZPsbnpjnFzCQFxWrAtoeG71pn1wVqjcOrR9yBQ3L1nA@mail.gmail.com>
Date:	Tue, 12 Jul 2011 07:53:11 +0200
From:	Bart Van Assche <bvanassche@....org>
To:	Jim Cromie <jim.cromie@...il.com>
Cc:	jbaron@...hat.com, linux-kernel@...r.kernel.org, joe@...ches.com,
	gregkh@...e.de, gnb@...h.org
Subject: Re: [ patch 00/21 ] support multiple, pending ddebugs at kernel-boot

On Mon, Jul 11, 2011 at 9:06 PM, Jim Cromie <jim.cromie@...il.com> wrote:
> On Mon, Jul 11, 2011 at 12:30 PM, Bart Van Assche <bvanassche@....org> wrote:
>> As far as I can see with v2 of this patch set a query gets on the
>> pending list if either +a has been specified or no matches were found
>> the first time a query is run. Are both mechanisms necessary ? If not,
>> I propose to leave out the second. That will not only allow to
>> simplify the code somewhat but will also reduce confusion for
>> dynamic_printk users.
>>
>
> Both conditions are necessary:
> - 'a' flag required,
> - query not directly applicable.
>
> root@...age:~# echo "module nosuch +p" > /dbg/dynamic_debug/control
> root@...age:~# cat /sys/module/dynamic_debug/parameters/pending_ct
> 0
>
> root@...age:~# echo "module nosuch +ap" > /dbg/dynamic_debug/control
> root@...age:~# cat /sys/module/dynamic_debug/parameters/pending_ct
> 1

The above example contradicts the following code added in patch 09/21:

 	/* actually go and implement the change */
 	nfound = ddebug_change(&query, flags, mask);
+
+	pr_info("nfound %d on %s\n", nfound, show_ddebug_query(&query));
+	if (!nfound)
+		return ddebug_save_pending(&query, flags, mask);
+
 	return 0;

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ