SilentMing's Gensokyo

初心忘れるべからず


  • Home

  • Blog

  • About

  • Tags

  • Archives

  • Gallery

  • Search

2015 追番总结

Posted on 2016-01-08 |

16年的一月新番已然开始更新,于是就想回顾一下2015年自己看过的动漫, 要不然总感觉看过后什么都没有留下有点白看的感觉.. 顺便作为推荐给朋友的参考~(长文)

介绍的动画都是基本上看完的(动画弃的小说或漫画是看过的),并且是以追番的形式看的。带有极强的个人主观意见,不喜轻喷

Read more »

Xen Log 4-Log without Rate Limiting

Posted on 2016-01-08 |

#Xen Log without limiting(2016-01-04)

In many XSAs (43, 96, 118, 141, 146, 152 and 169 till now), The unlimited logging will cause a DoS attack in Hypervisor.
The prinkt is not rate limited and detailed info is recorded in lwn : http://lwn.net/Articles/66091/

Printk is log unlimited. If the log message is sent to console and the hypervisor vill have to spend all of its time to scrolling the console frame buffer (Try sudo apt-get install and list all possible results).

###Question about XSA

In xen, (XEN/xen/common/xenoprof.c)

xenoprof.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
ret_t do_xenoprof_op(int op, XEN_GUEST_HANDLE_PARAM(void) arg)
{
int ret = 0;
if ( (op < 0) || (op > XENOPROF_last_op) )
{
printk("xenoprof: invalid operation %d for domain %d\n",
op, current->domain->domain_id);
return -EINVAL;
}

if ( !NONPRIV_OP(op) && (current->domain != xenoprof_primary_profiler) )
{
printk("xenoprof: dom %d denied privileged operation %d\n",
current->domain->domain_id, op);
return -EPERM;
}

do_xenoprof_op is hypercall 31, which can be triggered by DomU. So DomU can cause a DoS of hypervisor.

Read more »

Symbol与Pointer、Array与Function

Posted on 2015-12-23 |

在上一篇Summary里面已经提到过Array、Function与Pointer了。里面都是标准的语法,理解上也没有什么有问题的地方。本篇则讨论不知是编译器or链接器出于人性考虑进行优化还是什么的引起的一些语义和语法上的不一致。

Read more »

Xen Log 3-Add New Hypercall to Xen

Posted on 2015-12-13 |

首先第一步便是给Xen中添加新的Hypercall, Hypercall、Hypervisor与GuestVM的关系与Systemcall、OS与Process的关系类似,如果GuestVM想要执行一些特权行为(如请求硬件)那么就要使用hypercall,控制权会转交给hypervisor,当hypervisor完成相关操作时会将控制权再交回GuestVM。

Read more »

Xen Log 2-Build HVM DomainU

Posted on 2015-11-29 |

经过上一篇的步骤之后,Xen已经运行并且将原来的OS作为Domain0启动了起来。在文章末尾提到过HVM与PV,本篇会使用建立一个硬盘镜像并安装Ubuntu14.04,最后以HVM启动。

可以参考这里,这是通过克隆自己的host OS来作为Guest Domain的。不过我弄完后磁盘配置好像出了点问题,因此就重新安装一个ubuntu来使用。

Read more »

Xen Log 1-Running Xen

Posted on 2015-11-28 |

之后的一段时间里面将会围绕Xen开展工作,所以这一系列博客就记录一下学习的过程和问题。本篇介绍如何从源码编译并运行Xen。主要部分都是从大哥那里现学现卖的:) 原文地址
官网教程也介绍的比较详细。
相关书籍里面介绍了许多相关的书能帮助学习和开发。

Read more »

在x64linux下编译Qemu

Posted on 2015-11-23 |

做JOS实验的时候,因为想在真机上跑Qemu来做,而自己的机子是Ubuntu x64的,目标应用是x86的,当时编译的时候还遇到了一些问题,这里做个记录:)

Read more »

Calling Convention&Function Pointer

Posted on 2015-11-17 |

这一年因为工作原因得以跟着本科生一起学习ICS(Introduction to Computer Systems), ICS原本好像是CMU的课:https://www.cs.cmu.edu/~213/, 本校的主页:http://ipads.se.sjtu.edu.cn/courses/ics/。内容基本上涵盖了我本科时期操作系统、计算机组成与x86汇编的大部分内容,而且由于是一门课,所以很好的把这些内容都串了起来,我也有幸能再次学习和温习一下专业的基础知识。这一系列博文主要总结这次学习中的新的收获和以混淆的点,用来温习和回顾。

这次总结函数调用的 Calling Convention和C语言的Function Pointer, 本来还想加上Round to Even 和 x86与x86-64种struct, union对齐的,不过因为扯了C#的事件和委托机制,导致内容有点多,就放到下一篇好了。

Read more »

在英文版Debian/Ubuntu中添加中文拼音(双拼)输入法

Posted on 2015-11-16 |

Although for most time english is enough, we have to input some chinese when browse some chinese sites.This post will show how to add chinese input method in Debian(english version).

Read more »

使用SSH通过代理连接Git

Posted on 2015-11-14 |

假设现在有3台计算机: A (IP_A), B1(IP_B1), B2(IP_B2), B1与B2是在同一内网下,B1是该内网的网关,对外拥有独立IP。 最终目标是在A1使用ssh以网关B1为跳板连接到B2上进行工作。

Read more »

1…789
SilentMing

SilentMing

SilentMing / SilentAlice's blog

86 posts
14 tags
RSS
Git Mail LinkedIn Pixiv
Friends' Links
  • Mctrain's Blog
  • Kio's Spot
  • Unlimited Code Works
  • MatheMatrix's The 4th. Place
  • XMM's Blog
© 2022 SilentMing
Powered by Hexo
|
Theme — NexT.Mist v6.0.0