作者weii (迷惑失道)
看板SFFamily
標題[轉錄]Re: [分享] Linux内核高危漏洞:一命令可攻擊所有Li …
時間Wed Aug 19 16:25:02 2009
※ [本文轉錄自 Linux 看板]
作者: coldnew (夜影) 看板: Linux
標題: Re: [分享] Linux内核高危漏洞:一命令可攻擊所有Li …
時間: Tue Aug 18 12:17:06 2009
關於這個bug的patch
網址:
http://tinyurl.com/ostlja
author Linus Torvalds <
[email protected]>
Thu, 13 Aug 2009 15:28:36 +0000 (08:28 -0700)
committer Linus Torvalds <
[email protected]>
Thu, 13 Aug 2009 17:57:26 +0000 (10:57 -0700)
Make sock_sendpage() use kernel_sendpage()
kernel_sendpage() does the proper default case handling for when the
socket doesn't have a native sendpage implementation.
Now, arguably this might be something that we could instead solve by
just specifying that all protocols should do it themselves at the
protocol level, but we really only care about the common protocols.
Does anybody really care about sendpage on something like Appletalk? Not
likely.
PATCH的內容:
diff --git a/net/socket.c b/net/socket.c
index 791d71a..6d47165 100644 (file)
--- a/net/socket.c
+++ b/net/socket.c
@@ -736,7 +736,7 @@ static ssize_t sock_sendpage(struct file *file, struct \
page *page,
if (more)
flags |= MSG_MORE;
- return sock->ops->sendpage(sock, page, offset, size, flags);
+ return kernel_sendpage(sock, page, offset, size, flags);
}
static ssize_t sock_splice_read(struct file *file, loff_t *ppos,
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 134.208.47.211
※ 編輯: coldnew 來自: 134.208.47.211 (08/18 12:18)
--
「大哥!你....」
「你在以旁門左道的方法,逼自己的劍氣踰越極限﹖」
「廢話!」應雄反駁:
「什麼旁門左道﹖
能夠將最強的功力提昇至無法再上的強中之強,
才是必勝的最佳戰略!」
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.132.117.169