Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

p9fs: remove duplicated code #1323

Merged
merged 2 commits into from
Jul 13, 2024
Merged

Conversation

daniloegea
Copy link
Contributor

This code is using the vnode after it has been released and causing a panic when a p9fs shared volume is unmounted. In fact, it seems like it's just duplicated code left behind from a bad merge.

PR: 279887
Reported by: Michael Dexter


See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279887 for more details.

It seems to me that this code originated from here https://github.com/Juniper/virtfs/blob/jnpr/virtfs/sys/dev/virtio/9pfs/virtfs_vnops.c#L97

With this patch I can mount/umount p9fs shares reliably.

Feedback from someone familiar with the code would be appreciated.

Copy link
Member

@markpeek markpeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed on the duplicated code and this change aligning with the original. Thanks for making this PR.

@bsdimp bsdimp self-assigned this Jul 12, 2024
@bsdimp bsdimp added the ready label Jul 12, 2024
@bsdimp
Copy link
Member

bsdimp commented Jul 12, 2024

this looks good to me. I'll land it after I use it to test running a CI cycle over multiple PRs.

bsdimp pushed a commit to concussious/freebsd-src that referenced this pull request Jul 13, 2024
This code is using the vnode after it has been released and causing a
panic when a p9fs shared volume is unmounted. In fact, it seems like it's
just duplicated code left behind from a bad merge.

PR:		279887
Reported by:	Michael Dexter

Reviewed by: imp
Pull Request: freebsd#1323
@bsdimp bsdimp force-pushed the p9fs_panic_umount branch 2 times, most recently from 3cfc78f to a6ca6df Compare July 13, 2024 03:40
concussious and others added 2 commits July 12, 2024 21:40
+ service routing restart breaks on dhcp
+ change my copyright from inbox to home

Fixes:		75eda00
MFC after:	3 days
Reported by:	Graham Perrin, zlei
Reviewed by:	imp
Pull Request:	freebsd#1316
This code is using the vnode after it has been released and causing a
panic when a p9fs shared volume is unmounted. In fact, it seems like it's
just duplicated code left behind from a bad merge.

PR:		279887
Reported by:	Michael Dexter

Reviewed by: imp
Pull Request: freebsd#1323
@freebsd-git freebsd-git merged commit a6ca6df into freebsd:main Jul 13, 2024
14 of 16 checks passed
markjdb pushed a commit to markjdb/cheribsd that referenced this pull request Jul 31, 2024
This code is using the vnode after it has been released and causing a
panic when a p9fs shared volume is unmounted. In fact, it seems like it's
just duplicated code left behind from a bad merge.

PR:		279887
Reported by:	Michael Dexter

Reviewed by: imp
Pull Request: freebsd/freebsd-src#1323

(cherry picked from commit a6ca6df)
markjdb pushed a commit to markjdb/cheribsd that referenced this pull request Jul 31, 2024
This code is using the vnode after it has been released and causing a
panic when a p9fs shared volume is unmounted. In fact, it seems like it's
just duplicated code left behind from a bad merge.

PR:		279887
Reported by:	Michael Dexter

Reviewed by: imp
Pull Request: freebsd/freebsd-src#1323

(cherry picked from commit a6ca6df)
markjdb pushed a commit to markjdb/cheribsd that referenced this pull request Aug 6, 2024
This code is using the vnode after it has been released and causing a
panic when a p9fs shared volume is unmounted. In fact, it seems like it's
just duplicated code left behind from a bad merge.

PR:		279887
Reported by:	Michael Dexter

Reviewed by: imp
Pull Request: freebsd/freebsd-src#1323

(cherry picked from commit a6ca6df)
markjdb pushed a commit to markjdb/cheribsd that referenced this pull request Aug 10, 2024
This code is using the vnode after it has been released and causing a
panic when a p9fs shared volume is unmounted. In fact, it seems like it's
just duplicated code left behind from a bad merge.

PR:		279887
Reported by:	Michael Dexter

Reviewed by: imp
Pull Request: freebsd/freebsd-src#1323

(cherry picked from commit a6ca6df)
markjdb pushed a commit to markjdb/cheribsd that referenced this pull request Aug 13, 2024
This code is using the vnode after it has been released and causing a
panic when a p9fs shared volume is unmounted. In fact, it seems like it's
just duplicated code left behind from a bad merge.

PR:		279887
Reported by:	Michael Dexter

Reviewed by: imp
Pull Request: freebsd/freebsd-src#1323

(cherry picked from commit a6ca6df)
markjdb pushed a commit to markjdb/cheribsd that referenced this pull request Aug 15, 2024
This code is using the vnode after it has been released and causing a
panic when a p9fs shared volume is unmounted. In fact, it seems like it's
just duplicated code left behind from a bad merge.

PR:		279887
Reported by:	Michael Dexter

Reviewed by: imp
Pull Request: freebsd/freebsd-src#1323

(cherry picked from commit a6ca6df)
markjdb pushed a commit to markjdb/cheribsd that referenced this pull request Aug 21, 2024
This code is using the vnode after it has been released and causing a
panic when a p9fs shared volume is unmounted. In fact, it seems like it's
just duplicated code left behind from a bad merge.

PR:		279887
Reported by:	Michael Dexter

Reviewed by: imp
Pull Request: freebsd/freebsd-src#1323

