commit 5a7b46b369419493bab4de67b1526e9f76b22a7f tree c6c25e52dfd063db53db93d756da77ab67550ec6 parent 52824b6b5fa0533e2b2adc9df396d0e9ff6fb02a author OGAWA Hirofumi Thu, 20 Apr 2006 06:41:39 +0900 committer Linus Torvalds Wed, 19 Apr 2006 16:27:18 -0700 [PATCH] Add more prevent_tail_call() Those also break userland regs like following. 00000000 : 0: 0f b7 44 24 0c movzwl 0xc(%esp),%eax 5: 83 ca ff or $0xffffffff,%edx 8: 0f b7 4c 24 08 movzwl 0x8(%esp),%ecx d: 66 83 f8 ff cmp $0xffffffff,%ax 11: 0f 44 c2 cmove %edx,%eax 14: 66 83 f9 ff cmp $0xffffffff,%cx 18: 0f 45 d1 cmovne %ecx,%edx 1b: 89 44 24 0c mov %eax,0xc(%esp) 1f: 89 54 24 08 mov %edx,0x8(%esp) 23: e9 fc ff ff ff jmp 24 where the tailcall at the end overwrites the incoming stack-frame. Signed-off-by: OGAWA Hirofumi [ I would _really_ like to have a way to tell gcc about calling conventions. The "prevent_tail_call()" macro is pretty ugly ] Signed-off-by: Linus Torvalds commit 52824b6b5fa0533e2b2adc9df396d0e9ff6fb02a tree 86b588fcd75715ed578f92c0abb3149d6cf617b5 parent 949b211235cf301790ef4fb903af65d71be29b2a parent 415dcd95b25b59631656f559570d1a973bf691a9 author Linus Torvalds Wed, 19 Apr 2006 11:52:30 -0700 committer Linus Torvalds Wed, 19 Apr 2006 11:52:30 -0700 Merge branch 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/roland/infiniband * 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/roland/infiniband: IB/mthca: make a function static IB/ipath: Fix whitespace IB/ipath: Make more names static IB/mad: Fix RMPP version check during agent registration IB/srp: Remove request from list when SCSI abort succeeds commit 415dcd95b25b59631656f559570d1a973bf691a9 tree 1019e737207ecf1bd69dbcbef1e6e655dda83d2d parent 5494c22ba293a37534591d793f73e445a66196b5 author Adrian Bunk Wed, 19 Apr 2006 00:15:35 +0200 committer Roland Dreier Wed, 19 Apr 2006 11:40:12 -0700 IB/mthca: make a function static This patch makes the needlessly global mthca_update_rate() static. Signed-off-by: Adrian Bunk Signed-off-by: Roland Dreier commit 5494c22ba293a37534591d793f73e445a66196b5 tree 6e3d5d25eed0ac80a32e85a834012ea6dde6d3d3 parent ac2ae4c9770de9450a8e881082a54bbb6f09534e author Roland Dreier Wed, 19 Apr 2006 11:40:12 -0700 committer Roland Dreier Wed, 19 Apr 2006 11:40:12 -0700 IB/ipath: Fix whitespace Signed-off-by: Roland Dreier commit ac2ae4c9770de9450a8e881082a54bbb6f09534e tree af8c250aa16dd78b1dc6accf29dbc4fdf2af0900 parent 64cb9c6aff273b1cd449e773c937378d68233f8b author Roland Dreier Wed, 19 Apr 2006 11:40:12 -0700 committer Roland Dreier Wed, 19 Apr 2006 11:40:12 -0700 IB/ipath: Make more names static Make symbols that are only used in a single source file static. Signed-off-by: Roland Dreier commit 64cb9c6aff273b1cd449e773c937378d68233f8b tree a39978e7cbc58de3edda228c95ca328ced510435 parent f80887d0b9e1af481dc4a30fc145dfed24ddfd59 author Hal Rosenstock Wed, 12 Apr 2006 21:29:10 -0400 committer Roland Dreier Wed, 19 Apr 2006 11:40:11 -0700 IB/mad: Fix RMPP version check during agent registration Only check that RMPP version is not specified when MAD class does not support RMPP. Just because a class is allowed to use RMPP doesn't mean that rmpp_version needs to be set for the MAD agent to register. Checking this was a recent change which was too pedantic. Signed-off-by: Hal Rosenstock Signed-off-by: Roland Dreier commit f80887d0b9e1af481dc4a30fc145dfed24ddfd59 tree a928a8469193981b7df4df4db8c16baa44da4fd8 parent 0efd9323f32c137b5cf48bc6582cd08556e7cdfc author Roland Dreier Wed, 19 Apr 2006 11:40:10 -0700 committer Roland Dreier Wed, 19 Apr 2006 11:40:10 -0700 IB/srp: Remove request from list when SCSI abort succeeds If a SCSI abort succeeds, then the aborted request should to be removed from the list of pending requests. This fixes list corruption after an abort occurs. Signed-off-by: Roland Dreier commit 949b211235cf301790ef4fb903af65d71be29b2a tree 083f7e30e4d48d3c812cef1c8b585522df086c3c parent 0efd9323f32c137b5cf48bc6582cd08556e7cdfc parent a5f9145bc9c340bda743ad51e09bdea60fa3ddfa author Linus Torvalds Wed, 19 Apr 2006 10:46:59 -0700 committer Linus Torvalds Wed, 19 Apr 2006 10:46:59 -0700 Merge git://git.linux-nfs.org/pub/linux/nfs-2.6 * git://git.linux-nfs.org/pub/linux/nfs-2.6: SUNRPC: Dead code in net/sunrpc/auth_gss/auth_gss.c NFS: remove needless check in nfs_opendir() NFS: nfs_show_stats; for_each_possible_cpu(), not NR_CPUS NFS: make 2 functions static NFS,SUNRPC: Fix compiler warnings if CONFIG_PROC_FS & CONFIG_SYSCTL are unset NFS: fix PROC_FS=n compile error VFS: Fix another open intent Oops RPCSEC_GSS: fix leak in krb5 code caused by superfluous kmalloc commit a5f9145bc9c340bda743ad51e09bdea60fa3ddfa tree 615c72a264de7a25ac51ce0cbd4d7b4c24c9a90b parent 7451c4f0ee53e36fd74168af8df75b28fd04a2aa author Eric Sesterhenn Wed, 19 Apr 2006 13:06:49 -0400 committer Trond Myklebust Wed, 19 Apr 2006 13:06:49 -0400 SUNRPC: Dead code in net/sunrpc/auth_gss/auth_gss.c Hi, the coverity checker spotted that cred is always NULL when we jump to out_err ( there is just one case, when we fail to allocate the memory for cred ) This is Coverity ID #79 Signed-off-by: Eric Sesterhenn Signed-off-by: Trond Myklebust commit 7451c4f0ee53e36fd74168af8df75b28fd04a2aa tree d981de4189c559d8e0a9f291c9919dde396c9a04 parent b9d9506d944865876e67281a4e4269d823ce5381 author Carsten Otte Wed, 19 Apr 2006 13:06:37 -0400 committer Trond Myklebust Wed, 19 Apr 2006 13:06:37 -0400 NFS: remove needless check in nfs_opendir() Local variable res was initialized to 0 - no check needed here. Signed-off-by: Carsten Otte Cc: Trond Myklebust Signed-off-by: Andrew Morton Signed-off-by: Trond Myklebust commit b9d9506d944865876e67281a4e4269d823ce5381 tree 344e12dab9854855fad1388e2aaecbf33eb566c1 parent ec535ce154f2eaad3d97f2f20a76a6d8bdac33e5 author John Hawkes Wed, 19 Apr 2006 13:06:20 -0400 committer Trond Myklebust Wed, 19 Apr 2006 13:06:20 -0400 NFS: nfs_show_stats; for_each_possible_cpu(), not NR_CPUS Convert a for-loop that explicitly references "NR_CPUS" into the potentially more efficient for_each_possible_cpu() construct. Signed-off-by: John Hawkes Signed-off-by: Andrew Morton Signed-off-by: Trond Myklebust commit ec535ce154f2eaad3d97f2f20a76a6d8bdac33e5 tree e7a6b3c77051057e963c276b4f9f66d8a0d2c51a parent e99170ff3b799a9fd43d538932a9231fac1de9d4 author Adrian Bunk Tue, 18 Apr 2006 13:21:50 -0400 committer Trond Myklebust Wed, 19 Apr 2006 12:43:47 -0400 NFS: make 2 functions static Signed-off-by: Adrian Bunk Cc: Trond Myklebust Signed-off-by: Andrew Morton Signed-off-by: Trond Myklebust commit e99170ff3b799a9fd43d538932a9231fac1de9d4 tree b5926023a010c4f8b3993ff6d06cfd51a9462613 parent 7866babad542bb5e1dc95deb5800b577abef58dd author Trond Myklebust Tue, 18 Apr 2006 13:21:42 -0400 committer Trond Myklebust Wed, 19 Apr 2006 12:43:47 -0400 NFS,SUNRPC: Fix compiler warnings if CONFIG_PROC_FS & CONFIG_SYSCTL are unset Signed-off-by: Trond Myklebust commit 7866babad542bb5e1dc95deb5800b577abef58dd tree 01d8cca76bfcc7b60262adbbbe871b16c32064d5 parent 95cf959b245832ad49bb333bf88f9805244b225d author Adrian Bunk Tue, 18 Apr 2006 13:14:13 -0400 committer Trond Myklebust Wed, 19 Apr 2006 12:43:46 -0400 NFS: fix PROC_FS=n compile error fs/built-in.o: In function `nfs_show_stats':inode.c:(.text+0x15481a): undefined reference to `rpc_print_iostats' net/built-in.o: In function `rpc_destroy_client': undefined reference to `rpc_free_iostats' net/built-in.o: In function `rpc_clone_client': undefined reference to `rpc_alloc_iostats' net/built-in.o: In function `rpc_new_client': undefined reference to `rpc_alloc_iostats' net/built-in.o: In function `xprt_release': undefined reference to `rpc_count_iostats' make: *** [.tmp_vmlinux1] Error 1 Signed-off-by: Adrian Bunk Cc: Trond Myklebust Signed-off-by: Andrew Morton Signed-off-by: Trond Myklebust commit 95cf959b245832ad49bb333bf88f9805244b225d tree 956205e6be9f70d39124faa464111c2a821f75e4 parent d4a30e7e66c004da26dfe5229af7c10fe9853a7a author Trond Myklebust Tue, 18 Apr 2006 13:14:06 -0400 committer Trond Myklebust Wed, 19 Apr 2006 12:43:46 -0400 VFS: Fix another open intent Oops If the call to nfs_intent_set_file() fails to open a file in nfs4_proc_create(), we should return an error. Signed-off-by: Trond Myklebust commit d4a30e7e66c004da26dfe5229af7c10fe9853a7a tree 87f23ec83c3069a5562e73f883d1367d2f37ba51 parent 8bbde0e6d52265158ee9625f383500c1a7d09ba9 author J. Bruce Fields Tue, 18 Apr 2006 13:14:02 -0400 committer Trond Myklebust Wed, 19 Apr 2006 12:43:46 -0400 RPCSEC_GSS: fix leak in krb5 code caused by superfluous kmalloc I was sloppy when generating a previous patch; I modified the callers of krb5_make_checksum() to allocate memory for the buffer where the result is returned, then forgot to modify krb5_make_checksum to stop allocating that memory itself. The result is a per-packet memory leak. This fixes the problem by removing the now-superfluous kmalloc(). Signed-off-by: J. Bruce Fields Signed-off-by: Trond Myklebust commit 0efd9323f32c137b5cf48bc6582cd08556e7cdfc tree 4e0fe5e78677c2ae56f6bd084b327e707b07c58b parent 6a2a88668e90cd2459d0493e3e3ff17c3557febc parent 9e0267c26e237f84f608a68e579bf4eb89dad819 author Linus Torvalds Wed, 19 Apr 2006 09:25:52 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:25:52 -0700 Merge branch 'splice' of git://brick.kernel.dk/data/git/linux-2.6-block * 'splice' of git://brick.kernel.dk/data/git/linux-2.6-block: [PATCH] splice: fixup writeout path after ->map changes [PATCH] splice: offset fixes [PATCH] tee: link_pipe() must be careful when dropping one of the pipe locks [PATCH] splice: cleanup the SPLICE_F_NONBLOCK handling [PATCH] splice: close i_size truncate races on read commit 6a2a88668e90cd2459d0493e3e3ff17c3557febc tree f2a2b2426312541731082b8c6915e80727337a27 parent a61bdaad6c696e850d8fa412f1f201cbca51ad30 author Antonino A. Daplas Tue, 18 Apr 2006 22:22:12 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:54 -0700 [PATCH] fbdev: Fix return error of fb_write Fix return code of fb_write(): If at least 1 byte was transferred to the device, return number of bytes, otherwise: - return -EFBIG - if file offset is past the maximum allowable offset or size is greater than framebuffer length - return -ENOSPC - if size is greater than framebuffer length - offset Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a61bdaad6c696e850d8fa412f1f201cbca51ad30 tree 724ff12471d4aa912a1164525a1631e3401c2038 parent 246846fc18ba43c4f31d6e5b208fe6b045d9f7b1 author Randy Dunlap Tue, 18 Apr 2006 22:22:11 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:54 -0700 [PATCH] savagefb: fix section mismatch warnings Fix modpost section mismatch warnings in savagefb driver: WARNING: drivers/video/savage/savagefb.o - Section mismatch: reference to .init.text: from .exit.text after 'savagefb_remove' (at offset 0x66) WARNING: drivers/video/savage/savagefb.o - Section mismatch: reference to .init.text: from .exit.text after 'savagefb_remove' (at offset 0x6e) WARNING: drivers/video/savage/savagefb.o - Section mismatch: reference to .init.text: from .text.savagefb_resume after 'savagefb_resume' (at offset 0x70) Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 246846fc18ba43c4f31d6e5b208fe6b045d9f7b1 tree 295831723ccfc6854659051d24b6c9fb17f96ee3 parent 3e42f0b19e94b3e84043088b5367dd0f3c487921 author Randy Dunlap Tue, 18 Apr 2006 22:22:10 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:54 -0700 [PATCH] radeonfb section mismatches Marking radeon_pci_register() as __devinit clears up all section mismatch warnings that are caused by radeon_pci_register() calling various __devinit function. Is there some reason not to do this? WARNING: drivers/video/aty/radeonfb.o - Section mismatch: reference to .init.text: from .text.radeonfb_pci_register after 'radeonfb_pci_register' (at offset 0x628) WARNING: drivers/video/aty/radeonfb.o - Section mismatch: reference to .init.text: from .text.radeonfb_pci_register after 'radeonfb_pci_register' (at offset 0x6b5) WARNING: drivers/video/aty/radeonfb.o - Section mismatch: reference to .init.text: from .text.radeonfb_pci_register after 'radeonfb_pci_register' (at offset 0x6bd) WARNING: drivers/video/aty/radeonfb.o - Section mismatch: reference to .init.text:radeon_probe_screens from .text.radeonfb_pci_register after 'radeonfb_pci_register' (at offset 0x7d6) WARNING: drivers/video/aty/radeonfb.o - Section mismatch: reference to .init.text:radeon_check_modes from .text.radeonfb_pci_register after 'radeonfb_pci_register' (at offset 0x7e5) Signed-off-by: Randy Dunlap Cc: "Antonino A. Daplas" Acked-by: Benjamin Herrenschmidt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3e42f0b19e94b3e84043088b5367dd0f3c487921 tree 8aabc1742faf129df17fb7e84e6abc998733884b parent 0d8a95efd878920e7f791d5bcfb9b70f107aadda author Jean Delvare Tue, 18 Apr 2006 22:22:09 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:54 -0700 [PATCH] fb: Fix section mismatch in savagefb Fix the following section mismatch: WARNING: drivers/video/savage/savagefb.o - Section mismatch: reference to .init.data: from .text.savagefb_probe after 'savagefb_probe' (at offset 0x5e2) Signed-off-by: Jean Delvare Cc: "Antonino A. Daplas" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0d8a95efd878920e7f791d5bcfb9b70f107aadda tree d5980df26e0892c5bbe9398ab388863086748793 parent d3a7b202995421631f486313aacf9ab2ad48b2c8 author KAI.HSU Tue, 18 Apr 2006 22:22:08 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:53 -0700 [PATCH] alim15x3: ULI M-1573 south Bridge support From http://bugzilla.kernel.org/show_bug.cgi?id=6358 The alim15x3.c havn't been update for 3 years. Recently when we use this "ULI M1573" south bridge chip found that can't mount CDROM(VCD) smoothly, must waiting for a long time. After I check the "ULI M1573" south bridge datasheet, I found the reason. The reason is the "ULI M1573" version in the Linux is "0xC7" not "0xC4" anymore So I was modified the source than it was successed. Cc: Bartlomiej Zolnierkiewicz Acked-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d3a7b202995421631f486313aacf9ab2ad48b2c8 tree 859f68dcc71d986ba2a9c92dacafab9eed9fae58 parent 6e89280184e4990f5ea80d2504af89b6099523c4 author Adrian Bunk Tue, 18 Apr 2006 22:22:07 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:53 -0700 [PATCH] remove the obsolete IDEPCI_FLAG_FORCE_PDC Noted by Sergei Shtylylov Signed-off-by: Adrian Bunk Acked-by: Bartlomiej Zolnierkiewicz Cc: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6e89280184e4990f5ea80d2504af89b6099523c4 tree 4424622d6a4d8de1ff6492ee23f03cf42d685098 parent 07fab8da808d0702778da50e5b435e6ba471c903 author Anatoli Antonovitch Tue, 18 Apr 2006 22:22:05 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:53 -0700 [PATCH] ide: ATI SB600 IDE support Add support for the IDE device on ATI SB600 Signed-off-by: Felix Kuehling Acked-by: Bartlomiej Zolnierkiewicz Cc: Alan Cox Acked-by: Jeff Garzik Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 07fab8da808d0702778da50e5b435e6ba471c903 tree 59ee487f2bb46e7200ec0888baae34a611530497 parent 3ca269d8b4d020af018e9e7e82b22f965a0e1bd9 author Prasanna S Panchamukhi Tue, 18 Apr 2006 22:22:03 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:53 -0700 [PATCH] Switch Kprobes inline functions to __kprobes for sparc64 Andrew Morton pointed out that compiler might not inline the functions marked for inline in kprobes. There-by allowing the insertion of probes on these kprobes routines, which might cause recursion. This patch removes all such inline and adds them to kprobes section there by disallowing probes on all such routines. Some of the routines can even still be inlined, since these routines gets executed after the kprobes had done necessay setup for reentrancy. Signed-off-by: Prasanna S Panchamukhi Acked-by: David S. Miller Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3ca269d8b4d020af018e9e7e82b22f965a0e1bd9 tree 8de614ac12a4ec0c2fb6c9392d8efaff6e2d73c9 parent 46dbe2f4ef9954e3ed2155995b76e32f31fef6bb author Prasanna S Panchamukhi Tue, 18 Apr 2006 22:22:02 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:53 -0700 [PATCH] Switch Kprobes inline functions to __kprobes for ia64 Andrew Morton pointed out that compiler might not inline the functions marked for inline in kprobes. There-by allowing the insertion of probes on these kprobes routines, which might cause recursion. This patch removes all such inline and adds them to kprobes section there by disallowing probes on all such routines. Some of the routines can even still be inlined, since these routines gets executed after the kprobes had done necessay setup for reentrancy. Signed-off-by: Prasanna S Panchamukhi Cc: "Luck, Tony" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 46dbe2f4ef9954e3ed2155995b76e32f31fef6bb tree 2d2addfaeda42fe7ef54cf5be5230b7237b74d8b parent 3b60211c1618063cb296439ebaef2041a725ba20 author Prasanna S Panchamukhi Tue, 18 Apr 2006 22:22:01 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:53 -0700 [PATCH] Switch Kprobes inline functions to __kprobes for ppc64 Andrew Morton pointed out that compiler might not inline the functions marked for inline in kprobes. There-by allowing the insertion of probes on these kprobes routines, which might cause recursion. This patch removes all such inline and adds them to kprobes section there by disallowing probes on all such routines. Some of the routines can even still be inlined, since these routines gets executed after the kprobes had done necessay setup for reentrancy. Signed-off-by: Prasanna S Panchamukhi Cc: Paul Mackerras Cc: Benjamin Herrenschmidt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3b60211c1618063cb296439ebaef2041a725ba20 tree 5de7fd33aeac8397df4e28aea50eb2bb34829de9 parent 34c37e18696ff6a773f0403348342a9fe49df4af author Prasanna S Panchamukhi Tue, 18 Apr 2006 22:22:00 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:53 -0700 [PATCH] Switch Kprobes inline functions to __kprobes for x86_64 Andrew Morton pointed out that compiler might not inline the functions marked for inline in kprobes. There-by allowing the insertion of probes on these kprobes routines, which might cause recursion. This patch removes all such inline and adds them to kprobes section there by disallowing probes on all such routines. Some of the routines can even still be inlined, since these routines gets executed after the kprobes had done necessay setup for reentrancy. Signed-off-by: Prasanna S Panchamukhi Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 34c37e18696ff6a773f0403348342a9fe49df4af tree e9acba5ee08e10085f39d161de4ca5b171bcbf59 parent c640be26f7f8b7a826529baa72fad76bd4f6f5a2 author Prasanna S Panchamukhi Tue, 18 Apr 2006 22:21:59 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:52 -0700 [PATCH] Switch Kprobes inline functions to __kprobes for i386 Andrew Morton pointed out that compiler might not inline the functions marked for inline in kprobes. There-by allowing the insertion of probes on these kprobes routines, which might cause recursion. This patch removes all such inline and adds them to kprobes section there by disallowing probes on all such routines. Some of the routines can even still be inlined, since these routines gets executed after the kprobes had done necessay setup for reentrancy. Signed-off-by: Prasanna S Panchamukhi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c640be26f7f8b7a826529baa72fad76bd4f6f5a2 tree 69b071712c67da99d1bb3c54c29d4ba175191245 parent 96766a3caae789cdfd7fc6a50bad4e0759d869b0 author Jan Engelhardt Tue, 18 Apr 2006 22:21:58 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:52 -0700 [PATCH] pnp: fix two messages in manager.c The wording of two messages in drivers/pnp/manager.c is incorrect. Fix that. Signed-off-by: Jan Engelhardt Acked-by: Pavel Machek Signed-off-by: Rafael J. Wysocki Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 96766a3caae789cdfd7fc6a50bad4e0759d869b0 tree d9543e13e8e4a15dba4ad874534cac2b20b7d98c parent 3fb0cb5d0f8b915a75677e8e8e4a4a4e481f03f7 author Randy.Dunlap Tue, 18 Apr 2006 22:21:57 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:52 -0700 [PATCH] parport_pc: fix section mismatch warnings (v2) From: Randy Dunlap Fix all modpost section mismatch warnings in parport_pc: WARNING: drivers/parport/parport_pc.o - Section mismatch: reference to .init.text: from .text.parport_pc_probe_port after 'parport_pc_probe_port' (at offset 0x230) WARNING: drivers/parport/parport_pc.o - Section mismatch: reference to .init.text: from .text.parport_pc_probe_port after 'parport_pc_probe_port' (at offset 0x283) WARNING: drivers/parport/parport_pc.o - Section mismatch: reference to .init.text: from .text.parport_pc_probe_port after 'parport_pc_probe_port' (at offset 0x3e6) WARNING: drivers/parport/parport_pc.o - Section mismatch: reference to .init.text: from .text.parport_pc_probe_port after 'parport_pc_probe_port' (at offset 0x400) WARNING: drivers/parport/parport_pc.o - Section mismatch: reference to .init.text: from .text.parport_pc_probe_port after 'parport_pc_probe_port' (at offset 0x463) WARNING: drivers/parport/parport_pc.o - Section mismatch: reference to .init.text: from .text.parport_pc_probe_port after 'parport_pc_probe_port' (at offset 0x488) WARNING: drivers/parport/parport_pc.o - Section mismatch: reference to .init.data:superios from .text.parport_pc_probe_port after 'parport_pc_probe_port' (at offset 0x54c) WARNING: drivers/parport/parport_pc.o - Section mismatch: reference to .init.data: from .text.parport_pc_probe_port after 'parport_pc_probe_port' (at offset 0x56a) WARNING: drivers/parport/parport_pc.o - Section mismatch: reference to .init.data: from .text.parport_pc_pci_probe after 'parport_pc_pci_probe' (at offset 0x67) WARNING: drivers/parport/parport_pc.o - Section mismatch: reference to .init.data: from .text.parport_pc_pci_probe after 'parport_pc_pci_probe' (at offset 0x9f) WARNING: drivers/parport/parport_pc.o - Section mismatch: reference to .init.data: from .text.parport_pc_pci_probe after 'parport_pc_pci_probe' (at offset 0xa7) WARNING: drivers/parport/parport_pc.o - Section mismatch: reference to .init.data:cards from .text.parport_pc_pci_probe after 'parport_pc_pci_probe' (at offset 0x132) WARNING: drivers/parport/parport_pc.o - Section mismatch: reference to .init.data: from .text.parport_pc_pci_probe after 'parport_pc_pci_probe' (at offset 0x142) Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3fb0cb5d0f8b915a75677e8e8e4a4a4e481f03f7 tree 8b1306cc288c0d700ff23a88b26c8d7656fc8d6c parent aa1e816fc92215f94bdfd90107baae8fdc2440d1 author Heikki Orsila Tue, 18 Apr 2006 22:21:55 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:52 -0700 [PATCH] Open IPMI BT overflow I was looking into random driver code and found a suspicious looking memcpy() in drivers/char/ipmi/ipmi_bt_sm.c on 2.6.17-rc1: if ((size < 2) || (size > IPMI_MAX_MSG_LENGTH)) return -1; ... memcpy(bt->write_data + 3, data + 1, size - 1); where sizeof bt->write_data is IPMI_MAX_MSG_LENGTH. It looks like the memcpy would overflow by 2 bytes if size == IPMI_MAX_MSG_LENGTH. A patch attached to limit size to (IPMI_MAX_LENGTH - 2). Cc: Corey Minyard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit aa1e816fc92215f94bdfd90107baae8fdc2440d1 tree 1d520ff39b65a7d3a5f68008eb44ea15c63e0d96 parent 9dfb563b07b1aafcd7d40528ebfa7f9ce28f0556 author Jesper Juhl Tue, 18 Apr 2006 22:21:54 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:52 -0700 [PATCH] Fix potential NULL pointer deref in gen_init_cpio Fix potential NULL pointer deref in gen_init_cpio.c spotted by coverity checker. This fixes coverity bug #86 Without this patch we risk dereferencing a NULL `type' in the "if ('\n' == *type) {" line. Signed-off-by: Jesper Juhl Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9dfb563b07b1aafcd7d40528ebfa7f9ce28f0556 tree 1eebd3f2a8be3a9d42ffed3d976fee254a349b23 parent 7420884c038f326bdac3a8ded856033523e7684e author Randy Dunlap Tue, 18 Apr 2006 22:21:53 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:52 -0700 [PATCH] config: update usage/help info Replace outdated help message with a reference to README. Update README for make *config variants and environment variable info. Signed-off-by: Randy Dunlap Acked-by: Sam Ravnborg Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 7420884c038f326bdac3a8ded856033523e7684e tree 32d17098216a91191482942d0d5ac279bb55163e parent 5e1222717932ff7d447af6da03c10a81fb60af7d author Randy Dunlap Tue, 18 Apr 2006 22:21:52 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:52 -0700 [PATCH] IPMI: fix devinit placement gcc complains about __devinit in the wrong location: drivers/char/ipmi/ipmi_si_intf.c:2205: warning: '__section__' attribute does not apply to types Signed-off-by: Randy Dunlap Acked-by: Corey Minyard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5e1222717932ff7d447af6da03c10a81fb60af7d tree b4b3488b24b668be2ecb9d1eb15383e58493ab31 parent 73374454558b9caea46a5521fdae312d3d0ed3e1 author Randy Dunlap Tue, 18 Apr 2006 22:21:51 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:52 -0700 [PATCH] Doc: vm/hugetlbpage update-2 Add new line of /proc/meminfo output. Explain the HugePage_ lines in /proc/meminfo (from Bill Irwin). Change KB to kB since the latter is what is used in the kernel. Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 73374454558b9caea46a5521fdae312d3d0ed3e1 tree 67c9aa700fe8bada378e28d136452a898f3082a5 parent b514d8c77a6ad9c665c74e6ea7827e5c341095db author Samuel Thibault Tue, 18 Apr 2006 22:21:50 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:52 -0700 [PATCH] apm: fix Armada laptops again Fix the "apm: set display: Interface not engaged" error on Armada laptops again. Jordan said: I think this is fine. It seems to me that this may be the fault of one or both of the APM solutions handling this situation in a non-standard way, but since APM is used very little on the Geode, and I have direct access to our BIOS folks, if this problem comes up with a customer again, we'll solve it from the firmware. Signed-off-by: Samuel Thibault Cc: "Jordan Crouse" Cc: Zachary Amsden Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b514d8c77a6ad9c665c74e6ea7827e5c341095db tree 5550fde8877f87d605e3abaabdb706dcddb274d2 parent cca57c5b5ab164e3c96576fc7739c0a30c2eab72 author Jesper Juhl Tue, 18 Apr 2006 22:21:49 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:51 -0700 [PATCH] voyager: no need to define BITS_PER_BYTE when it's already in types.h Signed-off-by: Jesper Juhl Cc: James Bottomley Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit cca57c5b5ab164e3c96576fc7739c0a30c2eab72 tree 24a41ba1348d12f25c9e0da3b9b7cbaf4f1ce891 parent ca99c1da080345e227cfb083c330a184d42e27f3 author Tim Chen Tue, 18 Apr 2006 22:21:47 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:51 -0700 [PATCH] Kconfig.debug: Set DEBUG_MUTEX to off by default DEBUG_MUTEX flag is on by default in current kernel configuration. During performance testing, we saw mutex debug functions like mutex_debug_check_no_locks_freed (called by kfree()) is expensive as it goes through a global list of memory areas with mutex lock and do the checking. For benchmarks such as Volanomark and Hackbench, we have seen more than 40% drop in performance on some platforms. We suggest to set DEBUG_MUTEX off by default. Or at least do that later when we feel that the mutex changes in the current code have stabilized. Signed-off-by: Tim Chen Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ca99c1da080345e227cfb083c330a184d42e27f3 tree e417b4c456ae31dc1dde8027b6be44a1a9f19395 parent fb30d64568fd8f6a21afef987f11852a109723da author Dipankar Sarma Tue, 18 Apr 2006 22:21:46 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:51 -0700 [PATCH] Fix file lookup without ref There are places in the kernel where we look up files in fd tables and access the file structure without holding refereces to the file. So, we need special care to avoid the race between looking up files in the fd table and tearing down of the file in another CPU. Otherwise, one might see a NULL f_dentry or such torn down version of the file. This patch fixes those special places where such a race may happen. Signed-off-by: Dipankar Sarma Acked-by: "Paul E. McKenney" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit fb30d64568fd8f6a21afef987f11852a109723da tree f5cb57a46f237bb3500743d3421d2ec95849e38a parent 966a082f80a073af1564c5ed6313ef2f0587dde3 author Jeff Dike Tue, 18 Apr 2006 22:21:44 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:51 -0700 [PATCH] uml: add missing __volatile__ We were missing __volatile__ on some bits of asm in the segfault handlers. On x86_64, this was messing up the move from %rdx to uc because that was moved to after the GET_FAULTINFO_FROM_SC, which changed %rdx. Also changed the other bit of asm and the one in the i386 handler to prevent any similar occurrences. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 966a082f80a073af1564c5ed6313ef2f0587dde3 tree da199abad4c035c60f04100b2759815655f46f31 parent f983c45ebedcaf686223afaecd8e681e8dcd15a9 author Rob Landley Tue, 18 Apr 2006 22:21:43 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:51 -0700 [PATCH] uml: physical memory map file fixes UML really wants shared memory semantics form its physical memory map file, and the place for that is /dev/shm. So move the default, and fix the error messages to recognize that this value can be overridden. Signed-off-by: Rob Landley Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f983c45ebedcaf686223afaecd8e681e8dcd15a9 tree 869a042935419734c18c98c4cb4f19bc7af45850 parent ad28e029789ef46aebdfb9ece01d431ce1c637c8 author Al Viro Tue, 18 Apr 2006 22:21:42 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:51 -0700 [PATCH] uml: __user annotations bits of uml __user annotations lost in merge Signed-off-by: Al Viro Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ad28e029789ef46aebdfb9ece01d431ce1c637c8 tree e2e5dffefbb2484324ac4d0e74b77d312058b4a5 parent 4127272c38619c56f0c1aa01d01c7bd757db70a1 author Jeff Dike Tue, 18 Apr 2006 22:21:41 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:51 -0700 [PATCH] uml: change sigjmp_buf to jmp_buf Clean up the jmpbuf code. Since softints, we no longer use sig_setjmp, so the UML_SIGSETJMP wrapper now has a misleading name. Also, I forgot to change the buffers from sigjmp_buf to jmp_buf. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4127272c38619c56f0c1aa01d01c7bd757db70a1 tree d12ca9b4ba542a93957dc50c009928299ea66991 parent dd1c1e3e9ed04d33a698925238e527b7051f64b9 author Hirokazu Takata Tue, 18 Apr 2006 22:21:38 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:51 -0700 [PATCH] m32r: update switch_to macro for tuning - Remove unnecessary push/pop's of the switch_to() macro for performance tuning. - Cosmetic updates: change __inline__ to inline, etc. Signed-off-by: Hirokazu Takata Cc: NIIBE Yutaka Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit dd1c1e3e9ed04d33a698925238e527b7051f64b9 tree df4a6c602f7df37a2b6308be95ffb9e98f3dc7f4 parent 0d34c86c3b75e5fd7cde15c965349b0104e06e53 author Hirokazu Takata Tue, 18 Apr 2006 22:21:34 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:51 -0700 [PATCH] m32r: Remove a warning in m32r_sio.c /project/m32r-linux/kernel/linux-2.6.17-rc1-mm2/linux-2.6.17-rc1-mm2/drivers/serial/m32r_sio.c: In function 'm32r_sio_console_write': /project/m32r-linux/kernel/linux-2.6.17-rc1-mm2/linux-2.6.17-rc1-mm2/drivers/serial/m32r_sio.c:1060: warning: unused variable 'i' Signed-off-by: Hirokazu Takata Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0d34c86c3b75e5fd7cde15c965349b0104e06e53 tree 13092afb5f94f45429ff04c24ce390ddf7f6a7b4 parent fa372810e51979c5044e036a34015845e9c6aedd author Hirokazu Takata Tue, 18 Apr 2006 22:21:30 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:50 -0700 [PATCH] m32r: mappi3 reboot support Here is a patch to support a reboot function for M3A-2170(Mappi-III) evaluation board. Signed-off-by: Hayato Fujiwara Signed-off-by: Hirokazu Takata Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit fa372810e51979c5044e036a34015845e9c6aedd tree 788adb758256488a7760c02384ad387071cf2d50 parent 8e8ff02c0b61d9b7c15c7996a2eddbedf51a105b author Hirokazu Takata Tue, 18 Apr 2006 22:21:25 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:50 -0700 [PATCH] m32r: update include/asm-m32r/semaphore.h This patch updates include/asm-m32r/semaphore.h for good readability and maintainability. Signed-off-by: Hirokazu Takata Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8e8ff02c0b61d9b7c15c7996a2eddbedf51a105b tree dde7fcedee5d8720f5cc95da5ed4629fd3369bc8 parent efe87d2b822e42975b4da958c9d321cf89bfeb5a author Hirokazu Takata Tue, 18 Apr 2006 22:21:20 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:50 -0700 [PATCH] m32r: Fix pt_regs for !COFNIG_ISA_DSP_LEVEL2 target This modification is required to fix debugging function for m32r targets with !CONFIG_ISA_DSP_LEVEL2, by unifying 'struct pt_regs' and 'struct sigcontext' size for all M32R ISA. Some m32r processor core with !CONFIG_ISA_DSP_LEVEL2 configuration has only single accumulator a0 (ex. VDEC2 core, M32102 core, etc.), the others with CONFIG_ISA_DSP_LEVEL2 has two accumulators, a0 and a1. This means there are two variations of thread context. So far, we reduced and changed stackframe size at a syscall for their context size. However, this causes a problem that a GDB for processors with CONFIG_ISA_DSP_LEVEL2 cannot be used for processors with !CONFIG_ISA_DSP_LEVEL2. From the viewpoint of GDB support, we should reduce such variation of stackframe size for simplicity. In this patch, dummy members are added to 'struct pt_regs' and 'struct sigcontext' to adjust their size for !CONFIG_ISA_DSP_LEVEL2. This modification is also a one step for a GDB update in future. Currently, on the m32r, GDB can access process's context by using ptrace functions in a simple way of register by register access. By unifying stackframe size, we have a possibility to make use of ptrace functions of not only a single register access but also block register access, PTRACE_{GETREGS,PUTREGS}. However, for this purpose, we might have to modify stackframe structure some more; for example, PSW (processor status word) register should be pre-processed before pushing to stack at a syscall, and so on. In this case, we must update carefully both kernel and GDB at a time... Signed-off-by: Hayato Fujiwara Signed-off-by: Hirokazu Takata Cc: Kei Sakamoto Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit efe87d2b822e42975b4da958c9d321cf89bfeb5a tree 1bdabc6a189d4f2cd97dc98983e3b87a5aa58cfe parent 1bb858f27eadc54e24dfa351fcae724cff426de2 author Randy Dunlap Tue, 18 Apr 2006 22:21:14 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:50 -0700 [PATCH] x86 cpuid and msr notifier callback section mismatches Fix section mismatch warnings in x86 cpuid and msr notifier callback functions. We can't have these as init (discarded) code. WARNING: arch/x86_64/kernel/cpuid.o - Section mismatch: reference to .init.text: from .data between 'cpuid_class_cpu_notifier' (at offset 0x0) and 'cpuid_fops' WARNING: arch/x86_64/kernel/msr.o - Section mismatch: reference to .init.text: from .data between 'msr_class_cpu_notifier' (at offset 0x0) and 'msr_fops' Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1bb858f27eadc54e24dfa351fcae724cff426de2 tree 2c0812570c3a063cf1a0d6f334218e3dc1cce115 parent ab5703b34237da7034800ec2466ceebf88a7e685 author lepton Tue, 18 Apr 2006 22:21:10 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:50 -0700 [PATCH] asm-i386/atomic.h: local_irq_save should be used instead of local_irq_disable atomic_add_return() if CONFIG_M386 can accidentally enable local interrupts. Signed-off-by: Lepton Wu Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ab5703b34237da7034800ec2466ceebf88a7e685 tree 1c319edf228bb9467a0b8b2bc2a069d0545f5c52 parent dda27d1a55e185b0c5fd184b86ac26c66846f095 author Ron Yorston Tue, 18 Apr 2006 22:21:04 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:50 -0700 [PATCH] selinux: Fix MLS compatibility off-by-one bug Fix an off-by-one error in the MLS compatibility code that was causing contexts with a MLS suffix to be rejected, preventing sharing partitions between FC4 and FC5. Bug reported in https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=188068 Signed-off-by: Stephen Smalley Acked-by: James Morris Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit dda27d1a55e185b0c5fd184b86ac26c66846f095 tree 112f9dea961915c32284a30edb28f2958afff1c6 parent 6aa3001b239b387d98a7f945e4a51edeb59e4f2d author Arthur Othieno Tue, 18 Apr 2006 22:20:57 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:50 -0700 [PATCH] hugetlbfs: add Kconfig help text In kernel bugzilla #6248 (http://bugzilla.kernel.org/show_bug.cgi?id=6248), Adrian Bunk notes that CONFIG_HUGETLBFS is missing Kconfig help text. Signed-off-by: Arthur Othieno Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6aa3001b239b387d98a7f945e4a51edeb59e4f2d tree df3901329baddd8c37a661ad595fa52821dee8ef parent 013159227b840dfd441bd2e4c8b4d77ffb3cc42e author Andrew Morton Tue, 18 Apr 2006 22:20:52 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:50 -0700 [PATCH] page_alloc.c: buddy handling cleanup Fix up some whitespace damage. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 013159227b840dfd441bd2e4c8b4d77ffb3cc42e tree 15bd8349b4a105efc75c77dcd0c1a579ecd87ab4 parent 97c2c9b84d0c1edf4926b13661d5af3f0edccbce author Dave Peterson Tue, 18 Apr 2006 22:20:44 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:50 -0700 [PATCH] mm: fix mm_struct reference counting bugs in mm/oom_kill.c Fix oom_kill_task() so it doesn't call mmput() (which may sleep) while holding tasklist_lock. Signed-off-by: David S. Peterson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 97c2c9b84d0c1edf4926b13661d5af3f0edccbce tree bc986808cd7b5a8219a0c40ca9fdfc40524883e4 parent 75129e297e861e6c61038aa4cdbf604b022de4ff author Andrew Morton Tue, 18 Apr 2006 22:20:38 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:49 -0700 [PATCH] oom-kill: mm locking fix Dave Peterson points out that badness() is playing with mm_structs without taking a reference on them. mmput() can sleep, so taking a reference here (inside tasklist_lock) is hard. Fix it up via task_lock() instead. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 75129e297e861e6c61038aa4cdbf604b022de4ff tree 48392ab6ae43547ae2d81a312eb22708af0dc515 parent 4a3b98a422a20dedf3a2a40c44892d6e7e665157 author John Hawkes Tue, 18 Apr 2006 22:20:33 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:49 -0700 [PATCH] mm/slob.c: for_each_possible_cpu(), not NR_CPUS Convert for-loops that explicitly reference "NR_CPUS" into the potentially more efficient for_each_possible_cpu() construct. Signed-off-by: John Hawkes Cc: Matt Mackall Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4a3b98a422a20dedf3a2a40c44892d6e7e665157 tree 24387ffda32d2d7a8582116cd39654bf1fac19fe parent 8db08de4f6ae24e90aedf5125b5ddd52ffff15f4 author Rafael J. Wysocki Tue, 18 Apr 2006 22:20:29 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:49 -0700 [PATCH] swsusp: prevent possible image corruption on resume The function free_pagedir() used by swsusp for freeing its internal data structures clears the PG_nosave and PG_nosave_free flags for each page being freed. However, during resume PG_nosave_free set means that the page in question is "unsafe" (ie. it will be overwritten in the process of restoring the saved system state from the image), so it should not be used for the image data. Therefore free_pagedir() should not clear PG_nosave_free if it's called during resume (otherwise "unsafe" pages freed by it may be used for storing the image data and the data may get corrupted later on). Signed-off-by: Rafael J. Wysocki Acked-by: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8db08de4f6ae24e90aedf5125b5ddd52ffff15f4 tree a35f45d38b25f1ad9ddbc006712488d26ecaf987 parent b73781c866f671ff5a84d7c840510b43e8731d13 author David Barksdale Tue, 18 Apr 2006 22:20:27 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:49 -0700 [PATCH] m41t00: fix bitmasks when writing to chip Fix the bitmasks used when writing to the M41T00 registers. The original code used a mask of 0x7f when writing to each register, this is incorrect and probably the result of a copy-paste error. As a result years from 1980 to 1999 will be read back as 2000 to 2019. Signed-off-by: David Barksdale Acked-by: Jean Delvare Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b73781c866f671ff5a84d7c840510b43e8731d13 tree b8e5d32802fd048e5229615576dc4fda82c722d4 parent 676ff453e58c5ff7ddbfebf5a11142e3e4add161 author Jeff Dike Tue, 18 Apr 2006 22:20:24 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:49 -0700 [PATCH] uml: MADV_REMOVE fixes MADV_REMOVE fixes - change the test mapping to be MAP_SHARED instead of MAP_PRIVATE, as MADV_REMOVE on MAP_PRIVATE maps won't work. Also, use the kernel's definition of MADV_REMOVE instead of hardcoding it if there isn't a libc definition. Signed-off-by: Jeff Dike Cc: Hugh Dickins Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 676ff453e58c5ff7ddbfebf5a11142e3e4add161 tree 73dd2d5fa0baa38be1357947b0a90b013b14115f parent 5e85d4abe3f43bb5362f384bab0e20ef082ce0b5 author KAMEZAWA Hiroyuki Tue, 18 Apr 2006 22:20:21 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:49 -0700 [PATCH] for_each_possible_cpu: x86_64 for_each_cpu() actually iterates across all possible CPUs. We've had mistakes in the past where people were using for_each_cpu() where they should have been iterating across only online or present CPUs. This is inefficient and possibly buggy. We're renaming for_each_cpu() to for_each_possible_cpu() to avoid this in the future. This patch replaces for_each_cpu with for_each_possible_cpu. Signed-off-by: KAMEZAWA Hiroyuki Acked-by: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5e85d4abe3f43bb5362f384bab0e20ef082ce0b5 tree cd3a29086e5274fd08bc8d22d15568deab144755 parent 181ae4005d0a4010802be534d929b38c42b9ac06 author Eric W. Biederman Tue, 18 Apr 2006 22:20:16 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:49 -0700 [PATCH] task: Make task list manipulations RCU safe While we can currently walk through thread groups, process groups, and sessions with just the rcu_read_lock, this opens the door to walking the entire task list. We already have all of the other RCU guarantees so there is no cost in doing this, this should be enough so that proc can stop taking the tasklist lock during readdir. prev_task was killed because it has no users, and using it will miss new tasks when doing an rcu traversal. Signed-off-by: Eric W. Biederman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 181ae4005d0a4010802be534d929b38c42b9ac06 tree e16e0a70cff702b11edb497eee4a4d77f27d104a parent 8bbde0e6d52265158ee9625f383500c1a7d09ba9 author Paolo 'Blaisorblade' Giarrusso Tue, 18 Apr 2006 22:20:13 -0700 committer Linus Torvalds Wed, 19 Apr 2006 09:13:49 -0700 [PATCH] uml: make 64-bit COW files compatible with 32-bit ones This is the minimal fix to make 64-bit UML binaries create 32-bit compatible COW files and read them. I've indeed tested that current code doesn't do this - the code gets SIGFPE for a division by a value read at the wrong place, where 0 is found. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9e0267c26e237f84f608a68e579bf4eb89dad819 tree 9ea854e8e97113afbf33dfb787171950cfb53df6 parent a4514ebd8e12c63c09ab02be518db545bd1d24af author Jens Axboe Wed, 19 Apr 2006 15:57:31 +0200 committer Jens Axboe Wed, 19 Apr 2006 15:57:31 +0200 [PATCH] splice: fixup writeout path after ->map changes Since ->map() no longer locks the page, we need to adjust the handling of those pages (and stealing) a little. This now passes full regressions again. Signed-off-by: Jens Axboe commit a4514ebd8e12c63c09ab02be518db545bd1d24af tree ec7bcaed8d4594bd9d763659686e9318158da3aa parent 2a27250e6cf47ca1ea3bea0a55e4b7889c097627 author Jens Axboe Wed, 19 Apr 2006 15:57:05 +0200 committer Jens Axboe Wed, 19 Apr 2006 15:57:05 +0200 [PATCH] splice: offset fixes - We need to adjust *ppos for writes as well. - Copy back modified offset value if one was passed in, similar to what sendfile does. Signed-off-by: Jens Axboe commit 2a27250e6cf47ca1ea3bea0a55e4b7889c097627 tree 3dbd4747df21e72420ab6fb91fc174173903c803 parent c4f895cbe1e95aab633207fb19c650b7c984c01a author Jens Axboe Wed, 19 Apr 2006 15:56:40 +0200 committer Jens Axboe Wed, 19 Apr 2006 15:56:40 +0200 [PATCH] tee: link_pipe() must be careful when dropping one of the pipe locks We need to ensure that we only drop a lock that is ordered last, to avoid ABBA deadlocks with competing processes. Signed-off-by: Jens Axboe commit c4f895cbe1e95aab633207fb19c650b7c984c01a tree 3f8fa236d737da19bd9d7c38ab01079caf7d5f56 parent 91ad66ef4469cb631ec0ccd131b07f16770773f7 author Jens Axboe Wed, 19 Apr 2006 15:56:12 +0200 committer Jens Axboe Wed, 19 Apr 2006 15:56:12 +0200 [PATCH] splice: cleanup the SPLICE_F_NONBLOCK handling - generic_file_splice_read() more readable and correct - Don't bail on page allocation with NONBLOCK set, just don't allow direct blocking on IO (eg lock_page). Signed-off-by: Jens Axboe commit 91ad66ef4469cb631ec0ccd131b07f16770773f7 tree 89db609ce4d9673ad1f586abe87c76d6f38ab0d0 parent 8bbde0e6d52265158ee9625f383500c1a7d09ba9 author Jens Axboe Wed, 19 Apr 2006 15:55:10 +0200 committer Jens Axboe Wed, 19 Apr 2006 15:55:10 +0200 [PATCH] splice: close i_size truncate races on read We need to check i_size after doing a blocking readpage. Signed-off-by: Jens Axboe