Re: [PATCH v1] erofs: use raw_smp_processor_id() to get buffer from global buffer pool

2024-04-08 Thread Gao Xiang
On 2024/4/9 07:05, Sandeep Dhavale wrote: Thanks for catching this, since the original patch is for next upstream cycle, may I fold this fix in the original patch? Hi Gao, Sounds good. As the fix is simple, it makes sense to fold it into the original one. Thanks, Sandeep. Thanks,

Re: [PATCH v1] erofs: use raw_smp_processor_id() to get buffer from global buffer pool

2024-04-08 Thread Sandeep Dhavale via Linux-erofs
> > Thanks for catching this, since the original patch is > for next upstream cycle, may I fold this fix in the > original patch? > Hi Gao, Sounds good. As the fix is simple, it makes sense to fold it into the original one. Thanks, Sandeep.

Re: [PATCH v1] erofs: use raw_smp_processor_id() to get buffer from global buffer pool

2024-04-08 Thread Gao Xiang
Hi Sandeep, On 2024/4/9 05:52, Sandeep Dhavale wrote: erofs will decompress in the preemptible context (kworker or per cpu thread). As smp_processor_id() cannot be used in preemptible contexts, use raw_smp_processor_id() instead to index into global buffer pool. Reported-by:

[PATCH v1] erofs: use raw_smp_processor_id() to get buffer from global buffer pool

2024-04-08 Thread Sandeep Dhavale via Linux-erofs
erofs will decompress in the preemptible context (kworker or per cpu thread). As smp_processor_id() cannot be used in preemptible contexts, use raw_smp_processor_id() instead to index into global buffer pool. Reported-by: syzbot+27cc650ef45b379df...@syzkaller.appspotmail.com Fixes: 7a7513292cc6