Re: ksmbd: BUG_ON in locks_release_private() - file_lock destroyed while VFS blocked requests are still attached

ChenXiaoSong <[email protected]>
Newsgroups org.kernel.vger.linux-cifs
Message-ID <[email protected]>
Yes, they are different issues. We still need to continue analyzing the 
BUG_ON issue.

在 2026/8/13 19:03, Blue bird 写道:
> Thanks for the patch and for the credit -- but I think that is a different bug
> from the one I reported, and the fs/locks.c:312 BUG_ON is still open.
> 
> Your patch fixes a proc_dir_entry use-after-free in
> ksmbd_conn_transport_destroy() on module unload. Mine is a BUG_ON in
> __ksmbd_close_fd() on connection teardown, from a byte-range lock whose
> file_lock still has blocked requests chained onto it. Different file, different
> path, and the reproducer for yours is mount/umount/modprobe -r rather than lock
> traffic.

-- 
ChenXiaoSong <[email protected]>
Chinese Homepage: https://chenxiaosong.com
English Homepage: https://chenxiaosong.com/en
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.