Re: [bug report] data corruption of init process

2025-01-21 Thread Stefan Kerkmann
Hi Gao, I have applied your patch (with minor corrections) and here is the output. I haven't had the time today to look deeper into it unfortunately. [4.765049] erofs: (device mmcblk3p3): mounted with root inode @ nid 36. [4.772082] VFS: Mounted root (erofs filesystem) readonly on device

Re: [bug report] data corruption of init process

2025-01-20 Thread Gao Xiang
On 2025/1/21 11:27, Gao Xiang wrote: On 2025/1/21 01:36, Stefan Kerkmann wrote: Hi Gao, I have enabled KASAN and applied your requested changes, but nothing suspicious happened. Sigh... - Could we get the exact file offset of `init` which init process is    crashed?  It will help us

Re: [bug report] data corruption of init process

2025-01-20 Thread Gao Xiang
On 2025/1/21 01:36, Stefan Kerkmann wrote: Hi Gao, I have enabled KASAN and applied your requested changes, but nothing suspicious happened. Sigh... - Could we get the exact file offset of `init` which init process is crashed? It will help us to chase down the the primary scene.

Re: [bug report] data corruption of init process

2025-01-20 Thread Stefan Kerkmann
Hi Gao, I have enabled KASAN and applied your requested changes, but nothing suspicious happened. > - Could we get the exact file offset of `init` which init process is > crashed? It will help us to chase down the the primary scene. I'll try to track that down. If you have any hints how to-

Re: [bug report] data corruption of init process

2025-01-19 Thread Gao Xiang
On 2025/1/20 09:45, Gao Xiang wrote: ... After I picked "erofs: ... i_ino , index " lines out, sort them, and use`sed -e 's/.*(\([0-9a-f]*\))$/\1/'` to parse the sorted items of BAD and GOOD cases, I found each decompressed page cache page (which will be visible to the userspace) i

Re: [bug report] data corruption of init process

2025-01-19 Thread Gao Xiang
Hi Stefan, On 2025/1/19 20:07, Stefan Kerkmann wrote: ... Here is the new output: BAD: [4.775107] erofs: (device mmcblk3p3): mounted with root inode @ nid 36. [4.782154] VFS: Mounted root (erofs filesystem) readonly on device 179:3. [4.789277] devtmpfs: mounted [4.802482] Fr

Re: [bug report] data corruption of init process

2025-01-19 Thread Gao Xiang
On 2025/1/19 20:07, Stefan Kerkmann wrote: Hi Gao, Sorry again that it took me so long to respond properly. Thanks! Let's me look into that first.. Thanks, Gao Xiang

Re: [bug report] data corruption of init process

2025-01-19 Thread Stefan Kerkmann
Hi Gao, Sorry again that it took me so long to respond properly. On 27.12.24 14:24, Gao Xiang wrote: > Hi Stefan, > > On 2024/12/27 18:44, Stefan Kerkmann wrote: >> Hello, >> >> I have debugged a kernel panic issue on my i.MX6Q board and might be running >> into a bug in erofs. The problem manif

Re: [bug report] data corruption of init process

2024-12-27 Thread Gao Xiang
Hi Stefan, On 2024/12/27 18:44, Stefan Kerkmann wrote: Hello, I have debugged a kernel panic issue on my i.MX6Q board and might be running into a bug in erofs. The problem manifests in a crashed init process in user space. The process is either killed by a SIGILL as it attempts to execute a mal

[bug report] data corruption of init process

2024-12-27 Thread Stefan Kerkmann
Hello, I have debugged a kernel panic issue on my i.MX6Q board and might be running into a bug in erofs. The problem manifests in a crashed init process in user space. The process is either killed by a SIGILL as it attempts to execute a malformed instruction or SIGSEGV by dereferencing an invalid