Ekang Monyet [Sun, 1 Aug 2021 12:19:26 +0000 (20:19 +0800)]
Delete existing release asset before releasing
Use mknejp/delete-release-assets to delete existing asset.
This approach might not be optimal if softprops/action-gh-release
supports upserting [1].
[1] https://github.com/softprops/action-gh-release/pull/134
ekangmonyet [Sun, 1 Aug 2021 11:39:12 +0000 (19:39 +0800)]
Dockerized PDF deployment in GitHub Actions (#28)
Add a new GitHub Action to build and release the PDF file after every
push to master. Use texlive/texlive docker image for the sake of
reproducibility in preparation for future build tools like make4ht .
Progress #27 - Reproducible TeX build environment using Docker
Jim Huang [Sun, 1 Aug 2021 08:21:01 +0000 (16:21 +0800)]
Tidy section: Character Device drivers
Jim Huang [Sun, 1 Aug 2021 07:03:25 +0000 (15:03 +0800)]
Tidy section: Preliminaries
Jim Huang [Sun, 1 Aug 2021 06:15:59 +0000 (14:15 +0800)]
Zircon kernel was formerly called Magenta
The renaming appeared in 2017.
Jim Huang [Sat, 31 Jul 2021 15:39:03 +0000 (23:39 +0800)]
Merge pull request #24 from fennecJ/patch
Fix grammar
fennecj [Sat, 31 Jul 2021 15:19:44 +0000 (23:19 +0800)]
Fix grammar
demonsome [Sat, 31 Jul 2021 15:03:16 +0000 (23:03 +0800)]
chardev: Revise comment on device node (#23)
The device file create in this example is "chardev".
So input command "sudo cat /dev/chardev" will get a valid message
"I already told you %d times Hello world!"
fennecJ [Fri, 30 Jul 2021 06:47:22 +0000 (14:47 +0800)]
Fix dead link (#21)
Jim Huang [Fri, 30 Jul 2021 05:44:35 +0000 (13:44 +0800)]
Add information for contributing
Jim Huang [Thu, 29 Jul 2021 16:40:58 +0000 (00:40 +0800)]
Merge pull request #19 from fennecJ/master
Fix typo
fennecj [Thu, 29 Jul 2021 11:52:22 +0000 (19:52 +0800)]
Fix typo
linD026 [Thu, 29 Jul 2021 08:10:52 +0000 (16:10 +0800)]
Avoid strlen by assigning explicit length of string for proc_read (#18)
Since the address of buffer is userspace address, it may trigger an unexpected fault on strlen(buffer).
On Ubuntu 20.04.2 LTS ( 5.8.0-63-generic ), using strlen(buffer) will result in the following:
[ 2168.010930] /proc/buffer1k created
[ 2177.014347] BUG: unable to handle page fault for address:
00007fbbc2a17000
[ 2177.014355] #PF: supervisor read access in kernel mode
[ 2177.014358] #PF: error_code(0x0000) - not-present page
[ 2177.014361] PGD
80000003c61d0067 P4D
80000003c61d0067 PUD
3ee6c5067 PMD
40e1ff067 PTE 0
[ 2177.014369] Oops: 0000 [#1] SMP PTI
[ 2177.014376] CPU: 7 PID: 4750 Comm: cat Tainted: P W OE 5.8.0-63-generic #71~20.04.1-Ubuntu
[ 2177.014387] RIP: 0010:procfile_read+0xb/0x20 [procfs2]
[ 2177.014393] Code: Unable to access opcode bytes at RIP 0xffffffffc1253fe1.
[ 2177.014396] RSP: 0018:
ffffbc84412cbe78 EFLAGS:
00010286
[ 2177.014400] RAX:
ffffffffc1254000 RBX:
0000000000020000 RCX:
ffffbc84412cbef0
[ 2177.014403] RDX:
0000000000020000 RSI:
00007fbbc2a17000 RDI:
ffffa057d2708f00
[ 2177.014406] RBP:
ffffbc84412cbe80 R08:
0000000000000001 R09:
0000000000000000
[ 2177.014409] R10:
0000000000000000 R11:
0000000000000000 R12:
ffffa0581de8ccc0
[ 2177.014411] R13:
ffffa057d2708f00 R14:
ffffbc84412cbef0 R15:
00007fbbc2a17000
[ 2177.014415] FS:
00007fbbc3bfa580(0000) GS:
ffffa0582dbc0000(0000) knlGS:
0000000000000000
[ 2177.014418] CS: 0010 DS: 0000 ES: 0000 CR0:
0000000080050033
[ 2177.014421] CR2:
ffffffffc1253fe1 CR3:
00000003c611c004 CR4:
00000000003606e0
[ 2177.014424] Call Trace:
[ 2177.014435] proc_reg_read+0x66/0x90
[ 2177.014441] vfs_read+0xaa/0x190
[ 2177.014446] ksys_read+0x67/0xe0
[ 2177.014451] __x64_sys_read+0x1a/0x20
[ 2177.014458] do_syscall_64+0x49/0xc0
[ 2177.014464] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 2177.014467] RIP: 0033:0x7fbbc3b18142
[ 2177.014472] Code: c0 e9 c2 fe ff ff 50 48 8d 3d 3a ca 0a 00 e8 f5 19 02 00 0f 1f 44 00 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 0f 05 <48> 3d 00 f0 ff ff 77 56 c3 0f 1f 44 00 00 48 83 ec 28 48 89 54 24
[ 2177.014476] RSP: 002b:
00007ffcf2d20d78 EFLAGS:
00000246 ORIG_RAX:
0000000000000000
[ 2177.014479] RAX:
ffffffffffffffda RBX:
0000000000020000 RCX:
00007fbbc3b18142
[ 2177.014482] RDX:
0000000000020000 RSI:
00007fbbc2a17000 RDI:
0000000000000003
[ 2177.014485] RBP:
00007fbbc2a17000 R08:
00007fbbc2a16010 R09:
0000000000000000
[ 2177.014487] R10:
0000000000000022 R11:
0000000000000246 R12:
0000560f8ff081f0
[ 2177.014490] R13:
0000000000000003 R14:
0000000000020000 R15:
0000000000020000
[ 2177.014635] CR2:
00007fbbc2a17000
[ 2177.014639] ---[ end trace
b71ff05c1b0a10f6 ]---
[ 2177.184174] RIP: 0010:procfile_read+0xb/0x20 [procfs2]
[ 2177.184176] Code: Unable to access opcode bytes at RIP 0xffffffffc1253fe1.
[ 2177.184177] RSP: 0018:
ffffbc84412cbe78 EFLAGS:
00010286
[ 2177.184178] RAX:
ffffffffc1254000 RBX:
0000000000020000 RCX:
ffffbc84412cbef0
[ 2177.184179] RDX:
0000000000020000 RSI:
00007fbbc2a17000 RDI:
ffffa057d2708f00
[ 2177.184180] RBP:
ffffbc84412cbe80 R08:
0000000000000001 R09:
0000000000000000
[ 2177.184180] R10:
0000000000000000 R11:
0000000000000000 R12:
ffffa0581de8ccc0
[ 2177.184181] R13:
ffffa057d2708f00 R14:
ffffbc84412cbef0 R15:
00007fbbc2a17000
[ 2177.184182] FS:
00007fbbc3bfa580(0000) GS:
ffffa0582dbc0000(0000) knlGS:
0000000000000000
[ 2177.184182] CS: 0010 DS: 0000 ES: 0000 CR0:
0000000080050033
[ 2177.184183] CR2:
ffffffffc1253fe1 CR3:
00000003c611c004 CR4:
00000000003606e0
Jim Huang [Tue, 27 Jul 2021 02:10:16 +0000 (10:10 +0800)]
Open Software License is not popular. Explicitly refer to OSI
2011eric [Mon, 26 Jul 2021 05:10:34 +0000 (13:10 +0800)]
Use unified command prompt (#11)
This patch enforces the assumption of using as a non-root user. That is,
it is necessary to specify sudo for the essential commands such as
insmod and rmmod. In addition, most command prompts should start with
$ (dollar sign).
Jim Huang [Sun, 25 Jul 2021 19:18:06 +0000 (03:18 +0800)]
Merge pull request #12 from
25077667/style-tweaks
Fix trivial tweak for missing comma
25077667 [Sun, 25 Jul 2021 18:10:34 +0000 (02:10 +0800)]
Fix trivial tweak for missing comma
Jim Huang [Sun, 25 Jul 2021 05:50:18 +0000 (13:50 +0800)]
Tidy section: hello world
Wei-Lun Tsai [Sat, 24 Jul 2021 01:14:46 +0000 (09:14 +0800)]
Trivial fix for writing style
Jim Huang [Fri, 23 Jul 2021 06:36:26 +0000 (14:36 +0800)]
Apply trivial tweak
Jim Huang [Fri, 23 Jul 2021 06:33:30 +0000 (14:33 +0800)]
Merge pull request #2 from
25077667/master
Redraw figure: seq_file
Jim Huang [Fri, 23 Jul 2021 06:31:18 +0000 (14:31 +0800)]
Merge pull request #3 from ekangmonyet/minor-fixes
Typo at 0.7.3 Manage /proc file with seq_file
Jim Huang [Fri, 23 Jul 2021 06:29:57 +0000 (14:29 +0800)]
Tidy section: hello world
Jim Huang [Fri, 23 Jul 2021 06:05:52 +0000 (14:05 +0800)]
Tweak wording
Jim Huang [Fri, 23 Jul 2021 06:02:27 +0000 (14:02 +0800)]
Tidy section: headers
Jim Huang [Fri, 23 Jul 2021 05:56:14 +0000 (13:56 +0800)]
Tidy section: introduction
Ekang Monyet [Fri, 23 Jul 2021 02:48:42 +0000 (10:48 +0800)]
Typo at 0.7.3 Manage /proc file with seq_file
25077667 [Thu, 22 Jul 2021 18:10:57 +0000 (02:10 +0800)]
Use TikZ to re-draw seq_file graph
Jim Huang [Thu, 22 Jul 2021 12:47:48 +0000 (20:47 +0800)]
Remove unused packages
Jim Huang [Thu, 22 Jul 2021 03:25:32 +0000 (11:25 +0800)]
Make each source file more consistent
It is vital to denote the file name and summary for each source,
otherwise readers could not figure out the corresponding files.
Jim Huang [Thu, 22 Jul 2021 02:55:14 +0000 (10:55 +0800)]
Shorten sample code
Jim Huang [Thu, 22 Jul 2021 02:54:24 +0000 (10:54 +0800)]
Use American English words
Jim Huang [Thu, 22 Jul 2021 02:53:45 +0000 (10:53 +0800)]
Drop duplicated copyright notice
Jim Huang [Thu, 22 Jul 2021 02:31:24 +0000 (10:31 +0800)]
Reduce header inclusion
Jim Huang [Thu, 22 Jul 2021 00:31:47 +0000 (08:31 +0800)]
Emphasize on 5.x kernel
Jim Huang [Thu, 22 Jul 2021 00:09:20 +0000 (08:09 +0800)]
Exclude the files generated by Linux kernel build system
Jim Huang [Wed, 21 Jul 2021 23:39:35 +0000 (07:39 +0800)]
Revise the authorship
Jim Huang [Wed, 21 Jul 2021 23:33:27 +0000 (07:33 +0800)]
Remove linux-2.6 specific checks
Jim Huang [Wed, 21 Jul 2021 23:29:07 +0000 (07:29 +0800)]
Drop duplicated module author information
Jim Huang [Wed, 21 Jul 2021 23:17:31 +0000 (07:17 +0800)]
Improve the compatibility with kernel version < 5.6
Jim Huang [Wed, 21 Jul 2021 22:58:13 +0000 (06:58 +0800)]
Enforce the customized style for example code
Instead of using tab for indention, the style defaults to 4 spaces for
the sake of compact layout.
Jim Huang [Wed, 21 Jul 2021 22:39:22 +0000 (06:39 +0800)]
Emphasize on the license terms
Jim Huang [Wed, 21 Jul 2021 22:35:24 +0000 (06:35 +0800)]
Add LaTeX script and sample code
Jim Huang [Wed, 21 Jul 2021 22:34:19 +0000 (06:34 +0800)]
Initial import