* [PATCH] AX25: nuke user trigable printks
@ 2008-01-07 17:55 maximilian attems
2008-01-08 5:55 ` David Miller
0 siblings, 1 reply; 3+ messages in thread
From: maximilian attems @ 2008-01-07 17:55 UTC (permalink / raw)
To: davem; +Cc: netdev, maximilian attems
sfuzz trigerrs any of those printk easily.
things that should have gone in early 2.5.x aka years ago
should not be thrown so easily to the user.
Signed-off-by: maximilian attems <max@stro.at>
---
net/ax25/af_ax25.c | 15 +++------------
1 files changed, 3 insertions(+), 12 deletions(-)
diff --git a/net/ax25/af_ax25.c b/net/ax25/af_ax25.c
index 8378afd..62ab6bd 100644
--- a/net/ax25/af_ax25.c
+++ b/net/ax25/af_ax25.c
@@ -1111,18 +1111,13 @@ static int __must_check ax25_connect(struct socket *sock,
if (addr_len == sizeof(struct sockaddr_ax25)) {
/* support for this will go away in early 2.5.x */
- printk(KERN_WARNING "ax25_connect(): %s uses obsolete socket structure\n",
- current->comm);
+ ;
}
else if (addr_len != sizeof(struct full_sockaddr_ax25)) {
/* support for old structure may go away some time */
if ((addr_len < sizeof(struct sockaddr_ax25) + sizeof(ax25_address) * 6) ||
- (addr_len > sizeof(struct full_sockaddr_ax25))) {
+ (addr_len > sizeof(struct full_sockaddr_ax25)))
return -EINVAL;
- }
-
- printk(KERN_WARNING "ax25_connect(): %s uses old (6 digipeater) socket structure.\n",
- current->comm);
}
if (fsa->fsa_ax25.sax25_family != AF_AX25)
@@ -1468,8 +1463,7 @@ static int ax25_sendmsg(struct kiocb *iocb, struct socket *sock,
}
if (addr_len == sizeof(struct sockaddr_ax25)) {
- printk(KERN_WARNING "ax25_sendmsg(): %s uses obsolete socket structure\n",
- current->comm);
+ ;
}
else if (addr_len != sizeof(struct full_sockaddr_ax25)) {
/* support for old structure may go away some time */
@@ -1478,9 +1472,6 @@ static int ax25_sendmsg(struct kiocb *iocb, struct socket *sock,
err = -EINVAL;
goto out;
}
-
- printk(KERN_WARNING "ax25_sendmsg(): %s uses old (6 digipeater) socket structure.\n",
- current->comm);
}
if (addr_len > sizeof(struct sockaddr_ax25) && usax->sax25_ndigis != 0) {
--
debian.1.5.3.7.1-dirty
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] AX25: nuke user trigable printks
2008-01-07 17:55 [PATCH] AX25: nuke user trigable printks maximilian attems
@ 2008-01-08 5:55 ` David Miller
2008-01-08 9:21 ` maximilian attems
0 siblings, 1 reply; 3+ messages in thread
From: David Miller @ 2008-01-08 5:55 UTC (permalink / raw)
To: max; +Cc: netdev
From: maximilian attems <max@stro.at>
Date: Mon, 7 Jan 2008 18:55:13 +0100
> sfuzz trigerrs any of those printk easily.
> things that should have gone in early 2.5.x aka years ago
> should not be thrown so easily to the user.
>
> Signed-off-by: maximilian attems <max@stro.at>
Can you replace the printk()'s with comments at least?
Otherwise nobody is going to remember what we were trying
to accomplish here and it will guarentee that, in fact,
support for these old things will never get removed.
At least if comments are there, someone might think to add
these things to the feature removal schedule and follow
through with it.
Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] AX25: nuke user trigable printks
2008-01-08 5:55 ` David Miller
@ 2008-01-08 9:21 ` maximilian attems
0 siblings, 0 replies; 3+ messages in thread
From: maximilian attems @ 2008-01-08 9:21 UTC (permalink / raw)
To: David Miller; +Cc: netdev
On Mon, Jan 07, 2008 at 09:55:50PM -0800, David Miller wrote:
>
> Can you replace the printk()'s with comments at least?
>
> Otherwise nobody is going to remember what we were trying
> to accomplish here and it will guarentee that, in fact,
> support for these old things will never get removed.
>
> At least if comments are there, someone might think to add
> these things to the feature removal schedule and follow
> through with it.
sure will resend later.
wasn't sure myself of the chosen minimal user visible clean up.
thanks
--
maks
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-01-08 9:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-07 17:55 [PATCH] AX25: nuke user trigable printks maximilian attems
2008-01-08 5:55 ` David Miller
2008-01-08 9:21 ` maximilian attems
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).