(cherry picked from commit a6ca6df)
markjdb pushed a commit to markjdb/cheribsd that referenced this pull request Aug 26, 2024
This code is using the vnode after it has been released and causing a
panic when a p9fs shared volume is unmounted. In fact, it seems like it's
just duplicated code left behind from a bad merge.

PR:		279887
Reported by:	Michael Dexter

Reviewed by: imp
Pull Request: freebsd/freebsd-src#1323

(cherry picked from commit a6ca6df)
markjdb pushed a commit to markjdb/cheribsd that referenced this pull request Aug 28, 2024
This code is using the vnode after it has been released and causing a
panic when a p9fs shared volume is unmounted. In fact, it seems like it's
just duplicated code left behind from a bad merge.

PR:		279887
Reported by:	Michael Dexter

Reviewed by: imp
Pull Request: freebsd/freebsd-src#1323

(cherry picked from commit a6ca6df)
markjdb pushed a commit to markjdb/cheribsd that referenced this pull request Aug 28, 2024
This code is using the vnode after it has been released and causing a
panic when a p9fs shared volume is unmounted. In fact, it seems like it's
just duplicated code left behind from a bad merge.

PR:		279887
Reported by:	Michael Dexter

Reviewed by: imp
Pull Request: freebsd/freebsd-src#1323

(cherry picked from commit a6ca6df)
markjdb pushed a commit to markjdb/cheribsd that referenced this pull request Aug 28, 2024
This code is using the vnode after it has been released and causing a
panic when a p9fs shared volume is unmounted. In fact, it seems like it's
just duplicated code left behind from a bad merge.

PR:		279887
Reported by:	Michael Dexter

Reviewed by: imp
Pull Request: freebsd/freebsd-src#1323

(cherry picked from commit a6ca6df)
markjdb pushed a commit to markjdb/cheribsd that referenced this pull request Sep 4, 2024
This code is using the vnode after it has been released and causing a
panic when a p9fs shared volume is unmounted. In fact, it seems like it's
just duplicated code left behind from a bad merge.

PR:		279887
Reported by:	Michael Dexter

Reviewed by: imp
Pull Request: freebsd/freebsd-src#1323

(cherry picked from commit a6ca6df)
markjdb pushed a commit to markjdb/cheribsd that referenced this pull request Sep 10, 2024
This code is using the vnode after it has been released and causing a
panic when a p9fs shared volume is unmounted. In fact, it seems like it's
just duplicated code left behind from a bad merge.

PR:		279887
Reported by:	Michael Dexter

Reviewed by: imp
Pull Request: freebsd/freebsd-src#1323

(cherry picked from commit a6ca6df)
markjdb pushed a commit to markjdb/cheribsd that referenced this pull request Sep 12, 2024
This code is using the vnode after it has been released and causing a
panic when a p9fs shared volume is unmounted. In fact, it seems like it's
just duplicated code left behind from a bad merge.

PR:		279887
Reported by:	Michael Dexter

Reviewed by: imp
Pull Request: freebsd/freebsd-src#1323

(cherry picked from commit a6ca6df)
markjdb pushed a commit to markjdb/cheribsd that referenced this pull request Sep 15, 2024
This code is using the vnode after it has been released and causing a
panic when a p9fs shared volume is unmounted. In fact, it seems like it's
just duplicated code left behind from a bad merge.

PR:		279887
Reported by:	Michael Dexter

Reviewed by: imp
Pull Request: freebsd/freebsd-src#1323

(cherry picked from commit a6ca6df)
markjdb pushed a commit to markjdb/cheribsd that referenced this pull request Oct 16, 2024
This code is using the vnode after it has been released and causing a
panic when a p9fs shared volume is unmounted. In fact, it seems like it's
just duplicated code left behind from a bad merge.

PR:		279887
Reported by:	Michael Dexter

Reviewed by: imp
Pull Request: freebsd/freebsd-src#1323

(cherry picked from commit a6ca6df)
markjdb pushed a commit to markjdb/cheribsd that referenced this pull request Oct 16, 2024
This code is using the vnode after it has been released and causing a
panic when a p9fs shared volume is unmounted. In fact, it seems like it's
just duplicated code left behind from a bad merge.

PR:		279887
Reported by:	Michael Dexter

Reviewed by: imp
Pull Request: freebsd/freebsd-src#1323

(cherry picked from commit a6ca6df)
bsdjhb pushed a commit to bsdjhb/cheribsd that referenced this pull request Oct 30, 2024
This code is using the vnode after it has been released and causing a
panic when a p9fs shared volume is unmounted. In fact, it seems like it's
just duplicated code left behind from a bad merge.

PR:		279887
Reported by:	Michael Dexter

Reviewed by: imp
Pull Request: freebsd/freebsd-src#1323
markjdb pushed a commit to markjdb/cheribsd that referenced this pull request Oct 30, 2024
This code is using the vnode after it has been released and causing a
panic when a p9fs shared volume is unmounted. In fact, it seems like it's
just duplicated code left behind from a bad merge.

PR:		279887
Reported by:	Michael Dexter

Reviewed by: imp
Pull Request: freebsd/freebsd-src#1323

(cherry picked from commit a6ca6df)
fichtner pushed a commit to opnsense/src that referenced this pull request Jan 12, 2025
This code is using the vnode after it has been released and causing a
panic when a p9fs shared volume is unmounted. In fact, it seems like it's
just duplicated code left behind from a bad merge.

PR:		279887
Reported by:	Michael Dexter

Reviewed by: imp
Pull Request: freebsd/freebsd-src#1323
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants