Re: [V9fs-developer] [PATCH 2/2] 9p: do not crash on unknown lock status code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Kirill A. Shutemov wrote on Mon, Dec 29, 2014 at 03:00:18PM +0200:
> p9_client_lock_dotl() doesn't set status if p9_client_rpc() fails.
> It can lead to 'default:' case in switch below and kernel crashes.
> 
> [   17.965643] ------------[ cut here ]------------
> ...
> [   17.965824] ---[ end trace 1cfc767bf06625a1 ]---
> 
> Let's bypass the switch if p9_client_lock_dotl() fails.

Kirill A. Shutemov wrote on Mon, Dec 29, 2014 at 03:00:19PM +0200:
> Current 9p implementation will crash whole system if sees unkown lock
> status code. It's trivial target for DOS: 9p server can produce such
> code easily.
> 
> Let's fallback more gracefully: warning in dmesg + -ENOLCK.

Both patches look good to me, for what it's worth.

There's alot of work waiting if we want to protect ourselves from
malicious servers, but it's all good to take :)

-- 
Dominique Martinet,
CEA
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux