FreeBSD Bugzilla – Attachment 228319 Details for
Bug 256937
[fusefs] Kernel panic in FUSE - lockmgr_xlock_hard: recursing on non recursive lockmgr
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Program to help panic the kernel
simple.c (text/plain), 551 bytes, created by
Agata
on 2021-10-01 12:51:47 UTC
(
hide
)
Description:
Program to help panic the kernel
Filename:
MIME Type:
Creator:
Agata
Created:
2021-10-01 12:51:47 UTC
Size:
551 bytes
patch
obsolete
>#include <stdio.h> >#include <stdlib.h> >#include <unistd.h> >#include <fcntl.h> >#include <sys/stat.h> > >int main(void) { > char buff[0x40000]; > long size; > int fd; > struct stat st; > > fd = open("test.bin",O_RDWR|O_TRUNC|O_CREAT,0666); > if (fd<0) { > perror("open"); > return 1; > } > while (1) { > size = random()&0x3FFFF; > switch (random()%3) { > case 0: > ftruncate(fd,size); > break; > case 1: > lseek(fd,0,SEEK_SET); > write(fd,buff,size); > break; > case 2: > lseek(fd,0,SEEK_SET); > read(fd,buff,size); > break; > } > } > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 256937
:
226169
|
226183
| 228319 |
228320
|
228412
|
228438
|
228446