Re: [RFC][PATCH 1 of 4] Configfs is really sysfs

2005-08-30 Thread viro
On Tue, Aug 30, 2005 at 04:28:46PM -0700, Andrew Morton wrote: > Sure, but all that copying-and-pasting really sucks. I'm sure there's some > way of providing the slightly different semantics from the same codebase? Careful - you've almost reinvented the concept of library, which would violate an

[RFC][CFLART] ipmi procfs bogosity

2005-08-31 Thread viro
drivers/char/ipmi/ipmi_poweroff.c::proc_write_chassctrl() a) does sscanf on userland pointer b) does sscanf on array that is not guaranteed to have NUL in it c) interprets input in incredibly cretinous way: if strings doesn't start with a decimal number => as if it was "0".

Re: [PATCH 01/14] GFS: headers

2005-09-01 Thread viro
On Thu, Sep 01, 2005 at 04:19:34PM +0200, Arjan van de Ven wrote: > > +/* Endian functions */ > > e again why?? > Why is this a compiletime hack? > Either you care about either-endian on disk, at which point it has to be > a runtime thing, or you make the on disk layout fixed endian, at which

Re: [RFC][CFLART] ipmi procfs bogosity

2005-09-01 Thread viro
On Thu, Sep 01, 2005 at 11:41:42AM -0500, Corey Minyard wrote: > Indeed, this function is badly written. In rewriting, I couldn't find a > nice function for reading integers from userspace, and the proc_dointvec > stuff didn't seem terribly suitable. So I wrote my own general > function, which I

Re: [PATCH 0/10] m68k/thread_info merge

2005-09-01 Thread viro
On Thu, Sep 01, 2005 at 05:17:38PM -0700, Andrew Morton wrote: > Andrew Morton <[EMAIL PROTECTED]> wrote: > > > > Can I assume that the five m68k patches can be split apart from the five > > patches which dink with task_struct? ie: if the task_struct patches go in > > later, does anything bad happ

[PATCH] dereference of uninitialized pointer in zatm

2005-09-02 Thread viro
d when we enter that block... Signed-off-by: Al Viro <[EMAIL PROTECTED]> diff -urN RC13-uml-checker/drivers/atm/zatm.c RC13-zatm/drivers/atm/zatm.c --- RC13-uml-checker/drivers/atm/zatm.c 2005-09-02 03:33:39.0 -0400 +++ RC13-zatm/drivers/atm/zatm.c2005-09-02 03:34:19.

[PATCH] more of sparc32 dependencies fallout

2005-09-02 Thread viro
More stuff that got exposed to sparc32 build due to inclusion of drivers/char/Kconfig in arch/sparc/Kconfig needs to be excluded. Signed-off-by: Al Viro <[EMAIL PROTECTED]> diff -urN RC13-zatm/drivers/char/Kconfig RC13-mxser-sparc32/drivers/char/Kconfig --- RC13-zatm/drivers/char/K

[PATCH] missed gratitious includes of asm/segment.h

