lkml.org 
[lkml]   [2021]   [Apr]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 184/190] Revert "yam: fix a missing-check bug"
    Date
    This reverts commit 0781168e23a2fc8dceb989f11fc5b39b3ccacc35.

    Commits from @umn.edu addresses have been found to be submitted in "bad
    faith" to try to test the kernel community's ability to review "known
    malicious" changes. The result of these submissions can be found in a
    paper published at the 42nd IEEE Symposium on Security and Privacy
    entitled, "Open Source Insecurity: Stealthily Introducing
    Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University
    of Minnesota) and Kangjie Lu (University of Minnesota).

    Because of this, all submissions from this group must be reverted from
    the kernel tree and will need to be re-reviewed again to determine if
    they actually are a valid fix. Until that work is complete, remove this
    change to ensure that no problems are being introduced into the
    codebase.

    Cc: Wenwen Wang <wang6495@umn.edu>
    Cc: David S. Miller <davem@davemloft.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    drivers/net/hamradio/yam.c | 4 ----
    1 file changed, 4 deletions(-)

    diff --git a/drivers/net/hamradio/yam.c b/drivers/net/hamradio/yam.c
    index 5ab53e9942f3..616db3a0d2f4 100644
    --- a/drivers/net/hamradio/yam.c
    +++ b/drivers/net/hamradio/yam.c
    @@ -951,8 +951,6 @@ static int yam_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
    sizeof(struct yamdrv_ioctl_mcs));
    if (IS_ERR(ym))
    return PTR_ERR(ym);
    - if (ym->cmd != SIOCYAMSMCS)
    - return -EINVAL;
    if (ym->bitrate > YAM_MAXBITRATE) {
    kfree(ym);
    return -EINVAL;
    @@ -968,8 +966,6 @@ static int yam_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
    if (copy_from_user(&yi, ifr->ifr_data, sizeof(struct yamdrv_ioctl_cfg)))
    return -EFAULT;

    - if (yi.cmd != SIOCYAMSCFG)
    - return -EINVAL;
    if ((yi.cfg.mask & YAM_IOBASE) && netif_running(dev))
    return -EINVAL; /* Cannot change this parameter when up */
    if ((yi.cfg.mask & YAM_IRQ) && netif_running(dev))
    --
    2.31.1
    \
     
     \ /
      Last update: 2021-04-21 15:39    [W:4.243 / U:0.588 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site