Re: [PATCH 11/11] sysctl: treewide: constify the ctl_table argument of handlers

2024-03-27 Thread Dave Chinner
ency_record latency_record[MAXLR]; > int latencytop_enabled; > > #ifdef CONFIG_SYSCTL > -static int sysctl_latencytop(struct ctl_table *table, int write, void > *buffer, > - size_t *lenp, loff_t *ppos) > +static int sysctl_latencytop(const struct ctl_table *table, int w

Re: [RFC 05/18] pkernfs: add file mmap callback

2024-02-05 Thread Dave Chinner
t happens when this file is truncated whilst it is mmap()d by an application? Ain't that just a great big UAF waiting to be exploited? -Dave. -- Dave Chinner da...@fromorbit.com ___ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec

Re: [PATCH 6/6] fs: add automatic kernel fs freeze / thaw and remove kthread freezing

2023-05-08 Thread Dave Chinner
EBUSY; > > - if (error) > + if (error) { > + iterate_supers_excl(fs_suspend_thaw_sb, NULL); > thaw_processes(); > + } Does this also have the same problem? i.e. if fs_suspend_freeze_sb() skips over superblocks that are already userspace fr