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: <200812021805.02645.inaky@linux.intel.com>
Date:	Tue, 2 Dec 2008 18:05:02 -0800
From:	Inaky Perez-Gonzalez <inaky@...ux.intel.com>
To:	Johannes Berg <johannes@...solutions.net>
Cc:	netdev <netdev@...r.kernel.org>, Thomas Graf <tgraf@...g.ch>
Subject: Re: [PATCH 12/39] wimax: API call to reset a WiMAX device

On Thursday 27 November 2008, Johannes Berg wrote:
> On Wed, 2008-11-26 at 15:07 -0800, Inaky Perez-Gonzalez wrote:
> > Provides wimax_reset() for the kernel to reset a wimax device as
> > needed.
> >
> > Exports wimax_reset() over generic netlink to user space.
> >
> > +struct genl_ops wimax_gnl_reset = {
> > +	.cmd = WIMAX_GNL_OP_RESET,
> > +	.flags = 0,
>
> permission check again

Fixed

> > +       /* Execute the operation and send the result back to user space
> > */ +       result = wimax_reset(wimax_dev);
> > +       result2 = wimax_gnl_send_rp_result(wimax_dev, info, result);
> > +       if (result2 < 0)
> > +               dev_err(dev, "WIMAX_GNL_RESET: can't send result %d to "
> > +                       "userspace: %d\n", result, result2);
> > +       result = 0;
> > +       dev_put(wimax_dev->net_dev);
> > +error_no_wimax_dev:
> > +error_perm:
> > +       d_fnend(3, NULL, "(skb %p info %p) = %d\n", skb, info, result);
> > +       return result;
>
> This is strange. Can you show your corresponding userspace code? It
> shouldn't be necessary with generic netlink to explicitly send the
> result, if you just return the result from wimax_reset() it'll be part
> of the ACK message and thus already be relayed to userspace. I think
> you're not using genl correctly here.

Fixed

FYI, the user space code is in 
kernel.org/pub/scm/linux/kernel/inaky/wimax-tools.git. However, that's the 
old one that doesn't contain all the fixes I've done with your feedback. 
Still haven't been able to push that one (been a little bit overwhelmed with 
other stuff).

I should be able to push all the changes tomorrow after I finish looking at 
the controller thing.

Thanks,


-- 
Inaky

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