2005-09-02 Thread viro
A bunch of gratitious includes of asm/segment.h (outside of arch/*, at that) had been missed by removals. Signed-off-by: Al Viro <[EMAIL PROTECTED]> diff -urN RC13-s390-phy/drivers/isdn/hisax/hisax.h RC13-segment/drivers/isdn/hisax/hisax.h --- RC13-s390-phy/drivers/isdn/hisax/h

[PATCH] Kconfig fix (PHYLIB vs. s390)

2005-09-02 Thread viro
drivers/net/phy/phy.c is broken on s390; it uses enable_irq() and friends and these do not exist on s390. Marked as broken for now. Signed-off-by: Al Viro <[EMAIL PROTECTED]> diff -urN RC13-mxser-sparc32/drivers/net/phy/Kconfig RC13-s390-phy/drivers/net/phy/Kconfig --- RC13-mxser-s

[PATCH] s2io u64 use for uintptr_t

2005-09-02 Thread viro
u64 is not uintptr_t; unsigned long is... Signed-off-by: Al Viro <[EMAIL PROTECTED]> diff -urN RC13-segment/drivers/net/s2io.c RC13-s2io-u64/drivers/net/s2io.c --- RC13-segment/drivers/net/s2io.c 2005-09-02 03:33:39.0 -0400 +++ RC13-s2io-u64/drivers/net/s2io.c2005-09-02

Re: [PATCH] more of sparc32 dependencies fallout

2005-09-02 Thread viro
On Fri, Sep 02, 2005 at 01:03:43PM -0700, David S. Miller wrote: > From: Alan Cox <[EMAIL PROTECTED]> > Subject: Re: [PATCH] more of sparc32 dependencies fallout > Date: Fri, 02 Sep 2005 21:24:08 +0100 > > > On Gwe, 2005-09-02 at 20:12 +0100, [EMAIL PROTECTED] wrote: > > > config MOXA_SMARTIO > >

[PATCHSET] 2.6.13-git3-bird1

2005-09-04 Thread viro
, so for now I'd say that it's usable. Current patchset is on ftp.linux.org.uk/pub/people/viro/ - patch-2.6.13-git3-bird1.bz2 is combined patch, patchset/* is the splitup. Long description of patches is in patchset/set*, short log is in the end of this posting. Current build

Re: [PATCHSET] 2.6.13-git3-bird1

2005-09-05 Thread viro
- there will be > > much more stuff to merge. > > > Current patchset is on ftp.linux.org.uk/pub/people/viro/ - > > patch-2.6.13-git3-bird1.bz2 is combined patch, patchset/* is the splitup. > > Long description of patches is in patchset/set*, short log is in the end

[PATCHSET] 2.6.13-git5-bird1

2005-09-05 Thread viro
ted patchset in the same place: ftp.linux.org.uk:/pub/people/viro/patchset/ ftp.linux.org.uk:/pub/people/viro/patch-2.6.13-git5-bird1.bz2 Old splitup had been moved to patchset-RC13-git3. Changes: * F6-zatm and B40-mxser-sparc32 merged upstream * jd1--jd9 are partially

Re: [PATCHSET] 2.6.13-git3-bird1

2005-09-05 Thread viro
- there will be > > much more stuff to merge. > > > Current patchset is on ftp.linux.org.uk/pub/people/viro/ - > > patch-2.6.13-git3-bird1.bz2 is combined patch, patchset/* is the splitup. > > Long description of patches is in patchset/set*, short log is in the end

[PATCHSET] 2.6.13-git5-bird2

2005-09-05 Thread viro
With several more patches (mostly - sparse regression fixing); same place, ftp.linux.org.uk/pub/people/viro/{patch-2.6.13-git5-bird2.bz,patchset} Added: * O4-dm9000 missed s/u32/pm_message_t/ (dm9000) * S20-wdt __user annotations (booke_wdt.c

[PATCH] missed s/u32/pm_message_t/ in arch/ppc/syslib/ocp.c

2005-09-05 Thread viro
Signed-off-by: Al Viro <[EMAIL PROTECTED]> diff -urN RC13-git5-mga/arch/ppc/syslib/ocp.c RC13-git5-ppc44x-pm/arch/ppc/syslib/ocp.c --- RC13-git5-mga/arch/ppc/syslib/ocp.c 2005-08-28 23:09:40.0 -0400 +++ RC13-git5-ppc44x-pm/arch/ppc/syslib/ocp.c 2005-09-05 16:41:17.0

[PATCH] sunsu compile fixes

2005-09-05 Thread viro
sunsu had been broken by ->stop_tx/->start_tx API changes. Signed-off-by: Al Viro <[EMAIL PROTECTED]> diff -urN RC13-git5-sata_qstor/drivers/serial/sunsu.c RC13-git5-sunsu/drivers/serial/sunsu.c --- RC13-git5-sata_qstor/drivers/serial/sunsu.c 2005-09-05 07:05:15.0 -0

[PATCH] Kconfig fix (BLK_DEV_FD dependencies)

2005-09-05 Thread viro
e - just s/ARCH_MAY_HAVE_PC_FDC/your_prefered_name/g in the patch below... Signed-off-by: Al Viro <[EMAIL PROTECTED]> diff -urN RC13-git5-rio/arch/alpha/Kconfig RC13-git5-floppy/arch/alpha/Kconfig --- RC13-git5-rio/arch/alpha/Kconfig2005-08-28 23:09:39.0 -0400 +++ RC13-git5-floppy/ar

[PATCH] Kconfig fix (GEN_RTC dependencies)

2005-09-05 Thread viro
RCH_HAS_GEN_RTC and have it set in arch/*/Kconfig for architectures that know what to do with this stuff - for something supposedly generic the list of architectures where it doesn't work is getting too long... Signed-off-by: Al Viro <[EMAIL PROTECTED]> diff -urN RC13-git5-serial/

[PATCH] lost chunk of "uml: build cleanups"

2005-09-05 Thread viro
llows: Signed-off-by: Al Viro <[EMAIL PROTECTED]> diff -urN RC13-git5-uml-user/arch/um/Makefile-i386 RC13-git5-stubs/arch/um/Makefile-i386 --- RC13-git5-uml-user/arch/um/Makefile-i3862005-08-28 23:09:40.0 -0400 +++ RC13-git5-stubs/arch/um/Makefile-i386 2005-

[PATCH] iomem annotations (sound/arm/aaci)

2005-09-05 Thread viro
Signed-off-by: Al Viro <[EMAIL PROTECTED]> diff -urN RC13-git5-sunsu/sound/arm/aaci.c RC13-git5-aaci/sound/arm/aaci.c --- RC13-git5-sunsu/sound/arm/aaci.c2005-08-28 23:09:50.0 -0400 +++ RC13-git5-aaci/sound/arm/aaci.c 2005-09-05 16:41:09.0 -0400 @@ -821,7

Re: [PATCH] Kconfig fix (GEN_RTC dependencies)

2005-09-05 Thread viro
On Mon, Sep 05, 2005 at 06:51:41PM -0700, David S. Miller wrote: > Admittedly, the whole RTC situation is quite a mess I have to > agree. > > To make the problem worse, we have two sets of RTC ioctls > which userland makes use of on Sparc. The older ones which > the SBUS RTC driver exported and s

Re: [PATCH] missed s/u32/pm_message_t/ in arch/ppc/syslib/ocp.c

2005-09-05 Thread viro
On Mon, Sep 05, 2005 at 07:15:35PM -0700, Eugene Surovegin wrote: > Identical fix is already in -mm Then it really should go upstream; obvious fixes like that are not something that needs filtration... - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a mes

Re: [PATCH] Kconfig fix (BLK_DEV_FD dependencies)

2005-09-06 Thread viro
On Tue, Sep 06, 2005 at 12:52:34PM +0200, Roman Zippel wrote: > I'm not really a big fan of such dummy symbols, those whole point is to > only enable dependencies, but are otherwise unsused. > The basic problem is similiar to selects, that one has to grep the whole > Kconfig to find out what modi

Re: [PATCH] Kconfig fix (BLK_DEV_FD dependencies)

2005-09-06 Thread viro
On Tue, Sep 06, 2005 at 05:05:33PM +0200, Roman Zippel wrote: > Hi, > > On Tue, 6 Sep 2005 [EMAIL PROTECTED] wrote: > > > We could go for your "allow" form, but what else would need it? USB gadget > > stuff with its "must have at most one low-level driver, high-level drivers > > should be allowe

Re: 2.6.13: can kill X server but readlink of /proc//exe et. al. says EACCES. feature?

2005-09-06 Thread viro
On Tue, Sep 06, 2005 at 07:53:49PM +0200, Frank van Maarseveen wrote: > While I have access to /proc/, readlink fails with EACCES on > > /proc//exe > /proc//cwd > /proc//root > > even when I own though it runs with a different effective/saved/fs > uid such as the X server. This

Re: RFC: i386: kill !4KSTACKS

2005-09-06 Thread viro
On Tue, Sep 06, 2005 at 02:42:02PM -0400, linux-os (Dick Johnson) wrote: > I think ... and we have clear winner for the most incredible statement made on l-k. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo in

Re: 2.6.13: can kill X server but readlink of /proc//exe et. al. says EACCES. feature?

2005-09-06 Thread viro
On Tue, Sep 06, 2005 at 08:50:41PM +0200, Frank van Maarseveen wrote: > On Tue, Sep 06, 2005 at 06:57:37PM +0100, [EMAIL PROTECTED] wrote: > > On Tue, Sep 06, 2005 at 07:53:49PM +0200, Frank van Maarseveen wrote: > > > While I have access to /proc/, readlink fails with EACCES on > > > > > > /pro

[PATCH] bogus symbol used in arch/um/os-Linux/elf_aux.c

2005-09-06 Thread viro
elf_aux is userland code; it uses symbol (ELF_CLASS) that doesn't exist in userland headers; pulled into kernel-offsets.h, switched elf_aux to using it. Signed-off-by: Al Viro <[EMAIL PROTECTED]> diff -urN RC13-git5-base/arch/um/include/common-offsets.h current/arch/um/inc

[PATCHSET] 2.6.13-git7-bird1

2005-09-07 Thread viro
ftp.linux.org.uk/pub/peole/viro/patch-2.6.13-git7-brid1.bz2, its splitup is in usual place and logs are in logs/*/*log19. Added: S26-ppc64-sparseCHECKFLAGS on ppc64 got broken C40-elf_class bogus symbol used in elf_aux.c C41-xfs XFS ___ENDIAN -Wundef warnings O5-m68k

[PATCH] -Wundef fixes (hamachi)

2005-09-07 Thread viro
All uses of ADDRLEN are comparisons with 64 (it's an address width). added define to 32 (again, we only care about comparisons with 64) if not defined. Signed-off-by: Al Viro <[EMAIL PROTECTED]> diff -urN RC13-git7-ncr5380/drivers/net/hamachi.c RC13-git7-hamachi/drivers/ne

[PATCH] -Wundef fixes (ncr5380)

2005-09-07 Thread viro
NDEBUG and NDEBUG_ABORT are almost always used as integers in NCR5380; added define to 0 if they are not defined, switched lone ifdef NDEBUG into if. Signed-off-by: Al Viro <[EMAIL PROTECTED]> diff -urN RC13-git7-smc-undef/drivers/scsi/NCR5380.c RC13-git7-ncr5380/drivers/scsi/NCR

[PATCH] -Wundef fixes (hisax)

2005-09-07 Thread viro
CARD_... in hisax are all used with #if; CARD_FN_ENTERNOW_PCI lacks define to 0 if corresponding config option is not set. Signed-off-by: Al Viro <[EMAIL PROTECTED]> diff -urN RC13-git7-uml-mem/drivers/isdn/hisax/hisax.h RC13-git7-hisax/drivers/isdn/hisax/hisax.h --- RC13-git7-u

[PATCH] bogus #if (arch/um/kernel/mem.c)

2005-09-07 Thread viro
Signed-off-by: Al Viro <[EMAIL PROTECTED]> diff -urN RC13-git7-ppc64-sparse/arch/um/kernel/mem.c RC13-git7-uml-mem/arch/um/kernel/mem.c --- RC13-git7-ppc64-sparse/arch/um/kernel/mem.c 2005-08-28 23:09:40.0 -0400 +++ RC13-git7-uml-mem/arch/um/kernel/mem.c 2005-09-07

[PATCH] bogus #if (simserial)

2005-09-07 Thread viro
Signed-off-by: Al Viro <[EMAIL PROTECTED]> diff -urN RC13-git7-xfs/arch/ia64/hp/sim/simserial.c RC13-git7-simserial/arch/ia64/hp/sim/simserial.c --- RC13-git7-xfs/arch/ia64/hp/sim/simserial.c 2005-08-28 23:09:39.0 -0400 +++ RC13-git7-simserial/arch/ia64/hp/sim/simserial.c

[PATCH] bogus #if (smc91x.h)

2005-09-07 Thread viro
Signed-off-by: Al Viro <[EMAIL PROTECTED]> diff -urN RC13-git7-hisax/drivers/net/smc91x.h RC13-git7-smc-undef/drivers/net/smc91x.h --- RC13-git7-hisax/drivers/net/smc91x.h2005-08-28 23:09:44.0 -0400 +++ RC13-git7-smc-undef/drivers/net/smc91x.h2005-09-07

[PATCH] bogus #if (ncr53c406)

2005-09-07 Thread viro
Signed-off-by: Al Viro <[EMAIL PROTECTED]> diff -urN RC13-git7-hamachi/drivers/scsi/NCR53c406a.c RC13-git7-ncr53c406/drivers/scsi/NCR53c406a.c --- RC13-git7-hamachi/drivers/scsi/NCR53c406a.c 2005-08-28 23:09:45.0 -0400 +++ RC13-git7-ncr53c406/drivers/scsi/NCR53c406a.c 2

[PATCH] CHECKFLAGS on ppc64 got broken

2005-09-07 Thread viro
Now that asm-powerpc/* is using ifdefs on __powerpc64__ we need to add it to CHECKFLAGS on ppc64. Signed-off-by: Al Viro <[EMAIL PROTECTED]> diff -urN RC13-git7-simserial/arch/ppc64/Makefile RC13-git7-ppc64-sparse/arch/ppc64/Makefile --- RC13-git7-simserial/arch/ppc64/Makefile 2

Re: [PATCH] rmmod notifier chain

2005-09-08 Thread viro
On Thu, Sep 08, 2005 at 04:16:24PM +0100, Christoph Hellwig wrote: > On Thu, Sep 08, 2005 at 05:03:58PM +0200, Jan Beulich wrote: > > (Note: Patch also attached because the inline version is certain to get > > line wrapped.) > > > > Debugging and maintenance support code occasionally needs to know

Re: [PATCH] add stricmp

2005-09-08 Thread viro
On Thu, Sep 08, 2005 at 05:37:13PM +0100, Alan Cox wrote: > On Iau, 2005-09-08 at 17:45 +0200, Jan Beulich wrote: > > >The only general, usable strnicmp safe for general kernel use would be > > a > > >full all singing all dancing UTF-8 symbol aware arbitary locale > > >implementation. And that we *

Re: Serial maintainership

2005-09-08 Thread viro
On Thu, Sep 08, 2005 at 01:13:58PM -0700, David S. Miller wrote: > From: Linus Torvalds <[EMAIL PROTECTED]> > Date: Thu, 8 Sep 2005 09:27:56 -0700 (PDT) > > > Mistakes happen, and the way you fix them is not to pull a tantrum, but > > tell people that they are idiots and they broke something, and

[PATCH] basic iomem annotations (ppc64)

2005-09-09 Thread viro
Signed-off-by: Al Viro <[EMAIL PROTECTED]> diff -urN RC13-git8-base/arch/ppc64/kernel/iomap.c current/arch/ppc64/kernel/iomap.c --- RC13-git8-base/arch/ppc64/kernel/iomap.c2005-06-17 15:48:29.0 -0400 +++ current/arch/ppc64/kernel/iomap.c 2005-09-08 23:53:33.0

[PATCH] missing CHECKFLAGS on s390

2005-09-09 Thread viro
Signed-off-by: Al Viro <[EMAIL PROTECTED]> diff -urN RC13-git8-base/arch/s390/Makefile current/arch/s390/Makefile --- RC13-git8-base/arch/s390/Makefile 2005-06-17 15:48:29.0 -0400 +++ current/arch/s390/Makefile 2005-09-08 23:53:33.0 -0400 @@ -19,6 +19,7 @@

[PATCH] bogus cast in bio.c

2005-09-09 Thread viro
void * is not the same as void *... Signed-off-by: Al Viro <[EMAIL PROTECTED]> diff -urN RC13-git8-base/fs/bio.c current/fs/bio.c --- RC13-git8-base/fs/bio.c 2005-09-08 10:17:39.0 -0400 +++ current/fs/bio.c2005-09-08 23:53:33.0 -0400 @@ -683,7

[PATCH] gratitious includes of asm/serial.h

2005-09-09 Thread viro
Removed gratitious includes of asm/serial.h in synklinkmp and ip2main. Allows to remove the rest of "broken on sparc32" in drivers/char - this stuff doesn't break the build anymore. Since it got zero testing, it almost certainly won't work there, though... Signed-off

[PATCH] bogus #if (acpi/blacklist)

2005-09-09 Thread viro
Signed-off-by: Al Viro <[EMAIL PROTECTED]> diff -urN RC13-git8-base/drivers/acpi/blacklist.c current/drivers/acpi/blacklist.c --- RC13-git8-base/drivers/acpi/blacklist.c 2005-09-08 23:42:49.0 -0400 +++ current/drivers/acpi/blacklist.c2005-09-09 11:28:44.0

[PATCH] uaccess.h annotations (uml)

2005-09-09 Thread viro
Signed-off-by: Al Viro <[EMAIL PROTECTED]> diff -urN RC13-git7-m68k-hardirq/arch/um/kernel/skas/include/uaccess-skas.h RC13-git7-uml-user/arch/um/kernel/skas/include/uaccess-skas.h --- RC13-git7-m68k-hardirq/arch/um/kernel/skas/include/uaccess-skas.h 2005-06-17 15:48:29.0

[PATCH] sparse on uml (infrastructure bits)

2005-09-09 Thread viro
Passes -m64 to sparse on uml/amd64, tells sparse to stay out of USER_OBJS. Signed-off-by: Al Viro <[EMAIL PROTECTED]> diff -urN RC13-git7-stubs/arch/um/Makefile-x86_64 RC13-git7-uml-checker/arch/um/Makefile-x86_64 --- RC13-git7-stubs/arch/um/Makefile-x86_64 2005-09-05

[PATCH] __user annotations for pointers in i386 sigframe

2005-09-09 Thread viro
Signed-off-by: Al Viro <[EMAIL PROTECTED]> diff -urN RC13-git8-base/arch/i386/kernel/sigframe.h current/arch/i386/kernel/sigframe.h --- RC13-git8-base/arch/i386/kernel/sigframe.h 2005-06-17 15:48:29.0 -0400 +++ current/arch/i386/kernel/sigframe.h 2005-09-08 23:53:33.0

Re: [PATCH] bogus cast in bio.c

2005-09-09 Thread viro
On Fri, Sep 09, 2005 at 06:18:14PM +0200, Andreas Schwab wrote: > [EMAIL PROTECTED] writes: > > > void * is not the same as void *... > > IMHO it should. ... and indeed it should. My apologies - that's a combination of sparse bug and me being very low on coffee... FWIW, looks like we are los

Re: [PATCH] bogus #if (acpi/blacklist)

2005-09-09 Thread viro
On Fri, Sep 09, 2005 at 06:19:02PM +0200, Eric Piel wrote: > 09/09/2005 06:07 PM, [EMAIL PROTECTED] wrote/a ??crit: > >Signed-off-by: Al Viro <[EMAIL PROTECTED]> > > > >diff -urN RC13-git8-base/drivers/acpi/blacklist.c > >current/drivers/acpi/blacklist.c &

[sparse fix] (was Re: [PATCH] bogus cast in bio.c)

2005-09-09 Thread viro
> fs/bio.c:686:15: warning: incorrect type in assignment (different address > spaces) > fs/bio.c:686:15:expected void [noderef] *iov_base > fs/bio.c:686:15:got void [noderef] * > from the first form (cast to __user void *). Lovely... > > OK, I think I know what's going on there, will fix

Re: [PATCH] bogus #if (acpi/blacklist)

2005-09-09 Thread viro
On Fri, Sep 09, 2005 at 06:55:52PM +0200, Roman Zippel wrote: > Hi, > > On Fri, 9 Sep 2005 [EMAIL PROTECTED] wrote: > > > Sigh... It should be left as #if, of course, but I suspect that cleaner > > way to > > deal with that would be (in Kconfig) > > > > config ACPI_BLACKLIST_YEAR > > i

Re: [sparse fix] (was Re: [PATCH] bogus cast in bio.c)

2005-09-09 Thread viro
On Fri, Sep 09, 2005 at 06:29:38PM +0100, [EMAIL PROTECTED] wrote: > > fs/bio.c:686:15: warning: incorrect type in assignment (different address > > spaces) > > fs/bio.c:686:15:expected void [noderef] *iov_base > > fs/bio.c:686:15:got void [noderef] * > > from the first form (cast to __use

[PATCH] trivial __user annotations (ipmi)

2005-09-09 Thread viro
Signed-off-by: Al Viro <[EMAIL PROTECTED]> diff -urN RC13-git8-base/drivers/char/ipmi/ipmi_devintf.c current/drivers/char/ipmi/ipmi_devintf.c --- RC13-git8-base/drivers/char/ipmi/ipmi_devintf.c 2005-09-08 10:17:39.0 -0400 +++ current/drivers/char/ipmi/ipmi_devintf.c2

[PATCH] epca iomem annotations + several missing readw()

2005-09-09 Thread viro
* iomem pointers marked as such * several direct dereferencings of such pointers replaced with read[bw](). Signed-off-by: Al Viro <[EMAIL PROTECTED]> diff -urN RC13-git8-base/drivers/char/epca.c current/drivers/char/epca.c --- RC13-git8-base/drivers/char/epca.c 2005-09

[PATCH] trivial __user cleanup (video1394)

2005-09-09 Thread viro
Signed-off-by: Al Viro <[EMAIL PROTECTED]> diff -urN RC13-git8-base/drivers/ieee1394/video1394.c current/drivers/ieee1394/video1394.c --- RC13-git8-base/drivers/ieee1394/video1394.c 2005-08-28 23:09:41.0 -0400 +++ current/drivers/ieee1394/video1394.c2005-09-08

[PATCH] trivial __user annotations (evdev)

2005-09-09 Thread viro
Signed-off-by: Al Viro <[EMAIL PROTECTED]> diff -urN RC13-git8-base/drivers/input/evdev.c current/drivers/input/evdev.c --- RC13-git8-base/drivers/input/evdev.c2005-09-08 10:17:39.0 -0400 +++ current/drivers/input/evdev.c 2005-09-08 23:53:33.0 -0400 @@

[PATCH] trivial __user annotations (md)

2005-09-09 Thread viro
Signed-off-by: Al Viro <[EMAIL PROTECTED]> diff -urN RC13-git8-base/drivers/md/md.c current/drivers/md/md.c --- RC13-git8-base/drivers/md/md.c 2005-08-28 23:09:43.0 -0400 +++ current/drivers/md/md.c 2005-09-08 23:53:33.0 -0400 @@ -2087,7 +2087,7 @@ re

Re: [sparse fix] (was Re: [PATCH] bogus cast in bio.c)

2005-09-09 Thread viro
.g. when normal pointer is cast to __iomem one - that caught a lot of crap in drivers). casts from unsigned long are still OK, so's cast from 0, so's __force cast, of course. Signed-off-by: Al Viro <[EMAIL PROTECTED]> diff --git a/evaluate.c b/evaluate.c --- a/evaluate.c +++ b/ev

[PATCH] envctrl fixes

2005-09-09 Thread viro
envctrl doesn't need unistd.h; moreover, since it declares errno static gcc4 gets very unhappy about including unistd.h. Signed-off-by: Al Viro <[EMAIL PROTECTED]> diff -urN RC13-git7-m68k-8390/drivers/sbus/char/bbc_envctrl.c RC13-git7-envctrl/drivers/sbus/char/bb

[RFC] killing linux/irq.h

2005-09-09 Thread viro
We get regular portability bugs when somebody decides to include linux/irq.h into a driver instead of asm/irq.h. It's almost always a wrong thing to do and, in fact, causes immediate breakage on e.g. arm. Here's what I'm going to do: * check current includes of linux/irq.h; e.g. i

Re: [PATCH 2.6.13 1/20] aic94xx: Makefile

2005-09-09 Thread viro
gt; > make C=1 CHECK="sparse -Wbitwise" > or > make C=1 Or patch below and use make C=1 CF=-Wbitwise... Allows to add to sparse arguments without mutilating makefiles - just pass CF= and they will be added to CHECKFLAGS. Signed-off-by: Al Viro <[EMAIL PROTECTED]>

[PATCH] trivial iomem annotations in qla2xxx/qla_dbg.c

2005-09-09 Thread viro
Signed-off-by: Al Viro <[EMAIL PROTECTED]> diff -urN RC13-git8-base/drivers/scsi/qla2xxx/qla_dbg.c current/drivers/scsi/qla2xxx/qla_dbg.c --- RC13-git8-base/drivers/scsi/qla2xxx/qla_dbg.c 2005-08-28 23:09:45.0 -0400 +++ current/drivers/scsi/qla2xxx/qla_dbg.c 2005-09

[PATCH] __user annotations (scsi/ch)

2005-09-09 Thread viro
Signed-off-by: Al Viro <[EMAIL PROTECTED]> diff -urN RC13-git7-s2io-u64/drivers/scsi/ch.c RC13-git7-scsi-ch/drivers/scsi/ch.c --- RC13-git7-s2io-u64/drivers/scsi/ch.c2005-08-28 23:09:45.0 -0400 +++ RC13-git7-scsi-ch/drivers/scsi/ch.c 2005-09-07 13:55:19.0

Re: [PATCH] Introduce a method to catch mmap_region (was: Recent kernel "mount" slow)

2012-11-28 Thread Al Viro
On Wed, Nov 28, 2012 at 11:15:12AM -0800, Linus Torvalds wrote: > No, this is crap. > > We don't introduce random hooks like this just because the block layer > has shit-for-brains and cannot be bothered to do things right. > > The fact is, the whole locking in the block layer open routine is > t

Re: [PATCH] char/tpm: Use true and false for bools

2012-11-28 Thread Al Viro
On Thu, Nov 29, 2012 at 01:20:37AM +0100, Peter Huewe wrote: > - itpm = (probe == 0) ? 0 : 1; > + itpm = (probe == 0) ? false : true; Charming. Not that original had been better, but... -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body

Re: [PATCH] Introduce a method to catch mmap_region (was: Recent kernel "mount" slow)

2012-11-28 Thread Al Viro
size, when we have it in the buffer-head that we have to touch > *anyway*). > > Comments? Again, untested. > > And I notice that Al Viro hasn't been cc'd, which is sad, since he's > been involved in much of fs/block_dev.c. > > Al - this is an independent patc

Re: [PATCH] Introduce a method to catch mmap_region (was: Recent kernel "mount" slow)

2012-11-28 Thread Al Viro
On Thu, Nov 29, 2012 at 06:25:19AM +, Al Viro wrote: > Umm... set_blocksize() is calling kill_bdev(), which does > truncate_inode_pages(mapping, 0). What's going to happen to data in > the dirty pages? IO in progress is not the only thing to worry about... Note that

Re: [PATCH] Introduce a method to catch mmap_region (was: Recent kernel "mount" slow)

2012-11-28 Thread Al Viro
On Wed, Nov 28, 2012 at 10:37:27PM -0800, Linus Torvalds wrote: > On Wed, Nov 28, 2012 at 10:30 PM, Al Viro wrote: > > > > Note that sync_blockdev() a few lines prior to that is good only if we > > have no other processes doing write(2) (or dirtying the mmapped pages, >

Re: [PATCH] Revert "__d_unalias() should refuse to move mountpoints"

2012-11-29 Thread Al Viro
On Tue, Sep 25, 2012 at 04:29:58AM -0700, Eric W. Biederman wrote: > Maarten Lankhorst writes: > > >> Could you try the following patch? This should report what directories > >> cannot be renamed because one of them is a mount point and it gives some > >> real insight into what is going on. > >

Re: [PATCH] Revert "__d_unalias() should refuse to move mountpoints"

2012-11-29 Thread Al Viro
On Thu, Nov 29, 2012 at 08:06:12PM +, Al Viro wrote: > On Tue, Sep 25, 2012 at 04:29:58AM -0700, Eric W. Biederman wrote: > > Maarten Lankhorst writes: > > > > >> Could you try the following patch? This should report what directories > > >> cannot be

Re: [PATCH] Revert "__d_unalias() should refuse to move mountpoints"

2012-11-29 Thread Al Viro
On Thu, Nov 29, 2012 at 08:53:34PM +, Al Viro wrote: > On Thu, Nov 29, 2012 at 08:06:12PM +, Al Viro wrote: > > On Tue, Sep 25, 2012 at 04:29:58AM -0700, Eric W. Biederman wrote: > > > Maarten Lankhorst writes: > > > > > > >> Could you try the

Re: Regression with initramfs and nfsroot (appears to be in the dcache)

2012-11-29 Thread Al Viro
On Thu, Nov 29, 2012 at 11:16:59AM -0800, Patrick McLean wrote: > With 3.6-rc1 and up, when using a (dracut) initramfs with a read-only > nfs root, all accesses to /proc. /sys and /dev return EBUSY. See "[PATCH] Revert "__d_unalias() should refuse to move mountpoints" thread. If you have a conven

Re: [PATCH] Revert "__d_unalias() should refuse to move mountpoints"

2012-11-29 Thread Al Viro
On Thu, Nov 29, 2012 at 09:30:34PM +, Al Viro wrote: > + if (d_invalidate(dentry) != 0) { > + WARN_ON(1); > + goto out; > + } > dput(dentry); >

Re: Regression with initramfs and nfsroot (appears to be in the dcache)

2012-11-29 Thread Al Viro
On Thu, Nov 29, 2012 at 02:06:22PM -0800, Patrick McLean wrote: > I have a trivial reproducer and am happy to help debug in any way that > I can. That patch seems to fix the problem, and produces these > warnings in dmesg: > > [3.306483] dracut: Switching root > [4.324378] systemd-udevd[5

Re: Regression with initramfs and nfsroot (appears to be in the dcache)

2012-11-29 Thread Al Viro
On Thu, Nov 29, 2012 at 02:53:13PM -0800, Patrick McLean wrote: > On 29/11/12 02:21 PM, Al Viro wrote: > > On Thu, Nov 29, 2012 at 02:06:22PM -0800, Patrick McLean wrote: > > > >> I have a trivial reproducer and am happy to help debug in any way that > >> I

Re: Regression with initramfs and nfsroot (appears to be in the dcache)

2012-11-29 Thread Al Viro
On Thu, Nov 29, 2012 at 04:19:51PM -0800, Patrick McLean wrote: > >> [8.821584] FH(0)] > >> [8.821586] FH(36)[01 00 07 01 89 00 00 00 00 00 00 00 e1 21 fe c4 9e > >> 38 44 dc bf 1b d5 95 d6 76 d6 d9 a7 3c 1b 80 33 38 e3 62] > >> [8.821601] filename: proc > > > > *whoa* > > > > So we

Re: Regression with initramfs and nfsroot (appears to be in the dcache)

2012-11-29 Thread Al Viro
On Thu, Nov 29, 2012 at 04:57:19PM -0800, Patrick McLean wrote: > > Interesting... Server-side that should've been produced by > > encode_entryplus_baggage(), which looks like failing compose_entry_fh()... > > which has explicit > > if (d_mountpoint(dchild)) > > goto out; >

Re: Regression with initramfs and nfsroot (appears to be in the dcache)

2012-11-29 Thread Al Viro
On Thu, Nov 29, 2012 at 05:54:02PM -0800, Patrick McLean wrote: > > Very interesting. Do you have anything mounted on the corresponding > > directories on server? The picture looks like you are getting empty > > fhandles in readdir+ respons for exactly the same directories that happen > > to

Re: Bisected regression: iterate_fd() selinux change affects flash plugin

2012-11-29 Thread Al Viro
On Fri, Nov 16, 2012 at 02:58:46PM -0500, Eric Paris wrote: > On Mon, Nov 12, 2012 at 11:57 AM, Pavel Roskin wrote: > > Quoting Eric Paris : > > > >> OMG this +1 -1 stuff is nuts... > > Ping, Al. > > int iterate_fd(struct files_struct *files, unsigned n, > [snip] > while (!res && n < fdt

Re: Bisected regression: iterate_fd() selinux change affects flash plugin

2012-11-29 Thread Al Viro
On Fri, Nov 30, 2012 at 03:40:34AM +, Al Viro wrote: > The bug is real, but Pavel's patch is all wrong. The problem is in the > argument; we should pass descriptor number, not descriptor + 1. And fixing > that (in iterator_fd() itself) makes all callbacks work as they oug

Re: [RESEND PATCH] fs/super.c set_anon_super calling optimization

2012-11-29 Thread Al Viro
On Fri, Oct 26, 2012 at 11:14:41AM -0200, Carlos Maiolino wrote: > Hi, > > On Thu, Oct 25, 2012 at 05:08:19PM +0530, Abhijit Pawar wrote: > > Hi, > > set_anon_super is called by many filesystems. Some call directly and > > some call through the wrapper. Many of them in the wrapper's call to > > th

Re: Regression with initramfs and nfsroot (appears to be in the dcache)

2012-11-29 Thread Al Viro
On Thu, Nov 29, 2012 at 06:33:53PM -0800, Patrick McLean wrote: > Excellent, thanks. Is there any chance this will make it to 3.7? Also we > might want to cc stable@ on this as well since it is a regression in 3.6. Definitely. I've dropped that into vfs.git#for-linus and vfs.git#for-next and to

Re: [RESEND PATCH] fs/super.c set_anon_super calling optimization

2012-11-29 Thread Al Viro
On Fri, Nov 30, 2012 at 11:10:02AM +0530, Abhijit Pawar wrote: > > Because we want it to be a valid sget() callback. I doubt that this > > optimization is worth doing, though - might even micro-pessimize the things > > on architectures where all arguments are passed in registers. > > > Al, >

Re: [PATCH 2/9] vfs: export do_splice_direct() to modules

2013-03-18 Thread Al Viro
On Mon, Mar 18, 2013 at 04:39:36PM +0100, Jan Kara wrote: > IMO the deadlock is real. In freeze_super() we wait for all writers to > the filesystem to finish while blocking beginning of any further writes. So > we have a deadlock scenario like: > > THREAD1 THREAD2

Re: [PATCH 2/9] vfs: export do_splice_direct() to modules

2013-03-18 Thread Al Viro
On Mon, Mar 18, 2013 at 09:53:34PM +, Al Viro wrote: > On Mon, Mar 18, 2013 at 04:39:36PM +0100, Jan Kara wrote: > > IMO the deadlock is real. In freeze_super() we wait for all writers to > > the filesystem to finish while blocking beginning of any further writes. So > &g

Re: [PATCH 2/9] vfs: export do_splice_direct() to modules

2013-03-18 Thread Al Viro
On Mon, Mar 18, 2013 at 11:01:03PM +, Al Viro wrote: > I'm looking at the existing callers and I really wonder if we ought to > push sb_start_write() from ->splice_write()/->aio_write()/etc. into the > callers. > > Something like file_start_write()/file_end_wr

Re: [PATCH] Fix breakage in MIPS siginfo handling

2013-03-19 Thread Al Viro
On Tue, Mar 19, 2013 at 03:00:53PM +, David Howells wrote: > MIPS's siginfo handling has been broken since this commit: > > commit 574c4866e33d648520a8bd5bf6f573ea6e554e88 > Author: Al Viro > Date: Sun Nov 25 22:24:19 2012 -0500 > consoli

Re: [PATCH 2/9] vfs: export do_splice_direct() to modules

2013-03-19 Thread Al Viro
On Tue, Mar 19, 2013 at 11:29:41AM +0100, Miklos Szeredi wrote: > Copy up is a once-in-a-lifetime event for an object. Optimizing it is > way down in the list of things to do. I'd drop splice in a jiffy if > it's in the way. What makes you think that write is any better? Same deadlock there -

Re: [PATCH 2/9] vfs: export do_splice_direct() to modules

2013-03-19 Thread Al Viro
On Tue, Mar 19, 2013 at 07:32:42PM +0100, Miklos Szeredi wrote: > > * victim is negative => create a whiteout > > * victim is a directory, parent opaque => rmdir > > * victim is a non-directory, parent opaque => unlink > > * victim is positive, parent _not_ opaque =

Re: [PATCH 2/9] vfs: export do_splice_direct() to modules

2013-03-19 Thread Al Viro
On Tue, Mar 19, 2013 at 09:25:43PM +0100, Jan Kara wrote: > > BTW, having sb_start_write() buried in individual ->splice_write() is > > asking for trouble; could you describe the rules for that? E.g. where > > does it nest wrt filesystem-private locks? XFS iolock, for example... > Generally, th

Re: [PATCH 2/9] vfs: export do_splice_direct() to modules

2013-03-19 Thread Al Viro
On Tue, Mar 19, 2013 at 09:38:31PM +, Al Viro wrote: > On Tue, Mar 19, 2013 at 09:25:43PM +0100, Jan Kara wrote: > > > BTW, having sb_start_write() buried in individual ->splice_write() is > > > asking for trouble; could you describe the rules for that? E.g. wher

Re: [PATCH 2/9] vfs: export do_splice_direct() to modules

2013-03-19 Thread Al Viro
On Tue, Mar 19, 2013 at 10:10:32PM +, Al Viro wrote: > OK, it's going to be an interesting series - aforementioned tentative patch > was badly incomplete ;-/ The interesting question is how far do we want to lift that. ->aio_write() part is trivial - see vfs.git#experimenta

Re: [PATCH] Staging: comedi: serial2002: fixed consistent spacing issue

2013-03-20 Thread Al Viro
On Wed, Mar 20, 2013 at 03:47:53PM +0300, Dan Carpenter wrote: > The original code here needs to broken up into functions so it isn't > squashed up against the 80 character limit. I'd say what needs to be done to the original code... Observation 1: if (foo) { A /* two lines */ } else {

Re: [BUG] staging: android: ashmem: Deadlock during ashmem_mmap and ashmem_read

2013-03-20 Thread Al Viro
On Wed, Mar 20, 2013 at 09:08:03PM +0530, Shankar Brahadeeswaran wrote: > Hi Greg, Dan, > > Few days back I posted a patch to fix a dead lock issue in the ashmem > driver that got merged in staging-next branch > https://lkml.org/lkml/2013/2/20/429 > > I'm seeing that there exists another path in

Re: [PATCH] CodingStyle: Add tab indentation avoidance tips

2013-03-20 Thread Al Viro
On Wed, Mar 20, 2013 at 09:26:54AM -0700, Joe Perches wrote: > Add Al's comments in from https://lkml.org/lkml/2013/3/20/345 > +Tip 7: > +Code flow is down, not across... That one is a lovely improvement on what I actually said. google "down, not across" for context... -- To unsubscribe from thi

Re: [PATCH 00/13] overlay filesystem: request for inclusion (v16)

2013-03-20 Thread Al Viro
On Wed, Mar 20, 2013 at 03:41:08PM -0400, George Spelvin wrote: > Sorry for being so very late to the party, but rather than messing > with xattrs, why not just have a specific file (say, default /.whiteout, > but selectable via a mount option) and links to it are counted as > whiteout entries? >

Re: [PATCH 2/9] vfs: export do_splice_direct() to modules

2013-03-20 Thread Al Viro
On Wed, Mar 20, 2013 at 08:52:22PM +0100, Jan Kara wrote: > > do_bio_filebacked(), with some ugliness between that and callsite. Note, > > BTW, that we have a pair of possible vfs_fsync() calls in there; how do > > those > > interact with freeze? > Freezing code takes care that all dirty data i

  1   2   3   4   5   6   7   8   9   10   >