Linux 如何触摸内核线程堆栈';8K字节限制?

Linux 如何触摸内核线程堆栈';8K字节限制?,linux,kernel,Linux,Kernel,正如我所知,Linux内核对其内核线程堆栈的大小有一个限制,对于大多数体系结构来说是4K或8K。我想知道如何触摸它? 我使用kthread_run()创建一个内核线程kernelthread(),并分配大小大于8K的堆栈并运行它,但它运行得很好。为什么?如何制作一个触及限制并可能导致内核死机的代码 static int theKernelThread(void *pUsrdata) { int test[82000]; static int count; whi

正如我所知,Linux内核对其内核线程堆栈的大小有一个限制,对于大多数体系结构来说是4K或8K。我想知道如何触摸它? 我使用kthread_run()创建一个内核线程kernelthread(),并分配大小大于8K的堆栈并运行它,但它运行得很好。为什么?如何制作一个触及限制并可能导致内核死机的代码

static int theKernelThread(void *pUsrdata)
{
    int     test[82000];
    static int count;

    while(1)
    {    
        count++;
        test[count % 81999] = count % 0xff;
        printk("tomxue: test=0x%x, count=%d\n", test[count], count);
        ...
        msleep(2);
    }
}